diff --git a/modules/dreamview/backend/map/map_service.cc b/modules/dreamview/backend/map/map_service.cc index cc62f5f96a3164d189ef8866ff09dd9a4b0ad085..3e9612cef8612d03731d5eed7572c53c22f77707 100644 --- a/modules/dreamview/backend/map/map_service.cc +++ b/modules/dreamview/backend/map/map_service.cc @@ -336,6 +336,26 @@ bool MapService::GetNearestLane(const double x, const double y, return true; } +bool MapService::GetNearestLaneWithHeading(const double x, const double y, + LaneInfoConstPtr *nearest_lane, + double *nearest_s, double *nearest_l, + const double heading) const { + boost::shared_lock reader_lock(mutex_); + + PointENU point; + point.set_x(x); + point.set_y(y); + static constexpr double kSearchRadius = 1.0; + static constexpr double kMaxHeadingDiff = 1.0; + if (!MapReady() || HDMap()->GetNearestLaneWithHeading( + point, kSearchRadius, heading, kMaxHeadingDiff, + nearest_lane, nearest_s, nearest_l) < 0) { + AERROR << "Failed to get nearest lane with heading."; + return false; + } + return true; +} + bool MapService::GetPathsFromRouting(const RoutingResponse &routing, std::vector *paths) const { if (!CreatePathsFromRouting(routing, paths)) { @@ -365,11 +385,7 @@ bool MapService::ConstructLaneWayPoint( return false; } - if (lane->lane().type() != Lane::CITY_DRIVING) { - AERROR - << "Failed to construct LaneWayPoint for RoutingRequest: Expected lane " - << lane->id().id() << " to be CITY_DRIVING, but was " - << apollo::hdmap::Lane::LaneType_Name(lane->lane().type()); + if (!CheckRoutingPointLaneType(lane)) { return false; } @@ -382,6 +398,39 @@ bool MapService::ConstructLaneWayPoint( return true; } +bool MapService::ConstructLaneWayPointWithHeading( + const double x, const double y, const double heading, + routing::LaneWaypoint *laneWayPoint) const { + double s, l; + LaneInfoConstPtr lane; + if (!GetNearestLaneWithHeading(x, y, &lane, &s, &l, heading)) { + return false; + } + + if (!CheckRoutingPointLaneType(lane)) { + return false; + } + + laneWayPoint->set_id(lane->id().id()); + laneWayPoint->set_s(s); + auto *pose = laneWayPoint->mutable_pose(); + pose->set_x(x); + pose->set_y(y); + + return true; +} + +bool MapService::CheckRoutingPointLaneType(LaneInfoConstPtr lane) const { + if (lane->lane().type() != Lane::CITY_DRIVING) { + AERROR + << "Failed to construct LaneWayPoint for RoutingRequest: Expected lane " + << lane->id().id() << " to be CITY_DRIVING, but was " + << apollo::hdmap::Lane::LaneType_Name(lane->lane().type()); + return false; + } + return true; +} + bool MapService::GetStartPoint(apollo::common::PointENU *start_point) const { // Start from origin to find a lane from the map. double s, l; diff --git a/modules/dreamview/backend/map/map_service.h b/modules/dreamview/backend/map/map_service.h index 9c9f1b5ac89b9b6d75c82cff2695d6b319c751ed..b69eb0551177dea74d3b807d4e240861851cded9 100644 --- a/modules/dreamview/backend/map/map_service.h +++ b/modules/dreamview/backend/map/map_service.h @@ -76,6 +76,12 @@ class MapService { bool ConstructLaneWayPoint(const double x, const double y, routing::LaneWaypoint *laneWayPoint) const; + bool ConstructLaneWayPointWithHeading( + const double x, const double y, const double heading, + routing::LaneWaypoint *laneWayPoint) const; + + bool CheckRoutingPointLaneType(apollo::hdmap::LaneInfoConstPtr lane) const; + // Reload map from current FLAGS_map_dir. bool ReloadMap(bool force_reload); @@ -87,6 +93,11 @@ class MapService { apollo::hdmap::LaneInfoConstPtr *nearest_lane, double *nearest_s, double *nearest_l) const; + bool GetNearestLaneWithHeading(const double x, const double y, + apollo::hdmap::LaneInfoConstPtr *nearest_lane, + double *nearest_s, double *nearest_l, + const double heading) const; + bool CreatePathsFromRouting(const routing::RoutingResponse &routing, std::vector *paths) const; diff --git a/modules/dreamview/backend/simulation_world/simulation_world_service.cc b/modules/dreamview/backend/simulation_world/simulation_world_service.cc index b59b9cbdcfe0c3297a2b1c80f6402c0c7bbc015c..35d85be0508ccc0b184a97add33814075d51a4af 100644 --- a/modules/dreamview/backend/simulation_world/simulation_world_service.cc +++ b/modules/dreamview/backend/simulation_world/simulation_world_service.cc @@ -1163,5 +1163,11 @@ void SimulationWorldService::PublishRoutingRequest( routing_request_writer_->Write(routing_request); } +void SimulationWorldService::PublishMonitorMessage( + apollo::common::monitor::MonitorMessageItem::LogLevel log_level, + const std::string &msg) { + monitor_logger_buffer_.AddMonitorMsgItem(log_level, msg); + monitor_logger_buffer_.Publish(); +} } // namespace dreamview } // namespace apollo diff --git a/modules/dreamview/backend/simulation_world/simulation_world_service.h b/modules/dreamview/backend/simulation_world/simulation_world_service.h index d4dfa50f11f3c357273f0bd9ea0cb2d413574d1a..188f5801f75597f4d60ff69bfa7514368850cb50 100644 --- a/modules/dreamview/backend/simulation_world/simulation_world_service.h +++ b/modules/dreamview/backend/simulation_world/simulation_world_service.h @@ -137,9 +137,7 @@ class SimulationWorldService { */ void PublishMonitorMessage( apollo::common::monitor::MonitorMessageItem::LogLevel log_level, - const std::string &msg) { - monitor_logger_buffer_.AddMonitorMsgItem(log_level, msg); - } + const std::string &msg); void PublishNavigationInfo( const std::shared_ptr &); diff --git a/modules/dreamview/backend/simulation_world/simulation_world_updater.cc b/modules/dreamview/backend/simulation_world/simulation_world_updater.cc index 3cdb05e51fde032cc44bdb0b8f38e85f06a1bdb5..8d8dc60bee4df5477cc51b375fe1759b0c8918d3 100644 --- a/modules/dreamview/backend/simulation_world/simulation_world_updater.cc +++ b/modules/dreamview/backend/simulation_world/simulation_world_updater.cc @@ -257,11 +257,21 @@ bool SimulationWorldUpdater::ConstructRoutingRequest( AERROR << "Failed to prepare a routing request: invalid start point."; return false; } - if (!map_service_->ConstructLaneWayPoint(start["x"], start["y"], - routing_request->add_waypoint())) { - AERROR << "Failed to prepare a routing request:" - << " cannot locate start point on map."; - return false; + if (ContainsKey(start, "heading")) { + if (!map_service_->ConstructLaneWayPointWithHeading( + start["x"], start["y"], start["heading"], + routing_request->add_waypoint())) { + AERROR << "Failed to prepare a routing request with heading: " + << start["heading"] << " cannot locate start point on map."; + return false; + } + } else { + if (!map_service_->ConstructLaneWayPoint(start["x"], start["y"], + routing_request->add_waypoint())) { + AERROR << "Failed to prepare a routing request:" + << " cannot locate start point on map."; + return false; + } } // set way point(s) if any diff --git a/modules/dreamview/frontend/dist/app.bundle.js b/modules/dreamview/frontend/dist/app.bundle.js index 61be4fe6b34057b624cdc50132beccdeed84bea0..55093cb69c24a8c0f23afcd9477170f4b561136c 100644 --- a/modules/dreamview/frontend/dist/app.bundle.js +++ b/modules/dreamview/frontend/dist/app.bundle.js @@ -17,7 +17,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var tn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},nn=function(){function e(e){void 0===e&&(e="Atom@"+Ee()),this.name=e,this.isPendingUnobservation=!0,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Jn.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.reportObserved=function(){ht(this)},e.prototype.reportChanged=function(){ct(),ft(this),dt()},e.prototype.toString=function(){return this.name},e}(),rn=function(e){function t(t,n,i){void 0===t&&(t="Atom@"+Ee()),void 0===n&&(n=Wn),void 0===i&&(i=Wn);var r=e.call(this,t)||this;return r.name=t,r.onBecomeObservedHandler=n,r.onBecomeUnobservedHandler=i,r.isPendingUnobservation=!1,r.isBeingTracked=!1,r}return i(t,e),t.prototype.reportObserved=function(){return ct(),e.prototype.reportObserved.call(this),this.isBeingTracked||(this.isBeingTracked=!0,this.onBecomeObservedHandler()),dt(),!!qn.trackingDerivation},t.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},t}(nn),on=je("Atom",nn),an={spyReportEnd:!0},sn="__$$iterating",ln=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),un=0,cn=function(){function e(){}return e}();!function(e,t){void 0!==Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):void 0!==e.prototype.__proto__?e.prototype.__proto__=t:e.prototype=t}(cn,Array.prototype),Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach(function(e){Object.defineProperty(cn.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})});var dn=function(){function e(e,t,n,i){this.array=n,this.owned=i,this.values=[],this.lastKnownLength=0,this.interceptors=null,this.changeListeners=null,this.atom=new nn(e||"ObservableArray@"+Ee()),this.enhancer=function(n,i){return t(n,i,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer?e.map(this.dehancer):e},e.prototype.intercept=function(e){return o(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),l(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] 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&&e+t+1>un&&_(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var i=this;xt(this.atom);var o=this.values.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:void 0===t||null===t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=[]),r(this)){var s=a(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!s)return jn;t=s.removedCount,n=s.added}n=n.map(function(e){return i.enhancer(e,void 0)});var l=n.length-t;this.updateArrayLength(o,l);var u=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,u),this.dehanceValues(u)},e.prototype.spliceItemsIntoValues=function(e,t,n){if(n.length<1e4)return(r=this.values).splice.apply(r,[e,t].concat(n));var i=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),i;var r},e.prototype.notifyArrayChildUpdate=function(e,t,n){var i=!this.owned&&c(),r=s(this),o=r||i?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;i&&h(o),this.atom.reportChanged(),r&&u(this,o),i&&f()},e.prototype.notifyArraySplice=function(e,t,n){var i=!this.owned&&c(),r=s(this),o=r||i?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;i&&h(o),this.atom.reportChanged(),r&&u(this,o),i&&f()},e}(),hn=function(e){function t(t,n,i,r){void 0===i&&(i="ObservableArray@"+Ee()),void 0===r&&(r=!1);var o=e.call(this)||this,a=new dn(i,n,o,r);return Be(o,"$mobx",a),t&&t.length&&o.spliceWithArray(0,0,t),ln&&Object.defineProperty(a.array,"0",fn),o}return i(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var i,r=this.$mobx.values;i=e";Ne(e,t,xn(o,n))},function(e){return this[e]},function(){ke(!1,w("m001"))},!1,!0),_n=R(function(e,t,n){F(e,t,n)},function(e){return this[e]},function(){ke(!1,w("m001"))},!1,!1),xn=function(e,t,n,i){return 1===arguments.length&&"function"==typeof e?M(e.name||"",e):2===arguments.length&&"function"==typeof t?M(e,t):1===arguments.length&&"string"==typeof e?N(e):N(t).apply(null,arguments)};xn.bound=function(e,t,n){if("function"==typeof e){var i=M("",e);return i.autoBind=!0,i}return _n.apply(null,arguments)};var wn=Object.prototype.toString,Mn={identity:H,structural:q,default:Y},Sn=function(){function e(e,t,n,i,r){this.derivation=e,this.scope=t,this.equals=n,this.dependenciesState=Jn.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Jn.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+Ee(),this.value=new $n(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Qn.NONE,this.name=i||"ComputedValue@"+Ee(),r&&(this.setter=M(i+"-setter",r))}return e.prototype.onBecomeStale=function(){mt(this)},e.prototype.onBecomeUnobserved=function(){St(this),this.value=void 0},e.prototype.get=function(){ke(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),0===qn.inBatch?(ct(),bt(this)&&(this.isTracing!==Qn.NONE&&console.log("[mobx.trace] '"+this.name+"' is being read outside a reactive context and doing a full recompute"),this.value=this.computeValue(!1)),dt()):(ht(this),bt(this)&&this.trackAndCompute()&&pt(this));var e=this.value;if(yt(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(yt(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){ke(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else ke(!1,"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},e.prototype.trackAndCompute=function(){c()&&d({object:this.scope,type:"compute",fn:this.derivation});var e=this.value,t=this.dependenciesState===Jn.NOT_TRACKING,n=this.value=this.computeValue(!0);return t||yt(e)||yt(n)||!this.equals(e,n)},e.prototype.computeValue=function(e){this.isComputing=!0,qn.computationDepth++;var t;if(e)t=wt(this,this.derivation,this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new $n(e)}return qn.computationDepth--,this.isComputing=!1,t},e.prototype.observe=function(e,t){var n=this,i=!0,r=void 0;return X(function(){var o=n.get();if(!i||t){var a=Tt();e({type:"update",object:n,newValue:o,oldValue:r}),kt(a)}i=!1,r=o})},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return Ye(this.get())},e.prototype.whyRun=function(){var e=Boolean(qn.trackingDerivation),t=Pe(this.isComputing?this.newObserving:this.observing).map(function(e){return e.name}),n=Pe(at(this).map(function(e){return e.name}));return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+(e?"[active] the value of this computation is needed by a reaction":this.isComputing?"[get] The value of this computed was requested outside a reaction":"[idle] not running at the moment")+"\n"+(this.dependenciesState===Jn.NOT_TRACKING?w("m032"):" * This computation will re-run if any of the following observables changes:\n "+Ae(t)+"\n "+(this.isComputing&&e?" (... or any observable accessed during the remainder of the current run)":"")+"\n "+w("m038")+"\n\n * If the outcome of this computation changes, the following observers will be re-run:\n "+Ae(n)+"\n")},e}();Sn.prototype[qe()]=Sn.prototype.valueOf;var En=je("ComputedValue",Sn),Tn=function(){function e(e,t){this.target=e,this.name=t,this.values={},this.changeListeners=null,this.interceptors=null}return e.prototype.observe=function(e,t){return ke(!0!==t,"`observe` doesn't support the fire immediately property for observable objects."),l(this,e)},e.prototype.intercept=function(e){return o(this,e)},e}(),kn={},On={},Cn=je("ObservableObjectAdministration",Tn),Pn=ue(ve),An=ue(ye),Rn=ue(be),Ln=ue(_e),In=ue(xe),Dn={box:function(e,t){return arguments.length>2&&pe("box"),new gn(e,ve,t)},shallowBox:function(e,t){return arguments.length>2&&pe("shallowBox"),new gn(e,be,t)},array:function(e,t){return arguments.length>2&&pe("array"),new hn(e,ve,t)},shallowArray:function(e,t){return arguments.length>2&&pe("shallowArray"),new hn(e,be,t)},map:function(e,t){return arguments.length>2&&pe("map"),new zn(e,ve,t)},shallowMap:function(e,t){return arguments.length>2&&pe("shallowMap"),new zn(e,be,t)},object:function(e,t){arguments.length>2&&pe("object");var n={};return Q(n,t),ce(n,e),n},shallowObject:function(e,t){arguments.length>2&&pe("shallowObject");var n={};return Q(n,t),de(n,e),n},ref:function(){return arguments.length<2?ge(be,arguments[0]):Rn.apply(null,arguments)},shallow:function(){return arguments.length<2?ge(ye,arguments[0]):An.apply(null,arguments)},deep:function(){return arguments.length<2?ge(ve,arguments[0]):Pn.apply(null,arguments)},struct:function(){return arguments.length<2?ge(_e,arguments[0]):Ln.apply(null,arguments)}},Nn=fe;Object.keys(Dn).forEach(function(e){return Nn[e]=Dn[e]}),Nn.deep.struct=Nn.struct,Nn.ref.struct=function(){return arguments.length<2?ge(xe,arguments[0]):In.apply(null,arguments)};var Bn={},zn=function(){function e(e,t,n){void 0===t&&(t=ve),void 0===n&&(n="ObservableMap@"+Ee()),this.enhancer=t,this.name=n,this.$mobx=Bn,this._data=Object.create(null),this._hasMap=Object.create(null),this._keys=new hn(void 0,be,this.name+".keys()",!0),this.interceptors=null,this.changeListeners=null,this.dehancer=void 0,this.merge(e)}return e.prototype._has=function(e){return void 0!==this._data[e]},e.prototype.has=function(e){return!!this.isValidKey(e)&&(e=""+e,this._hasMap[e]?this._hasMap[e].get():this._updateHasMapEntry(e,!1).get())},e.prototype.set=function(e,t){this.assertValidKey(e),e=""+e;var n=this._has(e);if(r(this)){var i=a(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!i)return this;t=i.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(this.assertValidKey(e),e=""+e,r(this)){var n=a(this,{type:"delete",object:this,name:e});if(!n)return!1}if(this._has(e)){var i=c(),o=s(this),n=o||i?{type:"delete",object:this,oldValue:this._data[e].value,name:e}:null;return i&&h(n),we(function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data[e].setNewValue(void 0),t._data[e]=void 0}),o&&u(this,n),i&&f(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap[e];return n?n.setNewValue(t):n=this._hasMap[e]=new gn(t,be,this.name+"."+e+"?",!1),n},e.prototype._updateValue=function(e,t){var n=this._data[e];if((t=n.prepareNewValue(t))!==mn){var i=c(),r=s(this),o=r||i?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;i&&h(o),n.setNewValue(t),r&&u(this,o),i&&f()}},e.prototype._addValue=function(e,t){var n=this;we(function(){var i=n._data[e]=new gn(t,n.enhancer,n.name+"."+e,!1);t=i.value,n._updateHasMapEntry(e,!0),n._keys.push(e)});var i=c(),r=s(this),o=r||i?{type:"add",object:this,name:e,newValue:t}:null;i&&h(o),r&&u(this,o),i&&f()},e.prototype.get=function(e){return e=""+e,this.has(e)?this.dehanceValue(this._data[e].get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return g(this._keys.slice())},e.prototype.values=function(){return g(this._keys.map(this.get,this))},e.prototype.entries=function(){var e=this;return g(this._keys.map(function(t){return[t,e.get(t)]}))},e.prototype.forEach=function(e,t){var n=this;this.keys().forEach(function(i){return e.call(t,n.get(i),i,n)})},e.prototype.merge=function(e){var t=this;return Fn(e)&&(e=e.toJS()),we(function(){Le(e)?Object.keys(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=e[0],i=e[1];return t.set(n,i)}):Ge(e)?e.forEach(function(e,n){return t.set(n,e)}):null!==e&&void 0!==e&&Te("Cannot initialize map from "+e)}),this},e.prototype.clear=function(){var e=this;we(function(){Et(function(){e.keys().forEach(e.delete,e)})})},e.prototype.replace=function(e){var t=this;return we(function(){var n=Ve(e);t.keys().filter(function(e){return-1===n.indexOf(e)}).forEach(function(e){return t.delete(e)}),t.merge(e)}),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toJS=function(){var e=this,t={};return this.keys().forEach(function(n){return t[n]=e.get(n)}),t},e.prototype.toJSON=function(){return this.toJS()},e.prototype.isValidKey=function(e){return null!==e&&void 0!==e&&("string"==typeof e||"number"==typeof e||"boolean"==typeof e)},e.prototype.assertValidKey=function(e){if(!this.isValidKey(e))throw new Error("[mobx.map] Invalid key: '"+e+"', only strings, numbers and booleans are accepted as key in observable maps.")},e.prototype.toString=function(){var e=this;return this.name+"[{ "+this.keys().map(function(t){return t+": "+e.get(t)}).join(", ")+" }]"},e.prototype.observe=function(e,t){return ke(!0!==t,w("m033")),l(this,e)},e.prototype.intercept=function(e){return o(this,e)},e}();v(zn.prototype,function(){return this.entries()});var Fn=je("ObservableMap",zn),jn=[];Object.freeze(jn);var Un=[],Wn=function(){},Gn=Object.prototype.hasOwnProperty,Vn=["mobxGuid","resetId","spyListeners","strictMode","runId"],Hn=function(){function e(){this.version=5,this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[],this.globalReactionErrorHandlers=[]}return e}(),qn=new Hn,Yn=!1,Xn=!1,Kn=!1,Zn=Se();Zn.__mobxInstanceCount?(Zn.__mobxInstanceCount++,setTimeout(function(){Yn||Xn||Kn||(Kn=!0,console.warn("[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details."))},1)):Zn.__mobxInstanceCount=1;var Jn;!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"}(Jn||(Jn={}));var Qn;!function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Qn||(Qn={}));var $n=function(){function e(e){this.cause=e}return e}(),ei=function(){function e(e,t){void 0===e&&(e="Reaction@"+Ee()),this.name=e,this.onInvalidate=t,this.observing=[],this.newObserving=[],this.dependenciesState=Jn.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+Ee(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Qn.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,qn.pendingReactions.push(this),Dt())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(ct(),this._isScheduled=!1,bt(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&c()&&d({object:this,type:"scheduled-reaction"})),dt())},e.prototype.track=function(e){ct();var t,n=c();n&&(t=Date.now(),h({object:this,type:"reaction",fn:e})),this._isRunning=!0;var i=wt(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&St(this),yt(i)&&this.reportExceptionInDerivation(i.cause),n&&f({time:Date.now()-t}),dt()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)return void this.errorHandler(e,this);var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this,i=w("m037");console.error(n||i,e),c()&&d({type:"error",message:n,error:e,object:this}),qn.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(ct(),St(this),dt()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e.onError=Lt,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.whyRun=function(){var e=Pe(this._isRunning?this.newObserving:this.observing).map(function(e){return e.name});return"\nWhyRun? reaction '"+this.name+"':\n * Status: ["+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+"]\n * This reaction will re-run if any of the following observables changes:\n "+Ae(e)+"\n "+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+"\n\t"+w("m038")+"\n"},e.prototype.trace=function(e){void 0===e&&(e=!1),At(this,e)},e}(),ti=100,ni=function(e){return e()},ii=je("Reaction",ei),ri=Wt(Mn.default),oi=Wt(Mn.structural),ai=function(e,t,n){if("string"==typeof t)return ri.apply(null,arguments);ke("function"==typeof e,w("m011")),ke(arguments.length<3,w("m012"));var i="object"==typeof t?t:{};i.setter="function"==typeof t?t:i.setter;var r=i.equals?i.equals:i.compareStructural||i.struct?Mn.structural:Mn.default;return new Sn(e,i.context,r,i.name||e.name||"",i.setter)};ai.struct=oi,ai.equals=Wt;var si={allowStateChanges:C,deepEqual:j,getAtom:Qe,getDebugName:et,getDependencyTree:tt,getAdministration:$e,getGlobalState:Ze,getObserverTree:it,interceptReads:en,isComputingDerivation:_t,isSpyEnabled:c,onReactionError:It,reserveArrayBuffer:_,resetGlobalState:Je,isolateGlobalState:Xe,shareGlobalState:Ke,spyReport:d,spyReportEnd:f,spyReportStart:h,setReactionScheduler:Bt},li={Reaction:ei,untracked:Et,Atom:rn,BaseAtom:nn,useStrict:k,isStrictModeEnabled:O,spy:p,comparer:Mn,asReference:zt,asFlat:jt,asStructure:Ft,asMap:Ut,isModifierDescriptor:me,isObservableObject:se,isBoxedObservable:vn,isObservableArray:x,ObservableMap:zn,isObservableMap:Fn,map:Me,transaction:we,observable:Nn,computed:ai,isObservable:le,isComputed:Gt,extendObservable:ce,extendShallowObservable:de,observe:Vt,intercept:Yt,autorun:X,autorunAsync:Z,when:K,reaction:J,action:xn,isAction:z,runInAction:B,expr:Zt,toJS:Jt,createTransformer:Qt,whyRun:Pt,isArrayLike:We,extras:si},ui=!1;for(var ci in li)!function(e){var t=li[e];Object.defineProperty(li,e,{get:function(){return ui||(ui=!0,console.warn("Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in mobx@4.0.0\nUse `import * as mobx from 'mobx'` instead")),t}})}(ci);"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:p,extras:si}),t.default=li}.call(t,n(28))},function(e,t,n){e.exports={default:n(376),__esModule:!0}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var i=n(30),r=n(163),o=n(118),a=Object.defineProperty;t.f=n(31)?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){e.exports=n(546)()},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t,n,i){var o,a,s,l,u,c,d,h,f,p=Object.keys(n);for(o=0,a=p.length;o0)},o.Buffer=function(){try{var e=o.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(e){return"number"==typeof e?o.Buffer?o._Buffer_allocUnsafe(e):new o.Array(e):o.Buffer?o._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},o.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire("long"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(e){return e?o.LongBits.from(e).toHash():o.LongBits.zeroHash},o.longFromHash=function(e,t){var n=o.LongBits.fromHash(e);return o.Long?o.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},o.merge=i,o.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},o.newError=r,o.ProtocolError=r("ProtocolError"),o.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},o.oneOfSetter=function(e){return function(t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2];this.coordinates.isInitialized()&&!n||this.coordinates.initialize(e,t)}},{key:"updateDimension",value:function(e,t){this.camera.aspect=e/t,this.camera.updateProjectionMatrix(),this.renderer.setSize(e,t),this.dimension.width=e,this.dimension.height=t}},{key:"enableOrbitControls",value:function(){var e=this.adc.mesh.position;this.controls.enabled=!0,this.controls.enableRotate=!1,this.controls.reset(),this.controls.minDistance=20,this.controls.maxDistance=1e3,this.controls.target.set(e.x,e.y,0),this.camera.position.set(e.x,e.y,50),"FLU"===this.coordinates.systemName?this.camera.up.set(1,0,0):this.camera.up.set(0,1,0),this.camera.lookAt(e.x,e.y,0)}},{key:"adjustCamera",value:function(e,t){if(!this.routingEditor.isInEditingMode()){switch(this.camera.fov=PARAMETERS.camera[t].fov,this.camera.near=PARAMETERS.camera[t].near,this.camera.far=PARAMETERS.camera[t].far,t){case"Default":var n=this.viewDistance*Math.cos(e.rotation.y)*Math.cos(this.viewAngle),i=this.viewDistance*Math.sin(e.rotation.y)*Math.cos(this.viewAngle),r=this.viewDistance*Math.sin(this.viewAngle);this.camera.position.x=e.position.x-n,this.camera.position.y=e.position.y-i,this.camera.position.z=e.position.z+r,this.camera.up.set(0,0,1),this.camera.lookAt({x:e.position.x+2*n,y:e.position.y+2*i,z:0}),this.controls.enabled=!1;break;case"Near":n=.5*this.viewDistance*Math.cos(e.rotation.y)*Math.cos(this.viewAngle),i=.5*this.viewDistance*Math.sin(e.rotation.y)*Math.cos(this.viewAngle),r=.5*this.viewDistance*Math.sin(this.viewAngle),this.camera.position.x=e.position.x-n,this.camera.position.y=e.position.y-i,this.camera.position.z=e.position.z+r,this.camera.up.set(0,0,1),this.camera.lookAt({x:e.position.x+2*n,y:e.position.y+2*i,z:0}),this.controls.enabled=!1;break;case"Overhead":i=.5*this.viewDistance*Math.sin(e.rotation.y)*Math.cos(this.viewAngle),r=2*this.viewDistance*Math.sin(this.viewAngle),this.camera.position.x=e.position.x,this.camera.position.y=e.position.y+i,this.camera.position.z=2*(e.position.z+r),"FLU"===this.coordinates.systemName?this.camera.up.set(1,0,0):this.camera.up.set(0,1,0),this.camera.lookAt({x:e.position.x,y:e.position.y+i,z:0}),this.controls.enabled=!1;break;case"Map":this.controls.enabled||this.enableOrbitControls()}this.camera.updateProjectionMatrix()}}},{key:"enableRouteEditing",value:function(){this.enableOrbitControls(),this.routingEditor.enableEditingMode(this.camera,this.adc),document.getElementById(this.canvasId).addEventListener("mousedown",this.onMouseDownHandler,!1)}},{key:"disableRouteEditing",value:function(){this.routingEditor.disableEditingMode(this.scene),document.getElementById(this.canvasId).removeEventListener("mousedown",this.onMouseDownHandler,!1)}},{key:"addDefaultEndPoint",value:function(e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1]&&this.map.removeAllElements(this.scene),this.map.appendMapData(e,this.coordinates,this.scene)}},{key:"updatePointCloud",value:function(e){this.coordinates.isInitialized()&&this.adc.mesh&&this.pointCloud.update(e,this.adc.mesh)}},{key:"updateMapIndex",value:function(e,t,n){this.routingEditor.isInEditingMode()&&PARAMETERS.routingEditor.radiusOfMapRequest!==n||this.map.updateIndex(e,t,this.scene)}},{key:"isMobileDevice",value:function(){return navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)}},{key:"getGeolocation",value:function(e){if(this.coordinates.isInitialized()){var t=e.currentTarget.getBoundingClientRect(),n=new u.Vector3((e.clientX-t.left)/this.dimension.width*2-1,-(e.clientY-t.top)/this.dimension.height*2+1,0);n.unproject(this.camera);var i=n.sub(this.camera.position).normalize(),r=-this.camera.position.z/i.z,o=this.camera.position.clone().add(i.multiplyScalar(r));return this.coordinates.applyOffset(o,!0)}}},{key:"getMouseOverLanes",value:function(e){var t=e.currentTarget.getBoundingClientRect(),n=new u.Vector3((e.clientX-t.left)/this.dimension.width*2-1,-(e.clientY-t.top)/this.dimension.height*2+1,0),i=new u.Raycaster;i.setFromCamera(n,this.camera);var r=this.map.data.lane.reduce(function(e,t){return e.concat(t.drewObjects)},[]);return i.intersectObjects(r).map(function(e){return e.object.name})}}]),e}()),j=new F;t.default=j},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(t){var n=t*w;e.position.z+=n}}function o(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=new g.MeshBasicMaterial({map:E.load(e),transparent:!0,depthWrite:!1}),s=new g.Mesh(new g.PlaneGeometry(t,n),a);return s.material.side=g.DoubleSide,s.position.set(i,r,o),s.overdraw=!0,s}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16711680,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],l=new g.Path,u=l.createGeometry(e);u.computeLineDistances();var c=new g.LineDashedMaterial({color:t,dashSize:i,linewidth:n,gapSize:o}),d=new g.Line(u,c);return r(d,a),d.matrixAutoUpdate=s,s||d.updateMatrix(),d}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,i=new g.CircleGeometry(e,n);return new g.Mesh(i,t)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16777215,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=M(e.map(function(e){return[e.x,e.y]})),s=new g.ShaderMaterial(S({side:g.DoubleSide,diffuse:n,thickness:t,opacity:i,transparent:!0})),l=new g.Mesh(a,s);return r(l,o),l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16711680,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,l=new g.Path,u=l.createGeometry(e),c=new g.LineBasicMaterial({color:t,linewidth:n,transparent:a,opacity:s}),d=new g.Line(u,c);return r(d,i),d.matrixAutoUpdate=o,!1===o&&d.updateMatrix(),d}function c(e,t,n){var i=new g.CubeGeometry(e.x,e.y,e.z),r=new g.MeshBasicMaterial({color:t}),o=new g.Mesh(i,r),a=new g.BoxHelper(o);return a.material.linewidth=n,a}function d(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.01,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.02,o=new g.CubeGeometry(e.x,e.y,e.z);o=new g.EdgesGeometry(o),o=(new g.Geometry).fromBufferGeometry(o),o.computeLineDistances();var a=new g.LineDashedMaterial({color:t,linewidth:n,dashSize:i,gapSize:r});return new g.LineSegments(o,a)}function h(e,t,n,i,r){var o=new g.Vector3(0,e,0);return u([new g.Vector3(0,0,0),o,new g.Vector3(i/2,e-n,0),o,new g.Vector3(-i/2,e-n,0)],r,t,1)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new g.Shape;if(t){n.moveTo(e[0].x,e[0].y);for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:new g.MeshBasicMaterial({color:16711680}),n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=f(e,n),s=new g.Mesh(a,t);return r(s,i),s.matrixAutoUpdate=o,!1===o&&s.updateMatrix(),s}Object.defineProperty(t,"__esModule",{value:!0}),t.addOffsetZ=r,t.drawImage=o,t.drawDashedLineFromPoints=a,t.drawCircle=s,t.drawThickBandFromPoints=l,t.drawSegmentsFromPoints=u,t.drawBox=c,t.drawDashedBox=d,t.drawArrow=h,t.getShapeGeometryFromPoints=f,t.drawShapeFromPoints=p;var m=n(12),g=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(m),v=n(599),y=i(v),b=n(600),_=i(b),x=n(20),w=.04,M=(0,y.default)(g),S=(0,_.default)(g),E=new g.TextureLoader},function(e,t,n){"use strict";var i=n(9),r=n(6),o=n(58);e.exports={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=r.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?r.merge({},[i.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var n=this;n.defaults.hasOwnProperty(e)&&(n.defaults[e]=r.extend(n.defaults[e],t))},addScalesToLayout:function(e){r.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,o.addBox(e,t)})}}},function(e,t,n){"use strict";e.exports={},e.exports.Arc=n(343),e.exports.Line=n(344),e.exports.Point=n(345),e.exports.Rectangle=n(346)},function(e,t,n){var i=n(25),r=n(66);e.exports=n(31)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(107),r=n(104);e.exports=function(e){return i(r(e))}},function(e,t,n){"use strict";function i(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e.constructor===Array&&e.length>0)for(;t1&&void 0!==arguments[1]&&arguments[1],n=new Date(e),i=n.getHours(),r=n.getMinutes(),o=n.getSeconds();i=i<10?"0"+i:i,r=r<10?"0"+r:r,o=o<10?"0"+o:o;var a=i+":"+r+":"+o;if(t){var s=n.getMilliseconds();s<10?s="00"+s:s<100&&(s="0"+s),a+=":"+s}return a}function s(e,t){if(!e||!t)return[];for(var n=e.positionX,i=e.positionY,r=e.heading,o=t.c0Position,a=t.c1HeadingAngle,s=t.c2Curvature,l=t.c3CurvatureDerivative,c=t.viewRange,d=[l,s,a,o],h=[],f=0;f=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";t.a=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)}},function(e,t,n){"use strict";t.a=function(e,t,n){var i=e*t;return n/Math.sqrt(1-i*i)}},function(e,t,n){"use strict";function i(e,t,n,i,o,a,c){if(l.isObject(i)?(c=o,a=i,i=o=void 0):l.isObject(o)&&(c=a,a=o,o=void 0),r.call(this,e,a),!l.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!l.isString(n))throw TypeError("type must be a string");if(void 0!==i&&!u.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==o&&!l.isString(o))throw TypeError("extend must be a string");this.rule=i&&"optional"!==i?i:void 0,this.type=n,this.id=t,this.extend=o||void 0,this.required="required"===i,this.optional=!this.required,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!l.Long&&void 0!==s.long[n],this.bytes="bytes"===n,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=c}e.exports=i;var r=n(57);((i.prototype=Object.create(r.prototype)).constructor=i).className="Field";var o,a=n(35),s=n(76),l=n(16),u=/^required|optional|repeated$/;i.fromJSON=function(e,t){return new i(e,t.id,t.type,t.rule,t.extend,t.options,t.comment)},Object.defineProperty(i.prototype,"packed",{get:function(){return null===this._packed&&(this._packed=!1!==this.getOption("packed")),this._packed}}),i.prototype.setOption=function(e,t,n){return"packed"===e&&(this._packed=null),r.prototype.setOption.call(this,e,t,n)},i.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return l.toObject(["rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},i.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])&&(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof a&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof a)||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=l.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;l.base64.test(this.typeDefault)?l.base64.decode(this.typeDefault,e=l.newBuffer(l.base64.length(this.typeDefault)),0):l.utf8.write(this.typeDefault,e=l.newBuffer(l.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=l.emptyObject:this.repeated?this.defaultValue=l.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),r.prototype.resolve.call(this)},i.d=function(e,t,n,r){return"function"==typeof t?t=l.decorateType(t).name:t&&"object"==typeof t&&(t=l.decorateEnum(t).name),function(o,a){l.decorateType(o.constructor).add(new i(a,e,t,n,{default:r}))}},i._configure=function(e){o=e}},function(e,t,n){"use strict";function i(e,t){if(!o.isString(e))throw TypeError("name must be a string");if(t&&!o.isObject(t))throw TypeError("options must be an object");this.options=t,this.name=e,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}e.exports=i,i.className="ReflectionObject";var r,o=n(16);Object.defineProperties(i.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),i.prototype.toJSON=function(){throw Error()},i.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof r&&t._handleAdd(this)},i.prototype.onRemove=function(e){var t=e.root;t instanceof r&&t._handleRemove(this),this.parent=null,this.resolved=!1},i.prototype.resolve=function(){return this.resolved?this:(this.root instanceof r&&(this.resolved=!0),this)},i.prototype.getOption=function(e){if(this.options)return this.options[e]},i.prototype.setOption=function(e,t,n){return n&&this.options&&void 0!==this.options[e]||((this.options||(this.options={}))[e]=t),this},i.prototype.setOptions=function(e,t){if(e)for(var n=Object.keys(e),i=0;ih&&se.maxHeight){s--;break}s++,d=l*u}e.labelRotation=s},afterCalculateTickRotation:function(){c.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){c.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=i(e._ticks),r=e.options,l=r.ticks,u=r.scaleLabel,d=r.gridLines,h=r.display,f=e.isHorizontal(),p=a(l),m=r.gridLines.tickMarkLength;if(t.width=f?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:h&&d.drawTicks?m:0,t.height=f?h&&d.drawTicks?m:0:e.maxHeight,u.display&&h){var g=s(u),v=c.options.toPadding(u.padding),y=g+v.height;f?t.height+=y:t.width+=y}if(l.display&&h){var b=c.longestText(e.ctx,p.font,n,e.longestTextCache),_=c.numberOfLabelLines(n),x=.5*p.size,w=e.options.ticks.padding;if(f){e.longestLabelWidth=b;var M=c.toRadians(e.labelRotation),S=Math.cos(M),E=Math.sin(M),T=E*b+p.size*_+x*(_-1)+x;t.height=Math.min(e.maxHeight,t.height+T+w),e.ctx.font=p.font;var k=o(e.ctx,n[0],p.font),O=o(e.ctx,n[n.length-1],p.font);0!==e.labelRotation?(e.paddingLeft="bottom"===r.position?S*k+3:S*x+3,e.paddingRight="bottom"===r.position?S*x+3:S*O+3):(e.paddingLeft=k/2+3,e.paddingRight=O/2+3)}else l.mirror?b=0:b+=w+x,t.width=Math.min(e.maxWidth,t.width+b),e.paddingTop=p.size/2,e.paddingBottom=p.size/2}e.handleMargins(),e.width=t.width,e.height=t.height},handleMargins:function(){var e=this;e.margins&&(e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0),e.paddingTop=Math.max(e.paddingTop-e.margins.top,0),e.paddingRight=Math.max(e.paddingRight-e.margins.right,0),e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0))},afterFit:function(){c.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(c.isNullOrUndef(e))return NaN;if("number"==typeof e&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},getLabelForIndex:c.noop,getPixelForValue:c.noop,getValueForPixel:c.noop,getPixelForTick:function(e){var t=this,n=t.options.offset;if(t.isHorizontal()){var i=t.width-(t.paddingLeft+t.paddingRight),r=i/Math.max(t._ticks.length-(n?0:1),1),o=r*e+t.paddingLeft;n&&(o+=r/2);var a=t.left+Math.round(o);return a+=t.isFullWidth()?t.margins.left:0}var s=t.height-(t.paddingTop+t.paddingBottom);return t.top+e*(s/(t._ticks.length-1))},getPixelForDecimal:function(e){var t=this;if(t.isHorizontal()){var n=t.width-(t.paddingLeft+t.paddingRight),i=n*e+t.paddingLeft,r=t.left+Math.round(i);return r+=t.isFullWidth()?t.margins.left:0}return t.top+e*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,n=e.max;return e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0},_autoSkip:function(e){var t,n,i,r,o,a=this,s=a.isHorizontal(),l=a.options.ticks.minor,u=e.length,d=c.toRadians(a.labelRotation),h=Math.cos(d),f=a.longestLabelWidth*h,p=[];for(l.maxTicksLimit&&(o=l.maxTicksLimit),s&&(t=!1,(f+l.autoSkipPadding)*u>a.width-(a.paddingLeft+a.paddingRight)&&(t=1+Math.floor((f+l.autoSkipPadding)*u/(a.width-(a.paddingLeft+a.paddingRight)))),o&&u>o&&(t=Math.max(t,Math.floor(u/o)))),n=0;n1&&n%t>0||n%t==0&&n+t>=u,r&&n!==u-1&&delete i.label,p.push(i);return p},draw:function(e){var t=this,n=t.options;if(n.display){var i=t.ctx,o=l.global,u=n.ticks.minor,d=n.ticks.major||u,h=n.gridLines,f=n.scaleLabel,p=0!==t.labelRotation,m=t.isHorizontal(),g=u.autoSkip?t._autoSkip(t.getTicks()):t.getTicks(),v=c.valueOrDefault(u.fontColor,o.defaultFontColor),y=a(u),b=c.valueOrDefault(d.fontColor,o.defaultFontColor),_=a(d),x=h.drawTicks?h.tickMarkLength:0,w=c.valueOrDefault(f.fontColor,o.defaultFontColor),M=a(f),S=c.options.toPadding(f.padding),E=c.toRadians(t.labelRotation),T=[],k=t.options.gridLines.lineWidth,O="right"===n.position?t.left:t.right-k-x,C="right"===n.position?t.left+x:t.right,P="bottom"===n.position?t.top+k:t.bottom-x-k,A="bottom"===n.position?t.top+k+x:t.bottom+k;if(c.each(g,function(i,a){if(!c.isNullOrUndef(i.label)){var s,l,d,f,v=i.label;a===t.zeroLineIndex&&n.offset===h.offsetGridLines?(s=h.zeroLineWidth,l=h.zeroLineColor,d=h.zeroLineBorderDash,f=h.zeroLineBorderDashOffset):(s=c.valueAtIndexOrDefault(h.lineWidth,a),l=c.valueAtIndexOrDefault(h.color,a),d=c.valueOrDefault(h.borderDash,o.borderDash),f=c.valueOrDefault(h.borderDashOffset,o.borderDashOffset));var y,b,_,w,M,S,R,L,I,D,N="middle",B="middle",z=u.padding;if(m){var F=x+z;"bottom"===n.position?(B=p?"middle":"top",N=p?"right":"center",D=t.top+F):(B=p?"middle":"bottom",N=p?"left":"center",D=t.bottom-F);var j=r(t,a,h.offsetGridLines&&g.length>1);j1);G3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var o=i.log10(Math.abs(r)),a="";if(0!==e){if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var s=i.log10(Math.abs(e));a=e.toExponential(Math.floor(s)-Math.floor(o))}else{var l=-1*Math.floor(o);l=Math.max(Math.min(l,20),0),a=e.toFixed(l)}}else a="0";return a},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(i.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():""}}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(33),r=n(166),o=n(164),a=n(30),s=n(84),l=n(121),u={},c={},t=e.exports=function(e,t,n,d,h){var f,p,m,g,v=h?function(){return e}:l(e),y=i(n,d,t?2:1),b=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(f=s(e.length);f>b;b++)if((g=t?y(a(p=e[b])[0],p[1]):y(e[b]))===u||g===c)return g}else for(m=v.call(e);!(p=m.next()).done;)if((g=r(m,y,p.value,t))===u||g===c)return g};t.BREAK=u,t.RETURN=c},function(e,t){e.exports=!0},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(25).f,r=n(46),o=n(18)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},function(e,t,n){n(412);for(var i=n(17),r=n(41),o=n(50),a=n(18)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l=t)return!0;return!1},r.isReservedName=function(e,t){if(e)for(var n=0;n0;){var i=e.shift();if(n.nested&&n.nested[i]){if(!((n=n.nested[i])instanceof r))throw Error("path conflicts with non-namespace objects")}else n.add(n=new r(i))}return t&&n.addJSON(t),n},r.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t-1)return i}else if(i instanceof r&&(i=i.lookup(e.slice(1),t,!0)))return i}else for(var o=0;o=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),o.alloc(+e)}function g(e,t){if(o.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 i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(i)return V(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,n){var i=!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,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function y(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function b(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=o.from(t,i)),o.isBuffer(t))return 0===t.length?-1:_(e,t,n,i,r);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,i,r){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}var u;if(r){var c=-1;for(u=n;us&&(n=s-l),u=n;u>=0;u--){for(var d=!0,h=0;hr&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(r+s<=n){var l,u,c,d;switch(s){case 1:o<128&&(a=o);break;case 2:l=e[r+1],128==(192&l)&&(d=(31&o)<<6|63&l)>127&&(a=d);break;case 3:l=e[r+1],u=e[r+2],128==(192&l)&&128==(192&u)&&(d=(15&o)<<12|(63&l)<<6|63&u)>2047&&(d<55296||d>57343)&&(a=d);break;case 4:l=e[r+1],u=e[r+2],c=e[r+3],128==(192&l)&&128==(192&u)&&128==(192&c)&&(d=(15&o)<<18|(63&l)<<12|(63&u)<<6|63&c)>65535&&d<1114112&&(a=d)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|1023&a),i.push(a),r+=s}return C(i)}function C(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var n="",i=0;ii)&&(n=i);for(var r="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,i,r,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function N(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r>>8*(i?r:1-r)}function B(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r>>8*(i?r:3-r)&255}function z(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,i,r){return r||z(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),J.write(e,t,n,i,23,4),n+4}function j(e,t,n,i,r){return r||z(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),J.write(e,t,n,i,52,8),n+8}function U(e){if(e=W(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function W(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function V(e,t){t=t||1/0;for(var n,i=e.length,r=null,o=[],a=0;a55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){for(var t=[],n=0;n>8,r=n%256,o.push(r),o.push(i);return o}function Y(e){return Z.toByteArray(U(e))}function X(e,t,n,i){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}function K(e){return e!==e}/*! +var tn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},nn=function(){function e(e){void 0===e&&(e="Atom@"+Ee()),this.name=e,this.isPendingUnobservation=!0,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Jn.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.reportObserved=function(){ht(this)},e.prototype.reportChanged=function(){ct(),ft(this),dt()},e.prototype.toString=function(){return this.name},e}(),rn=function(e){function t(t,n,i){void 0===t&&(t="Atom@"+Ee()),void 0===n&&(n=Wn),void 0===i&&(i=Wn);var r=e.call(this,t)||this;return r.name=t,r.onBecomeObservedHandler=n,r.onBecomeUnobservedHandler=i,r.isPendingUnobservation=!1,r.isBeingTracked=!1,r}return i(t,e),t.prototype.reportObserved=function(){return ct(),e.prototype.reportObserved.call(this),this.isBeingTracked||(this.isBeingTracked=!0,this.onBecomeObservedHandler()),dt(),!!qn.trackingDerivation},t.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},t}(nn),on=je("Atom",nn),an={spyReportEnd:!0},sn="__$$iterating",ln=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),un=0,cn=function(){function e(){}return e}();!function(e,t){void 0!==Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):void 0!==e.prototype.__proto__?e.prototype.__proto__=t:e.prototype=t}(cn,Array.prototype),Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach(function(e){Object.defineProperty(cn.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})});var dn=function(){function e(e,t,n,i){this.array=n,this.owned=i,this.values=[],this.lastKnownLength=0,this.interceptors=null,this.changeListeners=null,this.atom=new nn(e||"ObservableArray@"+Ee()),this.enhancer=function(n,i){return t(n,i,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer?e.map(this.dehancer):e},e.prototype.intercept=function(e){return o(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),l(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] 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&&e+t+1>un&&_(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var i=this;xt(this.atom);var o=this.values.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:void 0===t||null===t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=[]),r(this)){var s=a(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!s)return jn;t=s.removedCount,n=s.added}n=n.map(function(e){return i.enhancer(e,void 0)});var l=n.length-t;this.updateArrayLength(o,l);var u=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,u),this.dehanceValues(u)},e.prototype.spliceItemsIntoValues=function(e,t,n){if(n.length<1e4)return(r=this.values).splice.apply(r,[e,t].concat(n));var i=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),i;var r},e.prototype.notifyArrayChildUpdate=function(e,t,n){var i=!this.owned&&c(),r=s(this),o=r||i?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;i&&h(o),this.atom.reportChanged(),r&&u(this,o),i&&f()},e.prototype.notifyArraySplice=function(e,t,n){var i=!this.owned&&c(),r=s(this),o=r||i?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;i&&h(o),this.atom.reportChanged(),r&&u(this,o),i&&f()},e}(),hn=function(e){function t(t,n,i,r){void 0===i&&(i="ObservableArray@"+Ee()),void 0===r&&(r=!1);var o=e.call(this)||this,a=new dn(i,n,o,r);return Be(o,"$mobx",a),t&&t.length&&o.spliceWithArray(0,0,t),ln&&Object.defineProperty(a.array,"0",fn),o}return i(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var i,r=this.$mobx.values;i=e";Ne(e,t,xn(o,n))},function(e){return this[e]},function(){ke(!1,w("m001"))},!1,!0),_n=R(function(e,t,n){F(e,t,n)},function(e){return this[e]},function(){ke(!1,w("m001"))},!1,!1),xn=function(e,t,n,i){return 1===arguments.length&&"function"==typeof e?M(e.name||"",e):2===arguments.length&&"function"==typeof t?M(e,t):1===arguments.length&&"string"==typeof e?N(e):N(t).apply(null,arguments)};xn.bound=function(e,t,n){if("function"==typeof e){var i=M("",e);return i.autoBind=!0,i}return _n.apply(null,arguments)};var wn=Object.prototype.toString,Mn={identity:H,structural:q,default:Y},Sn=function(){function e(e,t,n,i,r){this.derivation=e,this.scope=t,this.equals=n,this.dependenciesState=Jn.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Jn.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+Ee(),this.value=new $n(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Qn.NONE,this.name=i||"ComputedValue@"+Ee(),r&&(this.setter=M(i+"-setter",r))}return e.prototype.onBecomeStale=function(){mt(this)},e.prototype.onBecomeUnobserved=function(){St(this),this.value=void 0},e.prototype.get=function(){ke(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),0===qn.inBatch?(ct(),bt(this)&&(this.isTracing!==Qn.NONE&&console.log("[mobx.trace] '"+this.name+"' is being read outside a reactive context and doing a full recompute"),this.value=this.computeValue(!1)),dt()):(ht(this),bt(this)&&this.trackAndCompute()&&pt(this));var e=this.value;if(yt(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(yt(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){ke(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else ke(!1,"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},e.prototype.trackAndCompute=function(){c()&&d({object:this.scope,type:"compute",fn:this.derivation});var e=this.value,t=this.dependenciesState===Jn.NOT_TRACKING,n=this.value=this.computeValue(!0);return t||yt(e)||yt(n)||!this.equals(e,n)},e.prototype.computeValue=function(e){this.isComputing=!0,qn.computationDepth++;var t;if(e)t=wt(this,this.derivation,this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new $n(e)}return qn.computationDepth--,this.isComputing=!1,t},e.prototype.observe=function(e,t){var n=this,i=!0,r=void 0;return X(function(){var o=n.get();if(!i||t){var a=Tt();e({type:"update",object:n,newValue:o,oldValue:r}),kt(a)}i=!1,r=o})},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return Ye(this.get())},e.prototype.whyRun=function(){var e=Boolean(qn.trackingDerivation),t=Pe(this.isComputing?this.newObserving:this.observing).map(function(e){return e.name}),n=Pe(at(this).map(function(e){return e.name}));return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+(e?"[active] the value of this computation is needed by a reaction":this.isComputing?"[get] The value of this computed was requested outside a reaction":"[idle] not running at the moment")+"\n"+(this.dependenciesState===Jn.NOT_TRACKING?w("m032"):" * This computation will re-run if any of the following observables changes:\n "+Ae(t)+"\n "+(this.isComputing&&e?" (... or any observable accessed during the remainder of the current run)":"")+"\n "+w("m038")+"\n\n * If the outcome of this computation changes, the following observers will be re-run:\n "+Ae(n)+"\n")},e}();Sn.prototype[qe()]=Sn.prototype.valueOf;var En=je("ComputedValue",Sn),Tn=function(){function e(e,t){this.target=e,this.name=t,this.values={},this.changeListeners=null,this.interceptors=null}return e.prototype.observe=function(e,t){return ke(!0!==t,"`observe` doesn't support the fire immediately property for observable objects."),l(this,e)},e.prototype.intercept=function(e){return o(this,e)},e}(),kn={},On={},Cn=je("ObservableObjectAdministration",Tn),Pn=ue(ve),An=ue(ye),Rn=ue(be),Ln=ue(_e),In=ue(xe),Dn={box:function(e,t){return arguments.length>2&&pe("box"),new gn(e,ve,t)},shallowBox:function(e,t){return arguments.length>2&&pe("shallowBox"),new gn(e,be,t)},array:function(e,t){return arguments.length>2&&pe("array"),new hn(e,ve,t)},shallowArray:function(e,t){return arguments.length>2&&pe("shallowArray"),new hn(e,be,t)},map:function(e,t){return arguments.length>2&&pe("map"),new zn(e,ve,t)},shallowMap:function(e,t){return arguments.length>2&&pe("shallowMap"),new zn(e,be,t)},object:function(e,t){arguments.length>2&&pe("object");var n={};return Q(n,t),ce(n,e),n},shallowObject:function(e,t){arguments.length>2&&pe("shallowObject");var n={};return Q(n,t),de(n,e),n},ref:function(){return arguments.length<2?ge(be,arguments[0]):Rn.apply(null,arguments)},shallow:function(){return arguments.length<2?ge(ye,arguments[0]):An.apply(null,arguments)},deep:function(){return arguments.length<2?ge(ve,arguments[0]):Pn.apply(null,arguments)},struct:function(){return arguments.length<2?ge(_e,arguments[0]):Ln.apply(null,arguments)}},Nn=fe;Object.keys(Dn).forEach(function(e){return Nn[e]=Dn[e]}),Nn.deep.struct=Nn.struct,Nn.ref.struct=function(){return arguments.length<2?ge(xe,arguments[0]):In.apply(null,arguments)};var Bn={},zn=function(){function e(e,t,n){void 0===t&&(t=ve),void 0===n&&(n="ObservableMap@"+Ee()),this.enhancer=t,this.name=n,this.$mobx=Bn,this._data=Object.create(null),this._hasMap=Object.create(null),this._keys=new hn(void 0,be,this.name+".keys()",!0),this.interceptors=null,this.changeListeners=null,this.dehancer=void 0,this.merge(e)}return e.prototype._has=function(e){return void 0!==this._data[e]},e.prototype.has=function(e){return!!this.isValidKey(e)&&(e=""+e,this._hasMap[e]?this._hasMap[e].get():this._updateHasMapEntry(e,!1).get())},e.prototype.set=function(e,t){this.assertValidKey(e),e=""+e;var n=this._has(e);if(r(this)){var i=a(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!i)return this;t=i.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(this.assertValidKey(e),e=""+e,r(this)){var n=a(this,{type:"delete",object:this,name:e});if(!n)return!1}if(this._has(e)){var i=c(),o=s(this),n=o||i?{type:"delete",object:this,oldValue:this._data[e].value,name:e}:null;return i&&h(n),we(function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data[e].setNewValue(void 0),t._data[e]=void 0}),o&&u(this,n),i&&f(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap[e];return n?n.setNewValue(t):n=this._hasMap[e]=new gn(t,be,this.name+"."+e+"?",!1),n},e.prototype._updateValue=function(e,t){var n=this._data[e];if((t=n.prepareNewValue(t))!==mn){var i=c(),r=s(this),o=r||i?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;i&&h(o),n.setNewValue(t),r&&u(this,o),i&&f()}},e.prototype._addValue=function(e,t){var n=this;we(function(){var i=n._data[e]=new gn(t,n.enhancer,n.name+"."+e,!1);t=i.value,n._updateHasMapEntry(e,!0),n._keys.push(e)});var i=c(),r=s(this),o=r||i?{type:"add",object:this,name:e,newValue:t}:null;i&&h(o),r&&u(this,o),i&&f()},e.prototype.get=function(e){return e=""+e,this.has(e)?this.dehanceValue(this._data[e].get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return g(this._keys.slice())},e.prototype.values=function(){return g(this._keys.map(this.get,this))},e.prototype.entries=function(){var e=this;return g(this._keys.map(function(t){return[t,e.get(t)]}))},e.prototype.forEach=function(e,t){var n=this;this.keys().forEach(function(i){return e.call(t,n.get(i),i,n)})},e.prototype.merge=function(e){var t=this;return Fn(e)&&(e=e.toJS()),we(function(){Le(e)?Object.keys(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=e[0],i=e[1];return t.set(n,i)}):Ge(e)?e.forEach(function(e,n){return t.set(n,e)}):null!==e&&void 0!==e&&Te("Cannot initialize map from "+e)}),this},e.prototype.clear=function(){var e=this;we(function(){Et(function(){e.keys().forEach(e.delete,e)})})},e.prototype.replace=function(e){var t=this;return we(function(){var n=Ve(e);t.keys().filter(function(e){return-1===n.indexOf(e)}).forEach(function(e){return t.delete(e)}),t.merge(e)}),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toJS=function(){var e=this,t={};return this.keys().forEach(function(n){return t[n]=e.get(n)}),t},e.prototype.toJSON=function(){return this.toJS()},e.prototype.isValidKey=function(e){return null!==e&&void 0!==e&&("string"==typeof e||"number"==typeof e||"boolean"==typeof e)},e.prototype.assertValidKey=function(e){if(!this.isValidKey(e))throw new Error("[mobx.map] Invalid key: '"+e+"', only strings, numbers and booleans are accepted as key in observable maps.")},e.prototype.toString=function(){var e=this;return this.name+"[{ "+this.keys().map(function(t){return t+": "+e.get(t)}).join(", ")+" }]"},e.prototype.observe=function(e,t){return ke(!0!==t,w("m033")),l(this,e)},e.prototype.intercept=function(e){return o(this,e)},e}();v(zn.prototype,function(){return this.entries()});var Fn=je("ObservableMap",zn),jn=[];Object.freeze(jn);var Un=[],Wn=function(){},Gn=Object.prototype.hasOwnProperty,Vn=["mobxGuid","resetId","spyListeners","strictMode","runId"],Hn=function(){function e(){this.version=5,this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[],this.globalReactionErrorHandlers=[]}return e}(),qn=new Hn,Yn=!1,Xn=!1,Kn=!1,Zn=Se();Zn.__mobxInstanceCount?(Zn.__mobxInstanceCount++,setTimeout(function(){Yn||Xn||Kn||(Kn=!0,console.warn("[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details."))},1)):Zn.__mobxInstanceCount=1;var Jn;!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"}(Jn||(Jn={}));var Qn;!function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Qn||(Qn={}));var $n=function(){function e(e){this.cause=e}return e}(),ei=function(){function e(e,t){void 0===e&&(e="Reaction@"+Ee()),this.name=e,this.onInvalidate=t,this.observing=[],this.newObserving=[],this.dependenciesState=Jn.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+Ee(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Qn.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,qn.pendingReactions.push(this),Dt())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(ct(),this._isScheduled=!1,bt(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&c()&&d({object:this,type:"scheduled-reaction"})),dt())},e.prototype.track=function(e){ct();var t,n=c();n&&(t=Date.now(),h({object:this,type:"reaction",fn:e})),this._isRunning=!0;var i=wt(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&St(this),yt(i)&&this.reportExceptionInDerivation(i.cause),n&&f({time:Date.now()-t}),dt()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)return void this.errorHandler(e,this);var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this,i=w("m037");console.error(n||i,e),c()&&d({type:"error",message:n,error:e,object:this}),qn.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(ct(),St(this),dt()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e.onError=Lt,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.whyRun=function(){var e=Pe(this._isRunning?this.newObserving:this.observing).map(function(e){return e.name});return"\nWhyRun? reaction '"+this.name+"':\n * Status: ["+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+"]\n * This reaction will re-run if any of the following observables changes:\n "+Ae(e)+"\n "+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+"\n\t"+w("m038")+"\n"},e.prototype.trace=function(e){void 0===e&&(e=!1),At(this,e)},e}(),ti=100,ni=function(e){return e()},ii=je("Reaction",ei),ri=Wt(Mn.default),oi=Wt(Mn.structural),ai=function(e,t,n){if("string"==typeof t)return ri.apply(null,arguments);ke("function"==typeof e,w("m011")),ke(arguments.length<3,w("m012"));var i="object"==typeof t?t:{};i.setter="function"==typeof t?t:i.setter;var r=i.equals?i.equals:i.compareStructural||i.struct?Mn.structural:Mn.default;return new Sn(e,i.context,r,i.name||e.name||"",i.setter)};ai.struct=oi,ai.equals=Wt;var si={allowStateChanges:C,deepEqual:j,getAtom:Qe,getDebugName:et,getDependencyTree:tt,getAdministration:$e,getGlobalState:Ze,getObserverTree:it,interceptReads:en,isComputingDerivation:_t,isSpyEnabled:c,onReactionError:It,reserveArrayBuffer:_,resetGlobalState:Je,isolateGlobalState:Xe,shareGlobalState:Ke,spyReport:d,spyReportEnd:f,spyReportStart:h,setReactionScheduler:Bt},li={Reaction:ei,untracked:Et,Atom:rn,BaseAtom:nn,useStrict:k,isStrictModeEnabled:O,spy:p,comparer:Mn,asReference:zt,asFlat:jt,asStructure:Ft,asMap:Ut,isModifierDescriptor:me,isObservableObject:se,isBoxedObservable:vn,isObservableArray:x,ObservableMap:zn,isObservableMap:Fn,map:Me,transaction:we,observable:Nn,computed:ai,isObservable:le,isComputed:Gt,extendObservable:ce,extendShallowObservable:de,observe:Vt,intercept:Yt,autorun:X,autorunAsync:Z,when:K,reaction:J,action:xn,isAction:z,runInAction:B,expr:Zt,toJS:Jt,createTransformer:Qt,whyRun:Pt,isArrayLike:We,extras:si},ui=!1;for(var ci in li)!function(e){var t=li[e];Object.defineProperty(li,e,{get:function(){return ui||(ui=!0,console.warn("Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in mobx@4.0.0\nUse `import * as mobx from 'mobx'` instead")),t}})}(ci);"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:p,extras:si}),t.default=li}.call(t,n(28))},function(e,t,n){e.exports={default:n(376),__esModule:!0}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var i=n(30),r=n(163),o=n(118),a=Object.defineProperty;t.f=n(31)?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){e.exports=n(546)()},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function i(e,t,n,i){var o,a,s,l,u,c,d,h,f,p=Object.keys(n);for(o=0,a=p.length;o0)},o.Buffer=function(){try{var e=o.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(e){return"number"==typeof e?o.Buffer?o._Buffer_allocUnsafe(e):new o.Array(e):o.Buffer?o._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},o.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire("long"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(e){return e?o.LongBits.from(e).toHash():o.LongBits.zeroHash},o.longFromHash=function(e,t){var n=o.LongBits.fromHash(e);return o.Long?o.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},o.merge=i,o.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},o.newError=r,o.ProtocolError=r("ProtocolError"),o.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},o.oneOfSetter=function(e){return function(t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2];this.coordinates.isInitialized()&&!n||this.coordinates.initialize(e,t)}},{key:"updateDimension",value:function(e,t){this.camera.aspect=e/t,this.camera.updateProjectionMatrix(),this.renderer.setSize(e,t),this.dimension.width=e,this.dimension.height=t}},{key:"enableOrbitControls",value:function(){var e=this.adc.mesh.position;this.controls.enabled=!0,this.controls.enableRotate=!1,this.controls.reset(),this.controls.minDistance=20,this.controls.maxDistance=1e3,this.controls.target.set(e.x,e.y,0),this.camera.position.set(e.x,e.y,50),"FLU"===this.coordinates.systemName?this.camera.up.set(1,0,0):this.camera.up.set(0,1,0),this.camera.lookAt(e.x,e.y,0)}},{key:"adjustCamera",value:function(e,t){if(!this.routingEditor.isInEditingMode()){switch(this.camera.fov=PARAMETERS.camera[t].fov,this.camera.near=PARAMETERS.camera[t].near,this.camera.far=PARAMETERS.camera[t].far,t){case"Default":var n=this.viewDistance*Math.cos(e.rotation.y)*Math.cos(this.viewAngle),i=this.viewDistance*Math.sin(e.rotation.y)*Math.cos(this.viewAngle),r=this.viewDistance*Math.sin(this.viewAngle);this.camera.position.x=e.position.x-n,this.camera.position.y=e.position.y-i,this.camera.position.z=e.position.z+r,this.camera.up.set(0,0,1),this.camera.lookAt({x:e.position.x+2*n,y:e.position.y+2*i,z:0}),this.controls.enabled=!1;break;case"Near":n=.5*this.viewDistance*Math.cos(e.rotation.y)*Math.cos(this.viewAngle),i=.5*this.viewDistance*Math.sin(e.rotation.y)*Math.cos(this.viewAngle),r=.5*this.viewDistance*Math.sin(this.viewAngle),this.camera.position.x=e.position.x-n,this.camera.position.y=e.position.y-i,this.camera.position.z=e.position.z+r,this.camera.up.set(0,0,1),this.camera.lookAt({x:e.position.x+2*n,y:e.position.y+2*i,z:0}),this.controls.enabled=!1;break;case"Overhead":i=.5*this.viewDistance*Math.sin(e.rotation.y)*Math.cos(this.viewAngle),r=2*this.viewDistance*Math.sin(this.viewAngle),this.camera.position.x=e.position.x,this.camera.position.y=e.position.y+i,this.camera.position.z=2*(e.position.z+r),"FLU"===this.coordinates.systemName?this.camera.up.set(1,0,0):this.camera.up.set(0,1,0),this.camera.lookAt({x:e.position.x,y:e.position.y+i,z:0}),this.controls.enabled=!1;break;case"Map":this.controls.enabled||this.enableOrbitControls()}this.camera.updateProjectionMatrix()}}},{key:"enableRouteEditing",value:function(){this.enableOrbitControls(),this.routingEditor.enableEditingMode(this.camera,this.adc),document.getElementById(this.canvasId).addEventListener("mousedown",this.onMouseDownHandler,!1)}},{key:"disableRouteEditing",value:function(){this.routingEditor.disableEditingMode(this.scene),document.getElementById(this.canvasId).removeEventListener("mousedown",this.onMouseDownHandler,!1)}},{key:"addDefaultEndPoint",value:function(e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1]&&this.map.removeAllElements(this.scene),this.map.appendMapData(e,this.coordinates,this.scene)}},{key:"updatePointCloud",value:function(e){this.coordinates.isInitialized()&&this.adc.mesh&&this.pointCloud.update(e,this.adc.mesh)}},{key:"updateMapIndex",value:function(e,t,n){this.routingEditor.isInEditingMode()&&PARAMETERS.routingEditor.radiusOfMapRequest!==n||this.map.updateIndex(e,t,this.scene)}},{key:"isMobileDevice",value:function(){return navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)}},{key:"getGeolocation",value:function(e){if(this.coordinates.isInitialized()){var t=e.currentTarget.getBoundingClientRect(),n=new u.Vector3((e.clientX-t.left)/this.dimension.width*2-1,-(e.clientY-t.top)/this.dimension.height*2+1,0);n.unproject(this.camera);var i=n.sub(this.camera.position).normalize(),r=-this.camera.position.z/i.z,o=this.camera.position.clone().add(i.multiplyScalar(r));return this.coordinates.applyOffset(o,!0)}}},{key:"getMouseOverLanes",value:function(e){var t=e.currentTarget.getBoundingClientRect(),n=new u.Vector3((e.clientX-t.left)/this.dimension.width*2-1,-(e.clientY-t.top)/this.dimension.height*2+1,0),i=new u.Raycaster;i.setFromCamera(n,this.camera);var r=this.map.data.lane.reduce(function(e,t){return e.concat(t.drewObjects)},[]);return i.intersectObjects(r).map(function(e){return e.object.name})}}]),e}()),j=new F;t.default=j},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(t){var n=t*w;e.position.z+=n}}function o(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=new g.MeshBasicMaterial({map:E.load(e),transparent:!0,depthWrite:!1}),s=new g.Mesh(new g.PlaneGeometry(t,n),a);return s.material.side=g.DoubleSide,s.position.set(i,r,o),s.overdraw=!0,s}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16711680,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],l=new g.Path,u=l.createGeometry(e);u.computeLineDistances();var c=new g.LineDashedMaterial({color:t,dashSize:i,linewidth:n,gapSize:o}),d=new g.Line(u,c);return r(d,a),d.matrixAutoUpdate=s,s||d.updateMatrix(),d}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,i=new g.CircleGeometry(e,n);return new g.Mesh(i,t)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16777215,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=M(e.map(function(e){return[e.x,e.y]})),s=new g.ShaderMaterial(S({side:g.DoubleSide,diffuse:n,thickness:t,opacity:i,transparent:!0})),l=new g.Mesh(a,s);return r(l,o),l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16711680,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,l=new g.Path,u=l.createGeometry(e),c=new g.LineBasicMaterial({color:t,linewidth:n,transparent:a,opacity:s}),d=new g.Line(u,c);return r(d,i),d.matrixAutoUpdate=o,!1===o&&d.updateMatrix(),d}function c(e,t,n){var i=new g.CubeGeometry(e.x,e.y,e.z),r=new g.MeshBasicMaterial({color:t}),o=new g.Mesh(i,r),a=new g.BoxHelper(o);return a.material.linewidth=n,a}function d(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.01,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.02,o=new g.CubeGeometry(e.x,e.y,e.z);o=new g.EdgesGeometry(o),o=(new g.Geometry).fromBufferGeometry(o),o.computeLineDistances();var a=new g.LineDashedMaterial({color:t,linewidth:n,dashSize:i,gapSize:r});return new g.LineSegments(o,a)}function h(e,t,n,i,r){var o=new g.Vector3(0,e,0);return u([new g.Vector3(0,0,0),o,new g.Vector3(i/2,e-n,0),o,new g.Vector3(-i/2,e-n,0)],r,t,1)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new g.Shape;if(t){n.moveTo(e[0].x,e[0].y);for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:new g.MeshBasicMaterial({color:16711680}),n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=f(e,n),s=new g.Mesh(a,t);return r(s,i),s.matrixAutoUpdate=o,!1===o&&s.updateMatrix(),s}Object.defineProperty(t,"__esModule",{value:!0}),t.addOffsetZ=r,t.drawImage=o,t.drawDashedLineFromPoints=a,t.drawCircle=s,t.drawThickBandFromPoints=l,t.drawSegmentsFromPoints=u,t.drawBox=c,t.drawDashedBox=d,t.drawArrow=h,t.getShapeGeometryFromPoints=f,t.drawShapeFromPoints=p;var m=n(12),g=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(m),v=n(599),y=i(v),b=n(600),_=i(b),x=n(20),w=.04,M=(0,y.default)(g),S=(0,_.default)(g),E=new g.TextureLoader},function(e,t,n){"use strict";var i=n(9),r=n(6),o=n(58);e.exports={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=r.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?r.merge({},[i.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var n=this;n.defaults.hasOwnProperty(e)&&(n.defaults[e]=r.extend(n.defaults[e],t))},addScalesToLayout:function(e){r.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,o.addBox(e,t)})}}},function(e,t,n){"use strict";e.exports={},e.exports.Arc=n(343),e.exports.Line=n(344),e.exports.Point=n(345),e.exports.Rectangle=n(346)},function(e,t,n){var i=n(25),r=n(66);e.exports=n(31)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(107),r=n(104);e.exports=function(e){return i(r(e))}},function(e,t,n){"use strict";function i(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e.constructor===Array&&e.length>0)for(;t1&&void 0!==arguments[1]&&arguments[1],n=new Date(e),i=n.getHours(),r=n.getMinutes(),o=n.getSeconds();i=i<10?"0"+i:i,r=r<10?"0"+r:r,o=o<10?"0"+o:o;var a=i+":"+r+":"+o;if(t){var s=n.getMilliseconds();s<10?s="00"+s:s<100&&(s="0"+s),a+=":"+s}return a}function s(e,t){if(!e||!t)return[];for(var n=e.positionX,i=e.positionY,r=e.heading,o=t.c0Position,a=t.c1HeadingAngle,s=t.c2Curvature,l=t.c3CurvatureDerivative,c=t.viewRange,d=[l,s,a,o],h=[],f=0;f=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";t.a=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)}},function(e,t,n){"use strict";t.a=function(e,t,n){var i=e*t;return n/Math.sqrt(1-i*i)}},function(e,t,n){"use strict";function i(e,t,n,i,o,a,c){if(l.isObject(i)?(c=o,a=i,i=o=void 0):l.isObject(o)&&(c=a,a=o,o=void 0),r.call(this,e,a),!l.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!l.isString(n))throw TypeError("type must be a string");if(void 0!==i&&!u.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==o&&!l.isString(o))throw TypeError("extend must be a string");this.rule=i&&"optional"!==i?i:void 0,this.type=n,this.id=t,this.extend=o||void 0,this.required="required"===i,this.optional=!this.required,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!l.Long&&void 0!==s.long[n],this.bytes="bytes"===n,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=c}e.exports=i;var r=n(57);((i.prototype=Object.create(r.prototype)).constructor=i).className="Field";var o,a=n(35),s=n(76),l=n(16),u=/^required|optional|repeated$/;i.fromJSON=function(e,t){return new i(e,t.id,t.type,t.rule,t.extend,t.options,t.comment)},Object.defineProperty(i.prototype,"packed",{get:function(){return null===this._packed&&(this._packed=!1!==this.getOption("packed")),this._packed}}),i.prototype.setOption=function(e,t,n){return"packed"===e&&(this._packed=null),r.prototype.setOption.call(this,e,t,n)},i.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return l.toObject(["rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},i.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])&&(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof a&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof a)||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=l.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;l.base64.test(this.typeDefault)?l.base64.decode(this.typeDefault,e=l.newBuffer(l.base64.length(this.typeDefault)),0):l.utf8.write(this.typeDefault,e=l.newBuffer(l.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=l.emptyObject:this.repeated?this.defaultValue=l.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),r.prototype.resolve.call(this)},i.d=function(e,t,n,r){return"function"==typeof t?t=l.decorateType(t).name:t&&"object"==typeof t&&(t=l.decorateEnum(t).name),function(o,a){l.decorateType(o.constructor).add(new i(a,e,t,n,{default:r}))}},i._configure=function(e){o=e}},function(e,t,n){"use strict";function i(e,t){if(!o.isString(e))throw TypeError("name must be a string");if(t&&!o.isObject(t))throw TypeError("options must be an object");this.options=t,this.name=e,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}e.exports=i,i.className="ReflectionObject";var r,o=n(16);Object.defineProperties(i.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),i.prototype.toJSON=function(){throw Error()},i.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof r&&t._handleAdd(this)},i.prototype.onRemove=function(e){var t=e.root;t instanceof r&&t._handleRemove(this),this.parent=null,this.resolved=!1},i.prototype.resolve=function(){return this.resolved?this:(this.root instanceof r&&(this.resolved=!0),this)},i.prototype.getOption=function(e){if(this.options)return this.options[e]},i.prototype.setOption=function(e,t,n){return n&&this.options&&void 0!==this.options[e]||((this.options||(this.options={}))[e]=t),this},i.prototype.setOptions=function(e,t){if(e)for(var n=Object.keys(e),i=0;ih&&se.maxHeight){s--;break}s++,d=l*u}e.labelRotation=s},afterCalculateTickRotation:function(){c.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){c.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=i(e._ticks),r=e.options,l=r.ticks,u=r.scaleLabel,d=r.gridLines,h=r.display,f=e.isHorizontal(),p=a(l),m=r.gridLines.tickMarkLength;if(t.width=f?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:h&&d.drawTicks?m:0,t.height=f?h&&d.drawTicks?m:0:e.maxHeight,u.display&&h){var g=s(u),v=c.options.toPadding(u.padding),y=g+v.height;f?t.height+=y:t.width+=y}if(l.display&&h){var b=c.longestText(e.ctx,p.font,n,e.longestTextCache),_=c.numberOfLabelLines(n),x=.5*p.size,w=e.options.ticks.padding;if(f){e.longestLabelWidth=b;var M=c.toRadians(e.labelRotation),S=Math.cos(M),E=Math.sin(M),T=E*b+p.size*_+x*(_-1)+x;t.height=Math.min(e.maxHeight,t.height+T+w),e.ctx.font=p.font;var k=o(e.ctx,n[0],p.font),O=o(e.ctx,n[n.length-1],p.font);0!==e.labelRotation?(e.paddingLeft="bottom"===r.position?S*k+3:S*x+3,e.paddingRight="bottom"===r.position?S*x+3:S*O+3):(e.paddingLeft=k/2+3,e.paddingRight=O/2+3)}else l.mirror?b=0:b+=w+x,t.width=Math.min(e.maxWidth,t.width+b),e.paddingTop=p.size/2,e.paddingBottom=p.size/2}e.handleMargins(),e.width=t.width,e.height=t.height},handleMargins:function(){var e=this;e.margins&&(e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0),e.paddingTop=Math.max(e.paddingTop-e.margins.top,0),e.paddingRight=Math.max(e.paddingRight-e.margins.right,0),e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0))},afterFit:function(){c.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(c.isNullOrUndef(e))return NaN;if("number"==typeof e&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},getLabelForIndex:c.noop,getPixelForValue:c.noop,getValueForPixel:c.noop,getPixelForTick:function(e){var t=this,n=t.options.offset;if(t.isHorizontal()){var i=t.width-(t.paddingLeft+t.paddingRight),r=i/Math.max(t._ticks.length-(n?0:1),1),o=r*e+t.paddingLeft;n&&(o+=r/2);var a=t.left+Math.round(o);return a+=t.isFullWidth()?t.margins.left:0}var s=t.height-(t.paddingTop+t.paddingBottom);return t.top+e*(s/(t._ticks.length-1))},getPixelForDecimal:function(e){var t=this;if(t.isHorizontal()){var n=t.width-(t.paddingLeft+t.paddingRight),i=n*e+t.paddingLeft,r=t.left+Math.round(i);return r+=t.isFullWidth()?t.margins.left:0}return t.top+e*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,n=e.max;return e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0},_autoSkip:function(e){var t,n,i,r,o,a=this,s=a.isHorizontal(),l=a.options.ticks.minor,u=e.length,d=c.toRadians(a.labelRotation),h=Math.cos(d),f=a.longestLabelWidth*h,p=[];for(l.maxTicksLimit&&(o=l.maxTicksLimit),s&&(t=!1,(f+l.autoSkipPadding)*u>a.width-(a.paddingLeft+a.paddingRight)&&(t=1+Math.floor((f+l.autoSkipPadding)*u/(a.width-(a.paddingLeft+a.paddingRight)))),o&&u>o&&(t=Math.max(t,Math.floor(u/o)))),n=0;n1&&n%t>0||n%t==0&&n+t>=u,r&&n!==u-1&&delete i.label,p.push(i);return p},draw:function(e){var t=this,n=t.options;if(n.display){var i=t.ctx,o=l.global,u=n.ticks.minor,d=n.ticks.major||u,h=n.gridLines,f=n.scaleLabel,p=0!==t.labelRotation,m=t.isHorizontal(),g=u.autoSkip?t._autoSkip(t.getTicks()):t.getTicks(),v=c.valueOrDefault(u.fontColor,o.defaultFontColor),y=a(u),b=c.valueOrDefault(d.fontColor,o.defaultFontColor),_=a(d),x=h.drawTicks?h.tickMarkLength:0,w=c.valueOrDefault(f.fontColor,o.defaultFontColor),M=a(f),S=c.options.toPadding(f.padding),E=c.toRadians(t.labelRotation),T=[],k=t.options.gridLines.lineWidth,O="right"===n.position?t.left:t.right-k-x,C="right"===n.position?t.left+x:t.right,P="bottom"===n.position?t.top+k:t.bottom-x-k,A="bottom"===n.position?t.top+k+x:t.bottom+k;if(c.each(g,function(i,a){if(!c.isNullOrUndef(i.label)){var s,l,d,f,v=i.label;a===t.zeroLineIndex&&n.offset===h.offsetGridLines?(s=h.zeroLineWidth,l=h.zeroLineColor,d=h.zeroLineBorderDash,f=h.zeroLineBorderDashOffset):(s=c.valueAtIndexOrDefault(h.lineWidth,a),l=c.valueAtIndexOrDefault(h.color,a),d=c.valueOrDefault(h.borderDash,o.borderDash),f=c.valueOrDefault(h.borderDashOffset,o.borderDashOffset));var y,b,_,w,M,S,R,L,I,D,N="middle",B="middle",z=u.padding;if(m){var F=x+z;"bottom"===n.position?(B=p?"middle":"top",N=p?"right":"center",D=t.top+F):(B=p?"middle":"bottom",N=p?"left":"center",D=t.bottom-F);var j=r(t,a,h.offsetGridLines&&g.length>1);j1);G3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var o=i.log10(Math.abs(r)),a="";if(0!==e){if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var s=i.log10(Math.abs(e));a=e.toExponential(Math.floor(s)-Math.floor(o))}else{var l=-1*Math.floor(o);l=Math.max(Math.min(l,20),0),a=e.toFixed(l)}}else a="0";return a},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(i.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():""}}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(33),r=n(166),o=n(164),a=n(30),s=n(84),l=n(121),u={},c={},t=e.exports=function(e,t,n,d,h){var f,p,m,g,v=h?function(){return e}:l(e),y=i(n,d,t?2:1),b=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(f=s(e.length);f>b;b++)if((g=t?y(a(p=e[b])[0],p[1]):y(e[b]))===u||g===c)return g}else for(m=v.call(e);!(p=m.next()).done;)if((g=r(m,y,p.value,t))===u||g===c)return g};t.BREAK=u,t.RETURN=c},function(e,t){e.exports=!0},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(25).f,r=n(46),o=n(18)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},function(e,t,n){n(412);for(var i=n(17),r=n(41),o=n(50),a=n(18)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l=t)return!0;return!1},r.isReservedName=function(e,t){if(e)for(var n=0;n0;){var i=e.shift();if(n.nested&&n.nested[i]){if(!((n=n.nested[i])instanceof r))throw Error("path conflicts with non-namespace objects")}else n.add(n=new r(i))}return t&&n.addJSON(t),n},r.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t-1)return i}else if(i instanceof r&&(i=i.lookup(e.slice(1),t,!0)))return i}else for(var o=0;o=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),o.alloc(+e)}function g(e,t){if(o.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 i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(i)return V(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,n){var i=!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,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function y(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function b(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=o.from(t,i)),o.isBuffer(t))return 0===t.length?-1:_(e,t,n,i,r);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,i,r){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}var u;if(r){var c=-1;for(u=n;us&&(n=s-l),u=n;u>=0;u--){for(var d=!0,h=0;hr&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(r+s<=n){var l,u,c,d;switch(s){case 1:o<128&&(a=o);break;case 2:l=e[r+1],128==(192&l)&&(d=(31&o)<<6|63&l)>127&&(a=d);break;case 3:l=e[r+1],u=e[r+2],128==(192&l)&&128==(192&u)&&(d=(15&o)<<12|(63&l)<<6|63&u)>2047&&(d<55296||d>57343)&&(a=d);break;case 4:l=e[r+1],u=e[r+2],c=e[r+3],128==(192&l)&&128==(192&u)&&128==(192&c)&&(d=(15&o)<<18|(63&l)<<12|(63&u)<<6|63&c)>65535&&d<1114112&&(a=d)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|1023&a),i.push(a),r+=s}return C(i)}function C(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var n="",i=0;ii)&&(n=i);for(var r="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,i,r,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function N(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r>>8*(i?r:1-r)}function B(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r>>8*(i?r:3-r)&255}function z(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,i,r){return r||z(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),J.write(e,t,n,i,23,4),n+4}function j(e,t,n,i,r){return r||z(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),J.write(e,t,n,i,52,8),n+8}function U(e){if(e=W(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function W(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function V(e,t){t=t||1/0;for(var n,i=e.length,r=null,o=[],a=0;a55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){for(var t=[],n=0;n>8,r=n%256,o.push(r),o.push(i);return o}function Y(e){return Z.toByteArray(U(e))}function X(e,t,n,i){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}function K(e){return e!==e}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh @@ -28,7 +28,7 @@ object-assign (c) Sindre Sorhus @license MIT */ -var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=i(e),u=1;u1e-7?(n=e*t,(1-e*e)*(t/(1-n*n)-.5/e*Math.log((1-n)/(1+n)))):2*t}},function(e,t,n){"use strict";function i(e){if(e)for(var t=Object.keys(e),n=0;n-1&&this.oneof.splice(t,1),e.partOf=null,this},i.prototype.onAdd=function(e){o.prototype.onAdd.call(this,e);for(var t=this,n=0;n "+e.len)}function r(e){this.buf=e,this.pos=0,this.len=e.length}function o(){var e=new c(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw i(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw i(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function a(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function s(){if(this.pos+8>this.len)throw i(this,8);return new c(a(this.buf,this.pos+=4),a(this.buf,this.pos+=4))}e.exports=r;var l,u=n(36),c=u.LongBits,d=u.utf8,h="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new r(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new r(e);throw Error("illegal buffer")};r.create=u.Buffer?function(e){return(r.create=function(e){return u.Buffer.isBuffer(e)?new l(e):h(e)})(e)}:h,r.prototype._slice=u.Array.prototype.subarray||u.Array.prototype.slice,r.prototype.uint32=function(){var e=4294967295;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return e;if((this.pos+=5)>this.len)throw this.pos=this.len,i(this,10);return e}}(),r.prototype.int32=function(){return 0|this.uint32()},r.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},r.prototype.bool=function(){return 0!==this.uint32()},r.prototype.fixed32=function(){if(this.pos+4>this.len)throw i(this,4);return a(this.buf,this.pos+=4)},r.prototype.sfixed32=function(){if(this.pos+4>this.len)throw i(this,4);return 0|a(this.buf,this.pos+=4)},r.prototype.float=function(){if(this.pos+4>this.len)throw i(this,4);var e=u.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},r.prototype.double=function(){if(this.pos+8>this.len)throw i(this,4);var e=u.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},r.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw i(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},r.prototype.string=function(){var e=this.bytes();return d.read(e,0,e.length)},r.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw i(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw i(this)}while(128&this.buf[this.pos++]);return this},r.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},r._configure=function(e){l=e;var t=u.Long?"toLong":"toNumber";u.merge(r.prototype,{int64:function(){return o.call(this)[t](!1)},uint64:function(){return o.call(this)[t](!0)},sint64:function(){return o.call(this).zzDecode()[t](!1)},fixed64:function(){return s.call(this)[t](!0)},sfixed64:function(){return s.call(this)[t](!1)}})}},function(e,t,n){"use strict";function i(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function r(){}function o(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function a(){this.len=0,this.head=new i(r,0,0),this.tail=this.head,this.states=null}function s(e,t,n){t[n]=255&e}function l(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e}function u(e,t){this.len=e,this.next=void 0,this.val=t}function c(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function d(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}e.exports=a;var h,f=n(36),p=f.LongBits,m=f.base64,g=f.utf8;a.create=f.Buffer?function(){return(a.create=function(){return new h})()}:function(){return new a},a.alloc=function(e){return new f.Array(e)},f.Array!==Array&&(a.alloc=f.pool(a.alloc,f.Array.prototype.subarray)),a.prototype._push=function(e,t,n){return this.tail=this.tail.next=new i(e,t,n),this.len+=t,this},u.prototype=Object.create(i.prototype),u.prototype.fn=l,a.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new u((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},a.prototype.int32=function(e){return e<0?this._push(c,10,p.fromNumber(e)):this.uint32(e)},a.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},a.prototype.uint64=function(e){var t=p.from(e);return this._push(c,t.length(),t)},a.prototype.int64=a.prototype.uint64,a.prototype.sint64=function(e){var t=p.from(e).zzEncode();return this._push(c,t.length(),t)},a.prototype.bool=function(e){return this._push(s,1,e?1:0)},a.prototype.fixed32=function(e){return this._push(d,4,e>>>0)},a.prototype.sfixed32=a.prototype.fixed32,a.prototype.fixed64=function(e){var t=p.from(e);return this._push(d,4,t.lo)._push(d,4,t.hi)},a.prototype.sfixed64=a.prototype.fixed64,a.prototype.float=function(e){return this._push(f.float.writeFloatLE,4,e)},a.prototype.double=function(e){return this._push(f.float.writeDoubleLE,8,e)};var v=f.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var i=0;i>>0;if(!t)return this._push(s,1,0);if(f.isString(e)){var n=a.alloc(t=m.length(e));m.decode(e,n,0),e=n}return this.uint32(t)._push(v,t,e)},a.prototype.string=function(e){var t=g.length(e);return t?this.uint32(t)._push(g.write,t,e):this._push(s,1,0)},a.prototype.fork=function(){return this.states=new o(this),this.head=this.tail=new i(r,0,0),this.len=0,this},a.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new i(r,0,0),this.len=0),this},a.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},a.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},a._configure=function(e){h=e}},function(e,t,n){"use strict";function i(e){for(var t=1;t-1?i:O.nextTick;c.WritableState=u;var A=n(69);A.inherits=n(26);var R={deprecate:n(602)},L=n(219),I=n(98).Buffer,D=r.Uint8Array||function(){},N=n(218);A.inherits(c,L),u.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(u.prototype,"buffer",{get:R.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();var B;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(B=Function.prototype[Symbol.hasInstance],Object.defineProperty(c,Symbol.hasInstance,{value:function(e){return!!B.call(this,e)||this===c&&(e&&e._writableState instanceof u)}})):B=function(e){return e instanceof this},c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},c.prototype.write=function(e,t,n){var i=this._writableState,r=!1,o=!i.objectMode&&s(e);return o&&!I.isBuffer(e)&&(e=a(e)),"function"==typeof t&&(n=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=l),i.ended?d(this,n):(o||h(this,i,e,n))&&(i.pendingcb++,r=p(this,i,o,e,t,n)),r},c.prototype.cork=function(){this._writableState.corked++},c.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||x(this,e))},c.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),c.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},c.prototype._writev=null,c.prototype.end=function(e,t,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||T(this,i,n)},Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),c.prototype.destroy=N.destroy,c.prototype._undestroy=N.undestroy,c.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,n(88),n(601).setImmediate,n(28))},function(e,t,n){t=e.exports=n(216),t.Stream=t,t.Readable=t,t.Writable=n(137),t.Duplex=n(47),t.Transform=n(217),t.PassThrough=n(582)},function(e,t,n){function i(e,t){for(var n=0;n=0&&b.splice(t,1)}function s(e){var t=document.createElement("style");return e.attrs.type="text/css",u(t,e.attrs),o(e,t),t}function l(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",u(t,e.attrs),o(e,t),t}function u(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function c(e,t){var n,i,r,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var u=y++;n=v||(v=s(t)),i=d.bind(null,n,u,!1),r=d.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),i=f.bind(null,n,t),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),i=h.bind(null,n),r=function(){a(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}function d(e,t,n,i){var r=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=x(t,r);else{var o=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function h(e,t){var n=t.css,i=t.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function f(e,t,n){var i=n.css,r=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||o)&&(i=_(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([i],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var p={},m=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),g=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e.call(this,n)),t[n]}}(function(e){return document.querySelector(e)}),v=null,y=0,b=[],_=n(598);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=m()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=r(e,t);return i(n,t),function(e){for(var o=[],a=0;an.length)for(;this.routingPaths.length>n.length;)this.mapAdapter.removePolyline(this.routingPaths[this.routingPaths.length-1]),this.routingPaths.pop();this.routingPaths.forEach(function(e,i){t.mapAdapter.updatePolyline(e,n[i])})}}},{key:"requestRoute",value:function(e,t,n,i){var r=this;if(e&&t&&n&&i){var o="http://navi-env.axty8vi3ic.us-west-2.elasticbeanstalk.com/dreamview/navigation?origin="+e+","+t+"&destination="+n+","+i+"&heading=0";fetch(encodeURI(o),{method:"GET",mode:"cors"}).then(function(e){return e.arrayBuffer()}).then(function(e){if(!e.byteLength)return void alert("No navigation info received.");r.WS.publishNavigationInfo(e)}).catch(function(e){console.error("Failed to retrieve navigation data:",e)})}}},{key:"sendRoutingRequest",value:function(){if(this.routingRequestPoints){var e=this.routingRequestPoints.length>1?this.routingRequestPoints[0]:this.mapAdapter.getMarkerPosition(this.vehicleMarker),t=this.routingRequestPoints[this.routingRequestPoints.length-1];return this.routingRequestPoints=[],this.requestRoute(e.lat,e.lng,t.lat,t.lng),!0}return alert("Please select a route"),!1}},{key:"addDefaultEndPoint",value:function(e){var t=this;e.forEach(function(e){var n=t.mapAdapter.applyCoordinateOffset((0,c.UTMToWGS84)(e.x,e.y)),i=(0,o.default)(n,2),r=i[0],a=i[1];t.routingRequestPoints.push({lat:a,lng:r})})}}]),e}(),f=new h;t.default=f},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CameraVideo=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=t.CameraVideo=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("div",{className:"camera-video"},m.default.createElement("img",{src:"/image"}))}}]),t}(m.default.Component),v=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("div",{className:"card camera"},m.default.createElement("div",{className:"card-header"},m.default.createElement("span",null,"Camera Sensor")),m.default.createElement("div",{className:"card-content-column"},m.default.createElement(g,null)))}}]),t}(m.default.Component);t.default=v},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=n(13),v=i(g),y=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=e.id,n=e.title,i=e.isChecked,r=e.onClick,o=e.disabled,a=e.extraClasses;return m.default.createElement("ul",{className:(0,v.default)({disabled:o},a)},m.default.createElement("li",{id:t,onClick:function(){o||r()}},m.default.createElement("div",{className:"switch"},m.default.createElement("input",{type:"checkbox",className:"toggle-switch",name:t,checked:i,disabled:o,readOnly:!0}),m.default.createElement("label",{className:"toggle-switch-label",htmlFor:t})),m.default.createElement("span",null,n)))}}]),t}(m.default.Component);t.default=y},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.setElementRef=function(e){n.elementRef=e},n.handleKeyPress=n.handleKeyPress.bind(n),n}return(0,f.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.props.autoFocus&&this.elementRef&&this.elementRef.focus()}},{key:"handleKeyPress",value:function(e){"Enter"===e.key&&(e.preventDefault(),this.props.onClick())}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.title,i=(e.options,e.onClick),r=e.checked,o=e.extraClasses;e.autoFocus;return m.default.createElement("ul",{className:o,tabIndex:"0",ref:this.setElementRef,onKeyPress:this.handleKeyPress,onClick:i},m.default.createElement("li",null,m.default.createElement("input",{type:"radio",name:t,checked:r,readOnly:!0}),m.default.createElement("label",{className:"radio-selector-label",htmlFor:n}),m.default.createElement("span",null,n)))}}]),t}(m.default.Component);t.default=g},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ObstacleColorMapping=t.DEFAULT_COLOR=void 0;var r=n(313),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(12),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(c),h=n(20),f=i(h),p=n(14),m=i(p),g=n(282),v=i(g),y=n(43),b=n(38),_=n(221),x=i(_),w=t.DEFAULT_COLOR=16711932,M=t.ObstacleColorMapping={PEDESTRIAN:16771584,BICYCLE:56555,VEHICLE:65340,VIRTUAL:8388608,CIPV:16750950},S=function(){function e(){(0,s.default)(this,e),this.textRender=new v.default,this.arrows=[],this.ids=[],this.solidCubes=[],this.dashedCubes=[],this.extrusionSolidFaces=[],this.extrusionDashedFaces=[],this.laneMarkers=[],this.icons=[]}return(0,u.default)(e,[{key:"update",value:function(e,t,n){this.updateObjects(e,t,n),this.updateLaneMarkers(e,t,n)}},{key:"updateObjects",value:function(e,t,n){f.default.isEmpty(this.ids)||(this.ids.forEach(function(e){e.children.forEach(function(e){return e.visible=!1}),n.remove(e)}),this.ids=[]),this.textRender.reset();var i=e.object;if(f.default.isEmpty(i))return(0,y.hideArrayObjects)(this.arrows),(0,y.hideArrayObjects)(this.solidCubes),(0,y.hideArrayObjects)(this.dashedCubes),(0,y.hideArrayObjects)(this.extrusionSolidFaces),(0,y.hideArrayObjects)(this.extrusionDashedFaces),void(0,y.hideArrayObjects)(this.icons);for(var r=t.applyOffset({x:e.autoDrivingCar.positionX,y:e.autoDrivingCar.positionY}),a=0,s=0,l=0,u=0,c=0;c.5){var v=this.updateArrow(p,h.speedHeading,g,a++,n),b=1+(0,o.default)(h.speed);v.scale.set(b,b,b),v.visible=!0}if(m.default.options.showObstaclesHeading){var _=this.updateArrow(p,h.heading,16777215,a++,n);_.scale.set(1,1,1),_.visible=!0}this.updateTexts(r,h,p,n);var x=h.confidence;x=Math.max(0,x),x=Math.min(1,x);var S=h.polygonPoint;if(void 0!==S&&S.length>0?(this.updatePolygon(S,h.height,g,t,x,l,n),l+=S.length):h.length&&h.width&&h.height&&this.updateCube(h.length,h.width,h.height,p,h.heading,g,x,s++,n),h.yieldedObstacle){var E={x:p.x,y:p.y,z:p.z+h.height+.5};this.updateIcon(E,e.autoDrivingCar.heading,u,n),u++}}}(0,y.hideArrayObjects)(this.arrows,a),(0,y.hideArrayObjects)(this.solidCubes,s),(0,y.hideArrayObjects)(this.dashedCubes,s),(0,y.hideArrayObjects)(this.extrusionSolidFaces,l),(0,y.hideArrayObjects)(this.extrusionDashedFaces,l),(0,y.hideArrayObjects)(this.icons,u)}},{key:"updateArrow",value:function(e,t,n,i,r){var o=this.getArrow(i,r);return(0,y.copyProperty)(o.position,e),o.material.color.setHex(n),o.rotation.set(0,0,-(Math.PI/2-t)),o}},{key:"updateTexts",value:function(e,t,n,i){var r={x:n.x,y:n.y,z:t.height||3},o=0;if(m.default.options.showObstaclesInfo){var a=e.distanceTo(n).toFixed(1),s=t.speed.toFixed(1);this.drawTexts("("+a+"m, "+s+"m/s)",r,i),o++}if(m.default.options.showObstaclesId){var l={x:r.x,y:r.y+.7*o,z:r.z+1*o};this.drawTexts(t.id,l,i),o++}if(m.default.options.showPredictionPriority){var u=t.obstaclePriority;if(u&&"NORMAL"!==u){var c={x:r.x,y:r.y+.7*o,z:r.z+1*o};this.drawTexts(u,c,i)}}}},{key:"updatePolygon",value:function(e,t,n,i,r,o,a){for(var s=0;s0){var u=this.getCube(s,l,!0);u.position.set(i.x,i.y,i.z+n*(a-1)/2),u.scale.set(e,t,n*a),u.material.color.setHex(o),u.rotation.set(0,0,r),u.visible=!0}if(a<1){var c=this.getCube(s,l,!1);c.position.set(i.x,i.y,i.z+n*a/2),c.scale.set(e,t,n*(1-a)),c.material.color.setHex(o),c.rotation.set(0,0,r),c.visible=!0}}},{key:"updateIcon",value:function(e,t,n,i){var r=this.getIcon(n,i);(0,y.copyProperty)(r.position,e),r.rotation.set(Math.PI/2,t-Math.PI/2,0),r.visible=!0}},{key:"getArrow",value:function(e,t){if(e2&&void 0!==arguments[2])||arguments[2],i=n?this.extrusionSolidFaces:this.extrusionDashedFaces;if(e2&&void 0!==arguments[2])||arguments[2],i=n?this.solidCubes:this.dashedCubes;if(e",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(e,t,n){"use strict";function i(e,t){for(var n=new Array(arguments.length-1),i=0,r=2,o=!0;r1&&(n=Math.floor(e.dropFrames),e.dropFrames=e.dropFrames%1),e.advance(1+n);var i=Date.now();e.dropFrames+=(i-t)/e.frameDuration,e.animations.length>0&&e.requestAnimationFrame()},advance:function(e){for(var t,n,i=this.animations,o=0;o=t.numSteps?(r.callback(t.onAnimationComplete,[t],n),n.animating=!1,i.splice(o,1)):++o}}},function(e,t,n){"use strict";function i(e,t){return e.native?{x:e.x,y:e.y}:u.getRelativePosition(e,t)}function r(e,t){var n,i,r,o,a,s=e.data.datasets;for(i=0,o=s.length;i0&&(u=e.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(e,t){return l(e,t,{intersect:!1})},point:function(e,t){return o(e,i(t,e))},nearest:function(e,t,n){var r=i(t,e);n.axis=n.axis||"xy";var o=s(n.axis),l=a(e,r,n.intersect,o);return l.length>1&&l.sort(function(e,t){var n=e.getArea(),i=t.getArea(),r=n-i;return 0===r&&(r=e._datasetIndex-t._datasetIndex),r}),l.slice(0,1)},x:function(e,t,n){var o=i(t,e),a=[],s=!1;return r(e,function(e){e.inXRange(o.x)&&a.push(e),e.inRange(o.x,o.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a},y:function(e,t,n){var o=i(t,e),a=[],s=!1;return r(e,function(e){e.inYRange(o.y)&&a.push(e),e.inRange(o.x,o.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a}}}},function(e,t,n){"use strict";var i=n(9),r=n(6);i._set("global",{plugins:{}}),e.exports={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var i,r,o,a,s,l=this.descriptors(e),u=l.length;for(i=0;i-1?e.split("\n"):e}function a(e){var t=e._xScale,n=e._yScale||e._scale,i=e._index,r=e._datasetIndex;return{xLabel:t?t.getLabelForIndex(i,r):"",yLabel:n?n.getLabelForIndex(i,r):"",index:i,datasetIndex:r,x:e._model.x,y:e._model.y}}function s(e){var t=h.global,n=p.valueOrDefault;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:n(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:n(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:n(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:n(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:n(e.titleFontStyle,t.defaultFontStyle),titleFontSize:n(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:n(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:n(e.footerFontStyle,t.defaultFontStyle),footerFontSize:n(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function l(e,t){var n=e._chart.ctx,i=2*t.yPadding,r=0,o=t.body,a=o.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);a+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,u=t.titleFontSize,c=t.bodyFontSize,d=t.footerFontSize;i+=s*u,i+=s?(s-1)*t.titleSpacing:0,i+=s?t.titleMarginBottom:0,i+=a*c,i+=a?(a-1)*t.bodySpacing:0,i+=l?t.footerMarginTop:0,i+=l*d,i+=l?(l-1)*t.footerSpacing:0;var h=0,f=function(e){r=Math.max(r,n.measureText(e).width+h)};return n.font=p.fontString(u,t._titleFontStyle,t._titleFontFamily),p.each(t.title,f),n.font=p.fontString(c,t._bodyFontStyle,t._bodyFontFamily),p.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?c+2:0,p.each(o,function(e){p.each(e.before,f),p.each(e.lines,f),p.each(e.after,f)}),h=0,n.font=p.fontString(d,t._footerFontStyle,t._footerFontFamily),p.each(t.footer,f),r+=2*t.xPadding,{width:r,height:i}}function u(e,t){var n=e._model,i=e._chart,r=e._chart.chartArea,o="center",a="center";n.yi.height-t.height&&(a="bottom");var s,l,u,c,d,h=(r.left+r.right)/2,f=(r.top+r.bottom)/2;"center"===a?(s=function(e){return e<=h},l=function(e){return e>h}):(s=function(e){return e<=t.width/2},l=function(e){return e>=i.width-t.width/2}),u=function(e){return e+t.width+n.caretSize+n.caretPadding>i.width},c=function(e){return e-t.width-n.caretSize-n.caretPadding<0},d=function(e){return e<=f?"top":"bottom"},s(n.x)?(o="left",u(n.x)&&(o="center",a=d(n.y))):l(n.x)&&(o="right",c(n.x)&&(o="center",a=d(n.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:o,yAlign:p.yAlign?p.yAlign:a}}function c(e,t,n,i){var r=e.x,o=e.y,a=e.caretSize,s=e.caretPadding,l=e.cornerRadius,u=n.xAlign,c=n.yAlign,d=a+s,h=l+s;return"right"===u?r-=t.width:"center"===u&&(r-=t.width/2,r+t.width>i.width&&(r=i.width-t.width),r<0&&(r=0)),"top"===c?o+=d:o-="bottom"===c?t.height+d:t.height/2,"center"===c?"left"===u?r+=d:"right"===u&&(r-=d):"left"===u?r-=h:"right"===u&&(r+=h),{x:r,y:o}}function d(e){return r([],o(e))}var h=n(9),f=n(29),p=n(6);h._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:p.noop,title:function(e,t){var n="",i=t.labels,r=i?i.length:0;if(e.length>0){var o=e[0];o.xLabel?n=o.xLabel:r>0&&o.index0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},i={x:t.x,y:t.y},r=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(this.drawBackground(i,t,e,n,r),i.x+=t.xPadding,i.y+=t.yPadding,this.drawTitle(i,t,e,r),this.drawBody(i,t,e,r),this.drawFooter(i,t,e,r))}},handleEvent:function(e){var t=this,n=t._options,i=!1;return t._lastActive=t._lastActive||[],"mouseout"===e.type?t._active=[]:t._active=t._chart.getElementsAtEventForMode(e,n.mode,n),i=!p.arrayEquals(t._active,t._lastActive),i&&(t._lastActive=t._active,(n.enabled||n.custom)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0),t.pivot())),i}})).positioners=m},function(e,t,n){"use strict";var i=n(6),r=n(350),o=n(351),a=o._enabled?o:r;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},a)},function(e,t,n){var i=n(364),r=n(362),o=function(e){if(e instanceof o)return e;if(!(this instanceof o))return new o(e);this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var t;"string"==typeof e?(t=r.getRgba(e),t?this.setValues("rgb",t):(t=r.getHsla(e))?this.setValues("hsl",t):(t=r.getHwb(e))&&this.setValues("hwb",t)):"object"==typeof e&&(t=e,void 0!==t.r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t))};o.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e%=360,e=e<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;nn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=this,i=e,r=void 0===t?.5:t,o=2*r-1,a=n.alpha()-i.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return this.rgb(s*n.red()+l*i.red(),s*n.green()+l*i.green(),s*n.blue()+l*i.blue()).alpha(n.alpha()*r+i.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new o,i=this.values,r=n.values;for(var a in i)i.hasOwnProperty(a)&&(e=i[a],t={}.toString.call(e),"[object Array]"===t?r[a]=e.slice(0):"[object Number]"===t?r[a]=e:console.error("unexpected color value:",e));return n}},o.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},o.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},o.prototype.getValues=function(e){for(var t=this.values,n={},i=0;il;)i(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var i=n(30),r=n(24),o=n(110);e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){e.exports=n(41)},function(e,t,n){"use strict";var i=n(17),r=n(10),o=n(25),a=n(31),s=n(18)("species");e.exports=function(e){var t="function"==typeof r[e]?r[e]:i[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var i=n(30),r=n(61),o=n(18)("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||void 0==(n=i(a)[o])?t:r(n)}},function(e,t,n){var i,r,o,a=n(33),s=n(396),l=n(162),u=n(105),c=n(17),d=c.process,h=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,m=c.Dispatch,g=0,v={},y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){y.call(e.data)};h&&f||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},i(g),g},f=function(e){delete v[e]},"process"==n(62)(d)?i=function(e){d.nextTick(a(y,e,1))}:m&&m.now?i=function(e){m.now(a(y,e,1))}:p?(r=new p,o=r.port2,r.port1.onmessage=b,i=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(e){c.postMessage(e+"","*")},c.addEventListener("message",b,!1)):i="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:h,clear:f}},function(e,t,n){var i=n(24);e.exports=function(e,t){if(!i(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";function i(e){return(0,o.default)(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(455),o=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=t.default},function(e,t){var n=e.exports={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return r[this.type]||r.element}},i={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},r={element:1,text:3,cdata:4,comment:8};Object.keys(i).forEach(function(e){var t=i[e];Object.defineProperty(n,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},function(e,t,n){function i(e){if(e>=55296&&e<=57343||e>1114111)return"�";e in r&&(e=r[e]);var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}var r=n(303);e.exports=i},function(e,t,n){function i(e,t){this._options=t||{},this._cbs=e||{},this._tagname="",this._attribname="",this._attribvalue="",this._attribs=null,this._stack=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames="lowerCaseTags"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames="lowerCaseAttributeNames"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(r=this._options.Tokenizer),this._tokenizer=new r(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}var r=n(183),o={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},a={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:o,input:o,output:o,button:o,datalist:o,textarea:o,option:{option:!0},optgroup:{optgroup:!0}},s={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,path:!0,circle:!0,ellipse:!0,line:!0,rect:!0,use:!0,stop:!0,polyline:!0,polygon:!0},l=/\s|\//;n(26)(i,n(86).EventEmitter),i.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},i.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},i.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&e in a)for(var t;(t=this._stack[this._stack.length-1])in a[e];this.onclosetag(t));!this._options.xmlMode&&e in s||this._stack.push(e),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},i.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in s&&this._cbs.onclosetag(this._tagname),this._tagname=""},i.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),!this._stack.length||e in s&&!this._options.xmlMode)this._options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else"p"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},i.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing?this._closeCurrentTag():this.onopentagend()},i.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},i.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},i.prototype.onattribdata=function(e){this._attribvalue+=e},i.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},i.prototype._getInstructionName=function(e){var t=e.search(l),n=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},i.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}},i.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}},i.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},i.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+e+"]]")},i.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},i.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},i.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},i.prototype.parseComplete=function(e){this.reset(),this.end(e)},i.prototype.write=function(e){this._tokenizer.write(e)},i.prototype.end=function(e){this._tokenizer.end(e)},i.prototype.pause=function(){this._tokenizer.pause()},i.prototype.resume=function(){this._tokenizer.resume()},i.prototype.parseChunk=i.prototype.write,i.prototype.done=i.prototype.end,e.exports=i},function(e,t,n){function i(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function r(e,t,n){var i=e.toLowerCase();return e===i?function(e){e===i?this._state=t:(this._state=n,this._index--)}:function(r){r===i||r===e?this._state=t:(this._state=n,this._index--)}}function o(e,t){var n=e.toLowerCase();return function(i){i===n||i===e?this._state=t:(this._state=p,this._index--)}}function a(e,t){this._state=h,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=h,this._special=pe,this._cbs=t,this._running=!0,this._ended=!1,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}e.exports=a;var s=n(181),l=n(101),u=n(148),c=n(102),d=0,h=d++,f=d++,p=d++,m=d++,g=d++,v=d++,y=d++,b=d++,_=d++,x=d++,w=d++,M=d++,S=d++,E=d++,T=d++,k=d++,O=d++,C=d++,P=d++,A=d++,R=d++,L=d++,I=d++,D=d++,N=d++,B=d++,z=d++,F=d++,j=d++,U=d++,W=d++,G=d++,V=d++,H=d++,q=d++,Y=d++,X=d++,K=d++,Z=d++,J=d++,Q=d++,$=d++,ee=d++,te=d++,ne=d++,ie=d++,re=d++,oe=d++,ae=d++,se=d++,le=d++,ue=d++,ce=d++,de=d++,he=d++,fe=0,pe=fe++,me=fe++,ge=fe++;a.prototype._stateText=function(e){"<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=f,this._sectionStart=this._index):this._decodeEntities&&this._special===pe&&"&"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=h,this._state=le,this._sectionStart=this._index)},a.prototype._stateBeforeTagName=function(e){"/"===e?this._state=g:"<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===e||this._special!==pe||i(e)?this._state=h:"!"===e?(this._state=T,this._sectionStart=this._index+1):"?"===e?(this._state=O,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==e&&"S"!==e?p:W,this._sectionStart=this._index)},a.prototype._stateInTagName=function(e){("/"===e||">"===e||i(e))&&(this._emitToken("onopentagname"),this._state=b,this._index--)},a.prototype._stateBeforeCloseingTagName=function(e){i(e)||(">"===e?this._state=h:this._special!==pe?"s"===e||"S"===e?this._state=G:(this._state=h,this._index--):(this._state=v,this._sectionStart=this._index))},a.prototype._stateInCloseingTagName=function(e){(">"===e||i(e))&&(this._emitToken("onclosetag"),this._state=y,this._index--)},a.prototype._stateAfterCloseingTagName=function(e){">"===e&&(this._state=h,this._sectionStart=this._index+1)},a.prototype._stateBeforeAttributeName=function(e){">"===e?(this._cbs.onopentagend(),this._state=h,this._sectionStart=this._index+1):"/"===e?this._state=m:i(e)||(this._state=_,this._sectionStart=this._index)},a.prototype._stateInSelfClosingTag=function(e){">"===e?(this._cbs.onselfclosingtag(),this._state=h,this._sectionStart=this._index+1):i(e)||(this._state=b,this._index--)},a.prototype._stateInAttributeName=function(e){("="===e||"/"===e||">"===e||i(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=x,this._index--)},a.prototype._stateAfterAttributeName=function(e){"="===e?this._state=w:"/"===e||">"===e?(this._cbs.onattribend(),this._state=b,this._index--):i(e)||(this._cbs.onattribend(),this._state=_,this._sectionStart=this._index)},a.prototype._stateBeforeAttributeValue=function(e){'"'===e?(this._state=M,this._sectionStart=this._index+1):"'"===e?(this._state=S,this._sectionStart=this._index+1):i(e)||(this._state=E,this._sectionStart=this._index,this._index--)},a.prototype._stateInAttributeValueDoubleQuotes=function(e){'"'===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=b):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=le,this._sectionStart=this._index)},a.prototype._stateInAttributeValueSingleQuotes=function(e){"'"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=b):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=le,this._sectionStart=this._index)},a.prototype._stateInAttributeValueNoQuotes=function(e){i(e)||">"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=b,this._index--):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=le,this._sectionStart=this._index)},a.prototype._stateBeforeDeclaration=function(e){this._state="["===e?L:"-"===e?C:k},a.prototype._stateInDeclaration=function(e){">"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=h,this._sectionStart=this._index+1)},a.prototype._stateInProcessingInstruction=function(e){">"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=h,this._sectionStart=this._index+1)},a.prototype._stateBeforeComment=function(e){"-"===e?(this._state=P,this._sectionStart=this._index+1):this._state=k},a.prototype._stateInComment=function(e){"-"===e&&(this._state=A)},a.prototype._stateAfterComment1=function(e){this._state="-"===e?R:P},a.prototype._stateAfterComment2=function(e){">"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=h,this._sectionStart=this._index+1):"-"!==e&&(this._state=P)},a.prototype._stateBeforeCdata1=r("C",I,k),a.prototype._stateBeforeCdata2=r("D",D,k),a.prototype._stateBeforeCdata3=r("A",N,k),a.prototype._stateBeforeCdata4=r("T",B,k),a.prototype._stateBeforeCdata5=r("A",z,k),a.prototype._stateBeforeCdata6=function(e){"["===e?(this._state=F,this._sectionStart=this._index+1):(this._state=k,this._index--)},a.prototype._stateInCdata=function(e){"]"===e&&(this._state=j)},a.prototype._stateAfterCdata1=function(e,t){return function(n){n===e&&(this._state=t)}}("]",U),a.prototype._stateAfterCdata2=function(e){">"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=h,this._sectionStart=this._index+1):"]"!==e&&(this._state=F)},a.prototype._stateBeforeSpecial=function(e){"c"===e||"C"===e?this._state=V:"t"===e||"T"===e?this._state=ee:(this._state=p,this._index--)},a.prototype._stateBeforeSpecialEnd=function(e){this._special!==me||"c"!==e&&"C"!==e?this._special!==ge||"t"!==e&&"T"!==e?this._state=h:this._state=re:this._state=K},a.prototype._stateBeforeScript1=o("R",H),a.prototype._stateBeforeScript2=o("I",q),a.prototype._stateBeforeScript3=o("P",Y),a.prototype._stateBeforeScript4=o("T",X),a.prototype._stateBeforeScript5=function(e){("/"===e||">"===e||i(e))&&(this._special=me),this._state=p,this._index--},a.prototype._stateAfterScript1=r("R",Z,h),a.prototype._stateAfterScript2=r("I",J,h),a.prototype._stateAfterScript3=r("P",Q,h),a.prototype._stateAfterScript4=r("T",$,h),a.prototype._stateAfterScript5=function(e){">"===e||i(e)?(this._special=pe,this._state=v,this._sectionStart=this._index-6,this._index--):this._state=h},a.prototype._stateBeforeStyle1=o("Y",te),a.prototype._stateBeforeStyle2=o("L",ne),a.prototype._stateBeforeStyle3=o("E",ie),a.prototype._stateBeforeStyle4=function(e){("/"===e||">"===e||i(e))&&(this._special=ge),this._state=p,this._index--},a.prototype._stateAfterStyle1=r("Y",oe,h),a.prototype._stateAfterStyle2=r("L",ae,h),a.prototype._stateAfterStyle3=r("E",se,h),a.prototype._stateAfterStyle4=function(e){">"===e||i(e)?(this._special=pe,this._state=v,this._sectionStart=this._index-5,this._index--):this._state=h},a.prototype._stateBeforeEntity=r("#",ue,ce),a.prototype._stateBeforeNumericEntity=r("X",he,de),a.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+16&&(t=6);t>=2;){var n=this._buffer.substr(e,t);if(u.hasOwnProperty(n))return this._emitPartial(u[n]),void(this._sectionStart+=t+1);t--}},a.prototype._stateInNamedEntity=function(e){";"===e?(this._parseNamedEntityStrict(),this._sectionStart+1"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==h?"="!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},a.prototype._decodeNumericEntity=function(e,t){var n=this._sectionStart+e;if(n!==this._index){var i=this._buffer.substring(n,this._index),r=parseInt(i,t);this._emitPartial(s(r)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},a.prototype._stateInNumericEntity=function(e){";"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},a.prototype._stateInHexEntity=function(e){";"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},a.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===h?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},a.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},a.prototype._parse=function(){for(;this._index=56&&h<64&&f>=3&&f<12&&(d=32),h>=72&&h<84&&(f>=0&&f<9?d=31:f>=9&&f<21?d=33:f>=21&&f<33?d=35:f>=33&&f<42&&(d=37)),t=6*(d-1)-180+3,u=a(t),n=.006739496752268451,i=p/Math.sqrt(1-.00669438*Math.sin(m)*Math.sin(m)),r=Math.tan(m)*Math.tan(m),o=n*Math.cos(m)*Math.cos(m),s=Math.cos(m)*(g-u),l=p*(.9983242984503243*m-.002514607064228144*Math.sin(2*m)+2639046602129982e-21*Math.sin(4*m)-3.418046101696858e-9*Math.sin(6*m));var v=.9996*i*(s+(1-r+o)*s*s*s/6+(5-18*r+r*r+72*o-58*n)*s*s*s*s*s/120)+5e5,y=.9996*(l+i*Math.tan(m)*(s*s/2+(5-r+9*o+4*o*o)*s*s*s*s/24+(61-58*r+r*r+600*o-330*n)*s*s*s*s*s*s/720));return h<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(v),zoneNumber:d,zoneLetter:c(h)}}function u(e){var t=e.northing,n=e.easting,i=e.zoneLetter,r=e.zoneNumber;if(r<0||r>60)return null;var o,a,l,c,d,h,f,p,m,g,v=6378137,y=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),b=n-5e5,_=t;i<"N"&&(_-=1e7),p=6*(r-1)-180+3,o=.006739496752268451,f=_/.9996,m=f/6367449.145945056,g=m+(3*y/2-27*y*y*y/32)*Math.sin(2*m)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*m)+151*y*y*y/96*Math.sin(6*m),a=v/Math.sqrt(1-.00669438*Math.sin(g)*Math.sin(g)),l=Math.tan(g)*Math.tan(g),c=o*Math.cos(g)*Math.cos(g),d=.99330562*v/Math.pow(1-.00669438*Math.sin(g)*Math.sin(g),1.5),h=b/(.9996*a);var x=g-a*Math.tan(g)/d*(h*h/2-(5+3*l+10*c-4*c*c-9*o)*h*h*h*h/24+(61+90*l+298*c+45*l*l-252*o-3*c*c)*h*h*h*h*h*h/720);x=s(x);var w=(h-(1+2*l+c)*h*h*h/6+(5-2*c+28*l-3*c*c+8*o+24*l*l)*h*h*h*h*h/120)/Math.cos(g);w=p+s(w);var M;if(e.accuracy){var S=u({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});M={top:S.lat,right:S.lon,bottom:x,left:w}}else M={lat:x,lon:w};return M}function c(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function d(e,t){var n="00000"+e.easting,i="00000"+e.northing;return e.zoneNumber+e.zoneLetter+h(e.easting,e.northing,e.zoneNumber)+n.substr(n.length-5,t)+i.substr(i.length-5,t)}function h(e,t,n){var i=f(n);return p(Math.floor(e/1e5),Math.floor(t/1e5)%20,i)}function f(e){var t=e%b;return 0===t&&(t=b),t}function p(e,t,n){var i=n-1,r=_.charCodeAt(i),o=x.charCodeAt(i),a=r+e-1,s=o+t,l=!1;return a>T&&(a=a-T+w-1,l=!0),(a===M||rM||(a>M||rS||(a>S||rT&&(a=a-T+w-1),s>E?(s=s-E+w-1,l=!0):l=!1,(s===M||oM||(s>M||oS||(s>S||oE&&(s=s-E+w-1),String.fromCharCode(a)+String.fromCharCode(s)}function m(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,n=e.length,i=null,r="",o=0;!/[A-Z]/.test(t=e.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+e;r+=t,o++}var a=parseInt(r,10);if(0===o||o+3>n)throw"MGRSPoint bad conversion from: "+e;var s=e.charAt(o++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+e;i=e.substring(o,o+=2);for(var l=f(a),u=g(i.charAt(0),l),c=v(i.charAt(1),l);c0&&(h=1e5/Math.pow(10,x),p=e.substring(o,o+x),w=parseFloat(p)*h,m=e.substring(o+x),M=parseFloat(m)*h),b=w+u,_=M+c,{easting:b,northing:_,zoneLetter:s,zoneNumber:a,accuracy:h}}function g(e,t){for(var n=_.charCodeAt(t-1),i=1e5,r=!1;n!==e.charCodeAt(0);){if(n++,n===M&&n++,n===S&&n++,n>T){if(r)throw"Bad character: "+e;n=w,r=!0}i+=1e5}return i}function v(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;for(var n=x.charCodeAt(t-1),i=0,r=!1;n!==e.charCodeAt(0);){if(n++,n===M&&n++,n===S&&n++,n>E){if(r)throw"Bad character: "+e;n=w,r=!0}i+=1e5}return i}function y(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}t.c=i,t.b=o;var b=6,_="AJSAJS",x="AFAFAF",w=65,M=73,S=79,E=86,T=90;t.a={forward:i,inverse:r,toPoint:o}},function(e,t,n){"use strict";t.a=function(e,t){e=Math.abs(e),t=Math.abs(t);var n=Math.max(e,t),i=Math.min(e,t)/(n||1);return n*Math.sqrt(1+Math.pow(i,2))}},function(e,t,n){"use strict";var i=.01068115234375;t.a=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*i))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*i)));var n=e*e;return t[2]=n*(.46875-e*(.013020833333333334+.007120768229166667*e)),n*=e,t[3]=n*(.3645833333333333-.005696614583333333*e),t[4]=n*e*.3076171875,t}},function(e,t,n){"use strict";var i=n(130),r=n(7);t.a=function(e,t,o){for(var a=1/(1-t),s=e,l=20;l;--l){var u=Math.sin(s),c=1-t*u*u;if(c=(n.i(i.a)(s,u,Math.cos(s),o)-e)*(c*Math.sqrt(c))*a,s-=c,Math.abs(c)2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t}},function(e,t,n){"use strict";function i(e){var t=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?i[e]=n.i(o.a)(arguments[1]):i[e]=n.i(a.a)(arguments[1]):i[e]=r}else if(1===arguments.length){if(Array.isArray(e))return e.map(function(e){Array.isArray(e)?i.apply(t,e):i(e)});if("string"==typeof e){if(e in i)return i[e]}else"EPSG"in e?i["EPSG:"+e.EPSG]=e:"ESRI"in e?i["ESRI:"+e.ESRI]=e:"IAU2000"in e?i["IAU2000:"+e.IAU2000]=e:console.log(e);return}}var r=n(512),o=n(196),a=n(220);n.i(r.a)(i),t.a=i},function(e,t,n){"use strict";var i=n(7),r=n(504),o=n(505),a=n(96);t.a=function(e){var t,s,l,u={},c=e.split("+").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var n=t.split("=");return n.push(!0),e[n[0].toLowerCase()]=n[1],e},{}),d={proj:"projName",datum:"datumCode",rf:function(e){u.rf=parseFloat(e)},lat_0:function(e){u.lat0=e*i.d},lat_1:function(e){u.lat1=e*i.d},lat_2:function(e){u.lat2=e*i.d},lat_ts:function(e){u.lat_ts=e*i.d},lon_0:function(e){u.long0=e*i.d},lon_1:function(e){u.long1=e*i.d},lon_2:function(e){u.long2=e*i.d},alpha:function(e){u.alpha=parseFloat(e)*i.d},lonc:function(e){u.longc=e*i.d},x_0:function(e){u.x0=parseFloat(e)},y_0:function(e){u.y0=parseFloat(e)},k_0:function(e){u.k0=parseFloat(e)},k:function(e){u.k0=parseFloat(e)},a:function(e){u.a=parseFloat(e)},b:function(e){u.b=parseFloat(e)},r_a:function(){u.R_A=!0},zone:function(e){u.zone=parseInt(e,10)},south:function(){u.utmSouth=!0},towgs84:function(e){u.datum_params=e.split(",").map(function(e){return parseFloat(e)})},to_meter:function(e){u.to_meter=parseFloat(e)},units:function(e){u.units=e;var t=n.i(a.a)(o.a,e);t&&(u.to_meter=t.to_meter)},from_greenwich:function(e){u.from_greenwich=e*i.d},pm:function(e){var t=n.i(a.a)(r.a,e);u.from_greenwich=(t||parseFloat(e))*i.d},nadgrids:function(e){"@null"===e?u.datumCode="none":u.nadgrids=e},axis:function(e){var t="ewnsud";3===e.length&&-1!==t.indexOf(e.substr(0,1))&&-1!==t.indexOf(e.substr(1,1))&&-1!==t.indexOf(e.substr(2,1))&&(u.axis=e)}};for(t in c)s=c[t],t in d?(l=d[t],"function"==typeof l?l(s):u[l]=s):u[t]=s;return"string"==typeof u.datumCode&&"WGS84"!==u.datumCode&&(u.datumCode=u.datumCode.toLowerCase()),u}},function(e,t,n){"use strict";function i(){if(void 0===this.es||this.es<=0)throw new Error("incorrect elliptical usage");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),i=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),i*=t,this.cgb[1]=i*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=i*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),i*=t,this.cgb[2]=i*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=i*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),i*=t,this.cgb[3]=i*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=i*(1237/630+t*(t*(-24832/14175)-2.4)),i*=t,this.cgb[4]=i*(4174/315+t*(-144838/6237)),this.cbg[4]=i*(-734/315+t*(109598/31185)),i*=t,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+i*(.25+i*(1/64+i/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=i*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=i*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),i*=t,this.utg[2]=i*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=i*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),i*=t,this.utg[3]=i*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=i*(49561/161280+t*(-179/168+t*(6601661/7257600))),i*=t,this.utg[4]=i*(-4583/161280+t*(108847/3991680)),this.gtu[4]=i*(34729/80640+t*(-3418889/1995840)),i*=t,this.utg[5]=-.03233083094085698*i,this.gtu[5]=.6650675310896665*i;var r=n.i(u.a)(this.cbg,this.lat0);this.Zb=-this.Qn*(r+n.i(c.a)(this.gtu,2*r))}function r(e){var t=n.i(h.a)(e.x-this.long0),i=e.y;i=n.i(u.a)(this.cbg,i);var r=Math.sin(i),o=Math.cos(i),a=Math.sin(t),c=Math.cos(t);i=Math.atan2(r,c*o),t=Math.atan2(a*o,n.i(s.a)(r,o*c)),t=n.i(l.a)(Math.tan(t));var f=n.i(d.a)(this.gtu,2*i,2*t);i+=f[0],t+=f[1];var p,m;return Math.abs(t)<=2.623395162778?(p=this.a*(this.Qn*t)+this.x0,m=this.a*(this.Qn*i+this.Zb)+this.y0):(p=1/0,m=1/0),e.x=p,e.y=m,e}function o(e){var t=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);i=(i-this.Zb)/this.Qn,t/=this.Qn;var r,o;if(Math.abs(t)<=2.623395162778){var l=n.i(d.a)(this.utg,2*i,2*t);i+=l[0],t+=l[1],t=Math.atan(n.i(a.a)(t));var c=Math.sin(i),f=Math.cos(i),p=Math.sin(t),m=Math.cos(t);i=Math.atan2(c*m,n.i(s.a)(p,m*f)),t=Math.atan2(p,m*f),r=n.i(h.a)(t+this.long0),o=n.i(u.a)(this.cgb,i)}else r=1/0,o=1/0;return e.x=r,e.y=o,e}var a=n(193),s=n(190),l=n(494),u=n(498),c=n(495),d=n(496),h=n(11),f=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"];t.a={init:i,forward:r,inverse:o,names:f}},function(e,t,n){"use strict";function i(e,t){return(e.datum.datum_type===o.i||e.datum.datum_type===o.j)&&"WGS84"!==t.datumCode||(t.datum.datum_type===o.i||t.datum.datum_type===o.j)&&"WGS84"!==e.datumCode}function r(e,t,d){var h;return Array.isArray(d)&&(d=n.i(u.a)(d)),n.i(c.a)(d),e.datum&&t.datum&&i(e,t)&&(h=new l.a("WGS84"),d=r(e,h,d),e=h),"enu"!==e.axis&&(d=n.i(s.a)(e,!1,d)),"longlat"===e.projName?d={x:d.x*o.d,y:d.y*o.d}:(e.to_meter&&(d={x:d.x*e.to_meter,y:d.y*e.to_meter}),d=e.inverse(d)),e.from_greenwich&&(d.x+=e.from_greenwich),d=n.i(a.a)(e.datum,t.datum,d),t.from_greenwich&&(d={x:d.x-t.from_greenwich,y:d.y}),"longlat"===t.projName?d={x:d.x*o.a,y:d.y*o.a}:(d=t.forward(d),t.to_meter&&(d={x:d.x/t.to_meter,y:d.y/t.to_meter})),"enu"!==t.axis?n.i(s.a)(t,!0,d):d}t.a=r;var o=n(7),a=n(509),s=n(491),l=n(127),u=n(194),c=n(492)},function(e,t,n){"use strict";function i(e,t,n,i){if(t.resolvedType)if(t.resolvedType instanceof a){e("switch(d%s){",i);for(var r=t.resolvedType.values,o=Object.keys(r),s=0;s>>0",i,i);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",i,i);break;case"uint64":l=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",i,i,l)('else if(typeof d%s==="string")',i)("m%s=parseInt(d%s,10)",i,i)('else if(typeof d%s==="number")',i)("m%s=d%s",i,i)('else if(typeof d%s==="object")',i)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",i,i,i,l?"true":"");break;case"bytes":e('if(typeof d%s==="string")',i)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",i,i,i)("else if(d%s.length)",i)("m%s=d%s",i,i);break;case"string":e("m%s=String(d%s)",i,i);break;case"bool":e("m%s=Boolean(d%s)",i,i)}}return e}function r(e,t,n,i){if(t.resolvedType)t.resolvedType instanceof a?e("d%s=o.enums===String?types[%i].values[m%s]:m%s",i,n,i,i):e("d%s=types[%i].toObject(m%s,o)",i,n,i);else{var r=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",i,i,i,i);break;case"uint64":r=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',i)("d%s=o.longs===String?String(m%s):m%s",i,i,i)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",i,i,i,i,r?"true":"",i);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",i,i,i,i,i);break;default:e("d%s=m%s",i,i)}}return e}var o=t,a=n(35),s=n(16);o.fromObject=function(e){var t=e.fieldsArray,n=s.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return n("return new this.ctor");n("var m=new this.ctor");for(var r=0;r>>3){");for(var n=0;n>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",n,i,(t.id<<3|2)>>>0)}function r(e){for(var t,n,r=s.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),l=e.fieldsArray.slice().sort(s.compareFieldsById),t=0;t>>0,8|a.mapKey[u.keyType],u.keyType),void 0===h?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",c,n):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|h,d,n),r("}")("}")):u.repeated?(r("if(%s!=null&&%s.length){",n,n),u.packed&&void 0!==a.packed[d]?r("w.uint32(%i).fork()",(u.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",n)("w.%s(%s[i])",d,n)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",n),void 0===h?i(r,u,c,n+"[i]"):r("w.uint32(%i).%s(%s[i])",(u.id<<3|h)>>>0,d,n)),r("}")):(u.optional&&r("if(%s!=null&&m.hasOwnProperty(%j))",n,u.name),void 0===h?i(r,u,c,n):r("w.uint32(%i).%s(%s)",(u.id<<3|h)>>>0,d,n))}return r("return w")}e.exports=r;var o=n(35),a=n(76),s=n(16)},function(e,t,n){"use strict";function i(e,t,n,i,o,s){if(r.call(this,e,t,i,void 0,void 0,o,s),!a.isString(n))throw TypeError("keyType must be a string");this.keyType=n,this.resolvedKeyType=null,this.map=!0}e.exports=i;var r=n(56);((i.prototype=Object.create(r.prototype)).constructor=i).className="MapField";var o=n(76),a=n(16);i.fromJSON=function(e,t){return new i(e,t.id,t.keyType,t.type,t.options,t.comment)},i.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},i.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return r.prototype.resolve.call(this)},i.d=function(e,t,n){return"function"==typeof n?n=a.decorateType(n).name:n&&"object"==typeof n&&(n=a.decorateEnum(n).name),function(r,o){a.decorateType(r.constructor).add(new i(o,e,t,n))}}},function(e,t,n){"use strict";function i(e,t,n,i,a,s,l,u){if(o.isObject(a)?(l=a,a=s=void 0):o.isObject(s)&&(l=s,s=void 0),void 0!==t&&!o.isString(t))throw TypeError("type must be a string");if(!o.isString(n))throw TypeError("requestType must be a string");if(!o.isString(i))throw TypeError("responseType must be a string");r.call(this,e,l),this.type=t||"rpc",this.requestType=n,this.requestStream=!!a||void 0,this.responseType=i,this.responseStream=!!s||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=u}e.exports=i;var r=n(57);((i.prototype=Object.create(r.prototype)).constructor=i).className="Method";var o=n(16);i.fromJSON=function(e,t){return new i(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment)},i.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0])},i.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),r.prototype.resolve.call(this))}},function(e,t,n){"use strict";function i(e){a.call(this,"",e),this.deferred=[],this.files=[]}function r(){}function o(e,t){var n=t.parent.lookup(t.extend);if(n){var i=new c(t.fullName,t.id,t.type,t.rule,void 0,t.options);return i.declaringField=t,t.extensionField=i,n.add(i),!0}return!1}e.exports=i;var a=n(75);((i.prototype=Object.create(a.prototype)).constructor=i).className="Root";var s,l,u,c=n(56),d=n(35),h=n(133),f=n(16);i.fromJSON=function(e,t){return t||(t=new i),e.options&&t.setOptions(e.options),t.addJSON(e.nested)},i.prototype.resolvePath=f.path.resolve,i.prototype.load=function e(t,n,i){function o(e,t){if(i){var n=i;if(i=null,d)throw e;n(e,t)}}function a(e,t){try{if(f.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),f.isString(t)){l.filename=e;var i,r=l(t,c,n),a=0;if(r.imports)for(;a-1){var r=e.substring(n);r in u&&(e=r)}if(!(c.files.indexOf(e)>-1)){if(c.files.push(e),e in u)return void(d?a(e,u[e]):(++h,setTimeout(function(){--h,a(e,u[e])})));if(d){var s;try{s=f.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||o(e))}a(e,s)}else++h,f.fetch(e,function(n,r){if(--h,i)return n?void(t?h||o(null,c):o(n)):void a(e,r)})}}"function"==typeof n&&(i=n,n=void 0);var c=this;if(!i)return f.asPromise(e,c,t,n);var d=i===r,h=0;f.isString(t)&&(t=[t]);for(var p,m=0;m-1&&this.deferred.splice(t,1)}}else if(e instanceof d)p.test(e.name)&&delete e.parent[e.name];else if(e instanceof a){for(var n=0;n0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===B.prototype||(t=r(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):c(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?c(e,a,t,!1):y(e,a)):c(e,a,t,!1))):i||(a.reading=!1)}return h(a)}function c(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&g(e)),y(e,t)}function d(e,t){var n;return o(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function h(e){return!e.ended&&(e.needReadable||e.length=q?e=q:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function p(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=f(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function m(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,g(e)}}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(U("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?R.nextTick(v,e):v(e))}function v(e){U("emit readable"),e.emit("readable"),S(e)}function y(e,t){t.readingMore||(t.readingMore=!0,R.nextTick(b,e,t))}function b(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=T(e,t.buffer,t.decoder),n}function T(e,t,n){var i;return eo.length?o.length:e;if(a===o.length?r+=o:r+=o.slice(0,e),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}function O(e,t){var n=B.allocUnsafe(e),i=t.head,r=1;for(i.data.copy(n),e-=i.data.length;i=i.next;){var o=i.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a));break}++r}return t.length-=r,n}function C(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,R.nextTick(P,t,e))}function P(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function A(e,t){for(var n=0,i=e.length;n=t.highWaterMark||t.ended))return U("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?C(this):g(this),null;if(0===(e=p(e,t))&&t.ended)return 0===t.length&&C(this),null;var i=t.needReadable;U("need readable",i),(0===t.length||t.length-e0?E(e,t):null,null===r?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&C(this)),null!==r&&this.emit("data",r),r},l.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},l.prototype.pipe=function(e,t){function n(e,t){U("onunpipe"),e===h&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,o())}function r(){U("onend"),e.end()}function o(){U("cleanup"),e.removeListener("close",u),e.removeListener("finish",c),e.removeListener("drain",g),e.removeListener("error",l),e.removeListener("unpipe",n),h.removeListener("end",r),h.removeListener("end",d),h.removeListener("data",s),v=!0,!f.awaitDrain||e._writableState&&!e._writableState.needDrain||g()}function s(t){U("ondata"),y=!1,!1!==e.write(t)||y||((1===f.pipesCount&&f.pipes===e||f.pipesCount>1&&-1!==A(f.pipes,e))&&!v&&(U("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,y=!0),h.pause())}function l(t){U("onerror",t),d(),e.removeListener("error",l),0===D(e,"error")&&e.emit("error",t)}function u(){e.removeListener("finish",c),d()}function c(){U("onfinish"),e.removeListener("close",u),d()}function d(){U("unpipe"),h.unpipe(e)}var h=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=e;break;case 1:f.pipes=[f.pipes,e];break;default:f.pipes.push(e)}f.pipesCount+=1,U("pipe count=%d opts=%j",f.pipesCount,t);var p=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr,m=p?r:d;f.endEmitted?R.nextTick(m):h.once("end",m),e.on("unpipe",n);var g=_(h);e.on("drain",g);var v=!1,y=!1;return h.on("data",s),a(e,"error",l),e.once("close",u),e.once("finish",c),e.emit("pipe",h),f.flowing||(U("pipe resume"),h.resume()),e},l.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0?90:-90),e.lat_ts=e.lat1)}var a=n(608),s=n(609),l=.017453292519943295;t.a=function(e){var t=n.i(a.a)(e),i=t.shift(),r=t.shift();t.unshift(["name",r]),t.unshift(["type",i]);var l={};return n.i(s.a)(t,l),o(l),l}},function(e,t,n){e.exports=n.p+"assets/3tc9TFA8_5YuxA455U7BMg.png"},function(e,t,n){e.exports=n.p+"assets/3WNj6QfIN0cgE7u5icG0Zx.png"},function(e,t,n){e.exports=n.p+"assets/ZzXs2hkPaGeWT_N6FgGOx.png"},function(e,t,n){e.exports=n.p+"assets/13lPmuYsGizUIj_HGNYM82.png"},function(e,t){e.exports={1:"showTasks",2:"showModuleController",3:"showMenu",4:"showRouteEditingBar",5:"showDataRecorder",6:"enableAudioCapture",7:"showPOI",v:"cameraAngle",p:"showPNCMonitor"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,a=n(3),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(5),f=i(h),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(214),_=n(560),x=i(_),w=n(236),M=i(w),S=n(237),E=i(S),T=n(238),k=i(T),O=n(245),C=i(O),P=n(256),A=i(P),R=n(231),L=i(R),I=n(143),D=n(225),N=i(D),B=n(19),z=i(B),F=(r=(0,y.inject)("store"))(o=(0,y.observer)(o=function(e){function t(e){(0,u.default)(this,t);var n=(0,f.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return n.handleDrag=n.handleDrag.bind(n),n.handleKeyPress=n.handleKeyPress.bind(n),n.updateDimension=n.props.store.updateDimension.bind(n.props.store),n}return(0,m.default)(t,e),(0,d.default)(t,[{key:"handleDrag",value:function(e){this.props.store.options.showPNCMonitor&&this.props.store.updateWidthInPercentage(Math.min(1,e/window.innerWidth))}},{key:"handleKeyPress",value:function(e){var t=this.props.store,n=t.options,i=t.enableHMIButtonsOnly,r=t.hmi,o=N.default[e.key];o&&!n.showDataRecorder&&(e.preventDefault(),"cameraAngle"===o?n.rotateCameraAngle():n.isSideBarButtonDisabled(o,i,r.inNavigationMode)||this.props.store.handleOptionToggle(o))}},{key:"componentWillMount",value:function(){this.props.store.updateDimension()}},{key:"componentDidMount",value:function(){z.default.initialize(),B.MAP_WS.initialize(),B.POINT_CLOUD_WS.initialize(),window.addEventListener("resize",this.updateDimension,!1),window.addEventListener("keypress",this.handleKeyPress,!1)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateDimension,!1),window.removeEventListener("keypress",this.handleKeyPress,!1)}},{key:"render",value:function(){var e=this.props.store,t=(e.isInitialized,e.dimension),n=(e.sceneDimension,e.options);e.hmi;return v.default.createElement("div",null,v.default.createElement(M.default,null),v.default.createElement("div",{className:"pane-container"},v.default.createElement(x.default,{split:"vertical",size:t.width,onChange:this.handleDrag,allowResize:n.showPNCMonitor},v.default.createElement("div",{className:"left-pane"},v.default.createElement(A.default,null),v.default.createElement("div",{className:"dreamview-body"},v.default.createElement(E.default,null),v.default.createElement(k.default,null))),v.default.createElement("div",{className:"right-pane"},n.showPNCMonitor&&n.showVideo&&v.default.createElement("div",null,v.default.createElement(b.Tab,null,v.default.createElement("span",null,"Camera Sensor")),v.default.createElement(I.CameraVideo,null)),n.showPNCMonitor&&v.default.createElement(C.default,{options:n})))),v.default.createElement("div",{className:"hidden"},n.enableAudioCapture&&v.default.createElement(L.default,null)))}}]),t}(v.default.Component))||o)||o;t.default=F},function(e,t,n){var i=n(301);"string"==typeof i&&(i=[[e.i,i,""]]);var r={};r.transform=void 0;n(139)(i,r);i.locals&&(e.exports=i.locals)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=g(p.default.hmi.utmZoneId);return(0,c.default)(m,n,[e,t])}function o(e,t){var n=g(p.default.hmi.utmZoneId);return(0,c.default)(n,m,[e,t])}function a(e,t){return h.transform([e,t],"WGS84","GCJ02")}function s(e,t){if(l(e,t))return[e,t];var n=a(e,t);return h.transform(n,"GCJ02","BD09LL")}function l(e,t){return e<72.004||e>137.8347||(t<.8293||t>55.8271)}Object.defineProperty(t,"__esModule",{value:!0}),t.WGS84ToUTM=r,t.UTMToWGS84=o,t.WGS84ToGCJ02=a,t.WGS84ToBD09LL=s;var u=n(513),c=i(u),d=n(365),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(d),f=n(14),p=i(f),m="+proj=longlat +ellps=WGS84",g=function(e){return"+proj=utm +zone="+e+" +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(312),o=i(r),a=n(44),s=i(a);t.default=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,l=(0,s.default)(e);!(i=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&l.return&&l.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if((0,o.default)(Object(t)))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var r=n(48),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=n(2),s=i(a),l=n(8);n(227);var u=n(14),c=i(u),d=n(226),h=i(d);o.render(s.default.createElement(l.Provider,{store:c.default},s.default.createElement(h.default,null)),document.getElementById("root"))},function(e,t,n){"use strict";(function(e){function i(e){return e&&e.__esModule?e:{default:e}}function r(t){for(var n=t.length,i=new ArrayBuffer(2*n),r=new Int16Array(i,0),o=0,a=0;a0){var u=a.customizedToggles.keys().map(function(e){var t=S.default.startCase(e);return _.default.createElement(Y,{key:e,id:e,title:t,optionName:e,options:a,isCustomized:!0})});s=s.concat(u)}}else"radio"===r&&(s=(0,l.default)(o).map(function(e){var t=o[e];return a.togglesToHide[e]?null:_.default.createElement(T.default,{key:n+"_"+e,id:n,onClick:function(){a.selectCamera(t)},checked:a.cameraAngle===t,title:t,options:a})}));return _.default.createElement("div",{className:"card"},_.default.createElement("div",{className:"card-header summary"},_.default.createElement("span",null,_.default.createElement("img",{src:q[n]}),i)),_.default.createElement("div",{className:"card-content-column"},s))}}]),t}(_.default.Component))||o,K=(0,x.observer)(a=function(e){function t(){return(0,h.default)(this,t),(0,g.default)(this,(t.__proto__||(0,c.default)(t)).apply(this,arguments))}return(0,y.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.options,t=(0,l.default)(O.default).map(function(t){var n=O.default[t];return _.default.createElement(X,{key:n.id,tabId:n.id,tabTitle:n.title,tabType:n.type,data:n.data,options:e})});return _.default.createElement("div",{className:"tool-view-menu",id:"layer-menu"},t)}}]),t}(_.default.Component))||a;t.default=K},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(32),a=i(o),s=n(3),l=i(s),u=n(0),c=i(u),d=n(1),h=i(d),f=n(5),p=i(f),m=n(4),g=i(m),v=n(2),y=i(v),b=n(8),_=n(13),x=(i(_),n(145)),w=i(x),M=(0,b.observer)(r=function(e){function t(){return(0,c.default)(this,t),(0,p.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:"render",value:function(){var e=this.props,t=e.routeEditingManager,n=e.options,i=e.inNavigationMode,r=(0,a.default)(t.defaultRoutingEndPoint).map(function(e,r){return y.default.createElement(w.default,{extraClasses:["poi-button"],key:"poi_"+e,id:"poi",title:e,onClick:function(){t.addDefaultEndPoint(e,i),n.showRouteEditingBar||t.sendRoutingRequest(i),n.showPOI=!1},autoFocus:0===r,checked:!1})});return y.default.createElement("div",{className:"tool-view-menu",id:"poi-list"},y.default.createElement("div",{className:"card"},y.default.createElement("div",{className:"card-header"},y.default.createElement("span",null,"Point of Interest")),y.default.createElement("div",{className:"card-content-row"},r)))}}]),t}(y.default.Component))||r;t.default=M},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=n(13),v=i(g),y=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=e.type,n=e.label,i=e.iconSrc,r=e.hotkey,o=e.active,a=e.disabled,s=e.extraClasses,l=e.onClick,u="sub"===t,c=r?n+" ("+r+")":n;return m.default.createElement("button",{onClick:l,disabled:a,"data-for":"sidebar-button","data-tip":c,className:(0,v.default)({button:!u,"button-active":!u&&o,"sub-button":u,"sub-button-active":u&&o},s)},i&&m.default.createElement("img",{src:i,className:"icon"}),m.default.createElement("div",{className:"label"},n))}}]),t}(m.default.PureComponent);t.default=y},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,a=n(320),s=i(a),l=n(153),u=i(l),c=n(3),d=i(c),h=n(0),f=i(h),p=n(1),m=i(p),g=n(5),v=i(g),y=n(4),b=i(y),_=n(2),x=i(_),w=n(8),M=n(574),S=i(M),E=n(20),T=i(E),k=n(255),O=i(k),C=n(225),P=i(C),A=n(19),R=(i(A),n(660)),L=i(R),I=n(658),D=i(I),N=n(657),B=i(N),z=n(659),F=i(z),j=n(656),U=i(j),W={showTasks:L.default,showModuleController:D.default,showMenu:B.default,showRouteEditingBar:F.default,showDataRecorder:U.default},G={showTasks:"Tasks",showModuleController:"Module Controller",showMenu:"Layer Menu",showRouteEditingBar:"Route Editing",showDataRecorder:"Data Recorder",enableAudioCapture:"Audio Capture",showPOI:"Default Routing"},V=(r=(0,w.inject)("store"))(o=(0,w.observer)(o=function(e){function t(){return(0,f.default)(this,t),(0,v.default)(this,(t.__proto__||(0,d.default)(t)).apply(this,arguments))}return(0,b.default)(t,e),(0,m.default)(t,[{key:"render",value:function(){var e=this,t=this.props.store,n=t.options,i=t.enableHMIButtonsOnly,r=t.hmi,o=T.default.invert(P.default),a={};return[].concat((0,u.default)(n.mainSideBarOptions),(0,u.default)(n.secondarySideBarOptions)).forEach(function(t){a[t]={label:G[t],active:n[t],onClick:function(){e.props.store.handleOptionToggle(t)},disabled:n.isSideBarButtonDisabled(t,i,r.inNavigationMode),hotkey:o[t],iconSrc:W[t]}}),x.default.createElement("div",{className:"side-bar"},x.default.createElement("div",{className:"main-panel"},x.default.createElement(O.default,(0,s.default)({type:"main"},a.showTasks)),x.default.createElement(O.default,(0,s.default)({type:"main"},a.showModuleController)),x.default.createElement(O.default,(0,s.default)({type:"main"},a.showMenu)),x.default.createElement(O.default,(0,s.default)({type:"main"},a.showRouteEditingBar)),x.default.createElement(O.default,(0,s.default)({type:"main"},a.showDataRecorder))),x.default.createElement("div",{className:"sub-button-panel"},x.default.createElement(O.default,(0,s.default)({type:"sub"},a.enableAudioCapture)),x.default.createElement(O.default,(0,s.default)({type:"sub"},a.showPOI,{active:!n.showRouteEditingBar&&n.showPOI}))),x.default.createElement(S.default,{id:"sidebar-button",place:"right",delayShow:500}))}}]),t}(x.default.Component))||o)||o;t.default=V},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(3),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(5),h=i(d),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(260),b=i(y),_=function(e){function t(){return(0,l.default)(this,t),(0,h.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e=this.props,t=e.label,n=e.percentage,i=e.meterColor,r=e.background;return g.default.createElement("div",{className:"meter-container"},g.default.createElement("div",{className:"meter-label"},t),g.default.createElement("span",{className:"meter-head",style:{borderColor:i}}),g.default.createElement("div",{className:"meter-background",style:{backgroundColor:r}},g.default.createElement("span",{style:{backgroundColor:i,width:n+"%"}})))}}]),t}(g.default.Component),x=(0,v.observer)(r=function(e){function t(e){(0,l.default)(this,t);var n=(0,h.default)(this,(t.__proto__||(0,a.default)(t)).call(this,e));return n.setting={brake:{label:"Brake",meterColor:"#B43131",background:"#382626"},accelerator:{label:"Accelerator",meterColor:"#006AFF",background:"#2D3B50"}},n}return(0,p.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e=this.props,t=e.throttlePercent,n=e.brakePercent,i=e.speed;return g.default.createElement("div",{className:"auto-meter"},g.default.createElement(b.default,{meterPerSecond:i}),g.default.createElement("div",{className:"brake-panel"},g.default.createElement(_,{label:this.setting.brake.label,percentage:n,meterColor:this.setting.brake.meterColor,background:this.setting.brake.background})),g.default.createElement("div",{className:"throttle-panel"},g.default.createElement(_,{label:this.setting.accelerator.label,percentage:t,meterColor:this.setting.accelerator.meterColor,background:this.setting.accelerator.background})))}}]),t}(g.default.Component))||r;t.default=x},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=n(13),v=i(g),y=n(77),b=i(y),_=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:"componentWillUpdate",value:function(){b.default.cancelAllInQueue()}},{key:"render",value:function(){var e=this.props,t=e.drivingMode,n=e.isAutoMode;return b.default.speakOnce("Entering to "+t+" mode"),m.default.createElement("div",{className:(0,v.default)({"driving-mode":!0,"auto-mode":n,"manual-mode":!n})},m.default.createElement("span",{className:"text"},t))}}]),t}(m.default.PureComponent);t.default=_},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(3),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(5),h=i(d),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(13),b=i(y),_=n(223),x=i(_),w=n(222),M=i(w),S=(0,v.observer)(r=function(e){function t(){return(0,l.default)(this,t),(0,h.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e=this.props.monitor;if(!e.hasActiveNotification)return null;if(0===e.items.length)return null;var t=e.items[0],n="ERROR"===t.logLevel||"FATAL"===t.logLevel?"alert":"warn",i="alert"===n?M.default:x.default;return g.default.createElement("div",{className:"notification-"+n},g.default.createElement("img",{src:i,className:"icon"}),g.default.createElement("span",{className:(0,b.default)("text",n)},t.msg))}}]),t}(g.default.Component))||r;t.default=S},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=[{name:"km/h",conversionFromMeterPerSecond:3.6},{name:"m/s",conversionFromMeterPerSecond:1},{name:"mph",conversionFromMeterPerSecond:2.23694}],v=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.state={unit:0},n.changeUnit=n.changeUnit.bind(n),n}return(0,f.default)(t,e),(0,u.default)(t,[{key:"changeUnit",value:function(){this.setState({unit:(this.state.unit+1)%g.length})}},{key:"render",value:function(){var e=this.props.meterPerSecond,t=g[this.state.unit],n=t.name,i=Math.round(e*t.conversionFromMeterPerSecond);return m.default.createElement("span",{onClick:this.changeUnit},m.default.createElement("span",{className:"speed-read"},i),m.default.createElement("span",{className:"speed-unit"},n))}}]),t}(m.default.Component);t.default=v},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g={GREEN:"rgba(79, 198, 105, 0.8)",YELLOW:"rgba(239, 255, 0, 0.8)",RED:"rgba(180, 49, 49, 0.8)",BLACK:"rgba(30, 30, 30, 0.8)",UNKNOWN:"rgba(30, 30, 30, 0.8)","":null},v=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props.colorName,t=g[e],n=e||"NO SIGNAL";return m.default.createElement("div",{className:"traffic-light"},t&&m.default.createElement("svg",{className:"symbol",viewBox:"0 0 30 30",height:"28",width:"28"},m.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:t})),m.default.createElement("div",{className:"text"},n))}}]),t}(m.default.PureComponent);t.default=v},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(3),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(5),h=i(d),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=function(e){function t(){return(0,l.default)(this,t),(0,h.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e=this.props.steeringAngle;return g.default.createElement("svg",{className:"wheel",viewBox:"0 0 100 100",height:"80",width:"80"},g.default.createElement("circle",{className:"wheel-background",cx:"50",cy:"50",r:"45"}),g.default.createElement("g",{className:"wheel-arm",transform:"rotate("+e+" 50 50)"},g.default.createElement("rect",{x:"45",y:"7",height:"10",width:"10"}),g.default.createElement("line",{x1:"50",y1:"50",x2:"50",y2:"5"})))}}]),t}(g.default.Component),b=(0,v.observer)(r=function(e){function t(e){(0,l.default)(this,t);var n=(0,h.default)(this,(t.__proto__||(0,a.default)(t)).call(this,e));return n.signalColor={off:"#30435E",on:"#006AFF"},n}return(0,p.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e=this.props,t=e.steeringPercentage,n=e.steeringAngle,i=e.turnSignal,r="LEFT"===i||"EMERGENCY"===i?this.signalColor.on:this.signalColor.off,o="RIGHT"===i||"EMERGENCY"===i?this.signalColor.on:this.signalColor.off;return g.default.createElement("div",{className:"wheel-panel"},g.default.createElement("div",{className:"steerangle-read"},t),g.default.createElement("div",{className:"steerangle-unit"},"%"),g.default.createElement("div",{className:"left-arrow",style:{borderRightColor:r}}),g.default.createElement(y,{steeringAngle:n}),g.default.createElement("div",{className:"right-arrow",style:{borderLeftColor:o}}))}}]),t}(g.default.Component))||r;t.default=b},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(3),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(5),h=i(d),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(257),b=i(y),_=n(259),x=i(_),w=n(261),M=i(w),S=n(258),E=i(S),T=n(262),k=i(T),O=(0,v.observer)(r=function(e){function t(){return(0,l.default)(this,t),(0,h.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e=this.props,t=e.meters,n=e.trafficSignal,i=e.showNotification,r=e.monitor;return g.default.createElement("div",{className:"status-bar"},i&&g.default.createElement(x.default,{monitor:r}),g.default.createElement(b.default,{throttlePercent:t.throttlePercent,brakePercent:t.brakePercent,speed:t.speed}),g.default.createElement(k.default,{steeringPercentage:t.steeringPercentage,steeringAngle:t.steeringAngle,turnSignal:t.turnSignal}),g.default.createElement("div",{className:"traffic-light-and-driving-mode"},g.default.createElement(M.default,{colorName:n.color}),g.default.createElement(E.default,{drivingMode:t.drivingMode,isAutoMode:t.isAutoMode})))}}]),t}(g.default.Component))||r;t.default=O},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,a,s=n(3),l=i(s),u=n(0),c=i(u),d=n(1),h=i(d),f=n(5),p=i(f),m=n(4),g=i(m),v=n(2),y=i(v),b=n(8),_=n(13),x=i(_),w=n(223),M=i(w),S=n(222),E=i(S),T=n(43),k=(0,b.observer)(r=function(e){function t(){return(0,c.default)(this,t),(0,p.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:"render",value:function(){var e=this.props,t=e.level,n=e.text,i=e.time,r="ERROR"===t||"FATAL"===t?"alert":"warn",o="alert"===r?E.default:M.default;return y.default.createElement("li",{className:"monitor-item"},y.default.createElement("img",{src:o,className:"icon"}),y.default.createElement("span",{className:(0,x.default)("text",r)},n),y.default.createElement("span",{className:(0,x.default)("time",r)},i))}}]),t}(y.default.Component))||r,O=(o=(0,b.inject)("store"))(a=(0,b.observer)(a=function(e){function t(){return(0,c.default)(this,t),(0,p.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:"render",value:function(){var e=this.props.store.monitor;return y.default.createElement("div",{className:"card",style:{maxWidth:"50%"}},y.default.createElement("div",{className:"card-header"},y.default.createElement("span",null,"Console")),y.default.createElement("div",{className:"card-content-column"},y.default.createElement("ul",{className:"console"},e.items.map(function(e,t){return y.default.createElement(k,{key:t,text:e.msg,level:e.logLevel,time:(0,T.timestampMsToTimeString)(e.timestampMs)})}))))}}]),t}(y.default.Component))||a)||a;t.default=O},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,a=n(3),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(5),f=i(h),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(13),_=i(b),x=n(43),w=function(e){function t(){return(0,u.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props,t=e.time,n=e.warning,i="-"===t?t:(0,x.millisecondsToTime)(0|t);return v.default.createElement("div",{className:(0,_.default)({value:!0,warning:n})},i)}}]),t}(v.default.PureComponent),M=(r=(0,y.inject)("store"))(o=(0,y.observer)(o=function(e){function t(){return(0,u.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.store.moduleDelay,t=e.keys().sort().map(function(t){var n=e.get(t),i=n.delay>2e3&&"TrafficLight"!==n.name;return v.default.createElement("div",{className:"delay-item",key:"delay_"+t},v.default.createElement("div",{className:"name"},n.name),v.default.createElement(w,{time:n.delay,warning:i}))});return v.default.createElement("div",{className:"delay card"},v.default.createElement("div",{className:"card-header"},v.default.createElement("span",null,"Module Delay")),v.default.createElement("div",{className:"card-content-column"},t))}}]),t}(v.default.Component))||o)||o;t.default=M},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,a=n(3),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(5),f=i(h),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(144),_=i(b),x=n(19),w=i(x),M=(r=(0,y.inject)("store"))(o=(0,y.observer)(o=function(e){function t(){return(0,u.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this,t=this.props.store,n=t.options,i=t.enableHMIButtonsOnly,r=i||n.lockTaskPanel;return v.default.createElement("div",{className:"others card"},v.default.createElement("div",{className:"card-header"},v.default.createElement("span",null,"Others")),v.default.createElement("div",{className:"card-content-column"},v.default.createElement("button",{disabled:r,onClick:function(){w.default.resetBackend()}},"Reset Backend Data"),v.default.createElement("button",{disabled:r,onClick:function(){w.default.dumpMessages()}},"Dump Message"),v.default.createElement(_.default,{id:"showPNCMonitor",title:"PNC Monitor",isChecked:n.showPNCMonitor,disabled:r,onClick:function(){e.props.store.handleOptionToggle("showPNCMonitor")}}),v.default.createElement(_.default,{id:"toggleSimControl",title:"Sim Control",isChecked:n.enableSimControl,disabled:n.lockTaskPanel,onClick:function(){w.default.toggleSimControl(!n.enableSimControl),e.props.store.handleOptionToggle("enableSimControl")}}),v.default.createElement(_.default,{id:"showVideo",title:"Camera Sensor",isChecked:n.showVideo,disabled:r,onClick:function(){e.props.store.handleOptionToggle("showVideo")}}),v.default.createElement(_.default,{id:"panelLock",title:"Lock Task Panel",isChecked:n.lockTaskPanel,disabled:!1,onClick:function(){e.props.store.handleOptionToggle("lockTaskPanel")}})))}}]),t}(v.default.Component))||o)||o;t.default=M},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,a=n(32),s=i(a),l=n(3),u=i(l),c=n(0),d=i(c),h=n(1),f=i(h),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),_=n(8),x=n(13),w=i(x),M=n(77),S=i(M),E=n(19),T=i(E),k=function(e){function t(){return(0,d.default)(this,t),(0,m.default)(this,(t.__proto__||(0,u.default)(t)).apply(this,arguments))}return(0,v.default)(t,e),(0,f.default)(t,[{key:"render",value:function(){var e=this.props,t=e.name,n=e.commands,i=e.disabled,r=e.extraCommandClass,o=e.extraButtonClass,a=(0,s.default)(n).map(function(e){return b.default.createElement("button",{className:o,disabled:i,key:e,onClick:n[e]},e)}),l=t?b.default.createElement("span",{className:"name"},t+":"):null;return b.default.createElement("div",{className:(0,w.default)("command-group",r)},l,a)}}]),t}(b.default.Component),O=(r=(0,_.inject)("store"))(o=(0,_.observer)(o=function(e){function t(e){(0,d.default)(this,t);var n=(0,m.default)(this,(t.__proto__||(0,u.default)(t)).call(this,e));return n.setup={Setup:function(){T.default.executeModeCommand("SETUP_MODE"),S.default.speakOnce("Setup")}},n.reset={"Reset All":function(){T.default.executeModeCommand("RESET_MODE"),S.default.speakOnce("Reset All")}},n.auto={"Start Auto":function(){T.default.executeModeCommand("ENTER_AUTO_MODE"),S.default.speakOnce("Start Auto")}},n}return(0,v.default)(t,e),(0,f.default)(t,[{key:"componentWillUpdate",value:function(){S.default.cancelAllInQueue()}},{key:"render",value:function(){var e=this.props.store.hmi,t=this.props.store.options.lockTaskPanel;return b.default.createElement("div",{className:"card"},b.default.createElement("div",{className:"card-header"},b.default.createElement("span",null,"Quick Start")),b.default.createElement("div",{className:"card-content-column"},b.default.createElement(k,{disabled:t,commands:this.setup}),b.default.createElement(k,{disabled:t,commands:this.reset}),b.default.createElement(k,{disabled:!e.enableStartAuto||t,commands:this.auto,extraButtonClass:"start-auto-button",extraCommandClass:"start-auto-command"})))}}]),t}(b.default.Component))||o)||o;t.default=O},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,a=n(3),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(5),f=i(h),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(267),_=i(b),x=n(266),w=i(x),M=n(265),S=i(M),E=n(264),T=i(E),k=n(143),O=i(k),C=(r=(0,y.inject)("store"))(o=(0,y.observer)(o=function(e){function t(){return(0,u.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.options;return v.default.createElement("div",{className:"tasks"},v.default.createElement(_.default,null),v.default.createElement(w.default,null),v.default.createElement(S.default,null),v.default.createElement(T.default,null),e.showVideo&&!e.showPNCMonitor&&v.default.createElement(O.default,null))}}]),t}(v.default.Component))||o)||o;t.default=C},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(79),o=i(r),a=n(321),s=i(a),l=n(2),u=i(l),c=n(27),d=i(c),h=function(e){var t=e.image,n=e.style,i=e.className,r=((0,s.default)(e,["image","style","className"]),(0,o.default)({},n||{},{backgroundImage:"url("+t+")",backgroundSize:"cover"})),a=i?i+" dreamview-image":"dreamview-image";return u.default.createElement("div",{className:a,style:r})};h.propTypes={image:d.default.string.isRequired,style:d.default.object},t.default=h},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=n(13),v=i(g),y=n(37),b=(i(y),n(224)),_=i(b),x=n(642),w=(i(x),function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=e.height,n=e.extraClasses,i=e.offlineViewErr,r="Please send car initial position and map data.",o=_.default;return m.default.createElement("div",{className:"loader",style:{height:t}},m.default.createElement("div",{className:(0,v.default)("img-container",n)},m.default.createElement("img",{src:o,alt:"Loader"}),m.default.createElement("div",{className:i?"error-message":"status-message"},r)))}}]),t}(m.default.Component));t.default=w},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h);n(670);var p=n(2),m=i(p),g=n(48),v=i(g),y=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.setOkButtonRef=function(e){n.okButton=e},n}return(0,f.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.okButton&&e.okButton.focus()},0)}},{key:"componentDidUpdate",value:function(){this.okButton&&this.okButton.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.open,i=t.header;return n?m.default.createElement("div",null,m.default.createElement("div",{className:"modal-background"}),m.default.createElement("div",{className:"modal-content"},m.default.createElement("div",{role:"dialog",className:"modal-dialog"},i&&m.default.createElement("header",null,m.default.createElement("span",null,this.props.header)),this.props.children),m.default.createElement("button",{ref:this.setOkButtonRef,className:"ok-button",onClick:function(){return e.props.onClose()}},"OK"))):null}}]),t}(m.default.Component),b=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.rootSelector=document.getElementById("root"),n.container=document.createElement("div"),n}return(0,f.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.rootSelector.appendChild(this.container)}},{key:"componentWillUnmount",value:function(){this.rootSelector.removeChild(this.container)}},{key:"render",value:function(){return v.default.createPortal(m.default.createElement(y,this.props),this.container)}}]),t}(m.default.Component);t.default=b},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(14),u=i(l),c=n(611),d=i(c),h=n(612),f=i(h),p=n(78),m={adc:{menuOptionName:"showPositionLocalization",carMaterial:d.default},planningAdc:{menuOptionName:"showPlanningCar",carMaterial:null}},g=function(){function e(t,n){var i=this;(0,o.default)(this,e),this.mesh=null,this.name=t;var r=m[t];if(!r)return void console.error("Car properties not found for car:",t);(0,p.loadObject)(r.carMaterial,f.default,{x:1,y:1,z:1},function(e){i.mesh=e,i.mesh.rotation.x=Math.PI/2,i.mesh.visible=u.default.options[r.menuOptionName],n.add(i.mesh)})}return(0,s.default)(e,[{key:"update",value:function(e,t){if(this.mesh&&t&&_.isNumber(t.positionX)&&_.isNumber(t.positionY)){var n=m[this.name].menuOptionName;this.mesh.visible=u.default.options[n];var i=e.applyOffset({x:t.positionX,y:t.positionY});null!==i&&(this.mesh.position.set(i.x,i.y,0),this.mesh.rotation.y=t.heading)}}},{key:"resizeCarScale",value:function(e,t,n){this.mesh&&this.mesh.scale.set(e,t,n)}}]),e}();t.default=g},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),c=function(){function e(){(0,o.default)(this,e),this.systemName="ENU",this.offset=null}return(0,s.default)(e,[{key:"isInitialized",value:function(){return null!==this.offset}},{key:"initialize",value:function(e,t){this.offset={x:e,y:t},console.log("Offset is set to x:"+e+", y:"+t)}},{key:"setSystem",value:function(e){this.systemName=e}},{key:"applyOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null===this.offset?(console.error("Offset is not set."),null):isNaN(this.offset.x)||isNaN(this.offset.y)?(console.error("Offset contains NaN!"),null):isNaN(e.x)||isNaN(e.y)?(console.warn("Point contains NaN!"),null):isNaN(e.z)?new u.Vector2(t?e.x+this.offset.x:e.x-this.offset.x,t?e.y+this.offset.y:e.y-this.offset.y):new u.Vector3(t?e.x+this.offset.x:e.x-this.offset.x,t?e.y+this.offset.y:e.y-this.offset.y,e.z)}},{key:"applyOffsetToArray",value:function(e){var t=this;return e.map(function(e){return t.applyOffset(e)})}}]),e}();t.default=c},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(44),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(12),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(c),h=n(14),f=i(h),p=n(629),m=i(p),g=n(633),v=i(g),y=n(631),b=i(y),_=n(221),x=i(_),w=n(632),M=i(w),S=n(623),E=i(S),T=n(626),k=i(T),O=n(624),C=i(O),P=n(627),A=i(P),R=n(625),L=i(R),I=n(628),D=i(I),N=n(621),B=i(N),z=n(635),F=i(z),j=n(634),U=i(j),W=n(637),G=i(W),V=n(638),H=i(V),q=n(639),Y=i(q),X=n(619),K=i(X),Z=n(620),J=i(Z),Q=n(622),$=i(Q),ee=n(630),te=i(ee),ne=n(636),ie=i(ne),re=n(618),oe=i(re),ae=n(617),se=i(ae),le=n(43),ue=n(38),ce=n(20),de={STOP:16724016,FOLLOW:1757281,YIELD:16724215,OVERTAKE:3188223},he={STOP_REASON_HEAD_VEHICLE:D.default,STOP_REASON_DESTINATION:B.default,STOP_REASON_PEDESTRIAN:F.default,STOP_REASON_OBSTACLE:U.default,STOP_REASON_SIGNAL:G.default,STOP_REASON_STOP_SIGN:H.default,STOP_REASON_YIELD_SIGN:Y.default,STOP_REASON_CLEAR_ZONE:K.default,STOP_REASON_CROSSWALK:J.default,STOP_REASON_EMERGENCY:$.default,STOP_REASON_NOT_READY:te.default,STOP_REASON_PULL_OVER:ie.default},fe={LEFT:se.default,RIGHT:oe.default},pe=function(){function e(){(0,s.default)(this,e),this.markers={STOP:[],FOLLOW:[],YIELD:[],OVERTAKE:[]},this.nudges=[],this.mainDecision={STOP:this.getMainStopDecision(),CHANGE_LANE:this.getMainChangeLaneDecision()},this.mainDecisionAddedToScene=!1}return(0,u.default)(e,[{key:"update",value:function(e,t,n){this.nudges.forEach(function(e){n.remove(e),e.geometry.dispose(),e.material.dispose()}),this.nudges=[],this.updateMainDecision(e,t,n),this.updateObstacleDecision(e,t,n)}},{key:"updateMainDecision",value:function(e,t,n){var i=this,r=e.mainDecision?e.mainDecision:e.mainStop;for(var a in this.mainDecision)this.mainDecision[a].visible=!1;if(f.default.options.showDecisionMain&&!ce.isEmpty(r)){if(!this.mainDecisionAddedToScene){for(var s in this.mainDecision)n.add(this.mainDecision[s]);this.mainDecisionAddedToScene=!0}for(var l in he)this.mainDecision.STOP[l].visible=!1;for(var u in fe)this.mainDecision.CHANGE_LANE[u].visible=!1;var c=t.applyOffset({x:r.positionX,y:r.positionY,z:.2}),d=r.heading,h=!0,p=!1,m=void 0;try{for(var g,v=(0,o.default)(r.decision);!(h=(g=v.next()).done);h=!0)!function(){var e=g.value,n=c,r=d;ce.isNumber(e.positionX)&&ce.isNumber(e.positionY)&&(n=t.applyOffset({x:e.positionX,y:e.positionY,z:.2})),ce.isNumber(e.heading)&&(r=e.heading);var o=ce.attempt(function(){return e.stopReason});!ce.isError(o)&&o&&(i.mainDecision.STOP.position.set(n.x,n.y,n.z),i.mainDecision.STOP.rotation.set(Math.PI/2,r-Math.PI/2,0),i.mainDecision.STOP[o].visible=!0,i.mainDecision.STOP.visible=!0);var a=ce.attempt(function(){return e.changeLaneType});!ce.isError(a)&&a&&(i.mainDecision.CHANGE_LANE.position.set(n.x,n.y,n.z),i.mainDecision.CHANGE_LANE.rotation.set(Math.PI/2,r-Math.PI/2,0),i.mainDecision.CHANGE_LANE[a].visible=!0,i.mainDecision.CHANGE_LANE.visible=!0)}()}catch(e){p=!0,m=e}finally{try{!h&&v.return&&v.return()}finally{if(p)throw m}}}}},{key:"updateObstacleDecision",value:function(e,t,n){var i=this,r=e.object;if(f.default.options.showDecisionObstacle&&!ce.isEmpty(r)){for(var o={STOP:0,FOLLOW:0,YIELD:0,OVERTAKE:0},a=0;a=i.markers[u].length?(c=i.getObstacleDecision(u),i.markers[u].push(c),n.add(c)):c=i.markers[u][o[u]];var h=t.applyOffset(new d.Vector3(l.positionX,l.positionY,0));if(null===h)return"continue";if(c.position.set(h.x,h.y,.2),c.rotation.set(Math.PI/2,l.heading-Math.PI/2,0),c.visible=!0,o[u]++,"YIELD"===u||"OVERTAKE"===u){var f=c.connect;f.geometry.vertices[0].set(r[a].positionX-l.positionX,r[a].positionY-l.positionY,0),f.geometry.verticesNeedUpdate=!0,f.geometry.computeLineDistances(),f.geometry.lineDistancesNeedUpdate=!0,f.rotation.set(Math.PI/-2,0,Math.PI/2-l.heading)}}else if("NUDGE"===u){var p=(0,ue.drawShapeFromPoints)(t.applyOffsetToArray(l.polygonPoint),new d.MeshBasicMaterial({color:16744192}),!1,2);i.nudges.push(p),n.add(p)}})(l)}}var u=null;for(u in de)(0,le.hideArrayObjects)(this.markers[u],o[u])}else{var c=null;for(c in de)(0,le.hideArrayObjects)(this.markers[c])}}},{key:"getMainStopDecision",value:function(){var e=this.getFence("MAIN_STOP");for(var t in he){var n=(0,ue.drawImage)(he[t],1,1,4.2,3.6,0);e.add(n),e[t]=n}return e.visible=!1,e}},{key:"getMainChangeLaneDecision",value:function(){var e=this.getFence("MAIN_CHANGE_LANE");for(var t in fe){var n=(0,ue.drawImage)(fe[t],1,1,1,2.8,0);e.add(n),e[t]=n}return e.visible=!1,e}},{key:"getObstacleDecision",value:function(e){var t=this.getFence(e);if("YIELD"===e||"OVERTAKE"===e){var n=de[e],i=(0,ue.drawDashedLineFromPoints)([new d.Vector3(1,1,0),new d.Vector3(0,0,0)],n,2,2,1,30);t.add(i),t.connect=i}return t.visible=!1,t}},{key:"getFence",value:function(e){var t=null,n=null,i=new d.Object3D;switch(e){case"STOP":t=(0,ue.drawImage)(k.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(v.default,1,1,3,3.6,0),i.add(n);break;case"FOLLOW":t=(0,ue.drawImage)(C.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(b.default,1,1,3,3.6,0),i.add(n);break;case"YIELD":t=(0,ue.drawImage)(A.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(x.default,1,1,3,3.6,0),i.add(n);break;case"OVERTAKE":t=(0,ue.drawImage)(L.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(M.default,1,1,3,3.6,0),i.add(n);break;case"MAIN_STOP":t=(0,ue.drawImage)(E.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(m.default,1,1,3,3.6,0),i.add(n)}return i}}]),e}();t.default=pe},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),c=n(14),d=i(c),h=n(38),f=function(){function e(){(0,o.default)(this,e),this.circle=null,this.base=null}return(0,s.default)(e,[{key:"update",value:function(e,t,n){if(e.gps&&e.autoDrivingCar){if(!this.circle){var i=new u.MeshBasicMaterial({color:27391,transparent:!1,opacity:.5});this.circle=(0,h.drawCircle)(.2,i),n.add(this.circle)}if(!this.base){var r=d.default.hmi.vehicleParam;this.base=(0,h.drawSegmentsFromPoints)([new u.Vector3(r.frontEdgeToCenter,-r.leftEdgeToCenter,0),new u.Vector3(r.frontEdgeToCenter,r.rightEdgeToCenter,0),new u.Vector3(-r.backEdgeToCenter,r.rightEdgeToCenter,0),new u.Vector3(-r.backEdgeToCenter,-r.leftEdgeToCenter,0),new u.Vector3(r.frontEdgeToCenter,-r.leftEdgeToCenter,0)],27391,2,5),n.add(this.base)}var o=d.default.options.showPositionGps,a=t.applyOffset({x:e.gps.positionX,y:e.gps.positionY,z:0});this.circle.position.set(a.x,a.y,a.z),this.circle.visible=o,this.base.position.set(a.x,a.y,a.z),this.base.rotation.set(0,0,e.gps.heading),this.base.visible=o}}}]),e}();t.default=f},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),c=n(78),d=n(640),h=i(d),f=n(14),p=i(f),m=function(){function e(){var t=this;(0,o.default)(this,e),this.type="default",this.loadedMap=null,this.updateMap=null,this.mesh=null,this.geometry=null,this.initialized=!1,this.inNaviMode=null,(0,c.loadTexture)(h.default,function(e){t.geometry=new u.PlaneGeometry(1,1),t.mesh=new u.Mesh(t.geometry,new u.MeshBasicMaterial({map:e}))})}return(0,s.default)(e,[{key:"initialize",value:function(e){return!!this.mesh&&(!(this.loadedMap===this.updateMap&&!this.render(e))&&(this.initialized=!0,!0))}},{key:"loadGrid",value:function(e){var t=this;(0,c.loadTexture)(h.default,function(n){console.log("using grid as ground image..."),t.mesh.material.map=n,t.mesh.type="grid",t.render(e)})}},{key:"update",value:function(e,t,n){var i=this;if(!0===this.initialized){var r=this.inNaviMode!==p.default.hmi.inNavigationMode;if(this.inNaviMode=p.default.hmi.inNavigationMode,this.inNaviMode?(this.mesh.type="grid",r&&this.loadGrid(t)):this.mesh.type="refelction","grid"===this.mesh.type){var o=e.autoDrivingCar,a=t.applyOffset({x:o.positionX,y:o.positionY});this.mesh.position.set(a.x,a.y,0)}else if(this.loadedMap!==this.updateMap||r){var s=this.titleCaseToSnakeCase(this.updateMap),l=window.location,u=PARAMETERS.server.port,d=l.protocol+"//"+l.hostname+":"+u,h=d+"/assets/map_data/"+s+"/background.jpg";(0,c.loadTexture)(h,function(e){console.log("updating ground image with "+s),i.mesh.material.map=e,i.mesh.type="reflection",i.render(t,s)},function(e){i.loadGrid(t)}),this.loadedMap=this.updateMap}}}},{key:"updateImage",value:function(e){this.updateMap=e}},{key:"render",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"defaults";console.log("rendering ground image...");var n=PARAMETERS.ground[t],i=n.xres,r=n.yres,o=n.mpp,a=n.xorigin,s=n.yorigin,l=e.applyOffset({x:a,y:s});return null===l?(console.warn("Cannot find position for ground mesh!"),!1):("defaults"===t&&(l={x:0,y:0}),this.mesh.position.set(l.x,l.y,0),this.mesh.scale.set(i*o,r*o,1),this.mesh.material.needsUpdate=!0,this.mesh.overdraw=!1,!0)}},{key:"titleCaseToSnakeCase",value:function(e){return e.replace(/\s/g,"_").toLowerCase()}}]),e}();t.default=m},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(32),o=i(r),a=n(44),s=i(a),l=n(79),u=i(l),c=n(0),d=i(c),h=n(1),f=i(h),p=n(12),m=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(p),g=n(14),v=i(g),y=n(19),b=n(20),_=i(b),x=n(38),w=n(613),M=i(w),S=n(614),E=i(S),T=n(615),k=i(T),O=n(616),C=i(O),P=n(78),A={YELLOW:14329120,WHITE:13421772,CORAL:16744272,RED:16737894,GREEN:25600,BLUE:3188223,PURE_WHITE:16777215,DEFAULT:12632256},R={x:.006,y:.006,z:.006},L={x:.01,y:.01,z:.01},I=function(){function e(){(0,d.default)(this,e),this.hash=-1,this.data={},this.initialized=!1,this.elementKindsDrawn=""}return(0,f.default)(e,[{key:"diffMapElements",value:function(e,t){var n=this,i={},r=!0;for(var o in e){(function(o){if(!n.shouldDrawThisElementKind(o))return"continue";i[o]=[];for(var a=e[o],s=t[o],l=0;l=2){var i=Math.atan2(t[n-1].y-t[0].y,t[n-1].x-t[0].x);return 1.5*Math.PI+i}return NaN}},{key:"getHeadingFromStopLineAndTrafficLightBoundary",value:function(e){var t=e.boundary.point;if(t.length<3)return console.warn("Cannot get three points from boundary, signal_id: "+e.id.id),this.getHeadingFromStopLine(e);var n=t[0],i=t[1],r=t[2],o=(i.x-n.x)*(r.z-n.z)-(r.x-n.x)*(i.z-n.z),a=(i.y-n.y)*(r.z-n.z)-(r.y-n.y)*(i.z-n.z),s=-o*n.x-a*n.y,l=_.default.get(e,"stopLine[0].segment[0].lineSegment.point",""),u=l.length;if(u<2)return console.warn("Cannot get any stop line, signal_id: "+e.id.id),NaN;var c=l[u-1].y-l[0].y,d=l[0].x-l[u-1].x,h=-c*l[0].x-d*l[0].y;if(Math.abs(c*a-o*d)<1e-9)return console.warn("The signal orthogonal direction is parallel to the stop line,","signal_id: "+e.id.id),this.getHeadingFromStopLine(e);var f=(d*s-a*h)/(c*a-o*d),p=0!==d?(-c*f-h)/d:(-o*f-s)/a,m=Math.atan2(-o,a);return(m<0&&p>n.y||m>0&&p.2&&(v-=.7)})}}))}},{key:"getPredCircle",value:function(){var e=new u.MeshBasicMaterial({color:16777215,transparent:!1,opacity:.5}),t=(0,f.drawCircle)(.2,e);return this.predCircles.push(t),t}}]),e}();t.default=m},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=(function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e}(l),n(14)),c=i(u),d=n(38),h=(n(20),function(){function e(){(0,o.default)(this,e),this.routePaths=[],this.lastRoutingTime=-1}return(0,s.default)(e,[{key:"update",value:function(e,t,n,i){var r=this;this.routePaths.forEach(function(e){e.visible=c.default.options.showRouting}),this.lastRoutingTime!==e&&void 0!==t&&(this.lastRoutingTime=e,this.routePaths.forEach(function(e){i.remove(e),e.material.dispose(),e.geometry.dispose()}),t.forEach(function(e){var t=n.applyOffsetToArray(e.point),o=(0,d.drawThickBandFromPoints)(t,.3,16711680,.6,5);o.visible=c.default.options.showRouting,i.add(o),r.routePaths.push(o)}))}}]),e}());t.default=h},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12);!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e}(l);n(664);var u=n(652),c=i(u),d=n(14),h=(i(d),n(19)),f=i(h),p=n(38),m=function(){function e(){(0,o.default)(this,e),this.routePoints=[],this.parkingSpaceId=null,this.inEditingMode=!1}return(0,s.default)(e,[{key:"isInEditingMode",value:function(){return this.inEditingMode}},{key:"enableEditingMode",value:function(e,t){this.inEditingMode=!0;e.fov=PARAMETERS.camera.Map.fov,e.near=PARAMETERS.camera.Map.near,e.far=PARAMETERS.camera.Map.far,e.updateProjectionMatrix(),f.default.requestMapElementIdsByRadius(PARAMETERS.routingEditor.radiusOfMapRequest)}},{key:"disableEditingMode",value:function(e){this.inEditingMode=!1,this.removeAllRoutePoints(e),this.parkingSpaceId=null}},{key:"addRoutingPoint",value:function(e,t,n){var i=t.applyOffset({x:e.x,y:e.y}),r=(0,p.drawImage)(c.default,3.5,3.5,i.x,i.y,.3);this.routePoints.push(r),n.add(r)}},{key:"setParkingSpaceId",value:function(e){this.parkingSpaceId=e}},{key:"removeLastRoutingPoint",value:function(e){var t=this.routePoints.pop();t&&(e.remove(t),t.geometry&&t.geometry.dispose(),t.material&&t.material.dispose())}},{key:"removeAllRoutePoints",value:function(e){this.routePoints.forEach(function(t){e.remove(t),t.geometry&&t.geometry.dispose(),t.material&&t.material.dispose()}),this.routePoints=[]}},{key:"sendRoutingRequest",value:function(e,t){if(0===this.routePoints.length)return alert("Please provide at least an end point."),!1;var n=this.routePoints.map(function(e){return e.position.z=0,t.applyOffset(e.position,!0)}),i=n.length>1?n[0]:t.applyOffset(e,!0),r=n[n.length-1],o=n.length>1?n.slice(1,-1):[];return f.default.requestRoute(i,o,r,this.parkingSpaceId),!0}}]),e}();t.default=m},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),c=n(20),d={},h=!1,f=new u.FontLoader,p="fonts/gentilis_bold.typeface.json";f.load(p,function(e){d.gentilis_bold=e,h=!0},function(e){console.log(p+e.loaded/e.total*100+"% loaded")},function(e){console.log("An error happened when loading "+p)});var m=function(){function e(){(0,o.default)(this,e),this.charMeshes={},this.charPointers={}}return(0,s.default)(e,[{key:"reset",value:function(){this.charPointers={}}},{key:"composeText",value:function(e){if(!h)return null;for(var t=c.map(e,function(e){return e.charCodeAt(0)-32}),n=new u.Object3D,i=0;i0?this.charMeshes[r][0].clone():this.drawChar3D(e[i]),this.charMeshes[r].push(a));var s=0;switch(e[i]){case"I":case"i":s=.15;break;case",":s=.35;break;case"/":s=.15}a.position.set(.43*(i-t.length/2)+s,0,0),this.charPointers[r]++,n.add(a)}return n}},{key:"drawChar3D",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.gentilis_bold,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.6,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:16771584,o=new u.TextGeometry(e,{font:t,size:n,height:i}),a=new u.MeshBasicMaterial({color:r});return new u.Mesh(o,a)}}]),e}();t.default=m},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=new h.default(e);for(var i in t)n.delete(i);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(44),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(152),h=i(d),f=n(12),p=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(f),m=n(19),g=(i(m),n(78)),v=function(){function e(){(0,l.default)(this,e),this.mesh=!0,this.type="tile",this.hash=-1,this.currentTiles={},this.initialized=!1,this.range=PARAMETERS.ground.defaults.tileRange,this.metadata=null,this.mapId=null,this.mapUrlPrefix=null}return(0,c.default)(e,[{key:"initialize",value:function(e,t){this.metadata={tileLength:t.tile*t.mpp,left:t.left,top:t.top,numCols:t.wnum,numRows:t.hnum,mpp:t.mpp,tile:t.tile,imageUrl:t.image_url},this.mapId=t.mapid,this.mapUrlPrefix=this.metadata.imageUrl?this.metadata.imageUrl+"/"+this.mapId:e+"/map/getMapPic",this.initialized=!0}},{key:"removeDrewObject",value:function(e,t){var n=this.currentTiles[e];n&&(t.remove(n),n.geometry&&n.geometry.dispose(),n.material&&n.material.dispose()),delete this.currentTiles[e]}},{key:"appendTiles",value:function(e,t,n,i,r){var o=this;if(!(t<0||t>this.metadata.numCols||e<0||e>this.metadata.numRows)){var a=this.metadata.imageUrl?this.mapUrlPrefix+"/"+this.metadata.mpp+"_"+e+"_"+t+"_"+this.metadata.tile+".png":this.mapUrlPrefix+"?mapId="+this.mapId+"&i="+e+"&j="+t,s=i.applyOffset({x:this.metadata.left+(e+.5)*this.metadata.tileLength,y:this.metadata.top-(t+.5)*this.metadata.tileLength,z:0});(0,g.loadTexture)(a,function(e){var t=new p.Mesh(new p.PlaneGeometry(1,1),new p.MeshBasicMaterial({map:e}));t.position.set(s.x,s.y,s.z),t.scale.set(o.metadata.tileLength,o.metadata.tileLength,1),t.overdraw=!1,o.currentTiles[n]=t,r.add(t)})}}},{key:"removeExpiredTiles",value:function(e,t){for(var n in this.currentTiles)e.has(n)||this.removeDrewObject(n,t)}},{key:"updateIndex",value:function(e,t,n,i){if(e!==this.hash){this.hash=e,this.removeExpiredTiles(t,i);var o=r(t,this.currentTiles);if(!_.isEmpty(o)||!this.initialized){var s=!0,l=!1,u=void 0;try{for(var c,d=(0,a.default)(o);!(s=(c=d.next()).done);s=!0){var h=c.value;this.currentTiles[h]=null;var f=h.split(","),p=parseInt(f[0]),m=parseInt(f[1]);this.appendTiles(p,m,h,n,i)}}catch(e){l=!0,u=e}finally{try{!s&&d.return&&d.return()}finally{if(l)throw u}}}}}},{key:"update",value:function(e,t,n){if(t.isInitialized()&&this.initialized){for(var i=e.autoDrivingCar.positionX,r=e.autoDrivingCar.positionY,o=Math.floor((i-this.metadata.left)/this.metadata.tileLength),a=Math.floor((this.metadata.top-r)/this.metadata.tileLength),s=new h.default,l="",u=o-this.range;u<=o+this.range;u++)for(var c=a-this.range;c<=a+this.range;c++){var d=u+","+c;s.add(d),l+=d}this.updateIndex(l,s,t,n)}}}]),e}();t.default=v},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!e)return[];for(var n=[],i=0;i0){if(Math.abs(n[n.length-1].x-o.x)+Math.abs(n[n.length-1].y-o.y)=PARAMETERS.planning.pathProperties.length&&(console.error("No enough property to render the planning path, use a duplicated property instead."),u=0);var c=PARAMETERS.planning.pathProperties[u];if(l[e]){var d=r(l[e],n);o.paths[e]=(0,m.drawThickBandFromPoints)(d,s*c.width,c.color,c.opacity,c.zOffset),i.add(o.paths[e])}}else o.paths[e]&&(o.paths[e].visible=!1);u+=1})}}]),e}();t.default=g},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,u.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,l=n(21),u=i(l),c=n(23),d=i(c),h=n(0),f=i(h),p=n(1),m=i(p),g=n(22),v=n(12),y=(a=function(){function e(){(0,f.default)(this,e),r(this,"lastUpdatedTime",s,this),this.data=this.initData()}return(0,m.default)(e,[{key:"updateTime",value:function(e){this.lastUpdatedTime=e}},{key:"initData",value:function(){return{trajectoryGraph:{plan:[],target:[],real:[],autoModeZone:[],steerCurve:[]},pose:{x:null,y:null,heading:null},speedGraph:{plan:[],target:[],real:[],autoModeZone:[]},curvatureGraph:{plan:[],target:[],real:[],autoModeZone:[]},accelerationGraph:{plan:[],target:[],real:[],autoModeZone:[]},stationErrorGraph:{error:[]},headingErrorGraph:{error:[]},lateralErrorGraph:{error:[]}}}},{key:"updateErrorGraph",value:function(e,t,n){if(n&&t&&e){var i=e.error.length>0&&t=80;i?e.error=[]:r&&e.error.shift();(0===e.error.length||t!==e.error[e.error.length-1].x)&&e.error.push({x:t,y:n})}}},{key:"updateSteerCurve",value:function(e,t,n){var i=t.steeringAngle/n.steerRatio,r=null;r=Math.abs(Math.tan(i))>1e-4?n.length/Math.tan(i):1e5;var o=t.heading,a=Math.abs(r),s=7200/(2*Math.PI*a)*Math.PI/180,l=null,u=null,c=null,d=null;r>=0?(c=Math.PI/2+o,d=o-Math.PI/2,l=0,u=s):(c=o-Math.PI/2,d=Math.PI/2+o,l=-s,u=0);var h=t.positionX+Math.cos(c)*a,f=t.positionY+Math.sin(c)*a,p=new v.EllipseCurve(h,f,a,a,l,u,!1,d);e.steerCurve=p.getPoints(25)}},{key:"interpolateValueByCurrentTime",value:function(e,t,n){if("timestampSec"===n)return t;var i=e.map(function(e){return e.timestampSec}),r=e.map(function(e){return e[n]});return new v.LinearInterpolant(i,r,1,[]).evaluate(t)[0]}},{key:"updateAdcStatusGraph",value:function(e,t,n,i,r){var o=n.timestampSec,a=e.target.length>0&&o=80;if(a?(e.target=[],e.real=[],e.autoModeZone=[]):s&&(e.target.shift(),e.real.shift(),e.autoModeZone.shift()),0===e.target.length||o!==e.target[e.target.length-1].t){e.plan=t.map(function(e){return{x:e[i],y:e[r]}}),e.target.push({x:this.interpolateValueByCurrentTime(t,o,i),y:this.interpolateValueByCurrentTime(t,o,r),t:o}),e.real.push({x:n[i],y:n[r]});var l="DISENGAGE_NONE"===n.disengageType;e.autoModeZone.push({x:n[i],y:l?n[r]:void 0})}}},{key:"update",value:function(e,t){var n=e.planningTrajectory,i=e.autoDrivingCar;if(n&&i&&(this.updateAdcStatusGraph(this.data.speedGraph,n,i,"timestampSec","speed"),this.updateAdcStatusGraph(this.data.accelerationGraph,n,i,"timestampSec","speedAcceleration"),this.updateAdcStatusGraph(this.data.curvatureGraph,n,i,"timestampSec","kappa"),this.updateAdcStatusGraph(this.data.trajectoryGraph,n,i,"positionX","positionY"),this.updateSteerCurve(this.data.trajectoryGraph,i,t),this.data.pose.x=i.positionX,this.data.pose.y=i.positionY,this.data.pose.heading=i.heading),e.controlData){var r=e.controlData,o=r.timestampSec;this.updateErrorGraph(this.data.stationErrorGraph,o,r.stationError),this.updateErrorGraph(this.data.lateralErrorGraph,o,r.lateralError),this.updateErrorGraph(this.data.headingErrorGraph,o,r.headingError),this.updateTime(o)}}}]),e}(),s=o(a.prototype,"lastUpdatedTime",[g.observable],{enumerable:!0,initializer:function(){return null}}),o(a.prototype,"updateTime",[g.action],(0,d.default)(a.prototype,"updateTime"),a.prototype),a);t.default=y},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,v.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,l,u,c,d,h,f,p,m,g=n(21),v=i(g),y=n(23),b=i(y),_=n(32),x=i(_),w=n(49),M=i(w),S=n(0),E=i(S),T=n(1),k=i(T),O=n(22),C=n(19),P=i(C),A=n(77),R=i(A),L=n(37),I=i(L),D=(a=function(){function e(){(0,E.default)(this,e),this.modes=[],r(this,"currentMode",s,this),this.vehicles=[],r(this,"currentVehicle",l,this),this.defaultVehicleSize={height:1.48,width:2.11,length:4.933},this.vehicleParam={frontEdgeToCenter:3.89,backEdgeToCenter:1.04,leftEdgeToCenter:1.055,rightEdgeToCenter:1.055,height:1.48,width:2.11,length:4.933,steerRatio:16},this.maps=[],r(this,"currentMap",u,this),r(this,"moduleStatus",c,this),r(this,"componentStatus",d,this),r(this,"enableStartAuto",h,this),this.displayName={},this.utmZoneId=10,r(this,"dockerImage",f,this),r(this,"isCoDriver",p,this),r(this,"isMute",m,this)}return(0,k.default)(e,[{key:"toggleCoDriverFlag",value:function(){this.isCoDriver=!this.isCoDriver}},{key:"toggleMuteFlag",value:function(){this.isMute=!this.isMute,R.default.setMute(this.isMute)}},{key:"updateStatus",value:function(e){if(e.dockerImage&&(this.dockerImage=e.dockerImage),e.utmZoneId&&(this.utmZoneId=e.utmZoneId),e.modes&&(this.modes=e.modes.sort()),e.currentMode&&(this.currentMode=e.currentMode),e.maps&&(this.maps=e.maps.sort()),e.currentMap&&(this.currentMap=e.currentMap),e.vehicles&&(this.vehicles=e.vehicles.sort()),e.currentVehicle&&(this.currentVehicle=e.currentVehicle),e.modules){(0,M.default)((0,x.default)(e.modules).sort())!==(0,M.default)(this.moduleStatus.keys().sort())&&this.moduleStatus.clear();for(var t in e.modules)this.moduleStatus.set(t,e.modules[t])}if(e.monitoredComponents){(0,M.default)((0,x.default)(e.monitoredComponents).sort())!==(0,M.default)(this.componentStatus.keys().sort())&&this.componentStatus.clear();for(var n in e.monitoredComponents)this.componentStatus.set(n,e.monitoredComponents[n])}"string"==typeof e.passengerMsg&&R.default.speakRepeatedly(e.passengerMsg)}},{key:"update",value:function(e){this.enableStartAuto="READY_TO_ENGAGE"===e.engageAdvice}},{key:"updateVehicleParam",value:function(e){this.vehicleParam=e,I.default.adc.resizeCarScale(this.vehicleParam.length/this.defaultVehicleSize.length,this.vehicleParam.width/this.defaultVehicleSize.width,this.vehicleParam.height/this.defaultVehicleSize.height)}},{key:"toggleModule",value:function(e){this.moduleStatus.set(e,!this.moduleStatus.get(e));var t=this.moduleStatus.get(e)?"START_MODULE":"STOP_MODULE";P.default.executeModuleCommand(e,t)}},{key:"inNavigationMode",get:function(){return"Navigation"===this.currentMode}}]),e}(),s=o(a.prototype,"currentMode",[O.observable],{enumerable:!0,initializer:function(){return"none"}}),l=o(a.prototype,"currentVehicle",[O.observable],{enumerable:!0,initializer:function(){return"none"}}),u=o(a.prototype,"currentMap",[O.observable],{enumerable:!0,initializer:function(){return"none"}}),c=o(a.prototype,"moduleStatus",[O.observable],{enumerable:!0,initializer:function(){return O.observable.map()}}),d=o(a.prototype,"componentStatus",[O.observable],{enumerable:!0,initializer:function(){return O.observable.map()}}),h=o(a.prototype,"enableStartAuto",[O.observable],{enumerable:!0,initializer:function(){return!1}}),f=o(a.prototype,"dockerImage",[O.observable],{enumerable:!0,initializer:function(){return"unknown"}}),p=o(a.prototype,"isCoDriver",[O.observable],{enumerable:!0,initializer:function(){return!1}}),m=o(a.prototype,"isMute",[O.observable],{enumerable:!0,initializer:function(){return!1}}),o(a.prototype,"toggleCoDriverFlag",[O.action],(0,b.default)(a.prototype,"toggleCoDriverFlag"),a.prototype),o(a.prototype,"toggleMuteFlag",[O.action],(0,b.default)(a.prototype,"toggleMuteFlag"),a.prototype),o(a.prototype,"updateStatus",[O.action],(0,b.default)(a.prototype,"updateStatus"),a.prototype),o(a.prototype,"update",[O.action],(0,b.default)(a.prototype,"update"),a.prototype),o(a.prototype,"toggleModule",[O.action],(0,b.default)(a.prototype,"toggleModule"),a.prototype),o(a.prototype,"inNavigationMode",[O.computed],(0,b.default)(a.prototype,"inNavigationMode"),a.prototype),a);t.default=D},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,u.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,l=n(21),u=i(l),c=n(23),d=i(c),h=n(0),f=i(h),p=n(1),m=i(p),g=n(22),v=(a=function(){function e(){(0,f.default)(this,e),r(this,"lastUpdatedTime",s,this),this.data={}}return(0,m.default)(e,[{key:"updateTime",value:function(e){this.lastUpdatedTime=e}},{key:"updateLatencyGraph",value:function(e,t){if(t){var n=t.timestampSec,i=this.data[e];if(i.length>0){var r=i[0].x,o=i[i.length-1].x,a=n-r;n300&&i.shift()}0!==i.length&&i[i.length-1].x===n||i.push({x:n,y:t.totalTimeMs})}}},{key:"update",value:function(e){if(e.latency){var t=0;for(var n in e.latency)n in this.data||(this.data[n]=[]),this.updateLatencyGraph(n,e.latency[n]),t=Math.max(e.latency[n].timestampSec,t);this.updateTime(t)}}}]),e}(),s=o(a.prototype,"lastUpdatedTime",[g.observable],{enumerable:!0,initializer:function(){return 0}}),o(a.prototype,"updateTime",[g.action],(0,d.default)(a.prototype,"updateTime"),a.prototype),a);t.default=v},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,b.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function a(e){return 10*Math.round(e/10)}function s(e){switch(e){case"DISENGAGE_MANUAL":return"MANUAL";case"DISENGAGE_NONE":return"AUTO";case"DISENGAGE_EMERGENCY":return"DISENGAGED";case"DISENGAGE_AUTO_STEER_ONLY":return"AUTO STEER";case"DISENGAGE_AUTO_SPEED_ONLY":return"AUTO SPEED";case"DISENGAGE_CHASSIS_ERROR":return"CHASSIS ERROR";default:return"UNKNOWN"}}function l(e){return"DISENGAGE_NONE"===e||"DISENGAGE_AUTO_STEER_ONLY"===e||"DISENGAGE_AUTO_SPEED_ONLY"===e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u,c,d,h,f,p,m,g,v,y=n(21),b=i(y),_=n(23),x=i(_),w=n(0),M=i(w),S=n(1),E=i(S),T=n(22),k=(u=function(){function e(){(0,M.default)(this,e),r(this,"throttlePercent",c,this),r(this,"brakePercent",d,this),r(this,"speed",h,this),r(this,"steeringAngle",f,this),r(this,"steeringPercentage",p,this),r(this,"drivingMode",m,this),r(this,"isAutoMode",g,this),r(this,"turnSignal",v,this)}return(0,E.default)(e,[{key:"update",value:function(e){e.autoDrivingCar&&(void 0!==e.autoDrivingCar.throttlePercentage&&(this.throttlePercent=a(e.autoDrivingCar.throttlePercentage)),void 0!==e.autoDrivingCar.brakePercentage&&(this.brakePercent=a(e.autoDrivingCar.brakePercentage)),void 0!==e.autoDrivingCar.speed&&(this.speed=e.autoDrivingCar.speed),void 0===e.autoDrivingCar.steeringPercentage||isNaN(e.autoDrivingCar.steeringPercentage)||(this.steeringPercentage=Math.round(e.autoDrivingCar.steeringPercentage)),void 0===e.autoDrivingCar.steeringAngle||isNaN(e.autoDrivingCar.steeringAngle)||(this.steeringAngle=-Math.round(180*e.autoDrivingCar.steeringAngle/Math.PI)),void 0!==e.autoDrivingCar.disengageType&&(this.drivingMode=s(e.autoDrivingCar.disengageType),this.isAutoMode=l(e.autoDrivingCar.disengageType)),void 0!==e.autoDrivingCar.currentSignal&&(this.turnSignal=e.autoDrivingCar.currentSignal))}}]),e}(),c=o(u.prototype,"throttlePercent",[T.observable],{enumerable:!0,initializer:function(){return 0}}),d=o(u.prototype,"brakePercent",[T.observable],{enumerable:!0,initializer:function(){return 0}}),h=o(u.prototype,"speed",[T.observable],{enumerable:!0,initializer:function(){return 0}}),f=o(u.prototype,"steeringAngle",[T.observable],{enumerable:!0,initializer:function(){return 0}}),p=o(u.prototype,"steeringPercentage",[T.observable],{enumerable:!0,initializer:function(){return 0}}),m=o(u.prototype,"drivingMode",[T.observable],{enumerable:!0,initializer:function(){return"UNKNOWN"}}),g=o(u.prototype,"isAutoMode",[T.observable],{enumerable:!0,initializer:function(){return!1}}),v=o(u.prototype,"turnSignal",[T.observable],{enumerable:!0,initializer:function(){return""}}),o(u.prototype,"update",[T.action],(0,x.default)(u.prototype,"update"),u.prototype),u);t.default=k},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,c.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,l,u=n(21),c=i(u),d=n(23),h=i(d),f=n(49),p=i(f),m=n(79),g=i(m),v=n(0),y=i(v),b=n(1),_=i(b),x=n(22),w=(a=function(){function e(){(0,y.default)(this,e),r(this,"hasActiveNotification",s,this),r(this,"items",l,this),this.lastUpdateTimestamp=0,this.refreshTimer=null}return(0,_.default)(e,[{key:"startRefresh",value:function(){var e=this;this.clearRefreshTimer(),this.refreshTimer=setInterval(function(){Date.now()-e.lastUpdateTimestamp>6e3&&(e.setHasActiveNotification(!1),e.clearRefreshTimer())},500)}},{key:"clearRefreshTimer",value:function(){null!==this.refreshTimer&&(clearInterval(this.refreshTimer),this.refreshTimer=null)}},{key:"setHasActiveNotification",value:function(e){this.hasActiveNotification=e}},{key:"update",value:function(e){if(e.monitor||e.notification){var t=[];e.notification?t=e.notification.reverse().map(function(e){return(0,g.default)(e.item,{timestampMs:1e3*e.timestampSec})}):e.monitor&&(t=e.monitor.item),this.hasNewNotification(this.items,t)&&(this.hasActiveNotification=!0,this.lastUpdateTimestamp=Date.now(),this.items.replace(t),this.startRefresh())}}},{key:"hasNewNotification",value:function(e,t){return(0!==e.length||0!==t.length)&&(0===e.length||0===t.length||(0,p.default)(this.items[0])!==(0,p.default)(t[0]))}},{key:"insert",value:function(e,t,n){var i=[];i.push({msg:t,logLevel:e,timestampMs:n});for(var r=0;r10||e<-10?100*e/Math.abs(e):e}},{key:"extractDataPoints",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!e)return[];var o=e.map(function(e){return{x:e[t]+r,y:e[n]}});return i&&e.length&&o.push({x:e[0][t],y:e[0][n]}),o}},{key:"updateSLFrame",value:function(e){var t=this.data.slGraph,n=e[0].sampledS;t.mapLowerBound=this.generateDataPoints(n,e[0].mapLowerBound,this.transformMapBound),t.mapUpperBound=this.generateDataPoints(n,e[0].mapUpperBound,this.transformMapBound),t.staticObstacleLowerBound=this.generateDataPoints(n,e[0].staticObstacleLowerBound),t.staticObstacleUpperBound=this.generateDataPoints(n,e[0].staticObstacleUpperBound),t.dynamicObstacleLowerBound=this.generateDataPoints(n,e[0].dynamicObstacleLowerBound),t.dynamicObstacleUpperBound=this.generateDataPoints(n,e[0].dynamicObstacleUpperBound),t.pathLine=this.extractDataPoints(e[0].slPath,"s","l");var i=e[1].aggregatedBoundaryS;t.aggregatedBoundaryLow=this.generateDataPoints(i,e[1].aggregatedBoundaryLow),t.aggregatedBoundaryHigh=this.generateDataPoints(i,e[1].aggregatedBoundaryHigh)}},{key:"updateSTGraph",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=(0,f.default)(e);!(t=(r=o.next()).done);t=!0){var a=r.value;this.data.stGraph[a.name]={obstaclesBoundary:{}};var s=this.data.stGraph[a.name];if(a.boundary){var l=!0,u=!1,c=void 0;try{for(var d,h=(0,f.default)(a.boundary);!(l=(d=h.next()).done);l=!0){var p=d.value,m=p.type.substring("ST_BOUNDARY_TYPE_".length),g=p.name+"_"+m;s.obstaclesBoundary[g]=this.extractDataPoints(p.point,"t","s",!0)}}catch(e){u=!0,c=e}finally{try{!l&&h.return&&h.return()}finally{if(u)throw c}}}s.curveLine=this.extractDataPoints(a.speedProfile,"t","s"),a.kernelCruiseRef&&(s.kernelCruise=this.generateDataPoints(a.kernelCruiseRef.t,a.kernelCruiseRef.cruiseLineS)),a.kernelFollowRef&&(s.kernelFollow=this.generateDataPoints(a.kernelFollowRef.t,a.kernelFollowRef.followLineS))}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}}},{key:"updateSTSpeedGraph",value:function(e){var t=this,n=!0,i=!1,r=void 0;try{for(var o,a=(0,f.default)(e);!(n=(o=a.next()).done);n=!0){var s=o.value;this.data.stSpeedGraph[s.name]={};var l=this.data.stSpeedGraph[s.name];l.limit=this.extractDataPoints(s.speedLimit,"s","v"),l.planned=this.extractDataPoints(s.speedProfile,"s","v"),s.speedConstraint&&function(){var e=s.speedProfile.map(function(e){return e.t}),n=s.speedProfile.map(function(e){return e.s}),i=new b.LinearInterpolant(e,n,1,[]),r=s.speedConstraint.t.map(function(e){return i.evaluate(e)[0]});l.lowerConstraint=t.generateDataPoints(r,s.speedConstraint.lowerBound),l.upperConstraint=t.generateDataPoints(r,s.speedConstraint.upperBound)}()}}catch(e){i=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw r}}}},{key:"updateSpeed",value:function(e,t){var n=this.data.speedGraph;if(e){var i=!0,r=!1,o=void 0;try{for(var a,s=(0,f.default)(e);!(i=(a=s.next()).done);i=!0){var l=a.value;n[l.name]=this.extractDataPoints(l.speedPoint,"t","v")}}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}}t&&(n.finalSpeed=this.extractDataPoints(t,"timestampSec","speed",!1,-this.planningTime))}},{key:"updateAccelerationGraph",value:function(e){var t=this.data.accelerationGraph;e&&(t.acceleration=this.extractDataPoints(e,"timestampSec","speedAcceleration",!1,-this.planningTime))}},{key:"updateThetaGraph",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=(0,f.default)(e);!(t=(r=o.next()).done);t=!0){var a=r.value,s="planning_reference_line"===a.name?"ReferenceLine":a.name;this.data.thetaGraph[s]=this.extractDataPoints(a.pathPoint,"s","theta")}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}}},{key:"updateKappaGraph",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=(0,f.default)(e);!(t=(r=o.next()).done);t=!0){var a=r.value,s="planning_reference_line"===a.name?"ReferenceLine":a.name;this.data.kappaGraph[s]=this.extractDataPoints(a.pathPoint,"s","kappa")}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}}},{key:"updateDkappaGraph",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=(0,f.default)(e);!(t=(r=o.next()).done);t=!0){var a=r.value,s="planning_reference_line"===a.name?"ReferenceLine":a.name;this.data.dkappaGraph[s]=this.extractDataPoints(a.pathPoint,"s","dkappa")}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}}},{key:"updateDpPolyGraph",value:function(e){var t=this.data.dpPolyGraph;if(e.sampleLayer){t.sampleLayer=[];var n=!0,i=!1,r=void 0;try{for(var o,a=(0,f.default)(e.sampleLayer);!(n=(o=a.next()).done);n=!0){o.value.slPoint.map(function(e){var n=e.s,i=e.l;t.sampleLayer.push({x:n,y:i})})}}catch(e){i=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw r}}}e.minCostPoint&&(t.minCostPoint=this.extractDataPoints(e.minCostPoint,"s","l"))}},{key:"updateScenario",value:function(e,t){if(e){var n=this.scenarioHistory.length>0?this.scenarioHistory[this.scenarioHistory.length-1]:{};n.time&&t5&&this.scenarioHistory.shift())}}},{key:"update",value:function(e){var t=e.planningData;if(t){var n=e.latency.planning.timestampSec;if(this.planningTime===n)return;if(t.scenario&&this.updateScenario(t.scenario,n),this.chartData=[],this.data=this.initData(),t.chart){var i=!0,r=!1,o=void 0;try{for(var a,s=(0,f.default)(t.chart);!(i=(a=s.next()).done);i=!0){var l=a.value;this.chartData.push((0,_.parseChartDataFromProtoBuf)(l))}}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}}t.slFrame&&t.slFrame.length>=2&&this.updateSLFrame(t.slFrame),t.stGraph&&(this.updateSTGraph(t.stGraph),this.updateSTSpeedGraph(t.stGraph)),t.speedPlan&&e.planningTrajectory&&this.updateSpeed(t.speedPlan,e.planningTrajectory),e.planningTrajectory&&this.updateAccelerationGraph(e.planningTrajectory),t.path&&(this.updateKappaGraph(t.path),this.updateDkappaGraph(t.path),this.updateThetaGraph(t.path)),t.dpPolyGraph&&this.updateDpPolyGraph(t.dpPolyGraph),this.updatePlanningTime(n)}}}]),e}(),s=o(a.prototype,"planningTime",[y.observable],{enumerable:!0,initializer:function(){return null}}),o(a.prototype,"updatePlanningTime",[y.action],(0,d.default)(a.prototype,"updatePlanningTime"),a.prototype),a);t.default=x},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,p.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,l,u,c,d,h,f=n(21),p=i(f),m=n(23),g=i(m),v=n(0),y=i(v),b=n(1),_=i(b),x=n(22);n(671);var w=(a=function(){function e(){(0,y.default)(this,e),this.FPS=10,this.msPerFrame=100,this.recordId=null,this.mapId=null,r(this,"numFrames",s,this),r(this,"requestedFrame",l,this),r(this,"retrievedFrame",u,this),r(this,"isPlaying",c,this),r(this,"isSeeking",d,this),r(this,"seekingFrame",h,this)}return(0,_.default)(e,[{key:"setMapId",value:function(e){this.mapId=e}},{key:"setRecordId",value:function(e){this.recordId=e}},{key:"setNumFrames",value:function(e){this.numFrames=parseInt(e)}},{key:"setPlayRate",value:function(e){if("number"==typeof e&&e>0){var t=1/this.FPS*1e3;this.msPerFrame=t/e}}},{key:"initialized",value:function(){return this.numFrames&&null!==this.recordId&&null!==this.mapId}},{key:"hasNext",value:function(){return this.initialized()&&this.requestedFrame0&&e<=this.numFrames&&(this.seekingFrame=e,this.requestedFrame=e-1,this.isSeeking=!0)}},{key:"resetFrame",value:function(){this.requestedFrame=0,this.retrievedFrame=0,this.seekingFrame=1}},{key:"shouldProcessFrame",value:function(e){return!(!e||!e.sequenceNum||this.seekingFrame!==e.sequenceNum||!this.isPlaying&&!this.isSeeking)&&(this.retrievedFrame=e.sequenceNum,this.isSeeking=!1,this.seekingFrame++,!0)}},{key:"currentFrame",get:function(){return this.retrievedFrame}},{key:"replayComplete",get:function(){return this.seekingFrame>this.numFrames}}]),e}(),s=o(a.prototype,"numFrames",[x.observable],{enumerable:!0,initializer:function(){return 0}}),l=o(a.prototype,"requestedFrame",[x.observable],{enumerable:!0,initializer:function(){return 0}}),u=o(a.prototype,"retrievedFrame",[x.observable],{enumerable:!0,initializer:function(){return 0}}),c=o(a.prototype,"isPlaying",[x.observable],{enumerable:!0,initializer:function(){return!1}}),d=o(a.prototype,"isSeeking",[x.observable],{enumerable:!0,initializer:function(){return!0}}),h=o(a.prototype,"seekingFrame",[x.observable],{enumerable:!0,initializer:function(){return 1}}),o(a.prototype,"next",[x.action],(0,g.default)(a.prototype,"next"),a.prototype),o(a.prototype,"currentFrame",[x.computed],(0,g.default)(a.prototype,"currentFrame"),a.prototype),o(a.prototype,"replayComplete",[x.computed],(0,g.default)(a.prototype,"replayComplete"),a.prototype),o(a.prototype,"setPlayAction",[x.action],(0,g.default)(a.prototype,"setPlayAction"),a.prototype),o(a.prototype,"seekFrame",[x.action],(0,g.default)(a.prototype,"seekFrame"),a.prototype),o(a.prototype,"resetFrame",[x.action],(0,g.default)(a.prototype,"resetFrame"),a.prototype),o(a.prototype,"shouldProcessFrame",[x.action],(0,g.default)(a.prototype,"shouldProcessFrame"),a.prototype),a);t.default=w},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,d.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,l,u,c=n(21),d=i(c),h=n(23),f=i(h),p=n(0),m=i(p),g=n(1),v=i(g),y=n(22),b=n(37),x=i(b),w=n(142),M=i(w),S=(a=function(){function e(){(0,m.default)(this,e),r(this,"defaultRoutingEndPoint",s,this),r(this,"defaultParkingSpaceId",l,this),r(this,"currentPOI",u,this)}return(0,v.default)(e,[{key:"updateDefaultRoutingEndPoint",value:function(e){if(void 0!==e.poi){this.defaultRoutingEndPoint={},this.defaultParkingSpaceId={};for(var t=0;t150&&console.log("Last sim_world_update took "+(e.timestamp-this.lastUpdateTimestamp)+"ms"),this.lastUpdateTimestamp=e.timestamp,-1!==this.lastSeqNum&&e.world.sequenceNum>this.lastSeqNum+1&&console.debug("Last seq: "+this.lastSeqNum+". New seq: "+e.world.sequenceNum+"."),this.lastSeqNum=e.world.sequenceNum}},{key:"startPlayback",value:function(e){var t=this;clearInterval(this.requestTimer),this.requestTimer=setInterval(function(){if(t.websocket.readyState===t.websocket.OPEN&&d.default.playback.initialized()){if(!d.default.playback.hasNext())return clearInterval(t.requestTimer),void(t.requestTimer=null);t.requestSimulationWorld(d.default.playback.recordId,d.default.playback.next())}},e/2),clearInterval(this.processTimer),this.processTimer=setInterval(function(){if(d.default.playback.initialized()){var e=d.default.playback.seekingFrame;e in t.frameData&&t.processSimWorld(t.frameData[e]),d.default.playback.replayComplete&&(clearInterval(t.processTimer),t.processTimer=null)}},e)}},{key:"pausePlayback",value:function(){clearInterval(this.requestTimer),clearInterval(this.processTimer),this.requestTimer=null,this.processTimer=null}},{key:"requestGroundMeta",value:function(e){this.websocket.send((0,o.default)({type:"RetrieveGroundMeta",mapId:e}))}},{key:"processSimWorld",value:function(e){d.default.playback.shouldProcessFrame(e)&&(e.routePath||(e.routePath=this.routingTime2Path[e.routingTime]),d.default.updateTimestamp(e.timestamp),f.default.maybeInitializeOffest(e.autoDrivingCar.positionX,e.autoDrivingCar.positionY),f.default.updateWorld(e),d.default.meters.update(e),d.default.monitor.update(e),d.default.trafficSignal.update(e))}},{key:"requestFrameCount",value:function(e){this.websocket.send((0,o.default)({type:"RetrieveFrameCount",recordId:e}))}},{key:"requestSimulationWorld",value:function(e,t){t in this.frameData?d.default.playback.isSeeking&&this.processSimWorld(this.frameData[t]):this.websocket.send((0,o.default)({type:"RequestSimulationWorld",recordId:e,frameId:t}))}},{key:"requestRoutePath",value:function(e,t){this.websocket.send((0,o.default)({type:"requestRoutePath",recordId:e,frameId:t}))}}]),e}();t.default=p},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(49),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(14),d=i(c),h=n(37),f=i(h),p=n(100),m=i(p),g=function(){function e(t){(0,s.default)(this,e),this.serverAddr=t,this.websocket=null,this.worker=new m.default}return(0,u.default)(e,[{key:"initialize",value:function(){var e=this;try{this.websocket=new WebSocket(this.serverAddr),this.websocket.binaryType="arraybuffer"}catch(t){return console.error("Failed to establish a connection: "+t),void setTimeout(function(){e.initialize()},1e3)}this.websocket.onmessage=function(t){e.worker.postMessage({source:"point_cloud",data:t.data})},this.websocket.onclose=function(t){console.log("WebSocket connection closed with code: "+t.code),e.initialize()},this.worker.onmessage=function(e){"PointCloudStatus"===e.data.type?(d.default.setOptionStatus("showPointCloud",e.data.enabled),!1===d.default.options.showPointCloud&&f.default.updatePointCloud({num:[]})):!0===d.default.options.showPointCloud&&void 0!==e.data.num&&f.default.updatePointCloud(e.data)},clearInterval(this.timer),this.timer=setInterval(function(){e.websocket.readyState===e.websocket.OPEN&&!0===d.default.options.showPointCloud&&e.websocket.send((0,o.default)({type:"RequestPointCloud"}))},200)}},{key:"togglePointCloud",value:function(e){this.websocket.send((0,o.default)({type:"TogglePointCloud",enable:e})),!1===d.default.options.showPointCloud&&f.default.updatePointCloud({num:[]})}}]),e}();t.default=g},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(153),o=i(r),a=n(49),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(14),f=i(h),p=n(37),m=i(p),g=n(142),v=i(g),y=n(77),b=i(y),_=n(100),x=i(_),w=function(){function e(t){(0,u.default)(this,e),this.serverAddr=t,this.websocket=null,this.simWorldUpdatePeriodMs=100,this.simWorldLastUpdateTimestamp=0,this.mapUpdatePeriodMs=1e3,this.mapLastUpdateTimestamp=0,this.updatePOI=!0,this.routingTime=void 0,this.currentMode=null,this.worker=new x.default}return(0,d.default)(e,[{key:"initialize",value:function(){var e=this;try{this.websocket=new WebSocket(this.serverAddr),this.websocket.binaryType="arraybuffer"}catch(t){return console.error("Failed to establish a connection: "+t),void setTimeout(function(){e.initialize()},1e3)}this.websocket.onmessage=function(t){e.worker.postMessage({source:"realtime",data:t.data})},this.worker.onmessage=function(t){var n=t.data;switch(n.type){case"HMIStatus":f.default.hmi.updateStatus(n.data),m.default.updateGroundImage(f.default.hmi.currentMap);break;case"VehicleParam":f.default.hmi.updateVehicleParam(n.data);break;case"SimControlStatus":f.default.setOptionStatus("enableSimControl",n.enabled);break;case"SimWorldUpdate":e.checkMessage(n);var i=e.currentMode!==f.default.hmi.currentMode;e.currentMode=f.default.hmi.currentMode,f.default.hmi.inNavigationMode?(v.default.isInitialized()&&v.default.update(n),n.autoDrivingCar.positionX=0,n.autoDrivingCar.positionY=0,n.autoDrivingCar.heading=0,m.default.coordinates.setSystem("FLU"),e.mapUpdatePeriodMs=100):(m.default.coordinates.setSystem("ENU"),e.mapUpdatePeriodMs=1e3),f.default.update(n),m.default.maybeInitializeOffest(n.autoDrivingCar.positionX,n.autoDrivingCar.positionY,i),m.default.updateWorld(n),e.updateMapIndex(n),e.routingTime!==n.routingTime&&(e.requestRoutePath(),e.routingTime=n.routingTime);break;case"MapElementIds":m.default.updateMapIndex(n.mapHash,n.mapElementIds,n.mapRadius);break;case"DefaultEndPoint":f.default.routeEditingManager.updateDefaultRoutingEndPoint(n);break;case"RoutePath":m.default.updateRouting(n.routingTime,n.routePath)}},this.websocket.onclose=function(t){console.log("WebSocket connection closed, close_code: "+t.code);var n=(new Date).getTime(),i=n-e.simWorldLastUpdateTimestamp,r=n-f.default.monitor.lastUpdateTimestamp;if(0!==e.simWorldLastUpdateTimestamp&&i>1e4&&r>2e3){var o="Connection to the server has been lost.";f.default.monitor.insert("FATAL",o,n),b.default.getCurrentText()===o&&b.default.isSpeaking()||b.default.speakOnce(o)}e.initialize()},clearInterval(this.timer),this.timer=setInterval(function(){if(e.websocket.readyState===e.websocket.OPEN){e.updatePOI&&(e.requestDefaultRoutingEndPoint(),e.updatePOI=!1);var t=f.default.options.showPNCMonitor;e.websocket.send((0,s.default)({type:"RequestSimulationWorld",planning:t}))}},this.simWorldUpdatePeriodMs)}},{key:"updateMapIndex",value:function(e){var t=new Date,n=t-this.mapLastUpdateTimestamp;e.mapHash&&n>=this.mapUpdatePeriodMs&&(m.default.updateMapIndex(e.mapHash,e.mapElementIds,e.mapRadius),this.mapLastUpdateTimestamp=t)}},{key:"checkMessage",value:function(e){var t=(new Date).getTime(),n=t-this.simWorldLastUpdateTimestamp;0!==this.simWorldLastUpdateTimestamp&&n>200&&console.warn("Last sim_world_update took "+n+"ms"),this.secondLastSeqNum===e.sequenceNum&&console.warn("Received duplicate simulation_world:",this.lastSeqNum),this.secondLastSeqNum=this.lastSeqNum,this.lastSeqNum=e.sequenceNum,this.simWorldLastUpdateTimestamp=t}},{key:"requestMapElementIdsByRadius",value:function(e){this.websocket.send((0,s.default)({type:"RetrieveMapElementIdsByRadius",radius:e}))}},{key:"requestRoute",value:function(e,t,n,i){var r={type:"SendRoutingRequest",start:e,end:n,waypoint:t};i&&(r.parkingSpaceId=i),this.websocket.send((0,s.default)(r))}},{key:"requestDefaultRoutingEndPoint",value:function(){this.websocket.send((0,s.default)({type:"GetDefaultEndPoint"}))}},{key:"resetBackend",value:function(){this.websocket.send((0,s.default)({type:"Reset"}))}},{key:"dumpMessages",value:function(){this.websocket.send((0,s.default)({type:"Dump"}))}},{key:"changeSetupMode",value:function(e){this.websocket.send((0,s.default)({type:"HMIAction",action:"CHANGE_MODE",value:e}))}},{key:"changeMap",value:function(e){this.websocket.send((0,s.default)({type:"HMIAction",action:"CHANGE_MAP",value:e})),this.updatePOI=!0}},{key:"changeVehicle",value:function(e){this.websocket.send((0,s.default)({type:"HMIAction",action:"CHANGE_VEHICLE",value:e}))}},{key:"executeModeCommand",value:function(e){if(!["SETUP_MODE","RESET_MODE","ENTER_AUTO_MODE"].includes(e))return void console.error("Unknown mode command found:",e);this.websocket.send((0,s.default)({type:"HMIAction",action:e}))}},{key:"executeModuleCommand",value:function(e,t){if(!["START_MODULE","STOP_MODULE"].includes(t))return void console.error("Unknown module command found:",t);this.websocket.send((0,s.default)({type:"HMIAction",action:t,value:e}))}},{key:"submitDriveEvent",value:function(e,t,n){this.websocket.send((0,s.default)({type:"SubmitDriveEvent",event_time_ms:e,event_msg:t,event_type:n}))}},{key:"sendAudioPiece",value:function(e){this.websocket.send((0,s.default)({type:"HMIAction",action:"RECORD_AUDIO",value:btoa(String.fromCharCode.apply(String,(0,o.default)(e)))}))}},{key:"toggleSimControl",value:function(e){this.websocket.send((0,s.default)({type:"ToggleSimControl",enable:e}))}},{key:"requestRoutePath",value:function(){this.websocket.send((0,s.default)({type:"RequestRoutePath"}))}},{key:"publishNavigationInfo",value:function(e){this.websocket.send(e)}}]),e}();t.default=w},function(e,t,n){"use strict";function i(){return l[u++%l.length]}function r(e,t){return!(!e||!t)&&(e.x===t.x&&e.y===t.y)}function o(e){var t={};for(var n in e){var r=e[n];try{t[n]=JSON.parse(r)}catch(e){console.error("Failed to parse chart property "+n+":"+r+".","Set its value without parsing."),t[n]=r}}return t.color||(t.color=i()),t}function a(e,t,n){var i={},a={};return e&&(i.lines={},a.lines={},e.forEach(function(e){var t=e.label;a.lines[t]=o(e.properties),i.lines[t]=e.point})),t&&(i.polygons={},a.polygons={},t.forEach(function(e){var t=e.point.length;if(0!==t){var n=e.label;i.polygons[n]=e.point,r(e.point[0],e.point[t-1])||i.polygons[n].push(e.point[0]),e.properties&&(a.polygons[n]=o(e.properties))}})),n&&(i.cars={},a.cars={},n.forEach(function(e){var t=e.label;a.cars[t]={color:e.color},i.cars[t]={x:e.x,y:e.y,heading:e.heading}})),{data:i,properties:a}}function s(e){var t="boolean"!=typeof e.options.legendDisplay||e.options.legendDisplay,n={legend:{display:t},axes:{x:e.options.x,y:e.options.y}},i=a(e.line,e.polygon,e.car),r=i.properties,o=i.data;return{title:e.title,options:n,properties:r,data:o}}Object.defineProperty(t,"__esModule",{value:!0});var l=["rgba(241, 113, 112, 0.5)","rgba(254, 208, 114, 0.5)","rgba(162, 212, 113, 0.5)","rgba(113, 226, 208, 0.5)","rgba(113, 208, 255, 0.5)","rgba(179, 164, 238, 0.5)"],u=0;t.parseChartDataFromProtoBuf=s},function(e,t,n){t=e.exports=n(123)(!1),t.push([e.i,".modal-background{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.5);z-index:1000}.modal-content{position:fixed;top:35%;left:50%;width:300px;height:130px;transform:translate(-50%,-50%);text-align:center;background-color:rgba(0,0,0,.8);box-shadow:0 0 10px 0 rgba(0,0,0,.75);z-index:1001}.modal-content header{background:#217cba;display:flex;align-items:center;justify-content:space-between;padding:0 2rem;min-height:50px}.modal-content .modal-dialog{position:absolute;top:0;right:0;bottom:50px;left:0;padding:5px}.modal-content .ok-button{position:absolute;bottom:0;transform:translate(-50%,-50%);padding:7px 25px;border:none;background:#006aff;color:#fff;cursor:pointer}.modal-content .ok-button:hover{background:#49a9ee}",""])},function(e,t,n){t=e.exports=n(123)(!1),t.push([e.i,'body{margin:0;overflow:hidden;background-color:#14171a!important;font:14px Lucida Grande,Helvetica,Arial,sans-serif;color:#fff}body *{font-size:16px}@media (max-height:800px),(max-width:1280px){body *{font-size:14px}}::-webkit-scrollbar{width:4px;height:8px;opacity:.3;background-color:#fff}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);background-color:#555}::-webkit-scrollbar-thumb{opacity:.8;background-color:#30a5ff}::-webkit-scrollbar-thumb:active{background-color:#30a5ff}.header{display:flex;align-items:center;z-index:100;position:relative;top:0;left:0;height:60px;background:#000;color:#fff;text-align:left}@media (max-height:800px),(max-width:1280px){.header{height:55px}}.header .apollo-logo{flex:0 0 auto;top:40px;left:40px;height:40px;width:121px;margin:10px auto 5px 18px}@media (max-height:800px),(max-width:1280px){.header .apollo-logo{top:15px;left:25px;height:25px;width:80px;margin-top:5px}}.header .header-item{flex:0 0 auto;position:relative;margin:5px;border:1px solid #383838}.header .selector select{display:block;border:none;padding:.5em 3em .5em .5em;background:#000;color:#fff;outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.header .selector .arrow{position:absolute;top:0;right:0;width:30px;height:100%;border-left:1px solid #383838;background:#181818;pointer-events:none}.header .selector .arrow:before{position:absolute;top:55%;right:7px;margin-top:-5px;border-top:8px solid #666;border-left:8px solid transparent;border-right:8px solid transparent;content:"";pointer-events:none}.header .header-button{min-width:125px;padding:.5em 0;background:#181818;color:#fff;text-align:center}@media (max-height:800px),(max-width:1280px){.header .header-button{min-width:110px}}.header .header-button-active{color:#30a5ff}.pane-container{position:absolute;width:100%;height:calc(100% - 60px)}@media (max-height:800px),(max-width:1280px){.pane-container{height:calc(100% - 55px)}}.pane-container .left-pane{display:flex;flex-flow:row nowrap;align-items:stretch;position:absolute;bottom:0;top:0;width:100%}.pane-container .left-pane .dreamview-body{display:flex;flex-flow:column nowrap;flex:1 1 auto;overflow:hidden}.pane-container .left-pane .dreamview-body .main-view{flex:0 0 auto;position:relative;min-width:600px}.pane-container .right-pane{position:absolute;right:0;width:100%;height:100%;overflow:hidden}.pane-container .right-pane ::-webkit-scrollbar{width:6px}.pane-container .right-pane .react-tabs__tab-list{display:table;width:100%;margin:0;border-bottom:1px solid #000;padding:0}.pane-container .right-pane .react-tabs__tab{display:table-cell;position:relative;border:1px solid transparent;border-bottom:none;padding:6px 12px;background:#1d2226;color:#999;list-style:none;cursor:pointer}.pane-container .right-pane .react-tabs__tab--selected{background:#2a3238;color:#fff}.pane-container .right-pane .react-tabs__tab span{color:#fff}.pane-container .right-pane .react-tabs__tab-panel{display:none}.pane-container .right-pane .react-tabs__tab-panel--selected{display:block}.pane-container .right-pane .pnc-monitor{height:100%;border:1px solid #000;box-sizing:border-box;background-color:#1d2226;overflow:auto}.pane-container .right-pane .pnc-monitor .scatter-graph{margin:0;border:1px #000;border-style:solid none}.pane-container .right-pane .pnc-monitor .scenario-history-container{padding:10px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400}.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-title{margin:5px;border-bottom:1px solid hsla(0,0%,60%,.5);padding-bottom:5px;font-size:12px;font-weight:600;text-align:center}.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-table,.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-table .scenario-history-item{position:relative;width:100%}.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-table .scenario-history-item .text{position:relative;width:30%;padding:2px 4px;color:#999;font-size:12px}.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-table .scenario-history-item .time{text-align:center}.pane-container .SplitPane .Resizer{background:#000;opacity:.2;z-index:1;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}.pane-container .SplitPane .Resizer:hover{-webkit-transition:all 2s ease;transition:all 2s ease}.pane-container .SplitPane .Resizer.vertical{width:11px;margin:0 -5px;border-left:5px solid hsla(0,0%,100%,0);border-right:5px solid hsla(0,0%,100%,0);cursor:col-resize}.pane-container .SplitPane .Resizer.vertical:hover{border-left:5px solid rgba(0,0,0,.5);border-right:5px solid rgba(0,0,0,.5)}.pane-container .SplitPane .Resizer.disabled{cursor:auto}.pane-container .SplitPane .Resizer.disabled:hover{border-color:transparent}.offlineview{display:flex;flex-flow:column nowrap;position:absolute;width:100%;height:100%}.offlineview .main-view{flex:0 0 auto;position:relative}.dreamview-canvas{z-index:1;position:absolute}.dreamview-canvas .geolocation{z-index:10;position:absolute;bottom:10px;right:10px;color:#fff}.hidden{display:none}.tools{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;margin-top:3px;overflow:hidden}.tools .card{flex:1 1 auto;border-right:3px solid #000;padding:15px 10px 25px 20px;background:#1d2226}@media (max-height:800px),(max-width:1280px){.tools .card{padding:15px 5px 15px 15px}}.tools .card .card-header{width:100%;padding-bottom:15px}.tools .card .card-header span{width:200px;border-bottom:1px solid #999;padding:10px 10px 10px 0;font-size:18px}@media (max-height:800px),(max-width:1280px){.tools .card .card-header span{font-size:16px}}.tools .card .card-content-row{display:flex;flex-flow:row wrap;align-content:flex-start;overflow-x:hidden;overflow-y:auto;height:85%}.tools .card .card-content-column{display:flex;flex-flow:column nowrap;overflow-x:hidden;overflow-y:auto;height:89%}.tools ul{flex:0 0 auto;margin:0 2px 0 0;padding-left:0;padding-right:5px;background-color:#1d2226;color:#999;list-style:none;cursor:pointer}.tools ul li{line-height:40px}.tools ul li span{padding-left:20px}.tools ul li:hover{color:#fff;background-color:#2a3238}.tools .switch{display:inline-block;position:relative;width:40px;transform:translate(35%,25%)}.tools .switch .toggle-switch{display:none}.tools .switch .toggle-switch-label{display:block;overflow:hidden;cursor:pointer;height:20px;padding:0;line-height:20px;border:0;background-color:#3f4548;transition:background-color .2s ease-in}.tools .switch .toggle-switch-label:before{content:"";display:block;width:16px;margin:2px;background:#a0a0a0;position:absolute;top:0;bottom:0;right:20px;transition:all .2s ease-in}.tools .switch .toggle-switch:checked+.toggle-switch-label{background-color:#0e3d62}.tools .switch .toggle-switch:checked+.toggle-switch-label,.tools .switch .toggle-switch:checked+.toggle-switch-label:before{border-color:#0e3d62}.tools .switch .toggle-switch:checked+.toggle-switch-label:before{right:0;background-color:#30a5ff}.tools .switch .toggle-switch:disabled+.toggle-switch-label,.tools .switch .toggle-switch:disabled+.toggle-switch-label:before{cursor:not-allowed}.tools .tool-view-menu{display:flex;flex-flow:row nowrap;align-items:stretch;flex:2 1 auto;z-index:10!important;margin-right:3px;overflow-y:hidden;overflow-x:auto;background:#1d2226;color:#fff;text-align:left;white-space:nowrap}.tools .tool-view-menu .summary{line-height:50px}@media (max-height:800px),(max-width:1280px){.tools .tool-view-menu .summary{line-height:25px}}.tools .tool-view-menu .summary img{position:relative;width:30px;height:30px;transform:translate(-30%,25%)}@media (max-height:800px),(max-width:1280px){.tools .tool-view-menu .summary img{width:20px;height:20px;transform:translate(-50%,10%)}}.tools .tool-view-menu .summary span{padding-left:10px}.tools .tool-view-menu input[type=radio]{display:none}.tools .tool-view-menu .radio-selector-label{display:inline-block;position:relative;transform:translate(65%,30%);box-sizing:border-box;-webkit-box-sizing:border-box;width:25px;height:25px;margin-right:6px;border-radius:50%;-webkit-border-radius:50%;background-color:#a0a0a0;box-shadow:inset 1px 0 #a0a0a0;border:7px solid #3f4548}.tools .tool-view-menu input[type=radio]:checked+.radio-selector-label{border:7px solid #0e3d62;background-color:#30a5ff}.tools .console{z-index:10;position:relative;min-width:230px;margin:0;border:none;padding:0;overflow:hidden}.tools .console .monitor-item{display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default}.tools .console .monitor-item .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px),(max-width:1280px){.tools .console .monitor-item .icon{height:15px;width:15px}}.tools .console .monitor-item .text{position:relative;width:calc(100% - 80px);padding-left:5px;line-height:150%;font-size:12px;word-wrap:break-word}.tools .console .monitor-item .time{position:absolute;right:5px;font-size:12px}.tools .console .monitor-item .alert{color:#d7466f}.tools .console .monitor-item .warn{color:#a3842d}.tools .poi-button{min-width:310px}@media (max-height:800px),(max-width:1280px){.tools .poi-button{min-width:280px}}.side-bar{display:flex;flex-direction:column;flex:0 0 auto;z-index:100;background:#1d2226;border-right:3px solid #000;overflow-y:auto;overflow-x:hidden}.side-bar .main-panel{margin-bottom:auto}.side-bar .button{display:block;width:90px;border:none;padding:20px 10px;text-align:center;background:#1d2226;color:#fff;opacity:.6;cursor:pointer}@media (max-height:800px),(max-width:1280px){.side-bar .button{width:80px;padding-top:10px}}.side-bar .button .icon{width:40px;height:40px;margin:auto}@media (max-height:800px),(max-width:1280px){.side-bar .button .icon{width:30px;height:30px}}.side-bar .button .label{padding-top:10px}@media (max-height:800px),(max-width:1280px){.side-bar .button .label{padding-top:4px}}.side-bar .button:first-child{padding-top:25px}@media (max-height:800px),(max-width:1280px){.side-bar .button:first-child{padding-top:10px}}.side-bar .button:disabled{color:#414141;cursor:not-allowed}.side-bar .button:disabled .icon{opacity:.2}.side-bar .button-active{background:#2a3238;opacity:1;color:#fff}.side-bar .sub-button{display:block;width:90px;height:80px;border:none;padding:10px;text-align:center;background:#3e4041;color:#999;cursor:pointer}@media (max-height:800px),(max-width:1280px){.side-bar .sub-button{width:80px;height:60px}}.side-bar .sub-button:not(:last-child){border-bottom:1px solid #1d2226}.side-bar .sub-button:disabled{cursor:not-allowed;opacity:.3}.side-bar .sub-button-active{background:#30a5ff;color:#fff}.status-bar{z-index:10;position:absolute;top:0;left:0;width:100%}.status-bar .auto-meter{position:absolute;width:224px;height:112px;top:10px;right:20px;background:rgba(0,0,0,.8)}.status-bar .auto-meter .speed-read{position:absolute;top:27px;left:15px;font-family:Arial;font-weight:lighter;font-size:35px;color:#fff}.status-bar .auto-meter .speed-unit{position:absolute;top:66px;left:17px;color:#fff;font-size:15px}.status-bar .auto-meter .brake-panel{position:absolute;top:21px;right:2px}.status-bar .auto-meter .throttle-panel{position:absolute;top:61px;right:2px}.status-bar .auto-meter .meter-container .meter-label{font-size:13px;color:#fff}.status-bar .auto-meter .meter-container .meter-head{display:inline-block;position:absolute;margin:5px 0 0;border-width:4px;border-style:solid}.status-bar .auto-meter .meter-container .meter-background{position:relative;display:block;height:2px;width:120px;margin:8px}.status-bar .auto-meter .meter-container .meter-background span{position:relative;overflow:hidden;display:block;height:100%}.status-bar .wheel-panel{display:flex;flex-direction:row;justify-content:left;align-items:center;position:absolute;top:128px;right:20px;width:187px;height:92px;padding:10px 22px 10px 15px;background:rgba(0,0,0,.8)}.status-bar .wheel-panel .steerangle-read{font-family:Arial;font-weight:lighter;font-size:35px;color:#fff}.status-bar .wheel-panel .steerangle-unit{padding:20px 10px 0 3px;color:#fff;font-size:13px}.status-bar .wheel-panel .left-arrow{position:absolute;top:45px;right:115px;width:0;height:0;border-style:solid;border-width:12px 15px 12px 0;border-color:transparent}.status-bar .wheel-panel .right-arrow{position:absolute;top:45px;right:15px;width:0;height:0;border-style:solid;border-width:12px 0 12px 15px;border-color:transparent transparent transparent #30435e}.status-bar .wheel-panel .wheel{position:absolute;top:15px;right:33px}.status-bar .wheel-panel .wheel-background{stroke-width:3px;stroke:#006aff}.status-bar .wheel-panel .wheel-arm{stroke-width:3px;stroke:#006aff;fill:#006aff}.status-bar .traffic-light-and-driving-mode{position:absolute;top:246px;right:20px;width:224px;height:35px;font-size:14px}.status-bar .traffic-light-and-driving-mode .traffic-light{position:absolute;width:116px;height:35px;background:rgba(0,0,0,.8)}.status-bar .traffic-light-and-driving-mode .traffic-light .symbol{position:relative;top:4px;left:4px;width:28px;height:28px}.status-bar .traffic-light-and-driving-mode .traffic-light .text{position:absolute;top:10px;right:8px;font-size:14px;color:#fff}.status-bar .traffic-light-and-driving-mode .driving-mode{position:absolute;top:0;right:0;width:105px;height:35px}.status-bar .traffic-light-and-driving-mode .driving-mode .text{position:absolute;top:50%;left:50%;float:right;transform:translate(-50%,-50%);text-align:center;font-size:14px}.status-bar .traffic-light-and-driving-mode .auto-mode{background:linear-gradient(90deg,rgba(17,30,48,.8),rgba(7,42,94,.8));border-right:1px solid #006aff;color:#006aff}.status-bar .traffic-light-and-driving-mode .manual-mode{background:linear-gradient(90deg,rgba(30,17,17,.8),rgba(71,36,36,.8));color:#b43131;border-right:1px solid #b43131}.status-bar .notification-warn{position:absolute;top:10px;right:260px;width:260px;display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default;border:1px solid #a3842d;background-color:rgba(52,39,5,.3)}.status-bar .notification-warn .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px),(max-width:1280px){.status-bar .notification-warn .icon{height:15px;width:15px}}.status-bar .notification-warn .text{position:relative;width:calc(100% - 17px);padding-left:5px;line-height:150%;font-size:12px;word-wrap:break-word}.status-bar .notification-warn .time{position:absolute;right:5px;font-size:12px}.status-bar .notification-warn .alert{color:#d7466f}.status-bar .notification-warn .warn{color:#a3842d}.status-bar .notification-alert{position:absolute;top:10px;right:260px;width:260px;display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default;border:1px solid #d7466f;background-color:rgba(74,5,24,.3)}.status-bar .notification-alert .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px),(max-width:1280px){.status-bar .notification-alert .icon{height:15px;width:15px}}.status-bar .notification-alert .text{position:relative;width:calc(100% - 17px);padding-left:5px;line-height:150%;font-size:12px;word-wrap:break-word}.status-bar .notification-alert .time{position:absolute;right:5px;font-size:12px}.status-bar .notification-alert .alert{color:#d7466f}.status-bar .notification-alert .warn{color:#a3842d}.tasks{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;z-index:10;margin-right:3px;overflow-x:auto;overflow-y:hidden}.tasks .command-group{display:flex;flex-flow:row nowrap;justify-content:flex-start;flex:1 1 0;min-height:45px;min-width:130px}.tasks .command-group .name{width:40px;padding:15px}.tasks .start-auto-command{flex:2 2 0}.tasks .start-auto-command .start-auto-button{max-height:unset}.tasks .others{min-width:200px;max-width:280px}@media (max-height:800px),(max-width:1280px){.tasks .others{min-width:180px;max-width:260px}}.tasks .delay{min-width:265px;line-height:26px}.tasks .delay .delay-item{position:relative;margin:0 10px}.tasks .delay .delay-item .name{display:inline-block;min-width:140px;color:#1c9063}.tasks .delay .delay-item .value{display:inline-block;position:absolute;right:0;min-width:70px;text-align:right}.tasks .delay .delay-item .warning{color:#b43131}.tasks .camera{min-width:265px}.tasks button{flex:1 1 0;margin:5px;border:0;min-width:75px;min-height:40px;max-height:60px;color:#999;border-bottom:2px solid #1c9063;background:linear-gradient(#000,#111f1d);outline:none;cursor:pointer}.tasks button:hover{color:#fff;background:#151e1b}.tasks button:active{background:rgba(35,51,45,.6)}.tasks button:disabled{color:#999;border-color:#555;background:linear-gradient(rgba(0,0,0,.8),rgba(9,17,16,.8));cursor:not-allowed}.tasks .disabled{cursor:not-allowed}.module-controller{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;z-index:10;margin-right:3px;overflow:hidden}.module-controller .controller{min-width:180px}.module-controller .modules-container{flex-flow:column wrap}.module-controller .status-display{display:flex;flex-wrap:nowrap;justify-content:space-around;min-width:250px;padding:5px 20px 5px 5px}.module-controller .status-display:hover{background:#2a3238}.module-controller .status-display .name{padding:10px;min-width:80px}.module-controller .status-display .status{position:relative;width:130px;padding:10px;background:#000;white-space:nowrap}.module-controller .status-display .status .status-icon{position:absolute;right:10px;width:15px;height:15px;background-color:#b43131}.route-editing-bar{z-index:10;position:absolute;top:0;left:0;right:0;min-height:90px;border-bottom:3px solid #000;padding-left:10px;background:#1d2226}@media (max-height:800px),(max-width:1280px){.route-editing-bar{min-height:60px}}.route-editing-bar .editing-panel{display:flex;justify-content:center;align-items:center;overflow:hidden;white-space:nowrap}.route-editing-bar .editing-panel .button{height:90px;border:none;padding:10px 15px;background:#1d2226;outline:none;color:#999}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .button{height:60px;padding:5px 10px}}.route-editing-bar .editing-panel .button img{display:block;top:23px;margin:15px auto}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .button img{top:13px;margin:7px auto}}.route-editing-bar .editing-panel .button span{font-family:PingFangSC-Light;color:#d8d8d8;text-align:center}.route-editing-bar .editing-panel .button:hover{background:#2a3238}.route-editing-bar .editing-panel .active{color:#fff;background:#2a3238}.route-editing-bar .editing-panel .editing-tip{height:90px;width:90px;margin-left:auto;border:none;color:#d8d8d8}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .editing-tip{height:60px;width:60px}}.route-editing-bar .editing-panel .editing-tip p{position:absolute;top:120%;right:15px;width:400px;border-radius:3px;padding:20px;background-color:#fff;color:#999;text-align:left;white-space:pre-wrap}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .editing-tip p{right:5px}}.route-editing-bar .editing-panel .editing-tip p:before{position:absolute;top:-20px;right:13px;content:"";border-style:solid;border-width:0 20px 20px;border-color:transparent transparent #fff}@-moz-document url-prefix(){.route-editing-bar .editing-panel .editing-tip p:before{top:-38px}}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .editing-tip p:before{right:8px}}.data-recorder table{width:100%;height:100%;min-width:550px}.data-recorder table td,.data-recorder table tr{border:2px solid #1d2226}.data-recorder table td:first-child{width:100px;border:none;box-sizing:border-box;white-space:nowrap}@media (max-height:800px),(max-width:1280px){.data-recorder table td:first-child{width:60px}}.data-recorder table .drive-event-time-row span{position:relative;padding:10px 5px 10px 10px;background:#101315;white-space:nowrap}.data-recorder table .drive-event-time-row span .timestamp-button{position:relative;top:0;right:0;padding:5px 20px;border:5px solid #101315;margin-left:10px;background:#006aff;color:#fff}.data-recorder table .drive-event-time-row span .timestamp-button:hover{background:#49a9ee}.data-recorder table .drive-event-msg-row{width:70%;height:70%}.data-recorder table .drive-event-msg-row textarea{height:100%;width:100%;max-width:500px;color:#fff;border:1px solid #383838;background:#101315;resize:none}.data-recorder table .cancel-button,.data-recorder table .drive-event-type-button,.data-recorder table .submit-button,.data-recorder table .submit-button:active{margin-right:5px;padding:10px 35px;border:none;background:#1d2226;color:#fff;cursor:pointer}.data-recorder table .drive-event-type-button{background:#181818;padding:10px 25px}.data-recorder table .drive-event-type-button-active{color:#30a5ff}.data-recorder table .submit-button{background:#000}.data-recorder table .submit-button:active{background:#383838}.loader{flex:0 0 auto;position:relative;width:100%;height:100%;background-color:#000c17}.loader .img-container{position:relative;top:55%;left:50%;width:40%;transform:translate(-50%,-50%)}.loader .img-container img{width:100%;height:auto}.loader .img-container .status-message{margin-top:10px;font-size:18px;font-size:1.7vw;color:#fff;text-align:center;animation-name:flash;animation-duration:2s;animation-timing-function:linear;animation-iteration-count:infinite;animation-direction:alternate;animation-play-state:running}@keyframes flash{0%{color:#fff}to{color:#000c17}}.loader .offline-loader{width:60%;max-width:650px}.loader .offline-loader .status-message{position:relative;top:-70px;top:-4.5vw;font-size:3vw}.loader .offline-loader .error-message{position:relative;top:-2vw;font-size:1.5vw;color:#b43131;white-space:nowrap;text-align:center}.camera-video{text-align:center}.camera-video img{width:auto;height:auto;max-width:100%;max-height:100%}.dashcam-player{z-index:1;position:absolute;top:0;left:0;color:#fff}.dashcam-player video{max-width:380px;max-height:300px}@media (max-height:800px),(max-width:1280px){.dashcam-player video{max-width:300px;max-height:200px}}.dashcam-player .controls{display:flex;justify-content:flex-end;z-index:10;position:absolute;right:0}.dashcam-player .controls button{width:27px;height:27px;border:none;background-color:#000;opacity:.6;color:#fff}.dashcam-player .controls button img{width:15px}.dashcam-player .controls button:hover{opacity:.9}.dashcam-player .controls .close{font-size:20px}.dashcam-player .controls .syncup{padding-top:.5em}.navigation-view{z-index:20;position:relative}.navigation-view #map_canvas{width:100%;height:100%;background:rgba(0,0,0,.8)}.navigation-view .window-resize-control{position:absolute;bottom:0;right:0;width:30px;height:30px}',""])},function(e,t,n){t=e.exports=n(123)(!1),t.push([e.i,'.playback-controls{z-index:100;position:absolute;width:100%;height:40px;bottom:0;background:#1d2226;font-size:16px;min-width:550px}@media (max-height:800px),(max-width:1280px){.playback-controls{font-size:14px}}.playback-controls .icon{display:inline-block;width:20px;height:20px;padding:10px;cursor:pointer}.playback-controls .icon .play{stroke-linejoin:round;stroke-width:1.5px;stroke:#006aff;fill:#1d2226}.playback-controls .icon .pause,.playback-controls .icon .replay{stroke-linejoin:round;stroke-width:1.5px;stroke:#006aff;fill:#006aff}.playback-controls .icon .replay{top:2px}.playback-controls .icon .exit-fullscreen,.playback-controls .icon .fullscreen{stroke-linejoin:round;stroke-width:10px;stroke:#006aff;fill:#1d2226}.playback-controls .left-controls{display:inline-block;float:left}.playback-controls .right-controls{display:inline-block;float:right}.playback-controls .rate-selector{position:absolute;left:40px}.playback-controls .rate-selector select{display:block;border:none;padding:11px 23px 0 5px;color:#fff;background:#1d2226;outline:none;cursor:pointer;font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.playback-controls .rate-selector .arrow{position:absolute;top:5px;right:0;width:10px;height:100%;pointer-events:none}.playback-controls .rate-selector .arrow:before{position:absolute;top:16px;right:1px;margin-top:-5px;border-top:8px solid #666;border-left:8px solid transparent;border-right:8px solid transparent;content:"";pointer-events:none}.playback-controls .time-controls{position:absolute;min-width:300px;height:100%;left:125px;right:50px}.playback-controls .time-controls .rangeslider{position:absolute;top:7px;left:10px;right:115px;margin:10px 0;height:7px;border-radius:10px;background:#2d3b50;-ms-touch-action:none;touch-action:none}.playback-controls .time-controls .rangeslider .rangeslider__fill{display:block;height:100%;border-radius:10px;background-color:#006aff;background:#006aff}.playback-controls .time-controls .rangeslider .rangeslider__handle{display:inline-block;position:absolute;height:16px;width:16px;top:50%;transform:translate3d(-50%,-50%,0);border:1px solid #006aff;border-radius:100%;background:#006aff;cursor:pointer;box-shadow:none}.playback-controls .time-controls .time-display{position:absolute;top:12px;right:0;color:#fff}',""])},function(e,t){e.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},function(e,t,n){"use strict";var i=t;i.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var r=new Array(64),o=new Array(123),a=0;a<64;)o[r[a]=a<26?a+65:a<52?a+71:a<62?a-4:a-59|43]=a++;i.encode=function(e,t,n){for(var i,o=null,a=[],s=0,l=0;t>2],i=(3&u)<<4,l=1;break;case 1:a[s++]=r[i|u>>4],i=(15&u)<<2,l=2;break;case 2:a[s++]=r[i|u>>6],a[s++]=r[63&u],l=0}s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,a)),s=0)}return l&&(a[s++]=r[i],a[s++]=61,1===l&&(a[s++]=61)),o?(s&&o.push(String.fromCharCode.apply(String,a.slice(0,s))),o.join("")):String.fromCharCode.apply(String,a.slice(0,s))};i.decode=function(e,t,n){for(var i,r=n,a=0,s=0;s1)break;if(void 0===(l=o[l]))throw Error("invalid encoding");switch(a){case 0:i=l,a=1;break;case 1:t[n++]=i<<2|(48&l)>>4,i=l,a=2;break;case 2:t[n++]=(15&i)<<4|(60&l)>>2,i=l,a=3;break;case 3:t[n++]=(3&i)<<6|l,a=0}}if(1===a)throw Error("invalid encoding");return n-r},i.test=function(e){return/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e)}},function(e,t,n){"use strict";function i(e,t){function n(e){if("string"!=typeof e){var t=r();if(i.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var a=Object.keys(e),s=new Array(a.length+1),l=new Array(a.length),u=0;u0?0:2147483648,n,i);else if(isNaN(t))e(2143289344,n,i);else if(t>3.4028234663852886e38)e((r<<31|2139095040)>>>0,n,i);else if(t<1.1754943508222875e-38)e((r<<31|Math.round(t/1.401298464324817e-45))>>>0,n,i);else{var o=Math.floor(Math.log(t)/Math.LN2),a=8388607&Math.round(t*Math.pow(2,-o)*8388608);e((r<<31|o+127<<23|a)>>>0,n,i)}}function n(e,t,n){var i=e(t,n),r=2*(i>>31)+1,o=i>>>23&255,a=8388607&i;return 255===o?a?NaN:r*(1/0):0===o?1.401298464324817e-45*r*a:r*Math.pow(2,o-150)*(a+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,o),e.readFloatLE=n.bind(null,a),e.readFloatBE=n.bind(null,s)}(),"undefined"!=typeof Float64Array?function(){function t(e,t,n){o[0]=e,t[n]=a[0],t[n+1]=a[1],t[n+2]=a[2],t[n+3]=a[3],t[n+4]=a[4],t[n+5]=a[5],t[n+6]=a[6],t[n+7]=a[7]}function n(e,t,n){o[0]=e,t[n]=a[7],t[n+1]=a[6],t[n+2]=a[5],t[n+3]=a[4],t[n+4]=a[3],t[n+5]=a[2],t[n+6]=a[1],t[n+7]=a[0]}function i(e,t){return a[0]=e[t],a[1]=e[t+1],a[2]=e[t+2],a[3]=e[t+3],a[4]=e[t+4],a[5]=e[t+5],a[6]=e[t+6],a[7]=e[t+7],o[0]}function r(e,t){return a[7]=e[t],a[6]=e[t+1],a[5]=e[t+2],a[4]=e[t+3],a[3]=e[t+4],a[2]=e[t+5],a[1]=e[t+6],a[0]=e[t+7],o[0]}var o=new Float64Array([-0]),a=new Uint8Array(o.buffer),s=128===a[7];e.writeDoubleLE=s?t:n,e.writeDoubleBE=s?n:t,e.readDoubleLE=s?i:r,e.readDoubleBE=s?r:i}():function(){function t(e,t,n,i,r,o){var a=i<0?1:0;if(a&&(i=-i),0===i)e(0,r,o+t),e(1/i>0?0:2147483648,r,o+n);else if(isNaN(i))e(0,r,o+t),e(2146959360,r,o+n);else if(i>1.7976931348623157e308)e(0,r,o+t),e((a<<31|2146435072)>>>0,r,o+n);else{var s;if(i<2.2250738585072014e-308)s=i/5e-324,e(s>>>0,r,o+t),e((a<<31|s/4294967296)>>>0,r,o+n);else{var l=Math.floor(Math.log(i)/Math.LN2);1024===l&&(l=1023),s=i*Math.pow(2,-l),e(4503599627370496*s>>>0,r,o+t),e((a<<31|l+1023<<20|1048576*s&1048575)>>>0,r,o+n)}}}function n(e,t,n,i,r){var o=e(i,r+t),a=e(i,r+n),s=2*(a>>31)+1,l=a>>>20&2047,u=4294967296*(1048575&a)+o;return 2047===l?u?NaN:s*(1/0):0===l?5e-324*s*u:s*Math.pow(2,l-1075)*(u+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,o,4,0),e.readDoubleLE=n.bind(null,a,0,4),e.readDoubleBE=n.bind(null,s,4,0)}(),e}function r(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function o(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function a(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function s(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=i(i)},function(e,t,n){"use strict";var i=t,r=i.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=i.normalize=function(e){e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var t=e.split("/"),n=r(e),i="";n&&(i=t.shift()+"/");for(var o=0;o0&&".."!==t[o-1]?t.splice(--o,2):n?t.splice(o,1):++o:"."===t[o]?t.splice(o,1):++o;return i+t.join("/")};i.resolve=function(e,t,n){return n||(t=o(t)),r(t)?t:(n||(e=o(e)),(e=e.replace(/(?:\/|^)[^\/]+$/,"")).length?o(e+"/"+t):t)}},function(e,t,n){"use strict";function i(e,t,n){var i=n||8192,r=i>>>1,o=null,a=i;return function(n){if(n<1||n>r)return e(n);a+n>i&&(o=e(i),a=0);var s=t.call(o,a,a+=n);return 7&a&&(a=1+(7|a)),s}}e.exports=i},function(e,t,n){"use strict";var i=t;i.length=function(e){for(var t=0,n=0,i=0;i191&&i<224?o[a++]=(31&i)<<6|63&e[t++]:i>239&&i<365?(i=((7&i)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[a++]=55296+(i>>10),o[a++]=56320+(1023&i)):o[a++]=(15&i)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,o)),a=0);return r?(a&&r.push(String.fromCharCode.apply(String,o.slice(0,a))),r.join("")):String.fromCharCode.apply(String,o.slice(0,a))},i.write=function(e,t,n){for(var i,r,o=n,a=0;a>6|192,t[n++]=63&i|128):55296==(64512&i)&&56320==(64512&(r=e.charCodeAt(a+1)))?(i=65536+((1023&i)<<10)+(1023&r),++a,t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128);return n-o}},function(e,t,n){e.exports={default:n(370),__esModule:!0}},function(e,t,n){e.exports={default:n(372),__esModule:!0}},function(e,t,n){e.exports={default:n(374),__esModule:!0}},function(e,t,n){e.exports={default:n(379),__esModule:!0}},function(e,t,n){e.exports={default:n(380),__esModule:!0}},function(e,t,n){e.exports={default:n(381),__esModule:!0}},function(e,t,n){e.exports={default:n(383),__esModule:!0}},function(e,t,n){e.exports={default:n(384),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(79),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r.default||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}},function(e,t,n){"use strict";function i(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 r(e){var t=i(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function o(e,t,n){return 3*(t+n)/4-n}function a(e){for(var t,n=i(e),r=n[0],a=n[1],s=new h(o(e,r,a)),l=0,u=a>0?r-4:r,c=0;c>16&255,s[l++]=t>>8&255,s[l++]=255&t;return 2===a&&(t=d[e.charCodeAt(c)]<<2|d[e.charCodeAt(c+1)]>>4,s[l++]=255&t),1===a&&(t=d[e.charCodeAt(c)]<<10|d[e.charCodeAt(c+1)]<<4|d[e.charCodeAt(c+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t),s}function s(e){return c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}function l(e,t,n){for(var i,r=[],o=t;oa?a:o+16383));return 1===i?(t=e[n-1],r.push(c[t>>2]+c[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],r.push(c[t>>10]+c[t>>4&63]+c[t<<2&63]+"=")),r.join("")}t.byteLength=r,t.toByteArray=a,t.fromByteArray=u;for(var c=[],d=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,m=f.length;p1e-7?(n=e*t,(1-e*e)*(t/(1-n*n)-.5/e*Math.log((1-n)/(1+n)))):2*t}},function(e,t,n){"use strict";function i(e){if(e)for(var t=Object.keys(e),n=0;n-1&&this.oneof.splice(t,1),e.partOf=null,this},i.prototype.onAdd=function(e){o.prototype.onAdd.call(this,e);for(var t=this,n=0;n "+e.len)}function r(e){this.buf=e,this.pos=0,this.len=e.length}function o(){var e=new c(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw i(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw i(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function a(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function s(){if(this.pos+8>this.len)throw i(this,8);return new c(a(this.buf,this.pos+=4),a(this.buf,this.pos+=4))}e.exports=r;var l,u=n(36),c=u.LongBits,d=u.utf8,h="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new r(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new r(e);throw Error("illegal buffer")};r.create=u.Buffer?function(e){return(r.create=function(e){return u.Buffer.isBuffer(e)?new l(e):h(e)})(e)}:h,r.prototype._slice=u.Array.prototype.subarray||u.Array.prototype.slice,r.prototype.uint32=function(){var e=4294967295;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return e;if((this.pos+=5)>this.len)throw this.pos=this.len,i(this,10);return e}}(),r.prototype.int32=function(){return 0|this.uint32()},r.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},r.prototype.bool=function(){return 0!==this.uint32()},r.prototype.fixed32=function(){if(this.pos+4>this.len)throw i(this,4);return a(this.buf,this.pos+=4)},r.prototype.sfixed32=function(){if(this.pos+4>this.len)throw i(this,4);return 0|a(this.buf,this.pos+=4)},r.prototype.float=function(){if(this.pos+4>this.len)throw i(this,4);var e=u.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},r.prototype.double=function(){if(this.pos+8>this.len)throw i(this,4);var e=u.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},r.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw i(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},r.prototype.string=function(){var e=this.bytes();return d.read(e,0,e.length)},r.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw i(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw i(this)}while(128&this.buf[this.pos++]);return this},r.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},r._configure=function(e){l=e;var t=u.Long?"toLong":"toNumber";u.merge(r.prototype,{int64:function(){return o.call(this)[t](!1)},uint64:function(){return o.call(this)[t](!0)},sint64:function(){return o.call(this).zzDecode()[t](!1)},fixed64:function(){return s.call(this)[t](!0)},sfixed64:function(){return s.call(this)[t](!1)}})}},function(e,t,n){"use strict";function i(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function r(){}function o(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function a(){this.len=0,this.head=new i(r,0,0),this.tail=this.head,this.states=null}function s(e,t,n){t[n]=255&e}function l(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e}function u(e,t){this.len=e,this.next=void 0,this.val=t}function c(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function d(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}e.exports=a;var h,f=n(36),p=f.LongBits,m=f.base64,g=f.utf8;a.create=f.Buffer?function(){return(a.create=function(){return new h})()}:function(){return new a},a.alloc=function(e){return new f.Array(e)},f.Array!==Array&&(a.alloc=f.pool(a.alloc,f.Array.prototype.subarray)),a.prototype._push=function(e,t,n){return this.tail=this.tail.next=new i(e,t,n),this.len+=t,this},u.prototype=Object.create(i.prototype),u.prototype.fn=l,a.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new u((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},a.prototype.int32=function(e){return e<0?this._push(c,10,p.fromNumber(e)):this.uint32(e)},a.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},a.prototype.uint64=function(e){var t=p.from(e);return this._push(c,t.length(),t)},a.prototype.int64=a.prototype.uint64,a.prototype.sint64=function(e){var t=p.from(e).zzEncode();return this._push(c,t.length(),t)},a.prototype.bool=function(e){return this._push(s,1,e?1:0)},a.prototype.fixed32=function(e){return this._push(d,4,e>>>0)},a.prototype.sfixed32=a.prototype.fixed32,a.prototype.fixed64=function(e){var t=p.from(e);return this._push(d,4,t.lo)._push(d,4,t.hi)},a.prototype.sfixed64=a.prototype.fixed64,a.prototype.float=function(e){return this._push(f.float.writeFloatLE,4,e)},a.prototype.double=function(e){return this._push(f.float.writeDoubleLE,8,e)};var v=f.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var i=0;i>>0;if(!t)return this._push(s,1,0);if(f.isString(e)){var n=a.alloc(t=m.length(e));m.decode(e,n,0),e=n}return this.uint32(t)._push(v,t,e)},a.prototype.string=function(e){var t=g.length(e);return t?this.uint32(t)._push(g.write,t,e):this._push(s,1,0)},a.prototype.fork=function(){return this.states=new o(this),this.head=this.tail=new i(r,0,0),this.len=0,this},a.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new i(r,0,0),this.len=0),this},a.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},a.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},a._configure=function(e){h=e}},function(e,t,n){"use strict";function i(e){for(var t=1;t-1?i:O.nextTick;c.WritableState=u;var A=n(69);A.inherits=n(26);var R={deprecate:n(602)},L=n(219),I=n(98).Buffer,D=r.Uint8Array||function(){},N=n(218);A.inherits(c,L),u.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(u.prototype,"buffer",{get:R.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();var B;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(B=Function.prototype[Symbol.hasInstance],Object.defineProperty(c,Symbol.hasInstance,{value:function(e){return!!B.call(this,e)||this===c&&(e&&e._writableState instanceof u)}})):B=function(e){return e instanceof this},c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},c.prototype.write=function(e,t,n){var i=this._writableState,r=!1,o=!i.objectMode&&s(e);return o&&!I.isBuffer(e)&&(e=a(e)),"function"==typeof t&&(n=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=l),i.ended?d(this,n):(o||h(this,i,e,n))&&(i.pendingcb++,r=p(this,i,o,e,t,n)),r},c.prototype.cork=function(){this._writableState.corked++},c.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||x(this,e))},c.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),c.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},c.prototype._writev=null,c.prototype.end=function(e,t,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||T(this,i,n)},Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),c.prototype.destroy=N.destroy,c.prototype._undestroy=N.undestroy,c.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,n(88),n(601).setImmediate,n(28))},function(e,t,n){t=e.exports=n(216),t.Stream=t,t.Readable=t,t.Writable=n(137),t.Duplex=n(47),t.Transform=n(217),t.PassThrough=n(582)},function(e,t,n){function i(e,t){for(var n=0;n=0&&b.splice(t,1)}function s(e){var t=document.createElement("style");return e.attrs.type="text/css",u(t,e.attrs),o(e,t),t}function l(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",u(t,e.attrs),o(e,t),t}function u(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function c(e,t){var n,i,r,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var u=y++;n=v||(v=s(t)),i=d.bind(null,n,u,!1),r=d.bind(null,n,u,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),i=f.bind(null,n,t),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),i=h.bind(null,n),r=function(){a(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}function d(e,t,n,i){var r=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=x(t,r);else{var o=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function h(e,t){var n=t.css,i=t.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function f(e,t,n){var i=n.css,r=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||o)&&(i=_(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([i],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var p={},m=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),g=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e.call(this,n)),t[n]}}(function(e){return document.querySelector(e)}),v=null,y=0,b=[],_=n(598);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=m()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=r(e,t);return i(n,t),function(e){for(var o=[],a=0;an.length)for(;this.routingPaths.length>n.length;)this.mapAdapter.removePolyline(this.routingPaths[this.routingPaths.length-1]),this.routingPaths.pop();this.routingPaths.forEach(function(e,i){t.mapAdapter.updatePolyline(e,n[i])})}}},{key:"requestRoute",value:function(e,t,n,i){var r=this;if(e&&t&&n&&i){var o="http://navi-env.axty8vi3ic.us-west-2.elasticbeanstalk.com/dreamview/navigation?origin="+e+","+t+"&destination="+n+","+i+"&heading=0";fetch(encodeURI(o),{method:"GET",mode:"cors"}).then(function(e){return e.arrayBuffer()}).then(function(e){if(!e.byteLength)return void alert("No navigation info received.");r.WS.publishNavigationInfo(e)}).catch(function(e){console.error("Failed to retrieve navigation data:",e)})}}},{key:"sendRoutingRequest",value:function(){if(this.routingRequestPoints){var e=this.routingRequestPoints.length>1?this.routingRequestPoints[0]:this.mapAdapter.getMarkerPosition(this.vehicleMarker),t=this.routingRequestPoints[this.routingRequestPoints.length-1];return this.routingRequestPoints=[],this.requestRoute(e.lat,e.lng,t.lat,t.lng),!0}return alert("Please select a route"),!1}},{key:"addDefaultEndPoint",value:function(e){var t=this;e.forEach(function(e){var n=t.mapAdapter.applyCoordinateOffset((0,c.UTMToWGS84)(e.x,e.y)),i=(0,o.default)(n,2),r=i[0],a=i[1];t.routingRequestPoints.push({lat:a,lng:r})})}}]),e}(),f=new h;t.default=f},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CameraVideo=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=t.CameraVideo=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("div",{className:"camera-video"},m.default.createElement("img",{src:"/image"}))}}]),t}(m.default.Component),v=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("div",{className:"card camera"},m.default.createElement("div",{className:"card-header"},m.default.createElement("span",null,"Camera Sensor")),m.default.createElement("div",{className:"card-content-column"},m.default.createElement(g,null)))}}]),t}(m.default.Component);t.default=v},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=n(13),v=i(g),y=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=e.id,n=e.title,i=e.isChecked,r=e.onClick,o=e.disabled,a=e.extraClasses;return m.default.createElement("ul",{className:(0,v.default)({disabled:o},a)},m.default.createElement("li",{id:t,onClick:function(){o||r()}},m.default.createElement("div",{className:"switch"},m.default.createElement("input",{type:"checkbox",className:"toggle-switch",name:t,checked:i,disabled:o,readOnly:!0}),m.default.createElement("label",{className:"toggle-switch-label",htmlFor:t})),m.default.createElement("span",null,n)))}}]),t}(m.default.Component);t.default=y},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.setElementRef=function(e){n.elementRef=e},n.handleKeyPress=n.handleKeyPress.bind(n),n}return(0,f.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.props.autoFocus&&this.elementRef&&this.elementRef.focus()}},{key:"handleKeyPress",value:function(e){"Enter"===e.key&&(e.preventDefault(),this.props.onClick())}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.title,i=(e.options,e.onClick),r=e.checked,o=e.extraClasses;e.autoFocus;return m.default.createElement("ul",{className:o,tabIndex:"0",ref:this.setElementRef,onKeyPress:this.handleKeyPress,onClick:i},m.default.createElement("li",null,m.default.createElement("input",{type:"radio",name:t,checked:r,readOnly:!0}),m.default.createElement("label",{className:"radio-selector-label",htmlFor:n}),m.default.createElement("span",null,n)))}}]),t}(m.default.Component);t.default=g},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ObstacleColorMapping=t.DEFAULT_COLOR=void 0;var r=n(313),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(12),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(c),h=n(20),f=i(h),p=n(14),m=i(p),g=n(282),v=i(g),y=n(43),b=n(38),_=n(221),x=i(_),w=t.DEFAULT_COLOR=16711932,M=t.ObstacleColorMapping={PEDESTRIAN:16771584,BICYCLE:56555,VEHICLE:65340,VIRTUAL:8388608,CIPV:16750950},S=function(){function e(){(0,s.default)(this,e),this.textRender=new v.default,this.arrows=[],this.ids=[],this.solidCubes=[],this.dashedCubes=[],this.extrusionSolidFaces=[],this.extrusionDashedFaces=[],this.laneMarkers=[],this.icons=[]}return(0,u.default)(e,[{key:"update",value:function(e,t,n){this.updateObjects(e,t,n),this.updateLaneMarkers(e,t,n)}},{key:"updateObjects",value:function(e,t,n){f.default.isEmpty(this.ids)||(this.ids.forEach(function(e){e.children.forEach(function(e){return e.visible=!1}),n.remove(e)}),this.ids=[]),this.textRender.reset();var i=e.object;if(f.default.isEmpty(i))return(0,y.hideArrayObjects)(this.arrows),(0,y.hideArrayObjects)(this.solidCubes),(0,y.hideArrayObjects)(this.dashedCubes),(0,y.hideArrayObjects)(this.extrusionSolidFaces),(0,y.hideArrayObjects)(this.extrusionDashedFaces),void(0,y.hideArrayObjects)(this.icons);for(var r=t.applyOffset({x:e.autoDrivingCar.positionX,y:e.autoDrivingCar.positionY}),a=0,s=0,l=0,u=0,c=0;c.5){var v=this.updateArrow(p,h.speedHeading,g,a++,n),b=1+(0,o.default)(h.speed);v.scale.set(b,b,b),v.visible=!0}if(m.default.options.showObstaclesHeading){var _=this.updateArrow(p,h.heading,16777215,a++,n);_.scale.set(1,1,1),_.visible=!0}this.updateTexts(r,h,p,n);var x=h.confidence;x=Math.max(0,x),x=Math.min(1,x);var S=h.polygonPoint;if(void 0!==S&&S.length>0?(this.updatePolygon(S,h.height,g,t,x,l,n),l+=S.length):h.length&&h.width&&h.height&&this.updateCube(h.length,h.width,h.height,p,h.heading,g,x,s++,n),h.yieldedObstacle){var E={x:p.x,y:p.y,z:p.z+h.height+.5};this.updateIcon(E,e.autoDrivingCar.heading,u,n),u++}}}(0,y.hideArrayObjects)(this.arrows,a),(0,y.hideArrayObjects)(this.solidCubes,s),(0,y.hideArrayObjects)(this.dashedCubes,s),(0,y.hideArrayObjects)(this.extrusionSolidFaces,l),(0,y.hideArrayObjects)(this.extrusionDashedFaces,l),(0,y.hideArrayObjects)(this.icons,u)}},{key:"updateArrow",value:function(e,t,n,i,r){var o=this.getArrow(i,r);return(0,y.copyProperty)(o.position,e),o.material.color.setHex(n),o.rotation.set(0,0,-(Math.PI/2-t)),o}},{key:"updateTexts",value:function(e,t,n,i){var r={x:n.x,y:n.y,z:t.height||3},o=0;if(m.default.options.showObstaclesInfo){var a=e.distanceTo(n).toFixed(1),s=t.speed.toFixed(1);this.drawTexts("("+a+"m, "+s+"m/s)",r,i),o++}if(m.default.options.showObstaclesId){var l={x:r.x,y:r.y+.7*o,z:r.z+1*o};this.drawTexts(t.id,l,i),o++}if(m.default.options.showPredictionPriority){var u=t.obstaclePriority;if(u&&"NORMAL"!==u){var c={x:r.x,y:r.y+.7*o,z:r.z+1*o};this.drawTexts(u,c,i)}}}},{key:"updatePolygon",value:function(e,t,n,i,r,o,a){for(var s=0;s0){var u=this.getCube(s,l,!0);u.position.set(i.x,i.y,i.z+n*(a-1)/2),u.scale.set(e,t,n*a),u.material.color.setHex(o),u.rotation.set(0,0,r),u.visible=!0}if(a<1){var c=this.getCube(s,l,!1);c.position.set(i.x,i.y,i.z+n*a/2),c.scale.set(e,t,n*(1-a)),c.material.color.setHex(o),c.rotation.set(0,0,r),c.visible=!0}}},{key:"updateIcon",value:function(e,t,n,i){var r=this.getIcon(n,i);(0,y.copyProperty)(r.position,e),r.rotation.set(Math.PI/2,t-Math.PI/2,0),r.visible=!0}},{key:"getArrow",value:function(e,t){if(e2&&void 0!==arguments[2])||arguments[2],i=n?this.extrusionSolidFaces:this.extrusionDashedFaces;if(e2&&void 0!==arguments[2])||arguments[2],i=n?this.solidCubes:this.dashedCubes;if(e",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(e,t,n){"use strict";function i(e,t){for(var n=new Array(arguments.length-1),i=0,r=2,o=!0;r1&&(n=Math.floor(e.dropFrames),e.dropFrames=e.dropFrames%1),e.advance(1+n);var i=Date.now();e.dropFrames+=(i-t)/e.frameDuration,e.animations.length>0&&e.requestAnimationFrame()},advance:function(e){for(var t,n,i=this.animations,o=0;o=t.numSteps?(r.callback(t.onAnimationComplete,[t],n),n.animating=!1,i.splice(o,1)):++o}}},function(e,t,n){"use strict";function i(e,t){return e.native?{x:e.x,y:e.y}:u.getRelativePosition(e,t)}function r(e,t){var n,i,r,o,a,s=e.data.datasets;for(i=0,o=s.length;i0&&(u=e.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(e,t){return l(e,t,{intersect:!1})},point:function(e,t){return o(e,i(t,e))},nearest:function(e,t,n){var r=i(t,e);n.axis=n.axis||"xy";var o=s(n.axis),l=a(e,r,n.intersect,o);return l.length>1&&l.sort(function(e,t){var n=e.getArea(),i=t.getArea(),r=n-i;return 0===r&&(r=e._datasetIndex-t._datasetIndex),r}),l.slice(0,1)},x:function(e,t,n){var o=i(t,e),a=[],s=!1;return r(e,function(e){e.inXRange(o.x)&&a.push(e),e.inRange(o.x,o.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a},y:function(e,t,n){var o=i(t,e),a=[],s=!1;return r(e,function(e){e.inYRange(o.y)&&a.push(e),e.inRange(o.x,o.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a}}}},function(e,t,n){"use strict";var i=n(9),r=n(6);i._set("global",{plugins:{}}),e.exports={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var i,r,o,a,s,l=this.descriptors(e),u=l.length;for(i=0;i-1?e.split("\n"):e}function a(e){var t=e._xScale,n=e._yScale||e._scale,i=e._index,r=e._datasetIndex;return{xLabel:t?t.getLabelForIndex(i,r):"",yLabel:n?n.getLabelForIndex(i,r):"",index:i,datasetIndex:r,x:e._model.x,y:e._model.y}}function s(e){var t=h.global,n=p.valueOrDefault;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:n(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:n(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:n(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:n(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:n(e.titleFontStyle,t.defaultFontStyle),titleFontSize:n(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:n(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:n(e.footerFontStyle,t.defaultFontStyle),footerFontSize:n(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function l(e,t){var n=e._chart.ctx,i=2*t.yPadding,r=0,o=t.body,a=o.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);a+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,u=t.titleFontSize,c=t.bodyFontSize,d=t.footerFontSize;i+=s*u,i+=s?(s-1)*t.titleSpacing:0,i+=s?t.titleMarginBottom:0,i+=a*c,i+=a?(a-1)*t.bodySpacing:0,i+=l?t.footerMarginTop:0,i+=l*d,i+=l?(l-1)*t.footerSpacing:0;var h=0,f=function(e){r=Math.max(r,n.measureText(e).width+h)};return n.font=p.fontString(u,t._titleFontStyle,t._titleFontFamily),p.each(t.title,f),n.font=p.fontString(c,t._bodyFontStyle,t._bodyFontFamily),p.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?c+2:0,p.each(o,function(e){p.each(e.before,f),p.each(e.lines,f),p.each(e.after,f)}),h=0,n.font=p.fontString(d,t._footerFontStyle,t._footerFontFamily),p.each(t.footer,f),r+=2*t.xPadding,{width:r,height:i}}function u(e,t){var n=e._model,i=e._chart,r=e._chart.chartArea,o="center",a="center";n.yi.height-t.height&&(a="bottom");var s,l,u,c,d,h=(r.left+r.right)/2,f=(r.top+r.bottom)/2;"center"===a?(s=function(e){return e<=h},l=function(e){return e>h}):(s=function(e){return e<=t.width/2},l=function(e){return e>=i.width-t.width/2}),u=function(e){return e+t.width+n.caretSize+n.caretPadding>i.width},c=function(e){return e-t.width-n.caretSize-n.caretPadding<0},d=function(e){return e<=f?"top":"bottom"},s(n.x)?(o="left",u(n.x)&&(o="center",a=d(n.y))):l(n.x)&&(o="right",c(n.x)&&(o="center",a=d(n.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:o,yAlign:p.yAlign?p.yAlign:a}}function c(e,t,n,i){var r=e.x,o=e.y,a=e.caretSize,s=e.caretPadding,l=e.cornerRadius,u=n.xAlign,c=n.yAlign,d=a+s,h=l+s;return"right"===u?r-=t.width:"center"===u&&(r-=t.width/2,r+t.width>i.width&&(r=i.width-t.width),r<0&&(r=0)),"top"===c?o+=d:o-="bottom"===c?t.height+d:t.height/2,"center"===c?"left"===u?r+=d:"right"===u&&(r-=d):"left"===u?r-=h:"right"===u&&(r+=h),{x:r,y:o}}function d(e){return r([],o(e))}var h=n(9),f=n(29),p=n(6);h._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:p.noop,title:function(e,t){var n="",i=t.labels,r=i?i.length:0;if(e.length>0){var o=e[0];o.xLabel?n=o.xLabel:r>0&&o.index0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},i={x:t.x,y:t.y},r=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(this.drawBackground(i,t,e,n,r),i.x+=t.xPadding,i.y+=t.yPadding,this.drawTitle(i,t,e,r),this.drawBody(i,t,e,r),this.drawFooter(i,t,e,r))}},handleEvent:function(e){var t=this,n=t._options,i=!1;return t._lastActive=t._lastActive||[],"mouseout"===e.type?t._active=[]:t._active=t._chart.getElementsAtEventForMode(e,n.mode,n),i=!p.arrayEquals(t._active,t._lastActive),i&&(t._lastActive=t._active,(n.enabled||n.custom)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0),t.pivot())),i}})).positioners=m},function(e,t,n){"use strict";var i=n(6),r=n(350),o=n(351),a=o._enabled?o:r;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},a)},function(e,t,n){var i=n(364),r=n(362),o=function(e){if(e instanceof o)return e;if(!(this instanceof o))return new o(e);this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var t;"string"==typeof e?(t=r.getRgba(e),t?this.setValues("rgb",t):(t=r.getHsla(e))?this.setValues("hsl",t):(t=r.getHwb(e))&&this.setValues("hwb",t)):"object"==typeof e&&(t=e,void 0!==t.r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t))};o.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e%=360,e=e<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;nn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=this,i=e,r=void 0===t?.5:t,o=2*r-1,a=n.alpha()-i.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return this.rgb(s*n.red()+l*i.red(),s*n.green()+l*i.green(),s*n.blue()+l*i.blue()).alpha(n.alpha()*r+i.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new o,i=this.values,r=n.values;for(var a in i)i.hasOwnProperty(a)&&(e=i[a],t={}.toString.call(e),"[object Array]"===t?r[a]=e.slice(0):"[object Number]"===t?r[a]=e:console.error("unexpected color value:",e));return n}},o.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},o.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},o.prototype.getValues=function(e){for(var t=this.values,n={},i=0;il;)i(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var i=n(30),r=n(24),o=n(110);e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){e.exports=n(41)},function(e,t,n){"use strict";var i=n(17),r=n(10),o=n(25),a=n(31),s=n(18)("species");e.exports=function(e){var t="function"==typeof r[e]?r[e]:i[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var i=n(30),r=n(61),o=n(18)("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||void 0==(n=i(a)[o])?t:r(n)}},function(e,t,n){var i,r,o,a=n(33),s=n(396),l=n(162),u=n(105),c=n(17),d=c.process,h=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,m=c.Dispatch,g=0,v={},y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){y.call(e.data)};h&&f||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},i(g),g},f=function(e){delete v[e]},"process"==n(62)(d)?i=function(e){d.nextTick(a(y,e,1))}:m&&m.now?i=function(e){m.now(a(y,e,1))}:p?(r=new p,o=r.port2,r.port1.onmessage=b,i=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(e){c.postMessage(e+"","*")},c.addEventListener("message",b,!1)):i="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:h,clear:f}},function(e,t,n){var i=n(24);e.exports=function(e,t){if(!i(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";function i(e){return(0,o.default)(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(455),o=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=t.default},function(e,t){var n=e.exports={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return r[this.type]||r.element}},i={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},r={element:1,text:3,cdata:4,comment:8};Object.keys(i).forEach(function(e){var t=i[e];Object.defineProperty(n,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},function(e,t,n){function i(e){if(e>=55296&&e<=57343||e>1114111)return"�";e in r&&(e=r[e]);var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}var r=n(303);e.exports=i},function(e,t,n){function i(e,t){this._options=t||{},this._cbs=e||{},this._tagname="",this._attribname="",this._attribvalue="",this._attribs=null,this._stack=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames="lowerCaseTags"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames="lowerCaseAttributeNames"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(r=this._options.Tokenizer),this._tokenizer=new r(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}var r=n(183),o={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},a={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:o,input:o,output:o,button:o,datalist:o,textarea:o,option:{option:!0},optgroup:{optgroup:!0}},s={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,path:!0,circle:!0,ellipse:!0,line:!0,rect:!0,use:!0,stop:!0,polyline:!0,polygon:!0},l=/\s|\//;n(26)(i,n(86).EventEmitter),i.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},i.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},i.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&e in a)for(var t;(t=this._stack[this._stack.length-1])in a[e];this.onclosetag(t));!this._options.xmlMode&&e in s||this._stack.push(e),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},i.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in s&&this._cbs.onclosetag(this._tagname),this._tagname=""},i.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),!this._stack.length||e in s&&!this._options.xmlMode)this._options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else"p"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},i.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing?this._closeCurrentTag():this.onopentagend()},i.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},i.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},i.prototype.onattribdata=function(e){this._attribvalue+=e},i.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},i.prototype._getInstructionName=function(e){var t=e.search(l),n=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},i.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}},i.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}},i.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},i.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+e+"]]")},i.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},i.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},i.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},i.prototype.parseComplete=function(e){this.reset(),this.end(e)},i.prototype.write=function(e){this._tokenizer.write(e)},i.prototype.end=function(e){this._tokenizer.end(e)},i.prototype.pause=function(){this._tokenizer.pause()},i.prototype.resume=function(){this._tokenizer.resume()},i.prototype.parseChunk=i.prototype.write,i.prototype.done=i.prototype.end,e.exports=i},function(e,t,n){function i(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function r(e,t,n){var i=e.toLowerCase();return e===i?function(e){e===i?this._state=t:(this._state=n,this._index--)}:function(r){r===i||r===e?this._state=t:(this._state=n,this._index--)}}function o(e,t){var n=e.toLowerCase();return function(i){i===n||i===e?this._state=t:(this._state=p,this._index--)}}function a(e,t){this._state=h,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=h,this._special=pe,this._cbs=t,this._running=!0,this._ended=!1,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}e.exports=a;var s=n(181),l=n(101),u=n(148),c=n(102),d=0,h=d++,f=d++,p=d++,m=d++,g=d++,v=d++,y=d++,b=d++,_=d++,x=d++,w=d++,M=d++,S=d++,E=d++,T=d++,k=d++,O=d++,C=d++,P=d++,A=d++,R=d++,L=d++,I=d++,D=d++,N=d++,B=d++,z=d++,F=d++,j=d++,U=d++,W=d++,G=d++,V=d++,H=d++,q=d++,Y=d++,X=d++,K=d++,Z=d++,J=d++,Q=d++,$=d++,ee=d++,te=d++,ne=d++,ie=d++,re=d++,oe=d++,ae=d++,se=d++,le=d++,ue=d++,ce=d++,de=d++,he=d++,fe=0,pe=fe++,me=fe++,ge=fe++;a.prototype._stateText=function(e){"<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=f,this._sectionStart=this._index):this._decodeEntities&&this._special===pe&&"&"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=h,this._state=le,this._sectionStart=this._index)},a.prototype._stateBeforeTagName=function(e){"/"===e?this._state=g:"<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===e||this._special!==pe||i(e)?this._state=h:"!"===e?(this._state=T,this._sectionStart=this._index+1):"?"===e?(this._state=O,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==e&&"S"!==e?p:W,this._sectionStart=this._index)},a.prototype._stateInTagName=function(e){("/"===e||">"===e||i(e))&&(this._emitToken("onopentagname"),this._state=b,this._index--)},a.prototype._stateBeforeCloseingTagName=function(e){i(e)||(">"===e?this._state=h:this._special!==pe?"s"===e||"S"===e?this._state=G:(this._state=h,this._index--):(this._state=v,this._sectionStart=this._index))},a.prototype._stateInCloseingTagName=function(e){(">"===e||i(e))&&(this._emitToken("onclosetag"),this._state=y,this._index--)},a.prototype._stateAfterCloseingTagName=function(e){">"===e&&(this._state=h,this._sectionStart=this._index+1)},a.prototype._stateBeforeAttributeName=function(e){">"===e?(this._cbs.onopentagend(),this._state=h,this._sectionStart=this._index+1):"/"===e?this._state=m:i(e)||(this._state=_,this._sectionStart=this._index)},a.prototype._stateInSelfClosingTag=function(e){">"===e?(this._cbs.onselfclosingtag(),this._state=h,this._sectionStart=this._index+1):i(e)||(this._state=b,this._index--)},a.prototype._stateInAttributeName=function(e){("="===e||"/"===e||">"===e||i(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=x,this._index--)},a.prototype._stateAfterAttributeName=function(e){"="===e?this._state=w:"/"===e||">"===e?(this._cbs.onattribend(),this._state=b,this._index--):i(e)||(this._cbs.onattribend(),this._state=_,this._sectionStart=this._index)},a.prototype._stateBeforeAttributeValue=function(e){'"'===e?(this._state=M,this._sectionStart=this._index+1):"'"===e?(this._state=S,this._sectionStart=this._index+1):i(e)||(this._state=E,this._sectionStart=this._index,this._index--)},a.prototype._stateInAttributeValueDoubleQuotes=function(e){'"'===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=b):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=le,this._sectionStart=this._index)},a.prototype._stateInAttributeValueSingleQuotes=function(e){"'"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=b):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=le,this._sectionStart=this._index)},a.prototype._stateInAttributeValueNoQuotes=function(e){i(e)||">"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=b,this._index--):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=le,this._sectionStart=this._index)},a.prototype._stateBeforeDeclaration=function(e){this._state="["===e?L:"-"===e?C:k},a.prototype._stateInDeclaration=function(e){">"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=h,this._sectionStart=this._index+1)},a.prototype._stateInProcessingInstruction=function(e){">"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=h,this._sectionStart=this._index+1)},a.prototype._stateBeforeComment=function(e){"-"===e?(this._state=P,this._sectionStart=this._index+1):this._state=k},a.prototype._stateInComment=function(e){"-"===e&&(this._state=A)},a.prototype._stateAfterComment1=function(e){this._state="-"===e?R:P},a.prototype._stateAfterComment2=function(e){">"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=h,this._sectionStart=this._index+1):"-"!==e&&(this._state=P)},a.prototype._stateBeforeCdata1=r("C",I,k),a.prototype._stateBeforeCdata2=r("D",D,k),a.prototype._stateBeforeCdata3=r("A",N,k),a.prototype._stateBeforeCdata4=r("T",B,k),a.prototype._stateBeforeCdata5=r("A",z,k),a.prototype._stateBeforeCdata6=function(e){"["===e?(this._state=F,this._sectionStart=this._index+1):(this._state=k,this._index--)},a.prototype._stateInCdata=function(e){"]"===e&&(this._state=j)},a.prototype._stateAfterCdata1=function(e,t){return function(n){n===e&&(this._state=t)}}("]",U),a.prototype._stateAfterCdata2=function(e){">"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=h,this._sectionStart=this._index+1):"]"!==e&&(this._state=F)},a.prototype._stateBeforeSpecial=function(e){"c"===e||"C"===e?this._state=V:"t"===e||"T"===e?this._state=ee:(this._state=p,this._index--)},a.prototype._stateBeforeSpecialEnd=function(e){this._special!==me||"c"!==e&&"C"!==e?this._special!==ge||"t"!==e&&"T"!==e?this._state=h:this._state=re:this._state=K},a.prototype._stateBeforeScript1=o("R",H),a.prototype._stateBeforeScript2=o("I",q),a.prototype._stateBeforeScript3=o("P",Y),a.prototype._stateBeforeScript4=o("T",X),a.prototype._stateBeforeScript5=function(e){("/"===e||">"===e||i(e))&&(this._special=me),this._state=p,this._index--},a.prototype._stateAfterScript1=r("R",Z,h),a.prototype._stateAfterScript2=r("I",J,h),a.prototype._stateAfterScript3=r("P",Q,h),a.prototype._stateAfterScript4=r("T",$,h),a.prototype._stateAfterScript5=function(e){">"===e||i(e)?(this._special=pe,this._state=v,this._sectionStart=this._index-6,this._index--):this._state=h},a.prototype._stateBeforeStyle1=o("Y",te),a.prototype._stateBeforeStyle2=o("L",ne),a.prototype._stateBeforeStyle3=o("E",ie),a.prototype._stateBeforeStyle4=function(e){("/"===e||">"===e||i(e))&&(this._special=ge),this._state=p,this._index--},a.prototype._stateAfterStyle1=r("Y",oe,h),a.prototype._stateAfterStyle2=r("L",ae,h),a.prototype._stateAfterStyle3=r("E",se,h),a.prototype._stateAfterStyle4=function(e){">"===e||i(e)?(this._special=pe,this._state=v,this._sectionStart=this._index-5,this._index--):this._state=h},a.prototype._stateBeforeEntity=r("#",ue,ce),a.prototype._stateBeforeNumericEntity=r("X",he,de),a.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+16&&(t=6);t>=2;){var n=this._buffer.substr(e,t);if(u.hasOwnProperty(n))return this._emitPartial(u[n]),void(this._sectionStart+=t+1);t--}},a.prototype._stateInNamedEntity=function(e){";"===e?(this._parseNamedEntityStrict(),this._sectionStart+1"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==h?"="!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},a.prototype._decodeNumericEntity=function(e,t){var n=this._sectionStart+e;if(n!==this._index){var i=this._buffer.substring(n,this._index),r=parseInt(i,t);this._emitPartial(s(r)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},a.prototype._stateInNumericEntity=function(e){";"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},a.prototype._stateInHexEntity=function(e){";"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},a.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===h?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},a.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},a.prototype._parse=function(){for(;this._index=56&&h<64&&f>=3&&f<12&&(d=32),h>=72&&h<84&&(f>=0&&f<9?d=31:f>=9&&f<21?d=33:f>=21&&f<33?d=35:f>=33&&f<42&&(d=37)),t=6*(d-1)-180+3,u=a(t),n=.006739496752268451,i=p/Math.sqrt(1-.00669438*Math.sin(m)*Math.sin(m)),r=Math.tan(m)*Math.tan(m),o=n*Math.cos(m)*Math.cos(m),s=Math.cos(m)*(g-u),l=p*(.9983242984503243*m-.002514607064228144*Math.sin(2*m)+2639046602129982e-21*Math.sin(4*m)-3.418046101696858e-9*Math.sin(6*m));var v=.9996*i*(s+(1-r+o)*s*s*s/6+(5-18*r+r*r+72*o-58*n)*s*s*s*s*s/120)+5e5,y=.9996*(l+i*Math.tan(m)*(s*s/2+(5-r+9*o+4*o*o)*s*s*s*s/24+(61-58*r+r*r+600*o-330*n)*s*s*s*s*s*s/720));return h<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(v),zoneNumber:d,zoneLetter:c(h)}}function u(e){var t=e.northing,n=e.easting,i=e.zoneLetter,r=e.zoneNumber;if(r<0||r>60)return null;var o,a,l,c,d,h,f,p,m,g,v=6378137,y=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),b=n-5e5,_=t;i<"N"&&(_-=1e7),p=6*(r-1)-180+3,o=.006739496752268451,f=_/.9996,m=f/6367449.145945056,g=m+(3*y/2-27*y*y*y/32)*Math.sin(2*m)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*m)+151*y*y*y/96*Math.sin(6*m),a=v/Math.sqrt(1-.00669438*Math.sin(g)*Math.sin(g)),l=Math.tan(g)*Math.tan(g),c=o*Math.cos(g)*Math.cos(g),d=.99330562*v/Math.pow(1-.00669438*Math.sin(g)*Math.sin(g),1.5),h=b/(.9996*a);var x=g-a*Math.tan(g)/d*(h*h/2-(5+3*l+10*c-4*c*c-9*o)*h*h*h*h/24+(61+90*l+298*c+45*l*l-252*o-3*c*c)*h*h*h*h*h*h/720);x=s(x);var w=(h-(1+2*l+c)*h*h*h/6+(5-2*c+28*l-3*c*c+8*o+24*l*l)*h*h*h*h*h/120)/Math.cos(g);w=p+s(w);var M;if(e.accuracy){var S=u({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});M={top:S.lat,right:S.lon,bottom:x,left:w}}else M={lat:x,lon:w};return M}function c(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function d(e,t){var n="00000"+e.easting,i="00000"+e.northing;return e.zoneNumber+e.zoneLetter+h(e.easting,e.northing,e.zoneNumber)+n.substr(n.length-5,t)+i.substr(i.length-5,t)}function h(e,t,n){var i=f(n);return p(Math.floor(e/1e5),Math.floor(t/1e5)%20,i)}function f(e){var t=e%b;return 0===t&&(t=b),t}function p(e,t,n){var i=n-1,r=_.charCodeAt(i),o=x.charCodeAt(i),a=r+e-1,s=o+t,l=!1;return a>T&&(a=a-T+w-1,l=!0),(a===M||rM||(a>M||rS||(a>S||rT&&(a=a-T+w-1),s>E?(s=s-E+w-1,l=!0):l=!1,(s===M||oM||(s>M||oS||(s>S||oE&&(s=s-E+w-1),String.fromCharCode(a)+String.fromCharCode(s)}function m(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,n=e.length,i=null,r="",o=0;!/[A-Z]/.test(t=e.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+e;r+=t,o++}var a=parseInt(r,10);if(0===o||o+3>n)throw"MGRSPoint bad conversion from: "+e;var s=e.charAt(o++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+e;i=e.substring(o,o+=2);for(var l=f(a),u=g(i.charAt(0),l),c=v(i.charAt(1),l);c0&&(h=1e5/Math.pow(10,x),p=e.substring(o,o+x),w=parseFloat(p)*h,m=e.substring(o+x),M=parseFloat(m)*h),b=w+u,_=M+c,{easting:b,northing:_,zoneLetter:s,zoneNumber:a,accuracy:h}}function g(e,t){for(var n=_.charCodeAt(t-1),i=1e5,r=!1;n!==e.charCodeAt(0);){if(n++,n===M&&n++,n===S&&n++,n>T){if(r)throw"Bad character: "+e;n=w,r=!0}i+=1e5}return i}function v(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;for(var n=x.charCodeAt(t-1),i=0,r=!1;n!==e.charCodeAt(0);){if(n++,n===M&&n++,n===S&&n++,n>E){if(r)throw"Bad character: "+e;n=w,r=!0}i+=1e5}return i}function y(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}t.c=i,t.b=o;var b=6,_="AJSAJS",x="AFAFAF",w=65,M=73,S=79,E=86,T=90;t.a={forward:i,inverse:r,toPoint:o}},function(e,t,n){"use strict";t.a=function(e,t){e=Math.abs(e),t=Math.abs(t);var n=Math.max(e,t),i=Math.min(e,t)/(n||1);return n*Math.sqrt(1+Math.pow(i,2))}},function(e,t,n){"use strict";var i=.01068115234375;t.a=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*i))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*i)));var n=e*e;return t[2]=n*(.46875-e*(.013020833333333334+.007120768229166667*e)),n*=e,t[3]=n*(.3645833333333333-.005696614583333333*e),t[4]=n*e*.3076171875,t}},function(e,t,n){"use strict";var i=n(130),r=n(7);t.a=function(e,t,o){for(var a=1/(1-t),s=e,l=20;l;--l){var u=Math.sin(s),c=1-t*u*u;if(c=(n.i(i.a)(s,u,Math.cos(s),o)-e)*(c*Math.sqrt(c))*a,s-=c,Math.abs(c)2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t}},function(e,t,n){"use strict";function i(e){var t=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?i[e]=n.i(o.a)(arguments[1]):i[e]=n.i(a.a)(arguments[1]):i[e]=r}else if(1===arguments.length){if(Array.isArray(e))return e.map(function(e){Array.isArray(e)?i.apply(t,e):i(e)});if("string"==typeof e){if(e in i)return i[e]}else"EPSG"in e?i["EPSG:"+e.EPSG]=e:"ESRI"in e?i["ESRI:"+e.ESRI]=e:"IAU2000"in e?i["IAU2000:"+e.IAU2000]=e:console.log(e);return}}var r=n(512),o=n(196),a=n(220);n.i(r.a)(i),t.a=i},function(e,t,n){"use strict";var i=n(7),r=n(504),o=n(505),a=n(96);t.a=function(e){var t,s,l,u={},c=e.split("+").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var n=t.split("=");return n.push(!0),e[n[0].toLowerCase()]=n[1],e},{}),d={proj:"projName",datum:"datumCode",rf:function(e){u.rf=parseFloat(e)},lat_0:function(e){u.lat0=e*i.d},lat_1:function(e){u.lat1=e*i.d},lat_2:function(e){u.lat2=e*i.d},lat_ts:function(e){u.lat_ts=e*i.d},lon_0:function(e){u.long0=e*i.d},lon_1:function(e){u.long1=e*i.d},lon_2:function(e){u.long2=e*i.d},alpha:function(e){u.alpha=parseFloat(e)*i.d},lonc:function(e){u.longc=e*i.d},x_0:function(e){u.x0=parseFloat(e)},y_0:function(e){u.y0=parseFloat(e)},k_0:function(e){u.k0=parseFloat(e)},k:function(e){u.k0=parseFloat(e)},a:function(e){u.a=parseFloat(e)},b:function(e){u.b=parseFloat(e)},r_a:function(){u.R_A=!0},zone:function(e){u.zone=parseInt(e,10)},south:function(){u.utmSouth=!0},towgs84:function(e){u.datum_params=e.split(",").map(function(e){return parseFloat(e)})},to_meter:function(e){u.to_meter=parseFloat(e)},units:function(e){u.units=e;var t=n.i(a.a)(o.a,e);t&&(u.to_meter=t.to_meter)},from_greenwich:function(e){u.from_greenwich=e*i.d},pm:function(e){var t=n.i(a.a)(r.a,e);u.from_greenwich=(t||parseFloat(e))*i.d},nadgrids:function(e){"@null"===e?u.datumCode="none":u.nadgrids=e},axis:function(e){var t="ewnsud";3===e.length&&-1!==t.indexOf(e.substr(0,1))&&-1!==t.indexOf(e.substr(1,1))&&-1!==t.indexOf(e.substr(2,1))&&(u.axis=e)}};for(t in c)s=c[t],t in d?(l=d[t],"function"==typeof l?l(s):u[l]=s):u[t]=s;return"string"==typeof u.datumCode&&"WGS84"!==u.datumCode&&(u.datumCode=u.datumCode.toLowerCase()),u}},function(e,t,n){"use strict";function i(){if(void 0===this.es||this.es<=0)throw new Error("incorrect elliptical usage");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),i=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),i*=t,this.cgb[1]=i*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=i*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),i*=t,this.cgb[2]=i*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=i*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),i*=t,this.cgb[3]=i*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=i*(1237/630+t*(t*(-24832/14175)-2.4)),i*=t,this.cgb[4]=i*(4174/315+t*(-144838/6237)),this.cbg[4]=i*(-734/315+t*(109598/31185)),i*=t,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+i*(.25+i*(1/64+i/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=i*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=i*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),i*=t,this.utg[2]=i*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=i*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),i*=t,this.utg[3]=i*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=i*(49561/161280+t*(-179/168+t*(6601661/7257600))),i*=t,this.utg[4]=i*(-4583/161280+t*(108847/3991680)),this.gtu[4]=i*(34729/80640+t*(-3418889/1995840)),i*=t,this.utg[5]=-.03233083094085698*i,this.gtu[5]=.6650675310896665*i;var r=n.i(u.a)(this.cbg,this.lat0);this.Zb=-this.Qn*(r+n.i(c.a)(this.gtu,2*r))}function r(e){var t=n.i(h.a)(e.x-this.long0),i=e.y;i=n.i(u.a)(this.cbg,i);var r=Math.sin(i),o=Math.cos(i),a=Math.sin(t),c=Math.cos(t);i=Math.atan2(r,c*o),t=Math.atan2(a*o,n.i(s.a)(r,o*c)),t=n.i(l.a)(Math.tan(t));var f=n.i(d.a)(this.gtu,2*i,2*t);i+=f[0],t+=f[1];var p,m;return Math.abs(t)<=2.623395162778?(p=this.a*(this.Qn*t)+this.x0,m=this.a*(this.Qn*i+this.Zb)+this.y0):(p=1/0,m=1/0),e.x=p,e.y=m,e}function o(e){var t=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);i=(i-this.Zb)/this.Qn,t/=this.Qn;var r,o;if(Math.abs(t)<=2.623395162778){var l=n.i(d.a)(this.utg,2*i,2*t);i+=l[0],t+=l[1],t=Math.atan(n.i(a.a)(t));var c=Math.sin(i),f=Math.cos(i),p=Math.sin(t),m=Math.cos(t);i=Math.atan2(c*m,n.i(s.a)(p,m*f)),t=Math.atan2(p,m*f),r=n.i(h.a)(t+this.long0),o=n.i(u.a)(this.cgb,i)}else r=1/0,o=1/0;return e.x=r,e.y=o,e}var a=n(193),s=n(190),l=n(494),u=n(498),c=n(495),d=n(496),h=n(11),f=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"];t.a={init:i,forward:r,inverse:o,names:f}},function(e,t,n){"use strict";function i(e,t){return(e.datum.datum_type===o.i||e.datum.datum_type===o.j)&&"WGS84"!==t.datumCode||(t.datum.datum_type===o.i||t.datum.datum_type===o.j)&&"WGS84"!==e.datumCode}function r(e,t,d){var h;return Array.isArray(d)&&(d=n.i(u.a)(d)),n.i(c.a)(d),e.datum&&t.datum&&i(e,t)&&(h=new l.a("WGS84"),d=r(e,h,d),e=h),"enu"!==e.axis&&(d=n.i(s.a)(e,!1,d)),"longlat"===e.projName?d={x:d.x*o.d,y:d.y*o.d}:(e.to_meter&&(d={x:d.x*e.to_meter,y:d.y*e.to_meter}),d=e.inverse(d)),e.from_greenwich&&(d.x+=e.from_greenwich),d=n.i(a.a)(e.datum,t.datum,d),t.from_greenwich&&(d={x:d.x-t.from_greenwich,y:d.y}),"longlat"===t.projName?d={x:d.x*o.a,y:d.y*o.a}:(d=t.forward(d),t.to_meter&&(d={x:d.x/t.to_meter,y:d.y/t.to_meter})),"enu"!==t.axis?n.i(s.a)(t,!0,d):d}t.a=r;var o=n(7),a=n(509),s=n(491),l=n(127),u=n(194),c=n(492)},function(e,t,n){"use strict";function i(e,t,n,i){if(t.resolvedType)if(t.resolvedType instanceof a){e("switch(d%s){",i);for(var r=t.resolvedType.values,o=Object.keys(r),s=0;s>>0",i,i);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",i,i);break;case"uint64":l=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",i,i,l)('else if(typeof d%s==="string")',i)("m%s=parseInt(d%s,10)",i,i)('else if(typeof d%s==="number")',i)("m%s=d%s",i,i)('else if(typeof d%s==="object")',i)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",i,i,i,l?"true":"");break;case"bytes":e('if(typeof d%s==="string")',i)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",i,i,i)("else if(d%s.length)",i)("m%s=d%s",i,i);break;case"string":e("m%s=String(d%s)",i,i);break;case"bool":e("m%s=Boolean(d%s)",i,i)}}return e}function r(e,t,n,i){if(t.resolvedType)t.resolvedType instanceof a?e("d%s=o.enums===String?types[%i].values[m%s]:m%s",i,n,i,i):e("d%s=types[%i].toObject(m%s,o)",i,n,i);else{var r=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",i,i,i,i);break;case"uint64":r=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',i)("d%s=o.longs===String?String(m%s):m%s",i,i,i)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",i,i,i,i,r?"true":"",i);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",i,i,i,i,i);break;default:e("d%s=m%s",i,i)}}return e}var o=t,a=n(35),s=n(16);o.fromObject=function(e){var t=e.fieldsArray,n=s.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return n("return new this.ctor");n("var m=new this.ctor");for(var r=0;r>>3){");for(var n=0;n>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",n,i,(t.id<<3|2)>>>0)}function r(e){for(var t,n,r=s.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),l=e.fieldsArray.slice().sort(s.compareFieldsById),t=0;t>>0,8|a.mapKey[u.keyType],u.keyType),void 0===h?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",c,n):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|h,d,n),r("}")("}")):u.repeated?(r("if(%s!=null&&%s.length){",n,n),u.packed&&void 0!==a.packed[d]?r("w.uint32(%i).fork()",(u.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",n)("w.%s(%s[i])",d,n)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",n),void 0===h?i(r,u,c,n+"[i]"):r("w.uint32(%i).%s(%s[i])",(u.id<<3|h)>>>0,d,n)),r("}")):(u.optional&&r("if(%s!=null&&m.hasOwnProperty(%j))",n,u.name),void 0===h?i(r,u,c,n):r("w.uint32(%i).%s(%s)",(u.id<<3|h)>>>0,d,n))}return r("return w")}e.exports=r;var o=n(35),a=n(76),s=n(16)},function(e,t,n){"use strict";function i(e,t,n,i,o,s){if(r.call(this,e,t,i,void 0,void 0,o,s),!a.isString(n))throw TypeError("keyType must be a string");this.keyType=n,this.resolvedKeyType=null,this.map=!0}e.exports=i;var r=n(56);((i.prototype=Object.create(r.prototype)).constructor=i).className="MapField";var o=n(76),a=n(16);i.fromJSON=function(e,t){return new i(e,t.id,t.keyType,t.type,t.options,t.comment)},i.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},i.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return r.prototype.resolve.call(this)},i.d=function(e,t,n){return"function"==typeof n?n=a.decorateType(n).name:n&&"object"==typeof n&&(n=a.decorateEnum(n).name),function(r,o){a.decorateType(r.constructor).add(new i(o,e,t,n))}}},function(e,t,n){"use strict";function i(e,t,n,i,a,s,l,u){if(o.isObject(a)?(l=a,a=s=void 0):o.isObject(s)&&(l=s,s=void 0),void 0!==t&&!o.isString(t))throw TypeError("type must be a string");if(!o.isString(n))throw TypeError("requestType must be a string");if(!o.isString(i))throw TypeError("responseType must be a string");r.call(this,e,l),this.type=t||"rpc",this.requestType=n,this.requestStream=!!a||void 0,this.responseType=i,this.responseStream=!!s||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=u}e.exports=i;var r=n(57);((i.prototype=Object.create(r.prototype)).constructor=i).className="Method";var o=n(16);i.fromJSON=function(e,t){return new i(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment)},i.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0])},i.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),r.prototype.resolve.call(this))}},function(e,t,n){"use strict";function i(e){a.call(this,"",e),this.deferred=[],this.files=[]}function r(){}function o(e,t){var n=t.parent.lookup(t.extend);if(n){var i=new c(t.fullName,t.id,t.type,t.rule,void 0,t.options);return i.declaringField=t,t.extensionField=i,n.add(i),!0}return!1}e.exports=i;var a=n(75);((i.prototype=Object.create(a.prototype)).constructor=i).className="Root";var s,l,u,c=n(56),d=n(35),h=n(133),f=n(16);i.fromJSON=function(e,t){return t||(t=new i),e.options&&t.setOptions(e.options),t.addJSON(e.nested)},i.prototype.resolvePath=f.path.resolve,i.prototype.load=function e(t,n,i){function o(e,t){if(i){var n=i;if(i=null,d)throw e;n(e,t)}}function a(e,t){try{if(f.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),f.isString(t)){l.filename=e;var i,r=l(t,c,n),a=0;if(r.imports)for(;a-1){var r=e.substring(n);r in u&&(e=r)}if(!(c.files.indexOf(e)>-1)){if(c.files.push(e),e in u)return void(d?a(e,u[e]):(++h,setTimeout(function(){--h,a(e,u[e])})));if(d){var s;try{s=f.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||o(e))}a(e,s)}else++h,f.fetch(e,function(n,r){if(--h,i)return n?void(t?h||o(null,c):o(n)):void a(e,r)})}}"function"==typeof n&&(i=n,n=void 0);var c=this;if(!i)return f.asPromise(e,c,t,n);var d=i===r,h=0;f.isString(t)&&(t=[t]);for(var p,m=0;m-1&&this.deferred.splice(t,1)}}else if(e instanceof d)p.test(e.name)&&delete e.parent[e.name];else if(e instanceof a){for(var n=0;n0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===B.prototype||(t=r(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):c(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?c(e,a,t,!1):y(e,a)):c(e,a,t,!1))):i||(a.reading=!1)}return h(a)}function c(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&g(e)),y(e,t)}function d(e,t){var n;return o(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function h(e){return!e.ended&&(e.needReadable||e.length=q?e=q:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function p(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=f(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function m(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,g(e)}}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(U("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?R.nextTick(v,e):v(e))}function v(e){U("emit readable"),e.emit("readable"),S(e)}function y(e,t){t.readingMore||(t.readingMore=!0,R.nextTick(b,e,t))}function b(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=T(e,t.buffer,t.decoder),n}function T(e,t,n){var i;return eo.length?o.length:e;if(a===o.length?r+=o:r+=o.slice(0,e),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}function O(e,t){var n=B.allocUnsafe(e),i=t.head,r=1;for(i.data.copy(n),e-=i.data.length;i=i.next;){var o=i.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a));break}++r}return t.length-=r,n}function C(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,R.nextTick(P,t,e))}function P(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function A(e,t){for(var n=0,i=e.length;n=t.highWaterMark||t.ended))return U("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?C(this):g(this),null;if(0===(e=p(e,t))&&t.ended)return 0===t.length&&C(this),null;var i=t.needReadable;U("need readable",i),(0===t.length||t.length-e0?E(e,t):null,null===r?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&C(this)),null!==r&&this.emit("data",r),r},l.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},l.prototype.pipe=function(e,t){function n(e,t){U("onunpipe"),e===h&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,o())}function r(){U("onend"),e.end()}function o(){U("cleanup"),e.removeListener("close",u),e.removeListener("finish",c),e.removeListener("drain",g),e.removeListener("error",l),e.removeListener("unpipe",n),h.removeListener("end",r),h.removeListener("end",d),h.removeListener("data",s),v=!0,!f.awaitDrain||e._writableState&&!e._writableState.needDrain||g()}function s(t){U("ondata"),y=!1,!1!==e.write(t)||y||((1===f.pipesCount&&f.pipes===e||f.pipesCount>1&&-1!==A(f.pipes,e))&&!v&&(U("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,y=!0),h.pause())}function l(t){U("onerror",t),d(),e.removeListener("error",l),0===D(e,"error")&&e.emit("error",t)}function u(){e.removeListener("finish",c),d()}function c(){U("onfinish"),e.removeListener("close",u),d()}function d(){U("unpipe"),h.unpipe(e)}var h=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=e;break;case 1:f.pipes=[f.pipes,e];break;default:f.pipes.push(e)}f.pipesCount+=1,U("pipe count=%d opts=%j",f.pipesCount,t);var p=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr,m=p?r:d;f.endEmitted?R.nextTick(m):h.once("end",m),e.on("unpipe",n);var g=_(h);e.on("drain",g);var v=!1,y=!1;return h.on("data",s),a(e,"error",l),e.once("close",u),e.once("finish",c),e.emit("pipe",h),f.flowing||(U("pipe resume"),h.resume()),e},l.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0?90:-90),e.lat_ts=e.lat1)}var a=n(608),s=n(609),l=.017453292519943295;t.a=function(e){var t=n.i(a.a)(e),i=t.shift(),r=t.shift();t.unshift(["name",r]),t.unshift(["type",i]);var l={};return n.i(s.a)(t,l),o(l),l}},function(e,t,n){e.exports=n.p+"assets/3tc9TFA8_5YuxA455U7BMg.png"},function(e,t,n){e.exports=n.p+"assets/3WNj6QfIN0cgE7u5icG0Zx.png"},function(e,t,n){e.exports=n.p+"assets/ZzXs2hkPaGeWT_N6FgGOx.png"},function(e,t,n){e.exports=n.p+"assets/13lPmuYsGizUIj_HGNYM82.png"},function(e,t){e.exports={1:"showTasks",2:"showModuleController",3:"showMenu",4:"showRouteEditingBar",5:"showDataRecorder",6:"enableAudioCapture",7:"showPOI",v:"cameraAngle",p:"showPNCMonitor"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,a=n(3),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(5),f=i(h),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(214),_=n(560),x=i(_),w=n(236),M=i(w),S=n(237),E=i(S),T=n(238),k=i(T),O=n(245),C=i(O),P=n(256),A=i(P),R=n(231),L=i(R),I=n(143),D=n(225),N=i(D),B=n(19),z=i(B),F=(r=(0,y.inject)("store"))(o=(0,y.observer)(o=function(e){function t(e){(0,u.default)(this,t);var n=(0,f.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return n.handleDrag=n.handleDrag.bind(n),n.handleKeyPress=n.handleKeyPress.bind(n),n.updateDimension=n.props.store.updateDimension.bind(n.props.store),n}return(0,m.default)(t,e),(0,d.default)(t,[{key:"handleDrag",value:function(e){this.props.store.options.showPNCMonitor&&this.props.store.updateWidthInPercentage(Math.min(1,e/window.innerWidth))}},{key:"handleKeyPress",value:function(e){var t=this.props.store,n=t.options,i=t.enableHMIButtonsOnly,r=t.hmi,o=N.default[e.key];o&&!n.showDataRecorder&&(e.preventDefault(),"cameraAngle"===o?n.rotateCameraAngle():n.isSideBarButtonDisabled(o,i,r.inNavigationMode)||this.props.store.handleOptionToggle(o))}},{key:"componentWillMount",value:function(){this.props.store.updateDimension()}},{key:"componentDidMount",value:function(){z.default.initialize(),B.MAP_WS.initialize(),B.POINT_CLOUD_WS.initialize(),window.addEventListener("resize",this.updateDimension,!1),window.addEventListener("keypress",this.handleKeyPress,!1)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateDimension,!1),window.removeEventListener("keypress",this.handleKeyPress,!1)}},{key:"render",value:function(){var e=this.props.store,t=(e.isInitialized,e.dimension),n=(e.sceneDimension,e.options);e.hmi;return v.default.createElement("div",null,v.default.createElement(M.default,null),v.default.createElement("div",{className:"pane-container"},v.default.createElement(x.default,{split:"vertical",size:t.width,onChange:this.handleDrag,allowResize:n.showPNCMonitor},v.default.createElement("div",{className:"left-pane"},v.default.createElement(A.default,null),v.default.createElement("div",{className:"dreamview-body"},v.default.createElement(E.default,null),v.default.createElement(k.default,null))),v.default.createElement("div",{className:"right-pane"},n.showPNCMonitor&&n.showVideo&&v.default.createElement("div",null,v.default.createElement(b.Tab,null,v.default.createElement("span",null,"Camera Sensor")),v.default.createElement(I.CameraVideo,null)),n.showPNCMonitor&&v.default.createElement(C.default,{options:n})))),v.default.createElement("div",{className:"hidden"},n.enableAudioCapture&&v.default.createElement(L.default,null)))}}]),t}(v.default.Component))||o)||o;t.default=F},function(e,t,n){var i=n(301);"string"==typeof i&&(i=[[e.i,i,""]]);var r={};r.transform=void 0;n(139)(i,r);i.locals&&(e.exports=i.locals)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=g(p.default.hmi.utmZoneId);return(0,c.default)(m,n,[e,t])}function o(e,t){var n=g(p.default.hmi.utmZoneId);return(0,c.default)(n,m,[e,t])}function a(e,t){return h.transform([e,t],"WGS84","GCJ02")}function s(e,t){if(l(e,t))return[e,t];var n=a(e,t);return h.transform(n,"GCJ02","BD09LL")}function l(e,t){return e<72.004||e>137.8347||(t<.8293||t>55.8271)}Object.defineProperty(t,"__esModule",{value:!0}),t.WGS84ToUTM=r,t.UTMToWGS84=o,t.WGS84ToGCJ02=a,t.WGS84ToBD09LL=s;var u=n(513),c=i(u),d=n(365),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(d),f=n(14),p=i(f),m="+proj=longlat +ellps=WGS84",g=function(e){return"+proj=utm +zone="+e+" +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(312),o=i(r),a=n(44),s=i(a);t.default=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,l=(0,s.default)(e);!(i=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&l.return&&l.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if((0,o.default)(Object(t)))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var r=n(48),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=n(2),s=i(a),l=n(8);n(227);var u=n(14),c=i(u),d=n(226),h=i(d);o.render(s.default.createElement(l.Provider,{store:c.default},s.default.createElement(h.default,null)),document.getElementById("root"))},function(e,t,n){"use strict";(function(e){function i(e){return e&&e.__esModule?e:{default:e}}function r(t){for(var n=t.length,i=new ArrayBuffer(2*n),r=new Int16Array(i,0),o=0,a=0;a0){var u=a.customizedToggles.keys().map(function(e){var t=S.default.startCase(e);return _.default.createElement(Y,{key:e,id:e,title:t,optionName:e,options:a,isCustomized:!0})});s=s.concat(u)}}else"radio"===r&&(s=(0,l.default)(o).map(function(e){var t=o[e];return a.togglesToHide[e]?null:_.default.createElement(T.default,{key:n+"_"+e,id:n,onClick:function(){a.selectCamera(t)},checked:a.cameraAngle===t,title:t,options:a})}));return _.default.createElement("div",{className:"card"},_.default.createElement("div",{className:"card-header summary"},_.default.createElement("span",null,_.default.createElement("img",{src:q[n]}),i)),_.default.createElement("div",{className:"card-content-column"},s))}}]),t}(_.default.Component))||o,K=(0,x.observer)(a=function(e){function t(){return(0,h.default)(this,t),(0,g.default)(this,(t.__proto__||(0,c.default)(t)).apply(this,arguments))}return(0,y.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.options,t=(0,l.default)(O.default).map(function(t){var n=O.default[t];return _.default.createElement(X,{key:n.id,tabId:n.id,tabTitle:n.title,tabType:n.type,data:n.data,options:e})});return _.default.createElement("div",{className:"tool-view-menu",id:"layer-menu"},t)}}]),t}(_.default.Component))||a;t.default=K},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(32),a=i(o),s=n(3),l=i(s),u=n(0),c=i(u),d=n(1),h=i(d),f=n(5),p=i(f),m=n(4),g=i(m),v=n(2),y=i(v),b=n(8),_=n(13),x=(i(_),n(145)),w=i(x),M=(0,b.observer)(r=function(e){function t(){return(0,c.default)(this,t),(0,p.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:"render",value:function(){var e=this.props,t=e.routeEditingManager,n=e.options,i=e.inNavigationMode,r=(0,a.default)(t.defaultRoutingEndPoint).map(function(e,r){return y.default.createElement(w.default,{extraClasses:["poi-button"],key:"poi_"+e,id:"poi",title:e,onClick:function(){t.addDefaultEndPoint(e,i),n.showRouteEditingBar||t.sendRoutingRequest(i),n.showPOI=!1},autoFocus:0===r,checked:!1})});return y.default.createElement("div",{className:"tool-view-menu",id:"poi-list"},y.default.createElement("div",{className:"card"},y.default.createElement("div",{className:"card-header"},y.default.createElement("span",null,"Point of Interest")),y.default.createElement("div",{className:"card-content-row"},r)))}}]),t}(y.default.Component))||r;t.default=M},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=n(13),v=i(g),y=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=e.type,n=e.label,i=e.iconSrc,r=e.hotkey,o=e.active,a=e.disabled,s=e.extraClasses,l=e.onClick,u="sub"===t,c=r?n+" ("+r+")":n;return m.default.createElement("button",{onClick:l,disabled:a,"data-for":"sidebar-button","data-tip":c,className:(0,v.default)({button:!u,"button-active":!u&&o,"sub-button":u,"sub-button-active":u&&o},s)},i&&m.default.createElement("img",{src:i,className:"icon"}),m.default.createElement("div",{className:"label"},n))}}]),t}(m.default.PureComponent);t.default=y},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,a=n(320),s=i(a),l=n(153),u=i(l),c=n(3),d=i(c),h=n(0),f=i(h),p=n(1),m=i(p),g=n(5),v=i(g),y=n(4),b=i(y),_=n(2),x=i(_),w=n(8),M=n(574),S=i(M),E=n(20),T=i(E),k=n(255),O=i(k),C=n(225),P=i(C),A=n(19),R=(i(A),n(660)),L=i(R),I=n(658),D=i(I),N=n(657),B=i(N),z=n(659),F=i(z),j=n(656),U=i(j),W={showTasks:L.default,showModuleController:D.default,showMenu:B.default,showRouteEditingBar:F.default,showDataRecorder:U.default},G={showTasks:"Tasks",showModuleController:"Module Controller",showMenu:"Layer Menu",showRouteEditingBar:"Route Editing",showDataRecorder:"Data Recorder",enableAudioCapture:"Audio Capture",showPOI:"Default Routing"},V=(r=(0,w.inject)("store"))(o=(0,w.observer)(o=function(e){function t(){return(0,f.default)(this,t),(0,v.default)(this,(t.__proto__||(0,d.default)(t)).apply(this,arguments))}return(0,b.default)(t,e),(0,m.default)(t,[{key:"render",value:function(){var e=this,t=this.props.store,n=t.options,i=t.enableHMIButtonsOnly,r=t.hmi,o=T.default.invert(P.default),a={};return[].concat((0,u.default)(n.mainSideBarOptions),(0,u.default)(n.secondarySideBarOptions)).forEach(function(t){a[t]={label:G[t],active:n[t],onClick:function(){e.props.store.handleOptionToggle(t)},disabled:n.isSideBarButtonDisabled(t,i,r.inNavigationMode),hotkey:o[t],iconSrc:W[t]}}),x.default.createElement("div",{className:"side-bar"},x.default.createElement("div",{className:"main-panel"},x.default.createElement(O.default,(0,s.default)({type:"main"},a.showTasks)),x.default.createElement(O.default,(0,s.default)({type:"main"},a.showModuleController)),x.default.createElement(O.default,(0,s.default)({type:"main"},a.showMenu)),x.default.createElement(O.default,(0,s.default)({type:"main"},a.showRouteEditingBar)),x.default.createElement(O.default,(0,s.default)({type:"main"},a.showDataRecorder))),x.default.createElement("div",{className:"sub-button-panel"},x.default.createElement(O.default,(0,s.default)({type:"sub"},a.enableAudioCapture)),x.default.createElement(O.default,(0,s.default)({type:"sub"},a.showPOI,{active:!n.showRouteEditingBar&&n.showPOI}))),x.default.createElement(S.default,{id:"sidebar-button",place:"right",delayShow:500}))}}]),t}(x.default.Component))||o)||o;t.default=V},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(3),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(5),h=i(d),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(260),b=i(y),_=function(e){function t(){return(0,l.default)(this,t),(0,h.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e=this.props,t=e.label,n=e.percentage,i=e.meterColor,r=e.background;return g.default.createElement("div",{className:"meter-container"},g.default.createElement("div",{className:"meter-label"},t),g.default.createElement("span",{className:"meter-head",style:{borderColor:i}}),g.default.createElement("div",{className:"meter-background",style:{backgroundColor:r}},g.default.createElement("span",{style:{backgroundColor:i,width:n+"%"}})))}}]),t}(g.default.Component),x=(0,v.observer)(r=function(e){function t(e){(0,l.default)(this,t);var n=(0,h.default)(this,(t.__proto__||(0,a.default)(t)).call(this,e));return n.setting={brake:{label:"Brake",meterColor:"#B43131",background:"#382626"},accelerator:{label:"Accelerator",meterColor:"#006AFF",background:"#2D3B50"}},n}return(0,p.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e=this.props,t=e.throttlePercent,n=e.brakePercent,i=e.speed;return g.default.createElement("div",{className:"auto-meter"},g.default.createElement(b.default,{meterPerSecond:i}),g.default.createElement("div",{className:"brake-panel"},g.default.createElement(_,{label:this.setting.brake.label,percentage:n,meterColor:this.setting.brake.meterColor,background:this.setting.brake.background})),g.default.createElement("div",{className:"throttle-panel"},g.default.createElement(_,{label:this.setting.accelerator.label,percentage:t,meterColor:this.setting.accelerator.meterColor,background:this.setting.accelerator.background})))}}]),t}(g.default.Component))||r;t.default=x},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=n(13),v=i(g),y=n(77),b=i(y),_=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:"componentWillUpdate",value:function(){b.default.cancelAllInQueue()}},{key:"render",value:function(){var e=this.props,t=e.drivingMode,n=e.isAutoMode;return b.default.speakOnce("Entering to "+t+" mode"),m.default.createElement("div",{className:(0,v.default)({"driving-mode":!0,"auto-mode":n,"manual-mode":!n})},m.default.createElement("span",{className:"text"},t))}}]),t}(m.default.PureComponent);t.default=_},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(3),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(5),h=i(d),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(13),b=i(y),_=n(223),x=i(_),w=n(222),M=i(w),S=(0,v.observer)(r=function(e){function t(){return(0,l.default)(this,t),(0,h.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e=this.props.monitor;if(!e.hasActiveNotification)return null;if(0===e.items.length)return null;var t=e.items[0],n="ERROR"===t.logLevel||"FATAL"===t.logLevel?"alert":"warn",i="alert"===n?M.default:x.default;return g.default.createElement("div",{className:"notification-"+n},g.default.createElement("img",{src:i,className:"icon"}),g.default.createElement("span",{className:(0,b.default)("text",n)},t.msg))}}]),t}(g.default.Component))||r;t.default=S},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=[{name:"km/h",conversionFromMeterPerSecond:3.6},{name:"m/s",conversionFromMeterPerSecond:1},{name:"mph",conversionFromMeterPerSecond:2.23694}],v=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.state={unit:0},n.changeUnit=n.changeUnit.bind(n),n}return(0,f.default)(t,e),(0,u.default)(t,[{key:"changeUnit",value:function(){this.setState({unit:(this.state.unit+1)%g.length})}},{key:"render",value:function(){var e=this.props.meterPerSecond,t=g[this.state.unit],n=t.name,i=Math.round(e*t.conversionFromMeterPerSecond);return m.default.createElement("span",{onClick:this.changeUnit},m.default.createElement("span",{className:"speed-read"},i),m.default.createElement("span",{className:"speed-unit"},n))}}]),t}(m.default.Component);t.default=v},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g={GREEN:"rgba(79, 198, 105, 0.8)",YELLOW:"rgba(239, 255, 0, 0.8)",RED:"rgba(180, 49, 49, 0.8)",BLACK:"rgba(30, 30, 30, 0.8)",UNKNOWN:"rgba(30, 30, 30, 0.8)","":null},v=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props.colorName,t=g[e],n=e||"NO SIGNAL";return m.default.createElement("div",{className:"traffic-light"},t&&m.default.createElement("svg",{className:"symbol",viewBox:"0 0 30 30",height:"28",width:"28"},m.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:t})),m.default.createElement("div",{className:"text"},n))}}]),t}(m.default.PureComponent);t.default=v},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(3),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(5),h=i(d),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=function(e){function t(){return(0,l.default)(this,t),(0,h.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e=this.props.steeringAngle;return g.default.createElement("svg",{className:"wheel",viewBox:"0 0 100 100",height:"80",width:"80"},g.default.createElement("circle",{className:"wheel-background",cx:"50",cy:"50",r:"45"}),g.default.createElement("g",{className:"wheel-arm",transform:"rotate("+e+" 50 50)"},g.default.createElement("rect",{x:"45",y:"7",height:"10",width:"10"}),g.default.createElement("line",{x1:"50",y1:"50",x2:"50",y2:"5"})))}}]),t}(g.default.Component),b=(0,v.observer)(r=function(e){function t(e){(0,l.default)(this,t);var n=(0,h.default)(this,(t.__proto__||(0,a.default)(t)).call(this,e));return n.signalColor={off:"#30435E",on:"#006AFF"},n}return(0,p.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e=this.props,t=e.steeringPercentage,n=e.steeringAngle,i=e.turnSignal,r="LEFT"===i||"EMERGENCY"===i?this.signalColor.on:this.signalColor.off,o="RIGHT"===i||"EMERGENCY"===i?this.signalColor.on:this.signalColor.off;return g.default.createElement("div",{className:"wheel-panel"},g.default.createElement("div",{className:"steerangle-read"},t),g.default.createElement("div",{className:"steerangle-unit"},"%"),g.default.createElement("div",{className:"left-arrow",style:{borderRightColor:r}}),g.default.createElement(y,{steeringAngle:n}),g.default.createElement("div",{className:"right-arrow",style:{borderLeftColor:o}}))}}]),t}(g.default.Component))||r;t.default=b},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(3),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(5),h=i(d),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(257),b=i(y),_=n(259),x=i(_),w=n(261),M=i(w),S=n(258),E=i(S),T=n(262),k=i(T),O=(0,v.observer)(r=function(e){function t(){return(0,l.default)(this,t),(0,h.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){var e=this.props,t=e.meters,n=e.trafficSignal,i=e.showNotification,r=e.monitor;return g.default.createElement("div",{className:"status-bar"},i&&g.default.createElement(x.default,{monitor:r}),g.default.createElement(b.default,{throttlePercent:t.throttlePercent,brakePercent:t.brakePercent,speed:t.speed}),g.default.createElement(k.default,{steeringPercentage:t.steeringPercentage,steeringAngle:t.steeringAngle,turnSignal:t.turnSignal}),g.default.createElement("div",{className:"traffic-light-and-driving-mode"},g.default.createElement(M.default,{colorName:n.color}),g.default.createElement(E.default,{drivingMode:t.drivingMode,isAutoMode:t.isAutoMode})))}}]),t}(g.default.Component))||r;t.default=O},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,a,s=n(3),l=i(s),u=n(0),c=i(u),d=n(1),h=i(d),f=n(5),p=i(f),m=n(4),g=i(m),v=n(2),y=i(v),b=n(8),_=n(13),x=i(_),w=n(223),M=i(w),S=n(222),E=i(S),T=n(43),k=(0,b.observer)(r=function(e){function t(){return(0,c.default)(this,t),(0,p.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:"render",value:function(){var e=this.props,t=e.level,n=e.text,i=e.time,r="ERROR"===t||"FATAL"===t?"alert":"warn",o="alert"===r?E.default:M.default;return y.default.createElement("li",{className:"monitor-item"},y.default.createElement("img",{src:o,className:"icon"}),y.default.createElement("span",{className:(0,x.default)("text",r)},n),y.default.createElement("span",{className:(0,x.default)("time",r)},i))}}]),t}(y.default.Component))||r,O=(o=(0,b.inject)("store"))(a=(0,b.observer)(a=function(e){function t(){return(0,c.default)(this,t),(0,p.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:"render",value:function(){var e=this.props.store.monitor;return y.default.createElement("div",{className:"card",style:{maxWidth:"50%"}},y.default.createElement("div",{className:"card-header"},y.default.createElement("span",null,"Console")),y.default.createElement("div",{className:"card-content-column"},y.default.createElement("ul",{className:"console"},e.items.map(function(e,t){return y.default.createElement(k,{key:t,text:e.msg,level:e.logLevel,time:(0,T.timestampMsToTimeString)(e.timestampMs)})}))))}}]),t}(y.default.Component))||a)||a;t.default=O},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,a=n(3),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(5),f=i(h),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(13),_=i(b),x=n(43),w=function(e){function t(){return(0,u.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props,t=e.time,n=e.warning,i="-"===t?t:(0,x.millisecondsToTime)(0|t);return v.default.createElement("div",{className:(0,_.default)({value:!0,warning:n})},i)}}]),t}(v.default.PureComponent),M=(r=(0,y.inject)("store"))(o=(0,y.observer)(o=function(e){function t(){return(0,u.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.store.moduleDelay,t=e.keys().sort().map(function(t){var n=e.get(t),i=n.delay>2e3&&"TrafficLight"!==n.name;return v.default.createElement("div",{className:"delay-item",key:"delay_"+t},v.default.createElement("div",{className:"name"},n.name),v.default.createElement(w,{time:n.delay,warning:i}))});return v.default.createElement("div",{className:"delay card"},v.default.createElement("div",{className:"card-header"},v.default.createElement("span",null,"Module Delay")),v.default.createElement("div",{className:"card-content-column"},t))}}]),t}(v.default.Component))||o)||o;t.default=M},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,a=n(3),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(5),f=i(h),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(144),_=i(b),x=n(19),w=i(x),M=(r=(0,y.inject)("store"))(o=(0,y.observer)(o=function(e){function t(){return(0,u.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this,t=this.props.store,n=t.options,i=t.enableHMIButtonsOnly,r=i||n.lockTaskPanel;return v.default.createElement("div",{className:"others card"},v.default.createElement("div",{className:"card-header"},v.default.createElement("span",null,"Others")),v.default.createElement("div",{className:"card-content-column"},v.default.createElement("button",{disabled:r,onClick:function(){w.default.resetBackend()}},"Reset Backend Data"),v.default.createElement("button",{disabled:r,onClick:function(){w.default.dumpMessages()}},"Dump Message"),v.default.createElement(_.default,{id:"showPNCMonitor",title:"PNC Monitor",isChecked:n.showPNCMonitor,disabled:r,onClick:function(){e.props.store.handleOptionToggle("showPNCMonitor")}}),v.default.createElement(_.default,{id:"toggleSimControl",title:"Sim Control",isChecked:n.enableSimControl,disabled:n.lockTaskPanel,onClick:function(){w.default.toggleSimControl(!n.enableSimControl),e.props.store.handleOptionToggle("enableSimControl")}}),v.default.createElement(_.default,{id:"showVideo",title:"Camera Sensor",isChecked:n.showVideo,disabled:r,onClick:function(){e.props.store.handleOptionToggle("showVideo")}}),v.default.createElement(_.default,{id:"panelLock",title:"Lock Task Panel",isChecked:n.lockTaskPanel,disabled:!1,onClick:function(){e.props.store.handleOptionToggle("lockTaskPanel")}})))}}]),t}(v.default.Component))||o)||o;t.default=M},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,a=n(32),s=i(a),l=n(3),u=i(l),c=n(0),d=i(c),h=n(1),f=i(h),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),_=n(8),x=n(13),w=i(x),M=n(77),S=i(M),E=n(19),T=i(E),k=function(e){function t(){return(0,d.default)(this,t),(0,m.default)(this,(t.__proto__||(0,u.default)(t)).apply(this,arguments))}return(0,v.default)(t,e),(0,f.default)(t,[{key:"render",value:function(){var e=this.props,t=e.name,n=e.commands,i=e.disabled,r=e.extraCommandClass,o=e.extraButtonClass,a=(0,s.default)(n).map(function(e){return b.default.createElement("button",{className:o,disabled:i,key:e,onClick:n[e]},e)}),l=t?b.default.createElement("span",{className:"name"},t+":"):null;return b.default.createElement("div",{className:(0,w.default)("command-group",r)},l,a)}}]),t}(b.default.Component),O=(r=(0,_.inject)("store"))(o=(0,_.observer)(o=function(e){function t(e){(0,d.default)(this,t);var n=(0,m.default)(this,(t.__proto__||(0,u.default)(t)).call(this,e));return n.setup={Setup:function(){T.default.executeModeCommand("SETUP_MODE"),S.default.speakOnce("Setup")}},n.reset={"Reset All":function(){T.default.executeModeCommand("RESET_MODE"),S.default.speakOnce("Reset All")}},n.auto={"Start Auto":function(){T.default.executeModeCommand("ENTER_AUTO_MODE"),S.default.speakOnce("Start Auto")}},n}return(0,v.default)(t,e),(0,f.default)(t,[{key:"componentWillUpdate",value:function(){S.default.cancelAllInQueue()}},{key:"render",value:function(){var e=this.props.store.hmi,t=this.props.store.options.lockTaskPanel;return b.default.createElement("div",{className:"card"},b.default.createElement("div",{className:"card-header"},b.default.createElement("span",null,"Quick Start")),b.default.createElement("div",{className:"card-content-column"},b.default.createElement(k,{disabled:t,commands:this.setup}),b.default.createElement(k,{disabled:t,commands:this.reset}),b.default.createElement(k,{disabled:!e.enableStartAuto||t,commands:this.auto,extraButtonClass:"start-auto-button",extraCommandClass:"start-auto-command"})))}}]),t}(b.default.Component))||o)||o;t.default=O},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,a=n(3),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(5),f=i(h),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(267),_=i(b),x=n(266),w=i(x),M=n(265),S=i(M),E=n(264),T=i(E),k=n(143),O=i(k),C=(r=(0,y.inject)("store"))(o=(0,y.observer)(o=function(e){function t(){return(0,u.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.options;return v.default.createElement("div",{className:"tasks"},v.default.createElement(_.default,null),v.default.createElement(w.default,null),v.default.createElement(S.default,null),v.default.createElement(T.default,null),e.showVideo&&!e.showPNCMonitor&&v.default.createElement(O.default,null))}}]),t}(v.default.Component))||o)||o;t.default=C},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(79),o=i(r),a=n(321),s=i(a),l=n(2),u=i(l),c=n(27),d=i(c),h=function(e){var t=e.image,n=e.style,i=e.className,r=((0,s.default)(e,["image","style","className"]),(0,o.default)({},n||{},{backgroundImage:"url("+t+")",backgroundSize:"cover"})),a=i?i+" dreamview-image":"dreamview-image";return u.default.createElement("div",{className:a,style:r})};h.propTypes={image:d.default.string.isRequired,style:d.default.object},t.default=h},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=n(13),v=i(g),y=n(37),b=(i(y),n(224)),_=i(b),x=n(642),w=(i(x),function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=e.height,n=e.extraClasses,i=e.offlineViewErr,r="Please send car initial position and map data.",o=_.default;return m.default.createElement("div",{className:"loader",style:{height:t}},m.default.createElement("div",{className:(0,v.default)("img-container",n)},m.default.createElement("img",{src:o,alt:"Loader"}),m.default.createElement("div",{className:i?"error-message":"status-message"},r)))}}]),t}(m.default.Component));t.default=w},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h);n(670);var p=n(2),m=i(p),g=n(48),v=i(g),y=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.setOkButtonRef=function(e){n.okButton=e},n}return(0,f.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.okButton&&e.okButton.focus()},0)}},{key:"componentDidUpdate",value:function(){this.okButton&&this.okButton.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.open,i=t.header;return n?m.default.createElement("div",null,m.default.createElement("div",{className:"modal-background"}),m.default.createElement("div",{className:"modal-content"},m.default.createElement("div",{role:"dialog",className:"modal-dialog"},i&&m.default.createElement("header",null,m.default.createElement("span",null,this.props.header)),this.props.children),m.default.createElement("button",{ref:this.setOkButtonRef,className:"ok-button",onClick:function(){return e.props.onClose()}},"OK"))):null}}]),t}(m.default.Component),b=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.rootSelector=document.getElementById("root"),n.container=document.createElement("div"),n}return(0,f.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.rootSelector.appendChild(this.container)}},{key:"componentWillUnmount",value:function(){this.rootSelector.removeChild(this.container)}},{key:"render",value:function(){return v.default.createPortal(m.default.createElement(y,this.props),this.container)}}]),t}(m.default.Component);t.default=b},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(14),u=i(l),c=n(611),d=i(c),h=n(612),f=i(h),p=n(78),m={adc:{menuOptionName:"showPositionLocalization",carMaterial:d.default},planningAdc:{menuOptionName:"showPlanningCar",carMaterial:null}},g=function(){function e(t,n){var i=this;(0,o.default)(this,e),this.mesh=null,this.name=t;var r=m[t];if(!r)return void console.error("Car properties not found for car:",t);(0,p.loadObject)(r.carMaterial,f.default,{x:1,y:1,z:1},function(e){i.mesh=e,i.mesh.rotation.x=Math.PI/2,i.mesh.visible=u.default.options[r.menuOptionName],n.add(i.mesh)})}return(0,s.default)(e,[{key:"update",value:function(e,t){if(this.mesh&&t&&_.isNumber(t.positionX)&&_.isNumber(t.positionY)){var n=m[this.name].menuOptionName;this.mesh.visible=u.default.options[n];var i=e.applyOffset({x:t.positionX,y:t.positionY});null!==i&&(this.mesh.position.set(i.x,i.y,0),this.mesh.rotation.y=t.heading)}}},{key:"resizeCarScale",value:function(e,t,n){this.mesh&&this.mesh.scale.set(e,t,n)}}]),e}();t.default=g},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),c=function(){function e(){(0,o.default)(this,e),this.systemName="ENU",this.offset=null}return(0,s.default)(e,[{key:"isInitialized",value:function(){return null!==this.offset}},{key:"initialize",value:function(e,t){this.offset={x:e,y:t},console.log("Offset is set to x:"+e+", y:"+t)}},{key:"setSystem",value:function(e){this.systemName=e}},{key:"applyOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null===this.offset?(console.error("Offset is not set."),null):isNaN(this.offset.x)||isNaN(this.offset.y)?(console.error("Offset contains NaN!"),null):isNaN(e.x)||isNaN(e.y)?(console.warn("Point contains NaN!"),null):isNaN(e.z)?new u.Vector2(t?e.x+this.offset.x:e.x-this.offset.x,t?e.y+this.offset.y:e.y-this.offset.y):new u.Vector3(t?e.x+this.offset.x:e.x-this.offset.x,t?e.y+this.offset.y:e.y-this.offset.y,e.z)}},{key:"applyOffsetToArray",value:function(e){var t=this;return e.map(function(e){return t.applyOffset(e)})}}]),e}();t.default=c},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(44),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(12),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(c),h=n(14),f=i(h),p=n(629),m=i(p),g=n(633),v=i(g),y=n(631),b=i(y),_=n(221),x=i(_),w=n(632),M=i(w),S=n(623),E=i(S),T=n(626),k=i(T),O=n(624),C=i(O),P=n(627),A=i(P),R=n(625),L=i(R),I=n(628),D=i(I),N=n(621),B=i(N),z=n(635),F=i(z),j=n(634),U=i(j),W=n(637),G=i(W),V=n(638),H=i(V),q=n(639),Y=i(q),X=n(619),K=i(X),Z=n(620),J=i(Z),Q=n(622),$=i(Q),ee=n(630),te=i(ee),ne=n(636),ie=i(ne),re=n(618),oe=i(re),ae=n(617),se=i(ae),le=n(43),ue=n(38),ce=n(20),de={STOP:16724016,FOLLOW:1757281,YIELD:16724215,OVERTAKE:3188223},he={STOP_REASON_HEAD_VEHICLE:D.default,STOP_REASON_DESTINATION:B.default,STOP_REASON_PEDESTRIAN:F.default,STOP_REASON_OBSTACLE:U.default,STOP_REASON_SIGNAL:G.default,STOP_REASON_STOP_SIGN:H.default,STOP_REASON_YIELD_SIGN:Y.default,STOP_REASON_CLEAR_ZONE:K.default,STOP_REASON_CROSSWALK:J.default,STOP_REASON_EMERGENCY:$.default,STOP_REASON_NOT_READY:te.default,STOP_REASON_PULL_OVER:ie.default},fe={LEFT:se.default,RIGHT:oe.default},pe=function(){function e(){(0,s.default)(this,e),this.markers={STOP:[],FOLLOW:[],YIELD:[],OVERTAKE:[]},this.nudges=[],this.mainDecision={STOP:this.getMainStopDecision(),CHANGE_LANE:this.getMainChangeLaneDecision()},this.mainDecisionAddedToScene=!1}return(0,u.default)(e,[{key:"update",value:function(e,t,n){this.nudges.forEach(function(e){n.remove(e),e.geometry.dispose(),e.material.dispose()}),this.nudges=[],this.updateMainDecision(e,t,n),this.updateObstacleDecision(e,t,n)}},{key:"updateMainDecision",value:function(e,t,n){var i=this,r=e.mainDecision?e.mainDecision:e.mainStop;for(var a in this.mainDecision)this.mainDecision[a].visible=!1;if(f.default.options.showDecisionMain&&!ce.isEmpty(r)){if(!this.mainDecisionAddedToScene){for(var s in this.mainDecision)n.add(this.mainDecision[s]);this.mainDecisionAddedToScene=!0}for(var l in he)this.mainDecision.STOP[l].visible=!1;for(var u in fe)this.mainDecision.CHANGE_LANE[u].visible=!1;var c=t.applyOffset({x:r.positionX,y:r.positionY,z:.2}),d=r.heading,h=!0,p=!1,m=void 0;try{for(var g,v=(0,o.default)(r.decision);!(h=(g=v.next()).done);h=!0)!function(){var e=g.value,n=c,r=d;ce.isNumber(e.positionX)&&ce.isNumber(e.positionY)&&(n=t.applyOffset({x:e.positionX,y:e.positionY,z:.2})),ce.isNumber(e.heading)&&(r=e.heading);var o=ce.attempt(function(){return e.stopReason});!ce.isError(o)&&o&&(i.mainDecision.STOP.position.set(n.x,n.y,n.z),i.mainDecision.STOP.rotation.set(Math.PI/2,r-Math.PI/2,0),i.mainDecision.STOP[o].visible=!0,i.mainDecision.STOP.visible=!0);var a=ce.attempt(function(){return e.changeLaneType});!ce.isError(a)&&a&&(i.mainDecision.CHANGE_LANE.position.set(n.x,n.y,n.z),i.mainDecision.CHANGE_LANE.rotation.set(Math.PI/2,r-Math.PI/2,0),i.mainDecision.CHANGE_LANE[a].visible=!0,i.mainDecision.CHANGE_LANE.visible=!0)}()}catch(e){p=!0,m=e}finally{try{!h&&v.return&&v.return()}finally{if(p)throw m}}}}},{key:"updateObstacleDecision",value:function(e,t,n){var i=this,r=e.object;if(f.default.options.showDecisionObstacle&&!ce.isEmpty(r)){for(var o={STOP:0,FOLLOW:0,YIELD:0,OVERTAKE:0},a=0;a=i.markers[u].length?(c=i.getObstacleDecision(u),i.markers[u].push(c),n.add(c)):c=i.markers[u][o[u]];var h=t.applyOffset(new d.Vector3(l.positionX,l.positionY,0));if(null===h)return"continue";if(c.position.set(h.x,h.y,.2),c.rotation.set(Math.PI/2,l.heading-Math.PI/2,0),c.visible=!0,o[u]++,"YIELD"===u||"OVERTAKE"===u){var f=c.connect;f.geometry.vertices[0].set(r[a].positionX-l.positionX,r[a].positionY-l.positionY,0),f.geometry.verticesNeedUpdate=!0,f.geometry.computeLineDistances(),f.geometry.lineDistancesNeedUpdate=!0,f.rotation.set(Math.PI/-2,0,Math.PI/2-l.heading)}}else if("NUDGE"===u){var p=(0,ue.drawShapeFromPoints)(t.applyOffsetToArray(l.polygonPoint),new d.MeshBasicMaterial({color:16744192}),!1,2);i.nudges.push(p),n.add(p)}})(l)}}var u=null;for(u in de)(0,le.hideArrayObjects)(this.markers[u],o[u])}else{var c=null;for(c in de)(0,le.hideArrayObjects)(this.markers[c])}}},{key:"getMainStopDecision",value:function(){var e=this.getFence("MAIN_STOP");for(var t in he){var n=(0,ue.drawImage)(he[t],1,1,4.2,3.6,0);e.add(n),e[t]=n}return e.visible=!1,e}},{key:"getMainChangeLaneDecision",value:function(){var e=this.getFence("MAIN_CHANGE_LANE");for(var t in fe){var n=(0,ue.drawImage)(fe[t],1,1,1,2.8,0);e.add(n),e[t]=n}return e.visible=!1,e}},{key:"getObstacleDecision",value:function(e){var t=this.getFence(e);if("YIELD"===e||"OVERTAKE"===e){var n=de[e],i=(0,ue.drawDashedLineFromPoints)([new d.Vector3(1,1,0),new d.Vector3(0,0,0)],n,2,2,1,30);t.add(i),t.connect=i}return t.visible=!1,t}},{key:"getFence",value:function(e){var t=null,n=null,i=new d.Object3D;switch(e){case"STOP":t=(0,ue.drawImage)(k.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(v.default,1,1,3,3.6,0),i.add(n);break;case"FOLLOW":t=(0,ue.drawImage)(C.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(b.default,1,1,3,3.6,0),i.add(n);break;case"YIELD":t=(0,ue.drawImage)(A.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(x.default,1,1,3,3.6,0),i.add(n);break;case"OVERTAKE":t=(0,ue.drawImage)(L.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(M.default,1,1,3,3.6,0),i.add(n);break;case"MAIN_STOP":t=(0,ue.drawImage)(E.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(m.default,1,1,3,3.6,0),i.add(n)}return i}}]),e}();t.default=pe},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),c=n(14),d=i(c),h=n(38),f=function(){function e(){(0,o.default)(this,e),this.circle=null,this.base=null}return(0,s.default)(e,[{key:"update",value:function(e,t,n){if(e.gps&&e.autoDrivingCar){if(!this.circle){var i=new u.MeshBasicMaterial({color:27391,transparent:!1,opacity:.5});this.circle=(0,h.drawCircle)(.2,i),n.add(this.circle)}if(!this.base){var r=d.default.hmi.vehicleParam;this.base=(0,h.drawSegmentsFromPoints)([new u.Vector3(r.frontEdgeToCenter,-r.leftEdgeToCenter,0),new u.Vector3(r.frontEdgeToCenter,r.rightEdgeToCenter,0),new u.Vector3(-r.backEdgeToCenter,r.rightEdgeToCenter,0),new u.Vector3(-r.backEdgeToCenter,-r.leftEdgeToCenter,0),new u.Vector3(r.frontEdgeToCenter,-r.leftEdgeToCenter,0)],27391,2,5),n.add(this.base)}var o=d.default.options.showPositionGps,a=t.applyOffset({x:e.gps.positionX,y:e.gps.positionY,z:0});this.circle.position.set(a.x,a.y,a.z),this.circle.visible=o,this.base.position.set(a.x,a.y,a.z),this.base.rotation.set(0,0,e.gps.heading),this.base.visible=o}}}]),e}();t.default=f},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),c=n(78),d=n(640),h=i(d),f=n(14),p=i(f),m=function(){function e(){var t=this;(0,o.default)(this,e),this.type="default",this.loadedMap=null,this.updateMap=null,this.mesh=null,this.geometry=null,this.initialized=!1,this.inNaviMode=null,(0,c.loadTexture)(h.default,function(e){t.geometry=new u.PlaneGeometry(1,1),t.mesh=new u.Mesh(t.geometry,new u.MeshBasicMaterial({map:e}))})}return(0,s.default)(e,[{key:"initialize",value:function(e){return!!this.mesh&&(!(this.loadedMap===this.updateMap&&!this.render(e))&&(this.initialized=!0,!0))}},{key:"loadGrid",value:function(e){var t=this;(0,c.loadTexture)(h.default,function(n){console.log("using grid as ground image..."),t.mesh.material.map=n,t.mesh.type="grid",t.render(e)})}},{key:"update",value:function(e,t,n){var i=this;if(!0===this.initialized){var r=this.inNaviMode!==p.default.hmi.inNavigationMode;if(this.inNaviMode=p.default.hmi.inNavigationMode,this.inNaviMode?(this.mesh.type="grid",r&&this.loadGrid(t)):this.mesh.type="refelction","grid"===this.mesh.type){var o=e.autoDrivingCar,a=t.applyOffset({x:o.positionX,y:o.positionY});this.mesh.position.set(a.x,a.y,0)}else if(this.loadedMap!==this.updateMap||r){var s=this.titleCaseToSnakeCase(this.updateMap),l=window.location,u=PARAMETERS.server.port,d=l.protocol+"//"+l.hostname+":"+u,h=d+"/assets/map_data/"+s+"/background.jpg";(0,c.loadTexture)(h,function(e){console.log("updating ground image with "+s),i.mesh.material.map=e,i.mesh.type="reflection",i.render(t,s)},function(e){i.loadGrid(t)}),this.loadedMap=this.updateMap}}}},{key:"updateImage",value:function(e){this.updateMap=e}},{key:"render",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"defaults";console.log("rendering ground image...");var n=PARAMETERS.ground[t],i=n.xres,r=n.yres,o=n.mpp,a=n.xorigin,s=n.yorigin,l=e.applyOffset({x:a,y:s});return null===l?(console.warn("Cannot find position for ground mesh!"),!1):("defaults"===t&&(l={x:0,y:0}),this.mesh.position.set(l.x,l.y,0),this.mesh.scale.set(i*o,r*o,1),this.mesh.material.needsUpdate=!0,this.mesh.overdraw=!1,!0)}},{key:"titleCaseToSnakeCase",value:function(e){return e.replace(/\s/g,"_").toLowerCase()}}]),e}();t.default=m},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(32),o=i(r),a=n(44),s=i(a),l=n(79),u=i(l),c=n(0),d=i(c),h=n(1),f=i(h),p=n(12),m=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(p),g=n(14),v=i(g),y=n(19),b=n(20),_=i(b),x=n(38),w=n(613),M=i(w),S=n(614),E=i(S),T=n(615),k=i(T),O=n(616),C=i(O),P=n(78),A={YELLOW:14329120,WHITE:13421772,CORAL:16744272,RED:16737894,GREEN:25600,BLUE:3188223,PURE_WHITE:16777215,DEFAULT:12632256},R={x:.006,y:.006,z:.006},L={x:.01,y:.01,z:.01},I=function(){function e(){(0,d.default)(this,e),this.hash=-1,this.data={},this.initialized=!1,this.elementKindsDrawn=""}return(0,f.default)(e,[{key:"diffMapElements",value:function(e,t){var n=this,i={},r=!0;for(var o in e){(function(o){if(!n.shouldDrawThisElementKind(o))return"continue";i[o]=[];for(var a=e[o],s=t[o],l=0;l=2){var i=Math.atan2(t[n-1].y-t[0].y,t[n-1].x-t[0].x);return 1.5*Math.PI+i}return NaN}},{key:"getHeadingFromStopLineAndTrafficLightBoundary",value:function(e){var t=e.boundary.point;if(t.length<3)return console.warn("Cannot get three points from boundary, signal_id: "+e.id.id),this.getHeadingFromStopLine(e);var n=t[0],i=t[1],r=t[2],o=(i.x-n.x)*(r.z-n.z)-(r.x-n.x)*(i.z-n.z),a=(i.y-n.y)*(r.z-n.z)-(r.y-n.y)*(i.z-n.z),s=-o*n.x-a*n.y,l=_.default.get(e,"stopLine[0].segment[0].lineSegment.point",""),u=l.length;if(u<2)return console.warn("Cannot get any stop line, signal_id: "+e.id.id),NaN;var c=l[u-1].y-l[0].y,d=l[0].x-l[u-1].x,h=-c*l[0].x-d*l[0].y;if(Math.abs(c*a-o*d)<1e-9)return console.warn("The signal orthogonal direction is parallel to the stop line,","signal_id: "+e.id.id),this.getHeadingFromStopLine(e);var f=(d*s-a*h)/(c*a-o*d),p=0!==d?(-c*f-h)/d:(-o*f-s)/a,m=Math.atan2(-o,a);return(m<0&&p>n.y||m>0&&p.2&&(v-=.7)})}}))}},{key:"getPredCircle",value:function(){var e=new u.MeshBasicMaterial({color:16777215,transparent:!1,opacity:.5}),t=(0,f.drawCircle)(.2,e);return this.predCircles.push(t),t}}]),e}();t.default=m},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=(function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e}(l),n(14)),c=i(u),d=n(38),h=(n(20),function(){function e(){(0,o.default)(this,e),this.routePaths=[],this.lastRoutingTime=-1}return(0,s.default)(e,[{key:"update",value:function(e,t,n,i){var r=this;this.routePaths.forEach(function(e){e.visible=c.default.options.showRouting}),this.lastRoutingTime!==e&&void 0!==t&&(this.lastRoutingTime=e,this.routePaths.forEach(function(e){i.remove(e),e.material.dispose(),e.geometry.dispose()}),t.forEach(function(e){var t=n.applyOffsetToArray(e.point),o=(0,d.drawThickBandFromPoints)(t,.3,16711680,.6,5);o.visible=c.default.options.showRouting,i.add(o),r.routePaths.push(o)}))}}]),e}());t.default=h},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12);!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e}(l);n(664);var u=n(652),c=i(u),d=n(14),h=(i(d),n(19)),f=i(h),p=n(38),m=function(){function e(){(0,o.default)(this,e),this.routePoints=[],this.parkingSpaceId=null,this.inEditingMode=!1}return(0,s.default)(e,[{key:"isInEditingMode",value:function(){return this.inEditingMode}},{key:"enableEditingMode",value:function(e,t){this.inEditingMode=!0;e.fov=PARAMETERS.camera.Map.fov,e.near=PARAMETERS.camera.Map.near,e.far=PARAMETERS.camera.Map.far,e.updateProjectionMatrix(),f.default.requestMapElementIdsByRadius(PARAMETERS.routingEditor.radiusOfMapRequest)}},{key:"disableEditingMode",value:function(e){this.inEditingMode=!1,this.removeAllRoutePoints(e),this.parkingSpaceId=null}},{key:"addRoutingPoint",value:function(e,t,n){var i=t.applyOffset({x:e.x,y:e.y}),r=(0,p.drawImage)(c.default,3.5,3.5,i.x,i.y,.3);this.routePoints.push(r),n.add(r)}},{key:"setParkingSpaceId",value:function(e){this.parkingSpaceId=e}},{key:"removeLastRoutingPoint",value:function(e){var t=this.routePoints.pop();t&&(e.remove(t),t.geometry&&t.geometry.dispose(),t.material&&t.material.dispose())}},{key:"removeAllRoutePoints",value:function(e){this.routePoints.forEach(function(t){e.remove(t),t.geometry&&t.geometry.dispose(),t.material&&t.material.dispose()}),this.routePoints=[]}},{key:"sendRoutingRequest",value:function(e,t,n){if(0===this.routePoints.length)return alert("Please provide at least an end point."),!1;var i=this.routePoints.map(function(e){return e.position.z=0,n.applyOffset(e.position,!0)}),r=i.length>1?i[0]:n.applyOffset(e,!0),o=i.length>1?null:t,a=i[i.length-1],s=i.length>1?i.slice(1,-1):[];return f.default.requestRoute(r,o,s,a,this.parkingSpaceId),!0}}]),e}();t.default=m},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),c=n(20),d={},h=!1,f=new u.FontLoader,p="fonts/gentilis_bold.typeface.json";f.load(p,function(e){d.gentilis_bold=e,h=!0},function(e){console.log(p+e.loaded/e.total*100+"% loaded")},function(e){console.log("An error happened when loading "+p)});var m=function(){function e(){(0,o.default)(this,e),this.charMeshes={},this.charPointers={}}return(0,s.default)(e,[{key:"reset",value:function(){this.charPointers={}}},{key:"composeText",value:function(e){if(!h)return null;for(var t=c.map(e,function(e){return e.charCodeAt(0)-32}),n=new u.Object3D,i=0;i0?this.charMeshes[r][0].clone():this.drawChar3D(e[i]),this.charMeshes[r].push(a));var s=0;switch(e[i]){case"I":case"i":s=.15;break;case",":s=.35;break;case"/":s=.15}a.position.set(.43*(i-t.length/2)+s,0,0),this.charPointers[r]++,n.add(a)}return n}},{key:"drawChar3D",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.gentilis_bold,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.6,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:16771584,o=new u.TextGeometry(e,{font:t,size:n,height:i}),a=new u.MeshBasicMaterial({color:r});return new u.Mesh(o,a)}}]),e}();t.default=m},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=new h.default(e);for(var i in t)n.delete(i);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(44),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(152),h=i(d),f=n(12),p=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(f),m=n(19),g=(i(m),n(78)),v=function(){function e(){(0,l.default)(this,e),this.mesh=!0,this.type="tile",this.hash=-1,this.currentTiles={},this.initialized=!1,this.range=PARAMETERS.ground.defaults.tileRange,this.metadata=null,this.mapId=null,this.mapUrlPrefix=null}return(0,c.default)(e,[{key:"initialize",value:function(e,t){this.metadata={tileLength:t.tile*t.mpp,left:t.left,top:t.top,numCols:t.wnum,numRows:t.hnum,mpp:t.mpp,tile:t.tile,imageUrl:t.image_url},this.mapId=t.mapid,this.mapUrlPrefix=this.metadata.imageUrl?this.metadata.imageUrl+"/"+this.mapId:e+"/map/getMapPic",this.initialized=!0}},{key:"removeDrewObject",value:function(e,t){var n=this.currentTiles[e];n&&(t.remove(n),n.geometry&&n.geometry.dispose(),n.material&&n.material.dispose()),delete this.currentTiles[e]}},{key:"appendTiles",value:function(e,t,n,i,r){var o=this;if(!(t<0||t>this.metadata.numCols||e<0||e>this.metadata.numRows)){var a=this.metadata.imageUrl?this.mapUrlPrefix+"/"+this.metadata.mpp+"_"+e+"_"+t+"_"+this.metadata.tile+".png":this.mapUrlPrefix+"?mapId="+this.mapId+"&i="+e+"&j="+t,s=i.applyOffset({x:this.metadata.left+(e+.5)*this.metadata.tileLength,y:this.metadata.top-(t+.5)*this.metadata.tileLength,z:0});(0,g.loadTexture)(a,function(e){var t=new p.Mesh(new p.PlaneGeometry(1,1),new p.MeshBasicMaterial({map:e}));t.position.set(s.x,s.y,s.z),t.scale.set(o.metadata.tileLength,o.metadata.tileLength,1),t.overdraw=!1,o.currentTiles[n]=t,r.add(t)})}}},{key:"removeExpiredTiles",value:function(e,t){for(var n in this.currentTiles)e.has(n)||this.removeDrewObject(n,t)}},{key:"updateIndex",value:function(e,t,n,i){if(e!==this.hash){this.hash=e,this.removeExpiredTiles(t,i);var o=r(t,this.currentTiles);if(!_.isEmpty(o)||!this.initialized){var s=!0,l=!1,u=void 0;try{for(var c,d=(0,a.default)(o);!(s=(c=d.next()).done);s=!0){var h=c.value;this.currentTiles[h]=null;var f=h.split(","),p=parseInt(f[0]),m=parseInt(f[1]);this.appendTiles(p,m,h,n,i)}}catch(e){l=!0,u=e}finally{try{!s&&d.return&&d.return()}finally{if(l)throw u}}}}}},{key:"update",value:function(e,t,n){if(t.isInitialized()&&this.initialized){for(var i=e.autoDrivingCar.positionX,r=e.autoDrivingCar.positionY,o=Math.floor((i-this.metadata.left)/this.metadata.tileLength),a=Math.floor((this.metadata.top-r)/this.metadata.tileLength),s=new h.default,l="",u=o-this.range;u<=o+this.range;u++)for(var c=a-this.range;c<=a+this.range;c++){var d=u+","+c;s.add(d),l+=d}this.updateIndex(l,s,t,n)}}}]),e}();t.default=v},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!e)return[];for(var n=[],i=0;i0){if(Math.abs(n[n.length-1].x-o.x)+Math.abs(n[n.length-1].y-o.y)=PARAMETERS.planning.pathProperties.length&&(console.error("No enough property to render the planning path, use a duplicated property instead."),u=0);var c=PARAMETERS.planning.pathProperties[u];if(l[e]){var d=r(l[e],n);o.paths[e]=(0,m.drawThickBandFromPoints)(d,s*c.width,c.color,c.opacity,c.zOffset),i.add(o.paths[e])}}else o.paths[e]&&(o.paths[e].visible=!1);u+=1})}}]),e}();t.default=g},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,u.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,l=n(21),u=i(l),c=n(23),d=i(c),h=n(0),f=i(h),p=n(1),m=i(p),g=n(22),v=n(12),y=(a=function(){function e(){(0,f.default)(this,e),r(this,"lastUpdatedTime",s,this),this.data=this.initData()}return(0,m.default)(e,[{key:"updateTime",value:function(e){this.lastUpdatedTime=e}},{key:"initData",value:function(){return{trajectoryGraph:{plan:[],target:[],real:[],autoModeZone:[],steerCurve:[]},pose:{x:null,y:null,heading:null},speedGraph:{plan:[],target:[],real:[],autoModeZone:[]},curvatureGraph:{plan:[],target:[],real:[],autoModeZone:[]},accelerationGraph:{plan:[],target:[],real:[],autoModeZone:[]},stationErrorGraph:{error:[]},headingErrorGraph:{error:[]},lateralErrorGraph:{error:[]}}}},{key:"updateErrorGraph",value:function(e,t,n){if(n&&t&&e){var i=e.error.length>0&&t=80;i?e.error=[]:r&&e.error.shift();(0===e.error.length||t!==e.error[e.error.length-1].x)&&e.error.push({x:t,y:n})}}},{key:"updateSteerCurve",value:function(e,t,n){var i=t.steeringAngle/n.steerRatio,r=null;r=Math.abs(Math.tan(i))>1e-4?n.length/Math.tan(i):1e5;var o=t.heading,a=Math.abs(r),s=7200/(2*Math.PI*a)*Math.PI/180,l=null,u=null,c=null,d=null;r>=0?(c=Math.PI/2+o,d=o-Math.PI/2,l=0,u=s):(c=o-Math.PI/2,d=Math.PI/2+o,l=-s,u=0);var h=t.positionX+Math.cos(c)*a,f=t.positionY+Math.sin(c)*a,p=new v.EllipseCurve(h,f,a,a,l,u,!1,d);e.steerCurve=p.getPoints(25)}},{key:"interpolateValueByCurrentTime",value:function(e,t,n){if("timestampSec"===n)return t;var i=e.map(function(e){return e.timestampSec}),r=e.map(function(e){return e[n]});return new v.LinearInterpolant(i,r,1,[]).evaluate(t)[0]}},{key:"updateAdcStatusGraph",value:function(e,t,n,i,r){var o=n.timestampSec,a=e.target.length>0&&o=80;if(a?(e.target=[],e.real=[],e.autoModeZone=[]):s&&(e.target.shift(),e.real.shift(),e.autoModeZone.shift()),0===e.target.length||o!==e.target[e.target.length-1].t){e.plan=t.map(function(e){return{x:e[i],y:e[r]}}),e.target.push({x:this.interpolateValueByCurrentTime(t,o,i),y:this.interpolateValueByCurrentTime(t,o,r),t:o}),e.real.push({x:n[i],y:n[r]});var l="DISENGAGE_NONE"===n.disengageType;e.autoModeZone.push({x:n[i],y:l?n[r]:void 0})}}},{key:"update",value:function(e,t){var n=e.planningTrajectory,i=e.autoDrivingCar;if(n&&i&&(this.updateAdcStatusGraph(this.data.speedGraph,n,i,"timestampSec","speed"),this.updateAdcStatusGraph(this.data.accelerationGraph,n,i,"timestampSec","speedAcceleration"),this.updateAdcStatusGraph(this.data.curvatureGraph,n,i,"timestampSec","kappa"),this.updateAdcStatusGraph(this.data.trajectoryGraph,n,i,"positionX","positionY"),this.updateSteerCurve(this.data.trajectoryGraph,i,t),this.data.pose.x=i.positionX,this.data.pose.y=i.positionY,this.data.pose.heading=i.heading),e.controlData){var r=e.controlData,o=r.timestampSec;this.updateErrorGraph(this.data.stationErrorGraph,o,r.stationError),this.updateErrorGraph(this.data.lateralErrorGraph,o,r.lateralError),this.updateErrorGraph(this.data.headingErrorGraph,o,r.headingError),this.updateTime(o)}}}]),e}(),s=o(a.prototype,"lastUpdatedTime",[g.observable],{enumerable:!0,initializer:function(){return null}}),o(a.prototype,"updateTime",[g.action],(0,d.default)(a.prototype,"updateTime"),a.prototype),a);t.default=y},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,v.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,l,u,c,d,h,f,p,m,g=n(21),v=i(g),y=n(23),b=i(y),_=n(32),x=i(_),w=n(49),M=i(w),S=n(0),E=i(S),T=n(1),k=i(T),O=n(22),C=n(19),P=i(C),A=n(77),R=i(A),L=n(37),I=i(L),D=(a=function(){function e(){(0,E.default)(this,e),this.modes=[],r(this,"currentMode",s,this),this.vehicles=[],r(this,"currentVehicle",l,this),this.defaultVehicleSize={height:1.48,width:2.11,length:4.933},this.vehicleParam={frontEdgeToCenter:3.89,backEdgeToCenter:1.04,leftEdgeToCenter:1.055,rightEdgeToCenter:1.055,height:1.48,width:2.11,length:4.933,steerRatio:16},this.maps=[],r(this,"currentMap",u,this),r(this,"moduleStatus",c,this),r(this,"componentStatus",d,this),r(this,"enableStartAuto",h,this),this.displayName={},this.utmZoneId=10,r(this,"dockerImage",f,this),r(this,"isCoDriver",p,this),r(this,"isMute",m,this)}return(0,k.default)(e,[{key:"toggleCoDriverFlag",value:function(){this.isCoDriver=!this.isCoDriver}},{key:"toggleMuteFlag",value:function(){this.isMute=!this.isMute,R.default.setMute(this.isMute)}},{key:"updateStatus",value:function(e){if(e.dockerImage&&(this.dockerImage=e.dockerImage),e.utmZoneId&&(this.utmZoneId=e.utmZoneId),e.modes&&(this.modes=e.modes.sort()),e.currentMode&&(this.currentMode=e.currentMode),e.maps&&(this.maps=e.maps.sort()),e.currentMap&&(this.currentMap=e.currentMap),e.vehicles&&(this.vehicles=e.vehicles.sort()),e.currentVehicle&&(this.currentVehicle=e.currentVehicle),e.modules){(0,M.default)((0,x.default)(e.modules).sort())!==(0,M.default)(this.moduleStatus.keys().sort())&&this.moduleStatus.clear();for(var t in e.modules)this.moduleStatus.set(t,e.modules[t])}if(e.monitoredComponents){(0,M.default)((0,x.default)(e.monitoredComponents).sort())!==(0,M.default)(this.componentStatus.keys().sort())&&this.componentStatus.clear();for(var n in e.monitoredComponents)this.componentStatus.set(n,e.monitoredComponents[n])}"string"==typeof e.passengerMsg&&R.default.speakRepeatedly(e.passengerMsg)}},{key:"update",value:function(e){this.enableStartAuto="READY_TO_ENGAGE"===e.engageAdvice}},{key:"updateVehicleParam",value:function(e){this.vehicleParam=e,I.default.adc.resizeCarScale(this.vehicleParam.length/this.defaultVehicleSize.length,this.vehicleParam.width/this.defaultVehicleSize.width,this.vehicleParam.height/this.defaultVehicleSize.height)}},{key:"toggleModule",value:function(e){this.moduleStatus.set(e,!this.moduleStatus.get(e));var t=this.moduleStatus.get(e)?"START_MODULE":"STOP_MODULE";P.default.executeModuleCommand(e,t)}},{key:"inNavigationMode",get:function(){return"Navigation"===this.currentMode}}]),e}(),s=o(a.prototype,"currentMode",[O.observable],{enumerable:!0,initializer:function(){return"none"}}),l=o(a.prototype,"currentVehicle",[O.observable],{enumerable:!0,initializer:function(){return"none"}}),u=o(a.prototype,"currentMap",[O.observable],{enumerable:!0,initializer:function(){return"none"}}),c=o(a.prototype,"moduleStatus",[O.observable],{enumerable:!0,initializer:function(){return O.observable.map()}}),d=o(a.prototype,"componentStatus",[O.observable],{enumerable:!0,initializer:function(){return O.observable.map()}}),h=o(a.prototype,"enableStartAuto",[O.observable],{enumerable:!0,initializer:function(){return!1}}),f=o(a.prototype,"dockerImage",[O.observable],{enumerable:!0,initializer:function(){return"unknown"}}),p=o(a.prototype,"isCoDriver",[O.observable],{enumerable:!0,initializer:function(){return!1}}),m=o(a.prototype,"isMute",[O.observable],{enumerable:!0,initializer:function(){return!1}}),o(a.prototype,"toggleCoDriverFlag",[O.action],(0,b.default)(a.prototype,"toggleCoDriverFlag"),a.prototype),o(a.prototype,"toggleMuteFlag",[O.action],(0,b.default)(a.prototype,"toggleMuteFlag"),a.prototype),o(a.prototype,"updateStatus",[O.action],(0,b.default)(a.prototype,"updateStatus"),a.prototype),o(a.prototype,"update",[O.action],(0,b.default)(a.prototype,"update"),a.prototype),o(a.prototype,"toggleModule",[O.action],(0,b.default)(a.prototype,"toggleModule"),a.prototype),o(a.prototype,"inNavigationMode",[O.computed],(0,b.default)(a.prototype,"inNavigationMode"),a.prototype),a);t.default=D},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,u.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,l=n(21),u=i(l),c=n(23),d=i(c),h=n(0),f=i(h),p=n(1),m=i(p),g=n(22),v=(a=function(){function e(){(0,f.default)(this,e),r(this,"lastUpdatedTime",s,this),this.data={}}return(0,m.default)(e,[{key:"updateTime",value:function(e){this.lastUpdatedTime=e}},{key:"updateLatencyGraph",value:function(e,t){if(t){var n=t.timestampSec,i=this.data[e];if(i.length>0){var r=i[0].x,o=i[i.length-1].x,a=n-r;n300&&i.shift()}0!==i.length&&i[i.length-1].x===n||i.push({x:n,y:t.totalTimeMs})}}},{key:"update",value:function(e){if(e.latency){var t=0;for(var n in e.latency)n in this.data||(this.data[n]=[]),this.updateLatencyGraph(n,e.latency[n]),t=Math.max(e.latency[n].timestampSec,t);this.updateTime(t)}}}]),e}(),s=o(a.prototype,"lastUpdatedTime",[g.observable],{enumerable:!0,initializer:function(){return 0}}),o(a.prototype,"updateTime",[g.action],(0,d.default)(a.prototype,"updateTime"),a.prototype),a);t.default=v},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,b.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function a(e){return 10*Math.round(e/10)}function s(e){switch(e){case"DISENGAGE_MANUAL":return"MANUAL";case"DISENGAGE_NONE":return"AUTO";case"DISENGAGE_EMERGENCY":return"DISENGAGED";case"DISENGAGE_AUTO_STEER_ONLY":return"AUTO STEER";case"DISENGAGE_AUTO_SPEED_ONLY":return"AUTO SPEED";case"DISENGAGE_CHASSIS_ERROR":return"CHASSIS ERROR";default:return"UNKNOWN"}}function l(e){return"DISENGAGE_NONE"===e||"DISENGAGE_AUTO_STEER_ONLY"===e||"DISENGAGE_AUTO_SPEED_ONLY"===e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u,c,d,h,f,p,m,g,v,y=n(21),b=i(y),_=n(23),x=i(_),w=n(0),M=i(w),S=n(1),E=i(S),T=n(22),k=(u=function(){function e(){(0,M.default)(this,e),r(this,"throttlePercent",c,this),r(this,"brakePercent",d,this),r(this,"speed",h,this),r(this,"steeringAngle",f,this),r(this,"steeringPercentage",p,this),r(this,"drivingMode",m,this),r(this,"isAutoMode",g,this),r(this,"turnSignal",v,this)}return(0,E.default)(e,[{key:"update",value:function(e){e.autoDrivingCar&&(void 0!==e.autoDrivingCar.throttlePercentage&&(this.throttlePercent=a(e.autoDrivingCar.throttlePercentage)),void 0!==e.autoDrivingCar.brakePercentage&&(this.brakePercent=a(e.autoDrivingCar.brakePercentage)),void 0!==e.autoDrivingCar.speed&&(this.speed=e.autoDrivingCar.speed),void 0===e.autoDrivingCar.steeringPercentage||isNaN(e.autoDrivingCar.steeringPercentage)||(this.steeringPercentage=Math.round(e.autoDrivingCar.steeringPercentage)),void 0===e.autoDrivingCar.steeringAngle||isNaN(e.autoDrivingCar.steeringAngle)||(this.steeringAngle=-Math.round(180*e.autoDrivingCar.steeringAngle/Math.PI)),void 0!==e.autoDrivingCar.disengageType&&(this.drivingMode=s(e.autoDrivingCar.disengageType),this.isAutoMode=l(e.autoDrivingCar.disengageType)),void 0!==e.autoDrivingCar.currentSignal&&(this.turnSignal=e.autoDrivingCar.currentSignal))}}]),e}(),c=o(u.prototype,"throttlePercent",[T.observable],{enumerable:!0,initializer:function(){return 0}}),d=o(u.prototype,"brakePercent",[T.observable],{enumerable:!0,initializer:function(){return 0}}),h=o(u.prototype,"speed",[T.observable],{enumerable:!0,initializer:function(){return 0}}),f=o(u.prototype,"steeringAngle",[T.observable],{enumerable:!0,initializer:function(){return 0}}),p=o(u.prototype,"steeringPercentage",[T.observable],{enumerable:!0,initializer:function(){return 0}}),m=o(u.prototype,"drivingMode",[T.observable],{enumerable:!0,initializer:function(){return"UNKNOWN"}}),g=o(u.prototype,"isAutoMode",[T.observable],{enumerable:!0,initializer:function(){return!1}}),v=o(u.prototype,"turnSignal",[T.observable],{enumerable:!0,initializer:function(){return""}}),o(u.prototype,"update",[T.action],(0,x.default)(u.prototype,"update"),u.prototype),u);t.default=k},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,c.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,l,u=n(21),c=i(u),d=n(23),h=i(d),f=n(49),p=i(f),m=n(79),g=i(m),v=n(0),y=i(v),b=n(1),_=i(b),x=n(22),w=(a=function(){function e(){(0,y.default)(this,e),r(this,"hasActiveNotification",s,this),r(this,"items",l,this),this.lastUpdateTimestamp=0,this.refreshTimer=null}return(0,_.default)(e,[{key:"startRefresh",value:function(){var e=this;this.clearRefreshTimer(),this.refreshTimer=setInterval(function(){Date.now()-e.lastUpdateTimestamp>6e3&&(e.setHasActiveNotification(!1),e.clearRefreshTimer())},500)}},{key:"clearRefreshTimer",value:function(){null!==this.refreshTimer&&(clearInterval(this.refreshTimer),this.refreshTimer=null)}},{key:"setHasActiveNotification",value:function(e){this.hasActiveNotification=e}},{key:"update",value:function(e){if(e.monitor||e.notification){var t=[];e.notification?t=e.notification.reverse().map(function(e){return(0,g.default)(e.item,{timestampMs:1e3*e.timestampSec})}):e.monitor&&(t=e.monitor.item),this.hasNewNotification(this.items,t)&&(this.hasActiveNotification=!0,this.lastUpdateTimestamp=Date.now(),this.items.replace(t),this.startRefresh())}}},{key:"hasNewNotification",value:function(e,t){return(0!==e.length||0!==t.length)&&(0===e.length||0===t.length||(0,p.default)(this.items[0])!==(0,p.default)(t[0]))}},{key:"insert",value:function(e,t,n){var i=[];i.push({msg:t,logLevel:e,timestampMs:n});for(var r=0;r10||e<-10?100*e/Math.abs(e):e}},{key:"extractDataPoints",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!e)return[];var o=e.map(function(e){return{x:e[t]+r,y:e[n]}});return i&&e.length&&o.push({x:e[0][t],y:e[0][n]}),o}},{key:"updateSLFrame",value:function(e){var t=this.data.slGraph,n=e[0].sampledS;t.mapLowerBound=this.generateDataPoints(n,e[0].mapLowerBound,this.transformMapBound),t.mapUpperBound=this.generateDataPoints(n,e[0].mapUpperBound,this.transformMapBound),t.staticObstacleLowerBound=this.generateDataPoints(n,e[0].staticObstacleLowerBound),t.staticObstacleUpperBound=this.generateDataPoints(n,e[0].staticObstacleUpperBound),t.dynamicObstacleLowerBound=this.generateDataPoints(n,e[0].dynamicObstacleLowerBound),t.dynamicObstacleUpperBound=this.generateDataPoints(n,e[0].dynamicObstacleUpperBound),t.pathLine=this.extractDataPoints(e[0].slPath,"s","l");var i=e[1].aggregatedBoundaryS;t.aggregatedBoundaryLow=this.generateDataPoints(i,e[1].aggregatedBoundaryLow),t.aggregatedBoundaryHigh=this.generateDataPoints(i,e[1].aggregatedBoundaryHigh)}},{key:"updateSTGraph",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=(0,f.default)(e);!(t=(r=o.next()).done);t=!0){var a=r.value;this.data.stGraph[a.name]={obstaclesBoundary:{}};var s=this.data.stGraph[a.name];if(a.boundary){var l=!0,u=!1,c=void 0;try{for(var d,h=(0,f.default)(a.boundary);!(l=(d=h.next()).done);l=!0){var p=d.value,m=p.type.substring("ST_BOUNDARY_TYPE_".length),g=p.name+"_"+m;s.obstaclesBoundary[g]=this.extractDataPoints(p.point,"t","s",!0)}}catch(e){u=!0,c=e}finally{try{!l&&h.return&&h.return()}finally{if(u)throw c}}}s.curveLine=this.extractDataPoints(a.speedProfile,"t","s"),a.kernelCruiseRef&&(s.kernelCruise=this.generateDataPoints(a.kernelCruiseRef.t,a.kernelCruiseRef.cruiseLineS)),a.kernelFollowRef&&(s.kernelFollow=this.generateDataPoints(a.kernelFollowRef.t,a.kernelFollowRef.followLineS))}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}}},{key:"updateSTSpeedGraph",value:function(e){var t=this,n=!0,i=!1,r=void 0;try{for(var o,a=(0,f.default)(e);!(n=(o=a.next()).done);n=!0){var s=o.value;this.data.stSpeedGraph[s.name]={};var l=this.data.stSpeedGraph[s.name];l.limit=this.extractDataPoints(s.speedLimit,"s","v"),l.planned=this.extractDataPoints(s.speedProfile,"s","v"),s.speedConstraint&&function(){var e=s.speedProfile.map(function(e){return e.t}),n=s.speedProfile.map(function(e){return e.s}),i=new b.LinearInterpolant(e,n,1,[]),r=s.speedConstraint.t.map(function(e){return i.evaluate(e)[0]});l.lowerConstraint=t.generateDataPoints(r,s.speedConstraint.lowerBound),l.upperConstraint=t.generateDataPoints(r,s.speedConstraint.upperBound)}()}}catch(e){i=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw r}}}},{key:"updateSpeed",value:function(e,t){var n=this.data.speedGraph;if(e){var i=!0,r=!1,o=void 0;try{for(var a,s=(0,f.default)(e);!(i=(a=s.next()).done);i=!0){var l=a.value;n[l.name]=this.extractDataPoints(l.speedPoint,"t","v")}}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}}t&&(n.finalSpeed=this.extractDataPoints(t,"timestampSec","speed",!1,-this.planningTime))}},{key:"updateAccelerationGraph",value:function(e){var t=this.data.accelerationGraph;e&&(t.acceleration=this.extractDataPoints(e,"timestampSec","speedAcceleration",!1,-this.planningTime))}},{key:"updateThetaGraph",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=(0,f.default)(e);!(t=(r=o.next()).done);t=!0){var a=r.value,s="planning_reference_line"===a.name?"ReferenceLine":a.name;this.data.thetaGraph[s]=this.extractDataPoints(a.pathPoint,"s","theta")}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}}},{key:"updateKappaGraph",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=(0,f.default)(e);!(t=(r=o.next()).done);t=!0){var a=r.value,s="planning_reference_line"===a.name?"ReferenceLine":a.name;this.data.kappaGraph[s]=this.extractDataPoints(a.pathPoint,"s","kappa")}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}}},{key:"updateDkappaGraph",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=(0,f.default)(e);!(t=(r=o.next()).done);t=!0){var a=r.value,s="planning_reference_line"===a.name?"ReferenceLine":a.name;this.data.dkappaGraph[s]=this.extractDataPoints(a.pathPoint,"s","dkappa")}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}}},{key:"updateDpPolyGraph",value:function(e){var t=this.data.dpPolyGraph;if(e.sampleLayer){t.sampleLayer=[];var n=!0,i=!1,r=void 0;try{for(var o,a=(0,f.default)(e.sampleLayer);!(n=(o=a.next()).done);n=!0){o.value.slPoint.map(function(e){var n=e.s,i=e.l;t.sampleLayer.push({x:n,y:i})})}}catch(e){i=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw r}}}e.minCostPoint&&(t.minCostPoint=this.extractDataPoints(e.minCostPoint,"s","l"))}},{key:"updateScenario",value:function(e,t){if(e){var n=this.scenarioHistory.length>0?this.scenarioHistory[this.scenarioHistory.length-1]:{};n.time&&t5&&this.scenarioHistory.shift())}}},{key:"update",value:function(e){var t=e.planningData;if(t){var n=e.latency.planning.timestampSec;if(this.planningTime===n)return;if(t.scenario&&this.updateScenario(t.scenario,n),this.chartData=[],this.data=this.initData(),t.chart){var i=!0,r=!1,o=void 0;try{for(var a,s=(0,f.default)(t.chart);!(i=(a=s.next()).done);i=!0){var l=a.value;this.chartData.push((0,_.parseChartDataFromProtoBuf)(l))}}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}}t.slFrame&&t.slFrame.length>=2&&this.updateSLFrame(t.slFrame),t.stGraph&&(this.updateSTGraph(t.stGraph),this.updateSTSpeedGraph(t.stGraph)),t.speedPlan&&e.planningTrajectory&&this.updateSpeed(t.speedPlan,e.planningTrajectory),e.planningTrajectory&&this.updateAccelerationGraph(e.planningTrajectory),t.path&&(this.updateKappaGraph(t.path),this.updateDkappaGraph(t.path),this.updateThetaGraph(t.path)),t.dpPolyGraph&&this.updateDpPolyGraph(t.dpPolyGraph),this.updatePlanningTime(n)}}}]),e}(),s=o(a.prototype,"planningTime",[y.observable],{enumerable:!0,initializer:function(){return null}}),o(a.prototype,"updatePlanningTime",[y.action],(0,d.default)(a.prototype,"updatePlanningTime"),a.prototype),a);t.default=x},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,p.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,l,u,c,d,h,f=n(21),p=i(f),m=n(23),g=i(m),v=n(0),y=i(v),b=n(1),_=i(b),x=n(22);n(671);var w=(a=function(){function e(){(0,y.default)(this,e),this.FPS=10,this.msPerFrame=100,this.recordId=null,this.mapId=null,r(this,"numFrames",s,this),r(this,"requestedFrame",l,this),r(this,"retrievedFrame",u,this),r(this,"isPlaying",c,this),r(this,"isSeeking",d,this),r(this,"seekingFrame",h,this)}return(0,_.default)(e,[{key:"setMapId",value:function(e){this.mapId=e}},{key:"setRecordId",value:function(e){this.recordId=e}},{key:"setNumFrames",value:function(e){this.numFrames=parseInt(e)}},{key:"setPlayRate",value:function(e){if("number"==typeof e&&e>0){var t=1/this.FPS*1e3;this.msPerFrame=t/e}}},{key:"initialized",value:function(){return this.numFrames&&null!==this.recordId&&null!==this.mapId}},{key:"hasNext",value:function(){return this.initialized()&&this.requestedFrame0&&e<=this.numFrames&&(this.seekingFrame=e,this.requestedFrame=e-1,this.isSeeking=!0)}},{key:"resetFrame",value:function(){this.requestedFrame=0,this.retrievedFrame=0,this.seekingFrame=1}},{key:"shouldProcessFrame",value:function(e){return!(!e||!e.sequenceNum||this.seekingFrame!==e.sequenceNum||!this.isPlaying&&!this.isSeeking)&&(this.retrievedFrame=e.sequenceNum,this.isSeeking=!1,this.seekingFrame++,!0)}},{key:"currentFrame",get:function(){return this.retrievedFrame}},{key:"replayComplete",get:function(){return this.seekingFrame>this.numFrames}}]),e}(),s=o(a.prototype,"numFrames",[x.observable],{enumerable:!0,initializer:function(){return 0}}),l=o(a.prototype,"requestedFrame",[x.observable],{enumerable:!0,initializer:function(){return 0}}),u=o(a.prototype,"retrievedFrame",[x.observable],{enumerable:!0,initializer:function(){return 0}}),c=o(a.prototype,"isPlaying",[x.observable],{enumerable:!0,initializer:function(){return!1}}),d=o(a.prototype,"isSeeking",[x.observable],{enumerable:!0,initializer:function(){return!0}}),h=o(a.prototype,"seekingFrame",[x.observable],{enumerable:!0,initializer:function(){return 1}}),o(a.prototype,"next",[x.action],(0,g.default)(a.prototype,"next"),a.prototype),o(a.prototype,"currentFrame",[x.computed],(0,g.default)(a.prototype,"currentFrame"),a.prototype),o(a.prototype,"replayComplete",[x.computed],(0,g.default)(a.prototype,"replayComplete"),a.prototype),o(a.prototype,"setPlayAction",[x.action],(0,g.default)(a.prototype,"setPlayAction"),a.prototype),o(a.prototype,"seekFrame",[x.action],(0,g.default)(a.prototype,"seekFrame"),a.prototype),o(a.prototype,"resetFrame",[x.action],(0,g.default)(a.prototype,"resetFrame"),a.prototype),o(a.prototype,"shouldProcessFrame",[x.action],(0,g.default)(a.prototype,"shouldProcessFrame"),a.prototype),a);t.default=w},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,d.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,s,l,u,c=n(21),d=i(c),h=n(23),f=i(h),p=n(0),m=i(p),g=n(1),v=i(g),y=n(22),b=n(37),x=i(b),w=n(142),M=i(w),S=(a=function(){function e(){(0,m.default)(this,e),r(this,"defaultRoutingEndPoint",s,this),r(this,"defaultParkingSpaceId",l,this),r(this,"currentPOI",u,this)}return(0,v.default)(e,[{key:"updateDefaultRoutingEndPoint",value:function(e){if(void 0!==e.poi){this.defaultRoutingEndPoint={},this.defaultParkingSpaceId={};for(var t=0;t150&&console.log("Last sim_world_update took "+(e.timestamp-this.lastUpdateTimestamp)+"ms"),this.lastUpdateTimestamp=e.timestamp,-1!==this.lastSeqNum&&e.world.sequenceNum>this.lastSeqNum+1&&console.debug("Last seq: "+this.lastSeqNum+". New seq: "+e.world.sequenceNum+"."),this.lastSeqNum=e.world.sequenceNum}},{key:"startPlayback",value:function(e){var t=this;clearInterval(this.requestTimer),this.requestTimer=setInterval(function(){if(t.websocket.readyState===t.websocket.OPEN&&d.default.playback.initialized()){if(!d.default.playback.hasNext())return clearInterval(t.requestTimer),void(t.requestTimer=null);t.requestSimulationWorld(d.default.playback.recordId,d.default.playback.next())}},e/2),clearInterval(this.processTimer),this.processTimer=setInterval(function(){if(d.default.playback.initialized()){var e=d.default.playback.seekingFrame;e in t.frameData&&t.processSimWorld(t.frameData[e]),d.default.playback.replayComplete&&(clearInterval(t.processTimer),t.processTimer=null)}},e)}},{key:"pausePlayback",value:function(){clearInterval(this.requestTimer),clearInterval(this.processTimer),this.requestTimer=null,this.processTimer=null}},{key:"requestGroundMeta",value:function(e){this.websocket.send((0,o.default)({type:"RetrieveGroundMeta",mapId:e}))}},{key:"processSimWorld",value:function(e){d.default.playback.shouldProcessFrame(e)&&(e.routePath||(e.routePath=this.routingTime2Path[e.routingTime]),d.default.updateTimestamp(e.timestamp),f.default.maybeInitializeOffest(e.autoDrivingCar.positionX,e.autoDrivingCar.positionY),f.default.updateWorld(e),d.default.meters.update(e),d.default.monitor.update(e),d.default.trafficSignal.update(e))}},{key:"requestFrameCount",value:function(e){this.websocket.send((0,o.default)({type:"RetrieveFrameCount",recordId:e}))}},{key:"requestSimulationWorld",value:function(e,t){t in this.frameData?d.default.playback.isSeeking&&this.processSimWorld(this.frameData[t]):this.websocket.send((0,o.default)({type:"RequestSimulationWorld",recordId:e,frameId:t}))}},{key:"requestRoutePath",value:function(e,t){this.websocket.send((0,o.default)({type:"requestRoutePath",recordId:e,frameId:t}))}}]),e}();t.default=p},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(49),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(14),d=i(c),h=n(37),f=i(h),p=n(100),m=i(p),g=function(){function e(t){(0,s.default)(this,e),this.serverAddr=t,this.websocket=null,this.worker=new m.default}return(0,u.default)(e,[{key:"initialize",value:function(){var e=this;try{this.websocket=new WebSocket(this.serverAddr),this.websocket.binaryType="arraybuffer"}catch(t){return console.error("Failed to establish a connection: "+t),void setTimeout(function(){e.initialize()},1e3)}this.websocket.onmessage=function(t){e.worker.postMessage({source:"point_cloud",data:t.data})},this.websocket.onclose=function(t){console.log("WebSocket connection closed with code: "+t.code),e.initialize()},this.worker.onmessage=function(e){"PointCloudStatus"===e.data.type?(d.default.setOptionStatus("showPointCloud",e.data.enabled),!1===d.default.options.showPointCloud&&f.default.updatePointCloud({num:[]})):!0===d.default.options.showPointCloud&&void 0!==e.data.num&&f.default.updatePointCloud(e.data)},clearInterval(this.timer),this.timer=setInterval(function(){e.websocket.readyState===e.websocket.OPEN&&!0===d.default.options.showPointCloud&&e.websocket.send((0,o.default)({type:"RequestPointCloud"}))},200)}},{key:"togglePointCloud",value:function(e){this.websocket.send((0,o.default)({type:"TogglePointCloud",enable:e})),!1===d.default.options.showPointCloud&&f.default.updatePointCloud({num:[]})}}]),e}();t.default=g},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(153),o=i(r),a=n(49),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(14),f=i(h),p=n(37),m=i(p),g=n(142),v=i(g),y=n(77),b=i(y),_=n(100),x=i(_),w=function(){function e(t){(0,u.default)(this,e),this.serverAddr=t,this.websocket=null,this.simWorldUpdatePeriodMs=100,this.simWorldLastUpdateTimestamp=0,this.mapUpdatePeriodMs=1e3,this.mapLastUpdateTimestamp=0,this.updatePOI=!0,this.routingTime=void 0,this.currentMode=null,this.worker=new x.default}return(0,d.default)(e,[{key:"initialize",value:function(){var e=this;try{this.websocket=new WebSocket(this.serverAddr),this.websocket.binaryType="arraybuffer"}catch(t){return console.error("Failed to establish a connection: "+t),void setTimeout(function(){e.initialize()},1e3)}this.websocket.onmessage=function(t){e.worker.postMessage({source:"realtime",data:t.data})},this.worker.onmessage=function(t){var n=t.data;switch(n.type){case"HMIStatus":f.default.hmi.updateStatus(n.data),m.default.updateGroundImage(f.default.hmi.currentMap);break;case"VehicleParam":f.default.hmi.updateVehicleParam(n.data);break;case"SimControlStatus":f.default.setOptionStatus("enableSimControl",n.enabled);break;case"SimWorldUpdate":e.checkMessage(n);var i=e.currentMode!==f.default.hmi.currentMode;e.currentMode=f.default.hmi.currentMode,f.default.hmi.inNavigationMode?(v.default.isInitialized()&&v.default.update(n),n.autoDrivingCar.positionX=0,n.autoDrivingCar.positionY=0,n.autoDrivingCar.heading=0,m.default.coordinates.setSystem("FLU"),e.mapUpdatePeriodMs=100):(m.default.coordinates.setSystem("ENU"),e.mapUpdatePeriodMs=1e3),f.default.update(n),m.default.maybeInitializeOffest(n.autoDrivingCar.positionX,n.autoDrivingCar.positionY,i),m.default.updateWorld(n),e.updateMapIndex(n),e.routingTime!==n.routingTime&&(e.requestRoutePath(),e.routingTime=n.routingTime);break;case"MapElementIds":m.default.updateMapIndex(n.mapHash,n.mapElementIds,n.mapRadius);break;case"DefaultEndPoint":f.default.routeEditingManager.updateDefaultRoutingEndPoint(n);break;case"RoutePath":m.default.updateRouting(n.routingTime,n.routePath)}},this.websocket.onclose=function(t){console.log("WebSocket connection closed, close_code: "+t.code);var n=(new Date).getTime(),i=n-e.simWorldLastUpdateTimestamp,r=n-f.default.monitor.lastUpdateTimestamp;if(0!==e.simWorldLastUpdateTimestamp&&i>1e4&&r>2e3){var o="Connection to the server has been lost.";f.default.monitor.insert("FATAL",o,n),b.default.getCurrentText()===o&&b.default.isSpeaking()||b.default.speakOnce(o)}e.initialize()},clearInterval(this.timer),this.timer=setInterval(function(){if(e.websocket.readyState===e.websocket.OPEN){e.updatePOI&&(e.requestDefaultRoutingEndPoint(),e.updatePOI=!1);var t=f.default.options.showPNCMonitor;e.websocket.send((0,s.default)({type:"RequestSimulationWorld",planning:t}))}},this.simWorldUpdatePeriodMs)}},{key:"updateMapIndex",value:function(e){var t=new Date,n=t-this.mapLastUpdateTimestamp;e.mapHash&&n>=this.mapUpdatePeriodMs&&(m.default.updateMapIndex(e.mapHash,e.mapElementIds,e.mapRadius),this.mapLastUpdateTimestamp=t)}},{key:"checkMessage",value:function(e){var t=(new Date).getTime(),n=t-this.simWorldLastUpdateTimestamp;0!==this.simWorldLastUpdateTimestamp&&n>200&&console.warn("Last sim_world_update took "+n+"ms"),this.secondLastSeqNum===e.sequenceNum&&console.warn("Received duplicate simulation_world:",this.lastSeqNum),this.secondLastSeqNum=this.lastSeqNum,this.lastSeqNum=e.sequenceNum,this.simWorldLastUpdateTimestamp=t}},{key:"requestMapElementIdsByRadius",value:function(e){this.websocket.send((0,s.default)({type:"RetrieveMapElementIdsByRadius",radius:e}))}},{key:"requestRoute",value:function(e,t,n,i,r){var o={type:"SendRoutingRequest",start:e,end:i,waypoint:n};r&&(o.parkingSpaceId=r),t&&(o.start.heading=t),this.websocket.send((0,s.default)(o))}},{key:"requestDefaultRoutingEndPoint",value:function(){this.websocket.send((0,s.default)({type:"GetDefaultEndPoint"}))}},{key:"resetBackend",value:function(){this.websocket.send((0,s.default)({type:"Reset"}))}},{key:"dumpMessages",value:function(){this.websocket.send((0,s.default)({type:"Dump"}))}},{key:"changeSetupMode",value:function(e){this.websocket.send((0,s.default)({type:"HMIAction",action:"CHANGE_MODE",value:e}))}},{key:"changeMap",value:function(e){this.websocket.send((0,s.default)({type:"HMIAction",action:"CHANGE_MAP",value:e})),this.updatePOI=!0}},{key:"changeVehicle",value:function(e){this.websocket.send((0,s.default)({type:"HMIAction",action:"CHANGE_VEHICLE",value:e}))}},{key:"executeModeCommand",value:function(e){if(!["SETUP_MODE","RESET_MODE","ENTER_AUTO_MODE"].includes(e))return void console.error("Unknown mode command found:",e);this.websocket.send((0,s.default)({type:"HMIAction",action:e}))}},{key:"executeModuleCommand",value:function(e,t){if(!["START_MODULE","STOP_MODULE"].includes(t))return void console.error("Unknown module command found:",t);this.websocket.send((0,s.default)({type:"HMIAction",action:t,value:e}))}},{key:"submitDriveEvent",value:function(e,t,n){this.websocket.send((0,s.default)({type:"SubmitDriveEvent",event_time_ms:e,event_msg:t,event_type:n}))}},{key:"sendAudioPiece",value:function(e){this.websocket.send((0,s.default)({type:"HMIAction",action:"RECORD_AUDIO",value:btoa(String.fromCharCode.apply(String,(0,o.default)(e)))}))}},{key:"toggleSimControl",value:function(e){this.websocket.send((0,s.default)({type:"ToggleSimControl",enable:e}))}},{key:"requestRoutePath",value:function(){this.websocket.send((0,s.default)({type:"RequestRoutePath"}))}},{key:"publishNavigationInfo",value:function(e){this.websocket.send(e)}}]),e}();t.default=w},function(e,t,n){"use strict";function i(){return l[u++%l.length]}function r(e,t){return!(!e||!t)&&(e.x===t.x&&e.y===t.y)}function o(e){var t={};for(var n in e){var r=e[n];try{t[n]=JSON.parse(r)}catch(e){console.error("Failed to parse chart property "+n+":"+r+".","Set its value without parsing."),t[n]=r}}return t.color||(t.color=i()),t}function a(e,t,n){var i={},a={};return e&&(i.lines={},a.lines={},e.forEach(function(e){var t=e.label;a.lines[t]=o(e.properties),i.lines[t]=e.point})),t&&(i.polygons={},a.polygons={},t.forEach(function(e){var t=e.point.length;if(0!==t){var n=e.label;i.polygons[n]=e.point,r(e.point[0],e.point[t-1])||i.polygons[n].push(e.point[0]),e.properties&&(a.polygons[n]=o(e.properties))}})),n&&(i.cars={},a.cars={},n.forEach(function(e){var t=e.label;a.cars[t]={color:e.color},i.cars[t]={x:e.x,y:e.y,heading:e.heading}})),{data:i,properties:a}}function s(e){var t="boolean"!=typeof e.options.legendDisplay||e.options.legendDisplay,n={legend:{display:t},axes:{x:e.options.x,y:e.options.y}},i=a(e.line,e.polygon,e.car),r=i.properties,o=i.data;return{title:e.title,options:n,properties:r,data:o}}Object.defineProperty(t,"__esModule",{value:!0});var l=["rgba(241, 113, 112, 0.5)","rgba(254, 208, 114, 0.5)","rgba(162, 212, 113, 0.5)","rgba(113, 226, 208, 0.5)","rgba(113, 208, 255, 0.5)","rgba(179, 164, 238, 0.5)"],u=0;t.parseChartDataFromProtoBuf=s},function(e,t,n){t=e.exports=n(123)(!1),t.push([e.i,".modal-background{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.5);z-index:1000}.modal-content{position:fixed;top:35%;left:50%;width:300px;height:130px;transform:translate(-50%,-50%);text-align:center;background-color:rgba(0,0,0,.8);box-shadow:0 0 10px 0 rgba(0,0,0,.75);z-index:1001}.modal-content header{background:#217cba;display:flex;align-items:center;justify-content:space-between;padding:0 2rem;min-height:50px}.modal-content .modal-dialog{position:absolute;top:0;right:0;bottom:50px;left:0;padding:5px}.modal-content .ok-button{position:absolute;bottom:0;transform:translate(-50%,-50%);padding:7px 25px;border:none;background:#006aff;color:#fff;cursor:pointer}.modal-content .ok-button:hover{background:#49a9ee}",""])},function(e,t,n){t=e.exports=n(123)(!1),t.push([e.i,'body{margin:0;overflow:hidden;background-color:#14171a!important;font:14px Lucida Grande,Helvetica,Arial,sans-serif;color:#fff}body *{font-size:16px}@media (max-height:800px),(max-width:1280px){body *{font-size:14px}}::-webkit-scrollbar{width:4px;height:8px;opacity:.3;background-color:#fff}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);background-color:#555}::-webkit-scrollbar-thumb{opacity:.8;background-color:#30a5ff}::-webkit-scrollbar-thumb:active{background-color:#30a5ff}.header{display:flex;align-items:center;z-index:100;position:relative;top:0;left:0;height:60px;background:#000;color:#fff;text-align:left}@media (max-height:800px),(max-width:1280px){.header{height:55px}}.header .apollo-logo{flex:0 0 auto;top:40px;left:40px;height:40px;width:121px;margin:10px auto 5px 18px}@media (max-height:800px),(max-width:1280px){.header .apollo-logo{top:15px;left:25px;height:25px;width:80px;margin-top:5px}}.header .header-item{flex:0 0 auto;position:relative;margin:5px;border:1px solid #383838}.header .selector select{display:block;border:none;padding:.5em 3em .5em .5em;background:#000;color:#fff;outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.header .selector .arrow{position:absolute;top:0;right:0;width:30px;height:100%;border-left:1px solid #383838;background:#181818;pointer-events:none}.header .selector .arrow:before{position:absolute;top:55%;right:7px;margin-top:-5px;border-top:8px solid #666;border-left:8px solid transparent;border-right:8px solid transparent;content:"";pointer-events:none}.header .header-button{min-width:125px;padding:.5em 0;background:#181818;color:#fff;text-align:center}@media (max-height:800px),(max-width:1280px){.header .header-button{min-width:110px}}.header .header-button-active{color:#30a5ff}.pane-container{position:absolute;width:100%;height:calc(100% - 60px)}@media (max-height:800px),(max-width:1280px){.pane-container{height:calc(100% - 55px)}}.pane-container .left-pane{display:flex;flex-flow:row nowrap;align-items:stretch;position:absolute;bottom:0;top:0;width:100%}.pane-container .left-pane .dreamview-body{display:flex;flex-flow:column nowrap;flex:1 1 auto;overflow:hidden}.pane-container .left-pane .dreamview-body .main-view{flex:0 0 auto;position:relative;min-width:600px}.pane-container .right-pane{position:absolute;right:0;width:100%;height:100%;overflow:hidden}.pane-container .right-pane ::-webkit-scrollbar{width:6px}.pane-container .right-pane .react-tabs__tab-list{display:table;width:100%;margin:0;border-bottom:1px solid #000;padding:0}.pane-container .right-pane .react-tabs__tab{display:table-cell;position:relative;border:1px solid transparent;border-bottom:none;padding:6px 12px;background:#1d2226;color:#999;list-style:none;cursor:pointer}.pane-container .right-pane .react-tabs__tab--selected{background:#2a3238;color:#fff}.pane-container .right-pane .react-tabs__tab span{color:#fff}.pane-container .right-pane .react-tabs__tab-panel{display:none}.pane-container .right-pane .react-tabs__tab-panel--selected{display:block}.pane-container .right-pane .pnc-monitor{height:100%;border:1px solid #000;box-sizing:border-box;background-color:#1d2226;overflow:auto}.pane-container .right-pane .pnc-monitor .scatter-graph{margin:0;border:1px #000;border-style:solid none}.pane-container .right-pane .pnc-monitor .scenario-history-container{padding:10px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400}.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-title{margin:5px;border-bottom:1px solid hsla(0,0%,60%,.5);padding-bottom:5px;font-size:12px;font-weight:600;text-align:center}.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-table,.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-table .scenario-history-item{position:relative;width:100%}.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-table .scenario-history-item .text{position:relative;width:30%;padding:2px 4px;color:#999;font-size:12px}.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-table .scenario-history-item .time{text-align:center}.pane-container .SplitPane .Resizer{background:#000;opacity:.2;z-index:1;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}.pane-container .SplitPane .Resizer:hover{-webkit-transition:all 2s ease;transition:all 2s ease}.pane-container .SplitPane .Resizer.vertical{width:11px;margin:0 -5px;border-left:5px solid hsla(0,0%,100%,0);border-right:5px solid hsla(0,0%,100%,0);cursor:col-resize}.pane-container .SplitPane .Resizer.vertical:hover{border-left:5px solid rgba(0,0,0,.5);border-right:5px solid rgba(0,0,0,.5)}.pane-container .SplitPane .Resizer.disabled{cursor:auto}.pane-container .SplitPane .Resizer.disabled:hover{border-color:transparent}.offlineview{display:flex;flex-flow:column nowrap;position:absolute;width:100%;height:100%}.offlineview .main-view{flex:0 0 auto;position:relative}.dreamview-canvas{z-index:1;position:absolute}.dreamview-canvas .geolocation{z-index:10;position:absolute;bottom:10px;right:10px;color:#fff}.hidden{display:none}.tools{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;margin-top:3px;overflow:hidden}.tools .card{flex:1 1 auto;border-right:3px solid #000;padding:15px 10px 25px 20px;background:#1d2226}@media (max-height:800px),(max-width:1280px){.tools .card{padding:15px 5px 15px 15px}}.tools .card .card-header{width:100%;padding-bottom:15px}.tools .card .card-header span{width:200px;border-bottom:1px solid #999;padding:10px 10px 10px 0;font-size:18px}@media (max-height:800px),(max-width:1280px){.tools .card .card-header span{font-size:16px}}.tools .card .card-content-row{display:flex;flex-flow:row wrap;align-content:flex-start;overflow-x:hidden;overflow-y:auto;height:85%}.tools .card .card-content-column{display:flex;flex-flow:column nowrap;overflow-x:hidden;overflow-y:auto;height:89%}.tools ul{flex:0 0 auto;margin:0 2px 0 0;padding-left:0;padding-right:5px;background-color:#1d2226;color:#999;list-style:none;cursor:pointer}.tools ul li{line-height:40px}.tools ul li span{padding-left:20px}.tools ul li:hover{color:#fff;background-color:#2a3238}.tools .switch{display:inline-block;position:relative;width:40px;transform:translate(35%,25%)}.tools .switch .toggle-switch{display:none}.tools .switch .toggle-switch-label{display:block;overflow:hidden;cursor:pointer;height:20px;padding:0;line-height:20px;border:0;background-color:#3f4548;transition:background-color .2s ease-in}.tools .switch .toggle-switch-label:before{content:"";display:block;width:16px;margin:2px;background:#a0a0a0;position:absolute;top:0;bottom:0;right:20px;transition:all .2s ease-in}.tools .switch .toggle-switch:checked+.toggle-switch-label{background-color:#0e3d62}.tools .switch .toggle-switch:checked+.toggle-switch-label,.tools .switch .toggle-switch:checked+.toggle-switch-label:before{border-color:#0e3d62}.tools .switch .toggle-switch:checked+.toggle-switch-label:before{right:0;background-color:#30a5ff}.tools .switch .toggle-switch:disabled+.toggle-switch-label,.tools .switch .toggle-switch:disabled+.toggle-switch-label:before{cursor:not-allowed}.tools .tool-view-menu{display:flex;flex-flow:row nowrap;align-items:stretch;flex:2 1 auto;z-index:10!important;margin-right:3px;overflow-y:hidden;overflow-x:auto;background:#1d2226;color:#fff;text-align:left;white-space:nowrap}.tools .tool-view-menu .summary{line-height:50px}@media (max-height:800px),(max-width:1280px){.tools .tool-view-menu .summary{line-height:25px}}.tools .tool-view-menu .summary img{position:relative;width:30px;height:30px;transform:translate(-30%,25%)}@media (max-height:800px),(max-width:1280px){.tools .tool-view-menu .summary img{width:20px;height:20px;transform:translate(-50%,10%)}}.tools .tool-view-menu .summary span{padding-left:10px}.tools .tool-view-menu input[type=radio]{display:none}.tools .tool-view-menu .radio-selector-label{display:inline-block;position:relative;transform:translate(65%,30%);box-sizing:border-box;-webkit-box-sizing:border-box;width:25px;height:25px;margin-right:6px;border-radius:50%;-webkit-border-radius:50%;background-color:#a0a0a0;box-shadow:inset 1px 0 #a0a0a0;border:7px solid #3f4548}.tools .tool-view-menu input[type=radio]:checked+.radio-selector-label{border:7px solid #0e3d62;background-color:#30a5ff}.tools .console{z-index:10;position:relative;min-width:230px;margin:0;border:none;padding:0;overflow:hidden}.tools .console .monitor-item{display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default}.tools .console .monitor-item .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px),(max-width:1280px){.tools .console .monitor-item .icon{height:15px;width:15px}}.tools .console .monitor-item .text{position:relative;width:calc(100% - 80px);padding-left:5px;line-height:150%;font-size:12px;word-wrap:break-word}.tools .console .monitor-item .time{position:absolute;right:5px;font-size:12px}.tools .console .monitor-item .alert{color:#d7466f}.tools .console .monitor-item .warn{color:#a3842d}.tools .poi-button{min-width:310px}@media (max-height:800px),(max-width:1280px){.tools .poi-button{min-width:280px}}.side-bar{display:flex;flex-direction:column;flex:0 0 auto;z-index:100;background:#1d2226;border-right:3px solid #000;overflow-y:auto;overflow-x:hidden}.side-bar .main-panel{margin-bottom:auto}.side-bar .button{display:block;width:90px;border:none;padding:20px 10px;text-align:center;background:#1d2226;color:#fff;opacity:.6;cursor:pointer}@media (max-height:800px),(max-width:1280px){.side-bar .button{width:80px;padding-top:10px}}.side-bar .button .icon{width:40px;height:40px;margin:auto}@media (max-height:800px),(max-width:1280px){.side-bar .button .icon{width:30px;height:30px}}.side-bar .button .label{padding-top:10px}@media (max-height:800px),(max-width:1280px){.side-bar .button .label{padding-top:4px}}.side-bar .button:first-child{padding-top:25px}@media (max-height:800px),(max-width:1280px){.side-bar .button:first-child{padding-top:10px}}.side-bar .button:disabled{color:#414141;cursor:not-allowed}.side-bar .button:disabled .icon{opacity:.2}.side-bar .button-active{background:#2a3238;opacity:1;color:#fff}.side-bar .sub-button{display:block;width:90px;height:80px;border:none;padding:10px;text-align:center;background:#3e4041;color:#999;cursor:pointer}@media (max-height:800px),(max-width:1280px){.side-bar .sub-button{width:80px;height:60px}}.side-bar .sub-button:not(:last-child){border-bottom:1px solid #1d2226}.side-bar .sub-button:disabled{cursor:not-allowed;opacity:.3}.side-bar .sub-button-active{background:#30a5ff;color:#fff}.status-bar{z-index:10;position:absolute;top:0;left:0;width:100%}.status-bar .auto-meter{position:absolute;width:224px;height:112px;top:10px;right:20px;background:rgba(0,0,0,.8)}.status-bar .auto-meter .speed-read{position:absolute;top:27px;left:15px;font-family:Arial;font-weight:lighter;font-size:35px;color:#fff}.status-bar .auto-meter .speed-unit{position:absolute;top:66px;left:17px;color:#fff;font-size:15px}.status-bar .auto-meter .brake-panel{position:absolute;top:21px;right:2px}.status-bar .auto-meter .throttle-panel{position:absolute;top:61px;right:2px}.status-bar .auto-meter .meter-container .meter-label{font-size:13px;color:#fff}.status-bar .auto-meter .meter-container .meter-head{display:inline-block;position:absolute;margin:5px 0 0;border-width:4px;border-style:solid}.status-bar .auto-meter .meter-container .meter-background{position:relative;display:block;height:2px;width:120px;margin:8px}.status-bar .auto-meter .meter-container .meter-background span{position:relative;overflow:hidden;display:block;height:100%}.status-bar .wheel-panel{display:flex;flex-direction:row;justify-content:left;align-items:center;position:absolute;top:128px;right:20px;width:187px;height:92px;padding:10px 22px 10px 15px;background:rgba(0,0,0,.8)}.status-bar .wheel-panel .steerangle-read{font-family:Arial;font-weight:lighter;font-size:35px;color:#fff}.status-bar .wheel-panel .steerangle-unit{padding:20px 10px 0 3px;color:#fff;font-size:13px}.status-bar .wheel-panel .left-arrow{position:absolute;top:45px;right:115px;width:0;height:0;border-style:solid;border-width:12px 15px 12px 0;border-color:transparent}.status-bar .wheel-panel .right-arrow{position:absolute;top:45px;right:15px;width:0;height:0;border-style:solid;border-width:12px 0 12px 15px;border-color:transparent transparent transparent #30435e}.status-bar .wheel-panel .wheel{position:absolute;top:15px;right:33px}.status-bar .wheel-panel .wheel-background{stroke-width:3px;stroke:#006aff}.status-bar .wheel-panel .wheel-arm{stroke-width:3px;stroke:#006aff;fill:#006aff}.status-bar .traffic-light-and-driving-mode{position:absolute;top:246px;right:20px;width:224px;height:35px;font-size:14px}.status-bar .traffic-light-and-driving-mode .traffic-light{position:absolute;width:116px;height:35px;background:rgba(0,0,0,.8)}.status-bar .traffic-light-and-driving-mode .traffic-light .symbol{position:relative;top:4px;left:4px;width:28px;height:28px}.status-bar .traffic-light-and-driving-mode .traffic-light .text{position:absolute;top:10px;right:8px;font-size:14px;color:#fff}.status-bar .traffic-light-and-driving-mode .driving-mode{position:absolute;top:0;right:0;width:105px;height:35px}.status-bar .traffic-light-and-driving-mode .driving-mode .text{position:absolute;top:50%;left:50%;float:right;transform:translate(-50%,-50%);text-align:center;font-size:14px}.status-bar .traffic-light-and-driving-mode .auto-mode{background:linear-gradient(90deg,rgba(17,30,48,.8),rgba(7,42,94,.8));border-right:1px solid #006aff;color:#006aff}.status-bar .traffic-light-and-driving-mode .manual-mode{background:linear-gradient(90deg,rgba(30,17,17,.8),rgba(71,36,36,.8));color:#b43131;border-right:1px solid #b43131}.status-bar .notification-warn{position:absolute;top:10px;right:260px;width:260px;display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default;border:1px solid #a3842d;background-color:rgba(52,39,5,.3)}.status-bar .notification-warn .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px),(max-width:1280px){.status-bar .notification-warn .icon{height:15px;width:15px}}.status-bar .notification-warn .text{position:relative;width:calc(100% - 17px);padding-left:5px;line-height:150%;font-size:12px;word-wrap:break-word}.status-bar .notification-warn .time{position:absolute;right:5px;font-size:12px}.status-bar .notification-warn .alert{color:#d7466f}.status-bar .notification-warn .warn{color:#a3842d}.status-bar .notification-alert{position:absolute;top:10px;right:260px;width:260px;display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default;border:1px solid #d7466f;background-color:rgba(74,5,24,.3)}.status-bar .notification-alert .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px),(max-width:1280px){.status-bar .notification-alert .icon{height:15px;width:15px}}.status-bar .notification-alert .text{position:relative;width:calc(100% - 17px);padding-left:5px;line-height:150%;font-size:12px;word-wrap:break-word}.status-bar .notification-alert .time{position:absolute;right:5px;font-size:12px}.status-bar .notification-alert .alert{color:#d7466f}.status-bar .notification-alert .warn{color:#a3842d}.tasks{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;z-index:10;margin-right:3px;overflow-x:auto;overflow-y:hidden}.tasks .command-group{display:flex;flex-flow:row nowrap;justify-content:flex-start;flex:1 1 0;min-height:45px;min-width:130px}.tasks .command-group .name{width:40px;padding:15px}.tasks .start-auto-command{flex:2 2 0}.tasks .start-auto-command .start-auto-button{max-height:unset}.tasks .others{min-width:200px;max-width:280px}@media (max-height:800px),(max-width:1280px){.tasks .others{min-width:180px;max-width:260px}}.tasks .delay{min-width:265px;line-height:26px}.tasks .delay .delay-item{position:relative;margin:0 10px}.tasks .delay .delay-item .name{display:inline-block;min-width:140px;color:#1c9063}.tasks .delay .delay-item .value{display:inline-block;position:absolute;right:0;min-width:70px;text-align:right}.tasks .delay .delay-item .warning{color:#b43131}.tasks .camera{min-width:265px}.tasks button{flex:1 1 0;margin:5px;border:0;min-width:75px;min-height:40px;max-height:60px;color:#999;border-bottom:2px solid #1c9063;background:linear-gradient(#000,#111f1d);outline:none;cursor:pointer}.tasks button:hover{color:#fff;background:#151e1b}.tasks button:active{background:rgba(35,51,45,.6)}.tasks button:disabled{color:#999;border-color:#555;background:linear-gradient(rgba(0,0,0,.8),rgba(9,17,16,.8));cursor:not-allowed}.tasks .disabled{cursor:not-allowed}.module-controller{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;z-index:10;margin-right:3px;overflow:hidden}.module-controller .controller{min-width:180px}.module-controller .modules-container{flex-flow:column wrap}.module-controller .status-display{display:flex;flex-wrap:nowrap;justify-content:space-around;min-width:250px;padding:5px 20px 5px 5px}.module-controller .status-display:hover{background:#2a3238}.module-controller .status-display .name{padding:10px;min-width:80px}.module-controller .status-display .status{position:relative;width:130px;padding:10px;background:#000;white-space:nowrap}.module-controller .status-display .status .status-icon{position:absolute;right:10px;width:15px;height:15px;background-color:#b43131}.route-editing-bar{z-index:10;position:absolute;top:0;left:0;right:0;min-height:90px;border-bottom:3px solid #000;padding-left:10px;background:#1d2226}@media (max-height:800px),(max-width:1280px){.route-editing-bar{min-height:60px}}.route-editing-bar .editing-panel{display:flex;justify-content:center;align-items:center;overflow:hidden;white-space:nowrap}.route-editing-bar .editing-panel .button{height:90px;border:none;padding:10px 15px;background:#1d2226;outline:none;color:#999}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .button{height:60px;padding:5px 10px}}.route-editing-bar .editing-panel .button img{display:block;top:23px;margin:15px auto}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .button img{top:13px;margin:7px auto}}.route-editing-bar .editing-panel .button span{font-family:PingFangSC-Light;color:#d8d8d8;text-align:center}.route-editing-bar .editing-panel .button:hover{background:#2a3238}.route-editing-bar .editing-panel .active{color:#fff;background:#2a3238}.route-editing-bar .editing-panel .editing-tip{height:90px;width:90px;margin-left:auto;border:none;color:#d8d8d8}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .editing-tip{height:60px;width:60px}}.route-editing-bar .editing-panel .editing-tip p{position:absolute;top:120%;right:15px;width:400px;border-radius:3px;padding:20px;background-color:#fff;color:#999;text-align:left;white-space:pre-wrap}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .editing-tip p{right:5px}}.route-editing-bar .editing-panel .editing-tip p:before{position:absolute;top:-20px;right:13px;content:"";border-style:solid;border-width:0 20px 20px;border-color:transparent transparent #fff}@-moz-document url-prefix(){.route-editing-bar .editing-panel .editing-tip p:before{top:-38px}}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .editing-tip p:before{right:8px}}.data-recorder table{width:100%;height:100%;min-width:550px}.data-recorder table td,.data-recorder table tr{border:2px solid #1d2226}.data-recorder table td:first-child{width:100px;border:none;box-sizing:border-box;white-space:nowrap}@media (max-height:800px),(max-width:1280px){.data-recorder table td:first-child{width:60px}}.data-recorder table .drive-event-time-row span{position:relative;padding:10px 5px 10px 10px;background:#101315;white-space:nowrap}.data-recorder table .drive-event-time-row span .timestamp-button{position:relative;top:0;right:0;padding:5px 20px;border:5px solid #101315;margin-left:10px;background:#006aff;color:#fff}.data-recorder table .drive-event-time-row span .timestamp-button:hover{background:#49a9ee}.data-recorder table .drive-event-msg-row{width:70%;height:70%}.data-recorder table .drive-event-msg-row textarea{height:100%;width:100%;max-width:500px;color:#fff;border:1px solid #383838;background:#101315;resize:none}.data-recorder table .cancel-button,.data-recorder table .drive-event-type-button,.data-recorder table .submit-button,.data-recorder table .submit-button:active{margin-right:5px;padding:10px 35px;border:none;background:#1d2226;color:#fff;cursor:pointer}.data-recorder table .drive-event-type-button{background:#181818;padding:10px 25px}.data-recorder table .drive-event-type-button-active{color:#30a5ff}.data-recorder table .submit-button{background:#000}.data-recorder table .submit-button:active{background:#383838}.loader{flex:0 0 auto;position:relative;width:100%;height:100%;background-color:#000c17}.loader .img-container{position:relative;top:55%;left:50%;width:40%;transform:translate(-50%,-50%)}.loader .img-container img{width:100%;height:auto}.loader .img-container .status-message{margin-top:10px;font-size:18px;font-size:1.7vw;color:#fff;text-align:center;animation-name:flash;animation-duration:2s;animation-timing-function:linear;animation-iteration-count:infinite;animation-direction:alternate;animation-play-state:running}@keyframes flash{0%{color:#fff}to{color:#000c17}}.loader .offline-loader{width:60%;max-width:650px}.loader .offline-loader .status-message{position:relative;top:-70px;top:-4.5vw;font-size:3vw}.loader .offline-loader .error-message{position:relative;top:-2vw;font-size:1.5vw;color:#b43131;white-space:nowrap;text-align:center}.camera-video{text-align:center}.camera-video img{width:auto;height:auto;max-width:100%;max-height:100%}.dashcam-player{z-index:1;position:absolute;top:0;left:0;color:#fff}.dashcam-player video{max-width:380px;max-height:300px}@media (max-height:800px),(max-width:1280px){.dashcam-player video{max-width:300px;max-height:200px}}.dashcam-player .controls{display:flex;justify-content:flex-end;z-index:10;position:absolute;right:0}.dashcam-player .controls button{width:27px;height:27px;border:none;background-color:#000;opacity:.6;color:#fff}.dashcam-player .controls button img{width:15px}.dashcam-player .controls button:hover{opacity:.9}.dashcam-player .controls .close{font-size:20px}.dashcam-player .controls .syncup{padding-top:.5em}.navigation-view{z-index:20;position:relative}.navigation-view #map_canvas{width:100%;height:100%;background:rgba(0,0,0,.8)}.navigation-view .window-resize-control{position:absolute;bottom:0;right:0;width:30px;height:30px}',""])},function(e,t,n){t=e.exports=n(123)(!1),t.push([e.i,'.playback-controls{z-index:100;position:absolute;width:100%;height:40px;bottom:0;background:#1d2226;font-size:16px;min-width:550px}@media (max-height:800px),(max-width:1280px){.playback-controls{font-size:14px}}.playback-controls .icon{display:inline-block;width:20px;height:20px;padding:10px;cursor:pointer}.playback-controls .icon .play{stroke-linejoin:round;stroke-width:1.5px;stroke:#006aff;fill:#1d2226}.playback-controls .icon .pause,.playback-controls .icon .replay{stroke-linejoin:round;stroke-width:1.5px;stroke:#006aff;fill:#006aff}.playback-controls .icon .replay{top:2px}.playback-controls .icon .exit-fullscreen,.playback-controls .icon .fullscreen{stroke-linejoin:round;stroke-width:10px;stroke:#006aff;fill:#1d2226}.playback-controls .left-controls{display:inline-block;float:left}.playback-controls .right-controls{display:inline-block;float:right}.playback-controls .rate-selector{position:absolute;left:40px}.playback-controls .rate-selector select{display:block;border:none;padding:11px 23px 0 5px;color:#fff;background:#1d2226;outline:none;cursor:pointer;font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.playback-controls .rate-selector .arrow{position:absolute;top:5px;right:0;width:10px;height:100%;pointer-events:none}.playback-controls .rate-selector .arrow:before{position:absolute;top:16px;right:1px;margin-top:-5px;border-top:8px solid #666;border-left:8px solid transparent;border-right:8px solid transparent;content:"";pointer-events:none}.playback-controls .time-controls{position:absolute;min-width:300px;height:100%;left:125px;right:50px}.playback-controls .time-controls .rangeslider{position:absolute;top:7px;left:10px;right:115px;margin:10px 0;height:7px;border-radius:10px;background:#2d3b50;-ms-touch-action:none;touch-action:none}.playback-controls .time-controls .rangeslider .rangeslider__fill{display:block;height:100%;border-radius:10px;background-color:#006aff;background:#006aff}.playback-controls .time-controls .rangeslider .rangeslider__handle{display:inline-block;position:absolute;height:16px;width:16px;top:50%;transform:translate3d(-50%,-50%,0);border:1px solid #006aff;border-radius:100%;background:#006aff;cursor:pointer;box-shadow:none}.playback-controls .time-controls .time-display{position:absolute;top:12px;right:0;color:#fff}',""])},function(e,t){e.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},function(e,t,n){"use strict";var i=t;i.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var r=new Array(64),o=new Array(123),a=0;a<64;)o[r[a]=a<26?a+65:a<52?a+71:a<62?a-4:a-59|43]=a++;i.encode=function(e,t,n){for(var i,o=null,a=[],s=0,l=0;t>2],i=(3&u)<<4,l=1;break;case 1:a[s++]=r[i|u>>4],i=(15&u)<<2,l=2;break;case 2:a[s++]=r[i|u>>6],a[s++]=r[63&u],l=0}s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,a)),s=0)}return l&&(a[s++]=r[i],a[s++]=61,1===l&&(a[s++]=61)),o?(s&&o.push(String.fromCharCode.apply(String,a.slice(0,s))),o.join("")):String.fromCharCode.apply(String,a.slice(0,s))};i.decode=function(e,t,n){for(var i,r=n,a=0,s=0;s1)break;if(void 0===(l=o[l]))throw Error("invalid encoding");switch(a){case 0:i=l,a=1;break;case 1:t[n++]=i<<2|(48&l)>>4,i=l,a=2;break;case 2:t[n++]=(15&i)<<4|(60&l)>>2,i=l,a=3;break;case 3:t[n++]=(3&i)<<6|l,a=0}}if(1===a)throw Error("invalid encoding");return n-r},i.test=function(e){return/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e)}},function(e,t,n){"use strict";function i(e,t){function n(e){if("string"!=typeof e){var t=r();if(i.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var a=Object.keys(e),s=new Array(a.length+1),l=new Array(a.length),u=0;u0?0:2147483648,n,i);else if(isNaN(t))e(2143289344,n,i);else if(t>3.4028234663852886e38)e((r<<31|2139095040)>>>0,n,i);else if(t<1.1754943508222875e-38)e((r<<31|Math.round(t/1.401298464324817e-45))>>>0,n,i);else{var o=Math.floor(Math.log(t)/Math.LN2),a=8388607&Math.round(t*Math.pow(2,-o)*8388608);e((r<<31|o+127<<23|a)>>>0,n,i)}}function n(e,t,n){var i=e(t,n),r=2*(i>>31)+1,o=i>>>23&255,a=8388607&i;return 255===o?a?NaN:r*(1/0):0===o?1.401298464324817e-45*r*a:r*Math.pow(2,o-150)*(a+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,o),e.readFloatLE=n.bind(null,a),e.readFloatBE=n.bind(null,s)}(),"undefined"!=typeof Float64Array?function(){function t(e,t,n){o[0]=e,t[n]=a[0],t[n+1]=a[1],t[n+2]=a[2],t[n+3]=a[3],t[n+4]=a[4],t[n+5]=a[5],t[n+6]=a[6],t[n+7]=a[7]}function n(e,t,n){o[0]=e,t[n]=a[7],t[n+1]=a[6],t[n+2]=a[5],t[n+3]=a[4],t[n+4]=a[3],t[n+5]=a[2],t[n+6]=a[1],t[n+7]=a[0]}function i(e,t){return a[0]=e[t],a[1]=e[t+1],a[2]=e[t+2],a[3]=e[t+3],a[4]=e[t+4],a[5]=e[t+5],a[6]=e[t+6],a[7]=e[t+7],o[0]}function r(e,t){return a[7]=e[t],a[6]=e[t+1],a[5]=e[t+2],a[4]=e[t+3],a[3]=e[t+4],a[2]=e[t+5],a[1]=e[t+6],a[0]=e[t+7],o[0]}var o=new Float64Array([-0]),a=new Uint8Array(o.buffer),s=128===a[7];e.writeDoubleLE=s?t:n,e.writeDoubleBE=s?n:t,e.readDoubleLE=s?i:r,e.readDoubleBE=s?r:i}():function(){function t(e,t,n,i,r,o){var a=i<0?1:0;if(a&&(i=-i),0===i)e(0,r,o+t),e(1/i>0?0:2147483648,r,o+n);else if(isNaN(i))e(0,r,o+t),e(2146959360,r,o+n);else if(i>1.7976931348623157e308)e(0,r,o+t),e((a<<31|2146435072)>>>0,r,o+n);else{var s;if(i<2.2250738585072014e-308)s=i/5e-324,e(s>>>0,r,o+t),e((a<<31|s/4294967296)>>>0,r,o+n);else{var l=Math.floor(Math.log(i)/Math.LN2);1024===l&&(l=1023),s=i*Math.pow(2,-l),e(4503599627370496*s>>>0,r,o+t),e((a<<31|l+1023<<20|1048576*s&1048575)>>>0,r,o+n)}}}function n(e,t,n,i,r){var o=e(i,r+t),a=e(i,r+n),s=2*(a>>31)+1,l=a>>>20&2047,u=4294967296*(1048575&a)+o;return 2047===l?u?NaN:s*(1/0):0===l?5e-324*s*u:s*Math.pow(2,l-1075)*(u+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,o,4,0),e.readDoubleLE=n.bind(null,a,0,4),e.readDoubleBE=n.bind(null,s,4,0)}(),e}function r(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function o(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function a(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function s(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=i(i)},function(e,t,n){"use strict";var i=t,r=i.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=i.normalize=function(e){e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var t=e.split("/"),n=r(e),i="";n&&(i=t.shift()+"/");for(var o=0;o0&&".."!==t[o-1]?t.splice(--o,2):n?t.splice(o,1):++o:"."===t[o]?t.splice(o,1):++o;return i+t.join("/")};i.resolve=function(e,t,n){return n||(t=o(t)),r(t)?t:(n||(e=o(e)),(e=e.replace(/(?:\/|^)[^\/]+$/,"")).length?o(e+"/"+t):t)}},function(e,t,n){"use strict";function i(e,t,n){var i=n||8192,r=i>>>1,o=null,a=i;return function(n){if(n<1||n>r)return e(n);a+n>i&&(o=e(i),a=0);var s=t.call(o,a,a+=n);return 7&a&&(a=1+(7|a)),s}}e.exports=i},function(e,t,n){"use strict";var i=t;i.length=function(e){for(var t=0,n=0,i=0;i191&&i<224?o[a++]=(31&i)<<6|63&e[t++]:i>239&&i<365?(i=((7&i)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[a++]=55296+(i>>10),o[a++]=56320+(1023&i)):o[a++]=(15&i)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,o)),a=0);return r?(a&&r.push(String.fromCharCode.apply(String,o.slice(0,a))),r.join("")):String.fromCharCode.apply(String,o.slice(0,a))},i.write=function(e,t,n){for(var i,r,o=n,a=0;a>6|192,t[n++]=63&i|128):55296==(64512&i)&&56320==(64512&(r=e.charCodeAt(a+1)))?(i=65536+((1023&i)<<10)+(1023&r),++a,t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128);return n-o}},function(e,t,n){e.exports={default:n(370),__esModule:!0}},function(e,t,n){e.exports={default:n(372),__esModule:!0}},function(e,t,n){e.exports={default:n(374),__esModule:!0}},function(e,t,n){e.exports={default:n(379),__esModule:!0}},function(e,t,n){e.exports={default:n(380),__esModule:!0}},function(e,t,n){e.exports={default:n(381),__esModule:!0}},function(e,t,n){e.exports={default:n(383),__esModule:!0}},function(e,t,n){e.exports={default:n(384),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(79),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r.default||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}},function(e,t,n){"use strict";function i(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 r(e){var t=i(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function o(e,t,n){return 3*(t+n)/4-n}function a(e){for(var t,n=i(e),r=n[0],a=n[1],s=new h(o(e,r,a)),l=0,u=a>0?r-4:r,c=0;c>16&255,s[l++]=t>>8&255,s[l++]=255&t;return 2===a&&(t=d[e.charCodeAt(c)]<<2|d[e.charCodeAt(c+1)]>>4,s[l++]=255&t),1===a&&(t=d[e.charCodeAt(c)]<<10|d[e.charCodeAt(c+1)]<<4|d[e.charCodeAt(c+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t),s}function s(e){return c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}function l(e,t,n){for(var i,r=[],o=t;oa?a:o+16383));return 1===i?(t=e[n-1],r.push(c[t>>2]+c[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],r.push(c[t>>10]+c[t>>4&63]+c[t<<2&63]+"=")),r.join("")}t.byteLength=r,t.toByteArray=a,t.fromByteArray=u;for(var c=[],d=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,m=f.length;p=P-n){if(!(-1!==k&&k<=n))return void(O||(O=!0,a(I)));e=!0}if(k=-1,n=E,E=null,null!==n){C=!0;try{n(e)}finally{C=!1}}}},!1);var I=function(e){O=!1;var t=e-P+R;tt&&(t=8),R=tn){r=o;break}o=o.next}while(o!==u);null===r?r=u:r===u&&(u=e,i(u)),n=r.previous,n.next=r.previous=e,e.next=r,e.previous=n}return e},t.unstable_cancelScheduledWork=function(e){var t=e.next;if(null!==t){if(t===e)u=null;else{e===u&&(u=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}}},function(e,t,n){"use strict";e.exports=n(593)},function(e,t,n){(function(e,t){!function(e,n){"use strict";function i(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;na+1e3&&(l.update(1e3*s/(e-a),100),a=e,s=0,c)){var t=performance.memory;c.update(t.usedJSHeapSize/1048576,t.jsHeapSizeLimit/1048576)}return e},update:function(){o=this.end()},domElement:r,setMode:n}};return e.Panel=function(e,t,n){var i=1/0,r=0,o=Math.round,a=o(window.devicePixelRatio||1),s=80*a,l=48*a,u=3*a,c=2*a,d=3*a,h=15*a,f=74*a,p=30*a,m=document.createElement("canvas");m.width=s,m.height=l,m.style.cssText="width:80px;height:48px";var g=m.getContext("2d");return g.font="bold "+9*a+"px Helvetica,Arial,sans-serif",g.textBaseline="top",g.fillStyle=n,g.fillRect(0,0,s,l),g.fillStyle=t,g.fillText(e,u,c),g.fillRect(d,h,f,p),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(d,h,f,p),{dom:m,update:function(l,v){i=Math.min(i,l),r=Math.max(r,l),g.fillStyle=n,g.globalAlpha=1,g.fillRect(0,0,s,h),g.fillStyle=t,g.fillText(o(l)+" "+e+" ("+o(i)+"-"+o(r)+")",u,c),g.drawImage(m,d+a,h,f-a,p,d,h,f-a,p),g.fillRect(d+f-a,h,a,p),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(d+f-a,h,a,o((1-l/v)*p))}}},e})},function(e,t,n){function i(){r.call(this)}e.exports=i;var r=n(86).EventEmitter;n(26)(i,r),i.Readable=n(138),i.Writable=n(586),i.Duplex=n(581),i.Transform=n(585),i.PassThrough=n(584),i.Stream=i,i.prototype.pipe=function(e,t){function n(t){e.writable&&!1===e.write(t)&&u.pause&&u.pause()}function i(){u.readable&&u.resume&&u.resume()}function o(){c||(c=!0,e.end())}function a(){c||(c=!0,"function"==typeof e.destroy&&e.destroy())}function s(e){if(l(),0===r.listenerCount(this,"error"))throw e}function l(){u.removeListener("data",n),e.removeListener("drain",i),u.removeListener("end",o),u.removeListener("close",a),u.removeListener("error",s),e.removeListener("error",s),u.removeListener("end",l),u.removeListener("close",l),e.removeListener("close",l)}var u=this;u.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(u.on("end",o),u.on("close",a));var c=!1;return u.on("error",s),e.on("error",s),u.on("end",l),u.on("close",l),e.on("close",l),e.emit("pipe",u),e}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,i=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var r=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(r))return e;var o;return o=0===r.indexOf("//")?r:0===r.indexOf("/")?n+r:i+r.replace(/^\.\//,""),"url("+JSON.stringify(o)+")"})}},function(e,t,n){var i=n(26),r=n(489);e.exports=function(e){function t(n,i){if(!(this instanceof t))return new t(n,i);e.BufferGeometry.call(this),Array.isArray(n)?i=i||{}:"object"==typeof n&&(i=n,n=[]),i=i||{},this.addAttribute("position",new e.BufferAttribute(void 0,3)),this.addAttribute("lineNormal",new e.BufferAttribute(void 0,2)),this.addAttribute("lineMiter",new e.BufferAttribute(void 0,1)),i.distances&&this.addAttribute("lineDistance",new e.BufferAttribute(void 0,1)),"function"==typeof this.setIndex?this.setIndex(new e.BufferAttribute(void 0,1)):this.addAttribute("index",new e.BufferAttribute(void 0,1)),this.update(n,i.closed)}return i(t,e.BufferGeometry),t.prototype.update=function(e,t){e=e||[];var n=r(e,t);t&&(e=e.slice(),e.push(e[0]),n.push(n[0]));var i=this.getAttribute("position"),o=this.getAttribute("lineNormal"),a=this.getAttribute("lineMiter"),s=this.getAttribute("lineDistance"),l="function"==typeof this.getIndex?this.getIndex():this.getAttribute("index"),u=Math.max(0,6*(e.length-1));if(!i.array||e.length!==i.array.length/3/2){var c=2*e.length;i.array=new Float32Array(3*c),o.array=new Float32Array(2*c),a.array=new Float32Array(c),l.array=new Uint16Array(u),s&&(s.array=new Float32Array(c))}void 0!==i.count&&(i.count=c),i.needsUpdate=!0,void 0!==o.count&&(o.count=c),o.needsUpdate=!0,void 0!==a.count&&(a.count=c),a.needsUpdate=!0,void 0!==l.count&&(l.count=u),l.needsUpdate=!0,s&&(void 0!==s.count&&(s.count=c),s.needsUpdate=!0);var d=0,h=0,f=0,p=l.array;e.forEach(function(e,t,n){var r=d;if(p[h++]=r+0,p[h++]=r+1,p[h++]=r+2,p[h++]=r+2,p[h++]=r+1,p[h++]=r+3,i.setXYZ(d++,e[0],e[1],0),i.setXYZ(d++,e[0],e[1],0),s){var o=t/(n.length-1);s.setX(f++,o),s.setX(f++,o)}});var m=0,g=0;n.forEach(function(e){var t=e[0],n=e[1];o.setXY(m++,t[0],t[1]),o.setXY(m++,t[0],t[1]),a.setX(g++,-n),a.setX(g++,n)})},t}},function(e,t,n){var i=n(126);e.exports=function(e){return function(t){t=t||{};var n="number"==typeof t.thickness?t.thickness:.1,r="number"==typeof t.opacity?t.opacity:1,o=null!==t.diffuse?t.diffuse:16777215;delete t.thickness,delete t.opacity,delete t.diffuse,delete t.precision;var a=i({uniforms:{thickness:{type:"f",value:n},opacity:{type:"f",value:r},diffuse:{type:"c",value:new e.Color(o)}},vertexShader:["uniform float thickness;","attribute float lineMiter;","attribute vec2 lineNormal;","void main() {","vec3 pointPos = position.xyz + vec3(lineNormal * thickness / 2.0 * lineMiter, 0.0);","gl_Position = projectionMatrix * modelViewMatrix * vec4(pointPos, 1.0);","}"].join("\n"),fragmentShader:["uniform vec3 diffuse;","uniform float opacity;","void main() {","gl_FragColor = vec4(diffuse, opacity);","}"].join("\n")},t);return(0|(parseInt(e.REVISION,10)||0))<72&&(a.attributes={lineMiter:{type:"f",value:0},lineNormal:{type:"v2",value:new e.Vector2}}),a}}},function(e,t,n){(function(e){function i(e,t){this._id=e,this._clearFn=t}var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(595),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,n(28))},function(e,t,n){(function(t){function n(e,t){function n(){if(!r){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}if(i("noDeprecation"))return e;var r=!1;return n}function i(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=n}).call(t,n(28))},function(e,t,n){"use strict";function i(e){return!0===e||!1===e}e.exports=i},function(e,t,n){"use strict";function i(e){return"function"==typeof e}e.exports=i},function(e,t,n){"use strict";function i(e){var t,n;if(!r(e))return!1;if(!(t=e.length))return!1;for(var i=0;i=this.text.length)return;e=this.text[this.place++]}switch(this.state){case o:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},i.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(u.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},i.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=o)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=o,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},i.prototype.number=function(e){if(c.test(e))return void(this.word+=e);if(u.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)},i.prototype.quoted=function(e){if('"'===e)return void(this.state=5);this.word+=e},i.prototype.keyword=function(e){if(l.test(e))return void(this.word+=e);if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=o)}if(u.test(e))return void this.afterItem(e);throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place)},i.prototype.neutral=function(e){if(s.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(c.test(e))return this.word=e,void(this.state=3);if(u.test(e))return void this.afterItem(e);throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place)},i.prototype.output=function(){for(;this.place0?s(r()):ee.y<0&&l(r()),Q.copy($),I.update()}function p(e){Z.set(e.clientX,e.clientY),J.subVectors(Z,K),ie(J.x,J.y),K.copy(Z),I.update()}function m(e){}function g(e){e.deltaY<0?l(r()):e.deltaY>0&&s(r()),I.update()}function v(e){switch(e.keyCode){case I.keys.UP:ie(0,I.keyPanSpeed),I.update();break;case I.keys.BOTTOM:ie(0,-I.keyPanSpeed),I.update();break;case I.keys.LEFT:ie(I.keyPanSpeed,0),I.update();break;case I.keys.RIGHT:ie(-I.keyPanSpeed,0),I.update()}}function y(e){q.set(e.touches[0].pageX,e.touches[0].pageY)}function b(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);Q.set(0,i)}function _(e){K.set(e.touches[0].pageX,e.touches[0].pageY)}function x(e){Y.set(e.touches[0].pageX,e.touches[0].pageY),X.subVectors(Y,q);var t=I.domElement===document?I.domElement.body:I.domElement;o(2*Math.PI*X.x/t.clientWidth*I.rotateSpeed),a(2*Math.PI*X.y/t.clientHeight*I.rotateSpeed),q.copy(Y),I.update()}function w(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);$.set(0,i),ee.subVectors($,Q),ee.y>0?l(r()):ee.y<0&&s(r()),Q.copy($),I.update()}function M(e){Z.set(e.touches[0].pageX,e.touches[0].pageY),J.subVectors(Z,K),ie(J.x,J.y),K.copy(Z),I.update()}function S(e){}function E(e){if(!1!==I.enabled){if(e.preventDefault(),e.button===I.mouseButtons.ORBIT){if(!1===I.enableRotate)return;u(e),F=z.ROTATE}else if(e.button===I.mouseButtons.ZOOM){if(!1===I.enableZoom)return;c(e),F=z.DOLLY}else if(e.button===I.mouseButtons.PAN){if(!1===I.enablePan)return;d(e),F=z.PAN}F!==z.NONE&&(document.addEventListener("mousemove",T,!1),document.addEventListener("mouseup",k,!1),I.dispatchEvent(N))}}function T(e){if(!1!==I.enabled)if(e.preventDefault(),F===z.ROTATE){if(!1===I.enableRotate)return;h(e)}else if(F===z.DOLLY){if(!1===I.enableZoom)return;f(e)}else if(F===z.PAN){if(!1===I.enablePan)return;p(e)}}function k(e){!1!==I.enabled&&(m(e),document.removeEventListener("mousemove",T,!1),document.removeEventListener("mouseup",k,!1),I.dispatchEvent(B),F=z.NONE)}function O(e){!1===I.enabled||!1===I.enableZoom||F!==z.NONE&&F!==z.ROTATE||(e.preventDefault(),e.stopPropagation(),g(e),I.dispatchEvent(N),I.dispatchEvent(B))}function C(e){!1!==I.enabled&&!1!==I.enableKeys&&!1!==I.enablePan&&v(e)}function P(e){if(!1!==I.enabled){switch(e.touches.length){case 1:if(!1===I.enableRotate)return;y(e),F=z.TOUCH_ROTATE;break;case 2:if(!1===I.enableZoom)return;b(e),F=z.TOUCH_DOLLY;break;case 3:if(!1===I.enablePan)return;_(e),F=z.TOUCH_PAN;break;default:F=z.NONE}F!==z.NONE&&I.dispatchEvent(N)}}function A(e){if(!1!==I.enabled)switch(e.preventDefault(),e.stopPropagation(),e.touches.length){case 1:if(!1===I.enableRotate)return;if(F!==z.TOUCH_ROTATE)return;x(e);break;case 2:if(!1===I.enableZoom)return;if(F!==z.TOUCH_DOLLY)return;w(e);break;case 3:if(!1===I.enablePan)return;if(F!==z.TOUCH_PAN)return;M(e);break;default:F=z.NONE}}function R(e){!1!==I.enabled&&(S(e),I.dispatchEvent(B),F=z.NONE)}function L(e){e.preventDefault()}this.object=e,this.domElement=void 0!==t?t:document,this.enabled=!0,this.target=new i.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.25,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={ORBIT:i.MOUSE.LEFT,ZOOM:i.MOUSE.MIDDLE,PAN:i.MOUSE.RIGHT},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return U.phi},this.getAzimuthalAngle=function(){return U.theta},this.reset=function(){I.target.copy(I.target0),I.object.position.copy(I.position0),I.object.zoom=I.zoom0,I.object.updateProjectionMatrix(),I.dispatchEvent(D),I.update(),F=z.NONE},this.update=function(){var t=new i.Vector3,r=(new i.Quaternion).setFromUnitVectors(e.up,new i.Vector3(0,1,0)),a=r.clone().inverse(),s=new i.Vector3,l=new i.Quaternion;return function(){var e=I.object.position;return t.copy(e).sub(I.target),t.applyQuaternion(r),U.setFromVector3(t),I.autoRotate&&F===z.NONE&&o(n()),U.theta+=W.theta,U.phi+=W.phi,U.theta=Math.max(I.minAzimuthAngle,Math.min(I.maxAzimuthAngle,U.theta)),U.phi=Math.max(I.minPolarAngle,Math.min(I.maxPolarAngle,U.phi)),U.makeSafe(),U.radius*=G,U.radius=Math.max(I.minDistance,Math.min(I.maxDistance,U.radius)),I.target.add(V),t.setFromSpherical(U),t.applyQuaternion(a),e.copy(I.target).add(t),I.object.lookAt(I.target),!0===I.enableDamping?(W.theta*=1-I.dampingFactor,W.phi*=1-I.dampingFactor):W.set(0,0,0),G=1,V.set(0,0,0),!!(H||s.distanceToSquared(I.object.position)>j||8*(1-l.dot(I.object.quaternion))>j)&&(I.dispatchEvent(D),s.copy(I.object.position),l.copy(I.object.quaternion),H=!1,!0)}}(),this.dispose=function(){I.domElement.removeEventListener("contextmenu",L,!1),I.domElement.removeEventListener("mousedown",E,!1),I.domElement.removeEventListener("wheel",O,!1),I.domElement.removeEventListener("touchstart",P,!1),I.domElement.removeEventListener("touchend",R,!1),I.domElement.removeEventListener("touchmove",A,!1),document.removeEventListener("mousemove",T,!1),document.removeEventListener("mouseup",k,!1),window.removeEventListener("keydown",C,!1)};var I=this,D={type:"change"},N={type:"start"},B={type:"end"},z={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},F=z.NONE,j=1e-6,U=new i.Spherical,W=new i.Spherical,G=1,V=new i.Vector3,H=!1,q=new i.Vector2,Y=new i.Vector2,X=new i.Vector2,K=new i.Vector2,Z=new i.Vector2,J=new i.Vector2,Q=new i.Vector2,$=new i.Vector2,ee=new i.Vector2,te=function(){var e=new i.Vector3;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),V.add(e)}}(),ne=function(){var e=new i.Vector3;return function(t,n){e.setFromMatrixColumn(n,1),e.multiplyScalar(t),V.add(e)}}(),ie=function(){var e=new i.Vector3;return function(t,n){var r=I.domElement===document?I.domElement.body:I.domElement;if(I.object instanceof i.PerspectiveCamera){var o=I.object.position;e.copy(o).sub(I.target);var a=e.length();a*=Math.tan(I.object.fov/2*Math.PI/180),te(2*t*a/r.clientHeight,I.object.matrix),ne(2*n*a/r.clientHeight,I.object.matrix)}else I.object instanceof i.OrthographicCamera?(te(t*(I.object.right-I.object.left)/I.object.zoom/r.clientWidth,I.object.matrix),ne(n*(I.object.top-I.object.bottom)/I.object.zoom/r.clientHeight,I.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),I.enablePan=!1)}}();I.domElement.addEventListener("contextmenu",L,!1),I.domElement.addEventListener("mousedown",E,!1),I.domElement.addEventListener("wheel",O,!1),I.domElement.addEventListener("touchstart",P,!1),I.domElement.addEventListener("touchend",R,!1),I.domElement.addEventListener("touchmove",A,!1),window.addEventListener("keydown",C,!1),this.update()},i.OrbitControls.prototype=Object.create(i.EventDispatcher.prototype),i.OrbitControls.prototype.constructor=i.OrbitControls,Object.defineProperties(i.OrbitControls.prototype,{center:{get:function(){return console.warn("THREE.OrbitControls: .center has been renamed to .target"),this.target}},noZoom:{get:function(){return console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),!this.enableZoom},set:function(e){console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),this.enableZoom=!e}},noRotate:{get:function(){return console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),!this.enableRotate},set:function(e){console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),this.enableRotate=!e}},noPan:{get:function(){return console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),!this.enablePan},set:function(e){console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),this.enablePan=!e}},noKeys:{get:function(){return console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),!this.enableKeys},set:function(e){console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),this.enableKeys=!e}},staticMoving:{get:function(){return console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),!this.enableDamping},set:function(e){console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),this.enableDamping=!e}},dynamicDampingFactor:{get:function(){return console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor},set:function(e){console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor=e}}})},function(e,t,n){var i=n(12);i.MTLLoader=function(e){this.manager=void 0!==e?e:i.DefaultLoadingManager},i.MTLLoader.prototype={constructor:i.MTLLoader,load:function(e,t,n,r){var o=this,a=new i.FileLoader(this.manager);a.setPath(this.path),a.load(e,function(e){t(o.parse(e))},n,r)},setPath:function(e){this.path=e},setTexturePath:function(e){this.texturePath=e},setBaseUrl:function(e){console.warn("THREE.MTLLoader: .setBaseUrl() is deprecated. Use .setTexturePath( path ) for texture path or .setPath( path ) for general base path instead."),this.setTexturePath(e)},setCrossOrigin:function(e){this.crossOrigin=e},setMaterialOptions:function(e){this.materialOptions=e},parse:function(e){for(var t=e.split("\n"),n={},r=/\s+/,o={},a=0;a=0?s.substring(0,l):s;u=u.toLowerCase();var c=l>=0?s.substring(l+1):"";if(c=c.trim(),"newmtl"===u)n={name:c},o[c]=n;else if(n)if("ka"===u||"kd"===u||"ks"===u){var d=c.split(r,3);n[u]=[parseFloat(d[0]),parseFloat(d[1]),parseFloat(d[2])]}else n[u]=c}}var h=new i.MTLLoader.MaterialCreator(this.texturePath||this.path,this.materialOptions);return h.setCrossOrigin(this.crossOrigin),h.setManager(this.manager),h.setMaterials(o),h}},i.MTLLoader.MaterialCreator=function(e,t){this.baseUrl=e||"",this.options=t,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.side=this.options&&this.options.side?this.options.side:i.FrontSide,this.wrap=this.options&&this.options.wrap?this.options.wrap:i.RepeatWrapping},i.MTLLoader.MaterialCreator.prototype={constructor:i.MTLLoader.MaterialCreator,setCrossOrigin:function(e){this.crossOrigin=e},setManager:function(e){this.manager=e},setMaterials:function(e){this.materialsInfo=this.convert(e),this.materials={},this.materialsArray=[],this.nameLookup={}},convert:function(e){if(!this.options)return e;var t={};for(var n in e){var i=e[n],r={};t[n]=r;for(var o in i){var a=!0,s=i[o],l=o.toLowerCase();switch(l){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(s=[s[0]/255,s[1]/255,s[2]/255]),this.options&&this.options.ignoreZeroRGBs&&0===s[0]&&0===s[1]&&0===s[2]&&(a=!1)}a&&(r[l]=s)}}return t},preload:function(){for(var e in this.materialsInfo)this.create(e)},getIndex:function(e){return this.nameLookup[e]},getAsArray:function(){var e=0;for(var t in this.materialsInfo)this.materialsArray[e]=this.create(t),this.nameLookup[t]=e,e++;return this.materialsArray},create:function(e){return void 0===this.materials[e]&&this.createMaterial_(e),this.materials[e]},createMaterial_:function(e){function t(e,t){return"string"!=typeof t||""===t?"":/^https?:\/\//i.test(t)?t:e+t}function n(e,n){if(!a[e]){var i=r.getTextureParams(n,a),o=r.loadTexture(t(r.baseUrl,i.url));o.repeat.copy(i.scale),o.offset.copy(i.offset),o.wrapS=r.wrap,o.wrapT=r.wrap,a[e]=o}}var r=this,o=this.materialsInfo[e],a={name:e,side:this.side};for(var s in o){var l=o[s];if(""!==l)switch(s.toLowerCase()){case"kd":a.color=(new i.Color).fromArray(l);break;case"ks":a.specular=(new i.Color).fromArray(l);break;case"map_kd":n("map",l);break;case"map_ks":n("specularMap",l);break;case"map_bump":case"bump":n("bumpMap",l);break;case"ns":a.shininess=parseFloat(l);break;case"d":l<1&&(a.opacity=l,a.transparent=!0);break;case"Tr":l>0&&(a.opacity=1-l,a.transparent=!0)}}return this.materials[e]=new i.MeshPhongMaterial(a),this.materials[e]},getTextureParams:function(e,t){var n,r={scale:new i.Vector2(1,1),offset:new i.Vector2(0,0)},o=e.split(/\s+/);return n=o.indexOf("-bm"),n>=0&&(t.bumpScale=parseFloat(o[n+1]),o.splice(n,2)),n=o.indexOf("-s"),n>=0&&(r.scale.set(parseFloat(o[n+1]),parseFloat(o[n+2])),o.splice(n,4)),n=o.indexOf("-o"),n>=0&&(r.offset.set(parseFloat(o[n+1]),parseFloat(o[n+2])),o.splice(n,4)),r.url=o.join(" ").trim(),r},loadTexture:function(e,t,n,r,o){var a,s=i.Loader.Handlers.get(e),l=void 0!==this.manager?this.manager:i.DefaultLoadingManager;return null===s&&(s=new i.TextureLoader(l)),s.setCrossOrigin&&s.setCrossOrigin(this.crossOrigin),a=s.load(e,n,r,o),void 0!==t&&(a.mapping=t),a}}},function(e,t,n){var i=n(12);i.OBJLoader=function(e){this.manager=void 0!==e?e:i.DefaultLoadingManager,this.materials=null,this.regexp={vertex_pattern:/^v\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)/,normal_pattern:/^vn\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)/,uv_pattern:/^vt\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)/,face_vertex:/^f\s+(-?\d+)\s+(-?\d+)\s+(-?\d+)(?:\s+(-?\d+))?/,face_vertex_uv:/^f\s+(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)(?:\s+(-?\d+)\/(-?\d+))?/,face_vertex_uv_normal:/^f\s+(-?\d+)\/(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)\/(-?\d+)(?:\s+(-?\d+)\/(-?\d+)\/(-?\d+))?/,face_vertex_normal:/^f\s+(-?\d+)\/\/(-?\d+)\s+(-?\d+)\/\/(-?\d+)\s+(-?\d+)\/\/(-?\d+)(?:\s+(-?\d+)\/\/(-?\d+))?/,object_pattern:/^[og]\s*(.+)?/,smoothing_pattern:/^s\s+(\d+|on|off)/,material_library_pattern:/^mtllib /,material_use_pattern:/^usemtl /}},i.OBJLoader.prototype={constructor:i.OBJLoader,load:function(e,t,n,r){var o=this,a=new i.FileLoader(o.manager);a.setPath(this.path),a.load(e,function(e){t(o.parse(e))},n,r)},setPath:function(e){this.path=e},setMaterials:function(e){this.materials=e},_createParserState:function(){var e={objects:[],object:{},vertices:[],normals:[],uvs:[],materialLibraries:[],startObject:function(e,t){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=e,void(this.object.fromDeclaration=!1!==t);var n=this.object&&"function"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:e||"",fromDeclaration:!1!==t,geometry:{vertices:[],normals:[],uvs:[]},materials:[],smooth:!0,startMaterial:function(e,t){var n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);var i={index:this.materials.length,name:e||"",mtllib:Array.isArray(t)&&t.length>0?t[t.length-1]:"",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(e){var t={index:"number"==typeof e?e:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return t.clone=this.clone.bind(t),t}};return this.materials.push(i),i},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){var t=this.currentMaterial();if(t&&-1===t.groupEnd&&(t.groupEnd=this.geometry.vertices.length/3,t.groupCount=t.groupEnd-t.groupStart,t.inherited=!1),e&&this.materials.length>1)for(var n=this.materials.length-1;n>=0;n--)this.materials[n].groupCount<=0&&this.materials.splice(n,1);return e&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),t}},n&&n.name&&"function"==typeof n.clone){var i=n.clone(0);i.inherited=!0,this.object.materials.push(i)}this.objects.push(this.object)},finalize:function(){this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseNormalIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseUVIndex:function(e,t){var n=parseInt(e,10);return 2*(n>=0?n-1:n+t/2)},addVertex:function(e,t,n){var i=this.vertices,r=this.object.geometry.vertices;r.push(i[e+0]),r.push(i[e+1]),r.push(i[e+2]),r.push(i[t+0]),r.push(i[t+1]),r.push(i[t+2]),r.push(i[n+0]),r.push(i[n+1]),r.push(i[n+2])},addVertexLine:function(e){var t=this.vertices,n=this.object.geometry.vertices;n.push(t[e+0]),n.push(t[e+1]),n.push(t[e+2])},addNormal:function(e,t,n){var i=this.normals,r=this.object.geometry.normals;r.push(i[e+0]),r.push(i[e+1]),r.push(i[e+2]),r.push(i[t+0]),r.push(i[t+1]),r.push(i[t+2]),r.push(i[n+0]),r.push(i[n+1]),r.push(i[n+2])},addUV:function(e,t,n){var i=this.uvs,r=this.object.geometry.uvs;r.push(i[e+0]),r.push(i[e+1]),r.push(i[t+0]),r.push(i[t+1]),r.push(i[n+0]),r.push(i[n+1])},addUVLine:function(e){var t=this.uvs,n=this.object.geometry.uvs;n.push(t[e+0]),n.push(t[e+1])},addFace:function(e,t,n,i,r,o,a,s,l,u,c,d){var h,f=this.vertices.length,p=this.parseVertexIndex(e,f),m=this.parseVertexIndex(t,f),g=this.parseVertexIndex(n,f);if(void 0===i?this.addVertex(p,m,g):(h=this.parseVertexIndex(i,f),this.addVertex(p,m,h),this.addVertex(m,g,h)),void 0!==r){var v=this.uvs.length;p=this.parseUVIndex(r,v),m=this.parseUVIndex(o,v),g=this.parseUVIndex(a,v),void 0===i?this.addUV(p,m,g):(h=this.parseUVIndex(s,v),this.addUV(p,m,h),this.addUV(m,g,h))}if(void 0!==l){var y=this.normals.length;p=this.parseNormalIndex(l,y),m=l===u?p:this.parseNormalIndex(u,y),g=l===c?p:this.parseNormalIndex(c,y),void 0===i?this.addNormal(p,m,g):(h=this.parseNormalIndex(d,y),this.addNormal(p,m,h),this.addNormal(m,g,h))}},addLineGeometry:function(e,t){this.object.geometry.type="Line";for(var n=this.vertices.length,i=this.uvs.length,r=0,o=e.length;r0?E.addAttribute("normal",new i.BufferAttribute(new Float32Array(w.normals),3)):E.computeVertexNormals(),w.uvs.length>0&&E.addAttribute("uv",new i.BufferAttribute(new Float32Array(w.uvs),2));for(var T=[],k=0,O=M.length;k1){for(var k=0,O=M.length;k0?s(r()):ee.y<0&&l(r()),Q.copy($),I.update()}function p(e){Z.set(e.clientX,e.clientY),J.subVectors(Z,K),ie(J.x,J.y),K.copy(Z),I.update()}function m(e){}function g(e){e.deltaY<0?l(r()):e.deltaY>0&&s(r()),I.update()}function v(e){switch(e.keyCode){case I.keys.UP:ie(0,I.keyPanSpeed),I.update();break;case I.keys.BOTTOM:ie(0,-I.keyPanSpeed),I.update();break;case I.keys.LEFT:ie(I.keyPanSpeed,0),I.update();break;case I.keys.RIGHT:ie(-I.keyPanSpeed,0),I.update()}}function y(e){q.set(e.touches[0].pageX,e.touches[0].pageY)}function b(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);Q.set(0,i)}function _(e){K.set(e.touches[0].pageX,e.touches[0].pageY)}function x(e){Y.set(e.touches[0].pageX,e.touches[0].pageY),X.subVectors(Y,q);var t=I.domElement===document?I.domElement.body:I.domElement;o(2*Math.PI*X.x/t.clientWidth*I.rotateSpeed),a(2*Math.PI*X.y/t.clientHeight*I.rotateSpeed),q.copy(Y),I.update()}function w(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);$.set(0,i),ee.subVectors($,Q),ee.y>0?l(r()):ee.y<0&&s(r()),Q.copy($),I.update()}function M(e){Z.set(e.touches[0].pageX,e.touches[0].pageY),J.subVectors(Z,K),ie(J.x,J.y),K.copy(Z),I.update()}function S(e){}function E(e){if(!1!==I.enabled){if(e.preventDefault(),e.button===I.mouseButtons.ORBIT){if(!1===I.enableRotate)return;u(e),F=z.ROTATE}else if(e.button===I.mouseButtons.ZOOM){if(!1===I.enableZoom)return;c(e),F=z.DOLLY}else if(e.button===I.mouseButtons.PAN){if(!1===I.enablePan)return;d(e),F=z.PAN}F!==z.NONE&&(document.addEventListener("mousemove",T,!1),document.addEventListener("mouseup",k,!1),I.dispatchEvent(N))}}function T(e){if(!1!==I.enabled)if(e.preventDefault(),F===z.ROTATE){if(!1===I.enableRotate)return;h(e)}else if(F===z.DOLLY){if(!1===I.enableZoom)return;f(e)}else if(F===z.PAN){if(!1===I.enablePan)return;p(e)}}function k(e){!1!==I.enabled&&(m(e),document.removeEventListener("mousemove",T,!1),document.removeEventListener("mouseup",k,!1),I.dispatchEvent(B),F=z.NONE)}function O(e){!1===I.enabled||!1===I.enableZoom||F!==z.NONE&&F!==z.ROTATE||(e.preventDefault(),e.stopPropagation(),g(e),I.dispatchEvent(N),I.dispatchEvent(B))}function C(e){!1!==I.enabled&&!1!==I.enableKeys&&!1!==I.enablePan&&v(e)}function P(e){if(!1!==I.enabled){switch(e.touches.length){case 1:if(!1===I.enableRotate)return;y(e),F=z.TOUCH_ROTATE;break;case 2:if(!1===I.enableZoom)return;b(e),F=z.TOUCH_DOLLY;break;case 3:if(!1===I.enablePan)return;_(e),F=z.TOUCH_PAN;break;default:F=z.NONE}F!==z.NONE&&I.dispatchEvent(N)}}function A(e){if(!1!==I.enabled)switch(e.preventDefault(),e.stopPropagation(),e.touches.length){case 1:if(!1===I.enableRotate)return;if(F!==z.TOUCH_ROTATE)return;x(e);break;case 2:if(!1===I.enableZoom)return;if(F!==z.TOUCH_DOLLY)return;w(e);break;case 3:if(!1===I.enablePan)return;if(F!==z.TOUCH_PAN)return;M(e);break;default:F=z.NONE}}function R(e){!1!==I.enabled&&(S(e),I.dispatchEvent(B),F=z.NONE)}function L(e){e.preventDefault()}this.object=e,this.domElement=void 0!==t?t:document,this.enabled=!0,this.target=new i.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.25,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={ORBIT:i.MOUSE.LEFT,ZOOM:i.MOUSE.MIDDLE,PAN:i.MOUSE.RIGHT},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return U.phi},this.getAzimuthalAngle=function(){return U.theta},this.reset=function(){I.target.copy(I.target0),I.object.position.copy(I.position0),I.object.zoom=I.zoom0,I.object.updateProjectionMatrix(),I.dispatchEvent(D),I.update(),F=z.NONE},this.update=function(){var t=new i.Vector3,r=(new i.Quaternion).setFromUnitVectors(e.up,new i.Vector3(0,1,0)),a=r.clone().inverse(),s=new i.Vector3,l=new i.Quaternion;return function(){var e=I.object.position;return t.copy(e).sub(I.target),t.applyQuaternion(r),U.setFromVector3(t),I.autoRotate&&F===z.NONE&&o(n()),U.theta+=W.theta,U.phi+=W.phi,U.theta=Math.max(I.minAzimuthAngle,Math.min(I.maxAzimuthAngle,U.theta)),U.phi=Math.max(I.minPolarAngle,Math.min(I.maxPolarAngle,U.phi)),U.makeSafe(),U.radius*=G,U.radius=Math.max(I.minDistance,Math.min(I.maxDistance,U.radius)),I.target.add(V),t.setFromSpherical(U),t.applyQuaternion(a),e.copy(I.target).add(t),I.object.lookAt(I.target),!0===I.enableDamping?(W.theta*=1-I.dampingFactor,W.phi*=1-I.dampingFactor):W.set(0,0,0),G=1,V.set(0,0,0),!!(H||s.distanceToSquared(I.object.position)>j||8*(1-l.dot(I.object.quaternion))>j)&&(I.dispatchEvent(D),s.copy(I.object.position),l.copy(I.object.quaternion),H=!1,!0)}}(),this.dispose=function(){I.domElement.removeEventListener("contextmenu",L,!1),I.domElement.removeEventListener("mousedown",E,!1),I.domElement.removeEventListener("wheel",O,!1),I.domElement.removeEventListener("touchstart",P,!1),I.domElement.removeEventListener("touchend",R,!1),I.domElement.removeEventListener("touchmove",A,!1),document.removeEventListener("mousemove",T,!1),document.removeEventListener("mouseup",k,!1),window.removeEventListener("keydown",C,!1)};var I=this,D={type:"change"},N={type:"start"},B={type:"end"},z={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},F=z.NONE,j=1e-6,U=new i.Spherical,W=new i.Spherical,G=1,V=new i.Vector3,H=!1,q=new i.Vector2,Y=new i.Vector2,X=new i.Vector2,K=new i.Vector2,Z=new i.Vector2,J=new i.Vector2,Q=new i.Vector2,$=new i.Vector2,ee=new i.Vector2,te=function(){var e=new i.Vector3;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),V.add(e)}}(),ne=function(){var e=new i.Vector3;return function(t,n){e.setFromMatrixColumn(n,1),e.multiplyScalar(t),V.add(e)}}(),ie=function(){var e=new i.Vector3;return function(t,n){var r=I.domElement===document?I.domElement.body:I.domElement;if(I.object instanceof i.PerspectiveCamera){var o=I.object.position;e.copy(o).sub(I.target);var a=e.length();a*=Math.tan(I.object.fov/2*Math.PI/180),te(2*t*a/r.clientHeight,I.object.matrix),ne(2*n*a/r.clientHeight,I.object.matrix)}else I.object instanceof i.OrthographicCamera?(te(t*(I.object.right-I.object.left)/I.object.zoom/r.clientWidth,I.object.matrix),ne(n*(I.object.top-I.object.bottom)/I.object.zoom/r.clientHeight,I.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),I.enablePan=!1)}}();I.domElement.addEventListener("contextmenu",L,!1),I.domElement.addEventListener("mousedown",E,!1),I.domElement.addEventListener("wheel",O,!1),I.domElement.addEventListener("touchstart",P,!1),I.domElement.addEventListener("touchend",R,!1),I.domElement.addEventListener("touchmove",A,!1),window.addEventListener("keydown",C,!1),this.update()},i.OrbitControls.prototype=Object.create(i.EventDispatcher.prototype),i.OrbitControls.prototype.constructor=i.OrbitControls,Object.defineProperties(i.OrbitControls.prototype,{center:{get:function(){return console.warn("THREE.OrbitControls: .center has been renamed to .target"),this.target}},noZoom:{get:function(){return console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),!this.enableZoom},set:function(e){console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),this.enableZoom=!e}},noRotate:{get:function(){return console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),!this.enableRotate},set:function(e){console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),this.enableRotate=!e}},noPan:{get:function(){return console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),!this.enablePan},set:function(e){console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),this.enablePan=!e}},noKeys:{get:function(){return console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),!this.enableKeys},set:function(e){console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),this.enableKeys=!e}},staticMoving:{get:function(){return console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),!this.enableDamping},set:function(e){console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),this.enableDamping=!e}},dynamicDampingFactor:{get:function(){return console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor},set:function(e){console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor=e}}})},,function(e,t){e.exports={trajectoryGraph:{title:"Trajectory",options:{legend:{display:!0},axes:{x:{labelString:"x (m)"},y:{labelString:"y (m)"}}},properties:{cars:{pose:{color:"rgba(0, 255, 0, 1)"}},lines:{real:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"},steerCurve:{color:"rgba(255, 206, 86, 1)",borderWidth:1,pointRadius:0,fill:!1,showLine:!0},plan:{color:"rgba(1, 209, 193, 0.65)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:"rgba(180, 255, 180, 0.7)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:"rgba(224, 224, 224, 0.15)",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},speedGraph:{title:"Speed",options:{legend:{display:!0},axes:{x:{labelString:"t (second)"},y:{labelString:"speed (m/s)"}}},properties:{lines:{real:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"},plan:{color:"rgba(1, 209, 193, 0.65)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:"rgba(180, 255, 180, 0.7)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:"rgba(224, 224, 224, 0.15)",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},curvatureGraph:{title:"Curvature",options:{legend:{display:!0},axes:{x:{labelString:"t (second)"},y:{labelString:"Curvature (m-1)"}}},properties:{lines:{real:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"},plan:{color:"rgba(1, 209, 193, 0.65)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:"rgba(180, 255, 180, 0.7)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:"rgba(224, 224, 224, 0.15)",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},accelerationGraph:{title:"Acceleration",options:{legend:{display:!0},axes:{x:{labelString:"t (second)"},y:{labelString:"acceleration (m/s^2)"}}},properties:{lines:{real:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"},plan:{color:"rgba(1, 209, 193, 0.65)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:"rgba(180, 255, 180, 0.7)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:"rgba(224, 224, 224, 0.15)",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},stationErrorGraph:{title:"Station Error",options:{legend:{display:!1},axes:{x:{labelString:"t (second)"},y:{labelString:"error (m)"}}},properties:{lines:{error:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"}}}},lateralErrorGraph:{title:"Lateral Error",options:{legend:{display:!1},axes:{x:{labelString:"t (second)"},y:{labelString:"error (m)"}}},properties:{lines:{error:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"}}}},headingErrorGraph:{title:"Heading Error",options:{legend:{display:!1},axes:{x:{labelString:"t (second)"},y:{labelString:"error (rad)"}}},properties:{lines:{error:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"}}}}}},function(e,t){e.exports={options:{legend:{display:!0},axes:{x:{labelString:"timestampe (sec)"},y:{labelString:"latency (ms)"}}},properties:{lines:{chassis:{color:"rgba(241, 113, 112, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},localization:{color:"rgba(254, 208,114, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},prediction:{color:"rgba(162, 212, 113, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},perception:{color:"rgba(113, 226, 208, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},planning:{color:"rgba(113, 208, 255, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},control:{color:"rgba(179, 164, 238, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}}},function(e,t){e.exports={slGraph:{title:"QP Path - sl graph",options:{legend:{display:!1},axes:{x:{min:0,max:200,labelString:"s - ref_line (m)"},y:{min:-5,max:5,labelString:"l (m)"}}},properties:{lines:{aggregatedBoundaryLow:{color:"rgba(48, 165, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},aggregatedBoundaryHigh:{color:"rgba(48, 165, 255, 1)",borderWidth:2,pointRadius:0,lineTension:0,fill:!1,showLine:!0},pathLine:{color:"rgba(225, 225, 225, 0.7)",borderWidth:2,pointRadius:.5,fill:!1,showLine:!1},mapLowerBound:{color:"rgba(54, 162, 235, 0.4)",borderWidth:2,pointRadius:0,fill:"start",showLine:!0},mapUpperBound:{color:"rgba(54, 162, 235, 0.4)",borderWidth:2,pointRadius:0,fill:"end",showLine:!0},staticObstacleLowerBound:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:"start",showLine:!0},staticObstacleUpperBound:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:"end",showLine:!0},dynamicObstacleLowerBound:{color:"rgba(255, 206, 86, 0.2)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},dynamicObstacleUpperBound:{color:"rgba(255, 206, 86, 0.2)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}},stGraph:{options:{legend:{display:!1},axes:{x:{min:-2,max:10,labelString:"t (second)"},y:{min:-10,max:220,labelString:"s (m)"}}},properties:{lines:{curveLine:{color:"rgba(225, 225, 225, 0.5)",borderWidth:2,pointRadius:1,fill:!1,showLine:!1},kernelCruise:{color:"rgba(27, 249, 105, 0.5)",borderWidth:2,pointRadius:1,fill:!1,showLine:!1},kernelFollow:{color:"rgba(255, 206, 86, 0.5)",borderWidth:2,pointRadius:1,fill:!1,showLine:!1}}}},stSpeedGraph:{title:"QP Speed - sv graph",options:{legend:{display:!0},axes:{x:{min:-10,max:220,labelString:"s - qp_path(m)"},y:{min:-1,max:40,labelString:"v (m/s)"}}},properties:{lines:{upperConstraint:{color:"rgba(54, 162, 235, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},lowerConstraint:{color:"rgba(54, 162, 235, 1)",borderWidth:4,pointRadius:0,fill:!1,showLine:!0},planned:{color:"rgba(225, 225, 225, 0.5)",borderWidth:4,pointRadius:0,fill:!1,showLine:!0},limit:{color:"rgba(255, 0, 0, 0.5)",borderWidth:4,pointRadius:0,fill:!1,showLine:!0}}}},speedGraph:{title:"Planning Speed",options:{legend:{display:!0},axes:{x:{min:-2,max:10,labelString:"t (second)"},y:{min:-1,max:40,labelString:"speed (m/s)"}}},properties:{lines:{finalSpeed:{color:"rgba(255, 0, 0, 0.8)",borderWidth:1,pointRadius:1,fill:!1,showLine:!1},DpStSpeedOptimizer:{color:"rgba(27, 249, 105, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplineStSpeedOptimizer:{color:"rgba(54, 162, 235, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"}}}},accelerationGraph:{title:"Planning Acceleration",options:{legend:{display:!1},axes:{x:{min:-2,max:10,labelString:"t (second)"},y:{min:-4,max:3.5,labelString:"acceleration (m/s^2)"}}},properties:{lines:{acceleration:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"}}}},kappaGraph:{title:"Planning Kappa",options:{legend:{display:!0},axes:{x:{labelString:"s (m)"},y:{min:-.2,max:.2,labelString:"kappa"}}},properties:{lines:{ReferenceLine:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},DpPolyPathOptimizer:{color:"rgba(27, 249, 105, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplinePathOptimizer:{color:"rgba(54, 162, 235, 1)",borderWidth:5,pointRadius:0,fill:!1,showLine:!0}}}},dkappaGraph:{title:"Planning Dkappa",options:{legend:{display:!0},axes:{x:{labelString:"s (m)"},y:{min:-.02,max:.02,labelString:"dkappa"}}},properties:{lines:{ReferenceLine:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplinePathOptimizer:{color:"rgba(54, 162, 235, 1)",borderWidth:5,pointRadius:0,fill:!1,showLine:!0}}}},thetaGraph:{title:"Planning theta",options:{legend:{display:!0},axes:{x:{labelString:"s (m)"},y:{labelString:"theta"}}},properties:{lines:{ReferenceLine:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}},dpPolyGraph:{title:"DP Path",options:{legend:{display:!1},axes:{x:{labelString:"s (m)"},y:{labelString:"l (m)"}}},properties:{lines:{minCostPoint:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:2,fill:!1,showLine:!0},sampleLayer:{color:"rgba(225, 225, 225, 0.5)",borderWidth:0,pointRadius:4,fill:!1,showLine:!1}}}}}},function(e,t){e.exports={name:"proj4",version:"2.5.0",description:"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",main:"dist/proj4-src.js",module:"lib/index.js",directories:{test:"test",doc:"docs"},scripts:{build:"grunt","build:tmerc":"grunt build:tmerc",test:"npm run build && istanbul test _mocha test/test.js"},repository:{type:"git",url:"git://github.com/proj4js/proj4js.git"},author:"",license:"MIT",devDependencies:{chai:"~4.1.2","curl-amd":"github:cujojs/curl",grunt:"^1.0.1","grunt-cli":"~1.2.0","grunt-contrib-connect":"~1.0.2","grunt-contrib-jshint":"~1.1.0","grunt-contrib-uglify":"~3.1.0","grunt-mocha-phantomjs":"~4.0.0","grunt-rollup":"^6.0.0",istanbul:"~0.4.5",mocha:"~4.0.0",rollup:"^0.50.0","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.0",tin:"~0.5.0"},dependencies:{mgrs:"1.0.0","wkt-parser":"^1.2.0"}}},function(e,t,n){var i=n(300);"string"==typeof i&&(i=[[e.i,i,""]]);var r={};r.transform=void 0;n(139)(i,r);i.locals&&(e.exports=i.locals)},function(e,t,n){var i=n(302);"string"==typeof i&&(i=[[e.i,i,""]]);var r={};r.transform=void 0;n(139)(i,r);i.locals&&(e.exports=i.locals)},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){e.exports={nested:{apollo:{nested:{dreamview:{nested:{PolygonPoint:{fields:{x:{type:"double",id:1},y:{type:"double",id:2},z:{type:"double",id:3,options:{default:0}}}},Prediction:{fields:{probability:{type:"double",id:1},predictedTrajectory:{rule:"repeated",type:"PolygonPoint",id:2}}},Decision:{fields:{type:{type:"Type",id:1,options:{default:"IGNORE"}},polygonPoint:{rule:"repeated",type:"PolygonPoint",id:2},heading:{type:"double",id:3},latitude:{type:"double",id:4},longitude:{type:"double",id:5},positionX:{type:"double",id:6},positionY:{type:"double",id:7},length:{type:"double",id:8,options:{default:2.8}},width:{type:"double",id:9,options:{default:1.4}},height:{type:"double",id:10,options:{default:1.8}},stopReason:{type:"StopReasonCode",id:11},changeLaneType:{type:"apollo.routing.ChangeLaneType",id:12}},nested:{Type:{values:{IGNORE:0,STOP:1,NUDGE:2,YIELD:3,OVERTAKE:4,FOLLOW:5,SIDEPASS:6}},StopReasonCode:{values:{STOP_REASON_HEAD_VEHICLE:1,STOP_REASON_DESTINATION:2,STOP_REASON_PEDESTRIAN:3,STOP_REASON_OBSTACLE:4,STOP_REASON_SIGNAL:100,STOP_REASON_STOP_SIGN:101,STOP_REASON_YIELD_SIGN:102,STOP_REASON_CLEAR_ZONE:103,STOP_REASON_CROSSWALK:104,STOP_REASON_EMERGENCY:105,STOP_REASON_NOT_READY:106,STOP_REASON_PULL_OVER:107}}}},Object:{fields:{id:{type:"string",id:1},polygonPoint:{rule:"repeated",type:"PolygonPoint",id:2},heading:{type:"double",id:3},latitude:{type:"double",id:4},longitude:{type:"double",id:5},positionX:{type:"double",id:6},positionY:{type:"double",id:7},length:{type:"double",id:8,options:{default:2.8}},width:{type:"double",id:9,options:{default:1.4}},height:{type:"double",id:10,options:{default:1.8}},speed:{type:"double",id:11},speedAcceleration:{type:"double",id:12},speedJerk:{type:"double",id:13},spin:{type:"double",id:14},spinAcceleration:{type:"double",id:15},spinJerk:{type:"double",id:16},speedHeading:{type:"double",id:17},kappa:{type:"double",id:18},signalSet:{rule:"repeated",type:"string",id:19},currentSignal:{type:"string",id:20},timestampSec:{type:"double",id:21},decision:{rule:"repeated",type:"Decision",id:22},yieldedObstacle:{type:"bool",id:32,options:{default:!1}},throttlePercentage:{type:"double",id:23},brakePercentage:{type:"double",id:24},steeringPercentage:{type:"double",id:25},steeringAngle:{type:"double",id:26},steeringRatio:{type:"double",id:27},disengageType:{type:"DisengageType",id:28},type:{type:"Type",id:29},prediction:{rule:"repeated",type:"Prediction",id:30},confidence:{type:"double",id:31,options:{default:1}},obstaclePriority:{type:"ObstaclePriority",id:33,options:{default:"NORMAL"}}},nested:{DisengageType:{values:{DISENGAGE_NONE:0,DISENGAGE_UNKNOWN:1,DISENGAGE_MANUAL:2,DISENGAGE_EMERGENCY:3,DISENGAGE_AUTO_STEER_ONLY:4,DISENGAGE_AUTO_SPEED_ONLY:5,DISENGAGE_CHASSIS_ERROR:6}},Type:{values:{UNKNOWN:0,UNKNOWN_MOVABLE:1,UNKNOWN_UNMOVABLE:2,PEDESTRIAN:3,BICYCLE:4,VEHICLE:5,VIRTUAL:6,CIPV:7}},ObstaclePriority:{values:{CAUTION:1,NORMAL:2,IGNORE:3}}}},DelaysInMs:{fields:{chassis:{type:"double",id:1},localization:{type:"double",id:3},perceptionObstacle:{type:"double",id:4},planning:{type:"double",id:5},prediction:{type:"double",id:7},trafficLight:{type:"double",id:8},control:{type:"double",id:9}}},RoutePath:{fields:{point:{rule:"repeated",type:"PolygonPoint",id:1}}},Latency:{fields:{timestampSec:{type:"double",id:1},totalTimeMs:{type:"double",id:2}}},MapElementIds:{fields:{lane:{rule:"repeated",type:"string",id:1},crosswalk:{rule:"repeated",type:"string",id:2},junction:{rule:"repeated",type:"string",id:3},signal:{rule:"repeated",type:"string",id:4},stopSign:{rule:"repeated",type:"string",id:5},yield:{rule:"repeated",type:"string",id:6},overlap:{rule:"repeated",type:"string",id:7},road:{rule:"repeated",type:"string",id:8},clearArea:{rule:"repeated",type:"string",id:9},parkingSpace:{rule:"repeated",type:"string",id:10},speedBump:{rule:"repeated",type:"string",id:11}}},ControlData:{fields:{timestampSec:{type:"double",id:1},stationError:{type:"double",id:2},lateralError:{type:"double",id:3},headingError:{type:"double",id:4}}},Notification:{fields:{timestampSec:{type:"double",id:1},item:{type:"apollo.common.monitor.MonitorMessageItem",id:2}}},SimulationWorld:{fields:{timestamp:{type:"double",id:1},sequenceNum:{type:"uint32",id:2},object:{rule:"repeated",type:"Object",id:3},autoDrivingCar:{type:"Object",id:4},trafficSignal:{type:"Object",id:5},routePath:{rule:"repeated",type:"RoutePath",id:6},routingTime:{type:"double",id:7},planningTrajectory:{rule:"repeated",type:"Object",id:8},mainStop:{type:"Object",id:9,options:{deprecated:!0}},mainDecision:{type:"Object",id:10},speedLimit:{type:"double",id:11},delay:{type:"DelaysInMs",id:12},monitor:{type:"apollo.common.monitor.MonitorMessage",id:13,options:{deprecated:!0}},notification:{rule:"repeated",type:"Notification",id:14},engageAdvice:{type:"string",id:15},latency:{keyType:"string",type:"Latency",id:16},mapElementIds:{type:"MapElementIds",id:17},mapHash:{type:"uint64",id:18},mapRadius:{type:"double",id:19},planningData:{type:"apollo.planning_internal.PlanningData",id:20},gps:{type:"Object",id:21},laneMarker:{type:"apollo.perception.LaneMarkers",id:22},controlData:{type:"ControlData",id:23},navigationPath:{rule:"repeated",type:"apollo.common.Path",id:24}}},Options:{fields:{legendDisplay:{type:"bool",id:1,options:{default:!0}},x:{type:"Axis",id:2},y:{type:"Axis",id:3}},nested:{Axis:{fields:{min:{type:"double",id:1},max:{type:"double",id:2},labelString:{type:"string",id:3}}}}},Line:{fields:{label:{type:"string",id:1},point:{rule:"repeated",type:"apollo.common.Point2D",id:2},properties:{keyType:"string",type:"string",id:3}}},Polygon:{fields:{label:{type:"string",id:1},point:{rule:"repeated",type:"apollo.common.Point2D",id:2},properties:{keyType:"string",type:"string",id:3}}},Car:{fields:{label:{type:"string",id:1},x:{type:"double",id:2},y:{type:"double",id:3},heading:{type:"double",id:4},color:{type:"string",id:5}}},Chart:{fields:{title:{type:"string",id:1},options:{type:"Options",id:2},line:{rule:"repeated",type:"Line",id:3},polygon:{rule:"repeated",type:"Polygon",id:4},car:{rule:"repeated",type:"Car",id:5}}}}},common:{nested:{DriveEvent:{fields:{header:{type:"apollo.common.Header",id:1},event:{type:"string",id:2},location:{type:"apollo.localization.Pose",id:3},type:{rule:"repeated",type:"Type",id:4,options:{packed:!1}}},nested:{Type:{values:{CRITICAL:0,PROBLEM:1,DESIRED:2,OUT_OF_SCOPE:3}}}},EngageAdvice:{fields:{advice:{type:"Advice",id:1,options:{default:"DISALLOW_ENGAGE"}},reason:{type:"string",id:2}},nested:{Advice:{values:{UNKNOWN:0,DISALLOW_ENGAGE:1,READY_TO_ENGAGE:2,KEEP_ENGAGED:3,PREPARE_DISENGAGE:4}}}},ErrorCode:{values:{OK:0,CONTROL_ERROR:1e3,CONTROL_INIT_ERROR:1001,CONTROL_COMPUTE_ERROR:1002,CANBUS_ERROR:2e3,CAN_CLIENT_ERROR_BASE:2100,CAN_CLIENT_ERROR_OPEN_DEVICE_FAILED:2101,CAN_CLIENT_ERROR_FRAME_NUM:2102,CAN_CLIENT_ERROR_SEND_FAILED:2103,CAN_CLIENT_ERROR_RECV_FAILED:2104,LOCALIZATION_ERROR:3e3,LOCALIZATION_ERROR_MSG:3100,LOCALIZATION_ERROR_LIDAR:3200,LOCALIZATION_ERROR_INTEG:3300,LOCALIZATION_ERROR_GNSS:3400,PERCEPTION_ERROR:4e3,PERCEPTION_ERROR_TF:4001,PERCEPTION_ERROR_PROCESS:4002,PERCEPTION_FATAL:4003,PERCEPTION_ERROR_NONE:4004,PERCEPTION_ERROR_UNKNOWN:4005,PREDICTION_ERROR:5e3,PLANNING_ERROR:6e3,HDMAP_DATA_ERROR:7e3,ROUTING_ERROR:8e3,ROUTING_ERROR_REQUEST:8001,ROUTING_ERROR_RESPONSE:8002,ROUTING_ERROR_NOT_READY:8003,END_OF_INPUT:9e3,HTTP_LOGIC_ERROR:1e4,HTTP_RUNTIME_ERROR:10001,RELATIVE_MAP_ERROR:11e3,RELATIVE_MAP_NOT_READY:11001,DRIVER_ERROR_GNSS:12e3,DRIVER_ERROR_VELODYNE:13e3}},StatusPb:{fields:{errorCode:{type:"ErrorCode",id:1,options:{default:"OK"}},msg:{type:"string",id:2}}},PointENU:{fields:{x:{type:"double",id:1,options:{default:null}},y:{type:"double",id:2,options:{default:null}},z:{type:"double",id:3,options:{default:0}}}},PointLLH:{fields:{lon:{type:"double",id:1,options:{default:null}},lat:{type:"double",id:2,options:{default:null}},height:{type:"double",id:3,options:{default:0}}}},Point2D:{fields:{x:{type:"double",id:1,options:{default:null}},y:{type:"double",id:2,options:{default:null}}}},Point3D:{fields:{x:{type:"double",id:1,options:{default:null}},y:{type:"double",id:2,options:{default:null}},z:{type:"double",id:3,options:{default:null}}}},Quaternion:{fields:{qx:{type:"double",id:1,options:{default:null}},qy:{type:"double",id:2,options:{default:null}},qz:{type:"double",id:3,options:{default:null}},qw:{type:"double",id:4,options:{default:null}}}},Polygon:{fields:{point:{rule:"repeated",type:"Point3D",id:1}}},Header:{fields:{timestampSec:{type:"double",id:1},moduleName:{type:"string",id:2},sequenceNum:{type:"uint32",id:3},lidarTimestamp:{type:"uint64",id:4},cameraTimestamp:{type:"uint64",id:5},radarTimestamp:{type:"uint64",id:6},version:{type:"uint32",id:7,options:{default:1}},status:{type:"StatusPb",id:8},frameId:{type:"string",id:9}}},SLPoint:{fields:{s:{type:"double",id:1},l:{type:"double",id:2}}},FrenetFramePoint:{fields:{s:{type:"double",id:1},l:{type:"double",id:2},dl:{type:"double",id:3},ddl:{type:"double",id:4}}},SpeedPoint:{fields:{s:{type:"double",id:1},t:{type:"double",id:2},v:{type:"double",id:3},a:{type:"double",id:4},da:{type:"double",id:5}}},PathPoint:{fields:{x:{type:"double",id:1},y:{type:"double",id:2},z:{type:"double",id:3},theta:{type:"double",id:4},kappa:{type:"double",id:5},s:{type:"double",id:6},dkappa:{type:"double",id:7},ddkappa:{type:"double",id:8},laneId:{type:"string",id:9},xDerivative:{type:"double",id:10},yDerivative:{type:"double",id:11}}},Path:{fields:{name:{type:"string",id:1},pathPoint:{rule:"repeated",type:"PathPoint",id:2}}},TrajectoryPoint:{fields:{pathPoint:{type:"PathPoint",id:1},v:{type:"double",id:2},a:{type:"double",id:3},relativeTime:{type:"double",id:4},da:{type:"double",id:5}}},Trajectory:{fields:{name:{type:"string",id:1},trajectoryPoint:{rule:"repeated",type:"TrajectoryPoint",id:2}}},VehicleMotionPoint:{fields:{trajectoryPoint:{type:"TrajectoryPoint",id:1},steer:{type:"double",id:2}}},VehicleMotion:{fields:{name:{type:"string",id:1},vehicleMotionPoint:{rule:"repeated",type:"VehicleMotionPoint",id:2}}},VehicleSignal:{fields:{turnSignal:{type:"TurnSignal",id:1},highBeam:{type:"bool",id:2},lowBeam:{type:"bool",id:3},horn:{type:"bool",id:4},emergencyLight:{type:"bool",id:5}},nested:{TurnSignal:{values:{TURN_NONE:0,TURN_LEFT:1,TURN_RIGHT:2}}}},monitor:{nested:{MonitorMessageItem:{fields:{source:{type:"MessageSource",id:1,options:{default:"UNKNOWN"}},msg:{type:"string",id:2},logLevel:{type:"LogLevel",id:3,options:{default:"INFO"}}},nested:{MessageSource:{values:{UNKNOWN:1,CANBUS:2,CONTROL:3,DECISION:4,LOCALIZATION:5,PLANNING:6,PREDICTION:7,SIMULATOR:8,HWSYS:9,ROUTING:10,MONITOR:11,HMI:12,RELATIVE_MAP:13,GNSS:14,CONTI_RADAR:15,RACOBIT_RADAR:16,ULTRASONIC_RADAR:17,MOBILEYE:18,DELPHI_ESR:19}},LogLevel:{values:{INFO:0,WARN:1,ERROR:2,FATAL:3}}}},MonitorMessage:{fields:{header:{type:"apollo.common.Header",id:1},item:{rule:"repeated",type:"MonitorMessageItem",id:2}}}}}}},localization:{nested:{Uncertainty:{fields:{positionStdDev:{type:"apollo.common.Point3D",id:1},orientationStdDev:{type:"apollo.common.Point3D",id:2},linearVelocityStdDev:{type:"apollo.common.Point3D",id:3},linearAccelerationStdDev:{type:"apollo.common.Point3D",id:4},angularVelocityStdDev:{type:"apollo.common.Point3D",id:5}}},LocalizationEstimate:{fields:{header:{type:"apollo.common.Header",id:1},pose:{type:"apollo.localization.Pose",id:2},uncertainty:{type:"Uncertainty",id:3},measurementTime:{type:"double",id:4},trajectoryPoint:{rule:"repeated",type:"apollo.common.TrajectoryPoint",id:5},msfStatus:{type:"MsfStatus",id:6},sensorStatus:{type:"MsfSensorMsgStatus",id:7}}},MeasureState:{values:{OK:0,WARNNING:1,ERROR:2,CRITICAL_ERROR:3,FATAL_ERROR:4}},LocalizationStatus:{fields:{header:{type:"apollo.common.Header",id:1},fusionStatus:{type:"MeasureState",id:2},gnssStatus:{type:"MeasureState",id:3,options:{deprecated:!0}},lidarStatus:{type:"MeasureState",id:4,options:{deprecated:!0}},measurementTime:{type:"double",id:5},stateMessage:{type:"string",id:6}}},Pose:{fields:{position:{type:"apollo.common.PointENU",id:1},orientation:{type:"apollo.common.Quaternion",id:2},linearVelocity:{type:"apollo.common.Point3D",id:3},linearAcceleration:{type:"apollo.common.Point3D",id:4},angularVelocity:{type:"apollo.common.Point3D",id:5},heading:{type:"double",id:6},linearAccelerationVrf:{type:"apollo.common.Point3D",id:7},angularVelocityVrf:{type:"apollo.common.Point3D",id:8},eulerAngles:{type:"apollo.common.Point3D",id:9}}},LocalLidarStatus:{values:{MSF_LOCAL_LIDAR_NORMAL:0,MSF_LOCAL_LIDAR_MAP_MISSING:1,MSF_LOCAL_LIDAR_EXTRINSICS_MISSING:2,MSF_LOCAL_LIDAR_MAP_LOADING_FAILED:3,MSF_LOCAL_LIDAR_NO_OUTPUT:4,MSF_LOCAL_LIDAR_OUT_OF_MAP:5,MSF_LOCAL_LIDAR_NOT_GOOD:6,MSF_LOCAL_LIDAR_UNDEFINED_STATUS:7}},LocalLidarQuality:{values:{MSF_LOCAL_LIDAR_VERY_GOOD:0,MSF_LOCAL_LIDAR_GOOD:1,MSF_LOCAL_LIDAR_NOT_BAD:2,MSF_LOCAL_LIDAR_BAD:3}},LocalLidarConsistency:{values:{MSF_LOCAL_LIDAR_CONSISTENCY_00:0,MSF_LOCAL_LIDAR_CONSISTENCY_01:1,MSF_LOCAL_LIDAR_CONSISTENCY_02:2,MSF_LOCAL_LIDAR_CONSISTENCY_03:3}},GnssConsistency:{values:{MSF_GNSS_CONSISTENCY_00:0,MSF_GNSS_CONSISTENCY_01:1,MSF_GNSS_CONSISTENCY_02:2,MSF_GNSS_CONSISTENCY_03:3}},GnssPositionType:{values:{NONE:0,FIXEDPOS:1,FIXEDHEIGHT:2,FLOATCONV:4,WIDELANE:5,NARROWLANE:6,DOPPLER_VELOCITY:8,SINGLE:16,PSRDIFF:17,WAAS:18,PROPOGATED:19,OMNISTAR:20,L1_FLOAT:32,IONOFREE_FLOAT:33,NARROW_FLOAT:34,L1_INT:48,WIDE_INT:49,NARROW_INT:50,RTK_DIRECT_INS:51,INS_SBAS:52,INS_PSRSP:53,INS_PSRDIFF:54,INS_RTKFLOAT:55,INS_RTKFIXED:56,INS_OMNISTAR:57,INS_OMNISTAR_HP:58,INS_OMNISTAR_XP:59,OMNISTAR_HP:64,OMNISTAR_XP:65,PPP_CONVERGING:68,PPP:69,INS_PPP_Converging:73,INS_PPP:74,MSG_LOSS:91}},ImuMsgDelayStatus:{values:{IMU_DELAY_NORMAL:0,IMU_DELAY_1:1,IMU_DELAY_2:2,IMU_DELAY_3:3,IMU_DELAY_ABNORMAL:4}},ImuMsgMissingStatus:{values:{IMU_MISSING_NORMAL:0,IMU_MISSING_1:1,IMU_MISSING_2:2,IMU_MISSING_3:3,IMU_MISSING_4:4,IMU_MISSING_5:5,IMU_MISSING_ABNORMAL:6}},ImuMsgDataStatus:{values:{IMU_DATA_NORMAL:0,IMU_DATA_ABNORMAL:1,IMU_DATA_OTHER:2}},MsfRunningStatus:{values:{MSF_SOL_LIDAR_GNSS:0,MSF_SOL_X_GNSS:1,MSF_SOL_LIDAR_X:2,MSF_SOL_LIDAR_XX:3,MSF_SOL_LIDAR_XXX:4,MSF_SOL_X_X:5,MSF_SOL_X_XX:6,MSF_SOL_X_XXX:7,MSF_SSOL_LIDAR_GNSS:8,MSF_SSOL_X_GNSS:9,MSF_SSOL_LIDAR_X:10,MSF_SSOL_LIDAR_XX:11,MSF_SSOL_LIDAR_XXX:12,MSF_SSOL_X_X:13,MSF_SSOL_X_XX:14,MSF_SSOL_X_XXX:15,MSF_NOSOL_LIDAR_GNSS:16,MSF_NOSOL_X_GNSS:17,MSF_NOSOL_LIDAR_X:18,MSF_NOSOL_LIDAR_XX:19,MSF_NOSOL_LIDAR_XXX:20,MSF_NOSOL_X_X:21,MSF_NOSOL_X_XX:22,MSF_NOSOL_X_XXX:23,MSF_RUNNING_INIT:24}},MsfSensorMsgStatus:{fields:{imuDelayStatus:{type:"ImuMsgDelayStatus",id:1},imuMissingStatus:{type:"ImuMsgMissingStatus",id:2},imuDataStatus:{type:"ImuMsgDataStatus",id:3}}},MsfStatus:{fields:{localLidarConsistency:{type:"LocalLidarConsistency",id:1},gnssConsistency:{type:"GnssConsistency",id:2},localLidarStatus:{type:"LocalLidarStatus",id:3},localLidarQuality:{type:"LocalLidarQuality",id:4},gnssposPositionType:{type:"GnssPositionType",id:5},msfRunningStatus:{type:"MsfRunningStatus",id:6}}}}},canbus:{nested:{Chassis:{fields:{engineStarted:{type:"bool",id:3},engineRpm:{type:"float",id:4,options:{default:null}},speedMps:{type:"float",id:5,options:{default:null}},odometerM:{type:"float",id:6,options:{default:null}},fuelRangeM:{type:"int32",id:7},throttlePercentage:{type:"float",id:8,options:{default:null}},brakePercentage:{type:"float",id:9,options:{default:null}},steeringPercentage:{type:"float",id:11,options:{default:null}},steeringTorqueNm:{type:"float",id:12,options:{default:null}},parkingBrake:{type:"bool",id:13},highBeamSignal:{type:"bool",id:14,options:{deprecated:!0}},lowBeamSignal:{type:"bool",id:15,options:{deprecated:!0}},leftTurnSignal:{type:"bool",id:16,options:{deprecated:!0}},rightTurnSignal:{type:"bool",id:17,options:{deprecated:!0}},horn:{type:"bool",id:18,options:{deprecated:!0}},wiper:{type:"bool",id:19},disengageStatus:{type:"bool",id:20,options:{deprecated:!0}},drivingMode:{type:"DrivingMode",id:21,options:{default:"COMPLETE_MANUAL"}},errorCode:{type:"ErrorCode",id:22,options:{default:"NO_ERROR"}},gearLocation:{type:"GearPosition",id:23},steeringTimestamp:{type:"double",id:24},header:{type:"apollo.common.Header",id:25},chassisErrorMask:{type:"int32",id:26,options:{default:0}},signal:{type:"apollo.common.VehicleSignal",id:27},chassisGps:{type:"ChassisGPS",id:28},engageAdvice:{type:"apollo.common.EngageAdvice",id:29},wheelSpeed:{type:"WheelSpeed",id:30},surround:{type:"Surround",id:31},license:{type:"License",id:32}},nested:{DrivingMode:{values:{COMPLETE_MANUAL:0,COMPLETE_AUTO_DRIVE:1,AUTO_STEER_ONLY:2,AUTO_SPEED_ONLY:3,EMERGENCY_MODE:4}},ErrorCode:{values:{NO_ERROR:0,CMD_NOT_IN_PERIOD:1,CHASSIS_ERROR:2,MANUAL_INTERVENTION:3,CHASSIS_CAN_NOT_IN_PERIOD:4,UNKNOWN_ERROR:5}},GearPosition:{values:{GEAR_NEUTRAL:0,GEAR_DRIVE:1,GEAR_REVERSE:2,GEAR_PARKING:3,GEAR_LOW:4,GEAR_INVALID:5,GEAR_NONE:6}}}},ChassisGPS:{fields:{latitude:{type:"double",id:1},longitude:{type:"double",id:2},gpsValid:{type:"bool",id:3},year:{type:"int32",id:4},month:{type:"int32",id:5},day:{type:"int32",id:6},hours:{type:"int32",id:7},minutes:{type:"int32",id:8},seconds:{type:"int32",id:9},compassDirection:{type:"double",id:10},pdop:{type:"double",id:11},isGpsFault:{type:"bool",id:12},isInferred:{type:"bool",id:13},altitude:{type:"double",id:14},heading:{type:"double",id:15},hdop:{type:"double",id:16},vdop:{type:"double",id:17},quality:{type:"GpsQuality",id:18},numSatellites:{type:"int32",id:19},gpsSpeed:{type:"double",id:20}}},GpsQuality:{values:{FIX_NO:0,FIX_2D:1,FIX_3D:2,FIX_INVALID:3}},WheelSpeed:{fields:{isWheelSpdRrValid:{type:"bool",id:1,options:{default:!1}},wheelDirectionRr:{type:"WheelSpeedType",id:2,options:{default:"INVALID"}},wheelSpdRr:{type:"double",id:3,options:{default:0}},isWheelSpdRlValid:{type:"bool",id:4,options:{default:!1}},wheelDirectionRl:{type:"WheelSpeedType",id:5,options:{default:"INVALID"}},wheelSpdRl:{type:"double",id:6,options:{default:0}},isWheelSpdFrValid:{type:"bool",id:7,options:{default:!1}},wheelDirectionFr:{type:"WheelSpeedType",id:8,options:{default:"INVALID"}},wheelSpdFr:{type:"double",id:9,options:{default:0}},isWheelSpdFlValid:{type:"bool",id:10,options:{default:!1}},wheelDirectionFl:{type:"WheelSpeedType",id:11,options:{default:"INVALID"}},wheelSpdFl:{type:"double",id:12,options:{default:0}}},nested:{WheelSpeedType:{values:{FORWARD:0,BACKWARD:1,STANDSTILL:2,INVALID:3}}}},Sonar:{fields:{range:{type:"double",id:1},translation:{type:"apollo.common.Point3D",id:2},rotation:{type:"apollo.common.Quaternion",id:3}}},Surround:{fields:{crossTrafficAlertLeft:{type:"bool",id:1},crossTrafficAlertLeftEnabled:{type:"bool",id:2},blindSpotLeftAlert:{type:"bool",id:3},blindSpotLeftAlertEnabled:{type:"bool",id:4},crossTrafficAlertRight:{type:"bool",id:5},crossTrafficAlertRightEnabled:{type:"bool",id:6},blindSpotRightAlert:{type:"bool",id:7},blindSpotRightAlertEnabled:{type:"bool",id:8},sonar00:{type:"double",id:9},sonar01:{type:"double",id:10},sonar02:{type:"double",id:11},sonar03:{type:"double",id:12},sonar04:{type:"double",id:13},sonar05:{type:"double",id:14},sonar06:{type:"double",id:15},sonar07:{type:"double",id:16},sonar08:{type:"double",id:17},sonar09:{type:"double",id:18},sonar10:{type:"double",id:19},sonar11:{type:"double",id:20},sonarEnabled:{type:"bool",id:21},sonarFault:{type:"bool",id:22},sonarRange:{rule:"repeated",type:"double",id:23,options:{packed:!1}},sonar:{rule:"repeated",type:"Sonar",id:24}}},License:{fields:{vin:{type:"string",id:1}}}}},planning:{nested:{autotuning:{nested:{PathPointwiseFeature:{fields:{l:{type:"double",id:1},dl:{type:"double",id:2},ddl:{type:"double",id:3},kappa:{type:"double",id:4},obstacleInfo:{rule:"repeated",type:"ObstacleFeature",id:5},leftBoundFeature:{type:"BoundRelatedFeature",id:6},rightBoundFeature:{type:"BoundRelatedFeature",id:7}},nested:{ObstacleFeature:{fields:{lateralDistance:{type:"double",id:1}}},BoundRelatedFeature:{fields:{boundDistance:{type:"double",id:1},crossableLevel:{type:"CrossableLevel",id:2}},nested:{CrossableLevel:{values:{CROSS_FREE:0,CROSS_ABLE:1,CROSS_FORBIDDEN:2}}}}}},SpeedPointwiseFeature:{fields:{s:{type:"double",id:1,options:{default:0}},t:{type:"double",id:2,options:{default:0}},v:{type:"double",id:3,options:{default:0}},speedLimit:{type:"double",id:4,options:{default:0}},acc:{type:"double",id:5,options:{default:0}},jerk:{type:"double",id:6,options:{default:0}},followObsFeature:{rule:"repeated",type:"ObstacleFeature",id:7},overtakeObsFeature:{rule:"repeated",type:"ObstacleFeature",id:8},nudgeObsFeature:{rule:"repeated",type:"ObstacleFeature",id:9},stopObsFeature:{rule:"repeated",type:"ObstacleFeature",id:10},collisionTimes:{type:"int32",id:11,options:{default:0}},virtualObsFeature:{rule:"repeated",type:"ObstacleFeature",id:12},lateralAcc:{type:"double",id:13,options:{default:0}},pathCurvatureAbs:{type:"double",id:14,options:{default:0}},sidepassFrontObsFeature:{rule:"repeated",type:"ObstacleFeature",id:15},sidepassRearObsFeature:{rule:"repeated",type:"ObstacleFeature",id:16}},nested:{ObstacleFeature:{fields:{longitudinalDistance:{type:"double",id:1},obstacleSpeed:{type:"double",id:2},lateralDistance:{type:"double",id:3,options:{default:10}},probability:{type:"double",id:4},relativeV:{type:"double",id:5}}}}},TrajectoryPointwiseFeature:{fields:{pathInputFeature:{type:"PathPointwiseFeature",id:1},speedInputFeature:{type:"SpeedPointwiseFeature",id:2}}},TrajectoryFeature:{fields:{pointFeature:{rule:"repeated",type:"TrajectoryPointwiseFeature",id:1}}},PathPointRawFeature:{fields:{cartesianCoord:{type:"apollo.common.PathPoint",id:1},frenetCoord:{type:"apollo.common.FrenetFramePoint",id:2}}},SpeedPointRawFeature:{fields:{s:{type:"double",id:1},t:{type:"double",id:2},v:{type:"double",id:3},a:{type:"double",id:4},j:{type:"double",id:5},speedLimit:{type:"double",id:6},follow:{rule:"repeated",type:"ObjectDecisionFeature",id:10},overtake:{rule:"repeated",type:"ObjectDecisionFeature",id:11},virtualDecision:{rule:"repeated",type:"ObjectDecisionFeature",id:13},stop:{rule:"repeated",type:"ObjectDecisionFeature",id:14},collision:{rule:"repeated",type:"ObjectDecisionFeature",id:15},nudge:{rule:"repeated",type:"ObjectDecisionFeature",id:12},sidepassFront:{rule:"repeated",type:"ObjectDecisionFeature",id:16},sidepassRear:{rule:"repeated",type:"ObjectDecisionFeature",id:17},keepClear:{rule:"repeated",type:"ObjectDecisionFeature",id:18}},nested:{ObjectDecisionFeature:{fields:{id:{type:"int32",id:1},relativeS:{type:"double",id:2},relativeL:{type:"double",id:3},relativeV:{type:"double",id:4},speed:{type:"double",id:5}}}}},ObstacleSTRawData:{fields:{obstacleStData:{rule:"repeated",type:"ObstacleSTData",id:1},obstacleStNudge:{rule:"repeated",type:"ObstacleSTData",id:2},obstacleStSidepass:{rule:"repeated",type:"ObstacleSTData",id:3}},nested:{STPointPair:{fields:{sLower:{type:"double",id:1},sUpper:{type:"double",id:2},t:{type:"double",id:3},l:{type:"double",id:4,options:{default:10}}}},ObstacleSTData:{fields:{id:{type:"int32",id:1},speed:{type:"double",id:2},isVirtual:{type:"bool",id:3},probability:{type:"double",id:4},polygon:{rule:"repeated",type:"STPointPair",id:8},distribution:{rule:"repeated",type:"STPointPair",id:9}}}}},TrajectoryPointRawFeature:{fields:{pathFeature:{type:"PathPointRawFeature",id:1},speedFeature:{type:"SpeedPointRawFeature",id:2}}},TrajectoryRawFeature:{fields:{pointFeature:{rule:"repeated",type:"TrajectoryPointRawFeature",id:1},stRawData:{type:"ObstacleSTRawData",id:2}}}}},DeciderCreepConfig:{fields:{stopDistance:{type:"double",id:1,options:{default:.5}},speedLimit:{type:"double",id:2,options:{default:1}},maxValidStopDistance:{type:"double",id:3,options:{default:.3}},minBoundaryT:{type:"double",id:4,options:{default:6}}}},RuleCrosswalkConfig:{fields:{enabled:{type:"bool",id:1,options:{default:!0}},stopDistance:{type:"double",id:2,options:{default:1}}}},RuleStopSignConfig:{fields:{enabled:{type:"bool",id:1,options:{default:!0}},stopDistance:{type:"double",id:2,options:{default:1}}}},RuleTrafficLightConfig:{fields:{enabled:{type:"bool",id:1,options:{default:!0}},stopDistance:{type:"double",id:2,options:{default:1}},signalExpireTimeSec:{type:"double",id:3,options:{default:5}}}},DeciderRuleBasedStopConfig:{fields:{crosswalk:{type:"RuleCrosswalkConfig",id:1},stopSign:{type:"RuleStopSignConfig",id:2},trafficLight:{type:"RuleTrafficLightConfig",id:3}}},SidePassSafetyConfig:{fields:{minObstacleLateralDistance:{type:"double",id:1,options:{default:1}},maxOverlapSRange:{type:"double",id:2,options:{default:5}},safeDurationReachRefLine:{type:"double",id:3,options:{default:5}}}},TargetLane:{fields:{id:{type:"string",id:1},startS:{type:"double",id:2},endS:{type:"double",id:3},speedLimit:{type:"double",id:4}}},ObjectIgnore:{fields:{}},StopReasonCode:{values:{STOP_REASON_HEAD_VEHICLE:1,STOP_REASON_DESTINATION:2,STOP_REASON_PEDESTRIAN:3,STOP_REASON_OBSTACLE:4,STOP_REASON_PREPARKING:5,STOP_REASON_SIGNAL:100,STOP_REASON_STOP_SIGN:101,STOP_REASON_YIELD_SIGN:102,STOP_REASON_CLEAR_ZONE:103,STOP_REASON_CROSSWALK:104,STOP_REASON_CREEPER:105,STOP_REASON_REFERENCE_END:106,STOP_REASON_YELLOW_SIGNAL:107,STOP_REASON_PULL_OVER:108}},ObjectStop:{fields:{reasonCode:{type:"StopReasonCode",id:1},distanceS:{type:"double",id:2},stopPoint:{type:"apollo.common.PointENU",id:3},stopHeading:{type:"double",id:4},waitForObstacle:{rule:"repeated",type:"string",id:5}}},ObjectNudge:{fields:{type:{type:"Type",id:1},distanceL:{type:"double",id:2}},nested:{Type:{values:{LEFT_NUDGE:1,RIGHT_NUDGE:2,NO_NUDGE:3}}}},ObjectYield:{fields:{distanceS:{type:"double",id:1},fencePoint:{type:"apollo.common.PointENU",id:2},fenceHeading:{type:"double",id:3},timeBuffer:{type:"double",id:4}}},ObjectFollow:{fields:{distanceS:{type:"double",id:1},fencePoint:{type:"apollo.common.PointENU",id:2},fenceHeading:{type:"double",id:3}}},ObjectOvertake:{fields:{distanceS:{type:"double",id:1},fencePoint:{type:"apollo.common.PointENU",id:2},fenceHeading:{type:"double",id:3},timeBuffer:{type:"double",id:4}}},ObjectSidePass:{fields:{type:{type:"Type",id:1}},nested:{Type:{values:{LEFT:1,RIGHT:2}}}},ObjectAvoid:{fields:{}},ObjectDecisionType:{oneofs:{objectTag:{oneof:["ignore","stop","follow","yield","overtake","nudge","avoid"]}},fields:{ignore:{type:"ObjectIgnore",id:1},stop:{type:"ObjectStop",id:2},follow:{type:"ObjectFollow",id:3},yield:{type:"ObjectYield",id:4},overtake:{type:"ObjectOvertake",id:5},nudge:{type:"ObjectNudge",id:6},avoid:{type:"ObjectAvoid",id:7}}},ObjectDecision:{fields:{id:{type:"string",id:1},perceptionId:{type:"int32",id:2},objectDecision:{rule:"repeated",type:"ObjectDecisionType",id:3}}},ObjectDecisions:{fields:{decision:{rule:"repeated",type:"ObjectDecision",id:1}}},MainStop:{fields:{reasonCode:{type:"StopReasonCode",id:1},reason:{type:"string",id:2},stopPoint:{type:"apollo.common.PointENU",id:3},stopHeading:{type:"double",id:4},changeLaneType:{type:"apollo.routing.ChangeLaneType",id:5}}},EmergencyStopHardBrake:{fields:{}},EmergencyStopCruiseToStop:{fields:{}},MainEmergencyStop:{oneofs:{task:{oneof:["hardBrake","cruiseToStop"]}},fields:{reasonCode:{type:"ReasonCode",id:1},reason:{type:"string",id:2},hardBrake:{type:"EmergencyStopHardBrake",id:3},cruiseToStop:{type:"EmergencyStopCruiseToStop",id:4}},nested:{ReasonCode:{values:{ESTOP_REASON_INTERNAL_ERR:1,ESTOP_REASON_COLLISION:2,ESTOP_REASON_ST_FIND_PATH:3,ESTOP_REASON_ST_MAKE_DECISION:4,ESTOP_REASON_SENSOR_ERROR:5}}}},MainCruise:{fields:{changeLaneType:{type:"apollo.routing.ChangeLaneType",id:1}}},MainChangeLane:{fields:{type:{type:"Type",id:1},defaultLane:{rule:"repeated",type:"TargetLane",id:2},defaultLaneStop:{type:"MainStop",id:3},targetLaneStop:{type:"MainStop",id:4}},nested:{Type:{values:{LEFT:1,RIGHT:2}}}},MainMissionComplete:{fields:{stopPoint:{type:"apollo.common.PointENU",id:1},stopHeading:{type:"double",id:2}}},MainNotReady:{fields:{reason:{type:"string",id:1}}},MainParking:{fields:{}},MainDecision:{oneofs:{task:{oneof:["cruise","stop","estop","changeLane","missionComplete","notReady","parking"]}},fields:{cruise:{type:"MainCruise",id:1},stop:{type:"MainStop",id:2},estop:{type:"MainEmergencyStop",id:3},changeLane:{type:"MainChangeLane",id:4,options:{deprecated:!0}},missionComplete:{type:"MainMissionComplete",id:6},notReady:{type:"MainNotReady",id:7},parking:{type:"MainParking",id:8},targetLane:{rule:"repeated",type:"TargetLane",id:5,options:{deprecated:!0}}}},DecisionResult:{fields:{mainDecision:{type:"MainDecision",id:1},objectDecision:{type:"ObjectDecisions",id:2},vehicleSignal:{type:"apollo.common.VehicleSignal",id:3}}},DpPolyPathConfig:{fields:{waypointSamplerConfig:{type:"WaypointSamplerConfig",id:1},evalTimeInterval:{type:"double",id:2,options:{default:.1}},pathResolution:{type:"double",id:3,options:{default:.1}},obstacleIgnoreDistance:{type:"double",id:4,options:{default:20}},obstacleCollisionDistance:{type:"double",id:5,options:{default:.2}},obstacleRiskDistance:{type:"double",id:6,options:{default:2}},obstacleCollisionCost:{type:"double",id:7,options:{default:1e3}},pathLCost:{type:"double",id:8},pathDlCost:{type:"double",id:9},pathDdlCost:{type:"double",id:10},pathLCostParamL0:{type:"double",id:11},pathLCostParamB:{type:"double",id:12},pathLCostParamK:{type:"double",id:13},pathOutLaneCost:{type:"double",id:14},pathEndLCost:{type:"double",id:15}}},DpStSpeedConfig:{fields:{totalPathLength:{type:"double",id:1,options:{default:.1}},totalTime:{type:"double",id:2,options:{default:3}},matrixDimensionS:{type:"int32",id:3,options:{default:100}},matrixDimensionT:{type:"int32",id:4,options:{default:10}},speedWeight:{type:"double",id:5,options:{default:0}},accelWeight:{type:"double",id:6,options:{default:10}},jerkWeight:{type:"double",id:7,options:{default:10}},obstacleWeight:{type:"double",id:8,options:{default:1}},referenceWeight:{type:"double",id:9,options:{default:0}},goDownBuffer:{type:"double",id:10,options:{default:5}},goUpBuffer:{type:"double",id:11,options:{default:5}},defaultObstacleCost:{type:"double",id:12,options:{default:1e10}},defaultSpeedCost:{type:"double",id:13,options:{default:1}},exceedSpeedPenalty:{type:"double",id:14,options:{default:10}},lowSpeedPenalty:{type:"double",id:15,options:{default:2.5}},keepClearLowSpeedPenalty:{type:"double",id:16,options:{default:10}},accelPenalty:{type:"double",id:20,options:{default:2}},decelPenalty:{type:"double",id:21,options:{default:2}},positiveJerkCoeff:{type:"double",id:30,options:{default:1}},negativeJerkCoeff:{type:"double",id:31,options:{default:300}},maxAcceleration:{type:"double",id:40,options:{default:4.5}},maxDeceleration:{type:"double",id:41,options:{default:-4.5}},stBoundaryConfig:{type:"apollo.planning.StBoundaryConfig",id:50}}},LonCondition:{fields:{s:{type:"double",id:1,options:{default:0}},ds:{type:"double",id:2,options:{default:0}},dds:{type:"double",id:3,options:{default:0}}}},LatCondition:{fields:{l:{type:"double",id:1,options:{default:0}},dl:{type:"double",id:2,options:{default:0}},ddl:{type:"double",id:3,options:{default:0}}}},TStrategy:{fields:{tMarkers:{rule:"repeated",type:"double",id:1,options:{packed:!1}},tStep:{type:"double",id:2,options:{default:.5}},strategy:{type:"string",id:3}}},SStrategy:{fields:{sMarkers:{rule:"repeated",type:"double",id:1,options:{packed:!1}},sStep:{type:"double",id:2,options:{default:.5}},strategy:{type:"string",id:3}}},LonSampleConfig:{fields:{lonEndCondition:{type:"LonCondition",id:1},tStrategy:{type:"TStrategy",id:2}}},LatSampleConfig:{fields:{latEndCondition:{type:"LatCondition",id:1},sStrategy:{type:"SStrategy",id:2}}},LatticeSamplingConfig:{fields:{lonSampleConfig:{type:"LonSampleConfig",id:1},latSampleConfig:{type:"LatSampleConfig",id:2}}},PathTimePoint:{fields:{t:{type:"double",id:1},s:{type:"double",id:2},obstacleId:{type:"string",id:4}}},SamplePoint:{fields:{pathTimePoint:{type:"PathTimePoint",id:1},refV:{type:"double",id:2}}},PathTimeObstacle:{fields:{obstacleId:{type:"string",id:1},bottomLeft:{type:"PathTimePoint",id:2},upperLeft:{type:"PathTimePoint",id:3},upperRight:{type:"PathTimePoint",id:4},bottomRight:{type:"PathTimePoint",id:5},timeLower:{type:"double",id:6},timeUpper:{type:"double",id:7},pathLower:{type:"double",id:8},pathUpper:{type:"double",id:9}}},StopPoint:{fields:{s:{type:"double",id:1},type:{type:"Type",id:2,options:{default:"HARD"}}},nested:{Type:{values:{HARD:0,SOFT:1}}}},PlanningTarget:{fields:{stopPoint:{type:"StopPoint",id:1},cruiseSpeed:{type:"double",id:2}}},NaviObstacleDeciderConfig:{fields:{minNudgeDistance:{type:"double",id:1,options:{default:.2}},maxNudgeDistance:{type:"double",id:2,options:{default:1.2}},maxAllowNudgeSpeed:{type:"double",id:3,options:{default:16.667}},safeDistance:{type:"double",id:4,options:{default:.2}},nudgeAllowTolerance:{type:"double",id:5,options:{default:.05}},cyclesNumber:{type:"uint32",id:6,options:{default:3}},judgeDisCoeff:{type:"double",id:7,options:{default:2}},basisDisValue:{type:"double",id:8,options:{default:30}},lateralVelocityValue:{type:"double",id:9,options:{default:.5}},speedDeciderDetectRange:{type:"double",id:10,options:{default:1}},maxKeepNudgeCycles:{type:"uint32",id:11,options:{default:100}}}},NaviPathDeciderConfig:{fields:{minPathLength:{type:"double",id:1,options:{default:5}},minLookForwardTime:{type:"uint32",id:2,options:{default:2}},maxKeepLaneDistance:{type:"double",id:3,options:{default:.8}},maxKeepLaneShiftY:{type:"double",id:4,options:{default:20}},minKeepLaneOffset:{type:"double",id:5,options:{default:15}},keepLaneShiftCompensation:{type:"double",id:6,options:{default:.01}},moveDestLaneConfigTalbe:{type:"MoveDestLaneConfigTable",id:7},moveDestLaneCompensation:{type:"double",id:8,options:{default:.35}},maxKappaThreshold:{type:"double",id:9,options:{default:0}},kappaMoveDestLaneCompensation:{type:"double",id:10,options:{default:0}},startPlanPointFrom:{type:"uint32",id:11,options:{default:0}}}},MoveDestLaneConfigTable:{fields:{lateralShift:{rule:"repeated",type:"ShiftConfig",id:1}}},ShiftConfig:{fields:{maxSpeed:{type:"double",id:1,options:{default:4.16}},maxMoveDestLaneShiftY:{type:"double",id:3,options:{default:.4}}}},NaviSpeedDeciderConfig:{fields:{preferredAccel:{type:"double",id:1,options:{default:2}},preferredDecel:{type:"double",id:2,options:{default:2}},preferredJerk:{type:"double",id:3,options:{default:2}},maxAccel:{type:"double",id:4,options:{default:4}},maxDecel:{type:"double",id:5,options:{default:5}},obstacleBuffer:{type:"double",id:6,options:{default:.5}},safeDistanceBase:{type:"double",id:7,options:{default:2}},safeDistanceRatio:{type:"double",id:8,options:{default:1}},followingAccelRatio:{type:"double",id:9,options:{default:.5}},softCentricAccelLimit:{type:"double",id:10,options:{default:1.2}},hardCentricAccelLimit:{type:"double",id:11,options:{default:1.5}},hardSpeedLimit:{type:"double",id:12,options:{default:100}},hardAccelLimit:{type:"double",id:13,options:{default:10}},enableSafePath:{type:"bool",id:14,options:{default:!0}},enablePlanningStartPoint:{type:"bool",id:15,options:{default:!0}},enableAccelAutoCompensation:{type:"bool",id:16,options:{default:!0}},kappaPreview:{type:"double",id:17,options:{default:0}},kappaThreshold:{type:"double",id:18,options:{default:0}}}},DrivingAction:{values:{FOLLOW:0,CHANGE_LEFT:1,CHANGE_RIGHT:2,PULL_OVER:3,STOP:4}},PadMessage:{fields:{header:{type:"apollo.common.Header",id:1},action:{type:"DrivingAction",id:2}}},PlannerOpenSpaceConfig:{fields:{warmStartConfig:{type:"WarmStartConfig",id:1},dualVariableWarmStartConfig:{type:"DualVariableWarmStartConfig",id:2},distanceApproachConfig:{type:"DistanceApproachConfig",id:3},deltaT:{type:"float",id:4,options:{default:1}},maxPositionErrorToEndPoint:{type:"double",id:5,options:{default:.5}},maxThetaErrorToEndPoint:{type:"double",id:6,options:{default:.2}}}},WarmStartConfig:{fields:{xyGridResolution:{type:"double",id:1,options:{default:.2}},phiGridResolution:{type:"double",id:2,options:{default:.05}},maxSteering:{type:"double",id:7,options:{default:.6}},nextNodeNum:{type:"uint64",id:8,options:{default:10}},stepSize:{type:"double",id:9,options:{default:.5}},backPenalty:{type:"double",id:10,options:{default:0}},gearSwitchPenalty:{type:"double",id:11,options:{default:10}},steerPenalty:{type:"double",id:12,options:{default:100}},steerChangePenalty:{type:"double",id:13,options:{default:10}}}},DualVariableWarmStartConfig:{fields:{weightD:{type:"double",id:1,options:{default:1}}}},DistanceApproachConfig:{fields:{weightU:{rule:"repeated",type:"double",id:1,options:{packed:!1}},weightURate:{rule:"repeated",type:"double",id:2,options:{packed:!1}},weightState:{rule:"repeated",type:"double",id:3,options:{packed:!1}},weightStitching:{rule:"repeated",type:"double",id:4,options:{packed:!1}},weightTime:{rule:"repeated",type:"double",id:5,options:{packed:!1}},minSafetyDistance:{type:"double",id:6,options:{default:0}},maxSteerAngle:{type:"double",id:7,options:{default:.6}},maxSteerRate:{type:"double",id:8,options:{default:.6}},maxSpeedForward:{type:"double",id:9,options:{default:3}},maxSpeedReverse:{type:"double",id:10,options:{default:2}},maxAccelerationForward:{type:"double",id:11,options:{default:2}},maxAccelerationReverse:{type:"double",id:12,options:{default:2}},minTimeSampleScaling:{type:"double",id:13,options:{default:.1}},maxTimeSampleScaling:{type:"double",id:14,options:{default:10}},useFixTime:{type:"bool",id:18,options:{default:!1}}}},ADCSignals:{fields:{signal:{rule:"repeated",type:"SignalType",id:1,options:{packed:!1}}},nested:{SignalType:{values:{LEFT_TURN:1,RIGHT_TURN:2,LOW_BEAM_LIGHT:3,HIGH_BEAM_LIGHT:4,FOG_LIGHT:5,EMERGENCY_LIGHT:6}}}},EStop:{fields:{isEstop:{type:"bool",id:1},reason:{type:"string",id:2}}},TaskStats:{fields:{name:{type:"string",id:1},timeMs:{type:"double",id:2}}},LatencyStats:{fields:{totalTimeMs:{type:"double",id:1},taskStats:{rule:"repeated",type:"TaskStats",id:2},initFrameTimeMs:{type:"double",id:3}}},ADCTrajectory:{fields:{header:{type:"apollo.common.Header",id:1},totalPathLength:{type:"double",id:2},totalPathTime:{type:"double",id:3},trajectoryPoint:{rule:"repeated",type:"apollo.common.TrajectoryPoint",id:12},estop:{type:"EStop",id:6},pathPoint:{rule:"repeated",type:"apollo.common.PathPoint",id:13},isReplan:{type:"bool",id:9,options:{default:!1}},gear:{type:"apollo.canbus.Chassis.GearPosition",id:10},decision:{type:"apollo.planning.DecisionResult",id:14},latencyStats:{type:"LatencyStats",id:15},routingHeader:{type:"apollo.common.Header",id:16},debug:{type:"apollo.planning_internal.Debug",id:8},rightOfWayStatus:{type:"RightOfWayStatus",id:17},laneId:{rule:"repeated",type:"apollo.hdmap.Id",id:18},engageAdvice:{type:"apollo.common.EngageAdvice",id:19},criticalRegion:{type:"CriticalRegion",id:20},trajectoryType:{type:"TrajectoryType",id:21,options:{default:"UNKNOWN"}}},nested:{RightOfWayStatus:{values:{UNPROTECTED:0,PROTECTED:1}},CriticalRegion:{fields:{region:{rule:"repeated",type:"apollo.common.Polygon",id:1}}},TrajectoryType:{values:{UNKNOWN:0,NORMAL:1,PATH_FALLBACK:2,SPEED_FALLBACK:3}}}},PathDeciderConfig:{fields:{}},TaskConfig:{oneofs:{taskConfig:{oneof:["dpPolyPathConfig","dpStSpeedConfig","qpSplinePathConfig","qpStSpeedConfig","polyStSpeedConfig","pathDeciderConfig","proceedWithCautionSpeedConfig","qpPiecewiseJerkPathConfig","deciderCreepConfig","deciderRuleBasedStopConfig","sidePassSafetyConfig","sidePassPathDeciderConfig","polyVtSpeedConfig"]}},fields:{taskType:{type:"TaskType",id:1},dpPolyPathConfig:{type:"DpPolyPathConfig",id:2},dpStSpeedConfig:{type:"DpStSpeedConfig",id:3},qpSplinePathConfig:{type:"QpSplinePathConfig",id:4},qpStSpeedConfig:{type:"QpStSpeedConfig",id:5},polyStSpeedConfig:{type:"PolyStSpeedConfig",id:6},pathDeciderConfig:{type:"PathDeciderConfig",id:7},proceedWithCautionSpeedConfig:{type:"ProceedWithCautionSpeedConfig",id:8},qpPiecewiseJerkPathConfig:{type:"QpPiecewiseJerkPathConfig",id:9},deciderCreepConfig:{type:"DeciderCreepConfig",id:10},deciderRuleBasedStopConfig:{type:"DeciderRuleBasedStopConfig",id:11},sidePassSafetyConfig:{type:"SidePassSafetyConfig",id:12},sidePassPathDeciderConfig:{type:"SidePassPathDeciderConfig",id:13},polyVtSpeedConfig:{type:"PolyVTSpeedConfig",id:14}},nested:{TaskType:{values:{DP_POLY_PATH_OPTIMIZER:0,DP_ST_SPEED_OPTIMIZER:1,QP_SPLINE_PATH_OPTIMIZER:2,QP_SPLINE_ST_SPEED_OPTIMIZER:3,PATH_DECIDER:4,SPEED_DECIDER:5,POLY_ST_SPEED_OPTIMIZER:6,NAVI_PATH_DECIDER:7,NAVI_SPEED_DECIDER:8,NAVI_OBSTACLE_DECIDER:9,QP_PIECEWISE_JERK_PATH_OPTIMIZER:10,DECIDER_CREEP:11,DECIDER_RULE_BASED_STOP:12,SIDE_PASS_PATH_DECIDER:13,SIDE_PASS_SAFETY:14,PROCEED_WITH_CAUTION_SPEED:15,DECIDER_RSS:16}}}},ScenarioLaneFollowConfig:{fields:{}},ScenarioSidePassConfig:{fields:{sidePassExitDistance:{type:"double",id:1,options:{default:10}},approachObstacleMaxStopSpeed:{type:"double",id:2,options:{default:1e-5}},approachObstacleMinStopDistance:{type:"double",id:3,options:{default:4}},blockObstacleMinSpeed:{type:"double",id:4,options:{default:.1}}}},ScenarioStopSignUnprotectedConfig:{fields:{startStopSignScenarioDistance:{type:"double",id:1,options:{default:5}},watchVehicleMaxValidStopDistance:{type:"double",id:2,options:{default:5}},maxValidStopDistance:{type:"double",id:3,options:{default:3.5}},maxAdcStopSpeed:{type:"double",id:4,options:{default:.3}},stopDuration:{type:"float",id:5,options:{default:1}},minPassSDistance:{type:"double",id:6,options:{default:3}},waitTimeout:{type:"float",id:7,options:{default:8}}}},ScenarioTrafficLightRightTurnUnprotectedConfig:{fields:{startTrafficLightScenarioTimer:{type:"uint32",id:1,options:{default:20}},maxValidStopDistance:{type:"double",id:2,options:{default:3.5}},maxAdcStopSpeed:{type:"double",id:3,options:{default:.3}},minPassSDistance:{type:"double",id:4,options:{default:3}}}},ScenarioConfig:{oneofs:{scenarioConfig:{oneof:["laneFollowConfig","sidePassConfig","stopSignUnprotectedConfig","trafficLightRightTurnUnprotectedConfig"]}},fields:{scenarioType:{type:"ScenarioType",id:1},laneFollowConfig:{type:"ScenarioLaneFollowConfig",id:2},sidePassConfig:{type:"ScenarioSidePassConfig",id:3},stopSignUnprotectedConfig:{type:"ScenarioStopSignUnprotectedConfig",id:4},trafficLightRightTurnUnprotectedConfig:{type:"ScenarioTrafficLightRightTurnUnprotectedConfig",id:5},stageType:{rule:"repeated",type:"StageType",id:6,options:{packed:!1}},stageConfig:{rule:"repeated",type:"StageConfig",id:7}},nested:{ScenarioType:{values:{LANE_FOLLOW:0,CHANGE_LANE:1,SIDE_PASS:2,APPROACH:3,STOP_SIGN_PROTECTED:4,STOP_SIGN_UNPROTECTED:5,TRAFFIC_LIGHT_LEFT_TURN_PROTECTED:6,TRAFFIC_LIGHT_LEFT_TURN_UNPROTECTED:7,TRAFFIC_LIGHT_RIGHT_TURN_PROTECTED:8,TRAFFIC_LIGHT_RIGHT_TURN_UNPROTECTED:9,TRAFFIC_LIGHT_GO_THROUGH:10}},StageType:{values:{NO_STAGE:0,LANE_FOLLOW_DEFAULT_STAGE:1,STOP_SIGN_UNPROTECTED_PRE_STOP:100,STOP_SIGN_UNPROTECTED_STOP:101,STOP_SIGN_UNPROTECTED_CREEP:102,STOP_SIGN_UNPROTECTED_INTERSECTION_CRUISE:103,SIDE_PASS_APPROACH_OBSTACLE:200,SIDE_PASS_GENERATE_PATH:201,SIDE_PASS_STOP_ON_WAITPOINT:202,SIDE_PASS_DETECT_SAFETY:203,SIDE_PASS_PASS_OBSTACLE:204,SIDE_PASS_BACKUP:205,TRAFFIC_LIGHT_RIGHT_TURN_UNPROTECTED_STOP:300,TRAFFIC_LIGHT_RIGHT_TURN_UNPROTECTED_CREEP:301,TRAFFIC_LIGHT_RIGHT_TURN_UNPROTECTED_INTERSECTION_CRUISE:302}},StageConfig:{fields:{stageType:{type:"StageType",id:1},enabled:{type:"bool",id:2,options:{default:!0}},taskType:{rule:"repeated",type:"TaskConfig.TaskType",id:3,options:{packed:!1}},taskConfig:{rule:"repeated",type:"TaskConfig",id:4}}}}},PlannerPublicRoadConfig:{fields:{scenarioType:{rule:"repeated",type:"ScenarioConfig.ScenarioType",id:1,options:{packed:!1}}}},PlannerNaviConfig:{fields:{task:{rule:"repeated",type:"TaskConfig.TaskType",id:1,options:{packed:!1}},naviPathDeciderConfig:{type:"NaviPathDeciderConfig",id:2},naviSpeedDeciderConfig:{type:"NaviSpeedDeciderConfig",id:3},naviObstacleDeciderConfig:{type:"NaviObstacleDeciderConfig",id:4}}},PlannerType:{values:{RTK:0,PUBLIC_ROAD:1,OPEN_SPACE:2,NAVI:3,LATTICE:4}},RtkPlanningConfig:{fields:{plannerType:{type:"PlannerType",id:1}}},StandardPlanningConfig:{fields:{plannerType:{rule:"repeated",type:"PlannerType",id:1,options:{packed:!1}},plannerPublicRoadConfig:{type:"PlannerPublicRoadConfig",id:2}}},NavigationPlanningConfig:{fields:{plannerType:{rule:"repeated",type:"PlannerType",id:1,options:{packed:!1}},plannerNaviConfig:{type:"PlannerNaviConfig",id:4}}},OpenSpacePlanningConfig:{fields:{plannerType:{rule:"repeated",type:"PlannerType",id:1,options:{packed:!1}},plannerOpenSpaceConfig:{type:"PlannerOpenSpaceConfig",id:2}}},PlanningConfig:{oneofs:{planningConfig:{oneof:["rtkPlanningConfig","standardPlanningConfig","navigationPlanningConfig","openSpacePlanningConfig"]}},fields:{rtkPlanningConfig:{type:"RtkPlanningConfig",id:1},standardPlanningConfig:{type:"StandardPlanningConfig",id:2},navigationPlanningConfig:{type:"NavigationPlanningConfig",id:3},openSpacePlanningConfig:{type:"OpenSpacePlanningConfig",id:4},defaultTaskConfig:{rule:"repeated",type:"TaskConfig",id:5}}},StatsGroup:{fields:{max:{type:"double",id:1},min:{type:"double",id:2,options:{default:1e10}},sum:{type:"double",id:3},avg:{type:"double",id:4},num:{type:"int32",id:5}}},PlanningStats:{fields:{totalPathLength:{type:"StatsGroup",id:1},totalPathTime:{type:"StatsGroup",id:2},v:{type:"StatsGroup",id:3},a:{type:"StatsGroup",id:4},kappa:{type:"StatsGroup",id:5},dkappa:{type:"StatsGroup",id:6}}},ChangeLaneStatus:{fields:{status:{type:"Status",id:1},pathId:{type:"string",id:2},timestamp:{type:"double",id:3}},nested:{Status:{values:{IN_CHANGE_LANE:1,CHANGE_LANE_FAILED:2,CHANGE_LANE_SUCCESS:3}}}},StopTimer:{fields:{obstacleId:{type:"string",id:1},stopTime:{type:"double",id:2}}},CrosswalkStatus:{fields:{crosswalkId:{type:"string",id:1},stopTimers:{rule:"repeated",type:"StopTimer",id:2}}},PullOverStatus:{fields:{inPullOver:{type:"bool",id:1,options:{default:!1}},status:{type:"Status",id:2},inlaneDestPoint:{type:"apollo.common.PointENU",id:3},startPoint:{type:"apollo.common.PointENU",id:4},stopPoint:{type:"apollo.common.PointENU",id:5},stopPointHeading:{type:"double",id:6},reason:{type:"Reason",id:7},statusSetTime:{type:"double",id:8}},nested:{Reason:{values:{DESTINATION:1}},Status:{values:{UNKNOWN:1,IN_OPERATION:2,DONE:3,DISABLED:4}}}},ReroutingStatus:{fields:{lastReroutingTime:{type:"double",id:1},needRerouting:{type:"bool",id:2,options:{default:!1}},routingRequest:{type:"routing.RoutingRequest",id:3}}},RightOfWayStatus:{fields:{junction:{keyType:"string",type:"bool",id:1}}},SidePassStatus:{fields:{status:{type:"Status",id:1},waitStartTime:{type:"double",id:2},passObstacleId:{type:"string",id:3},passSide:{type:"apollo.planning.ObjectSidePass.Type",id:4}},nested:{Status:{values:{UNKNOWN:0,DRIVE:1,WAIT:2,SIDEPASS:3}}}},StopSignStatus:{fields:{stopSignId:{type:"string",id:1},status:{type:"Status",id:2},stopStartTime:{type:"double",id:3},laneWatchVehicles:{rule:"repeated",type:"LaneWatchVehicles",id:4}},nested:{Status:{values:{UNKNOWN:0,DRIVE:1,STOP:2,WAIT:3,CREEP:4,STOP_DONE:5}},LaneWatchVehicles:{fields:{laneId:{type:"string",id:1},watchVehicles:{rule:"repeated",type:"string",id:2}}}}},DestinationStatus:{fields:{hasPassedDestination:{type:"bool",id:1,options:{default:!1}}}},PlanningStatus:{fields:{changeLane:{type:"ChangeLaneStatus",id:1},crosswalk:{type:"CrosswalkStatus",id:2},engageAdvice:{type:"apollo.common.EngageAdvice",id:3},rerouting:{type:"ReroutingStatus",id:4},rightOfWay:{type:"RightOfWayStatus",id:5},sidePass:{type:"SidePassStatus",id:6},stopSign:{type:"StopSignStatus",id:7},destination:{type:"DestinationStatus",id:8},pullOver:{type:"PullOverStatus",id:9}}},PolyStSpeedConfig:{fields:{totalPathLength:{type:"double",id:1},totalTime:{type:"double",id:2},preferredAccel:{type:"double",id:3},preferredDecel:{type:"double",id:4},maxAccel:{type:"double",id:5},minDecel:{type:"double",id:6},speedLimitBuffer:{type:"double",id:7},speedWeight:{type:"double",id:8},jerkWeight:{type:"double",id:9},obstacleWeight:{type:"double",id:10},unblockingObstacleCost:{type:"double",id:11},stBoundaryConfig:{type:"apollo.planning.StBoundaryConfig",id:12}}},PolyVTSpeedConfig:{fields:{totalTime:{type:"double",id:1,options:{default:0}},totalS:{type:"double",id:2,options:{default:0}},numTLayers:{type:"int32",id:3},onlineNumVLayers:{type:"int32",id:4},matrixDimS:{type:"int32",id:5},onlineMaxAcc:{type:"double",id:6},onlineMaxDec:{type:"double",id:7},onlineMaxSpeed:{type:"double",id:8},offlineNumVLayers:{type:"int32",id:9},offlineMaxAcc:{type:"double",id:10},offlineMaxDec:{type:"double",id:11},offlineMaxSpeed:{type:"double",id:12},numEvaluatedPoints:{type:"int32",id:13},samplingUnitV:{type:"double",id:14},maxSamplingUnitV:{type:"double",id:15},stBoundaryConfig:{type:"apollo.planning.StBoundaryConfig",id:16}}},ProceedWithCautionSpeedConfig:{fields:{maxDistance:{type:"double",id:1,options:{default:5}}}},QpPiecewiseJerkPathConfig:{fields:{pathResolution:{type:"double",id:1,options:{default:1}},qpDeltaS:{type:"double",id:2,options:{default:1}},minLookAheadTime:{type:"double",id:3,options:{default:6}},minLookAheadDistance:{type:"double",id:4,options:{default:60}},lateralBuffer:{type:"double",id:5,options:{default:.2}},pathOutputResolution:{type:"double",id:6,options:{default:.1}},lWeight:{type:"double",id:7,options:{default:1}},dlWeight:{type:"double",id:8,options:{default:100}},ddlWeight:{type:"double",id:9,options:{default:500}},dddlWeight:{type:"double",id:10,options:{default:1e3}},guidingLineWeight:{type:"double",id:11,options:{default:1}}}},QuadraticProgrammingProblem:{fields:{paramSize:{type:"int32",id:1},quadraticMatrix:{type:"QPMatrix",id:2},bias:{rule:"repeated",type:"double",id:3,options:{packed:!1}},equalityMatrix:{type:"QPMatrix",id:4},equalityValue:{rule:"repeated",type:"double",id:5,options:{packed:!1}},inequalityMatrix:{type:"QPMatrix",id:6},inequalityValue:{rule:"repeated",type:"double",id:7,options:{packed:!1}},inputMarker:{rule:"repeated",type:"double",id:8,options:{packed:!1}},optimalParam:{rule:"repeated",type:"double",id:9,options:{packed:!1}}}},QPMatrix:{fields:{rowSize:{type:"int32",id:1},colSize:{type:"int32",id:2},element:{rule:"repeated",type:"double",id:3,options:{packed:!1}}}},QuadraticProgrammingProblemSet:{fields:{problem:{rule:"repeated",type:"QuadraticProgrammingProblem",id:1}}},QpSplinePathConfig:{fields:{splineOrder:{type:"uint32",id:1,options:{default:6}},maxSplineLength:{type:"double",id:2,options:{default:15}},maxConstraintInterval:{type:"double",id:3,options:{default:15}},timeResolution:{type:"double",id:4,options:{default:.1}},regularizationWeight:{type:"double",id:5,options:{default:.001}},firstSplineWeightFactor:{type:"double",id:6,options:{default:10}},derivativeWeight:{type:"double",id:7,options:{default:0}},secondDerivativeWeight:{type:"double",id:8,options:{default:0}},thirdDerivativeWeight:{type:"double",id:9,options:{default:100}},referenceLineWeight:{type:"double",id:10,options:{default:0}},numOutput:{type:"uint32",id:11,options:{default:100}},crossLaneLateralExtension:{type:"double",id:12,options:{default:1.2}},crossLaneLongitudinalExtension:{type:"double",id:13,options:{default:50}},historyPathWeight:{type:"double",id:14,options:{default:0}},laneChangeMidL:{type:"double",id:15,options:{default:.6}},pointConstraintSPosition:{type:"double",id:16,options:{default:110}},laneChangeLateralShift:{type:"double",id:17,options:{default:1}},uturnSpeedLimit:{type:"double",id:18,options:{default:5}}}},QpSplineConfig:{fields:{numberOfDiscreteGraphT:{type:"uint32",id:1},splineOrder:{type:"uint32",id:2},speedKernelWeight:{type:"double",id:3},accelKernelWeight:{type:"double",id:4},jerkKernelWeight:{type:"double",id:5},followWeight:{type:"double",id:6},stopWeight:{type:"double",id:7},cruiseWeight:{type:"double",id:8},regularizationWeight:{type:"double",id:9,options:{default:.1}},followDragDistance:{type:"double",id:10},dpStReferenceWeight:{type:"double",id:11},initJerkKernelWeight:{type:"double",id:12},yieldWeight:{type:"double",id:13},yieldDragDistance:{type:"double",id:14}}},QpPiecewiseConfig:{fields:{numberOfEvaluatedGraphT:{type:"uint32",id:1},accelKernelWeight:{type:"double",id:2},jerkKernelWeight:{type:"double",id:3},followWeight:{type:"double",id:4},stopWeight:{type:"double",id:5},cruiseWeight:{type:"double",id:6},regularizationWeight:{type:"double",id:7,options:{default:.1}},followDragDistance:{type:"double",id:8}}},QpStSpeedConfig:{fields:{totalPathLength:{type:"double",id:1,options:{default:200}},totalTime:{type:"double",id:2,options:{default:6}},preferredMaxAcceleration:{type:"double",id:4,options:{default:1.2}},preferredMinDeceleration:{type:"double",id:5,options:{default:-1.8}},maxAcceleration:{type:"double",id:6,options:{default:2}},minDeceleration:{type:"double",id:7,options:{default:-4.5}},qpSplineConfig:{type:"QpSplineConfig",id:8},qpPiecewiseConfig:{type:"QpPiecewiseConfig",id:9},stBoundaryConfig:{type:"apollo.planning.StBoundaryConfig",id:10}}},QpSplineSmootherConfig:{fields:{splineOrder:{type:"uint32",id:1,options:{default:5}},maxSplineLength:{type:"double",id:2,options:{default:25}},regularizationWeight:{type:"double",id:3,options:{default:.1}},secondDerivativeWeight:{type:"double",id:4,options:{default:0}},thirdDerivativeWeight:{type:"double",id:5,options:{default:100}}}},SpiralSmootherConfig:{fields:{maxDeviation:{type:"double",id:1,options:{default:.1}},piecewiseLength:{type:"double",id:2,options:{default:10}},maxIteration:{type:"int32",id:3,options:{default:1e3}},optTol:{type:"double",id:4,options:{default:1e-8}},optAcceptableTol:{type:"double",id:5,options:{default:1e-6}},optAcceptableIteration:{type:"int32",id:6,options:{default:15}},optWeightCurveLength:{type:"double",id:7,options:{default:0}},optWeightKappa:{type:"double",id:8,options:{default:1.5}},optWeightDkappa:{type:"double",id:9,options:{default:1}},optWeightD2kappa:{type:"double",id:10,options:{default:0}}}},CosThetaSmootherConfig:{fields:{maxPointDeviation:{type:"double",id:1,options:{default:5}},numOfIteration:{type:"int32",id:2,options:{default:1e4}},weightCosIncludedAngle:{type:"double",id:3,options:{default:1e4}},acceptableTol:{type:"double",id:4,options:{default:.1}},relax:{type:"double",id:5,options:{default:.2}},reoptQpBound:{type:"double",id:6,options:{default:.05}}}},ReferenceLineSmootherConfig:{oneofs:{SmootherConfig:{oneof:["qpSpline","spiral","cosTheta"]}},fields:{maxConstraintInterval:{type:"double",id:1,options:{default:5}},longitudinalBoundaryBound:{type:"double",id:2,options:{default:1}},lateralBoundaryBound:{type:"double",id:3,options:{default:.1}},numOfTotalPoints:{type:"uint32",id:4,options:{default:500}},curbShift:{type:"double",id:5,options:{default:.2}},drivingSide:{type:"DrivingSide",id:6,options:{default:"RIGHT"}},wideLaneThresholdFactor:{type:"double",id:7,options:{default:2}},wideLaneShiftRemainFactor:{type:"double",id:8,options:{default:.5}},resolution:{type:"double",id:9,options:{default:.02}},qpSpline:{type:"QpSplineSmootherConfig",id:20},spiral:{type:"SpiralSmootherConfig",id:21},cosTheta:{type:"CosThetaSmootherConfig",id:22}},nested:{DrivingSide:{values:{LEFT:1,RIGHT:2}}}},SidePassPathDeciderConfig:{fields:{totalPathLength:{type:"double",id:1},pathResolution:{type:"double",id:2},maxDddl:{type:"double",id:3},lWeight:{type:"double",id:4},dlWeight:{type:"double",id:5},ddlWeight:{type:"double",id:6},dddlWeight:{type:"double",id:7},guidingLineWeight:{type:"double",id:8}}},SLBoundary:{fields:{startS:{type:"double",id:1},endS:{type:"double",id:2},startL:{type:"double",id:3},endL:{type:"double",id:4}}},SpiralCurveConfig:{fields:{simpsonSize:{type:"int32",id:1,options:{default:9}},newtonRaphsonTol:{type:"double",id:2,options:{default:.01}},newtonRaphsonMaxIter:{type:"int32",id:3,options:{default:20}}}},StBoundaryConfig:{fields:{boundaryBuffer:{type:"double",id:1,options:{default:.1}},highSpeedCentricAccelerationLimit:{type:"double",id:2,options:{default:1.2}},lowSpeedCentricAccelerationLimit:{type:"double",id:3,options:{default:1.4}},highSpeedThreshold:{type:"double",id:4,options:{default:20}},lowSpeedThreshold:{type:"double",id:5,options:{default:7}},minimalKappa:{type:"double",id:6,options:{default:1e-5}},pointExtension:{type:"double",id:7,options:{default:1}},lowestSpeed:{type:"double",id:8,options:{default:2.5}},numPointsToAvgKappa:{type:"uint32",id:9,options:{default:4}},staticObsNudgeSpeedRatio:{type:"double",id:10},dynamicObsNudgeSpeedRatio:{type:"double",id:11},centriJerkSpeedCoeff:{type:"double",id:12}}},BacksideVehicleConfig:{fields:{backsideLaneWidth:{type:"double",id:1,options:{default:4}}}},ChangeLaneConfig:{fields:{minOvertakeDistance:{type:"double",id:1,options:{default:10}},minOvertakeTime:{type:"double",id:2,options:{default:2}},enableGuardObstacle:{type:"bool",id:3,options:{default:!1}},guardDistance:{type:"double",id:4,options:{default:100}},minGuardSpeed:{type:"double",id:5,options:{default:1}}}},CreepConfig:{fields:{enabled:{type:"bool",id:1},creepDistanceToStopLine:{type:"double",id:2,options:{default:1}},stopDistance:{type:"double",id:3,options:{default:.5}},speedLimit:{type:"double",id:4,options:{default:1}},maxValidStopDistance:{type:"double",id:5,options:{default:.3}},minBoundaryT:{type:"double",id:6,options:{default:6}},minBoundaryS:{type:"double",id:7,options:{default:3}}}},CrosswalkConfig:{fields:{stopDistance:{type:"double",id:1,options:{default:1}},maxStopDeceleration:{type:"double",id:2,options:{default:4}},minPassSDistance:{type:"double",id:3,options:{default:1}},maxStopSpeed:{type:"double",id:4,options:{default:.3}},maxValidStopDistance:{type:"double",id:5,options:{default:3}},expandSDistance:{type:"double",id:6,options:{default:2}},stopStrickLDistance:{type:"double",id:7,options:{default:4}},stopLooseLDistance:{type:"double",id:8,options:{default:5}},stopTimeout:{type:"double",id:9,options:{default:10}}}},DestinationConfig:{fields:{enablePullOver:{type:"bool",id:1,options:{default:!1}},stopDistance:{type:"double",id:2,options:{default:.5}},pullOverPlanDistance:{type:"double",id:3,options:{default:35}}}},KeepClearConfig:{fields:{enableKeepClearZone:{type:"bool",id:1,options:{default:!0}},enableJunction:{type:"bool",id:2,options:{default:!0}},minPassSDistance:{type:"double",id:3,options:{default:2}}}},PullOverConfig:{fields:{stopDistance:{type:"double",id:1,options:{default:.5}},maxStopSpeed:{type:"double",id:2,options:{default:.3}},maxValidStopDistance:{type:"double",id:3,options:{default:3}},maxStopDeceleration:{type:"double",id:4,options:{default:2.5}},minPassSDistance:{type:"double",id:5,options:{default:1}},bufferToBoundary:{type:"double",id:6,options:{default:.5}},planDistance:{type:"double",id:7,options:{default:35}},operationLength:{type:"double",id:8,options:{default:30}},maxCheckDistance:{type:"double",id:9,options:{default:60}},maxFailureCount:{type:"uint32",id:10,options:{default:10}}}},ReferenceLineEndConfig:{fields:{stopDistance:{type:"double",id:1,options:{default:.5}},minReferenceLineRemainLength:{type:"double",id:2,options:{default:50}}}},ReroutingConfig:{fields:{cooldownTime:{type:"double",id:1,options:{default:3}},prepareReroutingTime:{type:"double",id:2,options:{default:2}}}},SignalLightConfig:{fields:{stopDistance:{type:"double",id:1,options:{default:1}},maxStopDeceleration:{type:"double",id:2,options:{default:4}},minPassSDistance:{type:"double",id:3,options:{default:4}},maxStopDeaccelerationYellowLight:{type:"double",id:4,options:{default:3}},signalExpireTimeSec:{type:"double",id:5,options:{default:5}},righTurnCreep:{type:"CreepConfig",id:6}}},StopSignConfig:{fields:{stopDistance:{type:"double",id:1,options:{default:1}},minPassSDistance:{type:"double",id:2,options:{default:1}},maxStopSpeed:{type:"double",id:3,options:{default:.3}},maxValidStopDistance:{type:"double",id:4,options:{default:3}},stopDuration:{type:"double",id:5,options:{default:1}},watchVehicleMaxValidStopSpeed:{type:"double",id:6,options:{default:.5}},watchVehicleMaxValidStopDistance:{type:"double",id:7,options:{default:5}},waitTimeout:{type:"double",id:8,options:{default:8}},creep:{type:"CreepConfig",id:9}}},TrafficRuleConfig:{oneofs:{config:{oneof:["backsideVehicle","changeLane","crosswalk","destination","keepClear","pullOver","referenceLineEnd","rerouting","signalLight","stopSign"]}},fields:{ruleId:{type:"RuleId",id:1},enabled:{type:"bool",id:2},backsideVehicle:{type:"BacksideVehicleConfig",id:3},changeLane:{type:"ChangeLaneConfig",id:4},crosswalk:{type:"CrosswalkConfig",id:5},destination:{type:"DestinationConfig",id:6},keepClear:{type:"KeepClearConfig",id:7},pullOver:{type:"PullOverConfig",id:8},referenceLineEnd:{type:"ReferenceLineEndConfig",id:9},rerouting:{type:"ReroutingConfig",id:10},signalLight:{type:"SignalLightConfig",id:11},stopSign:{type:"StopSignConfig",id:12}},nested:{RuleId:{values:{BACKSIDE_VEHICLE:1,CHANGE_LANE:2,CROSSWALK:3,DESTINATION:4,KEEP_CLEAR:5,PULL_OVER:6,REFERENCE_LINE_END:7,REROUTING:8,SIGNAL_LIGHT:9,STOP_SIGN:10}}}},TrafficRuleConfigs:{fields:{config:{rule:"repeated",type:"TrafficRuleConfig",id:1}}},WaypointSamplerConfig:{fields:{samplePointsNumEachLevel:{type:"uint32",id:1,options:{default:9}},stepLengthMax:{type:"double",id:2,options:{default:15}},stepLengthMin:{type:"double",id:3,options:{default:8}},lateralSampleOffset:{type:"double",id:4,options:{default:.5}},lateralAdjustCoeff:{type:"double",id:5,options:{default:.5}},sidepassDistance:{type:"double",id:6},navigatorSampleNumEachLevel:{type:"uint32",id:7}}}}},planning_internal:{nested:{Debug:{fields:{planningData:{type:"PlanningData",id:2}}},SpeedPlan:{fields:{name:{type:"string",id:1},speedPoint:{rule:"repeated",type:"apollo.common.SpeedPoint",id:2}}},StGraphBoundaryDebug:{fields:{name:{type:"string",id:1},point:{rule:"repeated",type:"apollo.common.SpeedPoint",id:2},type:{type:"StBoundaryType",id:3}},nested:{StBoundaryType:{values:{ST_BOUNDARY_TYPE_UNKNOWN:1,ST_BOUNDARY_TYPE_STOP:2,ST_BOUNDARY_TYPE_FOLLOW:3,ST_BOUNDARY_TYPE_YIELD:4,ST_BOUNDARY_TYPE_OVERTAKE:5,ST_BOUNDARY_TYPE_KEEP_CLEAR:6}}}},SLFrameDebug:{fields:{name:{type:"string",id:1},sampledS:{rule:"repeated",type:"double",id:2,options:{packed:!1}},staticObstacleLowerBound:{rule:"repeated",type:"double",id:3,options:{packed:!1}},dynamicObstacleLowerBound:{rule:"repeated",type:"double",id:4,options:{packed:!1}},staticObstacleUpperBound:{rule:"repeated",type:"double",id:5,options:{packed:!1}},dynamicObstacleUpperBound:{rule:"repeated",type:"double",id:6,options:{packed:!1}},mapLowerBound:{rule:"repeated",type:"double",id:7,options:{packed:!1}},mapUpperBound:{rule:"repeated",type:"double",id:8,options:{packed:!1}},slPath:{rule:"repeated",type:"apollo.common.SLPoint",id:9},aggregatedBoundaryS:{rule:"repeated",type:"double",id:10,options:{packed:!1}},aggregatedBoundaryLow:{rule:"repeated",type:"double",id:11,options:{packed:!1}},aggregatedBoundaryHigh:{rule:"repeated",type:"double",id:12,options:{packed:!1}}}},STGraphDebug:{fields:{name:{type:"string",id:1},boundary:{rule:"repeated",type:"StGraphBoundaryDebug",id:2},speedLimit:{rule:"repeated",type:"apollo.common.SpeedPoint",id:3},speedProfile:{rule:"repeated",type:"apollo.common.SpeedPoint",id:4},speedConstraint:{type:"STGraphSpeedConstraint",id:5},kernelCruiseRef:{type:"STGraphKernelCuiseRef",id:6},kernelFollowRef:{type:"STGraphKernelFollowRef",id:7}},nested:{STGraphSpeedConstraint:{fields:{t:{rule:"repeated",type:"double",id:1,options:{packed:!1}},lowerBound:{rule:"repeated",type:"double",id:2,options:{packed:!1}},upperBound:{rule:"repeated",type:"double",id:3,options:{packed:!1}}}},STGraphKernelCuiseRef:{fields:{t:{rule:"repeated",type:"double",id:1,options:{packed:!1}},cruiseLineS:{rule:"repeated",type:"double",id:2,options:{packed:!1}}}},STGraphKernelFollowRef:{fields:{t:{rule:"repeated",type:"double",id:1,options:{packed:!1}},followLineS:{rule:"repeated",type:"double",id:2,options:{packed:!1}}}}}},SignalLightDebug:{fields:{adcSpeed:{type:"double",id:1},adcFrontS:{type:"double",id:2},signal:{rule:"repeated",type:"SignalDebug",id:3}},nested:{SignalDebug:{fields:{lightId:{type:"string",id:1},color:{type:"apollo.perception.TrafficLight.Color",id:2},lightStopS:{type:"double",id:3},adcStopDeacceleration:{type:"double",id:4},isStopWallCreated:{type:"bool",id:5}}}}},DecisionTag:{fields:{deciderTag:{type:"string",id:1},decision:{type:"apollo.planning.ObjectDecisionType",id:2}}},ObstacleDebug:{fields:{id:{type:"string",id:1},slBoundary:{type:"apollo.planning.SLBoundary",id:2},decisionTag:{rule:"repeated",type:"DecisionTag",id:3},verticesXCoords:{rule:"repeated",type:"double",id:4,options:{packed:!1}},verticesYCoords:{rule:"repeated",type:"double",id:5,options:{packed:!1}}}},ReferenceLineDebug:{fields:{id:{type:"string",id:1},length:{type:"double",id:2},cost:{type:"double",id:3},isChangeLanePath:{type:"bool",id:4},isDrivable:{type:"bool",id:5},isProtected:{type:"bool",id:6}}},SampleLayerDebug:{fields:{slPoint:{rule:"repeated",type:"apollo.common.SLPoint",id:1}}},DpPolyGraphDebug:{fields:{sampleLayer:{rule:"repeated",type:"SampleLayerDebug",id:1},minCostPoint:{rule:"repeated",type:"apollo.common.SLPoint",id:2}}},ScenarioDebug:{fields:{scenarioType:{type:"apollo.planning.ScenarioConfig.ScenarioType",id:1},stageType:{type:"apollo.planning.ScenarioConfig.StageType",id:2}}},Trajectories:{fields:{trajectory:{rule:"repeated",type:"apollo.common.Trajectory",id:1}}},OpenSpaceDebug:{fields:{trajectories:{type:"apollo.planning_internal.Trajectories",id:1},warmStartTrajectory:{type:"apollo.common.VehicleMotion",id:2},smoothedTrajectory:{type:"apollo.common.VehicleMotion",id:3},warmStartDualLambda:{rule:"repeated",type:"double",id:4,options:{packed:!1}},warmStartDualMiu:{rule:"repeated",type:"double",id:5,options:{packed:!1}},optimizedDualLambda:{rule:"repeated",type:"double",id:6,options:{packed:!1}},optimizedDualMiu:{rule:"repeated",type:"double",id:7,options:{packed:!1}},xyBoundary:{rule:"repeated",type:"double",id:8,options:{packed:!1}},obstacles:{rule:"repeated",type:"apollo.planning_internal.ObstacleDebug",id:9}}},PlanningData:{fields:{adcPosition:{type:"apollo.localization.LocalizationEstimate",id:7},chassis:{type:"apollo.canbus.Chassis",id:8},routing:{type:"apollo.routing.RoutingResponse",id:9},initPoint:{type:"apollo.common.TrajectoryPoint",id:10},path:{rule:"repeated",type:"apollo.common.Path",id:6},speedPlan:{rule:"repeated",type:"SpeedPlan",id:13},stGraph:{rule:"repeated",type:"STGraphDebug",id:14},slFrame:{rule:"repeated",type:"SLFrameDebug",id:15},predictionHeader:{type:"apollo.common.Header",id:16},signalLight:{type:"SignalLightDebug",id:17},obstacle:{rule:"repeated",type:"ObstacleDebug",id:18},referenceLine:{rule:"repeated",type:"ReferenceLineDebug",id:19},dpPolyGraph:{type:"DpPolyGraphDebug",id:20},latticeStImage:{type:"LatticeStTraining",id:21},relativeMap:{type:"apollo.relative_map.MapMsg",id:22},autoTuningTrainingData:{type:"AutoTuningTrainingData",id:23},frontClearDistance:{type:"double",id:24},chart:{rule:"repeated",type:"apollo.dreamview.Chart",id:25},scenario:{type:"ScenarioDebug",id:26},openSpace:{type:"OpenSpaceDebug",id:27}}},LatticeStPixel:{fields:{s:{type:"int32",id:1},t:{type:"int32",id:2},r:{type:"uint32",id:3},g:{type:"uint32",id:4},b:{type:"uint32",id:5}}},LatticeStTraining:{fields:{pixel:{rule:"repeated",type:"LatticeStPixel",id:1},timestamp:{type:"double",id:2},annotation:{type:"string",id:3},numSGrids:{type:"uint32",id:4},numTGrids:{type:"uint32",id:5},sResolution:{type:"double",id:6},tResolution:{type:"double",id:7}}},CostComponents:{fields:{costComponent:{rule:"repeated",type:"double",id:1,options:{packed:!1}}}},AutoTuningTrainingData:{fields:{teacherComponent:{type:"CostComponents",id:1},studentComponent:{type:"CostComponents",id:2}}},CloudReferenceLineRequest:{fields:{laneSegment:{rule:"repeated",type:"apollo.routing.LaneSegment",id:1}}},CloudReferenceLineRoutingRequest:{fields:{routing:{type:"apollo.routing.RoutingResponse",id:1}}},CloudReferenceLineResponse:{fields:{segment:{rule:"repeated",type:"apollo.common.Path",id:1}}}}},perception:{nested:{TrafficLightBox:{fields:{x:{type:"int32",id:1},y:{type:"int32",id:2},width:{type:"int32",id:3},height:{type:"int32",id:4},color:{type:"TrafficLight.Color",id:5},selected:{type:"bool",id:6},cameraName:{type:"string",id:7}}},TrafficLightDebug:{fields:{cropbox:{type:"TrafficLightBox",id:1},box:{rule:"repeated",type:"TrafficLightBox",id:2},signalNum:{type:"int32",id:3},validPos:{type:"int32",id:4},tsDiffPos:{type:"double",id:5},tsDiffSys:{type:"double",id:6},projectError:{type:"int32",id:7},distanceToStopLine:{type:"double",id:8},cameraId:{type:"int32",id:9,options:{deprecated:!0}},cropRoi:{rule:"repeated",type:"TrafficLightBox",id:10},projectedRoi:{rule:"repeated",type:"TrafficLightBox",id:11},rectifiedRoi:{rule:"repeated",type:"TrafficLightBox",id:12},debugRoi:{rule:"repeated",type:"TrafficLightBox",id:13}}},TrafficLight:{fields:{color:{type:"Color",id:1},id:{type:"string",id:2},confidence:{type:"double",id:3,options:{default:1}},trackingTime:{type:"double",id:4},blink:{type:"bool",id:5},remainingTime:{type:"double",id:6}},nested:{Color:{values:{UNKNOWN:0,RED:1,YELLOW:2,GREEN:3,BLACK:4}}}},TrafficLightDetection:{fields:{header:{type:"apollo.common.Header",id:2},trafficLight:{rule:"repeated",type:"TrafficLight",id:1},trafficLightDebug:{type:"TrafficLightDebug",id:3},containLights:{type:"bool",id:4},cameraId:{type:"CameraID",id:5}},nested:{CameraID:{values:{CAMERA_FRONT_LONG:0,CAMERA_FRONT_NARROW:1,CAMERA_FRONT_SHORT:2,CAMERA_FRONT_WIDE:3}}}},BBox2D:{fields:{xmin:{type:"double",id:1},ymin:{type:"double",id:2},xmax:{type:"double",id:3},ymax:{type:"double",id:4}}},LightStatus:{fields:{brakeVisible:{type:"double",id:1},brakeSwitchOn:{type:"double",id:2},leftTurnVisible:{type:"double",id:3},leftTurnSwitchOn:{type:"double",id:4},rightTurnVisible:{type:"double",id:5},rightTurnSwitchOn:{type:"double",id:6}}},SensorMeasurement:{fields:{sensorId:{type:"string",id:1},id:{type:"int32",id:2},position:{type:"common.Point3D",id:3},theta:{type:"double",id:4},length:{type:"double",id:5},width:{type:"double",id:6},height:{type:"double",id:7},velocity:{type:"common.Point3D",id:8},type:{type:"PerceptionObstacle.Type",id:9},subType:{type:"PerceptionObstacle.SubType",id:10},timestamp:{type:"double",id:11},box:{type:"BBox2D",id:12}}},PerceptionObstacle:{fields:{id:{type:"int32",id:1},position:{type:"common.Point3D",id:2},theta:{type:"double",id:3},velocity:{type:"common.Point3D",id:4},length:{type:"double",id:5},width:{type:"double",id:6},height:{type:"double",id:7},polygonPoint:{rule:"repeated",type:"common.Point3D",id:8},trackingTime:{type:"double",id:9},type:{type:"Type",id:10},timestamp:{type:"double",id:11},pointCloud:{rule:"repeated",type:"double",id:12},confidence:{type:"double",id:13,options:{deprecated:!0}},confidenceType:{type:"ConfidenceType",id:14,options:{deprecated:!0}},drops:{rule:"repeated",type:"common.Point3D",id:15,options:{deprecated:!0}},acceleration:{type:"common.Point3D",id:16},anchorPoint:{type:"common.Point3D",id:17},bbox2d:{type:"BBox2D",id:18},subType:{type:"SubType",id:19},measurements:{rule:"repeated",type:"SensorMeasurement",id:20},heightAboveGround:{type:"double",id:21,options:{default:null}},positionCovariance:{rule:"repeated",type:"double",id:22},velocityCovariance:{rule:"repeated",type:"double",id:23},accelerationCovariance:{rule:"repeated",type:"double",id:24},lightStatus:{type:"LightStatus",id:25}},nested:{Type:{values:{UNKNOWN:0,UNKNOWN_MOVABLE:1,UNKNOWN_UNMOVABLE:2,PEDESTRIAN:3,BICYCLE:4,VEHICLE:5}},ConfidenceType:{values:{CONFIDENCE_UNKNOWN:0,CONFIDENCE_CNN:1,CONFIDENCE_RADAR:2}},SubType:{values:{ST_UNKNOWN:0,ST_UNKNOWN_MOVABLE:1,ST_UNKNOWN_UNMOVABLE:2,ST_CAR:3,ST_VAN:4,ST_TRUCK:5,ST_BUS:6,ST_CYCLIST:7,ST_MOTORCYCLIST:8,ST_TRICYCLIST:9,ST_PEDESTRIAN:10,ST_TRAFFICCONE:11}}}},LaneMarker:{fields:{laneType:{type:"apollo.hdmap.LaneBoundaryType.Type",id:1},quality:{type:"double",id:2},modelDegree:{type:"int32",id:3},c0Position:{type:"double",id:4},c1HeadingAngle:{type:"double",id:5},c2Curvature:{type:"double",id:6},c3CurvatureDerivative:{type:"double",id:7},viewRange:{type:"double",id:8},longitudeStart:{type:"double",id:9},longitudeEnd:{type:"double",id:10}}},LaneMarkers:{fields:{leftLaneMarker:{type:"LaneMarker",id:1},rightLaneMarker:{type:"LaneMarker",id:2},nextLeftLaneMarker:{rule:"repeated",type:"LaneMarker",id:3},nextRightLaneMarker:{rule:"repeated",type:"LaneMarker",id:4}}},CIPVInfo:{fields:{cipvId:{type:"int32",id:1},potentialCipvId:{rule:"repeated",type:"int32",id:2,options:{packed:!1}}}},PerceptionObstacles:{fields:{perceptionObstacle:{rule:"repeated",type:"PerceptionObstacle",id:1},header:{type:"common.Header",id:2},errorCode:{type:"common.ErrorCode",id:3,options:{default:"OK"}},laneMarker:{type:"LaneMarkers",id:4},cipvInfo:{type:"CIPVInfo",id:5}}}}},routing:{nested:{LaneWaypoint:{fields:{id:{type:"string",id:1},s:{type:"double",id:2},pose:{type:"apollo.common.PointENU",id:3}}},LaneSegment:{fields:{id:{type:"string",id:1},startS:{type:"double",id:2},endS:{type:"double",id:3}}},RoutingRequest:{fields:{header:{type:"apollo.common.Header",id:1},waypoint:{rule:"repeated",type:"LaneWaypoint",id:2},blacklistedLane:{rule:"repeated",type:"LaneSegment",id:3},blacklistedRoad:{rule:"repeated",type:"string",id:4},broadcast:{type:"bool",id:5,options:{default:!0}},parkingSpace:{type:"apollo.hdmap.ParkingSpace",id:6}}},Measurement:{fields:{distance:{type:"double",id:1}}},ChangeLaneType:{values:{FORWARD:0,LEFT:1,RIGHT:2}},Passage:{fields:{segment:{rule:"repeated",type:"LaneSegment",id:1},canExit:{type:"bool",id:2},changeLaneType:{type:"ChangeLaneType",id:3,options:{default:"FORWARD"}}}},RoadSegment:{fields:{id:{type:"string",id:1},passage:{rule:"repeated",type:"Passage",id:2}}},RoutingResponse:{fields:{header:{type:"apollo.common.Header",id:1},road:{rule:"repeated",type:"RoadSegment",id:2},measurement:{type:"Measurement",id:3},routingRequest:{type:"RoutingRequest",id:4},mapVersion:{type:"bytes",id:5},status:{type:"apollo.common.StatusPb",id:6}}}}},hdmap:{nested:{Projection:{fields:{proj:{type:"string",id:1}}},Header:{fields:{version:{type:"bytes",id:1},date:{type:"bytes",id:2},projection:{type:"Projection",id:3},district:{type:"bytes",id:4},generation:{type:"bytes",id:5},revMajor:{type:"bytes",id:6},revMinor:{type:"bytes",id:7},left:{type:"double",id:8},top:{type:"double",id:9},right:{type:"double",id:10},bottom:{type:"double",id:11},vendor:{type:"bytes",id:12}}},Map:{fields:{header:{type:"Header",id:1},crosswalk:{rule:"repeated",type:"Crosswalk",id:2},junction:{rule:"repeated",type:"Junction",id:3},lane:{rule:"repeated",type:"Lane",id:4},stopSign:{rule:"repeated",type:"StopSign",id:5},signal:{rule:"repeated",type:"Signal",id:6},yield:{rule:"repeated",type:"YieldSign",id:7},overlap:{rule:"repeated",type:"Overlap",id:8},clearArea:{rule:"repeated",type:"ClearArea",id:9},speedBump:{rule:"repeated",type:"SpeedBump",id:10},road:{rule:"repeated",type:"Road",id:11},parkingSpace:{rule:"repeated",type:"ParkingSpace",id:12},pncJunction:{rule:"repeated",type:"PNCJunction",id:13}}},ClearArea:{fields:{id:{type:"Id",id:1},overlapId:{rule:"repeated",type:"Id",id:2},polygon:{type:"Polygon",id:3}}},Crosswalk:{fields:{id:{type:"Id",id:1},polygon:{type:"Polygon",id:2},overlapId:{rule:"repeated",type:"Id",id:3}}},Polygon:{fields:{point:{rule:"repeated",type:"apollo.common.PointENU",id:1}}},LineSegment:{fields:{point:{rule:"repeated",type:"apollo.common.PointENU",id:1}}},CurveSegment:{oneofs:{curveType:{oneof:["lineSegment"]}},fields:{lineSegment:{type:"LineSegment",id:1},s:{type:"double",id:6},startPosition:{type:"apollo.common.PointENU",id:7},heading:{type:"double",id:8},length:{type:"double",id:9}}},Curve:{fields:{segment:{rule:"repeated",type:"CurveSegment",id:1}}},Id:{fields:{id:{type:"string",id:1}}},Junction:{fields:{id:{type:"Id",id:1},polygon:{type:"Polygon",id:2},overlapId:{rule:"repeated",type:"Id",id:3}}},LaneBoundaryType:{fields:{s:{type:"double",id:1},types:{rule:"repeated",type:"Type",id:2,options:{packed:!1}}},nested:{Type:{values:{UNKNOWN:0,DOTTED_YELLOW:1,DOTTED_WHITE:2,SOLID_YELLOW:3,SOLID_WHITE:4,DOUBLE_YELLOW:5,CURB:6}}}},LaneBoundary:{fields:{curve:{type:"Curve",id:1},length:{type:"double",id:2},virtual:{type:"bool",id:3},boundaryType:{rule:"repeated",type:"LaneBoundaryType",id:4}}},LaneSampleAssociation:{fields:{s:{type:"double",id:1},width:{type:"double",id:2}}},Lane:{fields:{id:{type:"Id",id:1},centralCurve:{type:"Curve",id:2},leftBoundary:{type:"LaneBoundary",id:3},rightBoundary:{type:"LaneBoundary",id:4},length:{type:"double",id:5},speedLimit:{type:"double",id:6},overlapId:{rule:"repeated",type:"Id",id:7},predecessorId:{rule:"repeated",type:"Id",id:8},successorId:{rule:"repeated",type:"Id",id:9},leftNeighborForwardLaneId:{rule:"repeated",type:"Id",id:10},rightNeighborForwardLaneId:{rule:"repeated",type:"Id",id:11},type:{type:"LaneType",id:12},turn:{type:"LaneTurn",id:13},leftNeighborReverseLaneId:{rule:"repeated",type:"Id",id:14},rightNeighborReverseLaneId:{rule:"repeated",type:"Id",id:15},junctionId:{type:"Id",id:16},leftSample:{rule:"repeated",type:"LaneSampleAssociation",id:17},rightSample:{rule:"repeated",type:"LaneSampleAssociation",id:18},direction:{type:"LaneDirection",id:19},leftRoadSample:{rule:"repeated",type:"LaneSampleAssociation",id:20},rightRoadSample:{rule:"repeated",type:"LaneSampleAssociation",id:21},selfReverseLaneId:{rule:"repeated",type:"Id",id:22}},nested:{LaneType:{values:{NONE:1,CITY_DRIVING:2,BIKING:3,SIDEWALK:4,PARKING:5,SHOULDER:6}},LaneTurn:{values:{NO_TURN:1,LEFT_TURN:2,RIGHT_TURN:3,U_TURN:4}},LaneDirection:{values:{FORWARD:1,BACKWARD:2,BIDIRECTION:3}}}},LaneOverlapInfo:{fields:{startS:{type:"double",id:1},endS:{type:"double",id:2},isMerge:{type:"bool",id:3},regionOverlapId:{type:"Id",id:4}}},SignalOverlapInfo:{fields:{}},StopSignOverlapInfo:{fields:{}},CrosswalkOverlapInfo:{fields:{regionOverlapId:{type:"Id",id:1}}},JunctionOverlapInfo:{fields:{}},YieldOverlapInfo:{fields:{}},ClearAreaOverlapInfo:{fields:{}},SpeedBumpOverlapInfo:{fields:{}},ParkingSpaceOverlapInfo:{fields:{}},PNCJunctionOverlapInfo:{fields:{}},RegionOverlapInfo:{fields:{id:{type:"Id",id:1},polygon:{rule:"repeated",type:"Polygon",id:2}}},ObjectOverlapInfo:{oneofs:{overlapInfo:{oneof:["laneOverlapInfo","signalOverlapInfo","stopSignOverlapInfo","crosswalkOverlapInfo","junctionOverlapInfo","yieldSignOverlapInfo","clearAreaOverlapInfo","speedBumpOverlapInfo","parkingSpaceOverlapInfo","pncJunctionOverlapInfo"]}},fields:{id:{type:"Id",id:1},laneOverlapInfo:{type:"LaneOverlapInfo",id:3},signalOverlapInfo:{type:"SignalOverlapInfo",id:4},stopSignOverlapInfo:{type:"StopSignOverlapInfo",id:5},crosswalkOverlapInfo:{type:"CrosswalkOverlapInfo",id:6},junctionOverlapInfo:{type:"JunctionOverlapInfo",id:7},yieldSignOverlapInfo:{type:"YieldOverlapInfo",id:8},clearAreaOverlapInfo:{type:"ClearAreaOverlapInfo",id:9},speedBumpOverlapInfo:{type:"SpeedBumpOverlapInfo",id:10},parkingSpaceOverlapInfo:{type:"ParkingSpaceOverlapInfo",id:11},pncJunctionOverlapInfo:{type:"PNCJunctionOverlapInfo",id:12}}},Overlap:{fields:{id:{type:"Id",id:1},object:{rule:"repeated",type:"ObjectOverlapInfo",id:2},regionOverlap:{rule:"repeated",type:"RegionOverlapInfo",id:3}}},ParkingSpace:{fields:{id:{type:"Id",id:1},polygon:{type:"Polygon",id:2},overlapId:{rule:"repeated",type:"Id",id:3},heading:{type:"double",id:4}}},ParkingLot:{fields:{id:{type:"Id",id:1},polygon:{type:"Polygon",id:2},overlapId:{rule:"repeated",type:"Id",id:3}}},PNCJunction:{fields:{id:{type:"Id",id:1},polygon:{type:"Polygon",id:2},overlapId:{rule:"repeated",type:"Id",id:3}}},BoundaryEdge:{fields:{curve:{type:"Curve",id:1},type:{type:"Type",id:2}},nested:{Type:{values:{UNKNOWN:0,NORMAL:1,LEFT_BOUNDARY:2,RIGHT_BOUNDARY:3}}}},BoundaryPolygon:{fields:{edge:{rule:"repeated",type:"BoundaryEdge",id:1}}},RoadBoundary:{fields:{outerPolygon:{type:"BoundaryPolygon",id:1},hole:{rule:"repeated",type:"BoundaryPolygon",id:2}}},RoadROIBoundary:{fields:{id:{type:"Id",id:1},roadBoundaries:{rule:"repeated",type:"RoadBoundary",id:2}}},RoadSection:{fields:{id:{type:"Id",id:1},laneId:{rule:"repeated",type:"Id",id:2},boundary:{type:"RoadBoundary",id:3}}},Road:{fields:{id:{type:"Id",id:1},section:{rule:"repeated",type:"RoadSection",id:2},junctionId:{type:"Id",id:3}}},Subsignal:{fields:{id:{type:"Id",id:1},type:{type:"Type",id:2},location:{type:"apollo.common.PointENU",id:3}},nested:{Type:{values:{UNKNOWN:1,CIRCLE:2,ARROW_LEFT:3,ARROW_FORWARD:4,ARROW_RIGHT:5,ARROW_LEFT_AND_FORWARD:6,ARROW_RIGHT_AND_FORWARD:7,ARROW_U_TURN:8}}}},Signal:{fields:{id:{type:"Id",id:1},boundary:{type:"Polygon",id:2},subsignal:{rule:"repeated",type:"Subsignal",id:3},overlapId:{rule:"repeated",type:"Id",id:4},type:{type:"Type",id:5},stopLine:{rule:"repeated",type:"Curve",id:6}},nested:{Type:{values:{UNKNOWN:1,MIX_2_HORIZONTAL:2,MIX_2_VERTICAL:3,MIX_3_HORIZONTAL:4,MIX_3_VERTICAL:5,SINGLE:6}}}},SpeedBump:{fields:{id:{type:"Id",id:1},overlapId:{rule:"repeated",type:"Id",id:2},position:{rule:"repeated",type:"Curve",id:3}}},SpeedControl:{fields:{name:{type:"string",id:1},polygon:{type:"apollo.hdmap.Polygon",id:2},speedLimit:{type:"double",id:3}}},SpeedControls:{fields:{speedControl:{rule:"repeated",type:"SpeedControl",id:1}}},StopSign:{fields:{id:{type:"Id",id:1},stopLine:{rule:"repeated",type:"Curve",id:2},overlapId:{rule:"repeated",type:"Id",id:3},type:{type:"StopType",id:4}},nested:{StopType:{values:{UNKNOWN:0,ONE_WAY:1,TWO_WAY:2,THREE_WAY:3,FOUR_WAY:4,ALL_WAY:5}}}},YieldSign:{fields:{id:{type:"Id",id:1},stopLine:{rule:"repeated",type:"Curve",id:2},overlapId:{rule:"repeated",type:"Id",id:3}}}}},relative_map:{nested:{NavigationPath:{fields:{path:{type:"apollo.common.Path",id:1},pathPriority:{type:"uint32",id:2}}},NavigationInfo:{fields:{header:{type:"apollo.common.Header",id:1},navigationPath:{rule:"repeated",type:"NavigationPath",id:2}}},MapMsg:{fields:{header:{type:"apollo.common.Header",id:1},hdmap:{type:"apollo.hdmap.Map",id:2},navigationPath:{keyType:"string",type:"NavigationPath",id:3},laneMarker:{type:"apollo.perception.LaneMarkers",id:4},localization:{type:"apollo.localization.LocalizationEstimate",id:5}}},MapGenerationParam:{fields:{defaultLeftWidth:{type:"double",id:1,options:{default:1.75}},defaultRightWidth:{type:"double",id:2,options:{default:1.75}},defaultSpeedLimit:{type:"double",id:3,options:{default:29.0576}}}},NavigationLaneConfig:{fields:{minLaneMarkerQuality:{type:"double",id:1,options:{default:.5}},laneSource:{type:"LaneSource",id:2}},nested:{LaneSource:{values:{PERCEPTION:1,OFFLINE_GENERATED:2}}}},RelativeMapConfig:{fields:{mapParam:{type:"MapGenerationParam",id:1},navigationLane:{type:"NavigationLaneConfig",id:2}}}}}}}}}},function(e,t){},function(e,t){},function(e,t){}]); +Object.defineProperty(t,"__esModule",{value:!0});var s,l,u=null,c=!1,d=!1,h="object"==typeof performance&&"function"==typeof performance.now,f={timeRemaining:h?function(){var e=w()-performance.now();return 0=P-n){if(!(-1!==k&&k<=n))return void(O||(O=!0,a(I)));e=!0}if(k=-1,n=E,E=null,null!==n){C=!0;try{n(e)}finally{C=!1}}}},!1);var I=function(e){O=!1;var t=e-P+R;tt&&(t=8),R=tn){r=o;break}o=o.next}while(o!==u);null===r?r=u:r===u&&(u=e,i(u)),n=r.previous,n.next=r.previous=e,e.next=r,e.previous=n}return e},t.unstable_cancelScheduledWork=function(e){var t=e.next;if(null!==t){if(t===e)u=null;else{e===u&&(u=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}}},function(e,t,n){"use strict";e.exports=n(593)},function(e,t,n){(function(e,t){!function(e,n){"use strict";function i(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;na+1e3&&(l.update(1e3*s/(e-a),100),a=e,s=0,c)){var t=performance.memory;c.update(t.usedJSHeapSize/1048576,t.jsHeapSizeLimit/1048576)}return e},update:function(){o=this.end()},domElement:r,setMode:n}};return e.Panel=function(e,t,n){var i=1/0,r=0,o=Math.round,a=o(window.devicePixelRatio||1),s=80*a,l=48*a,u=3*a,c=2*a,d=3*a,h=15*a,f=74*a,p=30*a,m=document.createElement("canvas");m.width=s,m.height=l,m.style.cssText="width:80px;height:48px";var g=m.getContext("2d");return g.font="bold "+9*a+"px Helvetica,Arial,sans-serif",g.textBaseline="top",g.fillStyle=n,g.fillRect(0,0,s,l),g.fillStyle=t,g.fillText(e,u,c),g.fillRect(d,h,f,p),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(d,h,f,p),{dom:m,update:function(l,v){i=Math.min(i,l),r=Math.max(r,l),g.fillStyle=n,g.globalAlpha=1,g.fillRect(0,0,s,h),g.fillStyle=t,g.fillText(o(l)+" "+e+" ("+o(i)+"-"+o(r)+")",u,c),g.drawImage(m,d+a,h,f-a,p,d,h,f-a,p),g.fillRect(d+f-a,h,a,p),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(d+f-a,h,a,o((1-l/v)*p))}}},e})},function(e,t,n){function i(){r.call(this)}e.exports=i;var r=n(86).EventEmitter;n(26)(i,r),i.Readable=n(138),i.Writable=n(586),i.Duplex=n(581),i.Transform=n(585),i.PassThrough=n(584),i.Stream=i,i.prototype.pipe=function(e,t){function n(t){e.writable&&!1===e.write(t)&&u.pause&&u.pause()}function i(){u.readable&&u.resume&&u.resume()}function o(){c||(c=!0,e.end())}function a(){c||(c=!0,"function"==typeof e.destroy&&e.destroy())}function s(e){if(l(),0===r.listenerCount(this,"error"))throw e}function l(){u.removeListener("data",n),e.removeListener("drain",i),u.removeListener("end",o),u.removeListener("close",a),u.removeListener("error",s),e.removeListener("error",s),u.removeListener("end",l),u.removeListener("close",l),e.removeListener("close",l)}var u=this;u.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(u.on("end",o),u.on("close",a));var c=!1;return u.on("error",s),e.on("error",s),u.on("end",l),u.on("close",l),e.on("close",l),e.emit("pipe",u),e}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,i=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var r=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(r))return e;var o;return o=0===r.indexOf("//")?r:0===r.indexOf("/")?n+r:i+r.replace(/^\.\//,""),"url("+JSON.stringify(o)+")"})}},function(e,t,n){var i=n(26),r=n(489);e.exports=function(e){function t(n,i){if(!(this instanceof t))return new t(n,i);e.BufferGeometry.call(this),Array.isArray(n)?i=i||{}:"object"==typeof n&&(i=n,n=[]),i=i||{},this.addAttribute("position",new e.BufferAttribute(void 0,3)),this.addAttribute("lineNormal",new e.BufferAttribute(void 0,2)),this.addAttribute("lineMiter",new e.BufferAttribute(void 0,1)),i.distances&&this.addAttribute("lineDistance",new e.BufferAttribute(void 0,1)),"function"==typeof this.setIndex?this.setIndex(new e.BufferAttribute(void 0,1)):this.addAttribute("index",new e.BufferAttribute(void 0,1)),this.update(n,i.closed)}return i(t,e.BufferGeometry),t.prototype.update=function(e,t){e=e||[];var n=r(e,t);t&&(e=e.slice(),e.push(e[0]),n.push(n[0]));var i=this.getAttribute("position"),o=this.getAttribute("lineNormal"),a=this.getAttribute("lineMiter"),s=this.getAttribute("lineDistance"),l="function"==typeof this.getIndex?this.getIndex():this.getAttribute("index"),u=Math.max(0,6*(e.length-1));if(!i.array||e.length!==i.array.length/3/2){var c=2*e.length;i.array=new Float32Array(3*c),o.array=new Float32Array(2*c),a.array=new Float32Array(c),l.array=new Uint16Array(u),s&&(s.array=new Float32Array(c))}void 0!==i.count&&(i.count=c),i.needsUpdate=!0,void 0!==o.count&&(o.count=c),o.needsUpdate=!0,void 0!==a.count&&(a.count=c),a.needsUpdate=!0,void 0!==l.count&&(l.count=u),l.needsUpdate=!0,s&&(void 0!==s.count&&(s.count=c),s.needsUpdate=!0);var d=0,h=0,f=0,p=l.array;e.forEach(function(e,t,n){var r=d;if(p[h++]=r+0,p[h++]=r+1,p[h++]=r+2,p[h++]=r+2,p[h++]=r+1,p[h++]=r+3,i.setXYZ(d++,e[0],e[1],0),i.setXYZ(d++,e[0],e[1],0),s){var o=t/(n.length-1);s.setX(f++,o),s.setX(f++,o)}});var m=0,g=0;n.forEach(function(e){var t=e[0],n=e[1];o.setXY(m++,t[0],t[1]),o.setXY(m++,t[0],t[1]),a.setX(g++,-n),a.setX(g++,n)})},t}},function(e,t,n){var i=n(126);e.exports=function(e){return function(t){t=t||{};var n="number"==typeof t.thickness?t.thickness:.1,r="number"==typeof t.opacity?t.opacity:1,o=null!==t.diffuse?t.diffuse:16777215;delete t.thickness,delete t.opacity,delete t.diffuse,delete t.precision;var a=i({uniforms:{thickness:{type:"f",value:n},opacity:{type:"f",value:r},diffuse:{type:"c",value:new e.Color(o)}},vertexShader:["uniform float thickness;","attribute float lineMiter;","attribute vec2 lineNormal;","void main() {","vec3 pointPos = position.xyz + vec3(lineNormal * thickness / 2.0 * lineMiter, 0.0);","gl_Position = projectionMatrix * modelViewMatrix * vec4(pointPos, 1.0);","}"].join("\n"),fragmentShader:["uniform vec3 diffuse;","uniform float opacity;","void main() {","gl_FragColor = vec4(diffuse, opacity);","}"].join("\n")},t);return(0|(parseInt(e.REVISION,10)||0))<72&&(a.attributes={lineMiter:{type:"f",value:0},lineNormal:{type:"v2",value:new e.Vector2}}),a}}},function(e,t,n){(function(e){function i(e,t){this._id=e,this._clearFn=t}var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(595),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,n(28))},function(e,t,n){(function(t){function n(e,t){function n(){if(!r){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}if(i("noDeprecation"))return e;var r=!1;return n}function i(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=n}).call(t,n(28))},function(e,t,n){"use strict";function i(e){return!0===e||!1===e}e.exports=i},function(e,t,n){"use strict";function i(e){return"function"==typeof e}e.exports=i},function(e,t,n){"use strict";function i(e){var t,n;if(!r(e))return!1;if(!(t=e.length))return!1;for(var i=0;i=this.text.length)return;e=this.text[this.place++]}switch(this.state){case o:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},i.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(u.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},i.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=o)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=o,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},i.prototype.number=function(e){if(c.test(e))return void(this.word+=e);if(u.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)},i.prototype.quoted=function(e){if('"'===e)return void(this.state=5);this.word+=e},i.prototype.keyword=function(e){if(l.test(e))return void(this.word+=e);if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=o)}if(u.test(e))return void this.afterItem(e);throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place)},i.prototype.neutral=function(e){if(s.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(c.test(e))return this.word=e,void(this.state=3);if(u.test(e))return void this.afterItem(e);throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place)},i.prototype.output=function(){for(;this.place0?s(r()):ee.y<0&&l(r()),Q.copy($),I.update()}function p(e){Z.set(e.clientX,e.clientY),J.subVectors(Z,K),ie(J.x,J.y),K.copy(Z),I.update()}function m(e){}function g(e){e.deltaY<0?l(r()):e.deltaY>0&&s(r()),I.update()}function v(e){switch(e.keyCode){case I.keys.UP:ie(0,I.keyPanSpeed),I.update();break;case I.keys.BOTTOM:ie(0,-I.keyPanSpeed),I.update();break;case I.keys.LEFT:ie(I.keyPanSpeed,0),I.update();break;case I.keys.RIGHT:ie(-I.keyPanSpeed,0),I.update()}}function y(e){q.set(e.touches[0].pageX,e.touches[0].pageY)}function b(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);Q.set(0,i)}function _(e){K.set(e.touches[0].pageX,e.touches[0].pageY)}function x(e){Y.set(e.touches[0].pageX,e.touches[0].pageY),X.subVectors(Y,q);var t=I.domElement===document?I.domElement.body:I.domElement;o(2*Math.PI*X.x/t.clientWidth*I.rotateSpeed),a(2*Math.PI*X.y/t.clientHeight*I.rotateSpeed),q.copy(Y),I.update()}function w(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);$.set(0,i),ee.subVectors($,Q),ee.y>0?l(r()):ee.y<0&&s(r()),Q.copy($),I.update()}function M(e){Z.set(e.touches[0].pageX,e.touches[0].pageY),J.subVectors(Z,K),ie(J.x,J.y),K.copy(Z),I.update()}function S(e){}function E(e){if(!1!==I.enabled){if(e.preventDefault(),e.button===I.mouseButtons.ORBIT){if(!1===I.enableRotate)return;u(e),F=z.ROTATE}else if(e.button===I.mouseButtons.ZOOM){if(!1===I.enableZoom)return;c(e),F=z.DOLLY}else if(e.button===I.mouseButtons.PAN){if(!1===I.enablePan)return;d(e),F=z.PAN}F!==z.NONE&&(document.addEventListener("mousemove",T,!1),document.addEventListener("mouseup",k,!1),I.dispatchEvent(N))}}function T(e){if(!1!==I.enabled)if(e.preventDefault(),F===z.ROTATE){if(!1===I.enableRotate)return;h(e)}else if(F===z.DOLLY){if(!1===I.enableZoom)return;f(e)}else if(F===z.PAN){if(!1===I.enablePan)return;p(e)}}function k(e){!1!==I.enabled&&(m(e),document.removeEventListener("mousemove",T,!1),document.removeEventListener("mouseup",k,!1),I.dispatchEvent(B),F=z.NONE)}function O(e){!1===I.enabled||!1===I.enableZoom||F!==z.NONE&&F!==z.ROTATE||(e.preventDefault(),e.stopPropagation(),g(e),I.dispatchEvent(N),I.dispatchEvent(B))}function C(e){!1!==I.enabled&&!1!==I.enableKeys&&!1!==I.enablePan&&v(e)}function P(e){if(!1!==I.enabled){switch(e.touches.length){case 1:if(!1===I.enableRotate)return;y(e),F=z.TOUCH_ROTATE;break;case 2:if(!1===I.enableZoom)return;b(e),F=z.TOUCH_DOLLY;break;case 3:if(!1===I.enablePan)return;_(e),F=z.TOUCH_PAN;break;default:F=z.NONE}F!==z.NONE&&I.dispatchEvent(N)}}function A(e){if(!1!==I.enabled)switch(e.preventDefault(),e.stopPropagation(),e.touches.length){case 1:if(!1===I.enableRotate)return;if(F!==z.TOUCH_ROTATE)return;x(e);break;case 2:if(!1===I.enableZoom)return;if(F!==z.TOUCH_DOLLY)return;w(e);break;case 3:if(!1===I.enablePan)return;if(F!==z.TOUCH_PAN)return;M(e);break;default:F=z.NONE}}function R(e){!1!==I.enabled&&(S(e),I.dispatchEvent(B),F=z.NONE)}function L(e){e.preventDefault()}this.object=e,this.domElement=void 0!==t?t:document,this.enabled=!0,this.target=new i.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.25,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={ORBIT:i.MOUSE.LEFT,ZOOM:i.MOUSE.MIDDLE,PAN:i.MOUSE.RIGHT},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return U.phi},this.getAzimuthalAngle=function(){return U.theta},this.reset=function(){I.target.copy(I.target0),I.object.position.copy(I.position0),I.object.zoom=I.zoom0,I.object.updateProjectionMatrix(),I.dispatchEvent(D),I.update(),F=z.NONE},this.update=function(){var t=new i.Vector3,r=(new i.Quaternion).setFromUnitVectors(e.up,new i.Vector3(0,1,0)),a=r.clone().inverse(),s=new i.Vector3,l=new i.Quaternion;return function(){var e=I.object.position;return t.copy(e).sub(I.target),t.applyQuaternion(r),U.setFromVector3(t),I.autoRotate&&F===z.NONE&&o(n()),U.theta+=W.theta,U.phi+=W.phi,U.theta=Math.max(I.minAzimuthAngle,Math.min(I.maxAzimuthAngle,U.theta)),U.phi=Math.max(I.minPolarAngle,Math.min(I.maxPolarAngle,U.phi)),U.makeSafe(),U.radius*=G,U.radius=Math.max(I.minDistance,Math.min(I.maxDistance,U.radius)),I.target.add(V),t.setFromSpherical(U),t.applyQuaternion(a),e.copy(I.target).add(t),I.object.lookAt(I.target),!0===I.enableDamping?(W.theta*=1-I.dampingFactor,W.phi*=1-I.dampingFactor):W.set(0,0,0),G=1,V.set(0,0,0),!!(H||s.distanceToSquared(I.object.position)>j||8*(1-l.dot(I.object.quaternion))>j)&&(I.dispatchEvent(D),s.copy(I.object.position),l.copy(I.object.quaternion),H=!1,!0)}}(),this.dispose=function(){I.domElement.removeEventListener("contextmenu",L,!1),I.domElement.removeEventListener("mousedown",E,!1),I.domElement.removeEventListener("wheel",O,!1),I.domElement.removeEventListener("touchstart",P,!1),I.domElement.removeEventListener("touchend",R,!1),I.domElement.removeEventListener("touchmove",A,!1),document.removeEventListener("mousemove",T,!1),document.removeEventListener("mouseup",k,!1),window.removeEventListener("keydown",C,!1)};var I=this,D={type:"change"},N={type:"start"},B={type:"end"},z={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},F=z.NONE,j=1e-6,U=new i.Spherical,W=new i.Spherical,G=1,V=new i.Vector3,H=!1,q=new i.Vector2,Y=new i.Vector2,X=new i.Vector2,K=new i.Vector2,Z=new i.Vector2,J=new i.Vector2,Q=new i.Vector2,$=new i.Vector2,ee=new i.Vector2,te=function(){var e=new i.Vector3;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),V.add(e)}}(),ne=function(){var e=new i.Vector3;return function(t,n){e.setFromMatrixColumn(n,1),e.multiplyScalar(t),V.add(e)}}(),ie=function(){var e=new i.Vector3;return function(t,n){var r=I.domElement===document?I.domElement.body:I.domElement;if(I.object instanceof i.PerspectiveCamera){var o=I.object.position;e.copy(o).sub(I.target);var a=e.length();a*=Math.tan(I.object.fov/2*Math.PI/180),te(2*t*a/r.clientHeight,I.object.matrix),ne(2*n*a/r.clientHeight,I.object.matrix)}else I.object instanceof i.OrthographicCamera?(te(t*(I.object.right-I.object.left)/I.object.zoom/r.clientWidth,I.object.matrix),ne(n*(I.object.top-I.object.bottom)/I.object.zoom/r.clientHeight,I.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),I.enablePan=!1)}}();I.domElement.addEventListener("contextmenu",L,!1),I.domElement.addEventListener("mousedown",E,!1),I.domElement.addEventListener("wheel",O,!1),I.domElement.addEventListener("touchstart",P,!1),I.domElement.addEventListener("touchend",R,!1),I.domElement.addEventListener("touchmove",A,!1),window.addEventListener("keydown",C,!1),this.update()},i.OrbitControls.prototype=Object.create(i.EventDispatcher.prototype),i.OrbitControls.prototype.constructor=i.OrbitControls,Object.defineProperties(i.OrbitControls.prototype,{center:{get:function(){return console.warn("THREE.OrbitControls: .center has been renamed to .target"),this.target}},noZoom:{get:function(){return console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),!this.enableZoom},set:function(e){console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),this.enableZoom=!e}},noRotate:{get:function(){return console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),!this.enableRotate},set:function(e){console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),this.enableRotate=!e}},noPan:{get:function(){return console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),!this.enablePan},set:function(e){console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),this.enablePan=!e}},noKeys:{get:function(){return console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),!this.enableKeys},set:function(e){console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),this.enableKeys=!e}},staticMoving:{get:function(){return console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),!this.enableDamping},set:function(e){console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),this.enableDamping=!e}},dynamicDampingFactor:{get:function(){return console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor},set:function(e){console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor=e}}})},function(e,t,n){var i=n(12);i.MTLLoader=function(e){this.manager=void 0!==e?e:i.DefaultLoadingManager},i.MTLLoader.prototype={constructor:i.MTLLoader,load:function(e,t,n,r){var o=this,a=new i.FileLoader(this.manager);a.setPath(this.path),a.load(e,function(e){t(o.parse(e))},n,r)},setPath:function(e){this.path=e},setTexturePath:function(e){this.texturePath=e},setBaseUrl:function(e){console.warn("THREE.MTLLoader: .setBaseUrl() is deprecated. Use .setTexturePath( path ) for texture path or .setPath( path ) for general base path instead."),this.setTexturePath(e)},setCrossOrigin:function(e){this.crossOrigin=e},setMaterialOptions:function(e){this.materialOptions=e},parse:function(e){for(var t=e.split("\n"),n={},r=/\s+/,o={},a=0;a=0?s.substring(0,l):s;u=u.toLowerCase();var c=l>=0?s.substring(l+1):"";if(c=c.trim(),"newmtl"===u)n={name:c},o[c]=n;else if(n)if("ka"===u||"kd"===u||"ks"===u){var d=c.split(r,3);n[u]=[parseFloat(d[0]),parseFloat(d[1]),parseFloat(d[2])]}else n[u]=c}}var h=new i.MTLLoader.MaterialCreator(this.texturePath||this.path,this.materialOptions);return h.setCrossOrigin(this.crossOrigin),h.setManager(this.manager),h.setMaterials(o),h}},i.MTLLoader.MaterialCreator=function(e,t){this.baseUrl=e||"",this.options=t,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.side=this.options&&this.options.side?this.options.side:i.FrontSide,this.wrap=this.options&&this.options.wrap?this.options.wrap:i.RepeatWrapping},i.MTLLoader.MaterialCreator.prototype={constructor:i.MTLLoader.MaterialCreator,setCrossOrigin:function(e){this.crossOrigin=e},setManager:function(e){this.manager=e},setMaterials:function(e){this.materialsInfo=this.convert(e),this.materials={},this.materialsArray=[],this.nameLookup={}},convert:function(e){if(!this.options)return e;var t={};for(var n in e){var i=e[n],r={};t[n]=r;for(var o in i){var a=!0,s=i[o],l=o.toLowerCase();switch(l){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(s=[s[0]/255,s[1]/255,s[2]/255]),this.options&&this.options.ignoreZeroRGBs&&0===s[0]&&0===s[1]&&0===s[2]&&(a=!1)}a&&(r[l]=s)}}return t},preload:function(){for(var e in this.materialsInfo)this.create(e)},getIndex:function(e){return this.nameLookup[e]},getAsArray:function(){var e=0;for(var t in this.materialsInfo)this.materialsArray[e]=this.create(t),this.nameLookup[t]=e,e++;return this.materialsArray},create:function(e){return void 0===this.materials[e]&&this.createMaterial_(e),this.materials[e]},createMaterial_:function(e){function t(e,t){return"string"!=typeof t||""===t?"":/^https?:\/\//i.test(t)?t:e+t}function n(e,n){if(!a[e]){var i=r.getTextureParams(n,a),o=r.loadTexture(t(r.baseUrl,i.url));o.repeat.copy(i.scale),o.offset.copy(i.offset),o.wrapS=r.wrap,o.wrapT=r.wrap,a[e]=o}}var r=this,o=this.materialsInfo[e],a={name:e,side:this.side};for(var s in o){var l=o[s];if(""!==l)switch(s.toLowerCase()){case"kd":a.color=(new i.Color).fromArray(l);break;case"ks":a.specular=(new i.Color).fromArray(l);break;case"map_kd":n("map",l);break;case"map_ks":n("specularMap",l);break;case"map_bump":case"bump":n("bumpMap",l);break;case"ns":a.shininess=parseFloat(l);break;case"d":l<1&&(a.opacity=l,a.transparent=!0);break;case"Tr":l>0&&(a.opacity=1-l,a.transparent=!0)}}return this.materials[e]=new i.MeshPhongMaterial(a),this.materials[e]},getTextureParams:function(e,t){var n,r={scale:new i.Vector2(1,1),offset:new i.Vector2(0,0)},o=e.split(/\s+/);return n=o.indexOf("-bm"),n>=0&&(t.bumpScale=parseFloat(o[n+1]),o.splice(n,2)),n=o.indexOf("-s"),n>=0&&(r.scale.set(parseFloat(o[n+1]),parseFloat(o[n+2])),o.splice(n,4)),n=o.indexOf("-o"),n>=0&&(r.offset.set(parseFloat(o[n+1]),parseFloat(o[n+2])),o.splice(n,4)),r.url=o.join(" ").trim(),r},loadTexture:function(e,t,n,r,o){var a,s=i.Loader.Handlers.get(e),l=void 0!==this.manager?this.manager:i.DefaultLoadingManager;return null===s&&(s=new i.TextureLoader(l)),s.setCrossOrigin&&s.setCrossOrigin(this.crossOrigin),a=s.load(e,n,r,o),void 0!==t&&(a.mapping=t),a}}},function(e,t,n){var i=n(12);i.OBJLoader=function(e){this.manager=void 0!==e?e:i.DefaultLoadingManager,this.materials=null,this.regexp={vertex_pattern:/^v\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)/,normal_pattern:/^vn\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)/,uv_pattern:/^vt\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)/,face_vertex:/^f\s+(-?\d+)\s+(-?\d+)\s+(-?\d+)(?:\s+(-?\d+))?/,face_vertex_uv:/^f\s+(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)(?:\s+(-?\d+)\/(-?\d+))?/,face_vertex_uv_normal:/^f\s+(-?\d+)\/(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)\/(-?\d+)(?:\s+(-?\d+)\/(-?\d+)\/(-?\d+))?/,face_vertex_normal:/^f\s+(-?\d+)\/\/(-?\d+)\s+(-?\d+)\/\/(-?\d+)\s+(-?\d+)\/\/(-?\d+)(?:\s+(-?\d+)\/\/(-?\d+))?/,object_pattern:/^[og]\s*(.+)?/,smoothing_pattern:/^s\s+(\d+|on|off)/,material_library_pattern:/^mtllib /,material_use_pattern:/^usemtl /}},i.OBJLoader.prototype={constructor:i.OBJLoader,load:function(e,t,n,r){var o=this,a=new i.FileLoader(o.manager);a.setPath(this.path),a.load(e,function(e){t(o.parse(e))},n,r)},setPath:function(e){this.path=e},setMaterials:function(e){this.materials=e},_createParserState:function(){var e={objects:[],object:{},vertices:[],normals:[],uvs:[],materialLibraries:[],startObject:function(e,t){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=e,void(this.object.fromDeclaration=!1!==t);var n=this.object&&"function"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:e||"",fromDeclaration:!1!==t,geometry:{vertices:[],normals:[],uvs:[]},materials:[],smooth:!0,startMaterial:function(e,t){var n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);var i={index:this.materials.length,name:e||"",mtllib:Array.isArray(t)&&t.length>0?t[t.length-1]:"",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(e){var t={index:"number"==typeof e?e:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return t.clone=this.clone.bind(t),t}};return this.materials.push(i),i},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){var t=this.currentMaterial();if(t&&-1===t.groupEnd&&(t.groupEnd=this.geometry.vertices.length/3,t.groupCount=t.groupEnd-t.groupStart,t.inherited=!1),e&&this.materials.length>1)for(var n=this.materials.length-1;n>=0;n--)this.materials[n].groupCount<=0&&this.materials.splice(n,1);return e&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),t}},n&&n.name&&"function"==typeof n.clone){var i=n.clone(0);i.inherited=!0,this.object.materials.push(i)}this.objects.push(this.object)},finalize:function(){this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseNormalIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseUVIndex:function(e,t){var n=parseInt(e,10);return 2*(n>=0?n-1:n+t/2)},addVertex:function(e,t,n){var i=this.vertices,r=this.object.geometry.vertices;r.push(i[e+0]),r.push(i[e+1]),r.push(i[e+2]),r.push(i[t+0]),r.push(i[t+1]),r.push(i[t+2]),r.push(i[n+0]),r.push(i[n+1]),r.push(i[n+2])},addVertexLine:function(e){var t=this.vertices,n=this.object.geometry.vertices;n.push(t[e+0]),n.push(t[e+1]),n.push(t[e+2])},addNormal:function(e,t,n){var i=this.normals,r=this.object.geometry.normals;r.push(i[e+0]),r.push(i[e+1]),r.push(i[e+2]),r.push(i[t+0]),r.push(i[t+1]),r.push(i[t+2]),r.push(i[n+0]),r.push(i[n+1]),r.push(i[n+2])},addUV:function(e,t,n){var i=this.uvs,r=this.object.geometry.uvs;r.push(i[e+0]),r.push(i[e+1]),r.push(i[t+0]),r.push(i[t+1]),r.push(i[n+0]),r.push(i[n+1])},addUVLine:function(e){var t=this.uvs,n=this.object.geometry.uvs;n.push(t[e+0]),n.push(t[e+1])},addFace:function(e,t,n,i,r,o,a,s,l,u,c,d){var h,f=this.vertices.length,p=this.parseVertexIndex(e,f),m=this.parseVertexIndex(t,f),g=this.parseVertexIndex(n,f);if(void 0===i?this.addVertex(p,m,g):(h=this.parseVertexIndex(i,f),this.addVertex(p,m,h),this.addVertex(m,g,h)),void 0!==r){var v=this.uvs.length;p=this.parseUVIndex(r,v),m=this.parseUVIndex(o,v),g=this.parseUVIndex(a,v),void 0===i?this.addUV(p,m,g):(h=this.parseUVIndex(s,v),this.addUV(p,m,h),this.addUV(m,g,h))}if(void 0!==l){var y=this.normals.length;p=this.parseNormalIndex(l,y),m=l===u?p:this.parseNormalIndex(u,y),g=l===c?p:this.parseNormalIndex(c,y),void 0===i?this.addNormal(p,m,g):(h=this.parseNormalIndex(d,y),this.addNormal(p,m,h),this.addNormal(m,g,h))}},addLineGeometry:function(e,t){this.object.geometry.type="Line";for(var n=this.vertices.length,i=this.uvs.length,r=0,o=e.length;r0?E.addAttribute("normal",new i.BufferAttribute(new Float32Array(w.normals),3)):E.computeVertexNormals(),w.uvs.length>0&&E.addAttribute("uv",new i.BufferAttribute(new Float32Array(w.uvs),2));for(var T=[],k=0,O=M.length;k1){for(var k=0,O=M.length;k0?s(r()):ee.y<0&&l(r()),Q.copy($),I.update()}function p(e){Z.set(e.clientX,e.clientY),J.subVectors(Z,K),ie(J.x,J.y),K.copy(Z),I.update()}function m(e){}function g(e){e.deltaY<0?l(r()):e.deltaY>0&&s(r()),I.update()}function v(e){switch(e.keyCode){case I.keys.UP:ie(0,I.keyPanSpeed),I.update();break;case I.keys.BOTTOM:ie(0,-I.keyPanSpeed),I.update();break;case I.keys.LEFT:ie(I.keyPanSpeed,0),I.update();break;case I.keys.RIGHT:ie(-I.keyPanSpeed,0),I.update()}}function y(e){q.set(e.touches[0].pageX,e.touches[0].pageY)}function b(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);Q.set(0,i)}function _(e){K.set(e.touches[0].pageX,e.touches[0].pageY)}function x(e){Y.set(e.touches[0].pageX,e.touches[0].pageY),X.subVectors(Y,q);var t=I.domElement===document?I.domElement.body:I.domElement;o(2*Math.PI*X.x/t.clientWidth*I.rotateSpeed),a(2*Math.PI*X.y/t.clientHeight*I.rotateSpeed),q.copy(Y),I.update()}function w(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);$.set(0,i),ee.subVectors($,Q),ee.y>0?l(r()):ee.y<0&&s(r()),Q.copy($),I.update()}function M(e){Z.set(e.touches[0].pageX,e.touches[0].pageY),J.subVectors(Z,K),ie(J.x,J.y),K.copy(Z),I.update()}function S(e){}function E(e){if(!1!==I.enabled){if(e.preventDefault(),e.button===I.mouseButtons.ORBIT){if(!1===I.enableRotate)return;u(e),F=z.ROTATE}else if(e.button===I.mouseButtons.ZOOM){if(!1===I.enableZoom)return;c(e),F=z.DOLLY}else if(e.button===I.mouseButtons.PAN){if(!1===I.enablePan)return;d(e),F=z.PAN}F!==z.NONE&&(document.addEventListener("mousemove",T,!1),document.addEventListener("mouseup",k,!1),I.dispatchEvent(N))}}function T(e){if(!1!==I.enabled)if(e.preventDefault(),F===z.ROTATE){if(!1===I.enableRotate)return;h(e)}else if(F===z.DOLLY){if(!1===I.enableZoom)return;f(e)}else if(F===z.PAN){if(!1===I.enablePan)return;p(e)}}function k(e){!1!==I.enabled&&(m(e),document.removeEventListener("mousemove",T,!1),document.removeEventListener("mouseup",k,!1),I.dispatchEvent(B),F=z.NONE)}function O(e){!1===I.enabled||!1===I.enableZoom||F!==z.NONE&&F!==z.ROTATE||(e.preventDefault(),e.stopPropagation(),g(e),I.dispatchEvent(N),I.dispatchEvent(B))}function C(e){!1!==I.enabled&&!1!==I.enableKeys&&!1!==I.enablePan&&v(e)}function P(e){if(!1!==I.enabled){switch(e.touches.length){case 1:if(!1===I.enableRotate)return;y(e),F=z.TOUCH_ROTATE;break;case 2:if(!1===I.enableZoom)return;b(e),F=z.TOUCH_DOLLY;break;case 3:if(!1===I.enablePan)return;_(e),F=z.TOUCH_PAN;break;default:F=z.NONE}F!==z.NONE&&I.dispatchEvent(N)}}function A(e){if(!1!==I.enabled)switch(e.preventDefault(),e.stopPropagation(),e.touches.length){case 1:if(!1===I.enableRotate)return;if(F!==z.TOUCH_ROTATE)return;x(e);break;case 2:if(!1===I.enableZoom)return;if(F!==z.TOUCH_DOLLY)return;w(e);break;case 3:if(!1===I.enablePan)return;if(F!==z.TOUCH_PAN)return;M(e);break;default:F=z.NONE}}function R(e){!1!==I.enabled&&(S(e),I.dispatchEvent(B),F=z.NONE)}function L(e){e.preventDefault()}this.object=e,this.domElement=void 0!==t?t:document,this.enabled=!0,this.target=new i.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.25,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={ORBIT:i.MOUSE.LEFT,ZOOM:i.MOUSE.MIDDLE,PAN:i.MOUSE.RIGHT},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return U.phi},this.getAzimuthalAngle=function(){return U.theta},this.reset=function(){I.target.copy(I.target0),I.object.position.copy(I.position0),I.object.zoom=I.zoom0,I.object.updateProjectionMatrix(),I.dispatchEvent(D),I.update(),F=z.NONE},this.update=function(){var t=new i.Vector3,r=(new i.Quaternion).setFromUnitVectors(e.up,new i.Vector3(0,1,0)),a=r.clone().inverse(),s=new i.Vector3,l=new i.Quaternion;return function(){var e=I.object.position;return t.copy(e).sub(I.target),t.applyQuaternion(r),U.setFromVector3(t),I.autoRotate&&F===z.NONE&&o(n()),U.theta+=W.theta,U.phi+=W.phi,U.theta=Math.max(I.minAzimuthAngle,Math.min(I.maxAzimuthAngle,U.theta)),U.phi=Math.max(I.minPolarAngle,Math.min(I.maxPolarAngle,U.phi)),U.makeSafe(),U.radius*=G,U.radius=Math.max(I.minDistance,Math.min(I.maxDistance,U.radius)),I.target.add(V),t.setFromSpherical(U),t.applyQuaternion(a),e.copy(I.target).add(t),I.object.lookAt(I.target),!0===I.enableDamping?(W.theta*=1-I.dampingFactor,W.phi*=1-I.dampingFactor):W.set(0,0,0),G=1,V.set(0,0,0),!!(H||s.distanceToSquared(I.object.position)>j||8*(1-l.dot(I.object.quaternion))>j)&&(I.dispatchEvent(D),s.copy(I.object.position),l.copy(I.object.quaternion),H=!1,!0)}}(),this.dispose=function(){I.domElement.removeEventListener("contextmenu",L,!1),I.domElement.removeEventListener("mousedown",E,!1),I.domElement.removeEventListener("wheel",O,!1),I.domElement.removeEventListener("touchstart",P,!1),I.domElement.removeEventListener("touchend",R,!1),I.domElement.removeEventListener("touchmove",A,!1),document.removeEventListener("mousemove",T,!1),document.removeEventListener("mouseup",k,!1),window.removeEventListener("keydown",C,!1)};var I=this,D={type:"change"},N={type:"start"},B={type:"end"},z={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},F=z.NONE,j=1e-6,U=new i.Spherical,W=new i.Spherical,G=1,V=new i.Vector3,H=!1,q=new i.Vector2,Y=new i.Vector2,X=new i.Vector2,K=new i.Vector2,Z=new i.Vector2,J=new i.Vector2,Q=new i.Vector2,$=new i.Vector2,ee=new i.Vector2,te=function(){var e=new i.Vector3;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),V.add(e)}}(),ne=function(){var e=new i.Vector3;return function(t,n){e.setFromMatrixColumn(n,1),e.multiplyScalar(t),V.add(e)}}(),ie=function(){var e=new i.Vector3;return function(t,n){var r=I.domElement===document?I.domElement.body:I.domElement;if(I.object instanceof i.PerspectiveCamera){var o=I.object.position;e.copy(o).sub(I.target);var a=e.length();a*=Math.tan(I.object.fov/2*Math.PI/180),te(2*t*a/r.clientHeight,I.object.matrix),ne(2*n*a/r.clientHeight,I.object.matrix)}else I.object instanceof i.OrthographicCamera?(te(t*(I.object.right-I.object.left)/I.object.zoom/r.clientWidth,I.object.matrix),ne(n*(I.object.top-I.object.bottom)/I.object.zoom/r.clientHeight,I.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),I.enablePan=!1)}}();I.domElement.addEventListener("contextmenu",L,!1),I.domElement.addEventListener("mousedown",E,!1),I.domElement.addEventListener("wheel",O,!1),I.domElement.addEventListener("touchstart",P,!1),I.domElement.addEventListener("touchend",R,!1),I.domElement.addEventListener("touchmove",A,!1),window.addEventListener("keydown",C,!1),this.update()},i.OrbitControls.prototype=Object.create(i.EventDispatcher.prototype),i.OrbitControls.prototype.constructor=i.OrbitControls,Object.defineProperties(i.OrbitControls.prototype,{center:{get:function(){return console.warn("THREE.OrbitControls: .center has been renamed to .target"),this.target}},noZoom:{get:function(){return console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),!this.enableZoom},set:function(e){console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),this.enableZoom=!e}},noRotate:{get:function(){return console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),!this.enableRotate},set:function(e){console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),this.enableRotate=!e}},noPan:{get:function(){return console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),!this.enablePan},set:function(e){console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),this.enablePan=!e}},noKeys:{get:function(){return console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),!this.enableKeys},set:function(e){console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),this.enableKeys=!e}},staticMoving:{get:function(){return console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),!this.enableDamping},set:function(e){console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),this.enableDamping=!e}},dynamicDampingFactor:{get:function(){return console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor},set:function(e){console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor=e}}})},,function(e,t){e.exports={trajectoryGraph:{title:"Trajectory",options:{legend:{display:!0},axes:{x:{labelString:"x (m)"},y:{labelString:"y (m)"}}},properties:{cars:{pose:{color:"rgba(0, 255, 0, 1)"}},lines:{real:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"},steerCurve:{color:"rgba(255, 206, 86, 1)",borderWidth:1,pointRadius:0,fill:!1,showLine:!0},plan:{color:"rgba(1, 209, 193, 0.65)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:"rgba(180, 255, 180, 0.7)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:"rgba(224, 224, 224, 0.15)",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},speedGraph:{title:"Speed",options:{legend:{display:!0},axes:{x:{labelString:"t (second)"},y:{labelString:"speed (m/s)"}}},properties:{lines:{real:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"},plan:{color:"rgba(1, 209, 193, 0.65)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:"rgba(180, 255, 180, 0.7)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:"rgba(224, 224, 224, 0.15)",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},curvatureGraph:{title:"Curvature",options:{legend:{display:!0},axes:{x:{labelString:"t (second)"},y:{labelString:"Curvature (m-1)"}}},properties:{lines:{real:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"},plan:{color:"rgba(1, 209, 193, 0.65)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:"rgba(180, 255, 180, 0.7)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:"rgba(224, 224, 224, 0.15)",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},accelerationGraph:{title:"Acceleration",options:{legend:{display:!0},axes:{x:{labelString:"t (second)"},y:{labelString:"acceleration (m/s^2)"}}},properties:{lines:{real:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"},plan:{color:"rgba(1, 209, 193, 0.65)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:"rgba(180, 255, 180, 0.7)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:"rgba(224, 224, 224, 0.15)",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},stationErrorGraph:{title:"Station Error",options:{legend:{display:!1},axes:{x:{labelString:"t (second)"},y:{labelString:"error (m)"}}},properties:{lines:{error:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"}}}},lateralErrorGraph:{title:"Lateral Error",options:{legend:{display:!1},axes:{x:{labelString:"t (second)"},y:{labelString:"error (m)"}}},properties:{lines:{error:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"}}}},headingErrorGraph:{title:"Heading Error",options:{legend:{display:!1},axes:{x:{labelString:"t (second)"},y:{labelString:"error (rad)"}}},properties:{lines:{error:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"}}}}}},function(e,t){e.exports={options:{legend:{display:!0},axes:{x:{labelString:"timestampe (sec)"},y:{labelString:"latency (ms)"}}},properties:{lines:{chassis:{color:"rgba(241, 113, 112, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},localization:{color:"rgba(254, 208,114, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},prediction:{color:"rgba(162, 212, 113, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},perception:{color:"rgba(113, 226, 208, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},planning:{color:"rgba(113, 208, 255, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},control:{color:"rgba(179, 164, 238, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}}},function(e,t){e.exports={slGraph:{title:"QP Path - sl graph",options:{legend:{display:!1},axes:{x:{min:0,max:200,labelString:"s - ref_line (m)"},y:{min:-5,max:5,labelString:"l (m)"}}},properties:{lines:{aggregatedBoundaryLow:{color:"rgba(48, 165, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},aggregatedBoundaryHigh:{color:"rgba(48, 165, 255, 1)",borderWidth:2,pointRadius:0,lineTension:0,fill:!1,showLine:!0},pathLine:{color:"rgba(225, 225, 225, 0.7)",borderWidth:2,pointRadius:.5,fill:!1,showLine:!1},mapLowerBound:{color:"rgba(54, 162, 235, 0.4)",borderWidth:2,pointRadius:0,fill:"start",showLine:!0},mapUpperBound:{color:"rgba(54, 162, 235, 0.4)",borderWidth:2,pointRadius:0,fill:"end",showLine:!0},staticObstacleLowerBound:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:"start",showLine:!0},staticObstacleUpperBound:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:"end",showLine:!0},dynamicObstacleLowerBound:{color:"rgba(255, 206, 86, 0.2)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},dynamicObstacleUpperBound:{color:"rgba(255, 206, 86, 0.2)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}},stGraph:{options:{legend:{display:!1},axes:{x:{min:-2,max:10,labelString:"t (second)"},y:{min:-10,max:220,labelString:"s (m)"}}},properties:{lines:{curveLine:{color:"rgba(225, 225, 225, 0.5)",borderWidth:2,pointRadius:1,fill:!1,showLine:!1},kernelCruise:{color:"rgba(27, 249, 105, 0.5)",borderWidth:2,pointRadius:1,fill:!1,showLine:!1},kernelFollow:{color:"rgba(255, 206, 86, 0.5)",borderWidth:2,pointRadius:1,fill:!1,showLine:!1}}}},stSpeedGraph:{title:"QP Speed - sv graph",options:{legend:{display:!0},axes:{x:{min:-10,max:220,labelString:"s - qp_path(m)"},y:{min:-1,max:40,labelString:"v (m/s)"}}},properties:{lines:{upperConstraint:{color:"rgba(54, 162, 235, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},lowerConstraint:{color:"rgba(54, 162, 235, 1)",borderWidth:4,pointRadius:0,fill:!1,showLine:!0},planned:{color:"rgba(225, 225, 225, 0.5)",borderWidth:4,pointRadius:0,fill:!1,showLine:!0},limit:{color:"rgba(255, 0, 0, 0.5)",borderWidth:4,pointRadius:0,fill:!1,showLine:!0}}}},speedGraph:{title:"Planning Speed",options:{legend:{display:!0},axes:{x:{min:-2,max:10,labelString:"t (second)"},y:{min:-1,max:40,labelString:"speed (m/s)"}}},properties:{lines:{finalSpeed:{color:"rgba(255, 0, 0, 0.8)",borderWidth:1,pointRadius:1,fill:!1,showLine:!1},DpStSpeedOptimizer:{color:"rgba(27, 249, 105, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplineStSpeedOptimizer:{color:"rgba(54, 162, 235, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"}}}},accelerationGraph:{title:"Planning Acceleration",options:{legend:{display:!1},axes:{x:{min:-2,max:10,labelString:"t (second)"},y:{min:-4,max:3.5,labelString:"acceleration (m/s^2)"}}},properties:{lines:{acceleration:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"}}}},kappaGraph:{title:"Planning Kappa",options:{legend:{display:!0},axes:{x:{labelString:"s (m)"},y:{min:-.2,max:.2,labelString:"kappa"}}},properties:{lines:{ReferenceLine:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},DpPolyPathOptimizer:{color:"rgba(27, 249, 105, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplinePathOptimizer:{color:"rgba(54, 162, 235, 1)",borderWidth:5,pointRadius:0,fill:!1,showLine:!0}}}},dkappaGraph:{title:"Planning Dkappa",options:{legend:{display:!0},axes:{x:{labelString:"s (m)"},y:{min:-.02,max:.02,labelString:"dkappa"}}},properties:{lines:{ReferenceLine:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplinePathOptimizer:{color:"rgba(54, 162, 235, 1)",borderWidth:5,pointRadius:0,fill:!1,showLine:!0}}}},thetaGraph:{title:"Planning theta",options:{legend:{display:!0},axes:{x:{labelString:"s (m)"},y:{labelString:"theta"}}},properties:{lines:{ReferenceLine:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}},dpPolyGraph:{title:"DP Path",options:{legend:{display:!1},axes:{x:{labelString:"s (m)"},y:{labelString:"l (m)"}}},properties:{lines:{minCostPoint:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:2,fill:!1,showLine:!0},sampleLayer:{color:"rgba(225, 225, 225, 0.5)",borderWidth:0,pointRadius:4,fill:!1,showLine:!1}}}}}},function(e,t){e.exports={name:"proj4",version:"2.5.0",description:"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",main:"dist/proj4-src.js",module:"lib/index.js",directories:{test:"test",doc:"docs"},scripts:{build:"grunt","build:tmerc":"grunt build:tmerc",test:"npm run build && istanbul test _mocha test/test.js"},repository:{type:"git",url:"git://github.com/proj4js/proj4js.git"},author:"",license:"MIT",devDependencies:{chai:"~4.1.2","curl-amd":"github:cujojs/curl",grunt:"^1.0.1","grunt-cli":"~1.2.0","grunt-contrib-connect":"~1.0.2","grunt-contrib-jshint":"~1.1.0","grunt-contrib-uglify":"~3.1.0","grunt-mocha-phantomjs":"~4.0.0","grunt-rollup":"^6.0.0",istanbul:"~0.4.5",mocha:"~4.0.0",rollup:"^0.50.0","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.0",tin:"~0.5.0"},dependencies:{mgrs:"1.0.0","wkt-parser":"^1.2.0"}}},function(e,t,n){var i=n(300);"string"==typeof i&&(i=[[e.i,i,""]]);var r={};r.transform=void 0;n(139)(i,r);i.locals&&(e.exports=i.locals)},function(e,t,n){var i=n(302);"string"==typeof i&&(i=[[e.i,i,""]]);var r={};r.transform=void 0;n(139)(i,r);i.locals&&(e.exports=i.locals)},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){e.exports={nested:{apollo:{nested:{dreamview:{nested:{PolygonPoint:{fields:{x:{type:"double",id:1},y:{type:"double",id:2},z:{type:"double",id:3,options:{default:0}}}},Prediction:{fields:{probability:{type:"double",id:1},predictedTrajectory:{rule:"repeated",type:"PolygonPoint",id:2}}},Decision:{fields:{type:{type:"Type",id:1,options:{default:"IGNORE"}},polygonPoint:{rule:"repeated",type:"PolygonPoint",id:2},heading:{type:"double",id:3},latitude:{type:"double",id:4},longitude:{type:"double",id:5},positionX:{type:"double",id:6},positionY:{type:"double",id:7},length:{type:"double",id:8,options:{default:2.8}},width:{type:"double",id:9,options:{default:1.4}},height:{type:"double",id:10,options:{default:1.8}},stopReason:{type:"StopReasonCode",id:11},changeLaneType:{type:"apollo.routing.ChangeLaneType",id:12}},nested:{Type:{values:{IGNORE:0,STOP:1,NUDGE:2,YIELD:3,OVERTAKE:4,FOLLOW:5,SIDEPASS:6}},StopReasonCode:{values:{STOP_REASON_HEAD_VEHICLE:1,STOP_REASON_DESTINATION:2,STOP_REASON_PEDESTRIAN:3,STOP_REASON_OBSTACLE:4,STOP_REASON_SIGNAL:100,STOP_REASON_STOP_SIGN:101,STOP_REASON_YIELD_SIGN:102,STOP_REASON_CLEAR_ZONE:103,STOP_REASON_CROSSWALK:104,STOP_REASON_EMERGENCY:105,STOP_REASON_NOT_READY:106,STOP_REASON_PULL_OVER:107}}}},Object:{fields:{id:{type:"string",id:1},polygonPoint:{rule:"repeated",type:"PolygonPoint",id:2},heading:{type:"double",id:3},latitude:{type:"double",id:4},longitude:{type:"double",id:5},positionX:{type:"double",id:6},positionY:{type:"double",id:7},length:{type:"double",id:8,options:{default:2.8}},width:{type:"double",id:9,options:{default:1.4}},height:{type:"double",id:10,options:{default:1.8}},speed:{type:"double",id:11},speedAcceleration:{type:"double",id:12},speedJerk:{type:"double",id:13},spin:{type:"double",id:14},spinAcceleration:{type:"double",id:15},spinJerk:{type:"double",id:16},speedHeading:{type:"double",id:17},kappa:{type:"double",id:18},signalSet:{rule:"repeated",type:"string",id:19},currentSignal:{type:"string",id:20},timestampSec:{type:"double",id:21},decision:{rule:"repeated",type:"Decision",id:22},yieldedObstacle:{type:"bool",id:32,options:{default:!1}},throttlePercentage:{type:"double",id:23},brakePercentage:{type:"double",id:24},steeringPercentage:{type:"double",id:25},steeringAngle:{type:"double",id:26},steeringRatio:{type:"double",id:27},disengageType:{type:"DisengageType",id:28},type:{type:"Type",id:29},prediction:{rule:"repeated",type:"Prediction",id:30},confidence:{type:"double",id:31,options:{default:1}},obstaclePriority:{type:"ObstaclePriority",id:33,options:{default:"NORMAL"}}},nested:{DisengageType:{values:{DISENGAGE_NONE:0,DISENGAGE_UNKNOWN:1,DISENGAGE_MANUAL:2,DISENGAGE_EMERGENCY:3,DISENGAGE_AUTO_STEER_ONLY:4,DISENGAGE_AUTO_SPEED_ONLY:5,DISENGAGE_CHASSIS_ERROR:6}},Type:{values:{UNKNOWN:0,UNKNOWN_MOVABLE:1,UNKNOWN_UNMOVABLE:2,PEDESTRIAN:3,BICYCLE:4,VEHICLE:5,VIRTUAL:6,CIPV:7}},ObstaclePriority:{values:{CAUTION:1,NORMAL:2,IGNORE:3}}}},DelaysInMs:{fields:{chassis:{type:"double",id:1},localization:{type:"double",id:3},perceptionObstacle:{type:"double",id:4},planning:{type:"double",id:5},prediction:{type:"double",id:7},trafficLight:{type:"double",id:8},control:{type:"double",id:9}}},RoutePath:{fields:{point:{rule:"repeated",type:"PolygonPoint",id:1}}},Latency:{fields:{timestampSec:{type:"double",id:1},totalTimeMs:{type:"double",id:2}}},MapElementIds:{fields:{lane:{rule:"repeated",type:"string",id:1},crosswalk:{rule:"repeated",type:"string",id:2},junction:{rule:"repeated",type:"string",id:3},signal:{rule:"repeated",type:"string",id:4},stopSign:{rule:"repeated",type:"string",id:5},yield:{rule:"repeated",type:"string",id:6},overlap:{rule:"repeated",type:"string",id:7},road:{rule:"repeated",type:"string",id:8},clearArea:{rule:"repeated",type:"string",id:9},parkingSpace:{rule:"repeated",type:"string",id:10},speedBump:{rule:"repeated",type:"string",id:11}}},ControlData:{fields:{timestampSec:{type:"double",id:1},stationError:{type:"double",id:2},lateralError:{type:"double",id:3},headingError:{type:"double",id:4}}},Notification:{fields:{timestampSec:{type:"double",id:1},item:{type:"apollo.common.monitor.MonitorMessageItem",id:2}}},SimulationWorld:{fields:{timestamp:{type:"double",id:1},sequenceNum:{type:"uint32",id:2},object:{rule:"repeated",type:"Object",id:3},autoDrivingCar:{type:"Object",id:4},trafficSignal:{type:"Object",id:5},routePath:{rule:"repeated",type:"RoutePath",id:6},routingTime:{type:"double",id:7},planningTrajectory:{rule:"repeated",type:"Object",id:8},mainStop:{type:"Object",id:9,options:{deprecated:!0}},mainDecision:{type:"Object",id:10},speedLimit:{type:"double",id:11},delay:{type:"DelaysInMs",id:12},monitor:{type:"apollo.common.monitor.MonitorMessage",id:13,options:{deprecated:!0}},notification:{rule:"repeated",type:"Notification",id:14},engageAdvice:{type:"string",id:15},latency:{keyType:"string",type:"Latency",id:16},mapElementIds:{type:"MapElementIds",id:17},mapHash:{type:"uint64",id:18},mapRadius:{type:"double",id:19},planningData:{type:"apollo.planning_internal.PlanningData",id:20},gps:{type:"Object",id:21},laneMarker:{type:"apollo.perception.LaneMarkers",id:22},controlData:{type:"ControlData",id:23},navigationPath:{rule:"repeated",type:"apollo.common.Path",id:24}}},Options:{fields:{legendDisplay:{type:"bool",id:1,options:{default:!0}},x:{type:"Axis",id:2},y:{type:"Axis",id:3}},nested:{Axis:{fields:{min:{type:"double",id:1},max:{type:"double",id:2},labelString:{type:"string",id:3}}}}},Line:{fields:{label:{type:"string",id:1},point:{rule:"repeated",type:"apollo.common.Point2D",id:2},properties:{keyType:"string",type:"string",id:3}}},Polygon:{fields:{label:{type:"string",id:1},point:{rule:"repeated",type:"apollo.common.Point2D",id:2},properties:{keyType:"string",type:"string",id:3}}},Car:{fields:{label:{type:"string",id:1},x:{type:"double",id:2},y:{type:"double",id:3},heading:{type:"double",id:4},color:{type:"string",id:5}}},Chart:{fields:{title:{type:"string",id:1},options:{type:"Options",id:2},line:{rule:"repeated",type:"Line",id:3},polygon:{rule:"repeated",type:"Polygon",id:4},car:{rule:"repeated",type:"Car",id:5}}}}},common:{nested:{DriveEvent:{fields:{header:{type:"apollo.common.Header",id:1},event:{type:"string",id:2},location:{type:"apollo.localization.Pose",id:3},type:{rule:"repeated",type:"Type",id:4,options:{packed:!1}}},nested:{Type:{values:{CRITICAL:0,PROBLEM:1,DESIRED:2,OUT_OF_SCOPE:3}}}},EngageAdvice:{fields:{advice:{type:"Advice",id:1,options:{default:"DISALLOW_ENGAGE"}},reason:{type:"string",id:2}},nested:{Advice:{values:{UNKNOWN:0,DISALLOW_ENGAGE:1,READY_TO_ENGAGE:2,KEEP_ENGAGED:3,PREPARE_DISENGAGE:4}}}},ErrorCode:{values:{OK:0,CONTROL_ERROR:1e3,CONTROL_INIT_ERROR:1001,CONTROL_COMPUTE_ERROR:1002,CANBUS_ERROR:2e3,CAN_CLIENT_ERROR_BASE:2100,CAN_CLIENT_ERROR_OPEN_DEVICE_FAILED:2101,CAN_CLIENT_ERROR_FRAME_NUM:2102,CAN_CLIENT_ERROR_SEND_FAILED:2103,CAN_CLIENT_ERROR_RECV_FAILED:2104,LOCALIZATION_ERROR:3e3,LOCALIZATION_ERROR_MSG:3100,LOCALIZATION_ERROR_LIDAR:3200,LOCALIZATION_ERROR_INTEG:3300,LOCALIZATION_ERROR_GNSS:3400,PERCEPTION_ERROR:4e3,PERCEPTION_ERROR_TF:4001,PERCEPTION_ERROR_PROCESS:4002,PERCEPTION_FATAL:4003,PERCEPTION_ERROR_NONE:4004,PERCEPTION_ERROR_UNKNOWN:4005,PREDICTION_ERROR:5e3,PLANNING_ERROR:6e3,HDMAP_DATA_ERROR:7e3,ROUTING_ERROR:8e3,ROUTING_ERROR_REQUEST:8001,ROUTING_ERROR_RESPONSE:8002,ROUTING_ERROR_NOT_READY:8003,END_OF_INPUT:9e3,HTTP_LOGIC_ERROR:1e4,HTTP_RUNTIME_ERROR:10001,RELATIVE_MAP_ERROR:11e3,RELATIVE_MAP_NOT_READY:11001,DRIVER_ERROR_GNSS:12e3,DRIVER_ERROR_VELODYNE:13e3}},StatusPb:{fields:{errorCode:{type:"ErrorCode",id:1,options:{default:"OK"}},msg:{type:"string",id:2}}},PointENU:{fields:{x:{type:"double",id:1,options:{default:null}},y:{type:"double",id:2,options:{default:null}},z:{type:"double",id:3,options:{default:0}}}},PointLLH:{fields:{lon:{type:"double",id:1,options:{default:null}},lat:{type:"double",id:2,options:{default:null}},height:{type:"double",id:3,options:{default:0}}}},Point2D:{fields:{x:{type:"double",id:1,options:{default:null}},y:{type:"double",id:2,options:{default:null}}}},Point3D:{fields:{x:{type:"double",id:1,options:{default:null}},y:{type:"double",id:2,options:{default:null}},z:{type:"double",id:3,options:{default:null}}}},Quaternion:{fields:{qx:{type:"double",id:1,options:{default:null}},qy:{type:"double",id:2,options:{default:null}},qz:{type:"double",id:3,options:{default:null}},qw:{type:"double",id:4,options:{default:null}}}},Polygon:{fields:{point:{rule:"repeated",type:"Point3D",id:1}}},Header:{fields:{timestampSec:{type:"double",id:1},moduleName:{type:"string",id:2},sequenceNum:{type:"uint32",id:3},lidarTimestamp:{type:"uint64",id:4},cameraTimestamp:{type:"uint64",id:5},radarTimestamp:{type:"uint64",id:6},version:{type:"uint32",id:7,options:{default:1}},status:{type:"StatusPb",id:8},frameId:{type:"string",id:9}}},SLPoint:{fields:{s:{type:"double",id:1},l:{type:"double",id:2}}},FrenetFramePoint:{fields:{s:{type:"double",id:1},l:{type:"double",id:2},dl:{type:"double",id:3},ddl:{type:"double",id:4}}},SpeedPoint:{fields:{s:{type:"double",id:1},t:{type:"double",id:2},v:{type:"double",id:3},a:{type:"double",id:4},da:{type:"double",id:5}}},PathPoint:{fields:{x:{type:"double",id:1},y:{type:"double",id:2},z:{type:"double",id:3},theta:{type:"double",id:4},kappa:{type:"double",id:5},s:{type:"double",id:6},dkappa:{type:"double",id:7},ddkappa:{type:"double",id:8},laneId:{type:"string",id:9},xDerivative:{type:"double",id:10},yDerivative:{type:"double",id:11}}},Path:{fields:{name:{type:"string",id:1},pathPoint:{rule:"repeated",type:"PathPoint",id:2}}},TrajectoryPoint:{fields:{pathPoint:{type:"PathPoint",id:1},v:{type:"double",id:2},a:{type:"double",id:3},relativeTime:{type:"double",id:4},da:{type:"double",id:5}}},Trajectory:{fields:{name:{type:"string",id:1},trajectoryPoint:{rule:"repeated",type:"TrajectoryPoint",id:2}}},VehicleMotionPoint:{fields:{trajectoryPoint:{type:"TrajectoryPoint",id:1},steer:{type:"double",id:2}}},VehicleMotion:{fields:{name:{type:"string",id:1},vehicleMotionPoint:{rule:"repeated",type:"VehicleMotionPoint",id:2}}},VehicleSignal:{fields:{turnSignal:{type:"TurnSignal",id:1},highBeam:{type:"bool",id:2},lowBeam:{type:"bool",id:3},horn:{type:"bool",id:4},emergencyLight:{type:"bool",id:5}},nested:{TurnSignal:{values:{TURN_NONE:0,TURN_LEFT:1,TURN_RIGHT:2}}}},monitor:{nested:{MonitorMessageItem:{fields:{source:{type:"MessageSource",id:1,options:{default:"UNKNOWN"}},msg:{type:"string",id:2},logLevel:{type:"LogLevel",id:3,options:{default:"INFO"}}},nested:{MessageSource:{values:{UNKNOWN:1,CANBUS:2,CONTROL:3,DECISION:4,LOCALIZATION:5,PLANNING:6,PREDICTION:7,SIMULATOR:8,HWSYS:9,ROUTING:10,MONITOR:11,HMI:12,RELATIVE_MAP:13,GNSS:14,CONTI_RADAR:15,RACOBIT_RADAR:16,ULTRASONIC_RADAR:17,MOBILEYE:18,DELPHI_ESR:19}},LogLevel:{values:{INFO:0,WARN:1,ERROR:2,FATAL:3}}}},MonitorMessage:{fields:{header:{type:"apollo.common.Header",id:1},item:{rule:"repeated",type:"MonitorMessageItem",id:2}}}}}}},localization:{nested:{Uncertainty:{fields:{positionStdDev:{type:"apollo.common.Point3D",id:1},orientationStdDev:{type:"apollo.common.Point3D",id:2},linearVelocityStdDev:{type:"apollo.common.Point3D",id:3},linearAccelerationStdDev:{type:"apollo.common.Point3D",id:4},angularVelocityStdDev:{type:"apollo.common.Point3D",id:5}}},LocalizationEstimate:{fields:{header:{type:"apollo.common.Header",id:1},pose:{type:"apollo.localization.Pose",id:2},uncertainty:{type:"Uncertainty",id:3},measurementTime:{type:"double",id:4},trajectoryPoint:{rule:"repeated",type:"apollo.common.TrajectoryPoint",id:5},msfStatus:{type:"MsfStatus",id:6},sensorStatus:{type:"MsfSensorMsgStatus",id:7}}},MeasureState:{values:{OK:0,WARNNING:1,ERROR:2,CRITICAL_ERROR:3,FATAL_ERROR:4}},LocalizationStatus:{fields:{header:{type:"apollo.common.Header",id:1},fusionStatus:{type:"MeasureState",id:2},gnssStatus:{type:"MeasureState",id:3,options:{deprecated:!0}},lidarStatus:{type:"MeasureState",id:4,options:{deprecated:!0}},measurementTime:{type:"double",id:5},stateMessage:{type:"string",id:6}}},Pose:{fields:{position:{type:"apollo.common.PointENU",id:1},orientation:{type:"apollo.common.Quaternion",id:2},linearVelocity:{type:"apollo.common.Point3D",id:3},linearAcceleration:{type:"apollo.common.Point3D",id:4},angularVelocity:{type:"apollo.common.Point3D",id:5},heading:{type:"double",id:6},linearAccelerationVrf:{type:"apollo.common.Point3D",id:7},angularVelocityVrf:{type:"apollo.common.Point3D",id:8},eulerAngles:{type:"apollo.common.Point3D",id:9}}},LocalLidarStatus:{values:{MSF_LOCAL_LIDAR_NORMAL:0,MSF_LOCAL_LIDAR_MAP_MISSING:1,MSF_LOCAL_LIDAR_EXTRINSICS_MISSING:2,MSF_LOCAL_LIDAR_MAP_LOADING_FAILED:3,MSF_LOCAL_LIDAR_NO_OUTPUT:4,MSF_LOCAL_LIDAR_OUT_OF_MAP:5,MSF_LOCAL_LIDAR_NOT_GOOD:6,MSF_LOCAL_LIDAR_UNDEFINED_STATUS:7}},LocalLidarQuality:{values:{MSF_LOCAL_LIDAR_VERY_GOOD:0,MSF_LOCAL_LIDAR_GOOD:1,MSF_LOCAL_LIDAR_NOT_BAD:2,MSF_LOCAL_LIDAR_BAD:3}},LocalLidarConsistency:{values:{MSF_LOCAL_LIDAR_CONSISTENCY_00:0,MSF_LOCAL_LIDAR_CONSISTENCY_01:1,MSF_LOCAL_LIDAR_CONSISTENCY_02:2,MSF_LOCAL_LIDAR_CONSISTENCY_03:3}},GnssConsistency:{values:{MSF_GNSS_CONSISTENCY_00:0,MSF_GNSS_CONSISTENCY_01:1,MSF_GNSS_CONSISTENCY_02:2,MSF_GNSS_CONSISTENCY_03:3}},GnssPositionType:{values:{NONE:0,FIXEDPOS:1,FIXEDHEIGHT:2,FLOATCONV:4,WIDELANE:5,NARROWLANE:6,DOPPLER_VELOCITY:8,SINGLE:16,PSRDIFF:17,WAAS:18,PROPOGATED:19,OMNISTAR:20,L1_FLOAT:32,IONOFREE_FLOAT:33,NARROW_FLOAT:34,L1_INT:48,WIDE_INT:49,NARROW_INT:50,RTK_DIRECT_INS:51,INS_SBAS:52,INS_PSRSP:53,INS_PSRDIFF:54,INS_RTKFLOAT:55,INS_RTKFIXED:56,INS_OMNISTAR:57,INS_OMNISTAR_HP:58,INS_OMNISTAR_XP:59,OMNISTAR_HP:64,OMNISTAR_XP:65,PPP_CONVERGING:68,PPP:69,INS_PPP_Converging:73,INS_PPP:74,MSG_LOSS:91}},ImuMsgDelayStatus:{values:{IMU_DELAY_NORMAL:0,IMU_DELAY_1:1,IMU_DELAY_2:2,IMU_DELAY_3:3,IMU_DELAY_ABNORMAL:4}},ImuMsgMissingStatus:{values:{IMU_MISSING_NORMAL:0,IMU_MISSING_1:1,IMU_MISSING_2:2,IMU_MISSING_3:3,IMU_MISSING_4:4,IMU_MISSING_5:5,IMU_MISSING_ABNORMAL:6}},ImuMsgDataStatus:{values:{IMU_DATA_NORMAL:0,IMU_DATA_ABNORMAL:1,IMU_DATA_OTHER:2}},MsfRunningStatus:{values:{MSF_SOL_LIDAR_GNSS:0,MSF_SOL_X_GNSS:1,MSF_SOL_LIDAR_X:2,MSF_SOL_LIDAR_XX:3,MSF_SOL_LIDAR_XXX:4,MSF_SOL_X_X:5,MSF_SOL_X_XX:6,MSF_SOL_X_XXX:7,MSF_SSOL_LIDAR_GNSS:8,MSF_SSOL_X_GNSS:9,MSF_SSOL_LIDAR_X:10,MSF_SSOL_LIDAR_XX:11,MSF_SSOL_LIDAR_XXX:12,MSF_SSOL_X_X:13,MSF_SSOL_X_XX:14,MSF_SSOL_X_XXX:15,MSF_NOSOL_LIDAR_GNSS:16,MSF_NOSOL_X_GNSS:17,MSF_NOSOL_LIDAR_X:18,MSF_NOSOL_LIDAR_XX:19,MSF_NOSOL_LIDAR_XXX:20,MSF_NOSOL_X_X:21,MSF_NOSOL_X_XX:22,MSF_NOSOL_X_XXX:23,MSF_RUNNING_INIT:24}},MsfSensorMsgStatus:{fields:{imuDelayStatus:{type:"ImuMsgDelayStatus",id:1},imuMissingStatus:{type:"ImuMsgMissingStatus",id:2},imuDataStatus:{type:"ImuMsgDataStatus",id:3}}},MsfStatus:{fields:{localLidarConsistency:{type:"LocalLidarConsistency",id:1},gnssConsistency:{type:"GnssConsistency",id:2},localLidarStatus:{type:"LocalLidarStatus",id:3},localLidarQuality:{type:"LocalLidarQuality",id:4},gnssposPositionType:{type:"GnssPositionType",id:5},msfRunningStatus:{type:"MsfRunningStatus",id:6}}}}},canbus:{nested:{Chassis:{fields:{engineStarted:{type:"bool",id:3},engineRpm:{type:"float",id:4,options:{default:null}},speedMps:{type:"float",id:5,options:{default:null}},odometerM:{type:"float",id:6,options:{default:null}},fuelRangeM:{type:"int32",id:7},throttlePercentage:{type:"float",id:8,options:{default:null}},brakePercentage:{type:"float",id:9,options:{default:null}},steeringPercentage:{type:"float",id:11,options:{default:null}},steeringTorqueNm:{type:"float",id:12,options:{default:null}},parkingBrake:{type:"bool",id:13},highBeamSignal:{type:"bool",id:14,options:{deprecated:!0}},lowBeamSignal:{type:"bool",id:15,options:{deprecated:!0}},leftTurnSignal:{type:"bool",id:16,options:{deprecated:!0}},rightTurnSignal:{type:"bool",id:17,options:{deprecated:!0}},horn:{type:"bool",id:18,options:{deprecated:!0}},wiper:{type:"bool",id:19},disengageStatus:{type:"bool",id:20,options:{deprecated:!0}},drivingMode:{type:"DrivingMode",id:21,options:{default:"COMPLETE_MANUAL"}},errorCode:{type:"ErrorCode",id:22,options:{default:"NO_ERROR"}},gearLocation:{type:"GearPosition",id:23},steeringTimestamp:{type:"double",id:24},header:{type:"apollo.common.Header",id:25},chassisErrorMask:{type:"int32",id:26,options:{default:0}},signal:{type:"apollo.common.VehicleSignal",id:27},chassisGps:{type:"ChassisGPS",id:28},engageAdvice:{type:"apollo.common.EngageAdvice",id:29},wheelSpeed:{type:"WheelSpeed",id:30},surround:{type:"Surround",id:31},license:{type:"License",id:32}},nested:{DrivingMode:{values:{COMPLETE_MANUAL:0,COMPLETE_AUTO_DRIVE:1,AUTO_STEER_ONLY:2,AUTO_SPEED_ONLY:3,EMERGENCY_MODE:4}},ErrorCode:{values:{NO_ERROR:0,CMD_NOT_IN_PERIOD:1,CHASSIS_ERROR:2,MANUAL_INTERVENTION:3,CHASSIS_CAN_NOT_IN_PERIOD:4,UNKNOWN_ERROR:5}},GearPosition:{values:{GEAR_NEUTRAL:0,GEAR_DRIVE:1,GEAR_REVERSE:2,GEAR_PARKING:3,GEAR_LOW:4,GEAR_INVALID:5,GEAR_NONE:6}}}},ChassisGPS:{fields:{latitude:{type:"double",id:1},longitude:{type:"double",id:2},gpsValid:{type:"bool",id:3},year:{type:"int32",id:4},month:{type:"int32",id:5},day:{type:"int32",id:6},hours:{type:"int32",id:7},minutes:{type:"int32",id:8},seconds:{type:"int32",id:9},compassDirection:{type:"double",id:10},pdop:{type:"double",id:11},isGpsFault:{type:"bool",id:12},isInferred:{type:"bool",id:13},altitude:{type:"double",id:14},heading:{type:"double",id:15},hdop:{type:"double",id:16},vdop:{type:"double",id:17},quality:{type:"GpsQuality",id:18},numSatellites:{type:"int32",id:19},gpsSpeed:{type:"double",id:20}}},GpsQuality:{values:{FIX_NO:0,FIX_2D:1,FIX_3D:2,FIX_INVALID:3}},WheelSpeed:{fields:{isWheelSpdRrValid:{type:"bool",id:1,options:{default:!1}},wheelDirectionRr:{type:"WheelSpeedType",id:2,options:{default:"INVALID"}},wheelSpdRr:{type:"double",id:3,options:{default:0}},isWheelSpdRlValid:{type:"bool",id:4,options:{default:!1}},wheelDirectionRl:{type:"WheelSpeedType",id:5,options:{default:"INVALID"}},wheelSpdRl:{type:"double",id:6,options:{default:0}},isWheelSpdFrValid:{type:"bool",id:7,options:{default:!1}},wheelDirectionFr:{type:"WheelSpeedType",id:8,options:{default:"INVALID"}},wheelSpdFr:{type:"double",id:9,options:{default:0}},isWheelSpdFlValid:{type:"bool",id:10,options:{default:!1}},wheelDirectionFl:{type:"WheelSpeedType",id:11,options:{default:"INVALID"}},wheelSpdFl:{type:"double",id:12,options:{default:0}}},nested:{WheelSpeedType:{values:{FORWARD:0,BACKWARD:1,STANDSTILL:2,INVALID:3}}}},Sonar:{fields:{range:{type:"double",id:1},translation:{type:"apollo.common.Point3D",id:2},rotation:{type:"apollo.common.Quaternion",id:3}}},Surround:{fields:{crossTrafficAlertLeft:{type:"bool",id:1},crossTrafficAlertLeftEnabled:{type:"bool",id:2},blindSpotLeftAlert:{type:"bool",id:3},blindSpotLeftAlertEnabled:{type:"bool",id:4},crossTrafficAlertRight:{type:"bool",id:5},crossTrafficAlertRightEnabled:{type:"bool",id:6},blindSpotRightAlert:{type:"bool",id:7},blindSpotRightAlertEnabled:{type:"bool",id:8},sonar00:{type:"double",id:9},sonar01:{type:"double",id:10},sonar02:{type:"double",id:11},sonar03:{type:"double",id:12},sonar04:{type:"double",id:13},sonar05:{type:"double",id:14},sonar06:{type:"double",id:15},sonar07:{type:"double",id:16},sonar08:{type:"double",id:17},sonar09:{type:"double",id:18},sonar10:{type:"double",id:19},sonar11:{type:"double",id:20},sonarEnabled:{type:"bool",id:21},sonarFault:{type:"bool",id:22},sonarRange:{rule:"repeated",type:"double",id:23,options:{packed:!1}},sonar:{rule:"repeated",type:"Sonar",id:24}}},License:{fields:{vin:{type:"string",id:1}}}}},planning:{nested:{autotuning:{nested:{PathPointwiseFeature:{fields:{l:{type:"double",id:1},dl:{type:"double",id:2},ddl:{type:"double",id:3},kappa:{type:"double",id:4},obstacleInfo:{rule:"repeated",type:"ObstacleFeature",id:5},leftBoundFeature:{type:"BoundRelatedFeature",id:6},rightBoundFeature:{type:"BoundRelatedFeature",id:7}},nested:{ObstacleFeature:{fields:{lateralDistance:{type:"double",id:1}}},BoundRelatedFeature:{fields:{boundDistance:{type:"double",id:1},crossableLevel:{type:"CrossableLevel",id:2}},nested:{CrossableLevel:{values:{CROSS_FREE:0,CROSS_ABLE:1,CROSS_FORBIDDEN:2}}}}}},SpeedPointwiseFeature:{fields:{s:{type:"double",id:1,options:{default:0}},t:{type:"double",id:2,options:{default:0}},v:{type:"double",id:3,options:{default:0}},speedLimit:{type:"double",id:4,options:{default:0}},acc:{type:"double",id:5,options:{default:0}},jerk:{type:"double",id:6,options:{default:0}},followObsFeature:{rule:"repeated",type:"ObstacleFeature",id:7},overtakeObsFeature:{rule:"repeated",type:"ObstacleFeature",id:8},nudgeObsFeature:{rule:"repeated",type:"ObstacleFeature",id:9},stopObsFeature:{rule:"repeated",type:"ObstacleFeature",id:10},collisionTimes:{type:"int32",id:11,options:{default:0}},virtualObsFeature:{rule:"repeated",type:"ObstacleFeature",id:12},lateralAcc:{type:"double",id:13,options:{default:0}},pathCurvatureAbs:{type:"double",id:14,options:{default:0}},sidepassFrontObsFeature:{rule:"repeated",type:"ObstacleFeature",id:15},sidepassRearObsFeature:{rule:"repeated",type:"ObstacleFeature",id:16}},nested:{ObstacleFeature:{fields:{longitudinalDistance:{type:"double",id:1},obstacleSpeed:{type:"double",id:2},lateralDistance:{type:"double",id:3,options:{default:10}},probability:{type:"double",id:4},relativeV:{type:"double",id:5}}}}},TrajectoryPointwiseFeature:{fields:{pathInputFeature:{type:"PathPointwiseFeature",id:1},speedInputFeature:{type:"SpeedPointwiseFeature",id:2}}},TrajectoryFeature:{fields:{pointFeature:{rule:"repeated",type:"TrajectoryPointwiseFeature",id:1}}},PathPointRawFeature:{fields:{cartesianCoord:{type:"apollo.common.PathPoint",id:1},frenetCoord:{type:"apollo.common.FrenetFramePoint",id:2}}},SpeedPointRawFeature:{fields:{s:{type:"double",id:1},t:{type:"double",id:2},v:{type:"double",id:3},a:{type:"double",id:4},j:{type:"double",id:5},speedLimit:{type:"double",id:6},follow:{rule:"repeated",type:"ObjectDecisionFeature",id:10},overtake:{rule:"repeated",type:"ObjectDecisionFeature",id:11},virtualDecision:{rule:"repeated",type:"ObjectDecisionFeature",id:13},stop:{rule:"repeated",type:"ObjectDecisionFeature",id:14},collision:{rule:"repeated",type:"ObjectDecisionFeature",id:15},nudge:{rule:"repeated",type:"ObjectDecisionFeature",id:12},sidepassFront:{rule:"repeated",type:"ObjectDecisionFeature",id:16},sidepassRear:{rule:"repeated",type:"ObjectDecisionFeature",id:17},keepClear:{rule:"repeated",type:"ObjectDecisionFeature",id:18}},nested:{ObjectDecisionFeature:{fields:{id:{type:"int32",id:1},relativeS:{type:"double",id:2},relativeL:{type:"double",id:3},relativeV:{type:"double",id:4},speed:{type:"double",id:5}}}}},ObstacleSTRawData:{fields:{obstacleStData:{rule:"repeated",type:"ObstacleSTData",id:1},obstacleStNudge:{rule:"repeated",type:"ObstacleSTData",id:2},obstacleStSidepass:{rule:"repeated",type:"ObstacleSTData",id:3}},nested:{STPointPair:{fields:{sLower:{type:"double",id:1},sUpper:{type:"double",id:2},t:{type:"double",id:3},l:{type:"double",id:4,options:{default:10}}}},ObstacleSTData:{fields:{id:{type:"int32",id:1},speed:{type:"double",id:2},isVirtual:{type:"bool",id:3},probability:{type:"double",id:4},polygon:{rule:"repeated",type:"STPointPair",id:8},distribution:{rule:"repeated",type:"STPointPair",id:9}}}}},TrajectoryPointRawFeature:{fields:{pathFeature:{type:"PathPointRawFeature",id:1},speedFeature:{type:"SpeedPointRawFeature",id:2}}},TrajectoryRawFeature:{fields:{pointFeature:{rule:"repeated",type:"TrajectoryPointRawFeature",id:1},stRawData:{type:"ObstacleSTRawData",id:2}}}}},DeciderCreepConfig:{fields:{stopDistance:{type:"double",id:1,options:{default:.5}},speedLimit:{type:"double",id:2,options:{default:1}},maxValidStopDistance:{type:"double",id:3,options:{default:.3}},minBoundaryT:{type:"double",id:4,options:{default:6}},maxToleranceT:{type:"double",id:5,options:{default:.5}}}},RuleCrosswalkConfig:{fields:{enabled:{type:"bool",id:1,options:{default:!0}},stopDistance:{type:"double",id:2,options:{default:1}}}},RuleStopSignConfig:{fields:{enabled:{type:"bool",id:1,options:{default:!0}},stopDistance:{type:"double",id:2,options:{default:1}}}},RuleTrafficLightConfig:{fields:{enabled:{type:"bool",id:1,options:{default:!0}},stopDistance:{type:"double",id:2,options:{default:1}},signalExpireTimeSec:{type:"double",id:3,options:{default:5}}}},DeciderRuleBasedStopConfig:{fields:{crosswalk:{type:"RuleCrosswalkConfig",id:1},stopSign:{type:"RuleStopSignConfig",id:2},trafficLight:{type:"RuleTrafficLightConfig",id:3}}},SidePassSafetyConfig:{fields:{minObstacleLateralDistance:{type:"double",id:1,options:{default:1}},maxOverlapSRange:{type:"double",id:2,options:{default:5}},safeDurationReachRefLine:{type:"double",id:3,options:{default:5}}}},TargetLane:{fields:{id:{type:"string",id:1},startS:{type:"double",id:2},endS:{type:"double",id:3},speedLimit:{type:"double",id:4}}},ObjectIgnore:{fields:{}},StopReasonCode:{values:{STOP_REASON_HEAD_VEHICLE:1,STOP_REASON_DESTINATION:2,STOP_REASON_PEDESTRIAN:3,STOP_REASON_OBSTACLE:4,STOP_REASON_PREPARKING:5,STOP_REASON_SIGNAL:100,STOP_REASON_STOP_SIGN:101,STOP_REASON_YIELD_SIGN:102,STOP_REASON_CLEAR_ZONE:103,STOP_REASON_CROSSWALK:104,STOP_REASON_CREEPER:105,STOP_REASON_REFERENCE_END:106,STOP_REASON_YELLOW_SIGNAL:107,STOP_REASON_PULL_OVER:108}},ObjectStop:{fields:{reasonCode:{type:"StopReasonCode",id:1},distanceS:{type:"double",id:2},stopPoint:{type:"apollo.common.PointENU",id:3},stopHeading:{type:"double",id:4},waitForObstacle:{rule:"repeated",type:"string",id:5}}},ObjectNudge:{fields:{type:{type:"Type",id:1},distanceL:{type:"double",id:2}},nested:{Type:{values:{LEFT_NUDGE:1,RIGHT_NUDGE:2,NO_NUDGE:3}}}},ObjectYield:{fields:{distanceS:{type:"double",id:1},fencePoint:{type:"apollo.common.PointENU",id:2},fenceHeading:{type:"double",id:3},timeBuffer:{type:"double",id:4}}},ObjectFollow:{fields:{distanceS:{type:"double",id:1},fencePoint:{type:"apollo.common.PointENU",id:2},fenceHeading:{type:"double",id:3}}},ObjectOvertake:{fields:{distanceS:{type:"double",id:1},fencePoint:{type:"apollo.common.PointENU",id:2},fenceHeading:{type:"double",id:3},timeBuffer:{type:"double",id:4}}},ObjectSidePass:{fields:{type:{type:"Type",id:1}},nested:{Type:{values:{LEFT:1,RIGHT:2}}}},ObjectAvoid:{fields:{}},ObjectDecisionType:{oneofs:{objectTag:{oneof:["ignore","stop","follow","yield","overtake","nudge","avoid"]}},fields:{ignore:{type:"ObjectIgnore",id:1},stop:{type:"ObjectStop",id:2},follow:{type:"ObjectFollow",id:3},yield:{type:"ObjectYield",id:4},overtake:{type:"ObjectOvertake",id:5},nudge:{type:"ObjectNudge",id:6},avoid:{type:"ObjectAvoid",id:7}}},ObjectDecision:{fields:{id:{type:"string",id:1},perceptionId:{type:"int32",id:2},objectDecision:{rule:"repeated",type:"ObjectDecisionType",id:3}}},ObjectDecisions:{fields:{decision:{rule:"repeated",type:"ObjectDecision",id:1}}},MainStop:{fields:{reasonCode:{type:"StopReasonCode",id:1},reason:{type:"string",id:2},stopPoint:{type:"apollo.common.PointENU",id:3},stopHeading:{type:"double",id:4},changeLaneType:{type:"apollo.routing.ChangeLaneType",id:5}}},EmergencyStopHardBrake:{fields:{}},EmergencyStopCruiseToStop:{fields:{}},MainEmergencyStop:{oneofs:{task:{oneof:["hardBrake","cruiseToStop"]}},fields:{reasonCode:{type:"ReasonCode",id:1},reason:{type:"string",id:2},hardBrake:{type:"EmergencyStopHardBrake",id:3},cruiseToStop:{type:"EmergencyStopCruiseToStop",id:4}},nested:{ReasonCode:{values:{ESTOP_REASON_INTERNAL_ERR:1,ESTOP_REASON_COLLISION:2,ESTOP_REASON_ST_FIND_PATH:3,ESTOP_REASON_ST_MAKE_DECISION:4,ESTOP_REASON_SENSOR_ERROR:5}}}},MainCruise:{fields:{changeLaneType:{type:"apollo.routing.ChangeLaneType",id:1}}},MainChangeLane:{fields:{type:{type:"Type",id:1},defaultLane:{rule:"repeated",type:"TargetLane",id:2},defaultLaneStop:{type:"MainStop",id:3},targetLaneStop:{type:"MainStop",id:4}},nested:{Type:{values:{LEFT:1,RIGHT:2}}}},MainMissionComplete:{fields:{stopPoint:{type:"apollo.common.PointENU",id:1},stopHeading:{type:"double",id:2}}},MainNotReady:{fields:{reason:{type:"string",id:1}}},MainParking:{fields:{}},MainDecision:{oneofs:{task:{oneof:["cruise","stop","estop","changeLane","missionComplete","notReady","parking"]}},fields:{cruise:{type:"MainCruise",id:1},stop:{type:"MainStop",id:2},estop:{type:"MainEmergencyStop",id:3},changeLane:{type:"MainChangeLane",id:4,options:{deprecated:!0}},missionComplete:{type:"MainMissionComplete",id:6},notReady:{type:"MainNotReady",id:7},parking:{type:"MainParking",id:8},targetLane:{rule:"repeated",type:"TargetLane",id:5,options:{deprecated:!0}}}},DecisionResult:{fields:{mainDecision:{type:"MainDecision",id:1},objectDecision:{type:"ObjectDecisions",id:2},vehicleSignal:{type:"apollo.common.VehicleSignal",id:3}}},DpPolyPathConfig:{fields:{waypointSamplerConfig:{type:"WaypointSamplerConfig",id:1},evalTimeInterval:{type:"double",id:2,options:{default:.1}},pathResolution:{type:"double",id:3,options:{default:.1}},obstacleIgnoreDistance:{type:"double",id:4,options:{default:20}},obstacleCollisionDistance:{type:"double",id:5,options:{default:.2}},obstacleRiskDistance:{type:"double",id:6,options:{default:2}},obstacleCollisionCost:{type:"double",id:7,options:{default:1e3}},pathLCost:{type:"double",id:8},pathDlCost:{type:"double",id:9},pathDdlCost:{type:"double",id:10},pathLCostParamL0:{type:"double",id:11},pathLCostParamB:{type:"double",id:12},pathLCostParamK:{type:"double",id:13},pathOutLaneCost:{type:"double",id:14},pathEndLCost:{type:"double",id:15}}},DpStSpeedConfig:{fields:{totalPathLength:{type:"double",id:1,options:{default:.1}},totalTime:{type:"double",id:2,options:{default:3}},matrixDimensionS:{type:"int32",id:3,options:{default:100}},matrixDimensionT:{type:"int32",id:4,options:{default:10}},speedWeight:{type:"double",id:5,options:{default:0}},accelWeight:{type:"double",id:6,options:{default:10}},jerkWeight:{type:"double",id:7,options:{default:10}},obstacleWeight:{type:"double",id:8,options:{default:1}},referenceWeight:{type:"double",id:9,options:{default:0}},goDownBuffer:{type:"double",id:10,options:{default:5}},goUpBuffer:{type:"double",id:11,options:{default:5}},defaultObstacleCost:{type:"double",id:12,options:{default:1e10}},defaultSpeedCost:{type:"double",id:13,options:{default:1}},exceedSpeedPenalty:{type:"double",id:14,options:{default:10}},lowSpeedPenalty:{type:"double",id:15,options:{default:2.5}},keepClearLowSpeedPenalty:{type:"double",id:16,options:{default:10}},accelPenalty:{type:"double",id:20,options:{default:2}},decelPenalty:{type:"double",id:21,options:{default:2}},positiveJerkCoeff:{type:"double",id:30,options:{default:1}},negativeJerkCoeff:{type:"double",id:31,options:{default:300}},maxAcceleration:{type:"double",id:40,options:{default:4.5}},maxDeceleration:{type:"double",id:41,options:{default:-4.5}},stBoundaryConfig:{type:"apollo.planning.StBoundaryConfig",id:50}}},LonCondition:{fields:{s:{type:"double",id:1,options:{default:0}},ds:{type:"double",id:2,options:{default:0}},dds:{type:"double",id:3,options:{default:0}}}},LatCondition:{fields:{l:{type:"double",id:1,options:{default:0}},dl:{type:"double",id:2,options:{default:0}},ddl:{type:"double",id:3,options:{default:0}}}},TStrategy:{fields:{tMarkers:{rule:"repeated",type:"double",id:1,options:{packed:!1}},tStep:{type:"double",id:2,options:{default:.5}},strategy:{type:"string",id:3}}},SStrategy:{fields:{sMarkers:{rule:"repeated",type:"double",id:1,options:{packed:!1}},sStep:{type:"double",id:2,options:{default:.5}},strategy:{type:"string",id:3}}},LonSampleConfig:{fields:{lonEndCondition:{type:"LonCondition",id:1},tStrategy:{type:"TStrategy",id:2}}},LatSampleConfig:{fields:{latEndCondition:{type:"LatCondition",id:1},sStrategy:{type:"SStrategy",id:2}}},LatticeSamplingConfig:{fields:{lonSampleConfig:{type:"LonSampleConfig",id:1},latSampleConfig:{type:"LatSampleConfig",id:2}}},PathTimePoint:{fields:{t:{type:"double",id:1},s:{type:"double",id:2},obstacleId:{type:"string",id:4}}},SamplePoint:{fields:{pathTimePoint:{type:"PathTimePoint",id:1},refV:{type:"double",id:2}}},PathTimeObstacle:{fields:{obstacleId:{type:"string",id:1},bottomLeft:{type:"PathTimePoint",id:2},upperLeft:{type:"PathTimePoint",id:3},upperRight:{type:"PathTimePoint",id:4},bottomRight:{type:"PathTimePoint",id:5},timeLower:{type:"double",id:6},timeUpper:{type:"double",id:7},pathLower:{type:"double",id:8},pathUpper:{type:"double",id:9}}},StopPoint:{fields:{s:{type:"double",id:1},type:{type:"Type",id:2,options:{default:"HARD"}}},nested:{Type:{values:{HARD:0,SOFT:1}}}},PlanningTarget:{fields:{stopPoint:{type:"StopPoint",id:1},cruiseSpeed:{type:"double",id:2}}},NaviObstacleDeciderConfig:{fields:{minNudgeDistance:{type:"double",id:1,options:{default:.2}},maxNudgeDistance:{type:"double",id:2,options:{default:1.2}},maxAllowNudgeSpeed:{type:"double",id:3,options:{default:16.667}},safeDistance:{type:"double",id:4,options:{default:.2}},nudgeAllowTolerance:{type:"double",id:5,options:{default:.05}},cyclesNumber:{type:"uint32",id:6,options:{default:3}},judgeDisCoeff:{type:"double",id:7,options:{default:2}},basisDisValue:{type:"double",id:8,options:{default:30}},lateralVelocityValue:{type:"double",id:9,options:{default:.5}},speedDeciderDetectRange:{type:"double",id:10,options:{default:1}},maxKeepNudgeCycles:{type:"uint32",id:11,options:{default:100}}}},NaviPathDeciderConfig:{fields:{minPathLength:{type:"double",id:1,options:{default:5}},minLookForwardTime:{type:"uint32",id:2,options:{default:2}},maxKeepLaneDistance:{type:"double",id:3,options:{default:.8}},maxKeepLaneShiftY:{type:"double",id:4,options:{default:20}},minKeepLaneOffset:{type:"double",id:5,options:{default:15}},keepLaneShiftCompensation:{type:"double",id:6,options:{default:.01}},moveDestLaneConfigTalbe:{type:"MoveDestLaneConfigTable",id:7},moveDestLaneCompensation:{type:"double",id:8,options:{default:.35}},maxKappaThreshold:{type:"double",id:9,options:{default:0}},kappaMoveDestLaneCompensation:{type:"double",id:10,options:{default:0}},startPlanPointFrom:{type:"uint32",id:11,options:{default:0}}}},MoveDestLaneConfigTable:{fields:{lateralShift:{rule:"repeated",type:"ShiftConfig",id:1}}},ShiftConfig:{fields:{maxSpeed:{type:"double",id:1,options:{default:4.16}},maxMoveDestLaneShiftY:{type:"double",id:3,options:{default:.4}}}},NaviSpeedDeciderConfig:{fields:{preferredAccel:{type:"double",id:1,options:{default:2}},preferredDecel:{type:"double",id:2,options:{default:2}},preferredJerk:{type:"double",id:3,options:{default:2}},maxAccel:{type:"double",id:4,options:{default:4}},maxDecel:{type:"double",id:5,options:{default:5}},obstacleBuffer:{type:"double",id:6,options:{default:.5}},safeDistanceBase:{type:"double",id:7,options:{default:2}},safeDistanceRatio:{type:"double",id:8,options:{default:1}},followingAccelRatio:{type:"double",id:9,options:{default:.5}},softCentricAccelLimit:{type:"double",id:10,options:{default:1.2}},hardCentricAccelLimit:{type:"double",id:11,options:{default:1.5}},hardSpeedLimit:{type:"double",id:12,options:{default:100}},hardAccelLimit:{type:"double",id:13,options:{default:10}},enableSafePath:{type:"bool",id:14,options:{default:!0}},enablePlanningStartPoint:{type:"bool",id:15,options:{default:!0}},enableAccelAutoCompensation:{type:"bool",id:16,options:{default:!0}},kappaPreview:{type:"double",id:17,options:{default:0}},kappaThreshold:{type:"double",id:18,options:{default:0}}}},DrivingAction:{values:{FOLLOW:0,CHANGE_LEFT:1,CHANGE_RIGHT:2,PULL_OVER:3,STOP:4}},PadMessage:{fields:{header:{type:"apollo.common.Header",id:1},action:{type:"DrivingAction",id:2}}},PlannerOpenSpaceConfig:{fields:{warmStartConfig:{type:"WarmStartConfig",id:1},dualVariableWarmStartConfig:{type:"DualVariableWarmStartConfig",id:2},distanceApproachConfig:{type:"DistanceApproachConfig",id:3},deltaT:{type:"float",id:4,options:{default:1}},maxPositionErrorToEndPoint:{type:"double",id:5,options:{default:.5}},maxThetaErrorToEndPoint:{type:"double",id:6,options:{default:.2}}}},WarmStartConfig:{fields:{xyGridResolution:{type:"double",id:1,options:{default:.2}},phiGridResolution:{type:"double",id:2,options:{default:.05}},maxSteering:{type:"double",id:7,options:{default:.6}},nextNodeNum:{type:"uint64",id:8,options:{default:10}},stepSize:{type:"double",id:9,options:{default:.5}},backPenalty:{type:"double",id:10,options:{default:0}},gearSwitchPenalty:{type:"double",id:11,options:{default:10}},steerPenalty:{type:"double",id:12,options:{default:100}},steerChangePenalty:{type:"double",id:13,options:{default:10}}}},DualVariableWarmStartConfig:{fields:{weightD:{type:"double",id:1,options:{default:1}}}},DistanceApproachConfig:{fields:{weightU:{rule:"repeated",type:"double",id:1,options:{packed:!1}},weightURate:{rule:"repeated",type:"double",id:2,options:{packed:!1}},weightState:{rule:"repeated",type:"double",id:3,options:{packed:!1}},weightStitching:{rule:"repeated",type:"double",id:4,options:{packed:!1}},weightTime:{rule:"repeated",type:"double",id:5,options:{packed:!1}},minSafetyDistance:{type:"double",id:6,options:{default:0}},maxSteerAngle:{type:"double",id:7,options:{default:.6}},maxSteerRate:{type:"double",id:8,options:{default:.6}},maxSpeedForward:{type:"double",id:9,options:{default:3}},maxSpeedReverse:{type:"double",id:10,options:{default:2}},maxAccelerationForward:{type:"double",id:11,options:{default:2}},maxAccelerationReverse:{type:"double",id:12,options:{default:2}},minTimeSampleScaling:{type:"double",id:13,options:{default:.1}},maxTimeSampleScaling:{type:"double",id:14,options:{default:10}},useFixTime:{type:"bool",id:18,options:{default:!1}}}},ADCSignals:{fields:{signal:{rule:"repeated",type:"SignalType",id:1,options:{packed:!1}}},nested:{SignalType:{values:{LEFT_TURN:1,RIGHT_TURN:2,LOW_BEAM_LIGHT:3,HIGH_BEAM_LIGHT:4,FOG_LIGHT:5,EMERGENCY_LIGHT:6}}}},EStop:{fields:{isEstop:{type:"bool",id:1},reason:{type:"string",id:2}}},TaskStats:{fields:{name:{type:"string",id:1},timeMs:{type:"double",id:2}}},LatencyStats:{fields:{totalTimeMs:{type:"double",id:1},taskStats:{rule:"repeated",type:"TaskStats",id:2},initFrameTimeMs:{type:"double",id:3}}},ADCTrajectory:{fields:{header:{type:"apollo.common.Header",id:1},totalPathLength:{type:"double",id:2},totalPathTime:{type:"double",id:3},trajectoryPoint:{rule:"repeated",type:"apollo.common.TrajectoryPoint",id:12},estop:{type:"EStop",id:6},pathPoint:{rule:"repeated",type:"apollo.common.PathPoint",id:13},isReplan:{type:"bool",id:9,options:{default:!1}},gear:{type:"apollo.canbus.Chassis.GearPosition",id:10},decision:{type:"apollo.planning.DecisionResult",id:14},latencyStats:{type:"LatencyStats",id:15},routingHeader:{type:"apollo.common.Header",id:16},debug:{type:"apollo.planning_internal.Debug",id:8},rightOfWayStatus:{type:"RightOfWayStatus",id:17},laneId:{rule:"repeated",type:"apollo.hdmap.Id",id:18},engageAdvice:{type:"apollo.common.EngageAdvice",id:19},criticalRegion:{type:"CriticalRegion",id:20},trajectoryType:{type:"TrajectoryType",id:21,options:{default:"UNKNOWN"}}},nested:{RightOfWayStatus:{values:{UNPROTECTED:0,PROTECTED:1}},CriticalRegion:{fields:{region:{rule:"repeated",type:"apollo.common.Polygon",id:1}}},TrajectoryType:{values:{UNKNOWN:0,NORMAL:1,PATH_FALLBACK:2,SPEED_FALLBACK:3}}}},PathDeciderConfig:{fields:{}},TaskConfig:{oneofs:{taskConfig:{oneof:["dpPolyPathConfig","dpStSpeedConfig","qpSplinePathConfig","qpStSpeedConfig","polyStSpeedConfig","pathDeciderConfig","proceedWithCautionSpeedConfig","qpPiecewiseJerkPathConfig","deciderCreepConfig","deciderRuleBasedStopConfig","sidePassSafetyConfig","sidePassPathDeciderConfig","polyVtSpeedConfig"]}},fields:{taskType:{type:"TaskType",id:1},dpPolyPathConfig:{type:"DpPolyPathConfig",id:2},dpStSpeedConfig:{type:"DpStSpeedConfig",id:3},qpSplinePathConfig:{type:"QpSplinePathConfig",id:4},qpStSpeedConfig:{type:"QpStSpeedConfig",id:5},polyStSpeedConfig:{type:"PolyStSpeedConfig",id:6},pathDeciderConfig:{type:"PathDeciderConfig",id:7},proceedWithCautionSpeedConfig:{type:"ProceedWithCautionSpeedConfig",id:8},qpPiecewiseJerkPathConfig:{type:"QpPiecewiseJerkPathConfig",id:9},deciderCreepConfig:{type:"DeciderCreepConfig",id:10},deciderRuleBasedStopConfig:{type:"DeciderRuleBasedStopConfig",id:11},sidePassSafetyConfig:{type:"SidePassSafetyConfig",id:12},sidePassPathDeciderConfig:{type:"SidePassPathDeciderConfig",id:13},polyVtSpeedConfig:{type:"PolyVTSpeedConfig",id:14}},nested:{TaskType:{values:{DP_POLY_PATH_OPTIMIZER:0,DP_ST_SPEED_OPTIMIZER:1,QP_SPLINE_PATH_OPTIMIZER:2,QP_SPLINE_ST_SPEED_OPTIMIZER:3,PATH_DECIDER:4,SPEED_DECIDER:5,POLY_ST_SPEED_OPTIMIZER:6,NAVI_PATH_DECIDER:7,NAVI_SPEED_DECIDER:8,NAVI_OBSTACLE_DECIDER:9,QP_PIECEWISE_JERK_PATH_OPTIMIZER:10,DECIDER_CREEP:11,DECIDER_RULE_BASED_STOP:12,SIDE_PASS_PATH_DECIDER:13,SIDE_PASS_SAFETY:14,PROCEED_WITH_CAUTION_SPEED:15,DECIDER_RSS:16}}}},ScenarioLaneFollowConfig:{fields:{}},ScenarioSidePassConfig:{fields:{sidePassExitDistance:{type:"double",id:1,options:{default:10}},approachObstacleMaxStopSpeed:{type:"double",id:2,options:{default:1e-5}},approachObstacleMinStopDistance:{type:"double",id:3,options:{default:4}},blockObstacleMinSpeed:{type:"double",id:4,options:{default:.1}}}},ScenarioStopSignUnprotectedConfig:{fields:{startStopSignScenarioDistance:{type:"double",id:1,options:{default:5}},watchVehicleMaxValidStopDistance:{type:"double",id:2,options:{default:5}},maxValidStopDistance:{type:"double",id:3,options:{default:3.5}},maxAdcStopSpeed:{type:"double",id:4,options:{default:.3}},stopDuration:{type:"float",id:5,options:{default:1}},minPassSDistance:{type:"double",id:6,options:{default:3}},waitTimeout:{type:"float",id:7,options:{default:8}}}},ScenarioTrafficLightRightTurnUnprotectedConfig:{fields:{startTrafficLightScenarioTimer:{type:"uint32",id:1,options:{default:20}},maxValidStopDistance:{type:"double",id:2,options:{default:3.5}},maxAdcStopSpeed:{type:"double",id:3,options:{default:.3}},minPassSDistance:{type:"double",id:4,options:{default:3}}}},ScenarioConfig:{oneofs:{scenarioConfig:{oneof:["laneFollowConfig","sidePassConfig","stopSignUnprotectedConfig","trafficLightRightTurnUnprotectedConfig"]}},fields:{scenarioType:{type:"ScenarioType",id:1},laneFollowConfig:{type:"ScenarioLaneFollowConfig",id:2},sidePassConfig:{type:"ScenarioSidePassConfig",id:3},stopSignUnprotectedConfig:{type:"ScenarioStopSignUnprotectedConfig",id:4},trafficLightRightTurnUnprotectedConfig:{type:"ScenarioTrafficLightRightTurnUnprotectedConfig",id:5},stageType:{rule:"repeated",type:"StageType",id:6,options:{packed:!1}},stageConfig:{rule:"repeated",type:"StageConfig",id:7}},nested:{ScenarioType:{values:{LANE_FOLLOW:0,CHANGE_LANE:1,SIDE_PASS:2,APPROACH:3,STOP_SIGN_PROTECTED:4,STOP_SIGN_UNPROTECTED:5,TRAFFIC_LIGHT_LEFT_TURN_PROTECTED:6,TRAFFIC_LIGHT_LEFT_TURN_UNPROTECTED:7,TRAFFIC_LIGHT_RIGHT_TURN_PROTECTED:8,TRAFFIC_LIGHT_RIGHT_TURN_UNPROTECTED:9,TRAFFIC_LIGHT_GO_THROUGH:10}},StageType:{values:{NO_STAGE:0,LANE_FOLLOW_DEFAULT_STAGE:1,STOP_SIGN_UNPROTECTED_PRE_STOP:100,STOP_SIGN_UNPROTECTED_STOP:101,STOP_SIGN_UNPROTECTED_CREEP:102,STOP_SIGN_UNPROTECTED_INTERSECTION_CRUISE:103,SIDE_PASS_APPROACH_OBSTACLE:200,SIDE_PASS_GENERATE_PATH:201,SIDE_PASS_STOP_ON_WAITPOINT:202,SIDE_PASS_DETECT_SAFETY:203,SIDE_PASS_PASS_OBSTACLE:204,SIDE_PASS_BACKUP:205,TRAFFIC_LIGHT_RIGHT_TURN_UNPROTECTED_STOP:300,TRAFFIC_LIGHT_RIGHT_TURN_UNPROTECTED_CREEP:301,TRAFFIC_LIGHT_RIGHT_TURN_UNPROTECTED_INTERSECTION_CRUISE:302}},StageConfig:{fields:{stageType:{type:"StageType",id:1},enabled:{type:"bool",id:2,options:{default:!0}},taskType:{rule:"repeated",type:"TaskConfig.TaskType",id:3,options:{packed:!1}},taskConfig:{rule:"repeated",type:"TaskConfig",id:4}}}}},PlannerPublicRoadConfig:{fields:{scenarioType:{rule:"repeated",type:"ScenarioConfig.ScenarioType",id:1,options:{packed:!1}}}},PlannerNaviConfig:{fields:{task:{rule:"repeated",type:"TaskConfig.TaskType",id:1,options:{packed:!1}},naviPathDeciderConfig:{type:"NaviPathDeciderConfig",id:2},naviSpeedDeciderConfig:{type:"NaviSpeedDeciderConfig",id:3},naviObstacleDeciderConfig:{type:"NaviObstacleDeciderConfig",id:4}}},PlannerType:{values:{RTK:0,PUBLIC_ROAD:1,OPEN_SPACE:2,NAVI:3,LATTICE:4}},RtkPlanningConfig:{fields:{plannerType:{type:"PlannerType",id:1}}},StandardPlanningConfig:{fields:{plannerType:{rule:"repeated",type:"PlannerType",id:1,options:{packed:!1}},plannerPublicRoadConfig:{type:"PlannerPublicRoadConfig",id:2}}},NavigationPlanningConfig:{fields:{plannerType:{rule:"repeated",type:"PlannerType",id:1,options:{packed:!1}},plannerNaviConfig:{type:"PlannerNaviConfig",id:4}}},OpenSpacePlanningConfig:{fields:{plannerType:{rule:"repeated",type:"PlannerType",id:1,options:{packed:!1}},plannerOpenSpaceConfig:{type:"PlannerOpenSpaceConfig",id:2}}},PlanningConfig:{oneofs:{planningConfig:{oneof:["rtkPlanningConfig","standardPlanningConfig","navigationPlanningConfig","openSpacePlanningConfig"]}},fields:{rtkPlanningConfig:{type:"RtkPlanningConfig",id:1},standardPlanningConfig:{type:"StandardPlanningConfig",id:2},navigationPlanningConfig:{type:"NavigationPlanningConfig",id:3},openSpacePlanningConfig:{type:"OpenSpacePlanningConfig",id:4},defaultTaskConfig:{rule:"repeated",type:"TaskConfig",id:5}}},StatsGroup:{fields:{max:{type:"double",id:1},min:{type:"double",id:2,options:{default:1e10}},sum:{type:"double",id:3},avg:{type:"double",id:4},num:{type:"int32",id:5}}},PlanningStats:{fields:{totalPathLength:{type:"StatsGroup",id:1},totalPathTime:{type:"StatsGroup",id:2},v:{type:"StatsGroup",id:3},a:{type:"StatsGroup",id:4},kappa:{type:"StatsGroup",id:5},dkappa:{type:"StatsGroup",id:6}}},ChangeLaneStatus:{fields:{status:{type:"Status",id:1},pathId:{type:"string",id:2},timestamp:{type:"double",id:3}},nested:{Status:{values:{IN_CHANGE_LANE:1,CHANGE_LANE_FAILED:2,CHANGE_LANE_SUCCESS:3}}}},StopTimer:{fields:{obstacleId:{type:"string",id:1},stopTime:{type:"double",id:2}}},CrosswalkStatus:{fields:{crosswalkId:{type:"string",id:1},stopTimers:{rule:"repeated",type:"StopTimer",id:2}}},PullOverStatus:{fields:{inPullOver:{type:"bool",id:1,options:{default:!1}},status:{type:"Status",id:2},inlaneDestPoint:{type:"apollo.common.PointENU",id:3},startPoint:{type:"apollo.common.PointENU",id:4},stopPoint:{type:"apollo.common.PointENU",id:5},stopPointHeading:{type:"double",id:6},reason:{type:"Reason",id:7},statusSetTime:{type:"double",id:8}},nested:{Reason:{values:{DESTINATION:1}},Status:{values:{UNKNOWN:1,IN_OPERATION:2,DONE:3,DISABLED:4}}}},ReroutingStatus:{fields:{lastReroutingTime:{type:"double",id:1},needRerouting:{type:"bool",id:2,options:{default:!1}},routingRequest:{type:"routing.RoutingRequest",id:3}}},RightOfWayStatus:{fields:{junction:{keyType:"string",type:"bool",id:1}}},SidePassStatus:{fields:{status:{type:"Status",id:1},waitStartTime:{type:"double",id:2},passObstacleId:{type:"string",id:3},passSide:{type:"apollo.planning.ObjectSidePass.Type",id:4}},nested:{Status:{values:{UNKNOWN:0,DRIVE:1,WAIT:2,SIDEPASS:3}}}},StopSignStatus:{fields:{stopSignId:{type:"string",id:1},status:{type:"Status",id:2},stopStartTime:{type:"double",id:3},laneWatchVehicles:{rule:"repeated",type:"LaneWatchVehicles",id:4}},nested:{Status:{values:{UNKNOWN:0,DRIVE:1,STOP:2,WAIT:3,CREEP:4,STOP_DONE:5}},LaneWatchVehicles:{fields:{laneId:{type:"string",id:1},watchVehicles:{rule:"repeated",type:"string",id:2}}}}},DestinationStatus:{fields:{hasPassedDestination:{type:"bool",id:1,options:{default:!1}}}},PlanningStatus:{fields:{changeLane:{type:"ChangeLaneStatus",id:1},crosswalk:{type:"CrosswalkStatus",id:2},engageAdvice:{type:"apollo.common.EngageAdvice",id:3},rerouting:{type:"ReroutingStatus",id:4},rightOfWay:{type:"RightOfWayStatus",id:5},sidePass:{type:"SidePassStatus",id:6},stopSign:{type:"StopSignStatus",id:7},destination:{type:"DestinationStatus",id:8},pullOver:{type:"PullOverStatus",id:9}}},PolyStSpeedConfig:{fields:{totalPathLength:{type:"double",id:1},totalTime:{type:"double",id:2},preferredAccel:{type:"double",id:3},preferredDecel:{type:"double",id:4},maxAccel:{type:"double",id:5},minDecel:{type:"double",id:6},speedLimitBuffer:{type:"double",id:7},speedWeight:{type:"double",id:8},jerkWeight:{type:"double",id:9},obstacleWeight:{type:"double",id:10},unblockingObstacleCost:{type:"double",id:11},stBoundaryConfig:{type:"apollo.planning.StBoundaryConfig",id:12}}},PolyVTSpeedConfig:{fields:{totalTime:{type:"double",id:1,options:{default:0}},totalS:{type:"double",id:2,options:{default:0}},numTLayers:{type:"int32",id:3},onlineNumVLayers:{type:"int32",id:4},matrixDimS:{type:"int32",id:5},onlineMaxAcc:{type:"double",id:6},onlineMaxDec:{type:"double",id:7},onlineMaxSpeed:{type:"double",id:8},offlineNumVLayers:{type:"int32",id:9},offlineMaxAcc:{type:"double",id:10},offlineMaxDec:{type:"double",id:11},offlineMaxSpeed:{type:"double",id:12},numEvaluatedPoints:{type:"int32",id:13},samplingUnitV:{type:"double",id:14},maxSamplingUnitV:{type:"double",id:15},stBoundaryConfig:{type:"apollo.planning.StBoundaryConfig",id:16}}},ProceedWithCautionSpeedConfig:{fields:{maxDistance:{type:"double",id:1,options:{default:5}}}},QpPiecewiseJerkPathConfig:{fields:{pathResolution:{type:"double",id:1,options:{default:1}},qpDeltaS:{type:"double",id:2,options:{default:1}},minLookAheadTime:{type:"double",id:3,options:{default:6}},minLookAheadDistance:{type:"double",id:4,options:{default:60}},lateralBuffer:{type:"double",id:5,options:{default:.2}},pathOutputResolution:{type:"double",id:6,options:{default:.1}},lWeight:{type:"double",id:7,options:{default:1}},dlWeight:{type:"double",id:8,options:{default:100}},ddlWeight:{type:"double",id:9,options:{default:500}},dddlWeight:{type:"double",id:10,options:{default:1e3}},guidingLineWeight:{type:"double",id:11,options:{default:1}}}},QuadraticProgrammingProblem:{fields:{paramSize:{type:"int32",id:1},quadraticMatrix:{type:"QPMatrix",id:2},bias:{rule:"repeated",type:"double",id:3,options:{packed:!1}},equalityMatrix:{type:"QPMatrix",id:4},equalityValue:{rule:"repeated",type:"double",id:5,options:{packed:!1}},inequalityMatrix:{type:"QPMatrix",id:6},inequalityValue:{rule:"repeated",type:"double",id:7,options:{packed:!1}},inputMarker:{rule:"repeated",type:"double",id:8,options:{packed:!1}},optimalParam:{rule:"repeated",type:"double",id:9,options:{packed:!1}}}},QPMatrix:{fields:{rowSize:{type:"int32",id:1},colSize:{type:"int32",id:2},element:{rule:"repeated",type:"double",id:3,options:{packed:!1}}}},QuadraticProgrammingProblemSet:{fields:{problem:{rule:"repeated",type:"QuadraticProgrammingProblem",id:1}}},QpSplinePathConfig:{fields:{splineOrder:{type:"uint32",id:1,options:{default:6}},maxSplineLength:{type:"double",id:2,options:{default:15}},maxConstraintInterval:{type:"double",id:3,options:{default:15}},timeResolution:{type:"double",id:4,options:{default:.1}},regularizationWeight:{type:"double",id:5,options:{default:.001}},firstSplineWeightFactor:{type:"double",id:6,options:{default:10}},derivativeWeight:{type:"double",id:7,options:{default:0}},secondDerivativeWeight:{type:"double",id:8,options:{default:0}},thirdDerivativeWeight:{type:"double",id:9,options:{default:100}},referenceLineWeight:{type:"double",id:10,options:{default:0}},numOutput:{type:"uint32",id:11,options:{default:100}},crossLaneLateralExtension:{type:"double",id:12,options:{default:1.2}},crossLaneLongitudinalExtension:{type:"double",id:13,options:{default:50}},historyPathWeight:{type:"double",id:14,options:{default:0}},laneChangeMidL:{type:"double",id:15,options:{default:.6}},pointConstraintSPosition:{type:"double",id:16,options:{default:110}},laneChangeLateralShift:{type:"double",id:17,options:{default:1}},uturnSpeedLimit:{type:"double",id:18,options:{default:5}}}},QpSplineConfig:{fields:{numberOfDiscreteGraphT:{type:"uint32",id:1},splineOrder:{type:"uint32",id:2},speedKernelWeight:{type:"double",id:3},accelKernelWeight:{type:"double",id:4},jerkKernelWeight:{type:"double",id:5},followWeight:{type:"double",id:6},stopWeight:{type:"double",id:7},cruiseWeight:{type:"double",id:8},regularizationWeight:{type:"double",id:9,options:{default:.1}},followDragDistance:{type:"double",id:10},dpStReferenceWeight:{type:"double",id:11},initJerkKernelWeight:{type:"double",id:12},yieldWeight:{type:"double",id:13},yieldDragDistance:{type:"double",id:14}}},QpPiecewiseConfig:{fields:{numberOfEvaluatedGraphT:{type:"uint32",id:1},accelKernelWeight:{type:"double",id:2},jerkKernelWeight:{type:"double",id:3},followWeight:{type:"double",id:4},stopWeight:{type:"double",id:5},cruiseWeight:{type:"double",id:6},regularizationWeight:{type:"double",id:7,options:{default:.1}},followDragDistance:{type:"double",id:8}}},QpStSpeedConfig:{fields:{totalPathLength:{type:"double",id:1,options:{default:200}},totalTime:{type:"double",id:2,options:{default:6}},preferredMaxAcceleration:{type:"double",id:4,options:{default:1.2}},preferredMinDeceleration:{type:"double",id:5,options:{default:-1.8}},maxAcceleration:{type:"double",id:6,options:{default:2}},minDeceleration:{type:"double",id:7,options:{default:-4.5}},qpSplineConfig:{type:"QpSplineConfig",id:8},qpPiecewiseConfig:{type:"QpPiecewiseConfig",id:9},stBoundaryConfig:{type:"apollo.planning.StBoundaryConfig",id:10}}},QpSplineSmootherConfig:{fields:{splineOrder:{type:"uint32",id:1,options:{default:5}},maxSplineLength:{type:"double",id:2,options:{default:25}},regularizationWeight:{type:"double",id:3,options:{default:.1}},secondDerivativeWeight:{type:"double",id:4,options:{default:0}},thirdDerivativeWeight:{type:"double",id:5,options:{default:100}}}},SpiralSmootherConfig:{fields:{maxDeviation:{type:"double",id:1,options:{default:.1}},piecewiseLength:{type:"double",id:2,options:{default:10}},maxIteration:{type:"int32",id:3,options:{default:1e3}},optTol:{type:"double",id:4,options:{default:1e-8}},optAcceptableTol:{type:"double",id:5,options:{default:1e-6}},optAcceptableIteration:{type:"int32",id:6,options:{default:15}},optWeightCurveLength:{type:"double",id:7,options:{default:0}},optWeightKappa:{type:"double",id:8,options:{default:1.5}},optWeightDkappa:{type:"double",id:9,options:{default:1}},optWeightD2kappa:{type:"double",id:10,options:{default:0}}}},CosThetaSmootherConfig:{fields:{maxPointDeviation:{type:"double",id:1,options:{default:5}},numOfIteration:{type:"int32",id:2,options:{default:1e4}},weightCosIncludedAngle:{type:"double",id:3,options:{default:1e4}},acceptableTol:{type:"double",id:4,options:{default:.1}},relax:{type:"double",id:5,options:{default:.2}},reoptQpBound:{type:"double",id:6,options:{default:.05}}}},ReferenceLineSmootherConfig:{oneofs:{SmootherConfig:{oneof:["qpSpline","spiral","cosTheta"]}},fields:{maxConstraintInterval:{type:"double",id:1,options:{default:5}},longitudinalBoundaryBound:{type:"double",id:2,options:{default:1}},lateralBoundaryBound:{type:"double",id:3,options:{default:.1}},numOfTotalPoints:{type:"uint32",id:4,options:{default:500}},curbShift:{type:"double",id:5,options:{default:.2}},drivingSide:{type:"DrivingSide",id:6,options:{default:"RIGHT"}},wideLaneThresholdFactor:{type:"double",id:7,options:{default:2}},wideLaneShiftRemainFactor:{type:"double",id:8,options:{default:.5}},resolution:{type:"double",id:9,options:{default:.02}},qpSpline:{type:"QpSplineSmootherConfig",id:20},spiral:{type:"SpiralSmootherConfig",id:21},cosTheta:{type:"CosThetaSmootherConfig",id:22}},nested:{DrivingSide:{values:{LEFT:1,RIGHT:2}}}},SidePassPathDeciderConfig:{fields:{totalPathLength:{type:"double",id:1},pathResolution:{type:"double",id:2},maxDddl:{type:"double",id:3},lWeight:{type:"double",id:4},dlWeight:{type:"double",id:5},ddlWeight:{type:"double",id:6},dddlWeight:{type:"double",id:7},guidingLineWeight:{type:"double",id:8}}},SLBoundary:{fields:{startS:{type:"double",id:1},endS:{type:"double",id:2},startL:{type:"double",id:3},endL:{type:"double",id:4}}},SpiralCurveConfig:{fields:{simpsonSize:{type:"int32",id:1,options:{default:9}},newtonRaphsonTol:{type:"double",id:2,options:{default:.01}},newtonRaphsonMaxIter:{type:"int32",id:3,options:{default:20}}}},StBoundaryConfig:{fields:{boundaryBuffer:{type:"double",id:1,options:{default:.1}},highSpeedCentricAccelerationLimit:{type:"double",id:2,options:{default:1.2}},lowSpeedCentricAccelerationLimit:{type:"double",id:3,options:{default:1.4}},highSpeedThreshold:{type:"double",id:4,options:{default:20}},lowSpeedThreshold:{type:"double",id:5,options:{default:7}},minimalKappa:{type:"double",id:6,options:{default:1e-5}},pointExtension:{type:"double",id:7,options:{default:1}},lowestSpeed:{type:"double",id:8,options:{default:2.5}},numPointsToAvgKappa:{type:"uint32",id:9,options:{default:4}},staticObsNudgeSpeedRatio:{type:"double",id:10},dynamicObsNudgeSpeedRatio:{type:"double",id:11},centriJerkSpeedCoeff:{type:"double",id:12}}},BacksideVehicleConfig:{fields:{backsideLaneWidth:{type:"double",id:1,options:{default:4}}}},ChangeLaneConfig:{fields:{minOvertakeDistance:{type:"double",id:1,options:{default:10}},minOvertakeTime:{type:"double",id:2,options:{default:2}},enableGuardObstacle:{type:"bool",id:3,options:{default:!1}},guardDistance:{type:"double",id:4,options:{default:100}},minGuardSpeed:{type:"double",id:5,options:{default:1}}}},CreepConfig:{fields:{enabled:{type:"bool",id:1},creepDistanceToStopLine:{type:"double",id:2,options:{default:1}},stopDistance:{type:"double",id:3,options:{default:.5}},speedLimit:{type:"double",id:4,options:{default:1}},maxValidStopDistance:{type:"double",id:5,options:{default:.3}},minBoundaryT:{type:"double",id:6,options:{default:6}},minBoundaryS:{type:"double",id:7,options:{default:3}}}},CrosswalkConfig:{fields:{stopDistance:{type:"double",id:1,options:{default:1}},maxStopDeceleration:{type:"double",id:2,options:{default:4}},minPassSDistance:{type:"double",id:3,options:{default:1}},maxStopSpeed:{type:"double",id:4,options:{default:.3}},maxValidStopDistance:{type:"double",id:5,options:{default:3}},expandSDistance:{type:"double",id:6,options:{default:2}},stopStrickLDistance:{type:"double",id:7,options:{default:4}},stopLooseLDistance:{type:"double",id:8,options:{default:5}},stopTimeout:{type:"double",id:9,options:{default:10}}}},DestinationConfig:{fields:{enablePullOver:{type:"bool",id:1,options:{default:!1}},stopDistance:{type:"double",id:2,options:{default:.5}},pullOverPlanDistance:{type:"double",id:3,options:{default:35}}}},KeepClearConfig:{fields:{enableKeepClearZone:{type:"bool",id:1,options:{default:!0}},enableJunction:{type:"bool",id:2,options:{default:!0}},minPassSDistance:{type:"double",id:3,options:{default:2}}}},PullOverConfig:{fields:{stopDistance:{type:"double",id:1,options:{default:.5}},maxStopSpeed:{type:"double",id:2,options:{default:.3}},maxValidStopDistance:{type:"double",id:3,options:{default:3}},maxStopDeceleration:{type:"double",id:4,options:{default:2.5}},minPassSDistance:{type:"double",id:5,options:{default:1}},bufferToBoundary:{type:"double",id:6,options:{default:.5}},planDistance:{type:"double",id:7,options:{default:35}},operationLength:{type:"double",id:8,options:{default:30}},maxCheckDistance:{type:"double",id:9,options:{default:60}},maxFailureCount:{type:"uint32",id:10,options:{default:10}}}},ReferenceLineEndConfig:{fields:{stopDistance:{type:"double",id:1,options:{default:.5}},minReferenceLineRemainLength:{type:"double",id:2,options:{default:50}}}},ReroutingConfig:{fields:{cooldownTime:{type:"double",id:1,options:{default:3}},prepareReroutingTime:{type:"double",id:2,options:{default:2}}}},SignalLightConfig:{fields:{stopDistance:{type:"double",id:1,options:{default:1}},maxStopDeceleration:{type:"double",id:2,options:{default:4}},minPassSDistance:{type:"double",id:3,options:{default:4}},maxStopDeaccelerationYellowLight:{type:"double",id:4,options:{default:3}},signalExpireTimeSec:{type:"double",id:5,options:{default:5}},righTurnCreep:{type:"CreepConfig",id:6}}},StopSignConfig:{fields:{stopDistance:{type:"double",id:1,options:{default:1}},minPassSDistance:{type:"double",id:2,options:{default:1}},maxStopSpeed:{type:"double",id:3,options:{default:.3}},maxValidStopDistance:{type:"double",id:4,options:{default:3}},stopDuration:{type:"double",id:5,options:{default:1}},watchVehicleMaxValidStopSpeed:{type:"double",id:6,options:{default:.5}},watchVehicleMaxValidStopDistance:{type:"double",id:7,options:{default:5}},waitTimeout:{type:"double",id:8,options:{default:8}},creep:{type:"CreepConfig",id:9}}},TrafficRuleConfig:{oneofs:{config:{oneof:["backsideVehicle","changeLane","crosswalk","destination","keepClear","pullOver","referenceLineEnd","rerouting","signalLight","stopSign"]}},fields:{ruleId:{type:"RuleId",id:1},enabled:{type:"bool",id:2},backsideVehicle:{type:"BacksideVehicleConfig",id:3},changeLane:{type:"ChangeLaneConfig",id:4},crosswalk:{type:"CrosswalkConfig",id:5},destination:{type:"DestinationConfig",id:6},keepClear:{type:"KeepClearConfig",id:7},pullOver:{type:"PullOverConfig",id:8},referenceLineEnd:{type:"ReferenceLineEndConfig",id:9},rerouting:{type:"ReroutingConfig",id:10},signalLight:{type:"SignalLightConfig",id:11},stopSign:{type:"StopSignConfig",id:12}},nested:{RuleId:{values:{BACKSIDE_VEHICLE:1,CHANGE_LANE:2,CROSSWALK:3,DESTINATION:4,KEEP_CLEAR:5,PULL_OVER:6,REFERENCE_LINE_END:7,REROUTING:8,SIGNAL_LIGHT:9,STOP_SIGN:10}}}},TrafficRuleConfigs:{fields:{config:{rule:"repeated",type:"TrafficRuleConfig",id:1}}},WaypointSamplerConfig:{fields:{samplePointsNumEachLevel:{type:"uint32",id:1,options:{default:9}},stepLengthMax:{type:"double",id:2,options:{default:15}},stepLengthMin:{type:"double",id:3,options:{default:8}},lateralSampleOffset:{type:"double",id:4,options:{default:.5}},lateralAdjustCoeff:{type:"double",id:5,options:{default:.5}},sidepassDistance:{type:"double",id:6},navigatorSampleNumEachLevel:{type:"uint32",id:7}}}}},planning_internal:{nested:{Debug:{fields:{planningData:{type:"PlanningData",id:2}}},SpeedPlan:{fields:{name:{type:"string",id:1},speedPoint:{rule:"repeated",type:"apollo.common.SpeedPoint",id:2}}},StGraphBoundaryDebug:{fields:{name:{type:"string",id:1},point:{rule:"repeated",type:"apollo.common.SpeedPoint",id:2},type:{type:"StBoundaryType",id:3}},nested:{StBoundaryType:{values:{ST_BOUNDARY_TYPE_UNKNOWN:1,ST_BOUNDARY_TYPE_STOP:2,ST_BOUNDARY_TYPE_FOLLOW:3,ST_BOUNDARY_TYPE_YIELD:4,ST_BOUNDARY_TYPE_OVERTAKE:5,ST_BOUNDARY_TYPE_KEEP_CLEAR:6}}}},SLFrameDebug:{fields:{name:{type:"string",id:1},sampledS:{rule:"repeated",type:"double",id:2,options:{packed:!1}},staticObstacleLowerBound:{rule:"repeated",type:"double",id:3,options:{packed:!1}},dynamicObstacleLowerBound:{rule:"repeated",type:"double",id:4,options:{packed:!1}},staticObstacleUpperBound:{rule:"repeated",type:"double",id:5,options:{packed:!1}},dynamicObstacleUpperBound:{rule:"repeated",type:"double",id:6,options:{packed:!1}},mapLowerBound:{rule:"repeated",type:"double",id:7,options:{packed:!1}},mapUpperBound:{rule:"repeated",type:"double",id:8,options:{packed:!1}},slPath:{rule:"repeated",type:"apollo.common.SLPoint",id:9},aggregatedBoundaryS:{rule:"repeated",type:"double",id:10,options:{packed:!1}},aggregatedBoundaryLow:{rule:"repeated",type:"double",id:11,options:{packed:!1}},aggregatedBoundaryHigh:{rule:"repeated",type:"double",id:12,options:{packed:!1}}}},STGraphDebug:{fields:{name:{type:"string",id:1},boundary:{rule:"repeated",type:"StGraphBoundaryDebug",id:2},speedLimit:{rule:"repeated",type:"apollo.common.SpeedPoint",id:3},speedProfile:{rule:"repeated",type:"apollo.common.SpeedPoint",id:4},speedConstraint:{type:"STGraphSpeedConstraint",id:5},kernelCruiseRef:{type:"STGraphKernelCuiseRef",id:6},kernelFollowRef:{type:"STGraphKernelFollowRef",id:7}},nested:{STGraphSpeedConstraint:{fields:{t:{rule:"repeated",type:"double",id:1,options:{packed:!1}},lowerBound:{rule:"repeated",type:"double",id:2,options:{packed:!1}},upperBound:{rule:"repeated",type:"double",id:3,options:{packed:!1}}}},STGraphKernelCuiseRef:{fields:{t:{rule:"repeated",type:"double",id:1,options:{packed:!1}},cruiseLineS:{rule:"repeated",type:"double",id:2,options:{packed:!1}}}},STGraphKernelFollowRef:{fields:{t:{rule:"repeated",type:"double",id:1,options:{packed:!1}},followLineS:{rule:"repeated",type:"double",id:2,options:{packed:!1}}}}}},SignalLightDebug:{fields:{adcSpeed:{type:"double",id:1},adcFrontS:{type:"double",id:2},signal:{rule:"repeated",type:"SignalDebug",id:3}},nested:{SignalDebug:{fields:{lightId:{type:"string",id:1},color:{type:"apollo.perception.TrafficLight.Color",id:2},lightStopS:{type:"double",id:3},adcStopDeacceleration:{type:"double",id:4},isStopWallCreated:{type:"bool",id:5}}}}},DecisionTag:{fields:{deciderTag:{type:"string",id:1},decision:{type:"apollo.planning.ObjectDecisionType",id:2}}},ObstacleDebug:{fields:{id:{type:"string",id:1},slBoundary:{type:"apollo.planning.SLBoundary",id:2},decisionTag:{rule:"repeated",type:"DecisionTag",id:3},verticesXCoords:{rule:"repeated",type:"double",id:4,options:{packed:!1}},verticesYCoords:{rule:"repeated",type:"double",id:5,options:{packed:!1}}}},ReferenceLineDebug:{fields:{id:{type:"string",id:1},length:{type:"double",id:2},cost:{type:"double",id:3},isChangeLanePath:{type:"bool",id:4},isDrivable:{type:"bool",id:5},isProtected:{type:"bool",id:6}}},SampleLayerDebug:{fields:{slPoint:{rule:"repeated",type:"apollo.common.SLPoint",id:1}}},DpPolyGraphDebug:{fields:{sampleLayer:{rule:"repeated",type:"SampleLayerDebug",id:1},minCostPoint:{rule:"repeated",type:"apollo.common.SLPoint",id:2}}},ScenarioDebug:{fields:{scenarioType:{type:"apollo.planning.ScenarioConfig.ScenarioType",id:1},stageType:{type:"apollo.planning.ScenarioConfig.StageType",id:2}}},Trajectories:{fields:{trajectory:{rule:"repeated",type:"apollo.common.Trajectory",id:1}}},OpenSpaceDebug:{fields:{trajectories:{type:"apollo.planning_internal.Trajectories",id:1},warmStartTrajectory:{type:"apollo.common.VehicleMotion",id:2},smoothedTrajectory:{type:"apollo.common.VehicleMotion",id:3},warmStartDualLambda:{rule:"repeated",type:"double",id:4,options:{packed:!1}},warmStartDualMiu:{rule:"repeated",type:"double",id:5,options:{packed:!1}},optimizedDualLambda:{rule:"repeated",type:"double",id:6,options:{packed:!1}},optimizedDualMiu:{rule:"repeated",type:"double",id:7,options:{packed:!1}},xyBoundary:{rule:"repeated",type:"double",id:8,options:{packed:!1}},obstacles:{rule:"repeated",type:"apollo.planning_internal.ObstacleDebug",id:9}}},PlanningData:{fields:{adcPosition:{type:"apollo.localization.LocalizationEstimate",id:7},chassis:{type:"apollo.canbus.Chassis",id:8},routing:{type:"apollo.routing.RoutingResponse",id:9},initPoint:{type:"apollo.common.TrajectoryPoint",id:10},path:{rule:"repeated",type:"apollo.common.Path",id:6},speedPlan:{rule:"repeated",type:"SpeedPlan",id:13},stGraph:{rule:"repeated",type:"STGraphDebug",id:14},slFrame:{rule:"repeated",type:"SLFrameDebug",id:15},predictionHeader:{type:"apollo.common.Header",id:16},signalLight:{type:"SignalLightDebug",id:17},obstacle:{rule:"repeated",type:"ObstacleDebug",id:18},referenceLine:{rule:"repeated",type:"ReferenceLineDebug",id:19},dpPolyGraph:{type:"DpPolyGraphDebug",id:20},latticeStImage:{type:"LatticeStTraining",id:21},relativeMap:{type:"apollo.relative_map.MapMsg",id:22},autoTuningTrainingData:{type:"AutoTuningTrainingData",id:23},frontClearDistance:{type:"double",id:24},chart:{rule:"repeated",type:"apollo.dreamview.Chart",id:25},scenario:{type:"ScenarioDebug",id:26},openSpace:{type:"OpenSpaceDebug",id:27}}},LatticeStPixel:{fields:{s:{type:"int32",id:1},t:{type:"int32",id:2},r:{type:"uint32",id:3},g:{type:"uint32",id:4},b:{type:"uint32",id:5}}},LatticeStTraining:{fields:{pixel:{rule:"repeated",type:"LatticeStPixel",id:1},timestamp:{type:"double",id:2},annotation:{type:"string",id:3},numSGrids:{type:"uint32",id:4},numTGrids:{type:"uint32",id:5},sResolution:{type:"double",id:6},tResolution:{type:"double",id:7}}},CostComponents:{fields:{costComponent:{rule:"repeated",type:"double",id:1,options:{packed:!1}}}},AutoTuningTrainingData:{fields:{teacherComponent:{type:"CostComponents",id:1},studentComponent:{type:"CostComponents",id:2}}},CloudReferenceLineRequest:{fields:{laneSegment:{rule:"repeated",type:"apollo.routing.LaneSegment",id:1}}},CloudReferenceLineRoutingRequest:{fields:{routing:{type:"apollo.routing.RoutingResponse",id:1}}},CloudReferenceLineResponse:{fields:{segment:{rule:"repeated",type:"apollo.common.Path",id:1}}}}},perception:{nested:{TrafficLightBox:{fields:{x:{type:"int32",id:1},y:{type:"int32",id:2},width:{type:"int32",id:3},height:{type:"int32",id:4},color:{type:"TrafficLight.Color",id:5},selected:{type:"bool",id:6},cameraName:{type:"string",id:7}}},TrafficLightDebug:{fields:{cropbox:{type:"TrafficLightBox",id:1},box:{rule:"repeated",type:"TrafficLightBox",id:2},signalNum:{type:"int32",id:3},validPos:{type:"int32",id:4},tsDiffPos:{type:"double",id:5},tsDiffSys:{type:"double",id:6},projectError:{type:"int32",id:7},distanceToStopLine:{type:"double",id:8},cameraId:{type:"int32",id:9,options:{deprecated:!0}},cropRoi:{rule:"repeated",type:"TrafficLightBox",id:10},projectedRoi:{rule:"repeated",type:"TrafficLightBox",id:11},rectifiedRoi:{rule:"repeated",type:"TrafficLightBox",id:12},debugRoi:{rule:"repeated",type:"TrafficLightBox",id:13}}},TrafficLight:{fields:{color:{type:"Color",id:1},id:{type:"string",id:2},confidence:{type:"double",id:3,options:{default:1}},trackingTime:{type:"double",id:4},blink:{type:"bool",id:5},remainingTime:{type:"double",id:6}},nested:{Color:{values:{UNKNOWN:0,RED:1,YELLOW:2,GREEN:3,BLACK:4}}}},TrafficLightDetection:{fields:{header:{type:"apollo.common.Header",id:2},trafficLight:{rule:"repeated",type:"TrafficLight",id:1},trafficLightDebug:{type:"TrafficLightDebug",id:3},containLights:{type:"bool",id:4},cameraId:{type:"CameraID",id:5}},nested:{CameraID:{values:{CAMERA_FRONT_LONG:0,CAMERA_FRONT_NARROW:1,CAMERA_FRONT_SHORT:2,CAMERA_FRONT_WIDE:3}}}},BBox2D:{fields:{xmin:{type:"double",id:1},ymin:{type:"double",id:2},xmax:{type:"double",id:3},ymax:{type:"double",id:4}}},LightStatus:{fields:{brakeVisible:{type:"double",id:1},brakeSwitchOn:{type:"double",id:2},leftTurnVisible:{type:"double",id:3},leftTurnSwitchOn:{type:"double",id:4},rightTurnVisible:{type:"double",id:5},rightTurnSwitchOn:{type:"double",id:6}}},SensorMeasurement:{fields:{sensorId:{type:"string",id:1},id:{type:"int32",id:2},position:{type:"common.Point3D",id:3},theta:{type:"double",id:4},length:{type:"double",id:5},width:{type:"double",id:6},height:{type:"double",id:7},velocity:{type:"common.Point3D",id:8},type:{type:"PerceptionObstacle.Type",id:9},subType:{type:"PerceptionObstacle.SubType",id:10},timestamp:{type:"double",id:11},box:{type:"BBox2D",id:12}}},PerceptionObstacle:{fields:{id:{type:"int32",id:1},position:{type:"common.Point3D",id:2},theta:{type:"double",id:3},velocity:{type:"common.Point3D",id:4},length:{type:"double",id:5},width:{type:"double",id:6},height:{type:"double",id:7},polygonPoint:{rule:"repeated",type:"common.Point3D",id:8},trackingTime:{type:"double",id:9},type:{type:"Type",id:10},timestamp:{type:"double",id:11},pointCloud:{rule:"repeated",type:"double",id:12},confidence:{type:"double",id:13,options:{deprecated:!0}},confidenceType:{type:"ConfidenceType",id:14,options:{deprecated:!0}},drops:{rule:"repeated",type:"common.Point3D",id:15,options:{deprecated:!0}},acceleration:{type:"common.Point3D",id:16},anchorPoint:{type:"common.Point3D",id:17},bbox2d:{type:"BBox2D",id:18},subType:{type:"SubType",id:19},measurements:{rule:"repeated",type:"SensorMeasurement",id:20},heightAboveGround:{type:"double",id:21,options:{default:null}},positionCovariance:{rule:"repeated",type:"double",id:22},velocityCovariance:{rule:"repeated",type:"double",id:23},accelerationCovariance:{rule:"repeated",type:"double",id:24},lightStatus:{type:"LightStatus",id:25}},nested:{Type:{values:{UNKNOWN:0,UNKNOWN_MOVABLE:1,UNKNOWN_UNMOVABLE:2,PEDESTRIAN:3,BICYCLE:4,VEHICLE:5}},ConfidenceType:{values:{CONFIDENCE_UNKNOWN:0,CONFIDENCE_CNN:1,CONFIDENCE_RADAR:2}},SubType:{values:{ST_UNKNOWN:0,ST_UNKNOWN_MOVABLE:1,ST_UNKNOWN_UNMOVABLE:2,ST_CAR:3,ST_VAN:4,ST_TRUCK:5,ST_BUS:6,ST_CYCLIST:7,ST_MOTORCYCLIST:8,ST_TRICYCLIST:9,ST_PEDESTRIAN:10,ST_TRAFFICCONE:11}}}},LaneMarker:{fields:{laneType:{type:"apollo.hdmap.LaneBoundaryType.Type",id:1},quality:{type:"double",id:2},modelDegree:{type:"int32",id:3},c0Position:{type:"double",id:4},c1HeadingAngle:{type:"double",id:5},c2Curvature:{type:"double",id:6},c3CurvatureDerivative:{type:"double",id:7},viewRange:{type:"double",id:8},longitudeStart:{type:"double",id:9},longitudeEnd:{type:"double",id:10}}},LaneMarkers:{fields:{leftLaneMarker:{type:"LaneMarker",id:1},rightLaneMarker:{type:"LaneMarker",id:2},nextLeftLaneMarker:{rule:"repeated",type:"LaneMarker",id:3},nextRightLaneMarker:{rule:"repeated",type:"LaneMarker",id:4}}},CIPVInfo:{fields:{cipvId:{type:"int32",id:1},potentialCipvId:{rule:"repeated",type:"int32",id:2,options:{packed:!1}}}},PerceptionObstacles:{fields:{perceptionObstacle:{rule:"repeated",type:"PerceptionObstacle",id:1},header:{type:"common.Header",id:2},errorCode:{type:"common.ErrorCode",id:3,options:{default:"OK"}},laneMarker:{type:"LaneMarkers",id:4},cipvInfo:{type:"CIPVInfo",id:5}}}}},routing:{nested:{LaneWaypoint:{fields:{id:{type:"string",id:1},s:{type:"double",id:2},pose:{type:"apollo.common.PointENU",id:3}}},LaneSegment:{fields:{id:{type:"string",id:1},startS:{type:"double",id:2},endS:{type:"double",id:3}}},RoutingRequest:{fields:{header:{type:"apollo.common.Header",id:1},waypoint:{rule:"repeated",type:"LaneWaypoint",id:2},blacklistedLane:{rule:"repeated",type:"LaneSegment",id:3},blacklistedRoad:{rule:"repeated",type:"string",id:4},broadcast:{type:"bool",id:5,options:{default:!0}},parkingSpace:{type:"apollo.hdmap.ParkingSpace",id:6}}},Measurement:{fields:{distance:{type:"double",id:1}}},ChangeLaneType:{values:{FORWARD:0,LEFT:1,RIGHT:2}},Passage:{fields:{segment:{rule:"repeated",type:"LaneSegment",id:1},canExit:{type:"bool",id:2},changeLaneType:{type:"ChangeLaneType",id:3,options:{default:"FORWARD"}}}},RoadSegment:{fields:{id:{type:"string",id:1},passage:{rule:"repeated",type:"Passage",id:2}}},RoutingResponse:{fields:{header:{type:"apollo.common.Header",id:1},road:{rule:"repeated",type:"RoadSegment",id:2},measurement:{type:"Measurement",id:3},routingRequest:{type:"RoutingRequest",id:4},mapVersion:{type:"bytes",id:5},status:{type:"apollo.common.StatusPb",id:6}}}}},hdmap:{nested:{Projection:{fields:{proj:{type:"string",id:1}}},Header:{fields:{version:{type:"bytes",id:1},date:{type:"bytes",id:2},projection:{type:"Projection",id:3},district:{type:"bytes",id:4},generation:{type:"bytes",id:5},revMajor:{type:"bytes",id:6},revMinor:{type:"bytes",id:7},left:{type:"double",id:8},top:{type:"double",id:9},right:{type:"double",id:10},bottom:{type:"double",id:11},vendor:{type:"bytes",id:12}}},Map:{fields:{header:{type:"Header",id:1},crosswalk:{rule:"repeated",type:"Crosswalk",id:2},junction:{rule:"repeated",type:"Junction",id:3},lane:{rule:"repeated",type:"Lane",id:4},stopSign:{rule:"repeated",type:"StopSign",id:5},signal:{rule:"repeated",type:"Signal",id:6},yield:{rule:"repeated",type:"YieldSign",id:7},overlap:{rule:"repeated",type:"Overlap",id:8},clearArea:{rule:"repeated",type:"ClearArea",id:9},speedBump:{rule:"repeated",type:"SpeedBump",id:10},road:{rule:"repeated",type:"Road",id:11},parkingSpace:{rule:"repeated",type:"ParkingSpace",id:12},pncJunction:{rule:"repeated",type:"PNCJunction",id:13}}},ClearArea:{fields:{id:{type:"Id",id:1},overlapId:{rule:"repeated",type:"Id",id:2},polygon:{type:"Polygon",id:3}}},Crosswalk:{fields:{id:{type:"Id",id:1},polygon:{type:"Polygon",id:2},overlapId:{rule:"repeated",type:"Id",id:3}}},Polygon:{fields:{point:{rule:"repeated",type:"apollo.common.PointENU",id:1}}},LineSegment:{fields:{point:{rule:"repeated",type:"apollo.common.PointENU",id:1}}},CurveSegment:{oneofs:{curveType:{oneof:["lineSegment"]}},fields:{lineSegment:{type:"LineSegment",id:1},s:{type:"double",id:6},startPosition:{type:"apollo.common.PointENU",id:7},heading:{type:"double",id:8},length:{type:"double",id:9}}},Curve:{fields:{segment:{rule:"repeated",type:"CurveSegment",id:1}}},Id:{fields:{id:{type:"string",id:1}}},Junction:{fields:{id:{type:"Id",id:1},polygon:{type:"Polygon",id:2},overlapId:{rule:"repeated",type:"Id",id:3}}},LaneBoundaryType:{fields:{s:{type:"double",id:1},types:{rule:"repeated",type:"Type",id:2,options:{packed:!1}}},nested:{Type:{values:{UNKNOWN:0,DOTTED_YELLOW:1,DOTTED_WHITE:2,SOLID_YELLOW:3,SOLID_WHITE:4,DOUBLE_YELLOW:5,CURB:6}}}},LaneBoundary:{fields:{curve:{type:"Curve",id:1},length:{type:"double",id:2},virtual:{type:"bool",id:3},boundaryType:{rule:"repeated",type:"LaneBoundaryType",id:4}}},LaneSampleAssociation:{fields:{s:{type:"double",id:1},width:{type:"double",id:2}}},Lane:{fields:{id:{type:"Id",id:1},centralCurve:{type:"Curve",id:2},leftBoundary:{type:"LaneBoundary",id:3},rightBoundary:{type:"LaneBoundary",id:4},length:{type:"double",id:5},speedLimit:{type:"double",id:6},overlapId:{rule:"repeated",type:"Id",id:7},predecessorId:{rule:"repeated",type:"Id",id:8},successorId:{rule:"repeated",type:"Id",id:9},leftNeighborForwardLaneId:{rule:"repeated",type:"Id",id:10},rightNeighborForwardLaneId:{rule:"repeated",type:"Id",id:11},type:{type:"LaneType",id:12},turn:{type:"LaneTurn",id:13},leftNeighborReverseLaneId:{rule:"repeated",type:"Id",id:14},rightNeighborReverseLaneId:{rule:"repeated",type:"Id",id:15},junctionId:{type:"Id",id:16},leftSample:{rule:"repeated",type:"LaneSampleAssociation",id:17},rightSample:{rule:"repeated",type:"LaneSampleAssociation",id:18},direction:{type:"LaneDirection",id:19},leftRoadSample:{rule:"repeated",type:"LaneSampleAssociation",id:20},rightRoadSample:{rule:"repeated",type:"LaneSampleAssociation",id:21},selfReverseLaneId:{rule:"repeated",type:"Id",id:22}},nested:{LaneType:{values:{NONE:1,CITY_DRIVING:2,BIKING:3,SIDEWALK:4,PARKING:5,SHOULDER:6}},LaneTurn:{values:{NO_TURN:1,LEFT_TURN:2,RIGHT_TURN:3,U_TURN:4}},LaneDirection:{values:{FORWARD:1,BACKWARD:2,BIDIRECTION:3}}}},LaneOverlapInfo:{fields:{startS:{type:"double",id:1},endS:{type:"double",id:2},isMerge:{type:"bool",id:3},regionOverlapId:{type:"Id",id:4}}},SignalOverlapInfo:{fields:{}},StopSignOverlapInfo:{fields:{}},CrosswalkOverlapInfo:{fields:{regionOverlapId:{type:"Id",id:1}}},JunctionOverlapInfo:{fields:{}},YieldOverlapInfo:{fields:{}},ClearAreaOverlapInfo:{fields:{}},SpeedBumpOverlapInfo:{fields:{}},ParkingSpaceOverlapInfo:{fields:{}},PNCJunctionOverlapInfo:{fields:{}},RegionOverlapInfo:{fields:{id:{type:"Id",id:1},polygon:{rule:"repeated",type:"Polygon",id:2}}},ObjectOverlapInfo:{oneofs:{overlapInfo:{oneof:["laneOverlapInfo","signalOverlapInfo","stopSignOverlapInfo","crosswalkOverlapInfo","junctionOverlapInfo","yieldSignOverlapInfo","clearAreaOverlapInfo","speedBumpOverlapInfo","parkingSpaceOverlapInfo","pncJunctionOverlapInfo"]}},fields:{id:{type:"Id",id:1},laneOverlapInfo:{type:"LaneOverlapInfo",id:3},signalOverlapInfo:{type:"SignalOverlapInfo",id:4},stopSignOverlapInfo:{type:"StopSignOverlapInfo",id:5},crosswalkOverlapInfo:{type:"CrosswalkOverlapInfo",id:6},junctionOverlapInfo:{type:"JunctionOverlapInfo",id:7},yieldSignOverlapInfo:{type:"YieldOverlapInfo",id:8},clearAreaOverlapInfo:{type:"ClearAreaOverlapInfo",id:9},speedBumpOverlapInfo:{type:"SpeedBumpOverlapInfo",id:10},parkingSpaceOverlapInfo:{type:"ParkingSpaceOverlapInfo",id:11},pncJunctionOverlapInfo:{type:"PNCJunctionOverlapInfo",id:12}}},Overlap:{fields:{id:{type:"Id",id:1},object:{rule:"repeated",type:"ObjectOverlapInfo",id:2},regionOverlap:{rule:"repeated",type:"RegionOverlapInfo",id:3}}},ParkingSpace:{fields:{id:{type:"Id",id:1},polygon:{type:"Polygon",id:2},overlapId:{rule:"repeated",type:"Id",id:3},heading:{type:"double",id:4}}},ParkingLot:{fields:{id:{type:"Id",id:1},polygon:{type:"Polygon",id:2},overlapId:{rule:"repeated",type:"Id",id:3}}},PNCJunction:{fields:{id:{type:"Id",id:1},polygon:{type:"Polygon",id:2},overlapId:{rule:"repeated",type:"Id",id:3}}},BoundaryEdge:{fields:{curve:{type:"Curve",id:1},type:{type:"Type",id:2}},nested:{Type:{values:{UNKNOWN:0,NORMAL:1,LEFT_BOUNDARY:2,RIGHT_BOUNDARY:3}}}},BoundaryPolygon:{fields:{edge:{rule:"repeated",type:"BoundaryEdge",id:1}}},RoadBoundary:{fields:{outerPolygon:{type:"BoundaryPolygon",id:1},hole:{rule:"repeated",type:"BoundaryPolygon",id:2}}},RoadROIBoundary:{fields:{id:{type:"Id",id:1},roadBoundaries:{rule:"repeated",type:"RoadBoundary",id:2}}},RoadSection:{fields:{id:{type:"Id",id:1},laneId:{rule:"repeated",type:"Id",id:2},boundary:{type:"RoadBoundary",id:3}}},Road:{fields:{id:{type:"Id",id:1},section:{rule:"repeated",type:"RoadSection",id:2},junctionId:{type:"Id",id:3}}},Subsignal:{fields:{id:{type:"Id",id:1},type:{type:"Type",id:2},location:{type:"apollo.common.PointENU",id:3}},nested:{Type:{values:{UNKNOWN:1,CIRCLE:2,ARROW_LEFT:3,ARROW_FORWARD:4,ARROW_RIGHT:5,ARROW_LEFT_AND_FORWARD:6,ARROW_RIGHT_AND_FORWARD:7,ARROW_U_TURN:8}}}},Signal:{fields:{id:{type:"Id",id:1},boundary:{type:"Polygon",id:2},subsignal:{rule:"repeated",type:"Subsignal",id:3},overlapId:{rule:"repeated",type:"Id",id:4},type:{type:"Type",id:5},stopLine:{rule:"repeated",type:"Curve",id:6}},nested:{Type:{values:{UNKNOWN:1,MIX_2_HORIZONTAL:2,MIX_2_VERTICAL:3,MIX_3_HORIZONTAL:4,MIX_3_VERTICAL:5,SINGLE:6}}}},SpeedBump:{fields:{id:{type:"Id",id:1},overlapId:{rule:"repeated",type:"Id",id:2},position:{rule:"repeated",type:"Curve",id:3}}},SpeedControl:{fields:{name:{type:"string",id:1},polygon:{type:"apollo.hdmap.Polygon",id:2},speedLimit:{type:"double",id:3}}},SpeedControls:{fields:{speedControl:{rule:"repeated",type:"SpeedControl",id:1}}},StopSign:{fields:{id:{type:"Id",id:1},stopLine:{rule:"repeated",type:"Curve",id:2},overlapId:{rule:"repeated",type:"Id",id:3},type:{type:"StopType",id:4}},nested:{StopType:{values:{UNKNOWN:0,ONE_WAY:1,TWO_WAY:2,THREE_WAY:3,FOUR_WAY:4,ALL_WAY:5}}}},YieldSign:{fields:{id:{type:"Id",id:1},stopLine:{rule:"repeated",type:"Curve",id:2},overlapId:{rule:"repeated",type:"Id",id:3}}}}},relative_map:{nested:{NavigationPath:{fields:{path:{type:"apollo.common.Path",id:1},pathPriority:{type:"uint32",id:2}}},NavigationInfo:{fields:{header:{type:"apollo.common.Header",id:1},navigationPath:{rule:"repeated",type:"NavigationPath",id:2}}},MapMsg:{fields:{header:{type:"apollo.common.Header",id:1},hdmap:{type:"apollo.hdmap.Map",id:2},navigationPath:{keyType:"string",type:"NavigationPath",id:3},laneMarker:{type:"apollo.perception.LaneMarkers",id:4},localization:{type:"apollo.localization.LocalizationEstimate",id:5}}},MapGenerationParam:{fields:{defaultLeftWidth:{type:"double",id:1,options:{default:1.75}},defaultRightWidth:{type:"double",id:2,options:{default:1.75}},defaultSpeedLimit:{type:"double",id:3,options:{default:29.0576}}}},NavigationLaneConfig:{fields:{minLaneMarkerQuality:{type:"double",id:1,options:{default:.5}},laneSource:{type:"LaneSource",id:2}},nested:{LaneSource:{values:{PERCEPTION:1,OFFLINE_GENERATED:2}}}},RelativeMapConfig:{fields:{mapParam:{type:"MapGenerationParam",id:1},navigationLane:{type:"NavigationLaneConfig",id:2}}}}}}}}}},function(e,t){},function(e,t){},function(e,t){}]); //# sourceMappingURL=app.bundle.js.map \ No newline at end of file diff --git a/modules/dreamview/frontend/dist/app.bundle.js.map b/modules/dreamview/frontend/dist/app.bundle.js.map index 3d9376958ae346ff90201f106ecef9e94d8156c6..c3df99109a5d2223aa51f1772ec7d2037604bcee 100644 --- a/modules/dreamview/frontend/dist/app.bundle.js.map +++ b/modules/dreamview/frontend/dist/app.bundle.js.map @@ -1 +1 @@ -{"version":3,"file":"app.bundle.js","sources":["webpack:///app.bundle.js"],"sourcesContent":["!function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,i,o){for(var a,s,l=0,u=[];l6?l-6:0),c=6;c>\",s=s||r,null==i[r]){if(t){var n=null===i[r]?\"null\":\"undefined\";return new Error(\"The \"+a+\" `\"+s+\"` is marked as required in `\"+o+\"`, but its value is `\"+n+\"`.\")}return null}return e.apply(void 0,[i,r,o,a,s].concat(u))})}var i=t.bind(null,!1);return i.isRequired=t.bind(null,!0),i}function r(e,t){return\"symbol\"===e||(\"Symbol\"===t[\"@@toStringTag\"]||\"function\"==typeof Symbol&&t instanceof Symbol)}function o(e){var t=void 0===e?\"undefined\":T(e);return Array.isArray(e)?\"array\":e instanceof RegExp?\"object\":r(t,e)?\"symbol\":t}function a(e){var t=o(e);if(\"object\"===t){if(e instanceof Date)return\"date\";if(e instanceof RegExp)return\"regexp\"}return t}function s(e,t){return i(function(i,r,s,l,u){return n.i(w.untracked)(function(){if(e&&o(i[r])===t.toLowerCase())return null;var n=void 0;switch(t){case\"Array\":n=w.isObservableArray;break;case\"Object\":n=w.isObservableObject;break;case\"Map\":n=w.isObservableMap;break;default:throw new Error(\"Unexpected mobxType: \"+t)}var l=i[r];if(!n(l)){var c=a(l),d=e?\" or javascript `\"+t.toLowerCase()+\"`\":\"\";return new Error(\"Invalid prop `\"+u+\"` of type `\"+c+\"` supplied to `\"+s+\"`, expected `mobx.Observable\"+t+\"`\"+d+\".\")}return null})})}function l(e,t){return i(function(i,r,o,a,l){for(var u=arguments.length,c=Array(u>5?u-5:0),d=5;d2&&void 0!==arguments[2]&&arguments[2],i=e[t],r=ie[t],o=i?!0===n?function(){r.apply(this,arguments),i.apply(this,arguments)}:function(){i.apply(this,arguments),r.apply(this,arguments)}:r;e[t]=o}function y(e,t){if(b(e,t))return!0;if(\"object\"!==(void 0===e?\"undefined\":T(e))||null===e||\"object\"!==(void 0===t?\"undefined\":T(t))||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var r=0;r\",i=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID||this._reactInternalFiber&&this._reactInternalFiber._debugID,r=!1,o=!1;e.call(this,\"props\"),e.call(this,\"state\");var a=this.render.bind(this),s=null,l=!1,u=function(){return s=new w.Reaction(n+\"#\"+i+\".render()\",function(){if(!l&&(l=!0,\"function\"==typeof t.componentWillReact&&t.componentWillReact(),!0!==t.__$mobxIsUnmounted)){var e=!0;try{o=!0,r||M.Component.prototype.forceUpdate.call(t),e=!1}finally{o=!1,e&&s.dispose()}}}),s.reactComponent=t,c.$mobx=s,t.render=c,c()},c=function(){l=!1;var e=void 0,n=void 0;if(s.track(function(){J&&(t.__$mobRenderStart=Date.now());try{n=w.extras.allowStateChanges(!1,a)}catch(t){e=t}J&&(t.__$mobRenderEnd=Date.now())}),e)throw ne.emit(e),e;return n};this.render=u}},componentWillUnmount:function(){if(!0!==Q&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0,J)){var e=f(this);e&&ee&&ee.delete(e),te.emit({event:\"destroy\",component:this,node:e})}},componentDidMount:function(){J&&p(this)},componentDidUpdate:function(){J&&p(this)},shouldComponentUpdate:function(e,t){return Q&&console.warn(\"[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side.\"),this.state!==t||!y(this.props,e)}},re=_(function(e){var t=e.children,n=e.inject,i=e.render,r=t||i;if(void 0===r)return null;if(!n)return r();var o=h(n)(r);return S.a.createElement(o,null)});re.displayName=\"Observer\";var oe=function(e,t,n,i,r){var o=\"children\"===t?\"render\":\"children\";if(\"function\"==typeof e[t]&&\"function\"==typeof e[o])return new Error(\"Invalid prop,do not use children and render in the same time in`\"+n);if(\"function\"!=typeof e[t]&&\"function\"!=typeof e[o])return new Error(\"Invalid prop `\"+r+\"` of type `\"+T(e[t])+\"` supplied to `\"+n+\"`, expected `function`.\")};re.propTypes={render:oe,children:oe};var ae,se,le={children:!0,key:!0,ref:!0},ue=(se=ae=function(e){function t(){return k(this,t),P(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return C(t,e),O(t,[{key:\"render\",value:function(){return M.Children.only(this.props.children)}},{key:\"getChildContext\",value:function(){var e={},t=this.context.mobxStores;if(t)for(var n in t)e[n]=t[n];for(var i in this.props)le[i]||\"suppressChangedStoreWarning\"===i||(e[i]=this.props[i]);return{mobxStores:e}}},{key:\"componentWillReceiveProps\",value:function(e){if(Object.keys(e).length!==Object.keys(this.props).length&&console.warn(\"MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children\"),!e.suppressChangedStoreWarning)for(var t in e)le[t]||this.props[t]===e[t]||console.warn(\"MobX Provider: Provided store '\"+t+\"' has changed. Please avoid replacing stores as the change might not propagate to all children\")}}]),t}(M.Component),ae.contextTypes={mobxStores:Y},ae.childContextTypes={mobxStores:Y.isRequired},se);if(!M.Component)throw new Error(\"mobx-react requires React to be available\");if(!w.extras)throw new Error(\"mobx-react requires mobx to be available\");\"function\"==typeof E.unstable_batchedUpdates&&w.extras.setReactionScheduler(E.unstable_batchedUpdates);var ce=function(e){return ne.on(e)};if(\"object\"===(\"undefined\"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?\"undefined\":T(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var de={spy:w.spy,extras:w.extras},he={renderReporter:te,componentByNodeRegistery:ee,trackComponents:m};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(he,de)}},function(e,t,n){\"use strict\";var i=n(6);e.exports={_set:function(e,t){return i.merge(this[e]||(this[e]={}),t)}}},function(e,t){var n=e.exports={version:\"2.5.7\"};\"number\"==typeof __e&&(__e=n)},function(e,t,n){\"use strict\";var i=n(7),r=n(74);t.a=function(e){return Math.abs(e)<=i.e?e:e-n.i(r.a)(e)*i.f}},function(e,t,n){\"use strict\";function i(){}function r(e,t){this.x=e||0,this.y=t||0}function o(e,t,n,i,a,s,l,u,c,d){Object.defineProperty(this,\"id\",{value:ps++}),this.uuid=fs.generateUUID(),this.name=\"\",this.image=void 0!==e?e:o.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==t?t:o.DEFAULT_MAPPING,this.wrapS=void 0!==n?n:la,this.wrapT=void 0!==i?i:la,this.magFilter=void 0!==a?a:fa,this.minFilter=void 0!==s?s:ma,this.anisotropy=void 0!==c?c:1,this.format=void 0!==l?l:Pa,this.type=void 0!==u?u:ga,this.offset=new r(0,0),this.repeat=new r(1,1),this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=void 0!==d?d:is,this.version=0,this.onUpdate=null}function a(e,t,n,i){this.x=e||0,this.y=t||0,this.z=n||0,this.w=void 0!==i?i:1}function s(e,t,n){this.uuid=fs.generateUUID(),this.width=e,this.height=t,this.scissor=new a(0,0,e,t),this.scissorTest=!1,this.viewport=new a(0,0,e,t),n=n||{},void 0===n.minFilter&&(n.minFilter=fa),this.texture=new o(void 0,void 0,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.depthBuffer=void 0===n.depthBuffer||n.depthBuffer,this.stencilBuffer=void 0===n.stencilBuffer||n.stencilBuffer,this.depthTexture=void 0!==n.depthTexture?n.depthTexture:null}function l(e,t,n){s.call(this,e,t,n),this.activeCubeFace=0,this.activeMipMapLevel=0}function u(e,t,n,i){this._x=e||0,this._y=t||0,this._z=n||0,this._w=void 0!==i?i:1}function c(e,t,n){this.x=e||0,this.y=t||0,this.z=n||0}function d(){this.elements=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),arguments.length>0&&console.error(\"THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.\")}function h(e,t,n,i,r,a,s,l,u,c){e=void 0!==e?e:[],t=void 0!==t?t:ea,o.call(this,e,t,n,i,r,a,s,l,u,c),this.flipY=!1}function f(){this.seq=[],this.map={}}function p(e,t,n){var i=e[0];if(i<=0||i>0)return e;var r=t*n,o=vs[r];if(void 0===o&&(o=new Float32Array(r),vs[r]=o),0!==t){i.toArray(o,0);for(var a=1,s=0;a!==t;++a)s+=n,e[a].toArray(o,s)}return o}function m(e,t){var n=ys[t];void 0===n&&(n=new Int32Array(t),ys[t]=n);for(var i=0;i!==t;++i)n[i]=e.allocTextureUnit();return n}function g(e,t){e.uniform1f(this.addr,t)}function v(e,t){e.uniform1i(this.addr,t)}function y(e,t){void 0===t.x?e.uniform2fv(this.addr,t):e.uniform2f(this.addr,t.x,t.y)}function b(e,t){void 0!==t.x?e.uniform3f(this.addr,t.x,t.y,t.z):void 0!==t.r?e.uniform3f(this.addr,t.r,t.g,t.b):e.uniform3fv(this.addr,t)}function _(e,t){void 0===t.x?e.uniform4fv(this.addr,t):e.uniform4f(this.addr,t.x,t.y,t.z,t.w)}function x(e,t){e.uniformMatrix2fv(this.addr,!1,t.elements||t)}function w(e,t){e.uniformMatrix3fv(this.addr,!1,t.elements||t)}function M(e,t){e.uniformMatrix4fv(this.addr,!1,t.elements||t)}function S(e,t,n){var i=n.allocTextureUnit();e.uniform1i(this.addr,i),n.setTexture2D(t||ms,i)}function E(e,t,n){var i=n.allocTextureUnit();e.uniform1i(this.addr,i),n.setTextureCube(t||gs,i)}function T(e,t){e.uniform2iv(this.addr,t)}function k(e,t){e.uniform3iv(this.addr,t)}function O(e,t){e.uniform4iv(this.addr,t)}function C(e){switch(e){case 5126:return g;case 35664:return y;case 35665:return b;case 35666:return _;case 35674:return x;case 35675:return w;case 35676:return M;case 35678:return S;case 35680:return E;case 5124:case 35670:return v;case 35667:case 35671:return T;case 35668:case 35672:return k;case 35669:case 35673:return O}}function P(e,t){e.uniform1fv(this.addr,t)}function A(e,t){e.uniform1iv(this.addr,t)}function R(e,t){e.uniform2fv(this.addr,p(t,this.size,2))}function L(e,t){e.uniform3fv(this.addr,p(t,this.size,3))}function I(e,t){e.uniform4fv(this.addr,p(t,this.size,4))}function D(e,t){e.uniformMatrix2fv(this.addr,!1,p(t,this.size,4))}function N(e,t){e.uniformMatrix3fv(this.addr,!1,p(t,this.size,9))}function B(e,t){e.uniformMatrix4fv(this.addr,!1,p(t,this.size,16))}function z(e,t,n){var i=t.length,r=m(n,i);e.uniform1iv(this.addr,r);for(var o=0;o!==i;++o)n.setTexture2D(t[o]||ms,r[o])}function F(e,t,n){var i=t.length,r=m(n,i);e.uniform1iv(this.addr,r);for(var o=0;o!==i;++o)n.setTextureCube(t[o]||gs,r[o])}function j(e){switch(e){case 5126:return P;case 35664:return R;case 35665:return L;case 35666:return I;case 35674:return D;case 35675:return N;case 35676:return B;case 35678:return z;case 35680:return F;case 5124:case 35670:return A;case 35667:case 35671:return T;case 35668:case 35672:return k;case 35669:case 35673:return O}}function U(e,t,n){this.id=e,this.addr=n,this.setValue=C(t.type)}function W(e,t,n){this.id=e,this.addr=n,this.size=t.size,this.setValue=j(t.type)}function G(e){this.id=e,f.call(this)}function V(e,t){e.seq.push(t),e.map[t.id]=t}function H(e,t,n){var i=e.name,r=i.length;for(bs.lastIndex=0;;){var o=bs.exec(i),a=bs.lastIndex,s=o[1],l=\"]\"===o[2],u=o[3];if(l&&(s|=0),void 0===u||\"[\"===u&&a+2===r){V(n,void 0===u?new U(s,e,t):new W(s,e,t));break}var c=n.map,d=c[s];void 0===d&&(d=new G(s),V(n,d)),n=d}}function q(e,t,n){f.call(this),this.renderer=n;for(var i=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),r=0;r.001&&A.scale>.001&&(M.x=A.x,M.y=A.y,M.z=A.z,x=A.size*A.scale/g.w,w.x=x*y,w.y=x,p.uniform3f(d.screenPosition,M.x,M.y,M.z),p.uniform2f(d.scale,w.x,w.y),p.uniform1f(d.rotation,A.rotation),p.uniform1f(d.opacity,A.opacity),p.uniform3f(d.color,A.color.r,A.color.g,A.color.b),m.setBlending(A.blending,A.blendEquation,A.blendSrc,A.blendDst),e.setTexture2D(A.texture,1),p.drawElements(p.TRIANGLES,6,p.UNSIGNED_SHORT,0))}}}m.enable(p.CULL_FACE),m.enable(p.DEPTH_TEST),m.setDepthWrite(!0),e.resetGLState()}}}function J(e,t){function n(){var e=new Float32Array([-.5,-.5,0,0,.5,-.5,1,0,.5,.5,1,1,-.5,.5,0,1]),t=new Uint16Array([0,1,2,0,2,3]);a=p.createBuffer(),s=p.createBuffer(),p.bindBuffer(p.ARRAY_BUFFER,a),p.bufferData(p.ARRAY_BUFFER,e,p.STATIC_DRAW),p.bindBuffer(p.ELEMENT_ARRAY_BUFFER,s),p.bufferData(p.ELEMENT_ARRAY_BUFFER,t,p.STATIC_DRAW),l=i(),d={position:p.getAttribLocation(l,\"position\"),uv:p.getAttribLocation(l,\"uv\")},h={uvOffset:p.getUniformLocation(l,\"uvOffset\"),uvScale:p.getUniformLocation(l,\"uvScale\"),rotation:p.getUniformLocation(l,\"rotation\"),scale:p.getUniformLocation(l,\"scale\"),color:p.getUniformLocation(l,\"color\"),map:p.getUniformLocation(l,\"map\"),opacity:p.getUniformLocation(l,\"opacity\"),modelViewMatrix:p.getUniformLocation(l,\"modelViewMatrix\"),projectionMatrix:p.getUniformLocation(l,\"projectionMatrix\"),fogType:p.getUniformLocation(l,\"fogType\"),fogDensity:p.getUniformLocation(l,\"fogDensity\"),fogNear:p.getUniformLocation(l,\"fogNear\"),fogFar:p.getUniformLocation(l,\"fogFar\"),fogColor:p.getUniformLocation(l,\"fogColor\"),alphaTest:p.getUniformLocation(l,\"alphaTest\")};var n=document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\");n.width=8,n.height=8;var r=n.getContext(\"2d\");r.fillStyle=\"white\",r.fillRect(0,0,8,8),f=new o(n),f.needsUpdate=!0}function i(){var t=p.createProgram(),n=p.createShader(p.VERTEX_SHADER),i=p.createShader(p.FRAGMENT_SHADER);return p.shaderSource(n,[\"precision \"+e.getPrecision()+\" float;\",\"uniform mat4 modelViewMatrix;\",\"uniform mat4 projectionMatrix;\",\"uniform float rotation;\",\"uniform vec2 scale;\",\"uniform vec2 uvOffset;\",\"uniform vec2 uvScale;\",\"attribute vec2 position;\",\"attribute vec2 uv;\",\"varying vec2 vUV;\",\"void main() {\",\"vUV = uvOffset + uv * uvScale;\",\"vec2 alignedPosition = position * scale;\",\"vec2 rotatedPosition;\",\"rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\",\"rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\",\"vec4 finalPosition;\",\"finalPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\",\"finalPosition.xy += rotatedPosition;\",\"finalPosition = projectionMatrix * finalPosition;\",\"gl_Position = finalPosition;\",\"}\"].join(\"\\n\")),p.shaderSource(i,[\"precision \"+e.getPrecision()+\" float;\",\"uniform vec3 color;\",\"uniform sampler2D map;\",\"uniform float opacity;\",\"uniform int fogType;\",\"uniform vec3 fogColor;\",\"uniform float fogDensity;\",\"uniform float fogNear;\",\"uniform float fogFar;\",\"uniform float alphaTest;\",\"varying vec2 vUV;\",\"void main() {\",\"vec4 texture = texture2D( map, vUV );\",\"if ( texture.a < alphaTest ) discard;\",\"gl_FragColor = vec4( color * texture.xyz, texture.a * opacity );\",\"if ( fogType > 0 ) {\",\"float depth = gl_FragCoord.z / gl_FragCoord.w;\",\"float fogFactor = 0.0;\",\"if ( fogType == 1 ) {\",\"fogFactor = smoothstep( fogNear, fogFar, depth );\",\"} else {\",\"const float LOG2 = 1.442695;\",\"fogFactor = exp2( - fogDensity * fogDensity * depth * depth * LOG2 );\",\"fogFactor = 1.0 - clamp( fogFactor, 0.0, 1.0 );\",\"}\",\"gl_FragColor = mix( gl_FragColor, vec4( fogColor, gl_FragColor.w ), fogFactor );\",\"}\",\"}\"].join(\"\\n\")),p.compileShader(n),p.compileShader(i),p.attachShader(t,n),p.attachShader(t,i),p.linkProgram(t),t}function r(e,t){return e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.z!==t.z?t.z-e.z:t.id-e.id}var a,s,l,d,h,f,p=e.context,m=e.state,g=new c,v=new u,y=new c;this.render=function(i,o){if(0!==t.length){void 0===l&&n(),p.useProgram(l),m.initAttributes(),m.enableAttribute(d.position),m.enableAttribute(d.uv),m.disableUnusedAttributes(),m.disable(p.CULL_FACE),m.enable(p.BLEND),p.bindBuffer(p.ARRAY_BUFFER,a),p.vertexAttribPointer(d.position,2,p.FLOAT,!1,16,0),p.vertexAttribPointer(d.uv,2,p.FLOAT,!1,16,8),p.bindBuffer(p.ELEMENT_ARRAY_BUFFER,s),p.uniformMatrix4fv(h.projectionMatrix,!1,o.projectionMatrix.elements),m.activeTexture(p.TEXTURE0),p.uniform1i(h.map,0);var u=0,c=0,b=i.fog;b?(p.uniform3f(h.fogColor,b.color.r,b.color.g,b.color.b),b.isFog?(p.uniform1f(h.fogNear,b.near),p.uniform1f(h.fogFar,b.far),p.uniform1i(h.fogType,1),u=1,c=1):b.isFogExp2&&(p.uniform1f(h.fogDensity,b.density),p.uniform1i(h.fogType,2),u=2,c=2)):(p.uniform1i(h.fogType,0),u=0,c=0);for(var _=0,x=t.length;_0&&console.error(\"THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.\")}function re(e,t){this.normal=void 0!==e?e:new c(1,0,0),this.constant=void 0!==t?t:0}function oe(e,t,n,i,r,o){this.planes=[void 0!==e?e:new re,void 0!==t?t:new re,void 0!==n?n:new re,void 0!==i?i:new re,void 0!==r?r:new re,void 0!==o?o:new re]}function ae(e,t,n,i){function o(t,n,i,r){var o=t.geometry,a=null,s=S,l=t.customDepthMaterial;if(i&&(s=E,l=t.customDistanceMaterial),l)a=l;else{var u=!1;n.morphTargets&&(o&&o.isBufferGeometry?u=o.morphAttributes&&o.morphAttributes.position&&o.morphAttributes.position.length>0:o&&o.isGeometry&&(u=o.morphTargets&&o.morphTargets.length>0));var c=t.isSkinnedMesh&&n.skinning,d=0;u&&(d|=x),c&&(d|=w),a=s[d]}if(e.localClippingEnabled&&!0===n.clipShadows&&0!==n.clippingPlanes.length){var h=a.uuid,f=n.uuid,p=T[h];void 0===p&&(p={},T[h]=p);var m=p[f];void 0===m&&(m=a.clone(),p[f]=m),a=m}a.visible=n.visible,a.wireframe=n.wireframe;var g=n.side;return z.renderSingleSided&&g==lo&&(g=ao),z.renderReverseSided&&(g===ao?g=so:g===so&&(g=ao)),a.side=g,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,i&&void 0!==a.uniforms.lightPos&&a.uniforms.lightPos.value.copy(r),a}function l(e,t,n){if(!1!==e.visible){if(0!=(e.layers.mask&t.layers.mask)&&(e.isMesh||e.isLine||e.isPoints)&&e.castShadow&&(!1===e.frustumCulled||!0===f.intersectsObject(e))){!0===e.material.visible&&(e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld),_.push(e))}for(var i=e.children,r=0,o=i.length;rn&&(n=e[t]);return n}function ke(){return ks++}function Oe(){Object.defineProperty(this,\"id\",{value:ke()}),this.uuid=fs.generateUUID(),this.name=\"\",this.type=\"Geometry\",this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingBox=null,this.boundingSphere=null,this.elementsNeedUpdate=!1,this.verticesNeedUpdate=!1,this.uvsNeedUpdate=!1,this.normalsNeedUpdate=!1,this.colorsNeedUpdate=!1,this.lineDistancesNeedUpdate=!1,this.groupsNeedUpdate=!1}function Ce(){Object.defineProperty(this,\"id\",{value:ke()}),this.uuid=fs.generateUUID(),this.name=\"\",this.type=\"BufferGeometry\",this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0}}function Pe(e,t){ce.call(this),this.type=\"Mesh\",this.geometry=void 0!==e?e:new Ce,this.material=void 0!==t?t:new pe({color:16777215*Math.random()}),this.drawMode=es,this.updateMorphTargets()}function Ae(e,t,n,i,r,o){Oe.call(this),this.type=\"BoxGeometry\",this.parameters={width:e,height:t,depth:n,widthSegments:i,heightSegments:r,depthSegments:o},this.fromBufferGeometry(new Re(e,t,n,i,r,o)),this.mergeVertices()}function Re(e,t,n,i,r,o){function a(e,t,n,i,r,o,a,m,g,v,y){var b,_,x=o/g,w=a/v,M=o/2,S=a/2,E=m/2,T=g+1,k=v+1,O=0,C=0,P=new c;for(_=0;_0?1:-1,d.push(P.x,P.y,P.z),h.push(b/g),h.push(1-_/v),O+=1}}for(_=0;_\");return Qe(n)}var n=/#include +<([\\w\\d.]+)>/g;return e.replace(n,t)}function $e(e){function t(e,t,n,i){for(var r=\"\",o=parseInt(t);o0?e.gammaFactor:1,g=Ye(o,i,e.extensions),v=Xe(a),y=r.createProgram();n.isRawShaderMaterial?(f=[v,\"\\n\"].filter(Ze).join(\"\\n\"),p=[g,v,\"\\n\"].filter(Ze).join(\"\\n\")):(f=[\"precision \"+i.precision+\" float;\",\"precision \"+i.precision+\" int;\",\"#define SHADER_NAME \"+n.__webglShader.name,v,i.supportsVertexTextures?\"#define VERTEX_TEXTURES\":\"\",\"#define GAMMA_FACTOR \"+m,\"#define MAX_BONES \"+i.maxBones,i.useFog&&i.fog?\"#define USE_FOG\":\"\",i.useFog&&i.fogExp?\"#define FOG_EXP2\":\"\",i.map?\"#define USE_MAP\":\"\",i.envMap?\"#define USE_ENVMAP\":\"\",i.envMap?\"#define \"+d:\"\",i.lightMap?\"#define USE_LIGHTMAP\":\"\",i.aoMap?\"#define USE_AOMAP\":\"\",i.emissiveMap?\"#define USE_EMISSIVEMAP\":\"\",i.bumpMap?\"#define USE_BUMPMAP\":\"\",i.normalMap?\"#define USE_NORMALMAP\":\"\",i.displacementMap&&i.supportsVertexTextures?\"#define USE_DISPLACEMENTMAP\":\"\",i.specularMap?\"#define USE_SPECULARMAP\":\"\",i.roughnessMap?\"#define USE_ROUGHNESSMAP\":\"\",i.metalnessMap?\"#define USE_METALNESSMAP\":\"\",i.alphaMap?\"#define USE_ALPHAMAP\":\"\",i.vertexColors?\"#define USE_COLOR\":\"\",i.flatShading?\"#define FLAT_SHADED\":\"\",i.skinning?\"#define USE_SKINNING\":\"\",i.useVertexTexture?\"#define BONE_TEXTURE\":\"\",i.morphTargets?\"#define USE_MORPHTARGETS\":\"\",i.morphNormals&&!1===i.flatShading?\"#define USE_MORPHNORMALS\":\"\",i.doubleSided?\"#define DOUBLE_SIDED\":\"\",i.flipSided?\"#define FLIP_SIDED\":\"\",\"#define NUM_CLIPPING_PLANES \"+i.numClippingPlanes,i.shadowMapEnabled?\"#define USE_SHADOWMAP\":\"\",i.shadowMapEnabled?\"#define \"+u:\"\",i.sizeAttenuation?\"#define USE_SIZEATTENUATION\":\"\",i.logarithmicDepthBuffer?\"#define USE_LOGDEPTHBUF\":\"\",i.logarithmicDepthBuffer&&e.extensions.get(\"EXT_frag_depth\")?\"#define USE_LOGDEPTHBUF_EXT\":\"\",\"uniform mat4 modelMatrix;\",\"uniform mat4 modelViewMatrix;\",\"uniform mat4 projectionMatrix;\",\"uniform mat4 viewMatrix;\",\"uniform mat3 normalMatrix;\",\"uniform vec3 cameraPosition;\",\"attribute vec3 position;\",\"attribute vec3 normal;\",\"attribute vec2 uv;\",\"#ifdef USE_COLOR\",\"\\tattribute vec3 color;\",\"#endif\",\"#ifdef USE_MORPHTARGETS\",\"\\tattribute vec3 morphTarget0;\",\"\\tattribute vec3 morphTarget1;\",\"\\tattribute vec3 morphTarget2;\",\"\\tattribute vec3 morphTarget3;\",\"\\t#ifdef USE_MORPHNORMALS\",\"\\t\\tattribute vec3 morphNormal0;\",\"\\t\\tattribute vec3 morphNormal1;\",\"\\t\\tattribute vec3 morphNormal2;\",\"\\t\\tattribute vec3 morphNormal3;\",\"\\t#else\",\"\\t\\tattribute vec3 morphTarget4;\",\"\\t\\tattribute vec3 morphTarget5;\",\"\\t\\tattribute vec3 morphTarget6;\",\"\\t\\tattribute vec3 morphTarget7;\",\"\\t#endif\",\"#endif\",\"#ifdef USE_SKINNING\",\"\\tattribute vec4 skinIndex;\",\"\\tattribute vec4 skinWeight;\",\"#endif\",\"\\n\"].filter(Ze).join(\"\\n\"),p=[g,\"precision \"+i.precision+\" float;\",\"precision \"+i.precision+\" int;\",\"#define SHADER_NAME \"+n.__webglShader.name,v,i.alphaTest?\"#define ALPHATEST \"+i.alphaTest:\"\",\"#define GAMMA_FACTOR \"+m,i.useFog&&i.fog?\"#define USE_FOG\":\"\",i.useFog&&i.fogExp?\"#define FOG_EXP2\":\"\",i.map?\"#define USE_MAP\":\"\",i.envMap?\"#define USE_ENVMAP\":\"\",i.envMap?\"#define \"+c:\"\",i.envMap?\"#define \"+d:\"\",i.envMap?\"#define \"+h:\"\",i.lightMap?\"#define USE_LIGHTMAP\":\"\",i.aoMap?\"#define USE_AOMAP\":\"\",i.emissiveMap?\"#define USE_EMISSIVEMAP\":\"\",i.bumpMap?\"#define USE_BUMPMAP\":\"\",i.normalMap?\"#define USE_NORMALMAP\":\"\",i.specularMap?\"#define USE_SPECULARMAP\":\"\",i.roughnessMap?\"#define USE_ROUGHNESSMAP\":\"\",i.metalnessMap?\"#define USE_METALNESSMAP\":\"\",i.alphaMap?\"#define USE_ALPHAMAP\":\"\",i.vertexColors?\"#define USE_COLOR\":\"\",i.gradientMap?\"#define USE_GRADIENTMAP\":\"\",i.flatShading?\"#define FLAT_SHADED\":\"\",i.doubleSided?\"#define DOUBLE_SIDED\":\"\",i.flipSided?\"#define FLIP_SIDED\":\"\",\"#define NUM_CLIPPING_PLANES \"+i.numClippingPlanes,\"#define UNION_CLIPPING_PLANES \"+(i.numClippingPlanes-i.numClipIntersection),i.shadowMapEnabled?\"#define USE_SHADOWMAP\":\"\",i.shadowMapEnabled?\"#define \"+u:\"\",i.premultipliedAlpha?\"#define PREMULTIPLIED_ALPHA\":\"\",i.physicallyCorrectLights?\"#define PHYSICALLY_CORRECT_LIGHTS\":\"\",i.logarithmicDepthBuffer?\"#define USE_LOGDEPTHBUF\":\"\",i.logarithmicDepthBuffer&&e.extensions.get(\"EXT_frag_depth\")?\"#define USE_LOGDEPTHBUF_EXT\":\"\",i.envMap&&e.extensions.get(\"EXT_shader_texture_lod\")?\"#define TEXTURE_LOD_EXT\":\"\",\"uniform mat4 viewMatrix;\",\"uniform vec3 cameraPosition;\",i.toneMapping!==Xo?\"#define TONE_MAPPING\":\"\",i.toneMapping!==Xo?xs.tonemapping_pars_fragment:\"\",i.toneMapping!==Xo?qe(\"toneMapping\",i.toneMapping):\"\",i.outputEncoding||i.mapEncoding||i.envMapEncoding||i.emissiveMapEncoding?xs.encodings_pars_fragment:\"\",i.mapEncoding?Ve(\"mapTexelToLinear\",i.mapEncoding):\"\",i.envMapEncoding?Ve(\"envMapTexelToLinear\",i.envMapEncoding):\"\",i.emissiveMapEncoding?Ve(\"emissiveMapTexelToLinear\",i.emissiveMapEncoding):\"\",i.outputEncoding?He(\"linearToOutputTexel\",i.outputEncoding):\"\",i.depthPacking?\"#define DEPTH_PACKING \"+n.depthPacking:\"\",\"\\n\"].filter(Ze).join(\"\\n\")),s=Qe(s,i),s=Je(s,i),l=Qe(l,i),l=Je(l,i),n.isShaderMaterial||(s=$e(s),l=$e(l));var b=f+s,_=p+l,x=We(r,r.VERTEX_SHADER,b),w=We(r,r.FRAGMENT_SHADER,_);r.attachShader(y,x),r.attachShader(y,w),void 0!==n.index0AttributeName?r.bindAttribLocation(y,0,n.index0AttributeName):!0===i.morphTargets&&r.bindAttribLocation(y,0,\"position\"),r.linkProgram(y);var M=r.getProgramInfoLog(y),S=r.getShaderInfoLog(x),E=r.getShaderInfoLog(w),T=!0,k=!0;!1===r.getProgramParameter(y,r.LINK_STATUS)?(T=!1,console.error(\"THREE.WebGLProgram: shader error: \",r.getError(),\"gl.VALIDATE_STATUS\",r.getProgramParameter(y,r.VALIDATE_STATUS),\"gl.getProgramInfoLog\",M,S,E)):\"\"!==M?console.warn(\"THREE.WebGLProgram: gl.getProgramInfoLog()\",M):\"\"!==S&&\"\"!==E||(k=!1),k&&(this.diagnostics={runnable:T,material:n,programLog:M,vertexShader:{log:S,prefix:f},fragmentShader:{log:E,prefix:p}}),r.deleteShader(x),r.deleteShader(w);var O;this.getUniforms=function(){return void 0===O&&(O=new q(r,y,e)),O};var C;return this.getAttributes=function(){return void 0===C&&(C=Ke(r,y)),C},this.destroy=function(){r.deleteProgram(y),this.program=void 0},Object.defineProperties(this,{uniforms:{get:function(){return console.warn(\"THREE.WebGLProgram: .uniforms is now .getUniforms().\"),this.getUniforms()}},attributes:{get:function(){return console.warn(\"THREE.WebGLProgram: .attributes is now .getAttributes().\"),this.getAttributes()}}}),this.id=Os++,this.code=t,this.usedTimes=1,this.program=y,this.vertexShader=x,this.fragmentShader=w,this}function tt(e,t){function n(e){if(t.floatVertexTextures&&e&&e.skeleton&&e.skeleton.useVertexTexture)return 1024;var n=t.maxVertexUniforms,i=Math.floor((n-20)/4),r=i;return void 0!==e&&e&&e.isSkinnedMesh&&(r=Math.min(e.skeleton.bones.length,r))0,shadowMapType:e.shadowMap.type,toneMapping:e.toneMapping,physicallyCorrectLights:e.physicallyCorrectLights,premultipliedAlpha:r.premultipliedAlpha,alphaTest:r.alphaTest,doubleSided:r.side===lo,flipSided:r.side===so,depthPacking:void 0!==r.depthPacking&&r.depthPacking}},this.getProgramCode=function(e,t){var n=[];if(t.shaderID?n.push(t.shaderID):(n.push(e.fragmentShader),n.push(e.vertexShader)),void 0!==e.defines)for(var i in e.defines)n.push(i),n.push(e.defines[i]);for(var r=0;r65535?we:_e)(o,1);return r(p,e.ELEMENT_ARRAY_BUFFER),i.wireframe=p,p}var c=new nt(e,t,n);return{getAttributeBuffer:s,getAttributeProperties:l,getWireframeAttribute:u,update:i}}function rt(e,t,n,i,r,o,a){function s(e,t){if(e.width>t||e.height>t){var n=t/Math.max(e.width,e.height),i=document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\");i.width=Math.floor(e.width*n),i.height=Math.floor(e.height*n);return i.getContext(\"2d\").drawImage(e,0,0,e.width,e.height,0,0,i.width,i.height),console.warn(\"THREE.WebGLRenderer: image is too big (\"+e.width+\"x\"+e.height+\"). Resized to \"+i.width+\"x\"+i.height,e),i}return e}function l(e){return fs.isPowerOfTwo(e.width)&&fs.isPowerOfTwo(e.height)}function u(e){if(e instanceof HTMLImageElement||e instanceof HTMLCanvasElement){var t=document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\");t.width=fs.nearestPowerOfTwo(e.width),t.height=fs.nearestPowerOfTwo(e.height);return t.getContext(\"2d\").drawImage(e,0,0,t.width,t.height),console.warn(\"THREE.WebGLRenderer: image is not power of two (\"+e.width+\"x\"+e.height+\"). Resized to \"+t.width+\"x\"+t.height,e),t}return e}function c(e){return e.wrapS!==la||e.wrapT!==la||e.minFilter!==ca&&e.minFilter!==fa}function d(t){return t===ca||t===da||t===ha?e.NEAREST:e.LINEAR}function h(e){var t=e.target;t.removeEventListener(\"dispose\",h),p(t),k.textures--}function f(e){var t=e.target;t.removeEventListener(\"dispose\",f),m(t),k.textures--}function p(t){var n=i.get(t);if(t.image&&n.__image__webglTextureCube)e.deleteTexture(n.__image__webglTextureCube);else{if(void 0===n.__webglInit)return;e.deleteTexture(n.__webglTexture)}i.delete(t)}function m(t){var n=i.get(t),r=i.get(t.texture);if(t){if(void 0!==r.__webglTexture&&e.deleteTexture(r.__webglTexture),t.depthTexture&&t.depthTexture.dispose(),t.isWebGLRenderTargetCube)for(var o=0;o<6;o++)e.deleteFramebuffer(n.__webglFramebuffer[o]),n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer[o]);else e.deleteFramebuffer(n.__webglFramebuffer),n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer);i.delete(t.texture),i.delete(t)}}function g(t,r){var o=i.get(t);if(t.version>0&&o.__version!==t.version){var a=t.image;if(void 0===a)console.warn(\"THREE.WebGLRenderer: Texture marked for update but image is undefined\",t);else{if(!1!==a.complete)return void _(o,t,r);console.warn(\"THREE.WebGLRenderer: Texture marked for update but image is incomplete\",t)}}n.activeTexture(e.TEXTURE0+r),n.bindTexture(e.TEXTURE_2D,o.__webglTexture)}function v(t,a){var u=i.get(t);if(6===t.image.length)if(t.version>0&&u.__version!==t.version){u.__image__webglTextureCube||(t.addEventListener(\"dispose\",h),u.__image__webglTextureCube=e.createTexture(),k.textures++),n.activeTexture(e.TEXTURE0+a),n.bindTexture(e.TEXTURE_CUBE_MAP,u.__image__webglTextureCube),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t.flipY);for(var c=t&&t.isCompressedTexture,d=t.image[0]&&t.image[0].isDataTexture,f=[],p=0;p<6;p++)f[p]=c||d?d?t.image[p].image:t.image[p]:s(t.image[p],r.maxCubemapSize);var m=f[0],g=l(m),v=o(t.format),y=o(t.type);b(e.TEXTURE_CUBE_MAP,t,g);for(var p=0;p<6;p++)if(c)for(var _,x=f[p].mipmaps,w=0,M=x.length;w-1?n.compressedTexImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+p,w,v,_.width,_.height,0,_.data):console.warn(\"THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()\"):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+p,w,v,_.width,_.height,0,v,y,_.data);else d?n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+p,0,v,f[p].width,f[p].height,0,v,y,f[p].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+p,0,v,v,y,f[p]);t.generateMipmaps&&g&&e.generateMipmap(e.TEXTURE_CUBE_MAP),u.__version=t.version,t.onUpdate&&t.onUpdate(t)}else n.activeTexture(e.TEXTURE0+a),n.bindTexture(e.TEXTURE_CUBE_MAP,u.__image__webglTextureCube)}function y(t,r){n.activeTexture(e.TEXTURE0+r),n.bindTexture(e.TEXTURE_CUBE_MAP,i.get(t).__webglTexture)}function b(n,a,s){var l;if(s?(e.texParameteri(n,e.TEXTURE_WRAP_S,o(a.wrapS)),e.texParameteri(n,e.TEXTURE_WRAP_T,o(a.wrapT)),e.texParameteri(n,e.TEXTURE_MAG_FILTER,o(a.magFilter)),e.texParameteri(n,e.TEXTURE_MIN_FILTER,o(a.minFilter))):(e.texParameteri(n,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(n,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),a.wrapS===la&&a.wrapT===la||console.warn(\"THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping.\",a),e.texParameteri(n,e.TEXTURE_MAG_FILTER,d(a.magFilter)),e.texParameteri(n,e.TEXTURE_MIN_FILTER,d(a.minFilter)),a.minFilter!==ca&&a.minFilter!==fa&&console.warn(\"THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.\",a)),l=t.get(\"EXT_texture_filter_anisotropic\")){if(a.type===wa&&null===t.get(\"OES_texture_float_linear\"))return;if(a.type===Ma&&null===t.get(\"OES_texture_half_float_linear\"))return;(a.anisotropy>1||i.get(a).__currentAnisotropy)&&(e.texParameterf(n,l.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,r.getMaxAnisotropy())),i.get(a).__currentAnisotropy=a.anisotropy)}}function _(t,i,a){void 0===t.__webglInit&&(t.__webglInit=!0,i.addEventListener(\"dispose\",h),t.__webglTexture=e.createTexture(),k.textures++),n.activeTexture(e.TEXTURE0+a),n.bindTexture(e.TEXTURE_2D,t.__webglTexture),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,i.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,i.unpackAlignment);var d=s(i.image,r.maxTextureSize);c(i)&&!1===l(d)&&(d=u(d));var f=l(d),p=o(i.format),m=o(i.type);b(e.TEXTURE_2D,i,f);var g,v=i.mipmaps;if(i.isDepthTexture){var y=e.DEPTH_COMPONENT;if(i.type===wa){if(!O)throw new Error(\"Float Depth Texture only supported in WebGL2.0\");y=e.DEPTH_COMPONENT32F}else O&&(y=e.DEPTH_COMPONENT16);i.format===Ia&&y===e.DEPTH_COMPONENT&&i.type!==ba&&i.type!==xa&&(console.warn(\"THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture.\"),i.type=ba,m=o(i.type)),i.format===Da&&(y=e.DEPTH_STENCIL,i.type!==ka&&(console.warn(\"THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture.\"),i.type=ka,m=o(i.type))),n.texImage2D(e.TEXTURE_2D,0,y,d.width,d.height,0,p,m,null)}else if(i.isDataTexture)if(v.length>0&&f){for(var _=0,x=v.length;_-1?n.compressedTexImage2D(e.TEXTURE_2D,_,p,g.width,g.height,0,g.data):console.warn(\"THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()\"):n.texImage2D(e.TEXTURE_2D,_,p,g.width,g.height,0,p,m,g.data);else if(v.length>0&&f){for(var _=0,x=v.length;_=1,ce=null,de={},he=new a,fe=new a,pe={};return pe[e.TEXTURE_2D]=s(e.TEXTURE_2D,e.TEXTURE_2D,1),pe[e.TEXTURE_CUBE_MAP]=s(e.TEXTURE_CUBE_MAP,e.TEXTURE_CUBE_MAP_POSITIVE_X,6),{buffers:{color:z,depth:F,stencil:j},init:l,initAttributes:u,enableAttribute:c,enableAttributeAndDivisor:d,disableUnusedAttributes:h,enable:f,disable:p,getCompressedTextureFormats:m,setBlending:g,setColorWrite:v,setDepthTest:y,setDepthWrite:b,setDepthFunc:_,setStencilTest:x,setStencilWrite:w,setStencilFunc:M,setStencilOp:S,setFlipSided:E,setCullFace:T,setLineWidth:k,setPolygonOffset:O,getScissorTest:C,setScissorTest:P,activeTexture:A,bindTexture:R,compressedTexImage2D:L,texImage2D:I,scissor:D,viewport:N,reset:B}}function st(e,t,n){function i(){if(void 0!==o)return o;var n=t.get(\"EXT_texture_filter_anisotropic\");return o=null!==n?e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0}function r(t){if(\"highp\"===t){if(e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).precision>0&&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\"}var o,a=void 0!==n.precision?n.precision:\"highp\",s=r(a);s!==a&&(console.warn(\"THREE.WebGLRenderer:\",a,\"not supported, using\",s,\"instead.\"),a=s);var l=!0===n.logarithmicDepthBuffer&&!!t.get(\"EXT_frag_depth\"),u=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),c=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),d=e.getParameter(e.MAX_TEXTURE_SIZE),h=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),f=e.getParameter(e.MAX_VERTEX_ATTRIBS),p=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),m=e.getParameter(e.MAX_VARYING_VECTORS),g=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),v=c>0,y=!!t.get(\"OES_texture_float\");return{getMaxAnisotropy:i,getMaxPrecision:r,precision:a,logarithmicDepthBuffer:l,maxTextures:u,maxVertexTextures:c,maxTextureSize:d,maxCubemapSize:h,maxAttributes:f,maxVertexUniforms:p,maxVaryings:m,maxFragmentUniforms:g,vertexTextures:v,floatFragmentTextures:y,floatVertexTextures:v&&y}}function lt(e){var t={};return{get:function(n){if(void 0!==t[n])return t[n];var i;switch(n){case\"WEBGL_depth_texture\":i=e.getExtension(\"WEBGL_depth_texture\")||e.getExtension(\"MOZ_WEBGL_depth_texture\")||e.getExtension(\"WEBKIT_WEBGL_depth_texture\");break;case\"EXT_texture_filter_anisotropic\":i=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\":i=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\":i=e.getExtension(\"WEBGL_compressed_texture_pvrtc\")||e.getExtension(\"WEBKIT_WEBGL_compressed_texture_pvrtc\");break;case\"WEBGL_compressed_texture_etc1\":i=e.getExtension(\"WEBGL_compressed_texture_etc1\");break;default:i=e.getExtension(n)}return null===i&&console.warn(\"THREE.WebGLRenderer: \"+n+\" extension not supported.\"),t[n]=i,i}}}function ut(){function e(){u.value!==i&&(u.value=i,u.needsUpdate=r>0),n.numPlanes=r,n.numIntersection=0}function t(e,t,i,r){var o=null!==e?e.length:0,a=null;if(0!==o){if(a=u.value,!0!==r||null===a){var c=i+4*o,d=t.matrixWorldInverse;l.getNormalMatrix(d),(null===a||a.length=0){var c=o[l];if(void 0!==c){var d=c.normalized,h=c.itemSize,f=dt.getAttributeProperties(c),p=f.__webglBuffer,m=f.type,g=f.bytesPerElement;if(c.isInterleavedBufferAttribute){var v=c.data,y=v.stride,b=c.offset;v&&v.isInstancedInterleavedBuffer?(et.enableAttributeAndDivisor(u,v.meshPerAttribute,r),void 0===n.maxInstancedCount&&(n.maxInstancedCount=v.meshPerAttribute*v.count)):et.enableAttribute(u),Ze.bindBuffer(Ze.ARRAY_BUFFER,p),Ze.vertexAttribPointer(u,h,m,d,y*g,(i*y+b)*g)}else c.isInstancedBufferAttribute?(et.enableAttributeAndDivisor(u,c.meshPerAttribute,r),void 0===n.maxInstancedCount&&(n.maxInstancedCount=c.meshPerAttribute*c.count)):et.enableAttribute(u),Ze.bindBuffer(Ze.ARRAY_BUFFER,p),Ze.vertexAttribPointer(u,h,m,d,0,i*h*g)}else if(void 0!==s){var _=s[l];if(void 0!==_)switch(_.length){case 2:Ze.vertexAttrib2fv(u,_);break;case 3:Ze.vertexAttrib3fv(u,_);break;case 4:Ze.vertexAttrib4fv(u,_);break;default:Ze.vertexAttrib1fv(u,_)}}}}et.disableUnusedAttributes()}function h(e,t){return Math.abs(t[0])-Math.abs(e[0])}function f(e,t){return e.object.renderOrder!==t.object.renderOrder?e.object.renderOrder-t.object.renderOrder:e.material.program&&t.material.program&&e.material.program!==t.material.program?e.material.program.id-t.material.program.id:e.material.id!==t.material.id?e.material.id-t.material.id:e.z!==t.z?e.z-t.z:e.id-t.id}function p(e,t){return e.object.renderOrder!==t.object.renderOrder?e.object.renderOrder-t.object.renderOrder:e.z!==t.z?t.z-e.z:e.id-t.id}function m(e,t,n,i,r){var o,a;n.transparent?(o=ie,a=++re):(o=ee,a=++te);var s=o[a];void 0!==s?(s.id=e.id,s.object=e,s.geometry=t,s.material=n,s.z=He.z,s.group=r):(s={id:e.id,object:e,geometry:t,material:n,z:He.z,group:r},o.push(s))}function g(e){var t=e.geometry;return null===t.boundingSphere&&t.computeBoundingSphere(),Ge.copy(t.boundingSphere).applyMatrix4(e.matrixWorld),y(Ge)}function v(e){return Ge.center.set(0,0,0),Ge.radius=.7071067811865476,Ge.applyMatrix4(e.matrixWorld),y(Ge)}function y(e){if(!Le.intersectsSphere(e))return!1;var t=De.numPlanes;if(0===t)return!0;var n=ce.clippingPlanes,i=e.center,r=-e.radius,o=0;do{if(n[o].distanceToPoint(i)=0&&e.numSupportedMorphTargets++}if(e.morphNormals){e.numSupportedMorphNormals=0;for(var h=0;h=0&&e.numSupportedMorphNormals++}var f=i.__webglShader.uniforms;(e.isShaderMaterial||e.isRawShaderMaterial)&&!0!==e.clipping||(i.numClippingPlanes=De.numPlanes,i.numIntersection=De.numIntersection,f.clippingPlanes=De.uniform),i.fog=t,i.lightsHash=Xe.hash,e.lights&&(f.ambientLightColor.value=Xe.ambient,f.directionalLights.value=Xe.directional,f.spotLights.value=Xe.spot,f.rectAreaLights.value=Xe.rectArea,f.pointLights.value=Xe.point,f.hemisphereLights.value=Xe.hemi,f.directionalShadowMap.value=Xe.directionalShadowMap,f.directionalShadowMatrix.value=Xe.directionalShadowMatrix,f.spotShadowMap.value=Xe.spotShadowMap,f.spotShadowMatrix.value=Xe.spotShadowMatrix,f.pointShadowMap.value=Xe.pointShadowMap,f.pointShadowMatrix.value=Xe.pointShadowMatrix);var p=i.program.getUniforms(),m=q.seqWithValue(p.seq,f);i.uniformsList=m}function w(e){e.side===lo?et.disable(Ze.CULL_FACE):et.enable(Ze.CULL_FACE),et.setFlipSided(e.side===so),!0===e.transparent?et.setBlending(e.blending,e.blendEquation,e.blendSrc,e.blendDst,e.blendEquationAlpha,e.blendSrcAlpha,e.blendDstAlpha,e.premultipliedAlpha):et.setBlending(mo),et.setDepthFunc(e.depthFunc),et.setDepthTest(e.depthTest),et.setDepthWrite(e.depthWrite),et.setColorWrite(e.colorWrite),et.setPolygonOffset(e.polygonOffset,e.polygonOffsetFactor,e.polygonOffsetUnits)}function M(e,t,n,i){xe=0;var r=nt.get(n);if(Ue&&(We||e!==ve)){var o=e===ve&&n.id===me;De.setState(n.clippingPlanes,n.clipIntersection,n.clipShadows,e,r,o)}!1===n.needsUpdate&&(void 0===r.program?n.needsUpdate=!0:n.fog&&r.fog!==t?n.needsUpdate=!0:n.lights&&r.lightsHash!==Xe.hash?n.needsUpdate=!0:void 0===r.numClippingPlanes||r.numClippingPlanes===De.numPlanes&&r.numIntersection===De.numIntersection||(n.needsUpdate=!0)),n.needsUpdate&&(x(n,t,i),n.needsUpdate=!1);var a=!1,s=!1,l=!1,u=r.program,c=u.getUniforms(),d=r.__webglShader.uniforms;if(u.id!==de&&(Ze.useProgram(u.program),de=u.id,a=!0,s=!0,l=!0),n.id!==me&&(me=n.id,s=!0),a||e!==ve){if(c.set(Ze,e,\"projectionMatrix\"),$e.logarithmicDepthBuffer&&c.setValue(Ze,\"logDepthBufFC\",2/(Math.log(e.far+1)/Math.LN2)),e!==ve&&(ve=e,s=!0,l=!0),n.isShaderMaterial||n.isMeshPhongMaterial||n.isMeshStandardMaterial||n.envMap){var h=c.map.cameraPosition;void 0!==h&&h.setValue(Ze,He.setFromMatrixPosition(e.matrixWorld))}(n.isMeshPhongMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial||n.skinning)&&c.setValue(Ze,\"viewMatrix\",e.matrixWorldInverse),c.set(Ze,ce,\"toneMappingExposure\"),c.set(Ze,ce,\"toneMappingWhitePoint\")}if(n.skinning){c.setOptional(Ze,i,\"bindMatrix\"),c.setOptional(Ze,i,\"bindMatrixInverse\");var f=i.skeleton;f&&($e.floatVertexTextures&&f.useVertexTexture?(c.set(Ze,f,\"boneTexture\"),c.set(Ze,f,\"boneTextureWidth\"),c.set(Ze,f,\"boneTextureHeight\")):c.setOptional(Ze,f,\"boneMatrices\"))}return s&&(n.lights&&D(d,l),t&&n.fog&&O(d,t),(n.isMeshBasicMaterial||n.isMeshLambertMaterial||n.isMeshPhongMaterial||n.isMeshStandardMaterial||n.isMeshNormalMaterial||n.isMeshDepthMaterial)&&S(d,n),n.isLineBasicMaterial?E(d,n):n.isLineDashedMaterial?(E(d,n),T(d,n)):n.isPointsMaterial?k(d,n):n.isMeshLambertMaterial?C(d,n):n.isMeshToonMaterial?A(d,n):n.isMeshPhongMaterial?P(d,n):n.isMeshPhysicalMaterial?L(d,n):n.isMeshStandardMaterial?R(d,n):n.isMeshDepthMaterial?n.displacementMap&&(d.displacementMap.value=n.displacementMap,d.displacementScale.value=n.displacementScale,d.displacementBias.value=n.displacementBias):n.isMeshNormalMaterial&&I(d,n),void 0!==d.ltcMat&&(d.ltcMat.value=THREE.UniformsLib.LTC_MAT_TEXTURE),void 0!==d.ltcMag&&(d.ltcMag.value=THREE.UniformsLib.LTC_MAG_TEXTURE),q.upload(Ze,r.uniformsList,d,ce)),c.set(Ze,i,\"modelViewMatrix\"),c.set(Ze,i,\"normalMatrix\"),c.setValue(Ze,\"modelMatrix\",i.matrixWorld),u}function S(e,t){e.opacity.value=t.opacity,e.diffuse.value=t.color,t.emissive&&e.emissive.value.copy(t.emissive).multiplyScalar(t.emissiveIntensity),e.map.value=t.map,e.specularMap.value=t.specularMap,e.alphaMap.value=t.alphaMap,t.lightMap&&(e.lightMap.value=t.lightMap,e.lightMapIntensity.value=t.lightMapIntensity),t.aoMap&&(e.aoMap.value=t.aoMap,e.aoMapIntensity.value=t.aoMapIntensity);var n;if(t.map?n=t.map:t.specularMap?n=t.specularMap:t.displacementMap?n=t.displacementMap:t.normalMap?n=t.normalMap:t.bumpMap?n=t.bumpMap:t.roughnessMap?n=t.roughnessMap:t.metalnessMap?n=t.metalnessMap:t.alphaMap?n=t.alphaMap:t.emissiveMap&&(n=t.emissiveMap),void 0!==n){n.isWebGLRenderTarget&&(n=n.texture);var i=n.offset,r=n.repeat;e.offsetRepeat.value.set(i.x,i.y,r.x,r.y)}e.envMap.value=t.envMap,e.flipEnvMap.value=t.envMap&&t.envMap.isCubeTexture?-1:1,e.reflectivity.value=t.reflectivity,e.refractionRatio.value=t.refractionRatio}function E(e,t){e.diffuse.value=t.color,e.opacity.value=t.opacity}function T(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function k(e,t){if(e.diffuse.value=t.color,e.opacity.value=t.opacity,e.size.value=t.size*Te,e.scale.value=.5*Ee,e.map.value=t.map,null!==t.map){var n=t.map.offset,i=t.map.repeat;e.offsetRepeat.value.set(n.x,n.y,i.x,i.y)}}function O(e,t){e.fogColor.value=t.color,t.isFog?(e.fogNear.value=t.near,e.fogFar.value=t.far):t.isFogExp2&&(e.fogDensity.value=t.density)}function C(e,t){t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap)}function P(e,t){e.specular.value=t.specular,e.shininess.value=Math.max(t.shininess,1e-4),t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale)),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}function A(e,t){P(e,t),t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function R(e,t){e.roughness.value=t.roughness,e.metalness.value=t.metalness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap),t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap),t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale)),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}function L(e,t){e.clearCoat.value=t.clearCoat,e.clearCoatRoughness.value=t.clearCoatRoughness,R(e,t)}function I(e,t){t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale)),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}function D(e,t){e.ambientLightColor.needsUpdate=t,e.directionalLights.needsUpdate=t,e.pointLights.needsUpdate=t,e.spotLights.needsUpdate=t,e.rectAreaLights.needsUpdate=t,e.hemisphereLights.needsUpdate=t}function N(e){for(var t=0,n=0,i=e.length;n=$e.maxTextures&&console.warn(\"WebGLRenderer: trying to use \"+e+\" texture units while this GPU supports only \"+$e.maxTextures),xe+=1,e}function F(e){var t;if(e===sa)return Ze.REPEAT;if(e===la)return Ze.CLAMP_TO_EDGE;if(e===ua)return Ze.MIRRORED_REPEAT;if(e===ca)return Ze.NEAREST;if(e===da)return Ze.NEAREST_MIPMAP_NEAREST;if(e===ha)return Ze.NEAREST_MIPMAP_LINEAR;if(e===fa)return Ze.LINEAR;if(e===pa)return Ze.LINEAR_MIPMAP_NEAREST;if(e===ma)return Ze.LINEAR_MIPMAP_LINEAR;if(e===ga)return Ze.UNSIGNED_BYTE;if(e===Sa)return Ze.UNSIGNED_SHORT_4_4_4_4;if(e===Ea)return Ze.UNSIGNED_SHORT_5_5_5_1;if(e===Ta)return Ze.UNSIGNED_SHORT_5_6_5;if(e===va)return Ze.BYTE;if(e===ya)return Ze.SHORT;if(e===ba)return Ze.UNSIGNED_SHORT;if(e===_a)return Ze.INT;if(e===xa)return Ze.UNSIGNED_INT;if(e===wa)return Ze.FLOAT;if(e===Ma&&null!==(t=Qe.get(\"OES_texture_half_float\")))return t.HALF_FLOAT_OES;if(e===Oa)return Ze.ALPHA;if(e===Ca)return Ze.RGB;if(e===Pa)return Ze.RGBA;if(e===Aa)return Ze.LUMINANCE;if(e===Ra)return Ze.LUMINANCE_ALPHA;if(e===Ia)return Ze.DEPTH_COMPONENT;if(e===Da)return Ze.DEPTH_STENCIL;if(e===xo)return Ze.FUNC_ADD;if(e===wo)return Ze.FUNC_SUBTRACT;if(e===Mo)return Ze.FUNC_REVERSE_SUBTRACT;if(e===To)return Ze.ZERO;if(e===ko)return Ze.ONE;if(e===Oo)return Ze.SRC_COLOR;if(e===Co)return Ze.ONE_MINUS_SRC_COLOR;if(e===Po)return Ze.SRC_ALPHA;if(e===Ao)return Ze.ONE_MINUS_SRC_ALPHA;if(e===Ro)return Ze.DST_ALPHA;if(e===Lo)return Ze.ONE_MINUS_DST_ALPHA;if(e===Io)return Ze.DST_COLOR;if(e===Do)return Ze.ONE_MINUS_DST_COLOR;if(e===No)return Ze.SRC_ALPHA_SATURATE;if((e===Na||e===Ba||e===za||e===Fa)&&null!==(t=Qe.get(\"WEBGL_compressed_texture_s3tc\"))){if(e===Na)return t.COMPRESSED_RGB_S3TC_DXT1_EXT;if(e===Ba)return t.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(e===za)return t.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(e===Fa)return t.COMPRESSED_RGBA_S3TC_DXT5_EXT}if((e===ja||e===Ua||e===Wa||e===Ga)&&null!==(t=Qe.get(\"WEBGL_compressed_texture_pvrtc\"))){if(e===ja)return t.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(e===Ua)return t.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(e===Wa)return t.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(e===Ga)return t.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(e===Va&&null!==(t=Qe.get(\"WEBGL_compressed_texture_etc1\")))return t.COMPRESSED_RGB_ETC1_WEBGL;if((e===So||e===Eo)&&null!==(t=Qe.get(\"EXT_blend_minmax\"))){if(e===So)return t.MIN_EXT;if(e===Eo)return t.MAX_EXT}return e===ka&&null!==(t=Qe.get(\"WEBGL_depth_texture\"))?t.UNSIGNED_INT_24_8_WEBGL:0}console.log(\"THREE.WebGLRenderer\",Kr),e=e||{};var j=void 0!==e.canvas?e.canvas:document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\"),U=void 0!==e.context?e.context:null,W=void 0!==e.alpha&&e.alpha,G=void 0===e.depth||e.depth,V=void 0===e.stencil||e.stencil,H=void 0!==e.antialias&&e.antialias,X=void 0===e.premultipliedAlpha||e.premultipliedAlpha,K=void 0!==e.preserveDrawingBuffer&&e.preserveDrawingBuffer,Q=[],ee=[],te=-1,ie=[],re=-1,se=new Float32Array(8),le=[],ue=[];this.domElement=j,this.context=null,this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.gammaInput=!1,this.gammaOutput=!1,this.physicallyCorrectLights=!1,this.toneMapping=Ko,this.toneMappingExposure=1,this.toneMappingWhitePoint=1,this.maxMorphTargets=8,this.maxMorphNormals=4;var ce=this,de=null,he=null,fe=null,me=-1,ge=\"\",ve=null,ye=new a,be=null,_e=new a,xe=0,we=new Y(0),Me=0,Se=j.width,Ee=j.height,Te=1,ke=new a(0,0,Se,Ee),Oe=!1,Ae=new a(0,0,Se,Ee),Le=new oe,De=new ut,Ue=!1,We=!1,Ge=new ne,Ve=new d,He=new c,qe=new d,Ye=new d,Xe={hash:\"\",ambient:[0,0,0],directional:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],point:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],shadows:[]},Ke={calls:0,vertices:0,faces:0,points:0};this.info={render:Ke,memory:{geometries:0,textures:0},programs:null};var Ze;try{var Je={alpha:W,depth:G,stencil:V,antialias:H,premultipliedAlpha:X,preserveDrawingBuffer:K};if(null===(Ze=U||j.getContext(\"webgl\",Je)||j.getContext(\"experimental-webgl\",Je)))throw null!==j.getContext(\"webgl\")?\"Error creating WebGL context with your selected attributes.\":\"Error creating WebGL context.\";void 0===Ze.getShaderPrecisionFormat&&(Ze.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}}),j.addEventListener(\"webglcontextlost\",r,!1)}catch(e){console.error(\"THREE.WebGLRenderer: \"+e)}var Qe=new lt(Ze);Qe.get(\"WEBGL_depth_texture\"),Qe.get(\"OES_texture_float\"),Qe.get(\"OES_texture_float_linear\"),Qe.get(\"OES_texture_half_float\"),Qe.get(\"OES_texture_half_float_linear\"),Qe.get(\"OES_standard_derivatives\"),Qe.get(\"ANGLE_instanced_arrays\"),Qe.get(\"OES_element_index_uint\")&&(Ce.MaxIndex=4294967296);var $e=new st(Ze,Qe,e),et=new at(Ze,Qe,F),nt=new ot,ct=new rt(Ze,Qe,et,nt,$e,F,this.info),dt=new it(Ze,nt,this.info),ht=new tt(this,$e),ft=new je;this.info.programs=ht.programs;var pt,mt,gt,vt,yt=new Fe(Ze,Qe,Ke),bt=new ze(Ze,Qe,Ke);n(),this.context=Ze,this.capabilities=$e,this.extensions=Qe,this.properties=nt,this.state=et;var _t=new ae(this,Xe,dt,$e);this.shadowMap=_t;var xt=new J(this,le),wt=new Z(this,ue);this.getContext=function(){return Ze},this.getContextAttributes=function(){return Ze.getContextAttributes()},this.forceContextLoss=function(){Qe.get(\"WEBGL_lose_context\").loseContext()},this.getMaxAnisotropy=function(){return $e.getMaxAnisotropy()},this.getPrecision=function(){return $e.precision},this.getPixelRatio=function(){return Te},this.setPixelRatio=function(e){void 0!==e&&(Te=e,this.setSize(Ae.z,Ae.w,!1))},this.getSize=function(){return{width:Se,height:Ee}},this.setSize=function(e,t,n){Se=e,Ee=t,j.width=e*Te,j.height=t*Te,!1!==n&&(j.style.width=e+\"px\",j.style.height=t+\"px\"),this.setViewport(0,0,e,t)},this.setViewport=function(e,t,n,i){et.viewport(Ae.set(e,t,n,i))},this.setScissor=function(e,t,n,i){et.scissor(ke.set(e,t,n,i))},this.setScissorTest=function(e){et.setScissorTest(Oe=e)},this.getClearColor=function(){return we},this.setClearColor=function(e,t){we.set(e),Me=void 0!==t?t:1,et.buffers.color.setClear(we.r,we.g,we.b,Me,X)},this.getClearAlpha=function(){return Me},this.setClearAlpha=function(e){Me=e,et.buffers.color.setClear(we.r,we.g,we.b,Me,X)},this.clear=function(e,t,n){var i=0;(void 0===e||e)&&(i|=Ze.COLOR_BUFFER_BIT),(void 0===t||t)&&(i|=Ze.DEPTH_BUFFER_BIT),(void 0===n||n)&&(i|=Ze.STENCIL_BUFFER_BIT),Ze.clear(i)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.clearTarget=function(e,t,n,i){this.setRenderTarget(e),this.clear(t,n,i)},this.resetGLState=i,this.dispose=function(){ie=[],re=-1,ee=[],te=-1,j.removeEventListener(\"webglcontextlost\",r,!1)},this.renderBufferImmediate=function(e,t,n){et.initAttributes();var i=nt.get(e);e.hasPositions&&!i.position&&(i.position=Ze.createBuffer()),e.hasNormals&&!i.normal&&(i.normal=Ze.createBuffer()),e.hasUvs&&!i.uv&&(i.uv=Ze.createBuffer()),e.hasColors&&!i.color&&(i.color=Ze.createBuffer());var r=t.getAttributes();if(e.hasPositions&&(Ze.bindBuffer(Ze.ARRAY_BUFFER,i.position),Ze.bufferData(Ze.ARRAY_BUFFER,e.positionArray,Ze.DYNAMIC_DRAW),et.enableAttribute(r.position),Ze.vertexAttribPointer(r.position,3,Ze.FLOAT,!1,0,0)),e.hasNormals){if(Ze.bindBuffer(Ze.ARRAY_BUFFER,i.normal),!n.isMeshPhongMaterial&&!n.isMeshStandardMaterial&&!n.isMeshNormalMaterial&&n.shading===uo)for(var o=0,a=3*e.count;o8&&(f.length=8);for(var v=i.morphAttributes,p=0,m=f.length;p0&&S.renderInstances(i,P,R):S.render(P,R)}},this.render=function(e,t,n,i){if(void 0!==t&&!0!==t.isCamera)return void console.error(\"THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.\");ge=\"\",me=-1,ve=null,!0===e.autoUpdate&&e.updateMatrixWorld(),null===t.parent&&t.updateMatrixWorld(),t.matrixWorldInverse.getInverse(t.matrixWorld),Ve.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),Le.setFromMatrix(Ve),Q.length=0,te=-1,re=-1,le.length=0,ue.length=0,We=this.localClippingEnabled,Ue=De.init(this.clippingPlanes,We,t),b(e,t),ee.length=te+1,ie.length=re+1,!0===ce.sortObjects&&(ee.sort(f),ie.sort(p)),Ue&&De.beginShadows(),N(Q),_t.render(e,t),B(Q,t),Ue&&De.endShadows(),Ke.calls=0,Ke.vertices=0,Ke.faces=0,Ke.points=0,void 0===n&&(n=null),this.setRenderTarget(n);var r=e.background;if(null===r?et.buffers.color.setClear(we.r,we.g,we.b,Me,X):r&&r.isColor&&(et.buffers.color.setClear(r.r,r.g,r.b,1,X),i=!0),(this.autoClear||i)&&this.clear(this.autoClearColor,this.autoClearDepth,this.autoClearStencil),r&&r.isCubeTexture?(void 0===gt&&(gt=new Ne,vt=new Pe(new Re(5,5,5),new $({uniforms:Ss.cube.uniforms,vertexShader:Ss.cube.vertexShader,fragmentShader:Ss.cube.fragmentShader,side:so,depthTest:!1,depthWrite:!1,fog:!1}))),gt.projectionMatrix.copy(t.projectionMatrix),gt.matrixWorld.extractRotation(t.matrixWorld),gt.matrixWorldInverse.getInverse(gt.matrixWorld),vt.material.uniforms.tCube.value=r,vt.modelViewMatrix.multiplyMatrices(gt.matrixWorldInverse,vt.matrixWorld),dt.update(vt),ce.renderBufferDirect(gt,null,vt.geometry,vt.material,vt,null)):r&&r.isTexture&&(void 0===pt&&(pt=new Be(-1,1,1,-1,0,1),mt=new Pe(new Ie(2,2),new pe({depthTest:!1,depthWrite:!1,fog:!1}))),mt.material.map=r,dt.update(mt),ce.renderBufferDirect(pt,null,mt.geometry,mt.material,mt,null)),e.overrideMaterial){var o=e.overrideMaterial;_(ee,e,t,o),_(ie,e,t,o)}else et.setBlending(mo),_(ee,e,t),_(ie,e,t);xt.render(e,t),wt.render(e,t,_e),n&&ct.updateRenderTargetMipmap(n),et.setDepthTest(!0),et.setDepthWrite(!0),et.setColorWrite(!0)},this.setFaceCulling=function(e,t){et.setCullFace(e),et.setFlipSided(t===to)},this.allocTextureUnit=z,this.setTexture2D=function(){var e=!1;return function(t,n){t&&t.isWebGLRenderTarget&&(e||(console.warn(\"THREE.WebGLRenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead.\"),e=!0),t=t.texture),ct.setTexture2D(t,n)}}(),this.setTexture=function(){var e=!1;return function(t,n){e||(console.warn(\"THREE.WebGLRenderer: .setTexture is deprecated, use setTexture2D instead.\"),e=!0),ct.setTexture2D(t,n)}}(),this.setTextureCube=function(){var e=!1;return function(t,n){t&&t.isWebGLRenderTargetCube&&(e||(console.warn(\"THREE.WebGLRenderer.setTextureCube: don't use cube render targets as textures. Use their .texture property instead.\"),e=!0),t=t.texture),t&&t.isCubeTexture||Array.isArray(t.image)&&6===t.image.length?ct.setTextureCube(t,n):ct.setTextureCubeDynamic(t,n)}}(),this.getCurrentRenderTarget=function(){return he},this.setRenderTarget=function(e){he=e,e&&void 0===nt.get(e).__webglFramebuffer&&ct.setupRenderTarget(e);var t,n=e&&e.isWebGLRenderTargetCube;if(e){var i=nt.get(e);t=n?i.__webglFramebuffer[e.activeCubeFace]:i.__webglFramebuffer,ye.copy(e.scissor),be=e.scissorTest,_e.copy(e.viewport)}else t=null,ye.copy(ke).multiplyScalar(Te),be=Oe,_e.copy(Ae).multiplyScalar(Te);if(fe!==t&&(Ze.bindFramebuffer(Ze.FRAMEBUFFER,t),fe=t),et.scissor(ye),et.setScissorTest(be),et.viewport(_e),n){var r=nt.get(e.texture);Ze.framebufferTexture2D(Ze.FRAMEBUFFER,Ze.COLOR_ATTACHMENT0,Ze.TEXTURE_CUBE_MAP_POSITIVE_X+e.activeCubeFace,r.__webglTexture,e.activeMipMapLevel)}},this.readRenderTargetPixels=function(e,t,n,i,r,o){if(!1===(e&&e.isWebGLRenderTarget))return void console.error(\"THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.\");var a=nt.get(e).__webglFramebuffer;if(a){var s=!1;a!==fe&&(Ze.bindFramebuffer(Ze.FRAMEBUFFER,a),s=!0);try{var l=e.texture,u=l.format,c=l.type;if(u!==Pa&&F(u)!==Ze.getParameter(Ze.IMPLEMENTATION_COLOR_READ_FORMAT))return void console.error(\"THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.\");if(!(c===ga||F(c)===Ze.getParameter(Ze.IMPLEMENTATION_COLOR_READ_TYPE)||c===wa&&(Qe.get(\"OES_texture_float\")||Qe.get(\"WEBGL_color_buffer_float\"))||c===Ma&&Qe.get(\"EXT_color_buffer_half_float\")))return void console.error(\"THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.\");Ze.checkFramebufferStatus(Ze.FRAMEBUFFER)===Ze.FRAMEBUFFER_COMPLETE?t>=0&&t<=e.width-i&&n>=0&&n<=e.height-r&&Ze.readPixels(t,n,i,r,F(u),F(c),o):console.error(\"THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.\")}finally{s&&Ze.bindFramebuffer(Ze.FRAMEBUFFER,fe)}}}}function dt(e,t){this.name=\"\",this.color=new Y(e),this.density=void 0!==t?t:25e-5}function ht(e,t,n){this.name=\"\",this.color=new Y(e),this.near=void 0!==t?t:1,this.far=void 0!==n?n:1e3}function ft(){ce.call(this),this.type=\"Scene\",this.background=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0}function pt(e,t,n,i,r){ce.call(this),this.lensFlares=[],this.positionScreen=new c,this.customUpdateCallback=void 0,void 0!==e&&this.add(e,t,n,i,r)}function mt(e){Q.call(this),this.type=\"SpriteMaterial\",this.color=new Y(16777215),this.map=null,this.rotation=0,this.fog=!1,this.lights=!1,this.setValues(e)}function gt(e){ce.call(this),this.type=\"Sprite\",this.material=void 0!==e?e:new mt}function vt(){ce.call(this),this.type=\"LOD\",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}})}function yt(e,t,n){if(this.useVertexTexture=void 0===n||n,this.identityMatrix=new d,e=e||[],this.bones=e.slice(0),this.useVertexTexture){var i=Math.sqrt(4*this.bones.length);i=fs.nextPowerOfTwo(Math.ceil(i)),i=Math.max(i,4),this.boneTextureWidth=i,this.boneTextureHeight=i,this.boneMatrices=new Float32Array(this.boneTextureWidth*this.boneTextureHeight*4),this.boneTexture=new X(this.boneMatrices,this.boneTextureWidth,this.boneTextureHeight,Pa,wa)}else this.boneMatrices=new Float32Array(16*this.bones.length);if(void 0===t)this.calculateInverses();else if(this.bones.length===t.length)this.boneInverses=t.slice(0);else{console.warn(\"THREE.Skeleton bonInverses is the wrong length.\"),this.boneInverses=[];for(var r=0,o=this.bones.length;r=e.HAVE_CURRENT_DATA&&(d.needsUpdate=!0)}o.call(this,e,t,n,i,r,a,s,l,u),this.generateMipmaps=!1;var d=this;c()}function Ot(e,t,n,i,r,a,s,l,u,c,d,h){o.call(this,null,a,s,l,u,c,i,r,d,h),this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}function Ct(e,t,n,i,r,a,s,l,u){o.call(this,e,t,n,i,r,a,s,l,u),this.needsUpdate=!0}function Pt(e,t,n,i,r,a,s,l,u,c){if((c=void 0!==c?c:Ia)!==Ia&&c!==Da)throw new Error(\"DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat\");void 0===n&&c===Ia&&(n=ba),void 0===n&&c===Da&&(n=ka),o.call(this,null,i,r,a,s,l,c,n,u),this.image={width:e,height:t},this.magFilter=void 0!==s?s:ca,this.minFilter=void 0!==l?l:ca,this.flipY=!1,this.generateMipmaps=!1}function At(e){function t(e,t){return e-t}Ce.call(this),this.type=\"WireframeGeometry\";var n,i,r,o,a,s,l,u,d=[],h=[0,0],f={},p=[\"a\",\"b\",\"c\"];if(e&&e.isGeometry){var m=e.faces;for(n=0,r=m.length;n.9&&o<.1&&(t<.2&&(m[e+0]+=1),n<.2&&(m[e+2]+=1),i<.2&&(m[e+4]+=1))}}function s(e){p.push(e.x,e.y,e.z)}function l(t,n){var i=3*t;n.x=e[i+0],n.y=e[i+1],n.z=e[i+2]}function u(){for(var e=new c,t=new c,n=new c,i=new c,o=new r,a=new r,s=new r,l=0,u=0;l0)&&m.push(w,M,E),(l!==n-1||u0&&u(!0),t>0&&u(!1)),this.setIndex(h),this.addAttribute(\"position\",new Me(f,3)),this.addAttribute(\"normal\",new Me(p,3)),this.addAttribute(\"uv\",new Me(m,2))}function cn(e,t,n,i,r,o,a){ln.call(this,0,e,t,n,i,r,o,a),this.type=\"ConeGeometry\",this.parameters={radius:e,height:t,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:o,thetaLength:a}}function dn(e,t,n,i,r,o,a){un.call(this,0,e,t,n,i,r,o,a),this.type=\"ConeBufferGeometry\",this.parameters={radius:e,height:t,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:o,thetaLength:a}}function hn(e,t,n,i){Oe.call(this),this.type=\"CircleGeometry\",this.parameters={radius:e,segments:t,thetaStart:n,thetaLength:i},this.fromBufferGeometry(new fn(e,t,n,i))}function fn(e,t,n,i){Ce.call(this),this.type=\"CircleBufferGeometry\",this.parameters={radius:e,segments:t,thetaStart:n,thetaLength:i},e=e||50,t=void 0!==t?Math.max(3,t):8,n=void 0!==n?n:0,i=void 0!==i?i:2*Math.PI;var o,a,s=[],l=[],u=[],d=[],h=new c,f=new r;for(l.push(0,0,0),u.push(0,0,1),d.push(.5,.5),a=0,o=3;a<=t;a++,o+=3){var p=n+a/t*i;h.x=e*Math.cos(p),h.y=e*Math.sin(p),l.push(h.x,h.y,h.z),u.push(0,0,1),f.x=(l[o]/e+1)/2,f.y=(l[o+1]/e+1)/2,d.push(f.x,f.y)}for(o=1;o<=t;o++)s.push(o,o+1,0);this.setIndex(s),this.addAttribute(\"position\",new Me(l,3)),this.addAttribute(\"normal\",new Me(u,3)),this.addAttribute(\"uv\",new Me(d,2))}function pn(){$.call(this,{uniforms:_s.merge([Ms.lights,{opacity:{value:1}}]),vertexShader:xs.shadow_vert,fragmentShader:xs.shadow_frag}),this.lights=!0,this.transparent=!0,Object.defineProperties(this,{opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(e){this.uniforms.opacity.value=e}}})}function mn(e){$.call(this,e),this.type=\"RawShaderMaterial\"}function gn(e){this.uuid=fs.generateUUID(),this.type=\"MultiMaterial\",this.materials=Array.isArray(e)?e:[],this.visible=!0}function vn(e){Q.call(this),this.defines={STANDARD:\"\"},this.type=\"MeshStandardMaterial\",this.color=new Y(16777215),this.roughness=.5,this.metalness=.5,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Y(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=\"round\",this.wireframeLinejoin=\"round\",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(e)}function yn(e){vn.call(this),this.defines={PHYSICAL:\"\"},this.type=\"MeshPhysicalMaterial\",this.reflectivity=.5,this.clearCoat=0,this.clearCoatRoughness=0,this.setValues(e)}function bn(e){Q.call(this),this.type=\"MeshPhongMaterial\",this.color=new Y(16777215),this.specular=new Y(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Y(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Ho,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=\"round\",this.wireframeLinejoin=\"round\",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(e)}function _n(e){bn.call(this),this.defines={TOON:\"\"},this.type=\"MeshToonMaterial\",this.gradientMap=null,this.setValues(e)}function xn(e){Q.call(this,e),this.type=\"MeshNormalMaterial\",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(e)}function wn(e){Q.call(this),this.type=\"MeshLambertMaterial\",this.color=new Y(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Y(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Ho,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=\"round\",this.wireframeLinejoin=\"round\",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(e)}function Mn(e){Q.call(this),this.type=\"LineDashedMaterial\",this.color=new Y(16777215),this.linewidth=1,this.scale=1,this.dashSize=3,this.gapSize=1,this.lights=!1,this.setValues(e)}function Sn(e,t,n){var i=this,r=!1,o=0,a=0;this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(e){a++,!1===r&&void 0!==i.onStart&&i.onStart(e,o,a),r=!0},this.itemEnd=function(e){o++,void 0!==i.onProgress&&i.onProgress(e,o,a),o===a&&(r=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(e){void 0!==i.onError&&i.onError(e)}}function En(e){this.manager=void 0!==e?e:Ls}function Tn(e){this.manager=void 0!==e?e:Ls,this._parser=null}function kn(e){this.manager=void 0!==e?e:Ls,this._parser=null}function On(e){this.manager=void 0!==e?e:Ls}function Cn(e){this.manager=void 0!==e?e:Ls}function Pn(e){this.manager=void 0!==e?e:Ls}function An(e,t){ce.call(this),this.type=\"Light\",this.color=new Y(e),this.intensity=void 0!==t?t:1,this.receiveShadow=void 0}function Rn(e,t,n){An.call(this,e,n),this.type=\"HemisphereLight\",this.castShadow=void 0,this.position.copy(ce.DefaultUp),this.updateMatrix(),this.groundColor=new Y(t)}function Ln(e){this.camera=e,this.bias=0,this.radius=1,this.mapSize=new r(512,512),this.map=null,this.matrix=new d}function In(){Ln.call(this,new Ne(50,1,.5,500))}function Dn(e,t,n,i,r,o){An.call(this,e,t),this.type=\"SpotLight\",this.position.copy(ce.DefaultUp),this.updateMatrix(),this.target=new ce,Object.defineProperty(this,\"power\",{get:function(){return this.intensity*Math.PI},set:function(e){this.intensity=e/Math.PI}}),this.distance=void 0!==n?n:0,this.angle=void 0!==i?i:Math.PI/3,this.penumbra=void 0!==r?r:0,this.decay=void 0!==o?o:1,this.shadow=new In}function Nn(e,t,n,i){An.call(this,e,t),this.type=\"PointLight\",Object.defineProperty(this,\"power\",{get:function(){return 4*this.intensity*Math.PI},set:function(e){this.intensity=e/(4*Math.PI)}}),this.distance=void 0!==n?n:0,this.decay=void 0!==i?i:1,this.shadow=new Ln(new Ne(90,1,.5,500))}function Bn(){Ln.call(this,new Be(-5,5,5,-5,.5,500))}function zn(e,t){An.call(this,e,t),this.type=\"DirectionalLight\",this.position.copy(ce.DefaultUp),this.updateMatrix(),this.target=new ce,this.shadow=new Bn}function Fn(e,t){An.call(this,e,t),this.type=\"AmbientLight\",this.castShadow=void 0}function jn(e,t,n,i){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new t.constructor(n),this.sampleValues=t,this.valueSize=n}function Un(e,t,n,i){jn.call(this,e,t,n,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0}function Wn(e,t,n,i){jn.call(this,e,t,n,i)}function Gn(e,t,n,i){jn.call(this,e,t,n,i)}function Vn(e,t,n,i){if(void 0===e)throw new Error(\"track name is undefined\");if(void 0===t||0===t.length)throw new Error(\"no keyframes in track named \"+e);this.name=e,this.times=Is.convertArray(t,this.TimeBufferType),this.values=Is.convertArray(n,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation),this.validate(),this.optimize()}function Hn(e,t,n,i){Vn.call(this,e,t,n,i)}function qn(e,t,n,i){jn.call(this,e,t,n,i)}function Yn(e,t,n,i){Vn.call(this,e,t,n,i)}function Xn(e,t,n,i){Vn.call(this,e,t,n,i)}function Kn(e,t,n,i){Vn.call(this,e,t,n,i)}function Zn(e,t,n){Vn.call(this,e,t,n)}function Jn(e,t,n,i){Vn.call(this,e,t,n,i)}function Qn(e,t,n,i){Vn.apply(this,arguments)}function $n(e,t,n){this.name=e,this.tracks=n,this.duration=void 0!==t?t:-1,this.uuid=fs.generateUUID(),this.duration<0&&this.resetDuration(),this.optimize()}function ei(e){this.manager=void 0!==e?e:Ls,this.textures={}}function ti(e){this.manager=void 0!==e?e:Ls}function ni(){this.onLoadStart=function(){},this.onLoadProgress=function(){},this.onLoadComplete=function(){}}function ii(e){\"boolean\"==typeof e&&(console.warn(\"THREE.JSONLoader: showStatus parameter has been removed from constructor.\"),e=void 0),this.manager=void 0!==e?e:Ls,this.withCredentials=!1}function ri(e){this.manager=void 0!==e?e:Ls,this.texturePath=\"\"}function oi(e,t,n,i,r){var o=.5*(i-t),a=.5*(r-n),s=e*e;return(2*n-2*i+o+a)*(e*s)+(-3*n+3*i-2*o-a)*s+o*e+n}function ai(e,t){var n=1-e;return n*n*t}function si(e,t){return 2*(1-e)*e*t}function li(e,t){return e*e*t}function ui(e,t,n,i){return ai(e,t)+si(e,n)+li(e,i)}function ci(e,t){var n=1-e;return n*n*n*t}function di(e,t){var n=1-e;return 3*n*n*e*t}function hi(e,t){return 3*(1-e)*e*e*t}function fi(e,t){return e*e*e*t}function pi(e,t,n,i,r){return ci(e,t)+di(e,n)+hi(e,i)+fi(e,r)}function mi(){}function gi(e,t){this.v1=e,this.v2=t}function vi(){this.curves=[],this.autoClose=!1}function yi(e,t,n,i,r,o,a,s){this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=i,this.aStartAngle=r,this.aEndAngle=o,this.aClockwise=a,this.aRotation=s||0}function bi(e){this.points=void 0===e?[]:e}function _i(e,t,n,i){this.v0=e,this.v1=t,this.v2=n,this.v3=i}function xi(e,t,n){this.v0=e,this.v1=t,this.v2=n}function wi(e){vi.call(this),this.currentPoint=new r,e&&this.fromPoints(e)}function Mi(){wi.apply(this,arguments),this.holes=[]}function Si(){this.subPaths=[],this.currentPath=null}function Ei(e){this.data=e}function Ti(e){this.manager=void 0!==e?e:Ls}function ki(e){this.manager=void 0!==e?e:Ls}function Oi(e,t,n,i){An.call(this,e,t),this.type=\"RectAreaLight\",this.position.set(0,1,0),this.updateMatrix(),this.width=void 0!==n?n:10,this.height=void 0!==i?i:10}function Ci(){this.type=\"StereoCamera\",this.aspect=1,this.eyeSep=.064,this.cameraL=new Ne,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Ne,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1}function Pi(e,t,n){ce.call(this),this.type=\"CubeCamera\";var i=new Ne(90,1,e,t);i.up.set(0,-1,0),i.lookAt(new c(1,0,0)),this.add(i);var r=new Ne(90,1,e,t);r.up.set(0,-1,0),r.lookAt(new c(-1,0,0)),this.add(r);var o=new Ne(90,1,e,t);o.up.set(0,0,1),o.lookAt(new c(0,1,0)),this.add(o);var a=new Ne(90,1,e,t);a.up.set(0,0,-1),a.lookAt(new c(0,-1,0)),this.add(a);var s=new Ne(90,1,e,t);s.up.set(0,-1,0),s.lookAt(new c(0,0,1)),this.add(s);var u=new Ne(90,1,e,t);u.up.set(0,-1,0),u.lookAt(new c(0,0,-1)),this.add(u);var d={format:Ca,magFilter:fa,minFilter:fa};this.renderTarget=new l(n,n,d),this.updateCubeMap=function(e,t){null===this.parent&&this.updateMatrixWorld();var n=this.renderTarget,l=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,n.activeCubeFace=0,e.render(t,i,n),n.activeCubeFace=1,e.render(t,r,n),n.activeCubeFace=2,e.render(t,o,n),n.activeCubeFace=3,e.render(t,a,n),n.activeCubeFace=4,e.render(t,s,n),n.texture.generateMipmaps=l,n.activeCubeFace=5,e.render(t,u,n),e.setRenderTarget(null)}}function Ai(){ce.call(this),this.type=\"AudioListener\",this.context=zs.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null}function Ri(e){ce.call(this),this.type=\"Audio\",this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.loop=!1,this.startTime=0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.sourceType=\"empty\",this.filters=[]}function Li(e){Ri.call(this,e),this.panner=this.context.createPanner(),this.panner.connect(this.gain)}function Ii(e,t){this.analyser=e.context.createAnalyser(),this.analyser.fftSize=void 0!==t?t:2048,this.data=new Uint8Array(this.analyser.frequencyBinCount),e.getOutput().connect(this.analyser)}function Di(e,t,n){this.binding=e,this.valueSize=n;var i,r=Float64Array;switch(t){case\"quaternion\":i=this._slerp;break;case\"string\":case\"bool\":r=Array,i=this._select;break;default:i=this._lerp}this.buffer=new r(4*n),this._mixBufferRegion=i,this.cumulativeWeight=0,this.useCount=0,this.referenceCount=0}function Ni(e,t,n){this.path=t,this.parsedPath=n||Ni.parseTrackName(t),this.node=Ni.findNode(e,this.parsedPath.nodeName)||e,this.rootNode=e}function Bi(e){this.uuid=fs.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var t={};this._indicesByUUID=t;for(var n=0,i=arguments.length;n!==i;++n)t[arguments[n].uuid]=n;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};var r=this;this.stats={objects:{get total(){return r._objects.length},get inUse(){return this.total-r.nCachedObjects_}},get bindingsPerObject(){return r._bindings.length}}}function zi(e,t,n){this._mixer=e,this._clip=t,this._localRoot=n||null;for(var i=t.tracks,r=i.length,o=new Array(r),a={endingStart:Ja,endingEnd:Ja},s=0;s!==r;++s){var l=i[s].createInterpolant(null);o[s]=l,l.settings=a}this._interpolantSettings=a,this._interpolants=o,this._propertyBindings=new Array(r),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=qa,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}function Fi(e){this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}function ji(e){\"string\"==typeof e&&(console.warn(\"THREE.Uniform: Type parameter is no longer needed.\"),e=arguments[1]),this.value=e}function Ui(){Ce.call(this),this.type=\"InstancedBufferGeometry\",this.maxInstancedCount=void 0}function Wi(e,t,n,i){this.uuid=fs.generateUUID(),this.data=e,this.itemSize=t,this.offset=n,this.normalized=!0===i}function Gi(e,t){this.uuid=fs.generateUUID(),this.array=e,this.stride=t,this.count=void 0!==e?e.length/t:0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.onUploadCallback=function(){},this.version=0}function Vi(e,t,n){Gi.call(this,e,t),this.meshPerAttribute=n||1}function Hi(e,t,n){me.call(this,e,t),this.meshPerAttribute=n||1}function qi(e,t,n,i){this.ray=new se(e,t),this.near=n||0,this.far=i||1/0,this.params={Mesh:{},Line:{},LOD:{},Points:{threshold:1},Sprite:{}},Object.defineProperties(this.params,{PointCloud:{get:function(){return console.warn(\"THREE.Raycaster: params.PointCloud has been renamed to params.Points.\"),this.Points}}})}function Yi(e,t){return e.distance-t.distance}function Xi(e,t,n,i){if(!1!==e.visible&&(e.raycast(t,n),!0===i))for(var r=e.children,o=0,a=r.length;o0?1:+e}),void 0===Function.prototype.name&&Object.defineProperty(Function.prototype,\"name\",{get:function(){return this.toString().match(/^\\s*function\\s*([^\\(\\s]*)/)[1]}}),void 0===Object.assign&&function(){Object.assign=function(e){if(void 0===e||null===e)throw new TypeError(\"Cannot convert undefined or null to object\");for(var t=Object(e),n=1;n>=4,n[r]=t[19===r?3&e|8:e]);return n.join(\"\")}}(),clamp:function(e,t,n){return Math.max(t,Math.min(n,e))},euclideanModulo:function(e,t){return(e%t+t)%t},mapLinear:function(e,t,n,i,r){return i+(e-t)*(r-i)/(n-t)},lerp:function(e,t,n){return(1-n)*e+n*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())},degToRad:function(e){return e*fs.DEG2RAD},radToDeg:function(e){return e*fs.RAD2DEG},isPowerOfTwo:function(e){return 0==(e&e-1)&&0!==e},nearestPowerOfTwo:function(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))},nextPowerOfTwo:function(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e}};r.prototype={constructor:r,isVector2:!0,get width(){return this.x},set width(e){this.x=e},get height(){return this.y},set height(e){this.y=e},set:function(e,t){return this.x=e,this.y=t,this},setScalar:function(e){return this.x=e,this.y=e,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setComponent:function(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:function(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error(\"index is out of range: \"+e)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(e){return this.x=e.x,this.y=e.y,this},add:function(e,t){return void 0!==t?(console.warn(\"THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead.\"),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this)},addScalar:function(e){return this.x+=e,this.y+=e,this},addVectors:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this},addScaledVector:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this},sub:function(e,t){return void 0!==t?(console.warn(\"THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.\"),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this)},subScalar:function(e){return this.x-=e,this.y-=e,this},subVectors:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this},multiply:function(e){return this.x*=e.x,this.y*=e.y,this},multiplyScalar:function(e){return isFinite(e)?(this.x*=e,this.y*=e):(this.x=0,this.y=0),this},divide:function(e){return this.x/=e.x,this.y/=e.y,this},divideScalar:function(e){return this.multiplyScalar(1/e)},min:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this},max:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this},clamp:function(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:function(){var e,t;return function(n,i){return void 0===e&&(e=new r,t=new r),e.set(n,n),t.set(i,i),this.clamp(e,t)}}(),clampLength:function(e,t){var n=this.length();return this.multiplyScalar(Math.max(e,Math.min(t,n))/n)},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(e){return this.x*e.x+this.y*e.y},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length())},angle:function(){var e=Math.atan2(this.y,this.x);return e<0&&(e+=2*Math.PI),e},distanceTo:function(e){return Math.sqrt(this.distanceToSquared(e))},distanceToSquared:function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},distanceToManhattan:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)},setLength:function(e){return this.multiplyScalar(e/this.length())},lerp:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this},lerpVectors:function(e,t,n){return this.subVectors(t,e).multiplyScalar(n).add(e)},equals:function(e){return e.x===this.x&&e.y===this.y},fromArray:function(e,t){return void 0===t&&(t=0),this.x=e[t],this.y=e[t+1],this},toArray:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this.x,e[t+1]=this.y,e},fromBufferAttribute:function(e,t,n){return void 0!==n&&console.warn(\"THREE.Vector2: offset has been removed from .fromBufferAttribute().\"),this.x=e.getX(t),this.y=e.getY(t),this},rotateAround:function(e,t){var n=Math.cos(t),i=Math.sin(t),r=this.x-e.x,o=this.y-e.y;return this.x=r*n-o*i+e.x,this.y=r*i+o*n+e.y,this}};var ps=0;o.DEFAULT_IMAGE=void 0,o.DEFAULT_MAPPING=$o,o.prototype={constructor:o,isTexture:!0,set needsUpdate(e){!0===e&&this.version++},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.image=e.image,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.encoding=e.encoding,this},toJSON:function(e){if(void 0!==e.textures[this.uuid])return e.textures[this.uuid];var t={metadata:{version:4.4,type:\"Texture\",generator:\"Texture.toJSON\"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],wrap:[this.wrapS,this.wrapT],minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY};if(void 0!==this.image){var n=this.image;void 0===n.uuid&&(n.uuid=fs.generateUUID()),void 0===e.images[n.uuid]&&(e.images[n.uuid]={uuid:n.uuid,url:function(e){var t;return void 0!==e.toDataURL?t=e:(t=document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\"),t.width=e.width,t.height=e.height,t.getContext(\"2d\").drawImage(e,0,0,e.width,e.height)),t.width>2048||t.height>2048?t.toDataURL(\"image/jpeg\",.6):t.toDataURL(\"image/png\")}(n)}),t.image=n.uuid}return e.textures[this.uuid]=t,t},dispose:function(){this.dispatchEvent({type:\"dispose\"})},transformUv:function(e){if(this.mapping===$o){if(e.multiply(this.repeat),e.add(this.offset),e.x<0||e.x>1)switch(this.wrapS){case sa:e.x=e.x-Math.floor(e.x);break;case la:e.x=e.x<0?0:1;break;case ua: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 sa:e.y=e.y-Math.floor(e.y);break;case la:e.y=e.y<0?0:1;break;case ua:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}this.flipY&&(e.y=1-e.y)}}},Object.assign(o.prototype,i.prototype),a.prototype={constructor:a,isVector4:!0,set:function(e,t,n,i){return this.x=e,this.y=t,this.z=n,this.w=i,this},setScalar:function(e){return this.x=e,this.y=e,this.z=e,this.w=e,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setZ:function(e){return this.z=e,this},setW:function(e){return this.w=e,this},setComponent:function(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:function(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:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(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:function(e,t){return void 0!==t?(console.warn(\"THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead.\"),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this)},addScalar:function(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this},addVectors:function(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:function(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:function(e,t){return void 0!==t?(console.warn(\"THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.\"),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this)},subScalar:function(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this},subVectors:function(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},multiplyScalar:function(e){return isFinite(e)?(this.x*=e,this.y*=e,this.z*=e,this.w*=e):(this.x=0,this.y=0,this.z=0,this.w=0),this},applyMatrix4:function(e){var t=this.x,n=this.y,i=this.z,r=this.w,o=e.elements;return this.x=o[0]*t+o[4]*n+o[8]*i+o[12]*r,this.y=o[1]*t+o[5]*n+o[9]*i+o[13]*r,this.z=o[2]*t+o[6]*n+o[10]*i+o[14]*r,this.w=o[3]*t+o[7]*n+o[11]*i+o[15]*r,this},divideScalar:function(e){return this.multiplyScalar(1/e)},setAxisAngleFromQuaternion:function(e){this.w=2*Math.acos(e.w);var 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:function(e){var t,n,i,r,o=e.elements,a=o[0],s=o[4],l=o[8],u=o[1],c=o[5],d=o[9],h=o[2],f=o[6],p=o[10];if(Math.abs(s-u)<.01&&Math.abs(l-h)<.01&&Math.abs(d-f)<.01){if(Math.abs(s+u)<.1&&Math.abs(l+h)<.1&&Math.abs(d+f)<.1&&Math.abs(a+c+p-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;var m=(a+1)/2,g=(c+1)/2,v=(p+1)/2,y=(s+u)/4,b=(l+h)/4,_=(d+f)/4;return m>g&&m>v?m<.01?(n=0,i=.707106781,r=.707106781):(n=Math.sqrt(m),i=y/n,r=b/n):g>v?g<.01?(n=.707106781,i=0,r=.707106781):(i=Math.sqrt(g),n=y/i,r=_/i):v<.01?(n=.707106781,i=.707106781,r=0):(r=Math.sqrt(v),n=b/r,i=_/r),this.set(n,i,r,t),this}var x=Math.sqrt((f-d)*(f-d)+(l-h)*(l-h)+(u-s)*(u-s));return Math.abs(x)<.001&&(x=1),this.x=(f-d)/x,this.y=(l-h)/x,this.z=(u-s)/x,this.w=Math.acos((a+c+p-1)/2),this},min:function(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.w=Math.min(this.w,e.w),this},max:function(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.w=Math.max(this.w,e.w),this},clamp:function(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.w=Math.max(e.w,Math.min(t.w,this.w)),this},clampScalar:function(){var e,t;return function(n,i){return void 0===e&&(e=new a,t=new a),e.set(n,n,n,n),t.set(i,i,i,i),this.clamp(e,t)}}(),floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},dot:function(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)},normalize:function(){return this.divideScalar(this.length())},setLength:function(e){return this.multiplyScalar(e/this.length())},lerp:function(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.w+=(e.w-this.w)*t,this},lerpVectors:function(e,t,n){return this.subVectors(t,e).multiplyScalar(n).add(e)},equals:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w},fromArray:function(e,t){return void 0===t&&(t=0),this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this},toArray:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e},fromBufferAttribute:function(e,t,n){return void 0!==n&&console.warn(\"THREE.Vector4: offset has been removed from .fromBufferAttribute().\"),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}},s.prototype={constructor:s,isWebGLRenderTarget:!0,setSize:function(e,t){this.width===e&&this.height===t||(this.width=e,this.height=t,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.width=e.width,this.height=e.height,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.depthTexture=e.depthTexture,this},dispose:function(){this.dispatchEvent({type:\"dispose\"})}},Object.assign(s.prototype,i.prototype),l.prototype=Object.create(s.prototype),l.prototype.constructor=l,l.prototype.isWebGLRenderTargetCube=!0,u.prototype={constructor:u,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:function(e,t,n,i){return this._x=e,this._y=t,this._z=n,this._w=i,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._w)},copy:function(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this.onChangeCallback(),this},setFromEuler:function(e,t){if(!1===(e&&e.isEuler))throw new Error(\"THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.\");var n=Math.cos(e._x/2),i=Math.cos(e._y/2),r=Math.cos(e._z/2),o=Math.sin(e._x/2),a=Math.sin(e._y/2),s=Math.sin(e._z/2),l=e.order;return\"XYZ\"===l?(this._x=o*i*r+n*a*s,this._y=n*a*r-o*i*s,this._z=n*i*s+o*a*r,this._w=n*i*r-o*a*s):\"YXZ\"===l?(this._x=o*i*r+n*a*s,this._y=n*a*r-o*i*s,this._z=n*i*s-o*a*r,this._w=n*i*r+o*a*s):\"ZXY\"===l?(this._x=o*i*r-n*a*s,this._y=n*a*r+o*i*s,this._z=n*i*s+o*a*r,this._w=n*i*r-o*a*s):\"ZYX\"===l?(this._x=o*i*r-n*a*s,this._y=n*a*r+o*i*s,this._z=n*i*s-o*a*r,this._w=n*i*r+o*a*s):\"YZX\"===l?(this._x=o*i*r+n*a*s,this._y=n*a*r+o*i*s,this._z=n*i*s-o*a*r,this._w=n*i*r-o*a*s):\"XZY\"===l&&(this._x=o*i*r-n*a*s,this._y=n*a*r-o*i*s,this._z=n*i*s+o*a*r,this._w=n*i*r+o*a*s),!1!==t&&this.onChangeCallback(),this},setFromAxisAngle:function(e,t){var n=t/2,i=Math.sin(n);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(n),this.onChangeCallback(),this},setFromRotationMatrix:function(e){var t,n=e.elements,i=n[0],r=n[4],o=n[8],a=n[1],s=n[5],l=n[9],u=n[2],c=n[6],d=n[10],h=i+s+d;return h>0?(t=.5/Math.sqrt(h+1),this._w=.25/t,this._x=(c-l)*t,this._y=(o-u)*t,this._z=(a-r)*t):i>s&&i>d?(t=2*Math.sqrt(1+i-s-d),this._w=(c-l)/t,this._x=.25*t,this._y=(r+a)/t,this._z=(o+u)/t):s>d?(t=2*Math.sqrt(1+s-i-d),this._w=(o-u)/t,this._x=(r+a)/t,this._y=.25*t,this._z=(l+c)/t):(t=2*Math.sqrt(1+d-i-s),this._w=(a-r)/t,this._x=(o+u)/t,this._y=(l+c)/t,this._z=.25*t),this.onChangeCallback(),this},setFromUnitVectors:function(){var e,t;return function(n,i){return void 0===e&&(e=new c),t=n.dot(i)+1,t<1e-6?(t=0,Math.abs(n.x)>Math.abs(n.z)?e.set(-n.y,n.x,0):e.set(0,-n.z,n.y)):e.crossVectors(n,i),this._x=e.x,this._y=e.y,this._z=e.z,this._w=t,this.normalize()}}(),inverse:function(){return this.conjugate().normalize()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this.onChangeCallback(),this},dot:function(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var 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:function(e,t){return void 0!==t?(console.warn(\"THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead.\"),this.multiplyQuaternions(e,t)):this.multiplyQuaternions(this,e)},premultiply:function(e){return this.multiplyQuaternions(e,this)},multiplyQuaternions:function(e,t){var n=e._x,i=e._y,r=e._z,o=e._w,a=t._x,s=t._y,l=t._z,u=t._w;return this._x=n*u+o*a+i*l-r*s,this._y=i*u+o*s+r*a-n*l,this._z=r*u+o*l+n*s-i*a,this._w=o*u-n*a-i*s-r*l,this.onChangeCallback(),this},slerp:function(e,t){if(0===t)return this;if(1===t)return this.copy(e);var n=this._x,i=this._y,r=this._z,o=this._w,a=o*e._w+n*e._x+i*e._y+r*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=n,this._y=i,this._z=r,this;var s=Math.sqrt(1-a*a);if(Math.abs(s)<.001)return this._w=.5*(o+this._w),this._x=.5*(n+this._x),this._y=.5*(i+this._y),this._z=.5*(r+this._z),this;var l=Math.atan2(s,a),u=Math.sin((1-t)*l)/s,c=Math.sin(t*l)/s;return this._w=o*u+this._w*c,this._x=n*u+this._x*c,this._y=i*u+this._y*c,this._z=r*u+this._z*c,this.onChangeCallback(),this},equals:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w},fromArray:function(e,t){return void 0===t&&(t=0),this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this.onChangeCallback(),this},toArray:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e},onChange:function(e){return this.onChangeCallback=e,this},onChangeCallback:function(){}},Object.assign(u,{slerp:function(e,t,n,i){return n.copy(e).slerp(t,i)},slerpFlat:function(e,t,n,i,r,o,a){var s=n[i+0],l=n[i+1],u=n[i+2],c=n[i+3],d=r[o+0],h=r[o+1],f=r[o+2],p=r[o+3];if(c!==p||s!==d||l!==h||u!==f){var m=1-a,g=s*d+l*h+u*f+c*p,v=g>=0?1:-1,y=1-g*g;if(y>Number.EPSILON){var b=Math.sqrt(y),_=Math.atan2(b,g*v);m=Math.sin(m*_)/b,a=Math.sin(a*_)/b}var x=a*v;if(s=s*m+d*x,l=l*m+h*x,u=u*m+f*x,c=c*m+p*x,m===1-a){var w=1/Math.sqrt(s*s+l*l+u*u+c*c);s*=w,l*=w,u*=w,c*=w}}e[t]=s,e[t+1]=l,e[t+2]=u,e[t+3]=c}}),c.prototype={constructor:c,isVector3:!0,set:function(e,t,n){return this.x=e,this.y=t,this.z=n,this},setScalar:function(e){return this.x=e,this.y=e,this.z=e,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setZ:function(e){return this.z=e,this},setComponent:function(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:function(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:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this},add:function(e,t){return void 0!==t?(console.warn(\"THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead.\"),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this)},addScalar:function(e){return this.x+=e,this.y+=e,this.z+=e,this},addVectors:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this},addScaledVector:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this},sub:function(e,t){return void 0!==t?(console.warn(\"THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.\"),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this)},subScalar:function(e){return this.x-=e,this.y-=e,this.z-=e,this},subVectors:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this},multiply:function(e,t){return void 0!==t?(console.warn(\"THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead.\"),this.multiplyVectors(e,t)):(this.x*=e.x,this.y*=e.y,this.z*=e.z,this)},multiplyScalar:function(e){return isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):(this.x=0,this.y=0,this.z=0),this},multiplyVectors:function(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this},applyEuler:function(){var e;return function(t){return!1===(t&&t.isEuler)&&console.error(\"THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order.\"),void 0===e&&(e=new u),this.applyQuaternion(e.setFromEuler(t))}}(),applyAxisAngle:function(){var e;return function(t,n){return void 0===e&&(e=new u),this.applyQuaternion(e.setFromAxisAngle(t,n))}}(),applyMatrix3:function(e){var t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6]*i,this.y=r[1]*t+r[4]*n+r[7]*i,this.z=r[2]*t+r[5]*n+r[8]*i,this},applyMatrix4:function(e){var t=this.x,n=this.y,i=this.z,r=e.elements;this.x=r[0]*t+r[4]*n+r[8]*i+r[12],this.y=r[1]*t+r[5]*n+r[9]*i+r[13],this.z=r[2]*t+r[6]*n+r[10]*i+r[14];var o=r[3]*t+r[7]*n+r[11]*i+r[15];return this.divideScalar(o)},applyQuaternion:function(e){var t=this.x,n=this.y,i=this.z,r=e.x,o=e.y,a=e.z,s=e.w,l=s*t+o*i-a*n,u=s*n+a*t-r*i,c=s*i+r*n-o*t,d=-r*t-o*n-a*i;return this.x=l*s+d*-r+u*-a-c*-o,this.y=u*s+d*-o+c*-r-l*-a,this.z=c*s+d*-a+l*-o-u*-r,this},project:function(){var e;return function(t){return void 0===e&&(e=new d),e.multiplyMatrices(t.projectionMatrix,e.getInverse(t.matrixWorld)),this.applyMatrix4(e)}}(),unproject:function(){var e;return function(t){return void 0===e&&(e=new d),e.multiplyMatrices(t.matrixWorld,e.getInverse(t.projectionMatrix)),this.applyMatrix4(e)}}(),transformDirection:function(e){var t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[4]*n+r[8]*i,this.y=r[1]*t+r[5]*n+r[9]*i,this.z=r[2]*t+r[6]*n+r[10]*i,this.normalize()},divide:function(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this},divideScalar:function(e){return this.multiplyScalar(1/e)},min:function(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:function(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:function(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:function(){var e,t;return function(n,i){return void 0===e&&(e=new c,t=new c),e.set(n,n,n),t.set(i,i,i),this.clamp(e,t)}}(),clampLength:function(e,t){var n=this.length();return this.multiplyScalar(Math.max(e,Math.min(t,n))/n)},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},dot:function(e){return this.x*e.x+this.y*e.y+this.z*e.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length())},setLength:function(e){return this.multiplyScalar(e/this.length())},lerp:function(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:function(e,t,n){return this.subVectors(t,e).multiplyScalar(n).add(e)},cross:function(e,t){if(void 0!==t)return console.warn(\"THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead.\"),this.crossVectors(e,t);var n=this.x,i=this.y,r=this.z;return this.x=i*e.z-r*e.y,this.y=r*e.x-n*e.z,this.z=n*e.y-i*e.x,this},crossVectors:function(e,t){var n=e.x,i=e.y,r=e.z,o=t.x,a=t.y,s=t.z;return this.x=i*s-r*a,this.y=r*o-n*s,this.z=n*a-i*o,this},projectOnVector:function(e){var t=e.dot(this)/e.lengthSq();return this.copy(e).multiplyScalar(t)},projectOnPlane:function(){var e;return function(t){return void 0===e&&(e=new c),e.copy(this).projectOnVector(t),this.sub(e)}}(),reflect:function(){var e;return function(t){return void 0===e&&(e=new c),this.sub(e.copy(t).multiplyScalar(2*this.dot(t)))}}(),angleTo:function(e){var t=this.dot(e)/Math.sqrt(this.lengthSq()*e.lengthSq());return Math.acos(fs.clamp(t,-1,1))},distanceTo:function(e){return Math.sqrt(this.distanceToSquared(e))},distanceToSquared:function(e){var t=this.x-e.x,n=this.y-e.y,i=this.z-e.z;return t*t+n*n+i*i},distanceToManhattan:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)},setFromSpherical:function(e){var t=Math.sin(e.phi)*e.radius;return this.x=t*Math.sin(e.theta),this.y=Math.cos(e.phi)*e.radius,this.z=t*Math.cos(e.theta),this},setFromCylindrical:function(e){return this.x=e.radius*Math.sin(e.theta),this.y=e.y,this.z=e.radius*Math.cos(e.theta),this},setFromMatrixPosition:function(e){return this.setFromMatrixColumn(e,3)},setFromMatrixScale:function(e){var t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=i,this},setFromMatrixColumn:function(e,t){if(\"number\"==typeof e){console.warn(\"THREE.Vector3: setFromMatrixColumn now expects ( matrix, index ).\");var n=e;e=t,t=n}return this.fromArray(e.elements,4*t)},equals:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z},fromArray:function(e,t){return void 0===t&&(t=0),this.x=e[t],this.y=e[t+1],this.z=e[t+2],this},toArray:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e},fromBufferAttribute:function(e,t,n){return void 0!==n&&console.warn(\"THREE.Vector3: offset has been removed from .fromBufferAttribute().\"),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}},d.prototype={constructor:d,isMatrix4:!0,set:function(e,t,n,i,r,o,a,s,l,u,c,d,h,f,p,m){var g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=i,g[1]=r,g[5]=o,g[9]=a,g[13]=s,g[2]=l,g[6]=u,g[10]=c,g[14]=d,g[3]=h,g[7]=f,g[11]=p,g[15]=m,this},identity:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this},clone:function(){return(new d).fromArray(this.elements)},copy:function(e){return this.elements.set(e.elements),this},copyPosition:function(e){var t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this},extractBasis:function(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this},makeBasis:function(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:function(){var e;return function(t){void 0===e&&(e=new c);var n=this.elements,i=t.elements,r=1/e.setFromMatrixColumn(t,0).length(),o=1/e.setFromMatrixColumn(t,1).length(),a=1/e.setFromMatrixColumn(t,2).length();return n[0]=i[0]*r,n[1]=i[1]*r,n[2]=i[2]*r,n[4]=i[4]*o,n[5]=i[5]*o,n[6]=i[6]*o,n[8]=i[8]*a,n[9]=i[9]*a,n[10]=i[10]*a,this}}(),makeRotationFromEuler:function(e){!1===(e&&e.isEuler)&&console.error(\"THREE.Matrix: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.\");var t=this.elements,n=e.x,i=e.y,r=e.z,o=Math.cos(n),a=Math.sin(n),s=Math.cos(i),l=Math.sin(i),u=Math.cos(r),c=Math.sin(r);if(\"XYZ\"===e.order){var d=o*u,h=o*c,f=a*u,p=a*c;t[0]=s*u,t[4]=-s*c,t[8]=l,t[1]=h+f*l,t[5]=d-p*l,t[9]=-a*s,t[2]=p-d*l,t[6]=f+h*l,t[10]=o*s}else if(\"YXZ\"===e.order){var m=s*u,g=s*c,v=l*u,y=l*c;t[0]=m+y*a,t[4]=v*a-g,t[8]=o*l,t[1]=o*c,t[5]=o*u,t[9]=-a,t[2]=g*a-v,t[6]=y+m*a,t[10]=o*s}else if(\"ZXY\"===e.order){var m=s*u,g=s*c,v=l*u,y=l*c;t[0]=m-y*a,t[4]=-o*c,t[8]=v+g*a,t[1]=g+v*a,t[5]=o*u,t[9]=y-m*a,t[2]=-o*l,t[6]=a,t[10]=o*s}else if(\"ZYX\"===e.order){var d=o*u,h=o*c,f=a*u,p=a*c;t[0]=s*u,t[4]=f*l-h,t[8]=d*l+p,t[1]=s*c,t[5]=p*l+d,t[9]=h*l-f,t[2]=-l,t[6]=a*s,t[10]=o*s}else if(\"YZX\"===e.order){var b=o*s,_=o*l,x=a*s,w=a*l;t[0]=s*u,t[4]=w-b*c,t[8]=x*c+_,t[1]=c,t[5]=o*u,t[9]=-a*u,t[2]=-l*u,t[6]=_*c+x,t[10]=b-w*c}else if(\"XZY\"===e.order){var b=o*s,_=o*l,x=a*s,w=a*l;t[0]=s*u,t[4]=-c,t[8]=l*u,t[1]=b*c+w,t[5]=o*u,t[9]=_*c-x,t[2]=x*c-_,t[6]=a*u,t[10]=w*c+b}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},makeRotationFromQuaternion:function(e){var t=this.elements,n=e.x,i=e.y,r=e.z,o=e.w,a=n+n,s=i+i,l=r+r,u=n*a,c=n*s,d=n*l,h=i*s,f=i*l,p=r*l,m=o*a,g=o*s,v=o*l;return t[0]=1-(h+p),t[4]=c-v,t[8]=d+g,t[1]=c+v,t[5]=1-(u+p),t[9]=f-m,t[2]=d-g,t[6]=f+m,t[10]=1-(u+h),t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},lookAt:function(){var e,t,n;return function(i,r,o){void 0===e&&(e=new c,t=new c,n=new c);var a=this.elements;return n.subVectors(i,r).normalize(),0===n.lengthSq()&&(n.z=1),e.crossVectors(o,n).normalize(),0===e.lengthSq()&&(n.z+=1e-4,e.crossVectors(o,n).normalize()),t.crossVectors(n,e),a[0]=e.x,a[4]=t.x,a[8]=n.x,a[1]=e.y,a[5]=t.y,a[9]=n.y,a[2]=e.z,a[6]=t.z,a[10]=n.z,this}}(),multiply:function(e,t){return void 0!==t?(console.warn(\"THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead.\"),this.multiplyMatrices(e,t)):this.multiplyMatrices(this,e)},premultiply:function(e){return this.multiplyMatrices(e,this)},multiplyMatrices:function(e,t){var n=e.elements,i=t.elements,r=this.elements,o=n[0],a=n[4],s=n[8],l=n[12],u=n[1],c=n[5],d=n[9],h=n[13],f=n[2],p=n[6],m=n[10],g=n[14],v=n[3],y=n[7],b=n[11],_=n[15],x=i[0],w=i[4],M=i[8],S=i[12],E=i[1],T=i[5],k=i[9],O=i[13],C=i[2],P=i[6],A=i[10],R=i[14],L=i[3],I=i[7],D=i[11],N=i[15];return r[0]=o*x+a*E+s*C+l*L,r[4]=o*w+a*T+s*P+l*I,r[8]=o*M+a*k+s*A+l*D,r[12]=o*S+a*O+s*R+l*N,r[1]=u*x+c*E+d*C+h*L,r[5]=u*w+c*T+d*P+h*I,r[9]=u*M+c*k+d*A+h*D,r[13]=u*S+c*O+d*R+h*N,r[2]=f*x+p*E+m*C+g*L,r[6]=f*w+p*T+m*P+g*I,r[10]=f*M+p*k+m*A+g*D,r[14]=f*S+p*O+m*R+g*N,r[3]=v*x+y*E+b*C+_*L,r[7]=v*w+y*T+b*P+_*I,r[11]=v*M+y*k+b*A+_*D,r[15]=v*S+y*O+b*R+_*N,this},multiplyToArray:function(e,t,n){var i=this.elements;return this.multiplyMatrices(e,t),n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],n[9]=i[9],n[10]=i[10],n[11]=i[11],n[12]=i[12],n[13]=i[13],n[14]=i[14],n[15]=i[15],this},multiplyScalar:function(e){var 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},applyToBufferAttribute:function(){var e;return function(t){void 0===e&&(e=new c);for(var n=0,i=t.count;n 0.0 ) {\\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\\n\\t\\t\\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\\n\\t\\t\\tfloat maxDistanceCutoffFactor = pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\\n\\t\\t\\treturn distanceFalloff * maxDistanceCutoffFactor;\\n#else\\n\\t\\t\\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\\n#endif\\n\\t\\t}\\n\\t\\treturn 1.0;\\n}\\nvec3 BRDF_Diffuse_Lambert( const in vec3 diffuseColor ) {\\n\\treturn RECIPROCAL_PI * diffuseColor;\\n}\\nvec3 F_Schlick( const in vec3 specularColor, const in float dotLH ) {\\n\\tfloat fresnel = exp2( ( -5.55473 * dotLH - 6.98316 ) * dotLH );\\n\\treturn ( 1.0 - specularColor ) * fresnel + specularColor;\\n}\\nfloat G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {\\n\\tfloat a2 = pow2( alpha );\\n\\tfloat gl = dotNL + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\\n\\tfloat gv = dotNV + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\\n\\treturn 1.0 / ( gl * gv );\\n}\\nfloat G_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}\\nvec3 BRDF_Specular_GGX( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float roughness ) {\\n\\tfloat alpha = pow2( roughness );\\n\\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\\n\\tfloat dotNL = saturate( dot( geometry.normal, incidentLight.direction ) );\\n\\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\\n\\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\\n\\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\\n\\tvec3 F = F_Schlick( specularColor, dotLH );\\n\\tfloat G = G_GGX_SmithCorrelated( alpha, dotNL, dotNV );\\n\\tfloat D = D_GGX( alpha, dotNH );\\n\\treturn F * ( G * D );\\n}\\nvec2 ltcTextureCoords( const in GeometricContext geometry, 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\\tvec3 N = geometry.normal;\\n\\tvec3 V = geometry.viewDir;\\n\\tvec3 P = geometry.position;\\n\\tfloat theta = acos( dot( N, V ) );\\n\\tvec2 uv = vec2(\\n\\t\\tsqrt( saturate( roughness ) ),\\n\\t\\tsaturate( theta / ( 0.5 * PI ) ) );\\n\\tuv = uv * LUT_SCALE + LUT_BIAS;\\n\\treturn uv;\\n}\\nvoid clipQuadToHorizon( inout vec3 L[5], out int n ) {\\n\\tint config = 0;\\n\\tif ( L[0].z > 0.0 ) config += 1;\\n\\tif ( L[1].z > 0.0 ) config += 2;\\n\\tif ( L[2].z > 0.0 ) config += 4;\\n\\tif ( L[3].z > 0.0 ) config += 8;\\n\\tn = 0;\\n\\tif ( config == 0 ) {\\n\\t} else if ( config == 1 ) {\\n\\t\\tn = 3;\\n\\t\\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\\n\\t\\tL[2] = -L[3].z * L[0] + L[0].z * L[3];\\n\\t} else if ( config == 2 ) {\\n\\t\\tn = 3;\\n\\t\\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\\n\\t\\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\\n\\t} else if ( config == 3 ) {\\n\\t\\tn = 4;\\n\\t\\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\\n\\t\\tL[3] = -L[3].z * L[0] + L[0].z * L[3];\\n\\t} else if ( config == 4 ) {\\n\\t\\tn = 3;\\n\\t\\tL[0] = -L[3].z * L[2] + L[2].z * L[3];\\n\\t\\tL[1] = -L[1].z * L[2] + L[2].z * L[1];\\n\\t} else if ( config == 5 ) {\\n\\t\\tn = 0;\\n\\t} else if ( config == 6 ) {\\n\\t\\tn = 4;\\n\\t\\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\\n\\t\\tL[3] = -L[3].z * L[2] + L[2].z * L[3];\\n\\t} else if ( config == 7 ) {\\n\\t\\tn = 5;\\n\\t\\tL[4] = -L[3].z * L[0] + L[0].z * L[3];\\n\\t\\tL[3] = -L[3].z * L[2] + L[2].z * L[3];\\n\\t} else if ( config == 8 ) {\\n\\t\\tn = 3;\\n\\t\\tL[0] = -L[0].z * L[3] + L[3].z * L[0];\\n\\t\\tL[1] = -L[2].z * L[3] + L[3].z * L[2];\\n\\t\\tL[2] = L[3];\\n\\t} else if ( config == 9 ) {\\n\\t\\tn = 4;\\n\\t\\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\\n\\t\\tL[2] = -L[2].z * L[3] + L[3].z * L[2];\\n\\t} else if ( config == 10 ) {\\n\\t\\tn = 0;\\n\\t} else if ( config == 11 ) {\\n\\t\\tn = 5;\\n\\t\\tL[4] = L[3];\\n\\t\\tL[3] = -L[2].z * L[3] + L[3].z * L[2];\\n\\t\\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\\n\\t} else if ( config == 12 ) {\\n\\t\\tn = 4;\\n\\t\\tL[1] = -L[1].z * L[2] + L[2].z * L[1];\\n\\t\\tL[0] = -L[0].z * L[3] + L[3].z * L[0];\\n\\t} else if ( config == 13 ) {\\n\\t\\tn = 5;\\n\\t\\tL[4] = L[3];\\n\\t\\tL[3] = L[2];\\n\\t\\tL[2] = -L[1].z * L[2] + L[2].z * L[1];\\n\\t\\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\\n\\t} else if ( config == 14 ) {\\n\\t\\tn = 5;\\n\\t\\tL[4] = -L[0].z * L[3] + L[3].z * L[0];\\n\\t\\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\\n\\t} else if ( config == 15 ) {\\n\\t\\tn = 4;\\n\\t}\\n\\tif ( n == 3 )\\n\\t\\tL[3] = L[0];\\n\\tif ( n == 4 )\\n\\t\\tL[4] = L[0];\\n}\\nfloat integrateLtcBrdfOverRectEdge( vec3 v1, vec3 v2 ) {\\n\\tfloat cosTheta = dot( v1, v2 );\\n\\tfloat theta = acos( cosTheta );\\n\\tfloat res = cross( v1, v2 ).z * ( ( theta > 0.001 ) ? theta / sin( theta ) : 1.0 );\\n\\treturn res;\\n}\\nvoid initRectPoints( const in vec3 pos, const in vec3 halfWidth, const in vec3 halfHeight, out vec3 rectPoints[4] ) {\\n\\trectPoints[0] = pos - halfWidth - halfHeight;\\n\\trectPoints[1] = pos + halfWidth - halfHeight;\\n\\trectPoints[2] = pos + halfWidth + halfHeight;\\n\\trectPoints[3] = pos - halfWidth + halfHeight;\\n}\\nvec3 integrateLtcBrdfOverRect( const in GeometricContext geometry, const in mat3 brdfMat, const in vec3 rectPoints[4] ) {\\n\\tvec3 N = geometry.normal;\\n\\tvec3 V = geometry.viewDir;\\n\\tvec3 P = geometry.position;\\n\\tvec3 T1, T2;\\n\\tT1 = normalize(V - N * dot( V, N ));\\n\\tT2 = - cross( N, T1 );\\n\\tmat3 brdfWrtSurface = brdfMat * transpose( mat3( T1, T2, N ) );\\n\\tvec3 clippedRect[5];\\n\\tclippedRect[0] = brdfWrtSurface * ( rectPoints[0] - P );\\n\\tclippedRect[1] = brdfWrtSurface * ( rectPoints[1] - P );\\n\\tclippedRect[2] = brdfWrtSurface * ( rectPoints[2] - P );\\n\\tclippedRect[3] = brdfWrtSurface * ( rectPoints[3] - P );\\n\\tint n;\\n\\tclipQuadToHorizon(clippedRect, n);\\n\\tif ( n == 0 )\\n\\t\\treturn vec3( 0, 0, 0 );\\n\\tclippedRect[0] = normalize( clippedRect[0] );\\n\\tclippedRect[1] = normalize( clippedRect[1] );\\n\\tclippedRect[2] = normalize( clippedRect[2] );\\n\\tclippedRect[3] = normalize( clippedRect[3] );\\n\\tclippedRect[4] = normalize( clippedRect[4] );\\n\\tfloat sum = 0.0;\\n\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[0], clippedRect[1] );\\n\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[1], clippedRect[2] );\\n\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[2], clippedRect[3] );\\n\\tif (n >= 4)\\n\\t\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[3], clippedRect[4] );\\n\\tif (n == 5)\\n\\t\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[4], clippedRect[0] );\\n\\tsum = max( 0.0, sum );\\n\\tvec3 Lo_i = vec3( sum, sum, sum );\\n\\treturn Lo_i;\\n}\\nvec3 Rect_Area_Light_Specular_Reflectance(\\n\\t\\tconst in GeometricContext geometry,\\n\\t\\tconst in vec3 lightPos, const in vec3 lightHalfWidth, const in vec3 lightHalfHeight,\\n\\t\\tconst in float roughness,\\n\\t\\tconst in sampler2D ltcMat, const in sampler2D ltcMag ) {\\n\\tvec3 rectPoints[4];\\n\\tinitRectPoints( lightPos, lightHalfWidth, lightHalfHeight, rectPoints );\\n\\tvec2 uv = ltcTextureCoords( geometry, roughness );\\n\\tvec4 brdfLtcApproxParams, t;\\n\\tbrdfLtcApproxParams = texture2D( ltcMat, uv );\\n\\tt = texture2D( ltcMat, uv );\\n\\tfloat brdfLtcScalar = texture2D( ltcMag, uv ).a;\\n\\tmat3 brdfLtcApproxMat = mat3(\\n\\t\\tvec3( 1, 0, t.y ),\\n\\t\\tvec3( 0, t.z, 0 ),\\n\\t\\tvec3( t.w, 0, t.x )\\n\\t);\\n\\tvec3 specularReflectance = integrateLtcBrdfOverRect( geometry, brdfLtcApproxMat, rectPoints );\\n\\tspecularReflectance *= brdfLtcScalar;\\n\\treturn specularReflectance;\\n}\\nvec3 Rect_Area_Light_Diffuse_Reflectance(\\n\\t\\tconst in GeometricContext geometry,\\n\\t\\tconst in vec3 lightPos, const in vec3 lightHalfWidth, const in vec3 lightHalfHeight ) {\\n\\tvec3 rectPoints[4];\\n\\tinitRectPoints( lightPos, lightHalfWidth, lightHalfHeight, rectPoints );\\n\\tmat3 diffuseBrdfMat = mat3(1);\\n\\tvec3 diffuseReflectance = integrateLtcBrdfOverRect( geometry, diffuseBrdfMat, rectPoints );\\n\\treturn diffuseReflectance;\\n}\\nvec3 BRDF_Specular_GGX_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness ) {\\n\\tfloat dotNV = saturate( dot( geometry.normal, geometry.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 AB = vec2( -1.04, 1.04 ) * a004 + r.zw;\\n\\treturn specularColor * AB.x + AB.y;\\n}\\nfloat G_BlinnPhong_Implicit( ) {\\n\\treturn 0.25;\\n}\\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\\n\\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\\n}\\nvec3 BRDF_Specular_BlinnPhong( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float shininess ) {\\n\\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\\n\\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\\n\\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\\n\\tvec3 F = F_Schlick( specularColor, dotLH );\\n\\tfloat G = G_BlinnPhong_Implicit( );\\n\\tfloat D = D_BlinnPhong( shininess, dotNH );\\n\\treturn F * ( G * D );\\n}\\nfloat GGXRoughnessToBlinnExponent( const in float ggxRoughness ) {\\n\\treturn ( 2.0 / pow2( ggxRoughness + 0.0001 ) - 2.0 );\\n}\\nfloat BlinnExponentToGGXRoughness( const in float blinnExponent ) {\\n\\treturn sqrt( 2.0 / ( blinnExponent + 2.0 ) );\\n}\\n\",bumpmap_pars_fragment:\"#ifdef USE_BUMPMAP\\n\\tuniform sampler2D bumpMap;\\n\\tuniform float bumpScale;\\n\\tvec2 dHdxy_fwd() {\\n\\t\\tvec2 dSTdx = dFdx( vUv );\\n\\t\\tvec2 dSTdy = dFdy( vUv );\\n\\t\\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\\n\\t\\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\\n\\t\\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\\n\\t\\treturn vec2( dBx, dBy );\\n\\t}\\n\\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy ) {\\n\\t\\tvec3 vSigmaX = dFdx( surf_pos );\\n\\t\\tvec3 vSigmaY = dFdy( surf_pos );\\n\\t\\tvec3 vN = surf_norm;\\n\\t\\tvec3 R1 = cross( vSigmaY, vN );\\n\\t\\tvec3 R2 = cross( vN, vSigmaX );\\n\\t\\tfloat fDet = dot( vSigmaX, R1 );\\n\\t\\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\\n\\t\\treturn normalize( abs( fDet ) * surf_norm - vGrad );\\n\\t}\\n#endif\\n\",clipping_planes_fragment:\"#if NUM_CLIPPING_PLANES > 0\\n\\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; ++ i ) {\\n\\t\\tvec4 plane = clippingPlanes[ i ];\\n\\t\\tif ( dot( vViewPosition, plane.xyz ) > plane.w ) discard;\\n\\t}\\n\\t\\t\\n\\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\\n\\t\\tbool clipped = true;\\n\\t\\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; ++ i ) {\\n\\t\\t\\tvec4 plane = clippingPlanes[ i ];\\n\\t\\t\\tclipped = ( dot( vViewPosition, plane.xyz ) > plane.w ) && clipped;\\n\\t\\t}\\n\\t\\tif ( clipped ) discard;\\n\\t\\n\\t#endif\\n#endif\\n\",clipping_planes_pars_fragment:\"#if NUM_CLIPPING_PLANES > 0\\n\\t#if ! defined( PHYSICAL ) && ! defined( PHONG )\\n\\t\\tvarying vec3 vViewPosition;\\n\\t#endif\\n\\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\\n#endif\\n\",clipping_planes_pars_vertex:\"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG )\\n\\tvarying vec3 vViewPosition;\\n#endif\\n\",clipping_planes_vertex:\"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG )\\n\\tvViewPosition = - mvPosition.xyz;\\n#endif\\n\",color_fragment:\"#ifdef USE_COLOR\\n\\tdiffuseColor.rgb *= vColor;\\n#endif\",color_pars_fragment:\"#ifdef USE_COLOR\\n\\tvarying vec3 vColor;\\n#endif\\n\",color_pars_vertex:\"#ifdef USE_COLOR\\n\\tvarying vec3 vColor;\\n#endif\",color_vertex:\"#ifdef USE_COLOR\\n\\tvColor.xyz = color.xyz;\\n#endif\",common:\"#define PI 3.14159265359\\n#define PI2 6.28318530718\\n#define PI_HALF 1.5707963267949\\n#define RECIPROCAL_PI 0.31830988618\\n#define RECIPROCAL_PI2 0.15915494\\n#define LOG2 1.442695\\n#define EPSILON 1e-6\\n#define saturate(a) clamp( a, 0.0, 1.0 )\\n#define whiteCompliment(a) ( 1.0 - saturate( a ) )\\nfloat pow2( const in float 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 average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\\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}\\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};\\nstruct GeometricContext {\\n\\tvec3 position;\\n\\tvec3 normal;\\n\\tvec3 viewDir;\\n};\\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}\\nvec3 projectOnPlane(in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\\n\\tfloat distance = dot( planeNormal, point - pointOnPlane );\\n\\treturn - distance * planeNormal + point;\\n}\\nfloat sideOfPlane( in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\\n\\treturn sign( dot( point - pointOnPlane, planeNormal ) );\\n}\\nvec3 linePlaneIntersect( in vec3 pointOnLine, in vec3 lineDirection, in vec3 pointOnPlane, in vec3 planeNormal ) {\\n\\treturn lineDirection * ( dot( planeNormal, pointOnPlane - pointOnLine ) / dot( planeNormal, lineDirection ) ) + pointOnLine;\\n}\\nmat3 transpose( const in mat3 v ) {\\n\\tmat3 tmp;\\n\\ttmp[0] = vec3(v[0].x, v[1].x, v[2].x);\\n\\ttmp[1] = vec3(v[0].y, v[1].y, v[2].y);\\n\\ttmp[2] = vec3(v[0].z, v[1].z, v[2].z);\\n\\treturn tmp;\\n}\\n\",cube_uv_reflection_fragment:\"#ifdef ENVMAP_TYPE_CUBE_UV\\n#define cubeUV_textureSize (1024.0)\\nint getFaceFromDirection(vec3 direction) {\\n\\tvec3 absDirection = abs(direction);\\n\\tint face = -1;\\n\\tif( absDirection.x > absDirection.z ) {\\n\\t\\tif(absDirection.x > absDirection.y )\\n\\t\\t\\tface = direction.x > 0.0 ? 0 : 3;\\n\\t\\telse\\n\\t\\t\\tface = direction.y > 0.0 ? 1 : 4;\\n\\t}\\n\\telse {\\n\\t\\tif(absDirection.z > absDirection.y )\\n\\t\\t\\tface = direction.z > 0.0 ? 2 : 5;\\n\\t\\telse\\n\\t\\t\\tface = direction.y > 0.0 ? 1 : 4;\\n\\t}\\n\\treturn face;\\n}\\n#define cubeUV_maxLods1 (log2(cubeUV_textureSize*0.25) - 1.0)\\n#define cubeUV_rangeClamp (exp2((6.0 - 1.0) * 2.0))\\nvec2 MipLevelInfo( vec3 vec, float roughnessLevel, float roughness ) {\\n\\tfloat scale = exp2(cubeUV_maxLods1 - roughnessLevel);\\n\\tfloat dxRoughness = dFdx(roughness);\\n\\tfloat dyRoughness = dFdy(roughness);\\n\\tvec3 dx = dFdx( vec * scale * dxRoughness );\\n\\tvec3 dy = dFdy( vec * scale * dyRoughness );\\n\\tfloat d = max( dot( dx, dx ), dot( dy, dy ) );\\n\\td = clamp(d, 1.0, cubeUV_rangeClamp);\\n\\tfloat mipLevel = 0.5 * log2(d);\\n\\treturn vec2(floor(mipLevel), fract(mipLevel));\\n}\\n#define cubeUV_maxLods2 (log2(cubeUV_textureSize*0.25) - 2.0)\\n#define cubeUV_rcpTextureSize (1.0 / cubeUV_textureSize)\\nvec2 getCubeUV(vec3 direction, float roughnessLevel, float mipLevel) {\\n\\tmipLevel = roughnessLevel > cubeUV_maxLods2 - 3.0 ? 0.0 : mipLevel;\\n\\tfloat a = 16.0 * cubeUV_rcpTextureSize;\\n\\tvec2 exp2_packed = exp2( vec2( roughnessLevel, mipLevel ) );\\n\\tvec2 rcp_exp2_packed = vec2( 1.0 ) / exp2_packed;\\n\\tfloat powScale = exp2_packed.x * exp2_packed.y;\\n\\tfloat scale = rcp_exp2_packed.x * rcp_exp2_packed.y * 0.25;\\n\\tfloat mipOffset = 0.75*(1.0 - rcp_exp2_packed.y) * rcp_exp2_packed.x;\\n\\tbool bRes = mipLevel == 0.0;\\n\\tscale = bRes && (scale < a) ? a : scale;\\n\\tvec3 r;\\n\\tvec2 offset;\\n\\tint face = getFaceFromDirection(direction);\\n\\tfloat rcpPowScale = 1.0 / powScale;\\n\\tif( face == 0) {\\n\\t\\tr = vec3(direction.x, -direction.z, direction.y);\\n\\t\\toffset = vec2(0.0+mipOffset,0.75 * rcpPowScale);\\n\\t\\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\\n\\t}\\n\\telse if( face == 1) {\\n\\t\\tr = vec3(direction.y, direction.x, direction.z);\\n\\t\\toffset = vec2(scale+mipOffset, 0.75 * rcpPowScale);\\n\\t\\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\\n\\t}\\n\\telse if( face == 2) {\\n\\t\\tr = vec3(direction.z, direction.x, direction.y);\\n\\t\\toffset = vec2(2.0*scale+mipOffset, 0.75 * rcpPowScale);\\n\\t\\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\\n\\t}\\n\\telse if( face == 3) {\\n\\t\\tr = vec3(direction.x, direction.z, direction.y);\\n\\t\\toffset = vec2(0.0+mipOffset,0.5 * rcpPowScale);\\n\\t\\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\\n\\t}\\n\\telse if( face == 4) {\\n\\t\\tr = vec3(direction.y, direction.x, -direction.z);\\n\\t\\toffset = vec2(scale+mipOffset, 0.5 * rcpPowScale);\\n\\t\\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\\n\\t}\\n\\telse {\\n\\t\\tr = vec3(direction.z, -direction.x, direction.y);\\n\\t\\toffset = vec2(2.0*scale+mipOffset, 0.5 * rcpPowScale);\\n\\t\\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\\n\\t}\\n\\tr = normalize(r);\\n\\tfloat texelOffset = 0.5 * cubeUV_rcpTextureSize;\\n\\tvec2 s = ( r.yz / abs( r.x ) + vec2( 1.0 ) ) * 0.5;\\n\\tvec2 base = offset + vec2( texelOffset );\\n\\treturn base + s * ( scale - 2.0 * texelOffset );\\n}\\n#define cubeUV_maxLods3 (log2(cubeUV_textureSize*0.25) - 3.0)\\nvec4 textureCubeUV(vec3 reflectedDirection, float roughness ) {\\n\\tfloat roughnessVal = roughness* cubeUV_maxLods3;\\n\\tfloat r1 = floor(roughnessVal);\\n\\tfloat r2 = r1 + 1.0;\\n\\tfloat t = fract(roughnessVal);\\n\\tvec2 mipInfo = MipLevelInfo(reflectedDirection, r1, roughness);\\n\\tfloat s = mipInfo.y;\\n\\tfloat level0 = mipInfo.x;\\n\\tfloat level1 = level0 + 1.0;\\n\\tlevel1 = level1 > 5.0 ? 5.0 : level1;\\n\\tlevel0 += min( floor( s + 0.5 ), 5.0 );\\n\\tvec2 uv_10 = getCubeUV(reflectedDirection, r1, level0);\\n\\tvec4 color10 = envMapTexelToLinear(texture2D(envMap, uv_10));\\n\\tvec2 uv_20 = getCubeUV(reflectedDirection, r2, level0);\\n\\tvec4 color20 = envMapTexelToLinear(texture2D(envMap, uv_20));\\n\\tvec4 result = mix(color10, color20, t);\\n\\treturn vec4(result.rgb, 1.0);\\n}\\n#endif\\n\",defaultnormal_vertex:\"#ifdef FLIP_SIDED\\n\\tobjectNormal = -objectNormal;\\n#endif\\nvec3 transformedNormal = normalMatrix * objectNormal;\\n\",displacementmap_pars_vertex:\"#ifdef USE_DISPLACEMENTMAP\\n\\tuniform sampler2D displacementMap;\\n\\tuniform float displacementScale;\\n\\tuniform float displacementBias;\\n#endif\\n\",displacementmap_vertex:\"#ifdef USE_DISPLACEMENTMAP\\n\\ttransformed += normal * ( texture2D( displacementMap, uv ).x * displacementScale + displacementBias );\\n#endif\\n\",emissivemap_fragment:\"#ifdef USE_EMISSIVEMAP\\n\\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\\n\\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\\n\\ttotalEmissiveRadiance *= emissiveColor.rgb;\\n#endif\\n\",emissivemap_pars_fragment:\"#ifdef USE_EMISSIVEMAP\\n\\tuniform sampler2D emissiveMap;\\n#endif\\n\",encodings_fragment:\" gl_FragColor = linearToOutputTexel( gl_FragColor );\\n\",encodings_pars_fragment:\"\\nvec4 LinearToLinear( in vec4 value ) {\\n\\treturn value;\\n}\\nvec4 GammaToLinear( in vec4 value, in float gammaFactor ) {\\n\\treturn vec4( pow( value.xyz, vec3( gammaFactor ) ), value.w );\\n}\\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\\n\\treturn vec4( pow( value.xyz, vec3( 1.0 / gammaFactor ) ), value.w );\\n}\\nvec4 sRGBToLinear( in vec4 value ) {\\n\\treturn vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.w );\\n}\\nvec4 LinearTosRGB( 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.w );\\n}\\nvec4 RGBEToLinear( in vec4 value ) {\\n\\treturn vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );\\n}\\nvec4 LinearToRGBE( in vec4 value ) {\\n\\tfloat maxComponent = max( max( value.r, value.g ), value.b );\\n\\tfloat fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );\\n\\treturn vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );\\n}\\nvec4 RGBMToLinear( in vec4 value, in float maxRange ) {\\n\\treturn vec4( value.xyz * value.w * maxRange, 1.0 );\\n}\\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\\n\\tfloat maxRGB = max( value.x, max( value.g, value.b ) );\\n\\tfloat M = clamp( maxRGB / maxRange, 0.0, 1.0 );\\n\\tM = ceil( M * 255.0 ) / 255.0;\\n\\treturn vec4( value.rgb / ( M * maxRange ), M );\\n}\\nvec4 RGBDToLinear( in vec4 value, in float maxRange ) {\\n\\treturn vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );\\n}\\nvec4 LinearToRGBD( in vec4 value, in float maxRange ) {\\n\\tfloat maxRGB = max( value.x, max( value.g, value.b ) );\\n\\tfloat D = max( maxRange / maxRGB, 1.0 );\\n\\tD = min( floor( D ) / 255.0, 1.0 );\\n\\treturn vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );\\n}\\nconst mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );\\nvec4 LinearToLogLuv( in vec4 value ) {\\n\\tvec3 Xp_Y_XYZp = value.rgb * cLogLuvM;\\n\\tXp_Y_XYZp = max(Xp_Y_XYZp, vec3(1e-6, 1e-6, 1e-6));\\n\\tvec4 vResult;\\n\\tvResult.xy = Xp_Y_XYZp.xy / Xp_Y_XYZp.z;\\n\\tfloat Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;\\n\\tvResult.w = fract(Le);\\n\\tvResult.z = (Le - (floor(vResult.w*255.0))/255.0)/255.0;\\n\\treturn vResult;\\n}\\nconst mat3 cLogLuvInverseM = mat3( 6.0014, -2.7008, -1.7996, -1.3320, 3.1029, -5.7721, 0.3008, -1.0882, 5.6268 );\\nvec4 LogLuvToLinear( in vec4 value ) {\\n\\tfloat Le = value.z * 255.0 + value.w;\\n\\tvec3 Xp_Y_XYZp;\\n\\tXp_Y_XYZp.y = exp2((Le - 127.0) / 2.0);\\n\\tXp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;\\n\\tXp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;\\n\\tvec3 vRGB = Xp_Y_XYZp.rgb * cLogLuvInverseM;\\n\\treturn vec4( max(vRGB, 0.0), 1.0 );\\n}\\n\",envmap_fragment:\"#ifdef USE_ENVMAP\\n\\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\\n\\t\\tvec3 cameraToVertex = normalize( vWorldPosition - cameraPosition );\\n\\t\\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\\n\\t\\t#ifdef ENVMAP_MODE_REFLECTION\\n\\t\\t\\tvec3 reflectVec = reflect( cameraToVertex, worldNormal );\\n\\t\\t#else\\n\\t\\t\\tvec3 reflectVec = refract( cameraToVertex, 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, flipNormal * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\\n\\t#elif defined( ENVMAP_TYPE_EQUIREC )\\n\\t\\tvec2 sampleUV;\\n\\t\\tsampleUV.y = saturate( flipNormal * reflectVec.y * 0.5 + 0.5 );\\n\\t\\tsampleUV.x = atan( flipNormal * reflectVec.z, flipNormal * reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\\n\\t\\tvec4 envColor = texture2D( envMap, sampleUV );\\n\\t#elif defined( ENVMAP_TYPE_SPHERE )\\n\\t\\tvec3 reflectView = flipNormal * normalize( ( viewMatrix * vec4( reflectVec, 0.0 ) ).xyz + vec3( 0.0, 0.0, 1.0 ) );\\n\\t\\tvec4 envColor = texture2D( envMap, reflectView.xy * 0.5 + 0.5 );\\n\\t#else\\n\\t\\tvec4 envColor = vec4( 0.0 );\\n\\t#endif\\n\\tenvColor = envMapTexelToLinear( envColor );\\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\\n\",envmap_pars_fragment:\"#if defined( USE_ENVMAP ) || defined( PHYSICAL )\\n\\tuniform float reflectivity;\\n\\tuniform float envMapIntensity;\\n#endif\\n#ifdef USE_ENVMAP\\n\\t#if ! defined( PHYSICAL ) && ( defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) )\\n\\t\\tvarying vec3 vWorldPosition;\\n\\t#endif\\n\\t#ifdef ENVMAP_TYPE_CUBE\\n\\t\\tuniform samplerCube envMap;\\n\\t#else\\n\\t\\tuniform sampler2D envMap;\\n\\t#endif\\n\\tuniform float flipEnvMap;\\n\\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( PHYSICAL )\\n\\t\\tuniform float refractionRatio;\\n\\t#else\\n\\t\\tvarying vec3 vReflect;\\n\\t#endif\\n#endif\\n\",envmap_pars_vertex:\"#ifdef USE_ENVMAP\\n\\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\\n\\t\\tvarying vec3 vWorldPosition;\\n\\t#else\\n\\t\\tvarying vec3 vReflect;\\n\\t\\tuniform float refractionRatio;\\n\\t#endif\\n#endif\\n\",envmap_vertex:\"#ifdef USE_ENVMAP\\n\\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\\n\\t\\tvWorldPosition = worldPosition.xyz;\\n\\t#else\\n\\t\\tvec3 cameraToVertex = normalize( worldPosition.xyz - cameraPosition );\\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\\n\",fog_vertex:\"\\n#ifdef USE_FOG\\nfogDepth = -mvPosition.z;\\n#endif\",fog_pars_vertex:\"#ifdef USE_FOG\\n varying float fogDepth;\\n#endif\\n\",fog_fragment:\"#ifdef USE_FOG\\n\\t#ifdef FOG_EXP2\\n\\t\\tfloat fogFactor = whiteCompliment( exp2( - fogDensity * fogDensity * fogDepth * fogDepth * LOG2 ) );\\n\\t#else\\n\\t\\tfloat fogFactor = smoothstep( fogNear, fogFar, fogDepth );\\n\\t#endif\\n\\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\\n#endif\\n\",fog_pars_fragment:\"#ifdef USE_FOG\\n\\tuniform vec3 fogColor;\\n\\tvarying float fogDepth;\\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\\n\",gradientmap_pars_fragment:\"#ifdef TOON\\n\\tuniform sampler2D gradientMap;\\n\\tvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\\n\\t\\tfloat dotNL = dot( normal, lightDirection );\\n\\t\\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\\n\\t\\t#ifdef USE_GRADIENTMAP\\n\\t\\t\\treturn texture2D( gradientMap, coord ).rgb;\\n\\t\\t#else\\n\\t\\t\\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\\n\\t\\t#endif\\n\\t}\\n#endif\\n\",lightmap_fragment:\"#ifdef USE_LIGHTMAP\\n\\treflectedLight.indirectDiffuse += PI * texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\\n#endif\\n\",lightmap_pars_fragment:\"#ifdef USE_LIGHTMAP\\n\\tuniform sampler2D lightMap;\\n\\tuniform float lightMapIntensity;\\n#endif\",lights_lambert_vertex:\"vec3 diffuse = vec3( 1.0 );\\nGeometricContext geometry;\\ngeometry.position = mvPosition.xyz;\\ngeometry.normal = normalize( transformedNormal );\\ngeometry.viewDir = normalize( -mvPosition.xyz );\\nGeometricContext backGeometry;\\nbackGeometry.position = geometry.position;\\nbackGeometry.normal = -geometry.normal;\\nbackGeometry.viewDir = geometry.viewDir;\\nvLightFront = vec3( 0.0 );\\n#ifdef DOUBLE_SIDED\\n\\tvLightBack = vec3( 0.0 );\\n#endif\\nIncidentLight directLight;\\nfloat dotNL;\\nvec3 directLightColor_Diffuse;\\n#if NUM_POINT_LIGHTS > 0\\n\\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\\n\\t\\tgetPointDirectLightIrradiance( pointLights[ i ], geometry, directLight );\\n\\t\\tdotNL = dot( geometry.normal, directLight.direction );\\n\\t\\tdirectLightColor_Diffuse = PI * directLight.color;\\n\\t\\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\\n\\t\\t#ifdef DOUBLE_SIDED\\n\\t\\t\\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\\n\\t\\t#endif\\n\\t}\\n#endif\\n#if NUM_SPOT_LIGHTS > 0\\n\\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\\n\\t\\tgetSpotDirectLightIrradiance( spotLights[ i ], geometry, directLight );\\n\\t\\tdotNL = dot( geometry.normal, directLight.direction );\\n\\t\\tdirectLightColor_Diffuse = PI * directLight.color;\\n\\t\\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\\n\\t\\t#ifdef DOUBLE_SIDED\\n\\t\\t\\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\\n\\t\\t#endif\\n\\t}\\n#endif\\n#if NUM_DIR_LIGHTS > 0\\n\\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\\n\\t\\tgetDirectionalDirectLightIrradiance( directionalLights[ i ], geometry, directLight );\\n\\t\\tdotNL = dot( geometry.normal, directLight.direction );\\n\\t\\tdirectLightColor_Diffuse = PI * directLight.color;\\n\\t\\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\\n\\t\\t#ifdef DOUBLE_SIDED\\n\\t\\t\\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\\n\\t\\t#endif\\n\\t}\\n#endif\\n#if NUM_HEMI_LIGHTS > 0\\n\\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\\n\\t\\tvLightFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\\n\\t\\t#ifdef DOUBLE_SIDED\\n\\t\\t\\tvLightBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );\\n\\t\\t#endif\\n\\t}\\n#endif\\n\",lights_pars:\"uniform vec3 ambientLightColor;\\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\\n\\tvec3 irradiance = ambientLightColor;\\n\\t#ifndef PHYSICALLY_CORRECT_LIGHTS\\n\\t\\tirradiance *= PI;\\n\\t#endif\\n\\treturn irradiance;\\n}\\n#if NUM_DIR_LIGHTS > 0\\n\\tstruct DirectionalLight {\\n\\t\\tvec3 direction;\\n\\t\\tvec3 color;\\n\\t\\tint shadow;\\n\\t\\tfloat shadowBias;\\n\\t\\tfloat shadowRadius;\\n\\t\\tvec2 shadowMapSize;\\n\\t};\\n\\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\\n\\tvoid getDirectionalDirectLightIrradiance( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight directLight ) {\\n\\t\\tdirectLight.color = directionalLight.color;\\n\\t\\tdirectLight.direction = directionalLight.direction;\\n\\t\\tdirectLight.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\\tint shadow;\\n\\t\\tfloat shadowBias;\\n\\t\\tfloat shadowRadius;\\n\\t\\tvec2 shadowMapSize;\\n\\t};\\n\\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\\n\\tvoid getPointDirectLightIrradiance( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight directLight ) {\\n\\t\\tvec3 lVector = pointLight.position - geometry.position;\\n\\t\\tdirectLight.direction = normalize( lVector );\\n\\t\\tfloat lightDistance = length( lVector );\\n\\t\\tdirectLight.color = pointLight.color;\\n\\t\\tdirectLight.color *= punctualLightIntensityToIrradianceFactor( lightDistance, pointLight.distance, pointLight.decay );\\n\\t\\tdirectLight.visible = ( directLight.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\\tint shadow;\\n\\t\\tfloat shadowBias;\\n\\t\\tfloat shadowRadius;\\n\\t\\tvec2 shadowMapSize;\\n\\t};\\n\\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\\n\\tvoid getSpotDirectLightIrradiance( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight directLight ) {\\n\\t\\tvec3 lVector = spotLight.position - geometry.position;\\n\\t\\tdirectLight.direction = normalize( lVector );\\n\\t\\tfloat lightDistance = length( lVector );\\n\\t\\tfloat angleCos = dot( directLight.direction, spotLight.direction );\\n\\t\\tif ( angleCos > spotLight.coneCos ) {\\n\\t\\t\\tfloat spotEffect = smoothstep( spotLight.coneCos, spotLight.penumbraCos, angleCos );\\n\\t\\t\\tdirectLight.color = spotLight.color;\\n\\t\\t\\tdirectLight.color *= spotEffect * punctualLightIntensityToIrradianceFactor( lightDistance, spotLight.distance, spotLight.decay );\\n\\t\\t\\tdirectLight.visible = true;\\n\\t\\t} else {\\n\\t\\t\\tdirectLight.color = vec3( 0.0 );\\n\\t\\t\\tdirectLight.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 ltcMat;\\tuniform sampler2D ltcMag;\\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 GeometricContext geometry ) {\\n\\t\\tfloat dotNL = dot( geometry.normal, hemiLight.direction );\\n\\t\\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\\n\\t\\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\\n\\t\\t#ifndef PHYSICALLY_CORRECT_LIGHTS\\n\\t\\t\\tirradiance *= PI;\\n\\t\\t#endif\\n\\t\\treturn irradiance;\\n\\t}\\n#endif\\n#if defined( USE_ENVMAP ) && defined( PHYSICAL )\\n\\tvec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {\\n\\t\\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\\n\\t\\t#ifdef ENVMAP_TYPE_CUBE\\n\\t\\t\\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\\n\\t\\t\\t#ifdef TEXTURE_LOD_EXT\\n\\t\\t\\t\\tvec4 envMapColor = textureCubeLodEXT( envMap, queryVec, float( maxMIPLevel ) );\\n\\t\\t\\t#else\\n\\t\\t\\t\\tvec4 envMapColor = textureCube( envMap, queryVec, float( maxMIPLevel ) );\\n\\t\\t\\t#endif\\n\\t\\t\\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\\n\\t\\t#elif defined( ENVMAP_TYPE_CUBE_UV )\\n\\t\\t\\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\\n\\t\\t\\tvec4 envMapColor = textureCubeUV( queryVec, 1.0 );\\n\\t\\t#else\\n\\t\\t\\tvec4 envMapColor = vec4( 0.0 );\\n\\t\\t#endif\\n\\t\\treturn PI * envMapColor.rgb * envMapIntensity;\\n\\t}\\n\\tfloat getSpecularMIPLevel( const in float blinnShininessExponent, const in int maxMIPLevel ) {\\n\\t\\tfloat maxMIPLevelScalar = float( maxMIPLevel );\\n\\t\\tfloat desiredMIPLevel = maxMIPLevelScalar - 0.79248 - 0.5 * log2( pow2( blinnShininessExponent ) + 1.0 );\\n\\t\\treturn clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );\\n\\t}\\n\\tvec3 getLightProbeIndirectRadiance( const in GeometricContext geometry, const in float blinnShininessExponent, const in int maxMIPLevel ) {\\n\\t\\t#ifdef ENVMAP_MODE_REFLECTION\\n\\t\\t\\tvec3 reflectVec = reflect( -geometry.viewDir, geometry.normal );\\n\\t\\t#else\\n\\t\\t\\tvec3 reflectVec = refract( -geometry.viewDir, geometry.normal, refractionRatio );\\n\\t\\t#endif\\n\\t\\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\\n\\t\\tfloat specularMIPLevel = getSpecularMIPLevel( blinnShininessExponent, maxMIPLevel );\\n\\t\\t#ifdef ENVMAP_TYPE_CUBE\\n\\t\\t\\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\\n\\t\\t\\t#ifdef TEXTURE_LOD_EXT\\n\\t\\t\\t\\tvec4 envMapColor = textureCubeLodEXT( envMap, queryReflectVec, specularMIPLevel );\\n\\t\\t\\t#else\\n\\t\\t\\t\\tvec4 envMapColor = textureCube( envMap, queryReflectVec, specularMIPLevel );\\n\\t\\t\\t#endif\\n\\t\\t\\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\\n\\t\\t#elif defined( ENVMAP_TYPE_CUBE_UV )\\n\\t\\t\\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\\n\\t\\t\\tvec4 envMapColor = textureCubeUV(queryReflectVec, BlinnExponentToGGXRoughness(blinnShininessExponent));\\n\\t\\t#elif defined( ENVMAP_TYPE_EQUIREC )\\n\\t\\t\\tvec2 sampleUV;\\n\\t\\t\\tsampleUV.y = saturate( reflectVec.y * 0.5 + 0.5 );\\n\\t\\t\\tsampleUV.x = atan( reflectVec.z, reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\\n\\t\\t\\t#ifdef TEXTURE_LOD_EXT\\n\\t\\t\\t\\tvec4 envMapColor = texture2DLodEXT( envMap, sampleUV, specularMIPLevel );\\n\\t\\t\\t#else\\n\\t\\t\\t\\tvec4 envMapColor = texture2D( envMap, sampleUV, specularMIPLevel );\\n\\t\\t\\t#endif\\n\\t\\t\\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\\n\\t\\t#elif defined( ENVMAP_TYPE_SPHERE )\\n\\t\\t\\tvec3 reflectView = normalize( ( viewMatrix * vec4( reflectVec, 0.0 ) ).xyz + vec3( 0.0,0.0,1.0 ) );\\n\\t\\t\\t#ifdef TEXTURE_LOD_EXT\\n\\t\\t\\t\\tvec4 envMapColor = texture2DLodEXT( envMap, reflectView.xy * 0.5 + 0.5, specularMIPLevel );\\n\\t\\t\\t#else\\n\\t\\t\\t\\tvec4 envMapColor = texture2D( envMap, reflectView.xy * 0.5 + 0.5, specularMIPLevel );\\n\\t\\t\\t#endif\\n\\t\\t\\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\\n\\t\\t#endif\\n\\t\\treturn envMapColor.rgb * envMapIntensity;\\n\\t}\\n#endif\\n\",lights_phong_fragment:\"BlinnPhongMaterial material;\\nmaterial.diffuseColor = diffuseColor.rgb;\\nmaterial.specularColor = specular;\\nmaterial.specularShininess = shininess;\\nmaterial.specularStrength = specularStrength;\\n\",lights_phong_pars_fragment:\"varying vec3 vViewPosition;\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\nstruct BlinnPhongMaterial {\\n\\tvec3\\tdiffuseColor;\\n\\tvec3\\tspecularColor;\\n\\tfloat\\tspecularShininess;\\n\\tfloat\\tspecularStrength;\\n};\\n#if NUM_RECT_AREA_LIGHTS > 0\\n\\tvoid RE_Direct_RectArea_BlinnPhong( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\\n\\t\\tvec3 matDiffColor = material.diffuseColor;\\n\\t\\tvec3 matSpecColor = material.specularColor;\\n\\t\\tvec3 lightColor = rectAreaLight.color;\\n\\t\\tfloat roughness = BlinnExponentToGGXRoughness( material.specularShininess );\\n\\t\\tvec3 spec = Rect_Area_Light_Specular_Reflectance(\\n\\t\\t\\t\\tgeometry,\\n\\t\\t\\t\\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight,\\n\\t\\t\\t\\troughness,\\n\\t\\t\\t\\tltcMat, ltcMag );\\n\\t\\tvec3 diff = Rect_Area_Light_Diffuse_Reflectance(\\n\\t\\t\\t\\tgeometry,\\n\\t\\t\\t\\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight );\\n\\t\\treflectedLight.directSpecular += lightColor * matSpecColor * spec / PI2;\\n\\t\\treflectedLight.directDiffuse += lightColor * matDiffColor * diff / PI2;\\n\\t}\\n#endif\\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\\n\\t#ifdef TOON\\n\\t\\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\\n\\t#else\\n\\t\\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\\n\\t\\tvec3 irradiance = dotNL * directLight.color;\\n\\t#endif\\n\\t#ifndef PHYSICALLY_CORRECT_LIGHTS\\n\\t\\tirradiance *= PI;\\n\\t#endif\\n\\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\\n\\treflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, material.specularColor, material.specularShininess ) * material.specularStrength;\\n}\\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\\n\\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\\n}\\n#define RE_Direct\\t\\t\\t\\tRE_Direct_BlinnPhong\\n#define RE_Direct_RectArea\\t\\tRE_Direct_RectArea_BlinnPhong\\n#define RE_IndirectDiffuse\\t\\tRE_IndirectDiffuse_BlinnPhong\\n#define Material_LightProbeLOD( material )\\t(0)\\n\",lights_physical_fragment:\"PhysicalMaterial material;\\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\\nmaterial.specularRoughness = clamp( roughnessFactor, 0.04, 1.0 );\\n#ifdef STANDARD\\n\\tmaterial.specularColor = mix( vec3( DEFAULT_SPECULAR_COEFFICIENT ), diffuseColor.rgb, metalnessFactor );\\n#else\\n\\tmaterial.specularColor = mix( vec3( MAXIMUM_SPECULAR_COEFFICIENT * pow2( reflectivity ) ), diffuseColor.rgb, metalnessFactor );\\n\\tmaterial.clearCoat = saturate( clearCoat );\\tmaterial.clearCoatRoughness = clamp( clearCoatRoughness, 0.04, 1.0 );\\n#endif\\n\",lights_physical_pars_fragment:\"struct PhysicalMaterial {\\n\\tvec3\\tdiffuseColor;\\n\\tfloat\\tspecularRoughness;\\n\\tvec3\\tspecularColor;\\n\\t#ifndef STANDARD\\n\\t\\tfloat clearCoat;\\n\\t\\tfloat clearCoatRoughness;\\n\\t#endif\\n};\\n#define MAXIMUM_SPECULAR_COEFFICIENT 0.16\\n#define DEFAULT_SPECULAR_COEFFICIENT 0.04\\nfloat clearCoatDHRApprox( const in float roughness, const in float dotNL ) {\\n\\treturn DEFAULT_SPECULAR_COEFFICIENT + ( 1.0 - DEFAULT_SPECULAR_COEFFICIENT ) * ( pow( 1.0 - dotNL, 5.0 ) * pow( 1.0 - roughness, 2.0 ) );\\n}\\n#if NUM_RECT_AREA_LIGHTS > 0\\n\\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\\n\\t\\tvec3 matDiffColor = material.diffuseColor;\\n\\t\\tvec3 matSpecColor = material.specularColor;\\n\\t\\tvec3 lightColor = rectAreaLight.color;\\n\\t\\tfloat roughness = material.specularRoughness;\\n\\t\\tvec3 spec = Rect_Area_Light_Specular_Reflectance(\\n\\t\\t\\t\\tgeometry,\\n\\t\\t\\t\\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight,\\n\\t\\t\\t\\troughness,\\n\\t\\t\\t\\tltcMat, ltcMag );\\n\\t\\tvec3 diff = Rect_Area_Light_Diffuse_Reflectance(\\n\\t\\t\\t\\tgeometry,\\n\\t\\t\\t\\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight );\\n\\t\\treflectedLight.directSpecular += lightColor * matSpecColor * spec;\\n\\t\\treflectedLight.directDiffuse += lightColor * matDiffColor * diff;\\n\\t}\\n#endif\\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\\n\\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\\n\\tvec3 irradiance = dotNL * directLight.color;\\n\\t#ifndef PHYSICALLY_CORRECT_LIGHTS\\n\\t\\tirradiance *= PI;\\n\\t#endif\\n\\t#ifndef STANDARD\\n\\t\\tfloat clearCoatDHR = material.clearCoat * clearCoatDHRApprox( material.clearCoatRoughness, dotNL );\\n\\t#else\\n\\t\\tfloat clearCoatDHR = 0.0;\\n\\t#endif\\n\\treflectedLight.directSpecular += ( 1.0 - clearCoatDHR ) * irradiance * BRDF_Specular_GGX( directLight, geometry, material.specularColor, material.specularRoughness );\\n\\treflectedLight.directDiffuse += ( 1.0 - clearCoatDHR ) * irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\\n\\t#ifndef STANDARD\\n\\t\\treflectedLight.directSpecular += irradiance * material.clearCoat * BRDF_Specular_GGX( directLight, geometry, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearCoatRoughness );\\n\\t#endif\\n}\\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\\n\\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\\n}\\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 clearCoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\\n\\t#ifndef STANDARD\\n\\t\\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\\n\\t\\tfloat dotNL = dotNV;\\n\\t\\tfloat clearCoatDHR = material.clearCoat * clearCoatDHRApprox( material.clearCoatRoughness, dotNL );\\n\\t#else\\n\\t\\tfloat clearCoatDHR = 0.0;\\n\\t#endif\\n\\treflectedLight.indirectSpecular += ( 1.0 - clearCoatDHR ) * radiance * BRDF_Specular_GGX_Environment( geometry, material.specularColor, material.specularRoughness );\\n\\t#ifndef STANDARD\\n\\t\\treflectedLight.indirectSpecular += clearCoatRadiance * material.clearCoat * BRDF_Specular_GGX_Environment( geometry, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearCoatRoughness );\\n\\t#endif\\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\\n#define Material_BlinnShininessExponent( material ) GGXRoughnessToBlinnExponent( material.specularRoughness )\\n#define Material_ClearCoat_BlinnShininessExponent( material ) GGXRoughnessToBlinnExponent( material.clearCoatRoughness )\\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}\\n\",lights_template:\"\\nGeometricContext geometry;\\ngeometry.position = - vViewPosition;\\ngeometry.normal = normal;\\ngeometry.viewDir = normalize( vViewPosition );\\nIncidentLight directLight;\\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\\n\\tPointLight pointLight;\\n\\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\\n\\t\\tpointLight = pointLights[ i ];\\n\\t\\tgetPointDirectLightIrradiance( pointLight, geometry, directLight );\\n\\t\\t#ifdef USE_SHADOWMAP\\n\\t\\tdirectLight.color *= all( bvec2( pointLight.shadow, directLight.visible ) ) ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ] ) : 1.0;\\n\\t\\t#endif\\n\\t\\tRE_Direct( directLight, geometry, material, reflectedLight );\\n\\t}\\n#endif\\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\\n\\tSpotLight spotLight;\\n\\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\\n\\t\\tspotLight = spotLights[ i ];\\n\\t\\tgetSpotDirectLightIrradiance( spotLight, geometry, directLight );\\n\\t\\t#ifdef USE_SHADOWMAP\\n\\t\\tdirectLight.color *= all( bvec2( spotLight.shadow, directLight.visible ) ) ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\\n\\t\\t#endif\\n\\t\\tRE_Direct( directLight, geometry, material, reflectedLight );\\n\\t}\\n#endif\\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\\n\\tDirectionalLight directionalLight;\\n\\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\\n\\t\\tdirectionalLight = directionalLights[ i ];\\n\\t\\tgetDirectionalDirectLightIrradiance( directionalLight, geometry, directLight );\\n\\t\\t#ifdef USE_SHADOWMAP\\n\\t\\tdirectLight.color *= all( bvec2( directionalLight.shadow, directLight.visible ) ) ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\\n\\t\\t#endif\\n\\t\\tRE_Direct( directLight, geometry, material, reflectedLight );\\n\\t}\\n#endif\\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\\n\\tRectAreaLight rectAreaLight;\\n\\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\\n\\t\\trectAreaLight = rectAreaLights[ i ];\\n\\t\\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\\n\\t}\\n#endif\\n#if defined( RE_IndirectDiffuse )\\n\\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\\n\\t#ifdef USE_LIGHTMAP\\n\\t\\tvec3 lightMapIrradiance = texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\\n\\t\\t#ifndef PHYSICALLY_CORRECT_LIGHTS\\n\\t\\t\\tlightMapIrradiance *= PI;\\n\\t\\t#endif\\n\\t\\tirradiance += lightMapIrradiance;\\n\\t#endif\\n\\t#if ( NUM_HEMI_LIGHTS > 0 )\\n\\t\\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\\n\\t\\t\\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\\n\\t\\t}\\n\\t#endif\\n\\t#if defined( USE_ENVMAP ) && defined( PHYSICAL ) && defined( ENVMAP_TYPE_CUBE_UV )\\n\\t\\tirradiance += getLightProbeIndirectIrradiance( geometry, 8 );\\n\\t#endif\\n\\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\\n#endif\\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\\n\\tvec3 radiance = getLightProbeIndirectRadiance( geometry, Material_BlinnShininessExponent( material ), 8 );\\n\\t#ifndef STANDARD\\n\\t\\tvec3 clearCoatRadiance = getLightProbeIndirectRadiance( geometry, Material_ClearCoat_BlinnShininessExponent( material ), 8 );\\n\\t#else\\n\\t\\tvec3 clearCoatRadiance = vec3( 0.0 );\\n\\t#endif\\n\\tRE_IndirectSpecular( radiance, clearCoatRadiance, geometry, material, reflectedLight );\\n#endif\\n\",logdepthbuf_fragment:\"#if defined(USE_LOGDEPTHBUF) && defined(USE_LOGDEPTHBUF_EXT)\\n\\tgl_FragDepthEXT = log2(vFragDepth) * logDepthBufFC * 0.5;\\n#endif\",logdepthbuf_pars_fragment:\"#ifdef USE_LOGDEPTHBUF\\n\\tuniform float logDepthBufFC;\\n\\t#ifdef USE_LOGDEPTHBUF_EXT\\n\\t\\tvarying float vFragDepth;\\n\\t#endif\\n#endif\\n\",logdepthbuf_pars_vertex:\"#ifdef USE_LOGDEPTHBUF\\n\\t#ifdef USE_LOGDEPTHBUF_EXT\\n\\t\\tvarying float vFragDepth;\\n\\t#endif\\n\\tuniform float logDepthBufFC;\\n#endif\",logdepthbuf_vertex:\"#ifdef USE_LOGDEPTHBUF\\n\\tgl_Position.z = log2(max( EPSILON, gl_Position.w + 1.0 )) * logDepthBufFC;\\n\\t#ifdef USE_LOGDEPTHBUF_EXT\\n\\t\\tvFragDepth = 1.0 + gl_Position.w;\\n\\t#else\\n\\t\\tgl_Position.z = (gl_Position.z - 1.0) * gl_Position.w;\\n\\t#endif\\n#endif\\n\",map_fragment:\"#ifdef USE_MAP\\n\\tvec4 texelColor = texture2D( map, vUv );\\n\\ttexelColor = mapTexelToLinear( texelColor );\\n\\tdiffuseColor *= texelColor;\\n#endif\\n\",map_pars_fragment:\"#ifdef USE_MAP\\n\\tuniform sampler2D map;\\n#endif\\n\",map_particle_fragment:\"#ifdef USE_MAP\\n\\tvec4 mapTexel = texture2D( map, vec2( gl_PointCoord.x, 1.0 - gl_PointCoord.y ) * offsetRepeat.zw + offsetRepeat.xy );\\n\\tdiffuseColor *= mapTexelToLinear( mapTexel );\\n#endif\\n\",map_particle_pars_fragment:\"#ifdef USE_MAP\\n\\tuniform vec4 offsetRepeat;\\n\\tuniform sampler2D map;\\n#endif\\n\",metalnessmap_fragment:\"float metalnessFactor = metalness;\\n#ifdef USE_METALNESSMAP\\n\\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\\n\\tmetalnessFactor *= texelMetalness.r;\\n#endif\\n\",metalnessmap_pars_fragment:\"#ifdef USE_METALNESSMAP\\n\\tuniform sampler2D metalnessMap;\\n#endif\",morphnormal_vertex:\"#ifdef USE_MORPHNORMALS\\n\\tobjectNormal += ( morphNormal0 - normal ) * morphTargetInfluences[ 0 ];\\n\\tobjectNormal += ( morphNormal1 - normal ) * morphTargetInfluences[ 1 ];\\n\\tobjectNormal += ( morphNormal2 - normal ) * morphTargetInfluences[ 2 ];\\n\\tobjectNormal += ( morphNormal3 - normal ) * morphTargetInfluences[ 3 ];\\n#endif\\n\",morphtarget_pars_vertex:\"#ifdef USE_MORPHTARGETS\\n\\t#ifndef USE_MORPHNORMALS\\n\\tuniform float morphTargetInfluences[ 8 ];\\n\\t#else\\n\\tuniform float morphTargetInfluences[ 4 ];\\n\\t#endif\\n#endif\",morphtarget_vertex:\"#ifdef USE_MORPHTARGETS\\n\\ttransformed += ( morphTarget0 - position ) * morphTargetInfluences[ 0 ];\\n\\ttransformed += ( morphTarget1 - position ) * morphTargetInfluences[ 1 ];\\n\\ttransformed += ( morphTarget2 - position ) * morphTargetInfluences[ 2 ];\\n\\ttransformed += ( morphTarget3 - position ) * morphTargetInfluences[ 3 ];\\n\\t#ifndef USE_MORPHNORMALS\\n\\ttransformed += ( morphTarget4 - position ) * morphTargetInfluences[ 4 ];\\n\\ttransformed += ( morphTarget5 - position ) * morphTargetInfluences[ 5 ];\\n\\ttransformed += ( morphTarget6 - position ) * morphTargetInfluences[ 6 ];\\n\\ttransformed += ( morphTarget7 - position ) * morphTargetInfluences[ 7 ];\\n\\t#endif\\n#endif\\n\",normal_flip:\"#ifdef DOUBLE_SIDED\\n\\tfloat flipNormal = ( float( gl_FrontFacing ) * 2.0 - 1.0 );\\n#else\\n\\tfloat flipNormal = 1.0;\\n#endif\\n\",normal_fragment:\"#ifdef FLAT_SHADED\\n\\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\\n\\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\\n\\tvec3 normal = normalize( cross( fdx, fdy ) );\\n#else\\n\\tvec3 normal = normalize( vNormal ) * flipNormal;\\n#endif\\n#ifdef USE_NORMALMAP\\n\\tnormal = perturbNormal2Arb( -vViewPosition, normal );\\n#elif defined( USE_BUMPMAP )\\n\\tnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd() );\\n#endif\\n\",normalmap_pars_fragment:\"#ifdef USE_NORMALMAP\\n\\tuniform sampler2D normalMap;\\n\\tuniform vec2 normalScale;\\n\\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm ) {\\n\\t\\tvec3 q0 = dFdx( eye_pos.xyz );\\n\\t\\tvec3 q1 = dFdy( eye_pos.xyz );\\n\\t\\tvec2 st0 = dFdx( vUv.st );\\n\\t\\tvec2 st1 = dFdy( vUv.st );\\n\\t\\tvec3 S = normalize( q0 * st1.t - q1 * st0.t );\\n\\t\\tvec3 T = normalize( -q0 * st1.s + q1 * st0.s );\\n\\t\\tvec3 N = normalize( surf_norm );\\n\\t\\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\\n\\t\\tmapN.xy = normalScale * mapN.xy;\\n\\t\\tmat3 tsn = mat3( S, T, N );\\n\\t\\treturn normalize( tsn * mapN );\\n\\t}\\n#endif\\n\",packing:\"vec3 packNormalToRGB( const in vec3 normal ) {\\n\\treturn normalize( normal ) * 0.5 + 0.5;\\n}\\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\\n\\treturn 1.0 - 2.0 * rgb.xyz;\\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}\\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 linearClipZ, const in float near, const in float far ) {\\n\\treturn linearClipZ * ( 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 invClipZ, const in float near, const in float far ) {\\n\\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\\n}\\n\",premultiplied_alpha_fragment:\"#ifdef PREMULTIPLIED_ALPHA\\n\\tgl_FragColor.rgb *= gl_FragColor.a;\\n#endif\\n\",project_vertex:\"#ifdef USE_SKINNING\\n\\tvec4 mvPosition = modelViewMatrix * skinned;\\n#else\\n\\tvec4 mvPosition = modelViewMatrix * vec4( transformed, 1.0 );\\n#endif\\ngl_Position = projectionMatrix * mvPosition;\\n\",roughnessmap_fragment:\"float roughnessFactor = roughness;\\n#ifdef USE_ROUGHNESSMAP\\n\\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\\n\\troughnessFactor *= texelRoughness.r;\\n#endif\\n\",roughnessmap_pars_fragment:\"#ifdef USE_ROUGHNESSMAP\\n\\tuniform sampler2D roughnessMap;\\n#endif\",shadowmap_pars_fragment:\"#ifdef USE_SHADOWMAP\\n\\t#if NUM_DIR_LIGHTS > 0\\n\\t\\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHTS ];\\n\\t\\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHTS ];\\n\\t#endif\\n\\t#if NUM_SPOT_LIGHTS > 0\\n\\t\\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHTS ];\\n\\t\\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHTS ];\\n\\t#endif\\n\\t#if NUM_POINT_LIGHTS > 0\\n\\t\\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHTS ];\\n\\t\\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHTS ];\\n\\t#endif\\n\\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\\n\\t\\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\\n\\t}\\n\\tfloat texture2DShadowLerp( sampler2D depths, vec2 size, vec2 uv, float compare ) {\\n\\t\\tconst vec2 offset = vec2( 0.0, 1.0 );\\n\\t\\tvec2 texelSize = vec2( 1.0 ) / size;\\n\\t\\tvec2 centroidUV = floor( uv * size + 0.5 ) / size;\\n\\t\\tfloat lb = texture2DCompare( depths, centroidUV + texelSize * offset.xx, compare );\\n\\t\\tfloat lt = texture2DCompare( depths, centroidUV + texelSize * offset.xy, compare );\\n\\t\\tfloat rb = texture2DCompare( depths, centroidUV + texelSize * offset.yx, compare );\\n\\t\\tfloat rt = texture2DCompare( depths, centroidUV + texelSize * offset.yy, compare );\\n\\t\\tvec2 f = fract( uv * size + 0.5 );\\n\\t\\tfloat a = mix( lb, lt, f.y );\\n\\t\\tfloat b = mix( rb, rt, f.y );\\n\\t\\tfloat c = mix( a, b, f.x );\\n\\t\\treturn c;\\n\\t}\\n\\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\\n\\t\\tshadowCoord.xyz /= shadowCoord.w;\\n\\t\\tshadowCoord.z += shadowBias;\\n\\t\\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\\n\\t\\tbool inFrustum = all( inFrustumVec );\\n\\t\\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\\n\\t\\tbool frustumTest = all( frustumTestVec );\\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\\treturn (\\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( dx0, 0.0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy, 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( 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 / 9.0 );\\n\\t\\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\\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\\treturn (\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy, shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\\n\\t\\t\\t) * ( 1.0 / 9.0 );\\n\\t\\t#else\\n\\t\\t\\treturn texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\\n\\t\\t#endif\\n\\t\\t}\\n\\t\\treturn 1.0;\\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 ) {\\n\\t\\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\\n\\t\\tvec3 lightToPosition = shadowCoord.xyz;\\n\\t\\tvec3 bd3D = normalize( lightToPosition );\\n\\t\\tfloat dp = ( length( lightToPosition ) - shadowBias ) / 1000.0;\\n\\t\\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT )\\n\\t\\t\\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\\n\\t\\t\\treturn (\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\\n\\t\\t\\t) * ( 1.0 / 9.0 );\\n\\t\\t#else\\n\\t\\t\\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\\n\\t\\t#endif\\n\\t}\\n#endif\\n\",shadowmap_pars_vertex:\"#ifdef USE_SHADOWMAP\\n\\t#if NUM_DIR_LIGHTS > 0\\n\\t\\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHTS ];\\n\\t\\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHTS ];\\n\\t#endif\\n\\t#if NUM_SPOT_LIGHTS > 0\\n\\t\\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHTS ];\\n\\t\\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHTS ];\\n\\t#endif\\n\\t#if NUM_POINT_LIGHTS > 0\\n\\t\\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHTS ];\\n\\t\\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHTS ];\\n\\t#endif\\n#endif\\n\",shadowmap_vertex:\"#ifdef USE_SHADOWMAP\\n\\t#if NUM_DIR_LIGHTS > 0\\n\\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\\n\\t\\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * worldPosition;\\n\\t}\\n\\t#endif\\n\\t#if NUM_SPOT_LIGHTS > 0\\n\\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\\n\\t\\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * worldPosition;\\n\\t}\\n\\t#endif\\n\\t#if NUM_POINT_LIGHTS > 0\\n\\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\\n\\t\\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * worldPosition;\\n\\t}\\n\\t#endif\\n#endif\\n\",shadowmask_pars_fragment:\"float getShadowMask() {\\n\\tfloat shadow = 1.0;\\n\\t#ifdef USE_SHADOWMAP\\n\\t#if NUM_DIR_LIGHTS > 0\\n\\tDirectionalLight directionalLight;\\n\\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\\n\\t\\tdirectionalLight = directionalLights[ i ];\\n\\t\\tshadow *= bool( directionalLight.shadow ) ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\\n\\t}\\n\\t#endif\\n\\t#if NUM_SPOT_LIGHTS > 0\\n\\tSpotLight spotLight;\\n\\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\\n\\t\\tspotLight = spotLights[ i ];\\n\\t\\tshadow *= bool( spotLight.shadow ) ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\\n\\t}\\n\\t#endif\\n\\t#if NUM_POINT_LIGHTS > 0\\n\\tPointLight pointLight;\\n\\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\\n\\t\\tpointLight = pointLights[ i ];\\n\\t\\tshadow *= bool( pointLight.shadow ) ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ] ) : 1.0;\\n\\t}\\n\\t#endif\\n\\t#endif\\n\\treturn shadow;\\n}\\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\\t#ifdef BONE_TEXTURE\\n\\t\\tuniform sampler2D boneTexture;\\n\\t\\tuniform int boneTextureWidth;\\n\\t\\tuniform int boneTextureHeight;\\n\\t\\tmat4 getBoneMatrix( const in float i ) {\\n\\t\\t\\tfloat j = i * 4.0;\\n\\t\\t\\tfloat x = mod( j, float( boneTextureWidth ) );\\n\\t\\t\\tfloat y = floor( j / float( boneTextureWidth ) );\\n\\t\\t\\tfloat dx = 1.0 / float( boneTextureWidth );\\n\\t\\t\\tfloat dy = 1.0 / float( boneTextureHeight );\\n\\t\\t\\ty = dy * ( y + 0.5 );\\n\\t\\t\\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\\n\\t\\t\\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\\n\\t\\t\\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\\n\\t\\t\\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\\n\\t\\t\\tmat4 bone = mat4( v1, v2, v3, v4 );\\n\\t\\t\\treturn bone;\\n\\t\\t}\\n\\t#else\\n\\t\\tuniform mat4 boneMatrices[ MAX_BONES ];\\n\\t\\tmat4 getBoneMatrix( const in float i ) {\\n\\t\\t\\tmat4 bone = boneMatrices[ int(i) ];\\n\\t\\t\\treturn bone;\\n\\t\\t}\\n\\t#endif\\n#endif\\n\",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\\tskinned = bindMatrixInverse * skinned;\\n#endif\\n\",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#endif\\n\",specularmap_fragment:\"float specularStrength;\\n#ifdef USE_SPECULARMAP\\n\\tvec4 texelSpecular = texture2D( specularMap, vUv );\\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 gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\\n#endif\\n\",tonemapping_pars_fragment:\"#define saturate(a) clamp( a, 0.0, 1.0 )\\nuniform float toneMappingExposure;\\nuniform float toneMappingWhitePoint;\\nvec3 LinearToneMapping( vec3 color ) {\\n\\treturn toneMappingExposure * color;\\n}\\nvec3 ReinhardToneMapping( vec3 color ) {\\n\\tcolor *= toneMappingExposure;\\n\\treturn saturate( color / ( vec3( 1.0 ) + color ) );\\n}\\n#define Uncharted2Helper( x ) max( ( ( x * ( 0.15 * x + 0.10 * 0.50 ) + 0.20 * 0.02 ) / ( x * ( 0.15 * x + 0.50 ) + 0.20 * 0.30 ) ) - 0.02 / 0.30, vec3( 0.0 ) )\\nvec3 Uncharted2ToneMapping( vec3 color ) {\\n\\tcolor *= toneMappingExposure;\\n\\treturn saturate( Uncharted2Helper( color ) / Uncharted2Helper( vec3( toneMappingWhitePoint ) ) );\\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}\\n\",uv_pars_fragment:\"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\\n\\tvarying vec2 vUv;\\n#endif\",uv_pars_vertex:\"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\\n\\tvarying vec2 vUv;\\n\\tuniform vec4 offsetRepeat;\\n#endif\\n\",uv_vertex:\"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\\n\\tvUv = uv * offsetRepeat.zw + offsetRepeat.xy;\\n#endif\",uv2_pars_fragment:\"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\\n\\tvarying vec2 vUv2;\\n#endif\",uv2_pars_vertex:\"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\\n\\tattribute vec2 uv2;\\n\\tvarying vec2 vUv2;\\n#endif\",uv2_vertex:\"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\\n\\tvUv2 = uv2;\\n#endif\",worldpos_vertex:\"#if defined( USE_ENVMAP ) || defined( PHONG ) || defined( PHYSICAL ) || defined( LAMBERT ) || defined ( USE_SHADOWMAP )\\n\\t#ifdef USE_SKINNING\\n\\t\\tvec4 worldPosition = modelMatrix * skinned;\\n\\t#else\\n\\t\\tvec4 worldPosition = modelMatrix * vec4( transformed, 1.0 );\\n\\t#endif\\n#endif\\n\",cube_frag:\"uniform samplerCube tCube;\\nuniform float tFlip;\\nuniform float opacity;\\nvarying vec3 vWorldPosition;\\n#include \\nvoid main() {\\n\\tgl_FragColor = textureCube( tCube, vec3( tFlip * vWorldPosition.x, vWorldPosition.yz ) );\\n\\tgl_FragColor.a *= opacity;\\n}\\n\",cube_vert:\"varying vec3 vWorldPosition;\\n#include \\nvoid main() {\\n\\tvWorldPosition = transformDirection( position, modelMatrix );\\n\\t#include \\n\\t#include \\n}\\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 \\nvoid main() {\\n\\t#include \\n\\tvec4 diffuseColor = vec4( 1.0 );\\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#if DEPTH_PACKING == 3200\\n\\t\\tgl_FragColor = vec4( vec3( gl_FragCoord.z ), opacity );\\n\\t#elif DEPTH_PACKING == 3201\\n\\t\\tgl_FragColor = packDepthToRGBA( gl_FragCoord.z );\\n\\t#endif\\n}\\n\",depth_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}\\n\",distanceRGBA_frag:\"uniform vec3 lightPos;\\nvarying vec4 vWorldPosition;\\n#include \\n#include \\n#include \\nvoid main () {\\n\\t#include \\n\\tgl_FragColor = packDepthToRGBA( length( vWorldPosition.xyz - lightPos.xyz ) / 1000.0 );\\n}\\n\",distanceRGBA_vert:\"varying vec4 vWorldPosition;\\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\\tvWorldPosition = worldPosition;\\n}\\n\",equirect_frag:\"uniform sampler2D tEquirect;\\nuniform float tFlip;\\nvarying vec3 vWorldPosition;\\n#include \\nvoid main() {\\n\\tvec3 direction = normalize( vWorldPosition );\\n\\tvec2 sampleUV;\\n\\tsampleUV.y = saturate( tFlip * direction.y * -0.5 + 0.5 );\\n\\tsampleUV.x = atan( direction.z, direction.x ) * RECIPROCAL_PI2 + 0.5;\\n\\tgl_FragColor = texture2D( tEquirect, sampleUV );\\n}\\n\",equirect_vert:\"varying vec3 vWorldPosition;\\n#include \\nvoid main() {\\n\\tvWorldPosition = transformDirection( position, modelMatrix );\\n\\t#include \\n\\t#include \\n}\\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 \\nvoid main() {\\n\\t#include \\n\\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\\n\\t\\tdiscard;\\n\\t}\\n\\tvec3 outgoingLight = vec3( 0.0 );\\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\t#include \\n\\t#include \\n\\toutgoingLight = diffuseColor.rgb;\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",linedashed_vert:\"uniform float scale;\\nattribute float lineDistance;\\nvarying float vLineDistance;\\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\tvLineDistance = scale * lineDistance;\\n\\tvec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\\n\\tgl_Position = projectionMatrix * mvPosition;\\n\\t#include \\n\\t#include \\n\\t#include \\n}\\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 \\nvoid main() {\\n\\t#include \\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\\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\\n\\t#ifdef USE_LIGHTMAP\\n\\t\\treflectedLight.indirectDiffuse += texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\\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\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\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#ifdef USE_ENVMAP\\n\\t#include \\n\\t#include \\n\\t#include \\n\\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}\\n\",meshlambert_frag:\"uniform vec3 diffuse;\\nuniform vec3 emissive;\\nuniform float opacity;\\nvarying vec3 vLightFront;\\n#ifdef DOUBLE_SIDED\\n\\tvarying vec3 vLightBack;\\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 \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\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\\treflectedLight.indirectDiffuse = getAmbientLightIrradiance( ambientLightColor );\\n\\t#include \\n\\treflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb );\\n\\t#ifdef DOUBLE_SIDED\\n\\t\\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\\n\\t#else\\n\\t\\treflectedLight.directDiffuse = vLightFront;\\n\\t#endif\\n\\treflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask();\\n\\t#include \\n\\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\\n\\t#include \\n\\t#include \\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshlambert_vert:\"#define LAMBERT\\nvarying vec3 vLightFront;\\n#ifdef DOUBLE_SIDED\\n\\tvarying vec3 vLightBack;\\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 \\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}\\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 \\nvoid main() {\\n\\t#include \\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\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\\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\\n\\t#include \\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshphong_vert:\"#define PHONG\\nvarying vec3 vViewPosition;\\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 \\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#ifndef FLAT_SHADED\\n\\tvNormal = normalize( transformedNormal );\\n#endif\\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}\\n\",meshphysical_frag:\"#define PHYSICAL\\nuniform vec3 diffuse;\\nuniform vec3 emissive;\\nuniform float roughness;\\nuniform float metalness;\\nuniform float opacity;\\n#ifndef STANDARD\\n\\tuniform float clearCoat;\\n\\tuniform float clearCoatRoughness;\\n#endif\\nvarying vec3 vViewPosition;\\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 \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\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 + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshphysical_vert:\"#define PHYSICAL\\nvarying vec3 vViewPosition;\\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 \\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#ifndef FLAT_SHADED\\n\\tvNormal = normalize( transformedNormal );\\n#endif\\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}\\n\",normal_frag:\"#define NORMAL\\nuniform float opacity;\\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\\n\\tvarying vec3 vViewPosition;\\n#endif\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\\n}\\n\",normal_vert:\"#define NORMAL\\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\\n\\tvarying vec3 vViewPosition;\\n#endif\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\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#ifndef FLAT_SHADED\\n\\tvNormal = normalize( transformedNormal );\\n#endif\\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 )\\n\\tvViewPosition = - mvPosition.xyz;\\n#endif\\n}\\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\\t#include \\n\\tvec3 outgoingLight = vec3( 0.0 );\\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\toutgoingLight = diffuseColor.rgb;\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",points_vert:\"uniform float size;\\nuniform float scale;\\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#ifdef USE_SIZEATTENUATION\\n\\t\\tgl_PointSize = size * ( scale / - mvPosition.z );\\n\\t#else\\n\\t\\tgl_PointSize = size;\\n\\t#endif\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",shadow_frag:\"uniform float opacity;\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\tgl_FragColor = vec4( 0.0, 0.0, 0.0, opacity * ( 1.0 - getShadowMask() ) );\\n}\\n\",shadow_vert:\"#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\"};Y.prototype={constructor:Y,isColor:!0,r:1,g:1,b:1,set:function(e){return e&&e.isColor?this.copy(e):\"number\"==typeof e?this.setHex(e):\"string\"==typeof e&&this.setStyle(e),this},setScalar:function(e){return this.r=e,this.g=e,this.b=e,this},setHex:function(e){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,this},setRGB:function(e,t,n){return this.r=e,this.g=t,this.b=n,this},setHSL:function(){function e(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}return function(t,n,i){if(t=fs.euclideanModulo(t,1),n=fs.clamp(n,0,1),i=fs.clamp(i,0,1),0===n)this.r=this.g=this.b=i;else{var r=i<=.5?i*(1+n):i+n-i*n,o=2*i-r;this.r=e(o,r,t+1/3),this.g=e(o,r,t),this.b=e(o,r,t-1/3)}return this}}(),setStyle:function(e){function t(t){void 0!==t&&parseFloat(t)<1&&console.warn(\"THREE.Color: Alpha component of \"+e+\" will be ignored.\")}var n;if(n=/^((?:rgb|hsl)a?)\\(\\s*([^\\)]*)\\)/.exec(e)){var i,r=n[1],o=n[2];switch(r){case\"rgb\":case\"rgba\":if(i=/^(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*(,\\s*([0-9]*\\.?[0-9]+)\\s*)?$/.exec(o))return this.r=Math.min(255,parseInt(i[1],10))/255,this.g=Math.min(255,parseInt(i[2],10))/255,this.b=Math.min(255,parseInt(i[3],10))/255,t(i[5]),this;if(i=/^(\\d+)\\%\\s*,\\s*(\\d+)\\%\\s*,\\s*(\\d+)\\%\\s*(,\\s*([0-9]*\\.?[0-9]+)\\s*)?$/.exec(o))return this.r=Math.min(100,parseInt(i[1],10))/100,this.g=Math.min(100,parseInt(i[2],10))/100,this.b=Math.min(100,parseInt(i[3],10))/100,t(i[5]),this;break;case\"hsl\":case\"hsla\":if(i=/^([0-9]*\\.?[0-9]+)\\s*,\\s*(\\d+)\\%\\s*,\\s*(\\d+)\\%\\s*(,\\s*([0-9]*\\.?[0-9]+)\\s*)?$/.exec(o)){var a=parseFloat(i[1])/360,s=parseInt(i[2],10)/100,l=parseInt(i[3],10)/100;return t(i[5]),this.setHSL(a,s,l)}}}else if(n=/^\\#([A-Fa-f0-9]+)$/.exec(e)){var u=n[1],c=u.length;if(3===c)return this.r=parseInt(u.charAt(0)+u.charAt(0),16)/255,this.g=parseInt(u.charAt(1)+u.charAt(1),16)/255,this.b=parseInt(u.charAt(2)+u.charAt(2),16)/255,this;if(6===c)return this.r=parseInt(u.charAt(0)+u.charAt(1),16)/255,this.g=parseInt(u.charAt(2)+u.charAt(3),16)/255,this.b=parseInt(u.charAt(4)+u.charAt(5),16)/255,this}if(e&&e.length>0){var u=ws[e];void 0!==u?this.setHex(u):console.warn(\"THREE.Color: Unknown color \"+e)}return this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(e){return this.r=e.r,this.g=e.g,this.b=e.b,this},copyGammaToLinear:function(e,t){return void 0===t&&(t=2),this.r=Math.pow(e.r,t),this.g=Math.pow(e.g,t),this.b=Math.pow(e.b,t),this},copyLinearToGamma:function(e,t){void 0===t&&(t=2);var n=t>0?1/t:1;return this.r=Math.pow(e.r,n),this.g=Math.pow(e.g,n),this.b=Math.pow(e.b,n),this},convertGammaToLinear:function(){var e=this.r,t=this.g,n=this.b;return this.r=e*e,this.g=t*t,this.b=n*n,this},convertLinearToGamma:function(){return this.r=Math.sqrt(this.r),this.g=Math.sqrt(this.g),this.b=Math.sqrt(this.b),this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return(\"000000\"+this.getHex().toString(16)).slice(-6)},getHSL:function(e){var t,n,i=e||{h:0,s:0,l:0},r=this.r,o=this.g,a=this.b,s=Math.max(r,o,a),l=Math.min(r,o,a),u=(l+s)/2;if(l===s)t=0,n=0;else{var c=s-l;switch(n=u<=.5?c/(s+l):c/(2-s-l),s){case r:t=(o-a)/c+(othis.max.x||e.ythis.max.y)},containsBox:function(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:function(e,t){return(t||new r).set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(e){return!(e.max.xthis.max.x||e.max.ythis.max.y)},clampPoint:function(e,t){return(t||new r).copy(e).clamp(this.min,this.max)},distanceToPoint:function(){var e=new r;return function(t){return e.copy(t).clamp(this.min,this.max).sub(t).length()}}(),intersect:function(e){return this.min.max(e.min),this.max.min(e.max),this},union:function(e){return this.min.min(e.min),this.max.max(e.max),this},translate:function(e){return this.min.add(e),this.max.add(e),this},equals:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}};var Es=0;Q.prototype={constructor:Q,isMaterial:!0,get needsUpdate(){return this._needsUpdate},set needsUpdate(e){!0===e&&this.update(),this._needsUpdate=e},setValues:function(e){if(void 0!==e)for(var t in e){var n=e[t];if(void 0!==n){var i=this[t];void 0!==i?i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[t]=\"overdraw\"===t?Number(n):n:console.warn(\"THREE.\"+this.type+\": '\"+t+\"' is not a property of this material.\")}else console.warn(\"THREE.Material: '\"+t+\"' parameter is undefined.\")}},toJSON:function(e){function t(e){var t=[];for(var n in e){var i=e[n];delete i.metadata,t.push(i)}return t}var n=void 0===e;n&&(e={textures:{},images:{}});var i={metadata:{version:4.4,type:\"Material\",generator:\"Material.toJSON\"}};if(i.uuid=this.uuid,i.type=this.type,\"\"!==this.name&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),void 0!==this.roughness&&(i.roughness=this.roughness),void 0!==this.metalness&&(i.metalness=this.metalness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),void 0!==this.shininess&&(i.shininess=this.shininess),void 0!==this.clearCoat&&(i.clearCoat=this.clearCoat),void 0!==this.clearCoatRoughness&&(i.clearCoatRoughness=this.clearCoatRoughness),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,i.reflectivity=this.reflectivity),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.size&&(i.size=this.size),void 0!==this.sizeAttenuation&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==go&&(i.blending=this.blending),this.shading!==co&&(i.shading=this.shading),this.side!==ao&&(i.side=this.side),this.vertexColors!==ho&&(i.vertexColors=this.vertexColors),this.opacity<1&&(i.opacity=this.opacity),!0===this.transparent&&(i.transparent=this.transparent),i.depthFunc=this.depthFunc,i.depthTest=this.depthTest,i.depthWrite=this.depthWrite,this.alphaTest>0&&(i.alphaTest=this.alphaTest),!0===this.premultipliedAlpha&&(i.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(i.wireframe=this.wireframe),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),\"round\"!==this.wireframeLinecap&&(i.wireframeLinecap=this.wireframeLinecap),\"round\"!==this.wireframeLinejoin&&(i.wireframeLinejoin=this.wireframeLinejoin),i.skinning=this.skinning,i.morphTargets=this.morphTargets,n){var r=t(e.textures),o=t(e.images);r.length>0&&(i.textures=r),o.length>0&&(i.images=o)}return i},clone:function(){return(new this.constructor).copy(this)},copy:function(e){this.name=e.name,this.fog=e.fog,this.lights=e.lights,this.blending=e.blending,this.side=e.side,this.shading=e.shading,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.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.alphaTest=e.alphaTest,this.premultipliedAlpha=e.premultipliedAlpha,this.overdraw=e.overdraw,this.visible=e.visible,this.clipShadows=e.clipShadows,this.clipIntersection=e.clipIntersection;var t=e.clippingPlanes,n=null;if(null!==t){var i=t.length;n=new Array(i);for(var r=0;r!==i;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this},update:function(){this.dispatchEvent({type:\"update\"})},dispose:function(){this.dispatchEvent({type:\"dispose\"})}},Object.assign(Q.prototype,i.prototype),$.prototype=Object.create(Q.prototype),$.prototype.constructor=$,$.prototype.isShaderMaterial=!0,$.prototype.copy=function(e){return Q.prototype.copy.call(this,e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=_s.clone(e.uniforms),this.defines=e.defines,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.lights=e.lights,this.clipping=e.clipping,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.morphNormals=e.morphNormals,this.extensions=e.extensions,this},$.prototype.toJSON=function(e){var t=Q.prototype.toJSON.call(this,e);return t.uniforms=this.uniforms,t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t},ee.prototype=Object.create(Q.prototype),ee.prototype.constructor=ee,ee.prototype.isMeshDepthMaterial=!0,ee.prototype.copy=function(e){return Q.prototype.copy.call(this,e),this.depthPacking=e.depthPacking,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this},te.prototype={constructor:te,isBox3:!0,set:function(e,t){return this.min.copy(e),this.max.copy(t),this},setFromArray:function(e){for(var t=1/0,n=1/0,i=1/0,r=-1/0,o=-1/0,a=-1/0,s=0,l=e.length;sr&&(r=u),c>o&&(o=c),d>a&&(a=d)}return this.min.set(t,n,i),this.max.set(r,o,a),this},setFromBufferAttribute:function(e){for(var t=1/0,n=1/0,i=1/0,r=-1/0,o=-1/0,a=-1/0,s=0,l=e.count;sr&&(r=u),c>o&&(o=c),d>a&&(a=d)}return this.min.set(t,n,i),this.max.set(r,o,a),this},setFromPoints:function(e){this.makeEmpty();for(var t=0,n=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)},containsBox:function(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:function(e,t){return(t||new c).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:function(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)},intersectsSphere:function(){var e;return function(t){return void 0===e&&(e=new c),this.clampPoint(t.center,e),e.distanceToSquared(t.center)<=t.radius*t.radius}}(),intersectsPlane:function(e){var 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},clampPoint:function(e,t){return(t||new c).copy(e).clamp(this.min,this.max)},distanceToPoint:function(){var e=new c;return function(t){return e.copy(t).clamp(this.min,this.max).sub(t).length()}}(),getBoundingSphere:function(){var e=new c;return function(t){var n=t||new ne;return this.getCenter(n.center),n.radius=.5*this.getSize(e).length(),n}}(),intersect:function(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this},union:function(e){return this.min.min(e.min),this.max.max(e.max),this},applyMatrix4:function(){var e=[new c,new c,new c,new c,new c,new c,new c,new c];return function(t){return this.isEmpty()?this:(e[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),e[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),e[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),e[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),e[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),e[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),e[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),e[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(e),this)}}(),translate:function(e){return this.min.add(e),this.max.add(e),this},equals:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}},ne.prototype={constructor:ne,set:function(e,t){return this.center.copy(e),this.radius=t,this},setFromPoints:function(){var e;return function(t,n){void 0===e&&(e=new te);var i=this.center;void 0!==n?i.copy(n):e.setFromPoints(t).getCenter(i);for(var r=0,o=0,a=t.length;othis.radius*this.radius&&(i.sub(this.center).normalize(),i.multiplyScalar(this.radius).add(this.center)),i},getBoundingBox:function(e){var t=e||new te;return t.set(this.center,this.center),t.expandByScalar(this.radius),t},applyMatrix4:function(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this},translate:function(e){return this.center.add(e),this},equals:function(e){return e.center.equals(this.center)&&e.radius===this.radius}},ie.prototype={constructor:ie,isMatrix3:!0,set:function(e,t,n,i,r,o,a,s,l){var u=this.elements;return u[0]=e,u[1]=i,u[2]=a,u[3]=t,u[4]=r,u[5]=s,u[6]=n,u[7]=o,u[8]=l,this},identity:function(){return this.set(1,0,0,0,1,0,0,0,1),this},clone:function(){return(new this.constructor).fromArray(this.elements)},copy:function(e){var t=e.elements;return this.set(t[0],t[3],t[6],t[1],t[4],t[7],t[2],t[5],t[8]),this},setFromMatrix4:function(e){var 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},applyToBufferAttribute:function(){var e;return function(t){void 0===e&&(e=new c);for(var n=0,i=t.count;n1))return i.copy(r).multiplyScalar(a).add(t.start)}else if(0===this.distanceToPoint(t.start))return i.copy(t.start)}}(),intersectsLine:function(e){var t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0},intersectsBox:function(e){return e.intersectsPlane(this)},intersectsSphere:function(e){return e.intersectsPlane(this)},coplanarPoint:function(e){return(e||new c).copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(){var e=new c,t=new ie;return function(n,i){var r=this.coplanarPoint(e).applyMatrix4(n),o=i||t.getNormalMatrix(n),a=this.normal.applyMatrix3(o).normalize();return this.constant=-r.dot(a),this}}(),translate:function(e){return this.constant=this.constant-e.dot(this.normal),this},equals:function(e){return e.normal.equals(this.normal)&&e.constant===this.constant}},oe.prototype={constructor:oe,set:function(e,t,n,i,r,o){var a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(n),a[3].copy(i),a[4].copy(r),a[5].copy(o),this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){for(var t=this.planes,n=0;n<6;n++)t[n].copy(e.planes[n]);return this},setFromMatrix:function(e){var t=this.planes,n=e.elements,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],u=n[6],c=n[7],d=n[8],h=n[9],f=n[10],p=n[11],m=n[12],g=n[13],v=n[14],y=n[15];return t[0].setComponents(a-i,c-s,p-d,y-m).normalize(),t[1].setComponents(a+i,c+s,p+d,y+m).normalize(),t[2].setComponents(a+r,c+l,p+h,y+g).normalize(),t[3].setComponents(a-r,c-l,p-h,y-g).normalize(),t[4].setComponents(a-o,c-u,p-f,y-v).normalize(),t[5].setComponents(a+o,c+u,p+f,y+v).normalize(),this},intersectsObject:function(){var e=new ne;return function(t){var n=t.geometry;return null===n.boundingSphere&&n.computeBoundingSphere(),e.copy(n.boundingSphere).applyMatrix4(t.matrixWorld),this.intersectsSphere(e)}}(),intersectsSprite:function(){var e=new ne;return function(t){return e.center.set(0,0,0),e.radius=.7071067811865476,e.applyMatrix4(t.matrixWorld),this.intersectsSphere(e)}}(),intersectsSphere:function(e){for(var t=this.planes,n=e.center,i=-e.radius,r=0;r<6;r++){if(t[r].distanceToPoint(n)0?n.min.x:n.max.x,t.x=o.normal.x>0?n.max.x:n.min.x,e.y=o.normal.y>0?n.min.y:n.max.y,t.y=o.normal.y>0?n.max.y:n.min.y,e.z=o.normal.z>0?n.min.z:n.max.z,t.z=o.normal.z>0?n.max.z:n.min.z;var a=o.distanceToPoint(e),s=o.distanceToPoint(t);if(a<0&&s<0)return!1}return!0}}(),containsPoint:function(e){for(var t=this.planes,n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}},se.prototype={constructor:se,set:function(e,t){return this.origin.copy(e),this.direction.copy(t),this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this},at:function(e,t){return(t||new c).copy(this.direction).multiplyScalar(e).add(this.origin)},lookAt:function(e){return this.direction.copy(e).sub(this.origin).normalize(),this},recast:function(){var e=new c;return function(t){return this.origin.copy(this.at(t,e)),this}}(),closestPointToPoint:function(e,t){var n=t||new c;n.subVectors(e,this.origin);var i=n.dot(this.direction);return i<0?n.copy(this.origin):n.copy(this.direction).multiplyScalar(i).add(this.origin)},distanceToPoint:function(e){return Math.sqrt(this.distanceSqToPoint(e))},distanceSqToPoint:function(){var e=new c;return function(t){var n=e.subVectors(t,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(t):(e.copy(this.direction).multiplyScalar(n).add(this.origin),e.distanceToSquared(t))}}(),distanceSqToSegment:function(){var e=new c,t=new c,n=new c;return function(i,r,o,a){e.copy(i).add(r).multiplyScalar(.5),t.copy(r).sub(i).normalize(),n.copy(this.origin).sub(e);var s,l,u,c,d=.5*i.distanceTo(r),h=-this.direction.dot(t),f=n.dot(this.direction),p=-n.dot(t),m=n.lengthSq(),g=Math.abs(1-h*h);if(g>0)if(s=h*p-f,l=h*f-p,c=d*g,s>=0)if(l>=-c)if(l<=c){var v=1/g;s*=v,l*=v,u=s*(s+h*l+2*f)+l*(h*s+l+2*p)+m}else l=d,s=Math.max(0,-(h*l+f)),u=-s*s+l*(l+2*p)+m;else l=-d,s=Math.max(0,-(h*l+f)),u=-s*s+l*(l+2*p)+m;else l<=-c?(s=Math.max(0,-(-h*d+f)),l=s>0?-d:Math.min(Math.max(-d,-p),d),u=-s*s+l*(l+2*p)+m):l<=c?(s=0,l=Math.min(Math.max(-d,-p),d),u=l*(l+2*p)+m):(s=Math.max(0,-(h*d+f)),l=s>0?d:Math.min(Math.max(-d,-p),d),u=-s*s+l*(l+2*p)+m);else l=h>0?-d:d,s=Math.max(0,-(h*l+f)),u=-s*s+l*(l+2*p)+m;return o&&o.copy(this.direction).multiplyScalar(s).add(this.origin),a&&a.copy(t).multiplyScalar(l).add(e),u}}(),intersectSphere:function(){var e=new c;return function(t,n){e.subVectors(t.center,this.origin);var i=e.dot(this.direction),r=e.dot(e)-i*i,o=t.radius*t.radius;if(r>o)return null;var a=Math.sqrt(o-r),s=i-a,l=i+a;return s<0&&l<0?null:s<0?this.at(l,n):this.at(s,n)}}(),intersectsSphere:function(e){return this.distanceToPoint(e.center)<=e.radius},distanceToPlane:function(e){var t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;var n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null},intersectPlane:function(e,t){var n=this.distanceToPlane(e);return null===n?null:this.at(n,t)},intersectsPlane:function(e){var t=e.distanceToPoint(this.origin);return 0===t||e.normal.dot(this.direction)*t<0},intersectBox:function(e,t){var n,i,r,o,a,s,l=1/this.direction.x,u=1/this.direction.y,c=1/this.direction.z,d=this.origin;return l>=0?(n=(e.min.x-d.x)*l,i=(e.max.x-d.x)*l):(n=(e.max.x-d.x)*l,i=(e.min.x-d.x)*l),u>=0?(r=(e.min.y-d.y)*u,o=(e.max.y-d.y)*u):(r=(e.max.y-d.y)*u,o=(e.min.y-d.y)*u),n>o||r>i?null:((r>n||n!==n)&&(n=r),(o=0?(a=(e.min.z-d.z)*c,s=(e.max.z-d.z)*c):(a=(e.max.z-d.z)*c,s=(e.min.z-d.z)*c),n>s||a>i?null:((a>n||n!==n)&&(n=a),(s=0?n:i,t)))},intersectsBox:function(){var e=new c;return function(t){return null!==this.intersectBox(t,e)}}(),intersectTriangle:function(){var e=new c,t=new c,n=new c,i=new c;return function(r,o,a,s,l){t.subVectors(o,r),n.subVectors(a,r),i.crossVectors(t,n);var u,c=this.direction.dot(i);if(c>0){if(s)return null;u=1}else{if(!(c<0))return null;u=-1,c=-c}e.subVectors(this.origin,r);var d=u*this.direction.dot(n.crossVectors(e,n));if(d<0)return null;var h=u*this.direction.dot(t.cross(e));if(h<0)return null;if(d+h>c)return null;var f=-u*e.dot(i);return f<0?null:this.at(f/c,l)}}(),applyMatrix4:function(e){return this.direction.add(this.origin).applyMatrix4(e),this.origin.applyMatrix4(e),this.direction.sub(this.origin),this.direction.normalize(),this},equals:function(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}},le.RotationOrders=[\"XYZ\",\"YZX\",\"ZXY\",\"XZY\",\"YXZ\",\"ZYX\"],le.DefaultOrder=\"XYZ\",le.prototype={constructor:le,isEuler:!0,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:function(e,t,n,i){return this._x=e,this._y=t,this._z=n,this._order=i||this._order,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._order)},copy:function(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this.onChangeCallback(),this},setFromRotationMatrix:function(e,t,n){var i=fs.clamp,r=e.elements,o=r[0],a=r[4],s=r[8],l=r[1],u=r[5],c=r[9],d=r[2],h=r[6],f=r[10];return t=t||this._order,\"XYZ\"===t?(this._y=Math.asin(i(s,-1,1)),Math.abs(s)<.99999?(this._x=Math.atan2(-c,f),this._z=Math.atan2(-a,o)):(this._x=Math.atan2(h,u),this._z=0)):\"YXZ\"===t?(this._x=Math.asin(-i(c,-1,1)),Math.abs(c)<.99999?(this._y=Math.atan2(s,f),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-d,o),this._z=0)):\"ZXY\"===t?(this._x=Math.asin(i(h,-1,1)),Math.abs(h)<.99999?(this._y=Math.atan2(-d,f),this._z=Math.atan2(-a,u)):(this._y=0,this._z=Math.atan2(l,o))):\"ZYX\"===t?(this._y=Math.asin(-i(d,-1,1)),Math.abs(d)<.99999?(this._x=Math.atan2(h,f),this._z=Math.atan2(l,o)):(this._x=0,this._z=Math.atan2(-a,u))):\"YZX\"===t?(this._z=Math.asin(i(l,-1,1)),Math.abs(l)<.99999?(this._x=Math.atan2(-c,u),this._y=Math.atan2(-d,o)):(this._x=0,this._y=Math.atan2(s,f))):\"XZY\"===t?(this._z=Math.asin(-i(a,-1,1)),Math.abs(a)<.99999?(this._x=Math.atan2(h,u),this._y=Math.atan2(s,o)):(this._x=Math.atan2(-c,f),this._y=0)):console.warn(\"THREE.Euler: .setFromRotationMatrix() given unsupported order: \"+t),this._order=t,!1!==n&&this.onChangeCallback(),this},setFromQuaternion:function(){var e;return function(t,n,i){return void 0===e&&(e=new d),e.makeRotationFromQuaternion(t),this.setFromRotationMatrix(e,n,i)}}(),setFromVector3:function(e,t){return this.set(e.x,e.y,e.z,t||this._order)},reorder:function(){var e=new u;return function(t){return e.setFromEuler(this),this.setFromQuaternion(e,t)}}(),equals:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order},fromArray:function(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:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e},toVector3:function(e){return e?e.set(this._x,this._y,this._z):new c(this._x,this._y,this._z)},onChange:function(e){return this.onChangeCallback=e,this},onChangeCallback:function(){}},ue.prototype={constructor:ue,set:function(e){this.mask=1<1){for(var t=0;t1)for(var t=0;t0){r.children=[];for(var o=0;o0&&(i.geometries=a),s.length>0&&(i.materials=s),l.length>0&&(i.textures=l),u.length>0&&(i.images=u)}return i.object=r,i},clone:function(e){return(new this.constructor).copy(this,e)},copy:function(e,t){if(void 0===t&&(t=!0),this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),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.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.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(var n=0;n0?o.multiplyScalar(1/Math.sqrt(a)):o.set(0,0,0)}}(),he.barycoordFromPoint=function(){var e=new c,t=new c,n=new c;return function(i,r,o,a,s){e.subVectors(a,r),t.subVectors(o,r),n.subVectors(i,r);var l=e.dot(e),u=e.dot(t),d=e.dot(n),h=t.dot(t),f=t.dot(n),p=l*h-u*u,m=s||new c;if(0===p)return m.set(-2,-1,-1);var g=1/p,v=(h*d-u*f)*g,y=(l*f-u*d)*g;return m.set(1-v-y,y,v)}}(),he.containsPoint=function(){var e=new c;return function(t,n,i,r){var o=he.barycoordFromPoint(t,n,i,r,e);return o.x>=0&&o.y>=0&&o.x+o.y<=1}}(),he.prototype={constructor:he,set:function(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this},setFromPointsAndIndices:function(e,t,n,i){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[i]),this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this},area:function(){var e=new c,t=new c;return function(){return e.subVectors(this.c,this.b),t.subVectors(this.a,this.b),.5*e.cross(t).length()}}(),midpoint:function(e){return(e||new c).addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},normal:function(e){return he.normal(this.a,this.b,this.c,e)},plane:function(e){return(e||new re).setFromCoplanarPoints(this.a,this.b,this.c)},barycoordFromPoint:function(e,t){return he.barycoordFromPoint(e,this.a,this.b,this.c,t)},containsPoint:function(e){return he.containsPoint(e,this.a,this.b,this.c)},closestPointToPoint:function(){var e,t,n,i;return function(r,o){void 0===e&&(e=new re,t=[new de,new de,new de],n=new c,i=new c);var a=o||new c,s=1/0;if(e.setFromCoplanarPoints(this.a,this.b,this.c),e.projectPoint(r,n),!0===this.containsPoint(n))a.copy(n);else{t[0].set(this.a,this.b),t[1].set(this.b,this.c),t[2].set(this.c,this.a);for(var l=0;l0,s=o[1]&&o[1].length>0,l=e.morphTargets,u=l.length;if(u>0){t=[];for(var c=0;c0){d=[];for(var c=0;c0)for(var m=0;m0&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var e,t,n;for(this.computeFaceNormals(),e=0,t=this.faces.length;e0&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var e,t,n,i,r;for(n=0,i=this.faces.length;n0&&(e+=t[n].distanceTo(t[n-1])),this.lineDistances[n]=e},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new te),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new ne),this.boundingSphere.setFromPoints(this.vertices)},merge:function(e,t,n){if(!1===(e&&e.isGeometry))return void console.error(\"THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.\",e);var i,r=this.vertices.length,o=this.vertices,a=e.vertices,s=this.faces,l=e.faces,u=this.faceVertexUvs[0],c=e.faceVertexUvs[0],d=this.colors,h=e.colors;void 0===n&&(n=0),void 0!==t&&(i=(new ie).getNormalMatrix(t));for(var f=0,p=a.length;f=0;n--){var p=h[n];for(this.faces.splice(p,1),a=0,s=this.faceVertexUvs.length;a0,_=v.vertexNormals.length>0,x=1!==v.color.r||1!==v.color.g||1!==v.color.b,w=v.vertexColors.length>0,M=0;if(M=e(M,0,0),M=e(M,1,!0),M=e(M,2,!1),M=e(M,3,y),M=e(M,4,b),M=e(M,5,_),M=e(M,6,x),M=e(M,7,w),c.push(M),c.push(v.a,v.b,v.c),c.push(v.materialIndex),y){var S=this.faceVertexUvs[0][l];c.push(i(S[0]),i(S[1]),i(S[2]))}if(b&&c.push(t(v.normal)),_){var E=v.vertexNormals;c.push(t(E[0]),t(E[1]),t(E[2]))}if(x&&c.push(n(v.color)),w){var T=v.vertexColors;c.push(n(T[0]),n(T[1]),n(T[2]))}}return r.data={},r.data.vertices=s,r.data.normals=d,f.length>0&&(r.data.colors=f),m.length>0&&(r.data.uvs=[m]),r.data.faces=c,r},clone:function(){return(new Oe).copy(this)},copy:function(e){var t,n,i,r,o,a;this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingBox=null,this.boundingSphere=null,this.name=e.name;var s=e.vertices;for(t=0,n=s.length;t65535?we:_e)(e,1):this.index=e},addAttribute:function(e,t){return!1===(t&&t.isBufferAttribute)&&!1===(t&&t.isInterleavedBufferAttribute)?(console.warn(\"THREE.BufferGeometry: .addAttribute() now expects ( name, attribute ).\"),void this.addAttribute(e,new me(arguments[1],arguments[2]))):\"index\"===e?(console.warn(\"THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute.\"),void this.setIndex(t)):(this.attributes[e]=t,this)},getAttribute:function(e){return this.attributes[e]},removeAttribute:function(e){return delete this.attributes[e],this},addGroup:function(e,t,n){this.groups.push({start:e,count:t,materialIndex:void 0!==n?n:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(e,t){this.drawRange.start=e,this.drawRange.count=t},applyMatrix:function(e){var t=this.attributes.position;void 0!==t&&(e.applyToBufferAttribute(t),t.needsUpdate=!0);var n=this.attributes.normal;if(void 0!==n){(new ie).getNormalMatrix(e).applyToBufferAttribute(n),n.needsUpdate=!0}return null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},rotateX:function(){var e;return function(t){return void 0===e&&(e=new d),e.makeRotationX(t),this.applyMatrix(e),this}}(),rotateY:function(){var e;return function(t){return void 0===e&&(e=new d),e.makeRotationY(t),this.applyMatrix(e),this}}(),rotateZ:function(){var e;return function(t){return void 0===e&&(e=new d),e.makeRotationZ(t),this.applyMatrix(e),this}}(),translate:function(){var e;return function(t,n,i){return void 0===e&&(e=new d),e.makeTranslation(t,n,i),this.applyMatrix(e),this}}(),scale:function(){var e;return function(t,n,i){return void 0===e&&(e=new d),e.makeScale(t,n,i),this.applyMatrix(e),this}}(),lookAt:function(){var e;return function(t){void 0===e&&(e=new ce),e.lookAt(t),e.updateMatrix(),this.applyMatrix(e.matrix)}}(),center:function(){this.computeBoundingBox();var e=this.boundingBox.getCenter().negate();return this.translate(e.x,e.y,e.z),e},setFromObject:function(e){var t=e.geometry;if(e.isPoints||e.isLine){var n=new Me(3*t.vertices.length,3),i=new Me(3*t.colors.length,3);if(this.addAttribute(\"position\",n.copyVector3sArray(t.vertices)),this.addAttribute(\"color\",i.copyColorsArray(t.colors)),t.lineDistances&&t.lineDistances.length===t.vertices.length){var r=new Me(t.lineDistances.length,1);this.addAttribute(\"lineDistance\",r.copyArray(t.lineDistances))}null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone())}else e.isMesh&&t&&t.isGeometry&&this.fromGeometry(t);return this},updateFromObject:function(e){var t=e.geometry;if(e.isMesh){var n=t.__directGeometry;if(!0===t.elementsNeedUpdate&&(n=void 0,t.elementsNeedUpdate=!1),void 0===n)return this.fromGeometry(t);n.verticesNeedUpdate=t.verticesNeedUpdate,n.normalsNeedUpdate=t.normalsNeedUpdate,n.colorsNeedUpdate=t.colorsNeedUpdate,n.uvsNeedUpdate=t.uvsNeedUpdate,n.groupsNeedUpdate=t.groupsNeedUpdate,t.verticesNeedUpdate=!1,t.normalsNeedUpdate=!1,t.colorsNeedUpdate=!1,t.uvsNeedUpdate=!1,t.groupsNeedUpdate=!1,t=n}var i;return!0===t.verticesNeedUpdate&&(i=this.attributes.position,void 0!==i&&(i.copyVector3sArray(t.vertices),i.needsUpdate=!0),t.verticesNeedUpdate=!1),!0===t.normalsNeedUpdate&&(i=this.attributes.normal,void 0!==i&&(i.copyVector3sArray(t.normals),i.needsUpdate=!0),t.normalsNeedUpdate=!1),!0===t.colorsNeedUpdate&&(i=this.attributes.color,void 0!==i&&(i.copyColorsArray(t.colors),i.needsUpdate=!0),t.colorsNeedUpdate=!1),t.uvsNeedUpdate&&(i=this.attributes.uv,void 0!==i&&(i.copyVector2sArray(t.uvs),i.needsUpdate=!0),t.uvsNeedUpdate=!1),t.lineDistancesNeedUpdate&&(i=this.attributes.lineDistance,void 0!==i&&(i.copyArray(t.lineDistances),i.needsUpdate=!0),t.lineDistancesNeedUpdate=!1),t.groupsNeedUpdate&&(t.computeGroups(e.geometry),this.groups=t.groups,t.groupsNeedUpdate=!1),this},fromGeometry:function(e){return e.__directGeometry=(new Ee).fromGeometry(e),this.fromDirectGeometry(e.__directGeometry)},fromDirectGeometry:function(e){var t=new Float32Array(3*e.vertices.length);if(this.addAttribute(\"position\",new me(t,3).copyVector3sArray(e.vertices)),e.normals.length>0){var n=new Float32Array(3*e.normals.length);this.addAttribute(\"normal\",new me(n,3).copyVector3sArray(e.normals))}if(e.colors.length>0){var i=new Float32Array(3*e.colors.length);this.addAttribute(\"color\",new me(i,3).copyColorsArray(e.colors))}if(e.uvs.length>0){var r=new Float32Array(2*e.uvs.length);this.addAttribute(\"uv\",new me(r,2).copyVector2sArray(e.uvs))}if(e.uvs2.length>0){var o=new Float32Array(2*e.uvs2.length);this.addAttribute(\"uv2\",new me(o,2).copyVector2sArray(e.uvs2))}if(e.indices.length>0){var a=Te(e.indices)>65535?Uint32Array:Uint16Array,s=new a(3*e.indices.length);this.setIndex(new me(s,1).copyIndicesArray(e.indices))}this.groups=e.groups;for(var l in e.morphTargets){for(var u=[],c=e.morphTargets[l],d=0,h=c.length;d0){var m=new Me(4*e.skinIndices.length,4);this.addAttribute(\"skinIndex\",m.copyVector4sArray(e.skinIndices))}if(e.skinWeights.length>0){var g=new Me(4*e.skinWeights.length,4);this.addAttribute(\"skinWeight\",g.copyVector4sArray(e.skinWeights))}return null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone()),this},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new te);var e=this.attributes.position;void 0!==e?this.boundingBox.setFromBufferAttribute(e):this.boundingBox.makeEmpty(),(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The \"position\" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){var e=new te,t=new c;return function(){null===this.boundingSphere&&(this.boundingSphere=new ne);var n=this.attributes.position;if(n){var i=this.boundingSphere.center;e.setFromBufferAttribute(n),e.getCenter(i);for(var r=0,o=0,a=n.count;o0&&(e.data.groups=JSON.parse(JSON.stringify(s)));var l=this.boundingSphere;return null!==l&&(e.data.boundingSphere={center:l.center.toArray(),radius:l.radius}),e},clone:function(){return(new Ce).copy(this)},copy:function(e){var t,n,i;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.name=e.name;var r=e.index;null!==r&&this.setIndex(r.clone());var o=e.attributes;for(t in o){var a=o[t];this.addAttribute(t,a.clone())}var s=e.morphAttributes;for(t in s){var l=[],u=s[t];for(n=0,i=u.length;n0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var t=0,n=e.length;tt.far?null:{distance:l,point:_.clone(),object:e}}function n(n,i,r,o,a,c,d,h){s.fromBufferAttribute(o,c),l.fromBufferAttribute(o,d),u.fromBufferAttribute(o,h);var f=t(n,i,r,s,l,u,b);return f&&(a&&(m.fromBufferAttribute(a,c),g.fromBufferAttribute(a,d),v.fromBufferAttribute(a,h),f.uv=e(b,s,l,u,m,g,v)),f.face=new fe(c,d,h,he.normal(s,l,u)),f.faceIndex=c),f}var i=new d,o=new se,a=new ne,s=new c,l=new c,u=new c,h=new c,f=new c,p=new c,m=new r,g=new r,v=new r,y=new c,b=new c,_=new c;return function(r,c){var d=this.geometry,y=this.material,_=this.matrixWorld;if(void 0!==y&&(null===d.boundingSphere&&d.computeBoundingSphere(),a.copy(d.boundingSphere),a.applyMatrix4(_),!1!==r.ray.intersectsSphere(a)&&(i.getInverse(_),o.copy(r.ray).applyMatrix4(i),null===d.boundingBox||!1!==o.intersectsBox(d.boundingBox)))){var x;if(d.isBufferGeometry){var w,M,S,E,T,k=d.index,O=d.attributes.position,C=d.attributes.uv;if(null!==k)for(E=0,T=k.count;E0&&(L=z);for(var F=0,j=B.length;Fthis.scale.x*this.scale.y/4||n.push({distance:Math.sqrt(i),point:this.position,face:null,object:this})}}(),clone:function(){return new this.constructor(this.material).copy(this)}}),vt.prototype=Object.assign(Object.create(ce.prototype),{constructor:vt,copy:function(e){ce.prototype.copy.call(this,e,!1);for(var t=e.levels,n=0,i=t.length;n1){e.setFromMatrixPosition(n.matrixWorld),t.setFromMatrixPosition(this.matrixWorld);var r=e.distanceTo(t);i[0].object.visible=!0;for(var o=1,a=i.length;o=i[o].distance;o++)i[o-1].object.visible=!1,i[o].object.visible=!0;for(;oa)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:h.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}else for(var b=0,_=v.length/3-1;b<_;b+=p){u.fromArray(v,3*b),d.fromArray(v,3*b+3);var M=t.distanceSqToSegment(u,d,f,h);if(!(M>a)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:h.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}}else if(s.isGeometry)for(var E=s.vertices,T=E.length,b=0;ba)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:h.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Mt.prototype=Object.assign(Object.create(wt.prototype),{constructor:Mt,isLineSegments:!0}),St.prototype=Object.create(Q.prototype),St.prototype.constructor=St,St.prototype.isPointsMaterial=!0,St.prototype.copy=function(e){return Q.prototype.copy.call(this,e),this.color.copy(e.color),this.map=e.map,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this},Et.prototype=Object.assign(Object.create(ce.prototype),{constructor:Et,isPoints:!0,raycast:function(){var e=new d,t=new se,n=new ne;return function(i,r){function o(e,n){var o=t.distanceSqToPoint(e);if(oi.far)return;r.push({distance:u,distanceToRay:Math.sqrt(o),point:s.clone(),index:n,face:null,object:a})}}var a=this,s=this.geometry,l=this.matrixWorld,u=i.params.Points.threshold;if(null===s.boundingSphere&&s.computeBoundingSphere(),n.copy(s.boundingSphere),n.applyMatrix4(l),!1!==i.ray.intersectsSphere(n)){e.getInverse(l),t.copy(i.ray).applyMatrix4(e);var d=u/((this.scale.x+this.scale.y+this.scale.z)/3),h=d*d,f=new c;if(s.isBufferGeometry){var p=s.index,m=s.attributes,g=m.position.array;if(null!==p)for(var v=p.array,y=0,b=v.length;y=-Number.EPSILON&&O>=-Number.EPSILON&&k>=-Number.EPSILON))return!1;return!0}return function(t,n){var i=t.length;if(i<3)return null;var r,o,a,s=[],l=[],u=[];if(Cs.area(t)>0)for(o=0;o2;){if(d--<=0)return console.warn(\"THREE.ShapeUtils: Unable to triangulate polygon! in triangulate()\"),n?u:s;if(r=o,c<=r&&(r=0),o=r+1,c<=o&&(o=0),a=o+1,c<=a&&(a=0),e(t,r,o,a,c,l)){var h,f,p,m,g;for(h=l[r],f=l[o],p=l[a],s.push([t[h],t[f],t[p]]),u.push([l[r],l[o],l[a]]),m=o,g=o+1;g2&&e[t-1].equals(e[0])&&e.pop()}function i(e,t,n){return e.x!==t.x?e.xNumber.EPSILON){var p;if(h>0){if(f<0||f>h)return[];if((p=u*c-l*d)<0||p>h)return[]}else{if(f>0||f0||pE?[]:_===E?o?[]:[y]:x<=E?[y,b]:[y,M]}function o(e,t,n,i){var r=t.x-e.x,o=t.y-e.y,a=n.x-e.x,s=n.y-e.y,l=i.x-e.x,u=i.y-e.y,c=r*s-o*a,d=r*u-o*l;if(Math.abs(c)>Number.EPSILON){var h=l*s-u*a;return c>0?d>=0&&h>=0:d>=0||h>=0}return d>0}n(e),t.forEach(n);for(var a,s,l,u,c,d,h={},f=e.concat(),p=0,m=t.length;p0;){if(--x<0){console.log(\"Infinite Loop! Holes left:\"+g.length+\", Probably Hole outside Shape!\");break}for(a=_;ai&&(a=0);var s=o(m[e],m[r],m[a],n[t]);if(!s)return!1;var l=n.length-1,u=t-1;u<0&&(u=l);var c=t+1;return c>l&&(c=0),!!(s=o(n[t],n[u],n[c],m[e]))}(a,w)&&!function(e,t){var n,i,o;for(n=0;n0)return!0;return!1}(s,l)&&!function(e,n){var i,o,a,s,l;for(i=0;i0)return!0;return!1}(s,l)){i=w,g.splice(y,1),d=m.slice(0,a+1),h=m.slice(a),f=n.slice(i),p=n.slice(0,i+1),m=d.concat(f).concat(p).concat(h),_=a;break}if(i>=0)break;v[c]=!0}if(i>=0)break}}return m}(e,t),v=Cs.triangulate(g,!1);for(a=0,s=v.length;aNumber.EPSILON){var f=Math.sqrt(d),p=Math.sqrt(u*u+c*c),m=t.x-l/f,g=t.y+s/f,v=n.x-c/p,y=n.y+u/p,b=((v-m)*c-(y-g)*u)/(s*c-l*u);i=m+s*b-e.x,o=g+l*b-e.y;var _=i*i+o*o;if(_<=2)return new r(i,o);a=Math.sqrt(_/2)}else{var x=!1;s>Number.EPSILON?u>Number.EPSILON&&(x=!0):s<-Number.EPSILON?u<-Number.EPSILON&&(x=!0):Math.sign(l)===Math.sign(c)&&(x=!0),x?(i=-l,o=s,a=Math.sqrt(d)):(i=s,o=l,a=Math.sqrt(d/2))}return new r(i/a,o/a)}function o(e,t){var n,i;for(H=e.length;--H>=0;){n=H,i=H-1,i<0&&(i=e.length-1);var r=0,o=x+2*y;for(r=0;r=0;N--){for(z=N/y,F=g*Math.cos(z*Math.PI/2),B=v*Math.sin(z*Math.PI/2),H=0,q=D.length;H0||0===e.search(/^data\\:image\\/jpeg/);r.format=i?Ca:Pa,r.image=n,r.needsUpdate=!0,void 0!==t&&t(r)},n,i),r},setCrossOrigin:function(e){return this.crossOrigin=e,this},setPath:function(e){return this.path=e,this}}),An.prototype=Object.assign(Object.create(ce.prototype),{constructor:An,isLight:!0,copy:function(e){return ce.prototype.copy.call(this,e),this.color.copy(e.color),this.intensity=e.intensity,this},toJSON:function(e){var t=ce.prototype.toJSON.call(this,e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,void 0!==this.groundColor&&(t.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(t.object.distance=this.distance),void 0!==this.angle&&(t.object.angle=this.angle),void 0!==this.decay&&(t.object.decay=this.decay),void 0!==this.penumbra&&(t.object.penumbra=this.penumbra),void 0!==this.shadow&&(t.object.shadow=this.shadow.toJSON()),t}}),Rn.prototype=Object.assign(Object.create(An.prototype),{constructor:Rn,isHemisphereLight:!0,copy:function(e){return An.prototype.copy.call(this,e),this.groundColor.copy(e.groundColor),this}}),Object.assign(Ln.prototype,{copy:function(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){var e={};return 0!==this.bias&&(e.bias=this.bias),1!==this.radius&&(e.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}),In.prototype=Object.assign(Object.create(Ln.prototype),{constructor:In,isSpotLightShadow:!0,update:function(e){var t=2*fs.RAD2DEG*e.angle,n=this.mapSize.width/this.mapSize.height,i=e.distance||500,r=this.camera;t===r.fov&&n===r.aspect&&i===r.far||(r.fov=t,r.aspect=n,r.far=i,r.updateProjectionMatrix())}}),Dn.prototype=Object.assign(Object.create(An.prototype),{constructor:Dn,isSpotLight:!0,copy:function(e){return An.prototype.copy.call(this,e),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}),Nn.prototype=Object.assign(Object.create(An.prototype),{constructor:Nn,isPointLight:!0,copy:function(e){return An.prototype.copy.call(this,e),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}),Bn.prototype=Object.assign(Object.create(Ln.prototype),{constructor:Bn}),zn.prototype=Object.assign(Object.create(An.prototype),{constructor:zn,isDirectionalLight:!0,copy:function(e){return An.prototype.copy.call(this,e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}),Fn.prototype=Object.assign(Object.create(An.prototype),{constructor:Fn,isAmbientLight:!0});var Is={arraySlice:function(e,t,n){return Is.isTypedArray(e)?new e.constructor(e.subarray(t,n)):e.slice(t,n)},convertArray:function(e,t,n){return!e||!n&&e.constructor===t?e:\"number\"==typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)},isTypedArray:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},getKeyframeOrder:function(e){function t(t,n){return e[t]-e[n]}for(var n=e.length,i=new Array(n),r=0;r!==n;++r)i[r]=r;return i.sort(t),i},sortedArray:function(e,t,n){for(var i=e.length,r=new e.constructor(i),o=0,a=0;a!==i;++o)for(var s=n[o]*t,l=0;l!==t;++l)r[a++]=e[s+l];return r},flattenJSON:function(e,t,n,i){for(var r=1,o=e[0];void 0!==o&&void 0===o[i];)o=e[r++];if(void 0!==o){var a=o[i];if(void 0!==a)if(Array.isArray(a))do{a=o[i],void 0!==a&&(t.push(o.time),n.push.apply(n,a)),o=e[r++]}while(void 0!==o);else if(void 0!==a.toArray)do{a=o[i],void 0!==a&&(t.push(o.time),a.toArray(n,n.length)),o=e[r++]}while(void 0!==o);else do{a=o[i],void 0!==a&&(t.push(o.time),n.push(a)),o=e[r++]}while(void 0!==o)}}};jn.prototype={constructor:jn,evaluate:function(e){var t=this.parameterPositions,n=this._cachedIndex,i=t[n],r=t[n-1];e:{t:{var o;n:{i:if(!(e=r)break e;var s=t[1];e=r)break t}o=n,n=0}}for(;n>>1;et;)--o;if(++o,0!==r||o!==i){r>=o&&(o=Math.max(o,1),r=o-1);var a=this.getValueSize();this.times=Is.arraySlice(n,r,o),this.values=Is.arraySlice(this.values,r*a,o*a)}return this},validate:function(){var e=!0,t=this.getValueSize();t-Math.floor(t)!=0&&(console.error(\"invalid value size in track\",this),e=!1);var n=this.times,i=this.values,r=n.length;0===r&&(console.error(\"track is empty\",this),e=!1);for(var o=null,a=0;a!==r;a++){var s=n[a];if(\"number\"==typeof s&&isNaN(s)){console.error(\"time is not a valid number\",this,a,s),e=!1;break}if(null!==o&&o>s){console.error(\"out of order keys\",this,a,s,o),e=!1;break}o=s}if(void 0!==i&&Is.isTypedArray(i))for(var a=0,l=i.length;a!==l;++a){var u=i[a];if(isNaN(u)){console.error(\"value is not a valid number\",this,a,u),e=!1;break}}return e},optimize:function(){for(var e=this.times,t=this.values,n=this.getValueSize(),i=this.getInterpolation()===Za,r=1,o=e.length-1,a=1;a0){e[r]=e[o];for(var p=o*n,m=r*n,h=0;h!==n;++h)t[m+h]=t[p+h];++r}return r!==e.length&&(this.times=Is.arraySlice(e,0,r),this.values=Is.arraySlice(t,0,r*n)),this}},Hn.prototype=Object.assign(Object.create(Ds),{constructor:Hn,ValueTypeName:\"vector\"}),qn.prototype=Object.assign(Object.create(jn.prototype),{constructor:qn,interpolate_:function(e,t,n,i){for(var r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=e*a,l=(n-t)/(i-t),c=s+a;s!==c;s+=4)u.slerpFlat(r,0,o,s-a,o,s,l);return r}}),Yn.prototype=Object.assign(Object.create(Ds),{constructor:Yn,ValueTypeName:\"quaternion\",DefaultInterpolation:Ka,InterpolantFactoryMethodLinear:function(e){return new qn(this.times,this.values,this.getValueSize(),e)},InterpolantFactoryMethodSmooth:void 0}),Xn.prototype=Object.assign(Object.create(Ds),{constructor:Xn,ValueTypeName:\"number\"}),Kn.prototype=Object.assign(Object.create(Ds),{constructor:Kn,ValueTypeName:\"string\",ValueBufferType:Array,DefaultInterpolation:Xa,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Zn.prototype=Object.assign(Object.create(Ds),{constructor:Zn,ValueTypeName:\"bool\",ValueBufferType:Array,DefaultInterpolation:Xa,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Jn.prototype=Object.assign(Object.create(Ds),{constructor:Jn,ValueTypeName:\"color\"}),Qn.prototype=Ds,Ds.constructor=Qn,Object.assign(Qn,{parse:function(e){if(void 0===e.type)throw new Error(\"track type undefined, can not parse\");var t=Qn._getTrackTypeForValueTypeName(e.type);if(void 0===e.times){var n=[],i=[];Is.flattenJSON(e.keys,n,i,\"value\"),e.times=n,e.values=i}return void 0!==t.parse?t.parse(e):new t(e.name,e.times,e.values,e.interpolation)},toJSON:function(e){var t,n=e.constructor;if(void 0!==n.toJSON)t=n.toJSON(e);else{t={name:e.name,times:Is.convertArray(e.times,Array),values:Is.convertArray(e.values,Array)};var i=e.getInterpolation();i!==e.DefaultInterpolation&&(t.interpolation=i)}return t.type=e.ValueTypeName,t},_getTrackTypeForValueTypeName:function(e){switch(e.toLowerCase()){case\"scalar\":case\"double\":case\"float\":case\"number\":case\"integer\":return Xn;case\"vector\":case\"vector2\":case\"vector3\":case\"vector4\":return Hn;case\"color\":return Jn;case\"quaternion\":return Yn;case\"bool\":case\"boolean\":return Zn;case\"string\":return Kn}throw new Error(\"Unsupported typeName: \"+e)}}),$n.prototype={constructor:$n,resetDuration:function(){for(var e=this.tracks,t=0,n=0,i=e.length;n!==i;++n){var r=this.tracks[n];t=Math.max(t,r.times[r.times.length-1])}this.duration=t},trim:function(){for(var e=0;e1){var u=l[1],c=i[u];c||(i[u]=c=[]),c.push(s)}}var d=[];for(var u in i)d.push($n.CreateFromMorphTargetSequence(u,i[u],t,n));return d},parseAnimation:function(e,t){if(!e)return console.error(\" no animation in JSONLoader data\"),null;for(var n=function(e,t,n,i,r){if(0!==n.length){var o=[],a=[];Is.flattenJSON(n,o,a,i),0!==o.length&&r.push(new e(t,o,a))}},i=[],r=e.name||\"default\",o=e.length||-1,a=e.fps||30,s=e.hierarchy||[],l=0;l1?e.skinWeights[i+1]:0,l=t>2?e.skinWeights[i+2]:0,u=t>3?e.skinWeights[i+3]:0;n.skinWeights.push(new a(o,s,l,u))}if(e.skinIndices)for(var i=0,r=e.skinIndices.length;i1?e.skinIndices[i+1]:0,h=t>2?e.skinIndices[i+2]:0,f=t>3?e.skinIndices[i+3]:0;n.skinIndices.push(new a(c,d,h,f))}n.bones=e.bones,n.bones&&n.bones.length>0&&(n.skinWeights.length!==n.skinIndices.length||n.skinIndices.length!==n.vertices.length)&&console.warn(\"When skinning, number of vertices (\"+n.vertices.length+\"), skinIndices (\"+n.skinIndices.length+\"), and skinWeights (\"+n.skinWeights.length+\") should match.\")}(),function(t){if(void 0!==e.morphTargets)for(var i=0,r=e.morphTargets.length;i0){console.warn('THREE.JSONLoader: \"morphColors\" no longer supported. Using them as face colors.');for(var d=n.faces,h=e.morphColors[0].colors,i=0,r=d.length;i0&&(n.animations=t)}(),n.computeFaceNormals(),n.computeBoundingSphere(),void 0===e.materials||0===e.materials.length)return{geometry:n};var o=ni.prototype.initMaterials(e.materials,t,this.crossOrigin);return{geometry:n,materials:o}}}),Object.assign(ri.prototype,{load:function(e,t,n,i){\"\"===this.texturePath&&(this.texturePath=e.substring(0,e.lastIndexOf(\"/\")+1));var r=this;new En(r.manager).load(e,function(n){var o=null;try{o=JSON.parse(n)}catch(t){return void 0!==i&&i(t),void console.error(\"THREE:ObjectLoader: Can't parse \"+e+\".\",t.message)}var a=o.metadata;if(void 0===a||void 0===a.type||\"geometry\"===a.type.toLowerCase())return void console.error(\"THREE.ObjectLoader: Can't load \"+e+\". Use THREE.JSONLoader instead.\");r.parse(o,t)},n,i)},setTexturePath:function(e){this.texturePath=e},setCrossOrigin:function(e){this.crossOrigin=e},parse:function(e,t){var n=this.parseGeometries(e.geometries),i=this.parseImages(e.images,function(){void 0!==t&&t(a)}),r=this.parseTextures(e.textures,i),o=this.parseMaterials(e.materials,r),a=this.parseObject(e.object,n,o);return e.animations&&(a.animations=this.parseAnimations(e.animations)),void 0!==e.images&&0!==e.images.length||void 0!==t&&t(a),a},parseGeometries:function(e){var t={};if(void 0!==e)for(var n=new ii,i=new ti,r=0,o=e.length;r0){var r=new Sn(t),o=new On(r);o.setCrossOrigin(this.crossOrigin);for(var a=0,s=e.length;a0?new _t(s,l):new Pe(s,l);break;case\"LOD\":a=new vt;break;case\"Line\":a=new wt(r(t.geometry),o(t.material),t.mode);break;case\"LineSegments\":a=new Mt(r(t.geometry),o(t.material));break;case\"PointCloud\":case\"Points\":a=new Et(r(t.geometry),o(t.material));break;case\"Sprite\":a=new gt(o(t.material));break;case\"Group\":a=new Tt;break;case\"SkinnedMesh\":console.warn(\"THREE.ObjectLoader.parseObject() does not support SkinnedMesh type. Instantiates Object3D instead.\");default:a=new ce}if(a.uuid=t.uuid,void 0!==t.name&&(a.name=t.name),void 0!==t.matrix?(e.fromArray(t.matrix),e.decompose(a.position,a.quaternion,a.scale)):(void 0!==t.position&&a.position.fromArray(t.position),void 0!==t.rotation&&a.rotation.fromArray(t.rotation),void 0!==t.quaternion&&a.quaternion.fromArray(t.quaternion),void 0!==t.scale&&a.scale.fromArray(t.scale)),void 0!==t.castShadow&&(a.castShadow=t.castShadow),void 0!==t.receiveShadow&&(a.receiveShadow=t.receiveShadow),t.shadow&&(void 0!==t.shadow.bias&&(a.shadow.bias=t.shadow.bias),void 0!==t.shadow.radius&&(a.shadow.radius=t.shadow.radius),void 0!==t.shadow.mapSize&&a.shadow.mapSize.fromArray(t.shadow.mapSize),void 0!==t.shadow.camera&&(a.shadow.camera=this.parseObject(t.shadow.camera))),void 0!==t.visible&&(a.visible=t.visible),void 0!==t.userData&&(a.userData=t.userData),void 0!==t.children)for(var u in t.children)a.add(this.parseObject(t.children[u],n,i));if(\"LOD\"===t.type)for(var c=t.levels,d=0;d0)){l=r;break}l=r-1}if(r=l,i[r]===n){var u=r/(o-1);return u}var c=i[r],d=i[r+1],h=d-c,f=(n-c)/h,u=(r+f)/(o-1);return u},getTangent:function(e){var t=e-1e-4,n=e+1e-4;t<0&&(t=0),n>1&&(n=1);var i=this.getPoint(t);return this.getPoint(n).clone().sub(i).normalize()},getTangentAt:function(e){var t=this.getUtoTmapping(e);return this.getTangent(t)},computeFrenetFrames:function(e,t){var n,i,r,o=new c,a=[],s=[],l=[],u=new c,h=new d;for(n=0;n<=e;n++)i=n/e,a[n]=this.getTangentAt(i),a[n].normalize();s[0]=new c,l[0]=new c;var f=Number.MAX_VALUE,p=Math.abs(a[0].x),m=Math.abs(a[0].y),g=Math.abs(a[0].z);for(p<=f&&(f=p,o.set(1,0,0)),m<=f&&(f=m,o.set(0,1,0)),g<=f&&o.set(0,0,1),u.crossVectors(a[0],o).normalize(),s[0].crossVectors(a[0],u),l[0].crossVectors(a[0],s[0]),n=1;n<=e;n++)s[n]=s[n-1].clone(),l[n]=l[n-1].clone(),u.crossVectors(a[n-1],a[n]),u.length()>Number.EPSILON&&(u.normalize(),r=Math.acos(fs.clamp(a[n-1].dot(a[n]),-1,1)),s[n].applyMatrix4(h.makeRotationAxis(u,r))),l[n].crossVectors(a[n],s[n]);if(!0===t)for(r=Math.acos(fs.clamp(s[0].dot(s[e]),-1,1)),r/=e,a[0].dot(u.crossVectors(s[0],s[e]))>0&&(r=-r),n=1;n<=e;n++)s[n].applyMatrix4(h.makeRotationAxis(a[n],r*n)),l[n].crossVectors(a[n],s[n]);return{tangents:a,normals:s,binormals:l}}},gi.prototype=Object.create(mi.prototype),gi.prototype.constructor=gi,gi.prototype.isLineCurve=!0,gi.prototype.getPoint=function(e){if(1===e)return this.v2.clone();var t=this.v2.clone().sub(this.v1);return t.multiplyScalar(e).add(this.v1),t},gi.prototype.getPointAt=function(e){return this.getPoint(e)},gi.prototype.getTangent=function(e){return this.v2.clone().sub(this.v1).normalize()},vi.prototype=Object.assign(Object.create(mi.prototype),{constructor:vi,add:function(e){this.curves.push(e)},closePath:function(){var e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);e.equals(t)||this.curves.push(new gi(t,e))},getPoint:function(e){for(var t=e*this.getLength(),n=this.getCurveLengths(),i=0;i=t){var r=n[i]-t,o=this.curves[i],a=o.getLength(),s=0===a?0:1-r/a;return o.getPointAt(s)}i++}return null},getLength:function(){var e=this.getCurveLengths();return e[e.length-1]},updateArcLengths:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var e=[],t=0,n=0,i=this.curves.length;n1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n},createPointsGeometry:function(e){var t=this.getPoints(e);return this.createGeometry(t)},createSpacedPointsGeometry:function(e){var t=this.getSpacedPoints(e);return this.createGeometry(t)},createGeometry:function(e){for(var t=new Oe,n=0,i=e.length;nt;)n-=t;nt.length-2?t.length-1:i+1],u=t[i>t.length-3?t.length-1:i+2];return new r(oi(o,a.x,s.x,l.x,u.x),oi(o,a.y,s.y,l.y,u.y))},_i.prototype=Object.create(mi.prototype),_i.prototype.constructor=_i,_i.prototype.getPoint=function(e){var t=this.v0,n=this.v1,i=this.v2,o=this.v3;return new r(pi(e,t.x,n.x,i.x,o.x),pi(e,t.y,n.y,i.y,o.y))},xi.prototype=Object.create(mi.prototype),xi.prototype.constructor=xi,xi.prototype.getPoint=function(e){var t=this.v0,n=this.v1,i=this.v2;return new r(ui(e,t.x,n.x,i.x),ui(e,t.y,n.y,i.y))};var Ns=Object.assign(Object.create(vi.prototype),{fromPoints:function(e){this.moveTo(e[0].x,e[0].y);for(var t=1,n=e.length;t0){var u=l.getPoint(0);u.equals(this.currentPoint)||this.lineTo(u.x,u.y)}this.curves.push(l);var c=l.getPoint(1);this.currentPoint.copy(c)}});wi.prototype=Ns,Ns.constructor=wi,Mi.prototype=Object.assign(Object.create(Ns),{constructor:Mi,getPointsHoles:function(e){for(var t=[],n=0,i=this.holes.length;n1){for(var v=!1,y=[],b=0,_=h.length;b<_;b++)d[b]=[];for(var b=0,_=h.length;b<_;b++)for(var x=f[b],w=0;wNumber.EPSILON){if(u<0&&(a=t[o],l=-l,s=t[r],u=-u),e.ys.y)continue;if(e.y===a.y){if(e.x===a.x)return!0}else{var c=u*(e.x-a.x)-l*(e.y-a.y);if(0===c)return!0;if(c<0)continue;i=!i}}else{if(e.y!==a.y)continue;if(s.x<=e.x&&e.x<=a.x||a.x<=e.x&&e.x<=s.x)return!0}}return i})(M.p,h[E].p)&&(b!==E&&y.push({froms:b,tos:E,hole:w}),S?(S=!1,d[E].push(M)):v=!0);S&&d[b].push(M)}y.length>0&&(v||(f=d))}for(var T,m=0,k=h.length;m0){this.source.connect(this.filters[0]);for(var e=1,t=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(var e=1,t=this.filters.length;e=.5)for(var o=0;o!==r;++o)e[t+o]=e[n+o]},_slerp:function(e,t,n,i,r){u.slerpFlat(e,t,e,t,e,n,i)},_lerp:function(e,t,n,i,r){for(var o=1-i,a=0;a!==r;++a){var s=t+a;e[s]=e[s]*o+e[n+a]*i}}},Ni.prototype={constructor:Ni,getValue:function(e,t){this.bind(),this.getValue(e,t)},setValue:function(e,t){this.bind(),this.setValue(e,t)},bind:function(){var e=this.node,t=this.parsedPath,n=t.objectName,i=t.propertyName,r=t.propertyIndex;if(e||(e=Ni.findNode(this.rootNode,t.nodeName)||this.rootNode,this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!e)return void console.error(\" trying to update node for track: \"+this.path+\" but it wasn't found.\");if(n){var o=t.objectIndex;switch(n){case\"materials\":if(!e.material)return void console.error(\" can not bind to material as node does not have a material\",this);if(!e.material.materials)return void console.error(\" can not bind to material.materials as node.material does not have a materials array\",this);e=e.material.materials;break;case\"bones\":if(!e.skeleton)return void console.error(\" can not bind to bones as node does not have a skeleton\",this);e=e.skeleton.bones;for(var a=0;a=n){var d=n++,h=t[d];i[h.uuid]=c,t[c]=h,i[u]=d,t[d]=l;for(var f=0,p=o;f!==p;++f){var m=r[f],g=m[d],v=m[c];m[c]=g,m[d]=v}}}this.nCachedObjects_=n},uncache:function(e){for(var t=this._objects,n=t.length,i=this.nCachedObjects_,r=this._indicesByUUID,o=this._bindings,a=o.length,s=0,l=arguments.length;s!==l;++s){var u=arguments[s],c=u.uuid,d=r[c];if(void 0!==d)if(delete r[c],d0)for(var l=this._interpolants,u=this._propertyBindings,c=0,d=l.length;c!==d;++c)l[c].evaluate(a),u[c].accumulate(i,s)},_updateWeight:function(e){var t=0;if(this.enabled){t=this.weight;var n=this._weightInterpolant;if(null!==n){var i=n.evaluate(e)[0];t*=i,e>n.parameterPositions[1]&&(this.stopFading(),0===i&&(this.enabled=!1))}}return this._effectiveWeight=t,t},_updateTimeScale:function(e){var t=0;if(!this.paused){t=this.timeScale;var n=this._timeScaleInterpolant;if(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:function(e){var t=this.time+e;if(0===e)return t;var n=this._clip.duration,i=this.loop,r=this._loopCount;if(i===Ha){-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(t>=n)t=n;else{if(!(t<0))break e;t=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this._mixer.dispatchEvent({type:\"finished\",action:this,direction:e<0?-1:1})}}else{var o=i===Ya;if(-1===r&&(e>=0?(r=0,this._setEndings(!0,0===this.repetitions,o)):this._setEndings(0===this.repetitions,!0,o)),t>=n||t<0){var a=Math.floor(t/n);t-=n*a,r+=Math.abs(a);var s=this.repetitions-r;if(s<0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,t=e>0?n:0,this._mixer.dispatchEvent({type:\"finished\",action:this,direction:e>0?1:-1});else{if(0===s){var l=e<0;this._setEndings(l,!l,o)}else this._setEndings(!1,!1,o);this._loopCount=r,this._mixer.dispatchEvent({type:\"loop\",action:this,loopDelta:a})}}if(o&&1==(1&r))return this.time=t,n-t}return this.time=t,t},_setEndings:function(e,t,n){var i=this._interpolantSettings;n?(i.endingStart=Qa,i.endingEnd=Qa):(i.endingStart=e?this.zeroSlopeAtStart?Qa:Ja:$a,i.endingEnd=t?this.zeroSlopeAtEnd?Qa:Ja:$a)},_scheduleFading:function(e,t,n){var i=this._mixer,r=i.time,o=this._weightInterpolant;null===o&&(o=i._lendControlInterpolant(),this._weightInterpolant=o);var a=o.parameterPositions,s=o.sampleValues;return a[0]=r,s[0]=t,a[1]=r+e,s[1]=n,this}},Fi.prototype={constructor:Fi,clipAction:function(e,t){var n=t||this._root,i=n.uuid,r=\"string\"==typeof e?$n.findByName(n,e):e,o=null!==r?r.uuid:e,a=this._actionsByClip[o],s=null;if(void 0!==a){var l=a.actionByRoot[i];if(void 0!==l)return l;s=a.knownActions[0],null===r&&(r=s._clip)}if(null===r)return null;var u=new zi(this,r,t);return this._bindAction(u,s),this._addInactiveAction(u,o,i),u},existingAction:function(e,t){var n=t||this._root,i=n.uuid,r=\"string\"==typeof e?$n.findByName(n,e):e,o=r?r.uuid:e,a=this._actionsByClip[o];return void 0!==a?a.actionByRoot[i]||null:null},stopAllAction:function(){var e=this._actions,t=this._nActiveActions,n=this._bindings,i=this._nActiveBindings;this._nActiveActions=0,this._nActiveBindings=0;for(var r=0;r!==t;++r)e[r].reset();for(var r=0;r!==i;++r)n[r].useCount=0;return this},update:function(e){e*=this.timeScale;for(var t=this._actions,n=this._nActiveActions,i=this.time+=e,r=Math.sign(e),o=this._accuIndex^=1,a=0;a!==n;++a){var s=t[a];s.enabled&&s._update(i,e,r,o)}for(var l=this._bindings,u=this._nActiveBindings,a=0;a!==u;++a)l[a].apply(o);return this},getRoot:function(){return this._root},uncacheClip:function(e){var t=this._actions,n=e.uuid,i=this._actionsByClip,r=i[n];if(void 0!==r){for(var o=r.knownActions,a=0,s=o.length;a!==s;++a){var l=o[a];this._deactivateAction(l);var u=l._cacheIndex,c=t[t.length-1];l._cacheIndex=null,l._byClipCacheIndex=null,c._cacheIndex=u,t[u]=c,t.pop(),this._removeInactiveBindingsForAction(l)}delete i[n]}},uncacheRoot:function(e){var t=e.uuid,n=this._actionsByClip;for(var i in n){var r=n[i].actionByRoot,o=r[t];void 0!==o&&(this._deactivateAction(o),this._removeInactiveAction(o))}var a=this._bindingsByRootAndName,s=a[t];if(void 0!==s)for(var l in s){var u=s[l];u.restoreOriginalState(),this._removeInactiveBinding(u)}},uncacheAction:function(e,t){var n=this.existingAction(e,t);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}},Object.assign(Fi.prototype,{_bindAction:function(e,t){var n=e._localRoot||this._root,i=e._clip.tracks,r=i.length,o=e._propertyBindings,a=e._interpolants,s=n.uuid,l=this._bindingsByRootAndName,u=l[s];void 0===u&&(u={},l[s]=u);for(var c=0;c!==r;++c){var d=i[c],h=d.name,f=u[h];if(void 0!==f)o[c]=f;else{if(void 0!==(f=o[c])){null===f._cacheIndex&&(++f.referenceCount,this._addInactiveBinding(f,s,h));continue}var p=t&&t._propertyBindings[c].binding.parsedPath;f=new Di(Ni.create(n,h,p),d.ValueTypeName,d.getValueSize()),++f.referenceCount,this._addInactiveBinding(f,s,h),o[c]=f}a[c].resultBuffer=f.buffer}},_activateAction:function(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){var t=(e._localRoot||this._root).uuid,n=e._clip.uuid,i=this._actionsByClip[n];this._bindAction(e,i&&i.knownActions[0]),this._addInactiveAction(e,n,t)}for(var r=e._propertyBindings,o=0,a=r.length;o!==a;++o){var s=r[o];0==s.useCount++&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(e)}},_deactivateAction:function(e){if(this._isActiveAction(e)){for(var t=e._propertyBindings,n=0,i=t.length;n!==i;++n){var r=t[n];0==--r.useCount&&(r.restoreOriginalState(),this._takeBackBinding(r))}this._takeBackAction(e)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var 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:function(e){var t=e._cacheIndex;return null!==t&&t1){var u=l[1];i[u]||(i[u]={start:1/0,end:-1/0});var c=i[u];oc.end&&(c.end=o),t||(t=u)}}for(var u in i){var c=i[u];this.createAnimation(u,c.start,c.end,e)}this.firstAnimation=t},Qi.prototype.setAnimationDirectionForward=function(e){var t=this.animationsMap[e];t&&(t.direction=1,t.directionBackwards=!1)},Qi.prototype.setAnimationDirectionBackward=function(e){var t=this.animationsMap[e];t&&(t.direction=-1,t.directionBackwards=!0)},Qi.prototype.setAnimationFPS=function(e,t){var n=this.animationsMap[e];n&&(n.fps=t,n.duration=(n.end-n.start)/n.fps)},Qi.prototype.setAnimationDuration=function(e,t){var n=this.animationsMap[e];n&&(n.duration=t,n.fps=(n.end-n.start)/n.duration)},Qi.prototype.setAnimationWeight=function(e,t){var n=this.animationsMap[e];n&&(n.weight=t)},Qi.prototype.setAnimationTime=function(e,t){var n=this.animationsMap[e];n&&(n.time=t)},Qi.prototype.getAnimationTime=function(e){var t=0,n=this.animationsMap[e];return n&&(t=n.time),t},Qi.prototype.getAnimationDuration=function(e){var t=-1,n=this.animationsMap[e];return n&&(t=n.duration),t},Qi.prototype.playAnimation=function(e){var t=this.animationsMap[e];t?(t.time=0,t.active=!0):console.warn(\"THREE.MorphBlendMesh: animation[\"+e+\"] undefined in .playAnimation()\")},Qi.prototype.stopAnimation=function(e){var t=this.animationsMap[e];t&&(t.active=!1)},Qi.prototype.update=function(e){for(var t=0,n=this.animationsList.length;ti.duration||i.time<0)&&(i.direction*=-1,i.time>i.duration&&(i.time=i.duration,i.directionBackwards=!0),i.time<0&&(i.time=0,i.directionBackwards=!1)):(i.time=i.time%i.duration,i.time<0&&(i.time+=i.duration));var o=i.start+fs.clamp(Math.floor(i.time/r),0,i.length-1),a=i.weight;o!==i.currentFrame&&(this.morphTargetInfluences[i.lastFrame]=0,this.morphTargetInfluences[i.currentFrame]=1*a,this.morphTargetInfluences[o]=0,i.lastFrame=i.currentFrame,i.currentFrame=o);var s=i.time%r/r;i.directionBackwards&&(s=1-s),i.currentFrame!==i.lastFrame?(this.morphTargetInfluences[i.currentFrame]=s*a,this.morphTargetInfluences[i.lastFrame]=(1-s)*a):this.morphTargetInfluences[i.currentFrame]=a}}},$i.prototype=Object.create(ce.prototype),$i.prototype.constructor=$i,$i.prototype.isImmediateRenderObject=!0,er.prototype=Object.create(Mt.prototype),er.prototype.constructor=er,er.prototype.update=function(){var e=new c,t=new c,n=new ie;return function(){var i=[\"a\",\"b\",\"c\"];this.object.updateMatrixWorld(!0),n.getNormalMatrix(this.object.matrixWorld);var r=this.object.matrixWorld,o=this.geometry.attributes.position,a=this.object.geometry;if(a&&a.isGeometry)for(var s=a.vertices,l=a.faces,u=0,c=0,d=l.length;c.99999?this.quaternion.set(0,0,0,1):n.y<-.99999?this.quaternion.set(1,0,0,0):(t.set(n.z,0,-n.x).normalize(),e=Math.acos(n.y),this.quaternion.setFromAxisAngle(t,e))}}(),hr.prototype.setLength=function(e,t,n){void 0===t&&(t=.2*e),void 0===n&&(n=.2*t),this.line.scale.set(1,Math.max(0,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),this.cone.position.y=e,this.cone.updateMatrix()},hr.prototype.setColor=function(e){this.line.material.color.copy(e),this.cone.material.color.copy(e)},fr.prototype=Object.create(Mt.prototype),fr.prototype.constructor=fr;var Us=new c,Ws=new pr,Gs=new pr,Vs=new pr;mr.prototype=Object.create(mi.prototype),mr.prototype.constructor=mr,mr.prototype.getPoint=function(e){var t=this.points,n=t.length;n<2&&console.log(\"duh, you need at least 2 points\");var i=(n-(this.closed?0:1))*e,r=Math.floor(i),o=i-r;this.closed?r+=r>0?0:(Math.floor(Math.abs(r)/t.length)+1)*t.length:0===o&&r===n-1&&(r=n-2,o=1);var a,s,l,u;if(this.closed||r>0?a=t[(r-1)%n]:(Us.subVectors(t[0],t[1]).add(t[0]),a=Us),s=t[r%n],l=t[(r+1)%n],this.closed||r+20&&this.options.customizedToggles.clear(),this.monitor.update(e),this.trafficSignal.update(e),this.hmi.update(e),this.options.showPNCMonitor&&(this.planningData.update(e),this.controlData.update(e,this.hmi.vehicleParam),this.latency.update(e))}},{key:\"enableHMIButtonsOnly\",get:function(){return!this.isInitialized}}]),t}(),s=o(a.prototype,\"timestamp\",[I.observable],{enumerable:!0,initializer:function(){return 0}}),l=o(a.prototype,\"worldTimestamp\",[I.observable],{enumerable:!0,initializer:function(){return 0}}),u=o(a.prototype,\"sceneDimension\",[I.observable],{enumerable:!0,initializer:function(){return{width:window.innerWidth,height:window.innerHeight,widthRatio:1}}}),c=o(a.prototype,\"dimension\",[I.observable],{enumerable:!0,initializer:function(){return{width:window.innerWidth,height:window.innerHeight}}}),d=o(a.prototype,\"isInitialized\",[I.observable],{enumerable:!0,initializer:function(){return!1}}),h=o(a.prototype,\"hmi\",[I.observable],{enumerable:!0,initializer:function(){return new N.default}}),f=o(a.prototype,\"planningData\",[I.observable],{enumerable:!0,initializer:function(){return new X.default}}),p=o(a.prototype,\"controlData\",[I.observable],{enumerable:!0,initializer:function(){return new z.default}}),m=o(a.prototype,\"latency\",[I.observable],{enumerable:!0,initializer:function(){return new j.default}}),g=o(a.prototype,\"playback\",[I.observable],{enumerable:!0,initializer:function(){return null}}),v=o(a.prototype,\"trafficSignal\",[I.observable],{enumerable:!0,initializer:function(){return new $.default}}),y=o(a.prototype,\"meters\",[I.observable],{enumerable:!0,initializer:function(){return new W.default}}),b=o(a.prototype,\"monitor\",[I.observable],{enumerable:!0,initializer:function(){return new V.default}}),_=o(a.prototype,\"options\",[I.observable],{enumerable:!0,initializer:function(){return new q.default}}),x=o(a.prototype,\"routeEditingManager\",[I.observable],{enumerable:!0,initializer:function(){return new J.default}}),w=o(a.prototype,\"geolocation\",[I.observable],{enumerable:!0,initializer:function(){return{}}}),M=o(a.prototype,\"moduleDelay\",[I.observable],{enumerable:!0,initializer:function(){return I.observable.map()}}),S=o(a.prototype,\"newDisengagementReminder\",[I.observable],{enumerable:!0,initializer:function(){return!1}}),E=o(a.prototype,\"offlineViewErrorMsg\",[I.observable],{enumerable:!0,initializer:function(){return null}}),o(a.prototype,\"enableHMIButtonsOnly\",[I.computed],(0,C.default)(a.prototype,\"enableHMIButtonsOnly\"),a.prototype),o(a.prototype,\"updateTimestamp\",[I.action],(0,C.default)(a.prototype,\"updateTimestamp\"),a.prototype),o(a.prototype,\"updateWidthInPercentage\",[I.action],(0,C.default)(a.prototype,\"updateWidthInPercentage\"),a.prototype),o(a.prototype,\"setInitializationStatus\",[I.action],(0,C.default)(a.prototype,\"setInitializationStatus\"),a.prototype),o(a.prototype,\"updatePlanning\",[I.action],(0,C.default)(a.prototype,\"updatePlanning\"),a.prototype),o(a.prototype,\"setGeolocation\",[I.action],(0,C.default)(a.prototype,\"setGeolocation\"),a.prototype),o(a.prototype,\"enablePNCMonitor\",[I.action],(0,C.default)(a.prototype,\"enablePNCMonitor\"),a.prototype),o(a.prototype,\"disablePNCMonitor\",[I.action],(0,C.default)(a.prototype,\"disablePNCMonitor\"),a.prototype),o(a.prototype,\"setOfflineViewErrorMsg\",[I.action],(0,C.default)(a.prototype,\"setOfflineViewErrorMsg\"),a.prototype),o(a.prototype,\"updateModuleDelay\",[I.action],(0,C.default)(a.prototype,\"updateModuleDelay\"),a.prototype),a),te=new ee;(0,I.autorun)(function(){te.updateDimension()});PARAMETERS.debug.autoMonitorMessage&&setInterval(function(){var e=[{level:\"FATAL\",message:\"There is a fatal hardware issue detected. It might be due to an incorrect power management setup. Please see the logs for details.\"},{level:\"WARN\",message:\"The warning indicator on the instrument panel is on. This is usually due to a failure in engine.\"},{level:\"ERROR\",message:\"Invalid coordinates received from the localization module.\"},{level:\"INFO\",message:\"Monitor module has started and is succesfully initialized.\"}][Math.floor(4*Math.random())];te.monitor.insert(e.level,e.message,Date.now())},1e4);t.default=te}).call(t,n(141)(e))},function(e,t,n){var i=n(17),r=n(10),o=n(33),a=n(41),s=n(46),l=function(e,t,n){var u,c,d,h=e&l.F,f=e&l.G,p=e&l.S,m=e&l.P,g=e&l.B,v=e&l.W,y=f?r:r[t]||(r[t]={}),b=y.prototype,_=f?i:p?i[t]:(i[t]||{}).prototype;f&&(n=t);for(u in n)(c=!h&&_&&void 0!==_[u])&&s(y,u)||(d=c?_[u]:n[u],y[u]=f&&\"function\"!=typeof _[u]?n[u]:g&&c?o(d,i):v&&_[u]==d?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&\"function\"==typeof d?o(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[u]=d,e&l.R&&b&&!b[u]&&a(b,u,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){\"use strict\";var i,r,o=e.exports=n(36),a=n(205);o.codegen=n(305),o.fetch=n(307),o.path=n(309),o.fs=o.inquire(\"fs\"),o.toArray=function(e){if(e){for(var t=Object.keys(e),n=new Array(t.length),i=0;i-1}function h(e,t,n){for(var i=-1,r=null==e?0:e.length;++i-1;);return n}function B(e,t){for(var n=e.length;n--&&w(t,e[n],0)>-1;);return n}function z(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}function F(e){return\"\\\\\"+En[e]}function j(e,t){return null==e?ne:e[t]}function U(e){return gn.test(e)}function W(e){return vn.test(e)}function G(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function V(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function H(e,t){return function(n){return e(t(n))}}function q(e,t){for(var n=-1,i=e.length,r=0,o=[];++n>>1,Be=[[\"ary\",xe],[\"bind\",pe],[\"bindKey\",me],[\"curry\",ve],[\"curryRight\",ye],[\"flip\",Me],[\"partial\",be],[\"partialRight\",_e],[\"rearg\",we]],ze=\"[object Arguments]\",Fe=\"[object Array]\",je=\"[object AsyncFunction]\",Ue=\"[object Boolean]\",We=\"[object Date]\",Ge=\"[object DOMException]\",Ve=\"[object Error]\",He=\"[object Function]\",qe=\"[object GeneratorFunction]\",Ye=\"[object Map]\",Xe=\"[object Number]\",Ke=\"[object Null]\",Ze=\"[object Object]\",Je=\"[object Proxy]\",Qe=\"[object RegExp]\",$e=\"[object Set]\",et=\"[object String]\",tt=\"[object Symbol]\",nt=\"[object Undefined]\",it=\"[object WeakMap]\",rt=\"[object WeakSet]\",ot=\"[object ArrayBuffer]\",at=\"[object DataView]\",st=\"[object Float32Array]\",lt=\"[object Float64Array]\",ut=\"[object Int8Array]\",ct=\"[object Int16Array]\",dt=\"[object Int32Array]\",ht=\"[object Uint8Array]\",ft=\"[object Uint8ClampedArray]\",pt=\"[object Uint16Array]\",mt=\"[object Uint32Array]\",gt=/\\b__p \\+= '';/g,vt=/\\b(__p \\+=) '' \\+/g,yt=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,bt=/&(?:amp|lt|gt|quot|#39);/g,_t=/[&<>\"']/g,xt=RegExp(bt.source),wt=RegExp(_t.source),Mt=/<%-([\\s\\S]+?)%>/g,St=/<%([\\s\\S]+?)%>/g,Et=/<%=([\\s\\S]+?)%>/g,Tt=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,kt=/^\\w*$/,Ot=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,Ct=/[\\\\^$.*+?()[\\]{}|]/g,Pt=RegExp(Ct.source),At=/^\\s+|\\s+$/g,Rt=/^\\s+/,Lt=/\\s+$/,It=/\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,Dt=/\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,Nt=/,? & /,Bt=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g,zt=/\\\\(\\\\)?/g,Ft=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,jt=/\\w*$/,Ut=/^[-+]0x[0-9a-f]+$/i,Wt=/^0b[01]+$/i,Gt=/^\\[object .+?Constructor\\]$/,Vt=/^0o[0-7]+$/i,Ht=/^(?:0|[1-9]\\d*)$/,qt=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,Yt=/($^)/,Xt=/['\\n\\r\\u2028\\u2029\\\\]/g,Kt=\"\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\",Zt=\"\\\\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\",Jt=\"[\"+Zt+\"]\",Qt=\"[\"+Kt+\"]\",$t=\"[a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff]\",en=\"[^\\\\ud800-\\\\udfff\"+Zt+\"\\\\d+\\\\u2700-\\\\u27bfa-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xffA-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]\",tn=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",nn=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",rn=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",on=\"[A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]\",an=\"(?:\"+$t+\"|\"+en+\")\",sn=\"(?:[\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff]|\\\\ud83c[\\\\udffb-\\\\udfff])?\",ln=\"(?:\\\\u200d(?:\"+[\"[^\\\\ud800-\\\\udfff]\",nn,rn].join(\"|\")+\")[\\\\ufe0e\\\\ufe0f]?\"+sn+\")*\",un=\"[\\\\ufe0e\\\\ufe0f]?\"+sn+ln,cn=\"(?:\"+[\"[\\\\u2700-\\\\u27bf]\",nn,rn].join(\"|\")+\")\"+un,dn=\"(?:\"+[\"[^\\\\ud800-\\\\udfff]\"+Qt+\"?\",Qt,nn,rn,\"[\\\\ud800-\\\\udfff]\"].join(\"|\")+\")\",hn=RegExp(\"['’]\",\"g\"),fn=RegExp(Qt,\"g\"),pn=RegExp(tn+\"(?=\"+tn+\")|\"+dn+un,\"g\"),mn=RegExp([on+\"?\"+$t+\"+(?:['’](?:d|ll|m|re|s|t|ve))?(?=\"+[Jt,on,\"$\"].join(\"|\")+\")\",\"(?:[A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]|[^\\\\ud800-\\\\udfff\\\\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\\\\d+\\\\u2700-\\\\u27bfa-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xffA-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=\"+[Jt,on+an,\"$\"].join(\"|\")+\")\",on+\"?\"+an+\"+(?:['’](?:d|ll|m|re|s|t|ve))?\",on+\"+(?:['’](?:D|LL|M|RE|S|T|VE))?\",\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",\"\\\\d+\",cn].join(\"|\"),\"g\"),gn=RegExp(\"[\\\\u200d\\\\ud800-\\\\udfff\"+Kt+\"\\\\ufe0e\\\\ufe0f]\"),vn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yn=[\"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\"],bn=-1,_n={};_n[st]=_n[lt]=_n[ut]=_n[ct]=_n[dt]=_n[ht]=_n[ft]=_n[pt]=_n[mt]=!0,_n[ze]=_n[Fe]=_n[ot]=_n[Ue]=_n[at]=_n[We]=_n[Ve]=_n[He]=_n[Ye]=_n[Xe]=_n[Ze]=_n[Qe]=_n[$e]=_n[et]=_n[it]=!1;var xn={};xn[ze]=xn[Fe]=xn[ot]=xn[at]=xn[Ue]=xn[We]=xn[st]=xn[lt]=xn[ut]=xn[ct]=xn[dt]=xn[Ye]=xn[Xe]=xn[Ze]=xn[Qe]=xn[$e]=xn[et]=xn[tt]=xn[ht]=xn[ft]=xn[pt]=xn[mt]=!0,xn[Ve]=xn[He]=xn[it]=!1;var wn={\"À\":\"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\"},Mn={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\"},Sn={\"&\":\"&\",\"<\":\"<\",\">\":\">\",\""\":'\"',\"'\":\"'\"},En={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},Tn=parseFloat,kn=parseInt,On=\"object\"==typeof e&&e&&e.Object===Object&&e,Cn=\"object\"==typeof self&&self&&self.Object===Object&&self,Pn=On||Cn||Function(\"return this\")(),An=\"object\"==typeof t&&t&&!t.nodeType&&t,Rn=An&&\"object\"==typeof i&&i&&!i.nodeType&&i,Ln=Rn&&Rn.exports===An,In=Ln&&On.process,Dn=function(){try{var e=Rn&&Rn.require&&Rn.require(\"util\").types;return e||In&&In.binding&&In.binding(\"util\")}catch(e){}}(),Nn=Dn&&Dn.isArrayBuffer,Bn=Dn&&Dn.isDate,zn=Dn&&Dn.isMap,Fn=Dn&&Dn.isRegExp,jn=Dn&&Dn.isSet,Un=Dn&&Dn.isTypedArray,Wn=T(\"length\"),Gn=k(wn),Vn=k(Mn),Hn=k(Sn),qn=function e(t){function n(e){if(tl(e)&&!hh(e)&&!(e instanceof y)){if(e instanceof r)return e;if(hc.call(e,\"__wrapped__\"))return Qo(e)}return new r(e)}function i(){}function r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=ne}function y(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ie,this.__views__=[]}function k(){var e=new y(this.__wrapped__);return e.__actions__=Rr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Rr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Rr(this.__views__),e}function K(){if(this.__filtered__){var e=new y(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function $(){var e=this.__wrapped__.value(),t=this.__dir__,n=hh(e),i=t<0,r=n?e.length:0,o=wo(0,r,this.__views__),a=o.start,s=o.end,l=s-a,u=i?s:a-1,c=this.__iteratees__,d=c.length,h=0,f=Wc(l,this.__takeCount__);if(!n||!i&&r==l&&f==l)return mr(e,this.__actions__);var p=[];e:for(;l--&&h-1}function on(e,t){var n=this.__data__,i=Yn(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function an(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ei(e,t,n,i,r,o){var a,l=t&ue,u=t&ce,c=t&de;if(n&&(a=r?n(e,i,r,o):n(e)),a!==ne)return a;if(!el(e))return e;var d=hh(e);if(d){if(a=Eo(e),!l)return Rr(e,a)}else{var h=wd(e),f=h==He||h==qe;if(ph(e))return wr(e,l);if(h==Ze||h==ze||f&&!r){if(a=u||f?{}:To(e),!l)return u?Dr(e,Zn(a,e)):Ir(e,Kn(a,e))}else{if(!xn[h])return r?e:{};a=ko(e,h,l)}}o||(o=new vn);var p=o.get(e);if(p)return p;if(o.set(e,a),yh(e))return e.forEach(function(i){a.add(ei(i,t,n,i,e,o))}),a;if(gh(e))return e.forEach(function(i,r){a.set(r,ei(i,t,n,r,e,o))}),a;var m=c?u?po:fo:u?Bl:Nl,g=d?ne:m(e);return s(g||e,function(i,r){g&&(r=i,i=e[r]),Wn(a,r,ei(i,t,n,r,e,o))}),a}function ti(e){var t=Nl(e);return function(n){return ni(n,e,t)}}function ni(e,t,n){var i=n.length;if(null==e)return!i;for(e=ic(e);i--;){var r=n[i],o=t[r],a=e[r];if(a===ne&&!(r in e)||!o(a))return!1}return!0}function ii(e,t,n){if(\"function\"!=typeof e)throw new ac(oe);return Ed(function(){e.apply(ne,n)},t)}function ri(e,t,n,i){var r=-1,o=d,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=f(t,L(n))),i?(o=h,a=!1):t.length>=ie&&(o=D,a=!1,t=new pn(t));e:for(;++rr?0:r+n),i=i===ne||i>r?r:yl(i),i<0&&(i+=r),i=n>i?0:bl(i);n0&&n(s)?t>1?ui(s,t-1,n,i,r):p(r,s):i||(r[r.length]=s)}return r}function ci(e,t){return e&&hd(e,t,Nl)}function di(e,t){return e&&fd(e,t,Nl)}function hi(e,t){return c(t,function(t){return Js(e[t])})}function fi(e,t){t=_r(t,e);for(var n=0,i=t.length;null!=e&&nt}function vi(e,t){return null!=e&&hc.call(e,t)}function yi(e,t){return null!=e&&t in ic(e)}function bi(e,t,n){return e>=Wc(t,n)&&e=120&&c.length>=120)?new pn(a&&c):ne}c=e[0];var p=-1,m=s[0];e:for(;++p-1;)s!==e&&Tc.call(s,l,1),Tc.call(e,l,1);return e}function Ki(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;Po(r)?Tc.call(e,r,1):hr(e,r)}}return e}function Zi(e,t){return e+Dc(Hc()*(t-e+1))}function Ji(e,t,n,i){for(var r=-1,o=Uc(Ic((t-e)/(n||1)),0),a=Qu(o);o--;)a[i?o:++r]=e,e+=n;return a}function Qi(e,t){var n=\"\";if(!e||t<1||t>Ae)return n;do{t%2&&(n+=e),(t=Dc(t/2))&&(e+=e)}while(t);return n}function $i(e,t){return Td(Wo(e,t,Tu),e+\"\")}function er(e){return An(Kl(e))}function tr(e,t){var n=Kl(e);return Xo(n,$n(t,0,n.length))}function nr(e,t,n,i){if(!el(e))return e;t=_r(t,e);for(var r=-1,o=t.length,a=o-1,s=e;null!=s&&++rr?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Qu(r);++i>>1,a=e[o];null!==a&&!hl(a)&&(n?a<=t:a=ie){var u=t?null:yd(e);if(u)return Y(u);a=!1,r=D,l=new pn}else l=t?[]:s;e:for(;++i=i?e:rr(e,t,n)}function wr(e,t){if(t)return e.slice();var n=e.length,i=wc?wc(n):new e.constructor(n);return e.copy(i),i}function Mr(e){var t=new e.constructor(e.byteLength);return new xc(t).set(new xc(e)),t}function Sr(e,t){var n=t?Mr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Er(e){var t=new e.constructor(e.source,jt.exec(e));return t.lastIndex=e.lastIndex,t}function Tr(e){return sd?ic(sd.call(e)):{}}function kr(e,t){var n=t?Mr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Or(e,t){if(e!==t){var n=e!==ne,i=null===e,r=e===e,o=hl(e),a=t!==ne,s=null===t,l=t===t,u=hl(t);if(!s&&!u&&!o&&e>t||o&&a&&l&&!s&&!u||i&&a&&l||!n&&l||!r)return 1;if(!i&&!o&&!u&&e=s)return l;return l*(\"desc\"==n[i]?-1:1)}}return e.index-t.index}function Pr(e,t,n,i){for(var r=-1,o=e.length,a=n.length,s=-1,l=t.length,u=Uc(o-a,0),c=Qu(l+u),d=!i;++s1?n[r-1]:ne,a=r>2?n[2]:ne;for(o=e.length>3&&\"function\"==typeof o?(r--,o):ne,a&&Ao(n[0],n[1],a)&&(o=r<3?ne:o,r=1),t=ic(t);++i-1?r[o?t[a]:a]:ne}}function qr(e){return ho(function(t){var n=t.length,i=n,o=r.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if(\"function\"!=typeof a)throw new ac(oe);if(o&&!s&&\"wrapper\"==mo(a))var s=new r([],!0)}for(i=s?i:n;++i1&&y.reverse(),d&&ls))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var c=-1,d=!0,h=n&fe?new pn:ne;for(o.set(e,t),o.set(t,e);++c1?\"& \":\"\")+t[i],t=t.join(n>2?\", \":\" \"),e.replace(It,\"{\\n/* [wrapped with \"+t+\"] */\\n\")}function Co(e){return hh(e)||dh(e)||!!(kc&&e&&e[kc])}function Po(e,t){var n=typeof e;return!!(t=null==t?Ae:t)&&(\"number\"==n||\"symbol\"!=n&&Ht.test(e))&&e>-1&&e%1==0&&e0){if(++t>=Te)return arguments[0]}else t=0;return e.apply(ne,arguments)}}function Xo(e,t){var n=-1,i=e.length,r=i-1;for(t=t===ne?i:t;++n=this.__values__.length;return{done:e,value:e?ne:this.__values__[this.__index__++]}}function Qa(){return this}function $a(e){for(var t,n=this;n instanceof i;){var r=Qo(n);r.__index__=0,r.__values__=ne,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function es(){var e=this.__wrapped__;if(e instanceof y){var t=e;return this.__actions__.length&&(t=new y(this)),t=t.reverse(),t.__actions__.push({func:Xa,args:[Sa],thisArg:ne}),new r(t,this.__chain__)}return this.thru(Sa)}function ts(){return mr(this.__wrapped__,this.__actions__)}function ns(e,t,n){var i=hh(e)?u:oi;return n&&Ao(e,t,n)&&(t=ne),i(e,vo(t,3))}function is(e,t){return(hh(e)?c:li)(e,vo(t,3))}function rs(e,t){return ui(cs(e,t),1)}function os(e,t){return ui(cs(e,t),Pe)}function as(e,t,n){return n=n===ne?1:yl(n),ui(cs(e,t),n)}function ss(e,t){return(hh(e)?s:cd)(e,vo(t,3))}function ls(e,t){return(hh(e)?l:dd)(e,vo(t,3))}function us(e,t,n,i){e=Ws(e)?e:Kl(e),n=n&&!i?yl(n):0;var r=e.length;return n<0&&(n=Uc(r+n,0)),dl(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&w(e,t,n)>-1}function cs(e,t){return(hh(e)?f:zi)(e,vo(t,3))}function ds(e,t,n,i){return null==e?[]:(hh(t)||(t=null==t?[]:[t]),n=i?ne:n,hh(n)||(n=null==n?[]:[n]),Vi(e,t,n))}function hs(e,t,n){var i=hh(e)?m:O,r=arguments.length<3;return i(e,vo(t,4),n,r,cd)}function fs(e,t,n){var i=hh(e)?g:O,r=arguments.length<3;return i(e,vo(t,4),n,r,dd)}function ps(e,t){return(hh(e)?c:li)(e,Os(vo(t,3)))}function ms(e){return(hh(e)?An:er)(e)}function gs(e,t,n){return t=(n?Ao(e,t,n):t===ne)?1:yl(t),(hh(e)?Rn:tr)(e,t)}function vs(e){return(hh(e)?In:ir)(e)}function ys(e){if(null==e)return 0;if(Ws(e))return dl(e)?J(e):e.length;var t=wd(e);return t==Ye||t==$e?e.size:Di(e).length}function bs(e,t,n){var i=hh(e)?v:or;return n&&Ao(e,t,n)&&(t=ne),i(e,vo(t,3))}function _s(e,t){if(\"function\"!=typeof t)throw new ac(oe);return e=yl(e),function(){if(--e<1)return t.apply(this,arguments)}}function xs(e,t,n){return t=n?ne:t,t=e&&null==t?e.length:t,ro(e,xe,ne,ne,ne,ne,t)}function ws(e,t){var n;if(\"function\"!=typeof t)throw new ac(oe);return e=yl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=ne),n}}function Ms(e,t,n){t=n?ne:t;var i=ro(e,ve,ne,ne,ne,ne,ne,t);return i.placeholder=Ms.placeholder,i}function Ss(e,t,n){t=n?ne:t;var i=ro(e,ye,ne,ne,ne,ne,ne,t);return i.placeholder=Ss.placeholder,i}function Es(e,t,n){function i(t){var n=h,i=f;return h=f=ne,y=t,m=e.apply(i,n)}function r(e){return y=e,g=Ed(s,t),b?i(e):m}function o(e){var n=e-v,i=e-y,r=t-n;return _?Wc(r,p-i):r}function a(e){var n=e-v,i=e-y;return v===ne||n>=t||n<0||_&&i>=p}function s(){var e=eh();if(a(e))return l(e);g=Ed(s,o(e))}function l(e){return g=ne,x&&h?i(e):(h=f=ne,m)}function u(){g!==ne&&vd(g),y=0,h=v=f=g=ne}function c(){return g===ne?m:l(eh())}function d(){var e=eh(),n=a(e);if(h=arguments,f=this,v=e,n){if(g===ne)return r(v);if(_)return g=Ed(s,t),i(v)}return g===ne&&(g=Ed(s,t)),m}var h,f,p,m,g,v,y=0,b=!1,_=!1,x=!0;if(\"function\"!=typeof e)throw new ac(oe);return t=_l(t)||0,el(n)&&(b=!!n.leading,_=\"maxWait\"in n,p=_?Uc(_l(n.maxWait)||0,t):p,x=\"trailing\"in n?!!n.trailing:x),d.cancel=u,d.flush=c,d}function Ts(e){return ro(e,Me)}function ks(e,t){if(\"function\"!=typeof e||null!=t&&\"function\"!=typeof t)throw new ac(oe);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(ks.Cache||an),n}function Os(e){if(\"function\"!=typeof e)throw new ac(oe);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)}}function Cs(e){return ws(2,e)}function Ps(e,t){if(\"function\"!=typeof e)throw new ac(oe);return t=t===ne?t:yl(t),$i(e,t)}function As(e,t){if(\"function\"!=typeof e)throw new ac(oe);return t=null==t?0:Uc(yl(t),0),$i(function(n){var i=n[t],r=xr(n,0,t);return i&&p(r,i),o(e,this,r)})}function Rs(e,t,n){var i=!0,r=!0;if(\"function\"!=typeof e)throw new ac(oe);return el(n)&&(i=\"leading\"in n?!!n.leading:i,r=\"trailing\"in n?!!n.trailing:r),Es(e,t,{leading:i,maxWait:t,trailing:r})}function Ls(e){return xs(e,1)}function Is(e,t){return ah(br(t),e)}function Ds(){if(!arguments.length)return[];var e=arguments[0];return hh(e)?e:[e]}function Ns(e){return ei(e,de)}function Bs(e,t){return t=\"function\"==typeof t?t:ne,ei(e,de,t)}function zs(e){return ei(e,ue|de)}function Fs(e,t){return t=\"function\"==typeof t?t:ne,ei(e,ue|de,t)}function js(e,t){return null==t||ni(e,t,Nl(t))}function Us(e,t){return e===t||e!==e&&t!==t}function Ws(e){return null!=e&&$s(e.length)&&!Js(e)}function Gs(e){return tl(e)&&Ws(e)}function Vs(e){return!0===e||!1===e||tl(e)&&mi(e)==Ue}function Hs(e){return tl(e)&&1===e.nodeType&&!ul(e)}function qs(e){if(null==e)return!0;if(Ws(e)&&(hh(e)||\"string\"==typeof e||\"function\"==typeof e.splice||ph(e)||bh(e)||dh(e)))return!e.length;var t=wd(e);if(t==Ye||t==$e)return!e.size;if(No(e))return!Di(e).length;for(var n in e)if(hc.call(e,n))return!1;return!0}function Ys(e,t){return Ti(e,t)}function Xs(e,t,n){n=\"function\"==typeof n?n:ne;var i=n?n(e,t):ne;return i===ne?Ti(e,t,ne,n):!!i}function Ks(e){if(!tl(e))return!1;var t=mi(e);return t==Ve||t==Ge||\"string\"==typeof e.message&&\"string\"==typeof e.name&&!ul(e)}function Zs(e){return\"number\"==typeof e&&zc(e)}function Js(e){if(!el(e))return!1;var t=mi(e);return t==He||t==qe||t==je||t==Je}function Qs(e){return\"number\"==typeof e&&e==yl(e)}function $s(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=Ae}function el(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)}function tl(e){return null!=e&&\"object\"==typeof e}function nl(e,t){return e===t||Ci(e,t,bo(t))}function il(e,t,n){return n=\"function\"==typeof n?n:ne,Ci(e,t,bo(t),n)}function rl(e){return ll(e)&&e!=+e}function ol(e){if(Md(e))throw new ec(re);return Pi(e)}function al(e){return null===e}function sl(e){return null==e}function ll(e){return\"number\"==typeof e||tl(e)&&mi(e)==Xe}function ul(e){if(!tl(e)||mi(e)!=Ze)return!1;var t=Mc(e);if(null===t)return!0;var n=hc.call(t,\"constructor\")&&t.constructor;return\"function\"==typeof n&&n instanceof n&&dc.call(n)==gc}function cl(e){return Qs(e)&&e>=-Ae&&e<=Ae}function dl(e){return\"string\"==typeof e||!hh(e)&&tl(e)&&mi(e)==et}function hl(e){return\"symbol\"==typeof e||tl(e)&&mi(e)==tt}function fl(e){return e===ne}function pl(e){return tl(e)&&wd(e)==it}function ml(e){return tl(e)&&mi(e)==rt}function gl(e){if(!e)return[];if(Ws(e))return dl(e)?Q(e):Rr(e);if(Oc&&e[Oc])return G(e[Oc]());var t=wd(e);return(t==Ye?V:t==$e?Y:Kl)(e)}function vl(e){if(!e)return 0===e?e:0;if((e=_l(e))===Pe||e===-Pe){return(e<0?-1:1)*Re}return e===e?e:0}function yl(e){var t=vl(e),n=t%1;return t===t?n?t-n:t:0}function bl(e){return e?$n(yl(e),0,Ie):0}function _l(e){if(\"number\"==typeof e)return e;if(hl(e))return Le;if(el(e)){var t=\"function\"==typeof e.valueOf?e.valueOf():e;e=el(t)?t+\"\":t}if(\"string\"!=typeof e)return 0===e?e:+e;e=e.replace(At,\"\");var n=Wt.test(e);return n||Vt.test(e)?kn(e.slice(2),n?2:8):Ut.test(e)?Le:+e}function xl(e){return Lr(e,Bl(e))}function wl(e){return e?$n(yl(e),-Ae,Ae):0===e?e:0}function Ml(e){return null==e?\"\":cr(e)}function Sl(e,t){var n=ud(e);return null==t?n:Kn(n,t)}function El(e,t){return _(e,vo(t,3),ci)}function Tl(e,t){return _(e,vo(t,3),di)}function kl(e,t){return null==e?e:hd(e,vo(t,3),Bl)}function Ol(e,t){return null==e?e:fd(e,vo(t,3),Bl)}function Cl(e,t){return e&&ci(e,vo(t,3))}function Pl(e,t){return e&&di(e,vo(t,3))}function Al(e){return null==e?[]:hi(e,Nl(e))}function Rl(e){return null==e?[]:hi(e,Bl(e))}function Ll(e,t,n){var i=null==e?ne:fi(e,t);return i===ne?n:i}function Il(e,t){return null!=e&&So(e,t,vi)}function Dl(e,t){return null!=e&&So(e,t,yi)}function Nl(e){return Ws(e)?Cn(e):Di(e)}function Bl(e){return Ws(e)?Cn(e,!0):Ni(e)}function zl(e,t){var n={};return t=vo(t,3),ci(e,function(e,i,r){Jn(n,t(e,i,r),e)}),n}function Fl(e,t){var n={};return t=vo(t,3),ci(e,function(e,i,r){Jn(n,i,t(e,i,r))}),n}function jl(e,t){return Ul(e,Os(vo(t)))}function Ul(e,t){if(null==e)return{};var n=f(po(e),function(e){return[e]});return t=vo(t),qi(e,n,function(e,n){return t(e,n[0])})}function Wl(e,t,n){t=_r(t,e);var i=-1,r=t.length;for(r||(r=1,e=ne);++it){var i=e;e=t,t=i}if(n||e%1||t%1){var r=Hc();return Wc(e+r*(t-e+Tn(\"1e-\"+((r+\"\").length-1))),t)}return Zi(e,t)}function eu(e){return Hh(Ml(e).toLowerCase())}function tu(e){return(e=Ml(e))&&e.replace(qt,Gn).replace(fn,\"\")}function nu(e,t,n){e=Ml(e),t=cr(t);var i=e.length;n=n===ne?i:$n(yl(n),0,i);var r=n;return(n-=t.length)>=0&&e.slice(n,r)==t}function iu(e){return e=Ml(e),e&&wt.test(e)?e.replace(_t,Vn):e}function ru(e){return e=Ml(e),e&&Pt.test(e)?e.replace(Ct,\"\\\\$&\"):e}function ou(e,t,n){e=Ml(e),t=yl(t);var i=t?J(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Jr(Dc(r),n)+e+Jr(Ic(r),n)}function au(e,t,n){e=Ml(e),t=yl(t);var i=t?J(e):0;return t&&i>>0)?(e=Ml(e),e&&(\"string\"==typeof t||null!=t&&!vh(t))&&!(t=cr(t))&&U(e)?xr(Q(e),0,n):e.split(t,n)):[]}function hu(e,t,n){return e=Ml(e),n=null==n?0:$n(yl(n),0,e.length),t=cr(t),e.slice(n,n+t.length)==t}function fu(e,t,i){var r=n.templateSettings;i&&Ao(e,t,i)&&(t=ne),e=Ml(e),t=Sh({},t,r,oo);var o,a,s=Sh({},t.imports,r.imports,oo),l=Nl(s),u=I(s,l),c=0,d=t.interpolate||Yt,h=\"__p += '\",f=rc((t.escape||Yt).source+\"|\"+d.source+\"|\"+(d===Et?Ft:Yt).source+\"|\"+(t.evaluate||Yt).source+\"|$\",\"g\"),p=\"//# sourceURL=\"+(\"sourceURL\"in t?t.sourceURL:\"lodash.templateSources[\"+ ++bn+\"]\")+\"\\n\";e.replace(f,function(t,n,i,r,s,l){return i||(i=r),h+=e.slice(c,l).replace(Xt,F),n&&(o=!0,h+=\"' +\\n__e(\"+n+\") +\\n'\"),s&&(a=!0,h+=\"';\\n\"+s+\";\\n__p += '\"),i&&(h+=\"' +\\n((__t = (\"+i+\")) == null ? '' : __t) +\\n'\"),c=l+t.length,t}),h+=\"';\\n\";var m=t.variable;m||(h=\"with (obj) {\\n\"+h+\"\\n}\\n\"),h=(a?h.replace(gt,\"\"):h).replace(vt,\"$1\").replace(yt,\"$1;\"),h=\"function(\"+(m||\"obj\")+\") {\\n\"+(m?\"\":\"obj || (obj = {});\\n\")+\"var __t, __p = ''\"+(o?\", __e = _.escape\":\"\")+(a?\", __j = Array.prototype.join;\\nfunction print() { __p += __j.call(arguments, '') }\\n\":\";\\n\")+h+\"return __p\\n}\";var g=qh(function(){return tc(l,p+\"return \"+h).apply(ne,u)});if(g.source=h,Ks(g))throw g;return g}function pu(e){return Ml(e).toLowerCase()}function mu(e){return Ml(e).toUpperCase()}function gu(e,t,n){if((e=Ml(e))&&(n||t===ne))return e.replace(At,\"\");if(!e||!(t=cr(t)))return e;var i=Q(e),r=Q(t);return xr(i,N(i,r),B(i,r)+1).join(\"\")}function vu(e,t,n){if((e=Ml(e))&&(n||t===ne))return e.replace(Lt,\"\");if(!e||!(t=cr(t)))return e;var i=Q(e);return xr(i,0,B(i,Q(t))+1).join(\"\")}function yu(e,t,n){if((e=Ml(e))&&(n||t===ne))return e.replace(Rt,\"\");if(!e||!(t=cr(t)))return e;var i=Q(e);return xr(i,N(i,Q(t))).join(\"\")}function bu(e,t){var n=Se,i=Ee;if(el(t)){var r=\"separator\"in t?t.separator:r;n=\"length\"in t?yl(t.length):n,i=\"omission\"in t?cr(t.omission):i}e=Ml(e);var o=e.length;if(U(e)){var a=Q(e);o=a.length}if(n>=o)return e;var s=n-J(i);if(s<1)return i;var l=a?xr(a,0,s).join(\"\"):e.slice(0,s);if(r===ne)return l+i;if(a&&(s+=l.length-s),vh(r)){if(e.slice(s).search(r)){var u,c=l;for(r.global||(r=rc(r.source,Ml(jt.exec(r))+\"g\")),r.lastIndex=0;u=r.exec(c);)var d=u.index;l=l.slice(0,d===ne?s:d)}}else if(e.indexOf(cr(r),s)!=s){var h=l.lastIndexOf(r);h>-1&&(l=l.slice(0,h))}return l+i}function _u(e){return e=Ml(e),e&&xt.test(e)?e.replace(bt,Hn):e}function xu(e,t,n){return e=Ml(e),t=n?ne:t,t===ne?W(e)?te(e):b(e):e.match(t)||[]}function wu(e){var t=null==e?0:e.length,n=vo();return e=t?f(e,function(e){if(\"function\"!=typeof e[1])throw new ac(oe);return[n(e[0]),e[1]]}):[],$i(function(n){for(var i=-1;++iAe)return[];var n=Ie,i=Wc(e,Ie);t=vo(t),e-=Ie;for(var r=A(i,t);++n1?e[t-1]:ne;return n=\"function\"==typeof n?(e.pop(),n):ne,Ga(e,n)}),Hd=ho(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return Qn(t,e)};return!(t>1||this.__actions__.length)&&i instanceof y&&Po(n)?(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:Xa,args:[o],thisArg:ne}),new r(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(ne),e})):this.thru(o)}),qd=Nr(function(e,t,n){hc.call(e,n)?++e[n]:Jn(e,n,1)}),Yd=Hr(sa),Xd=Hr(la),Kd=Nr(function(e,t,n){hc.call(e,n)?e[n].push(t):Jn(e,n,[t])}),Zd=$i(function(e,t,n){var i=-1,r=\"function\"==typeof t,a=Ws(e)?Qu(e.length):[];return cd(e,function(e){a[++i]=r?o(t,e,n):wi(e,t,n)}),a}),Jd=Nr(function(e,t,n){Jn(e,n,t)}),Qd=Nr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),$d=$i(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ao(e,t[0],t[1])?t=[]:n>2&&Ao(t[0],t[1],t[2])&&(t=[t[0]]),Vi(e,ui(t,1),[])}),eh=Rc||function(){return Pn.Date.now()},th=$i(function(e,t,n){var i=pe;if(n.length){var r=q(n,go(th));i|=be}return ro(e,i,t,n,r)}),nh=$i(function(e,t,n){var i=pe|me;if(n.length){var r=q(n,go(nh));i|=be}return ro(t,i,e,n,r)}),ih=$i(function(e,t){return ii(e,1,t)}),rh=$i(function(e,t,n){return ii(e,_l(t)||0,n)});ks.Cache=an;var oh=gd(function(e,t){t=1==t.length&&hh(t[0])?f(t[0],L(vo())):f(ui(t,1),L(vo()));var n=t.length;return $i(function(i){for(var r=-1,a=Wc(i.length,n);++r=t}),dh=Mi(function(){return arguments}())?Mi:function(e){return tl(e)&&hc.call(e,\"callee\")&&!Ec.call(e,\"callee\")},hh=Qu.isArray,fh=Nn?L(Nn):Si,ph=Bc||Bu,mh=Bn?L(Bn):Ei,gh=zn?L(zn):Oi,vh=Fn?L(Fn):Ai,yh=jn?L(jn):Ri,bh=Un?L(Un):Li,_h=eo(Bi),xh=eo(function(e,t){return e<=t}),wh=Br(function(e,t){if(No(t)||Ws(t))return void Lr(t,Nl(t),e);for(var n in t)hc.call(t,n)&&Wn(e,n,t[n])}),Mh=Br(function(e,t){Lr(t,Bl(t),e)}),Sh=Br(function(e,t,n,i){Lr(t,Bl(t),e,i)}),Eh=Br(function(e,t,n,i){Lr(t,Nl(t),e,i)}),Th=ho(Qn),kh=$i(function(e,t){e=ic(e);var n=-1,i=t.length,r=i>2?t[2]:ne;for(r&&Ao(t[0],t[1],r)&&(i=1);++n1),t}),Lr(e,po(e),n),i&&(n=ei(n,ue|ce|de,so));for(var r=t.length;r--;)hr(n,t[r]);return n}),Dh=ho(function(e,t){return null==e?{}:Hi(e,t)}),Nh=io(Nl),Bh=io(Bl),zh=Wr(function(e,t,n){return t=t.toLowerCase(),e+(n?eu(t):t)}),Fh=Wr(function(e,t,n){return e+(n?\"-\":\"\")+t.toLowerCase()}),jh=Wr(function(e,t,n){return e+(n?\" \":\"\")+t.toLowerCase()}),Uh=Ur(\"toLowerCase\"),Wh=Wr(function(e,t,n){return e+(n?\"_\":\"\")+t.toLowerCase()}),Gh=Wr(function(e,t,n){return e+(n?\" \":\"\")+Hh(t)}),Vh=Wr(function(e,t,n){return e+(n?\" \":\"\")+t.toUpperCase()}),Hh=Ur(\"toUpperCase\"),qh=$i(function(e,t){try{return o(e,ne,t)}catch(e){return Ks(e)?e:new ec(e)}}),Yh=ho(function(e,t){return s(t,function(t){t=Ko(t),Jn(e,t,th(e[t],e))}),e}),Xh=qr(),Kh=qr(!0),Zh=$i(function(e,t){return function(n){return wi(n,e,t)}}),Jh=$i(function(e,t){return function(n){return wi(e,n,t)}}),Qh=Zr(f),$h=Zr(u),ef=Zr(v),tf=$r(),nf=$r(!0),rf=Kr(function(e,t){return e+t},0),of=no(\"ceil\"),af=Kr(function(e,t){return e/t},1),sf=no(\"floor\"),lf=Kr(function(e,t){return e*t},1),uf=no(\"round\"),cf=Kr(function(e,t){return e-t},0);return n.after=_s,n.ary=xs,n.assign=wh,n.assignIn=Mh,n.assignInWith=Sh,n.assignWith=Eh,n.at=Th,n.before=ws,n.bind=th,n.bindAll=Yh,n.bindKey=nh,n.castArray=Ds,n.chain=qa,n.chunk=$o,n.compact=ea,n.concat=ta,n.cond=wu,n.conforms=Mu,n.constant=Su,n.countBy=qd,n.create=Sl,n.curry=Ms,n.curryRight=Ss,n.debounce=Es,n.defaults=kh,n.defaultsDeep=Oh,n.defer=ih,n.delay=rh,n.difference=Od,n.differenceBy=Cd,n.differenceWith=Pd,n.drop=na,n.dropRight=ia,n.dropRightWhile=ra,n.dropWhile=oa,n.fill=aa,n.filter=is,n.flatMap=rs,n.flatMapDeep=os,n.flatMapDepth=as,n.flatten=ua,n.flattenDeep=ca,n.flattenDepth=da,n.flip=Ts,n.flow=Xh,n.flowRight=Kh,n.fromPairs=ha,n.functions=Al,n.functionsIn=Rl,n.groupBy=Kd,n.initial=ma,n.intersection=Ad,n.intersectionBy=Rd,n.intersectionWith=Ld,n.invert=Ch,n.invertBy=Ph,n.invokeMap=Zd,n.iteratee=ku,n.keyBy=Jd,n.keys=Nl,n.keysIn=Bl,n.map=cs,n.mapKeys=zl,n.mapValues=Fl,n.matches=Ou,n.matchesProperty=Cu,n.memoize=ks,n.merge=Rh,n.mergeWith=Lh,n.method=Zh,n.methodOf=Jh,n.mixin=Pu,n.negate=Os,n.nthArg=Lu,n.omit=Ih,n.omitBy=jl,n.once=Cs,n.orderBy=ds,n.over=Qh,n.overArgs=oh,n.overEvery=$h,n.overSome=ef,n.partial=ah,n.partialRight=sh,n.partition=Qd,n.pick=Dh,n.pickBy=Ul,n.property=Iu,n.propertyOf=Du,n.pull=Id,n.pullAll=_a,n.pullAllBy=xa,n.pullAllWith=wa,n.pullAt=Dd,n.range=tf,n.rangeRight=nf,n.rearg=lh,n.reject=ps,n.remove=Ma,n.rest=Ps,n.reverse=Sa,n.sampleSize=gs,n.set=Gl,n.setWith=Vl,n.shuffle=vs,n.slice=Ea,n.sortBy=$d,n.sortedUniq=Ra,n.sortedUniqBy=La,n.split=du,n.spread=As,n.tail=Ia,n.take=Da,n.takeRight=Na,n.takeRightWhile=Ba,n.takeWhile=za,n.tap=Ya,n.throttle=Rs,n.thru=Xa,n.toArray=gl,n.toPairs=Nh,n.toPairsIn=Bh,n.toPath=Wu,n.toPlainObject=xl,n.transform=Hl,n.unary=Ls,n.union=Nd,n.unionBy=Bd,n.unionWith=zd,n.uniq=Fa,n.uniqBy=ja,n.uniqWith=Ua,n.unset=ql,n.unzip=Wa,n.unzipWith=Ga,n.update=Yl,n.updateWith=Xl,n.values=Kl,n.valuesIn=Zl,n.without=Fd,n.words=xu,n.wrap=Is,n.xor=jd,n.xorBy=Ud,n.xorWith=Wd,n.zip=Gd,n.zipObject=Va,n.zipObjectDeep=Ha,n.zipWith=Vd,n.entries=Nh,n.entriesIn=Bh,n.extend=Mh,n.extendWith=Sh,Pu(n,n),n.add=rf,n.attempt=qh,n.camelCase=zh,n.capitalize=eu,n.ceil=of,n.clamp=Jl,n.clone=Ns,n.cloneDeep=zs,n.cloneDeepWith=Fs,n.cloneWith=Bs,n.conformsTo=js,n.deburr=tu,n.defaultTo=Eu,n.divide=af,n.endsWith=nu,n.eq=Us,n.escape=iu,n.escapeRegExp=ru,n.every=ns,n.find=Yd,n.findIndex=sa,n.findKey=El,n.findLast=Xd,n.findLastIndex=la,n.findLastKey=Tl,n.floor=sf,n.forEach=ss,n.forEachRight=ls,n.forIn=kl,n.forInRight=Ol,n.forOwn=Cl,n.forOwnRight=Pl,n.get=Ll,n.gt=uh,n.gte=ch,n.has=Il,n.hasIn=Dl,n.head=fa,n.identity=Tu,n.includes=us,n.indexOf=pa,n.inRange=Ql,n.invoke=Ah,n.isArguments=dh,n.isArray=hh,n.isArrayBuffer=fh,n.isArrayLike=Ws,n.isArrayLikeObject=Gs,n.isBoolean=Vs,n.isBuffer=ph,n.isDate=mh,n.isElement=Hs,n.isEmpty=qs,n.isEqual=Ys,n.isEqualWith=Xs,n.isError=Ks,n.isFinite=Zs,n.isFunction=Js,n.isInteger=Qs,n.isLength=$s,n.isMap=gh,n.isMatch=nl,n.isMatchWith=il,n.isNaN=rl,n.isNative=ol,n.isNil=sl,n.isNull=al,n.isNumber=ll,n.isObject=el,n.isObjectLike=tl,n.isPlainObject=ul,n.isRegExp=vh,n.isSafeInteger=cl,n.isSet=yh,n.isString=dl,n.isSymbol=hl,n.isTypedArray=bh,n.isUndefined=fl,n.isWeakMap=pl,n.isWeakSet=ml,n.join=ga,n.kebabCase=Fh,n.last=va,n.lastIndexOf=ya,n.lowerCase=jh,n.lowerFirst=Uh,n.lt=_h,n.lte=xh,n.max=Vu,n.maxBy=Hu,n.mean=qu,n.meanBy=Yu,n.min=Xu,n.minBy=Ku,n.stubArray=Nu,n.stubFalse=Bu,n.stubObject=zu,n.stubString=Fu,n.stubTrue=ju,n.multiply=lf,n.nth=ba,n.noConflict=Au,n.noop=Ru,n.now=eh,n.pad=ou,n.padEnd=au,n.padStart=su,n.parseInt=lu,n.random=$l,n.reduce=hs,n.reduceRight=fs,n.repeat=uu,n.replace=cu,n.result=Wl,n.round=uf,n.runInContext=e,n.sample=ms,n.size=ys,n.snakeCase=Wh,n.some=bs,n.sortedIndex=Ta,n.sortedIndexBy=ka,n.sortedIndexOf=Oa,n.sortedLastIndex=Ca,n.sortedLastIndexBy=Pa,n.sortedLastIndexOf=Aa,n.startCase=Gh,n.startsWith=hu,n.subtract=cf,n.sum=Zu,n.sumBy=Ju,n.template=fu,n.times=Uu,n.toFinite=vl,n.toInteger=yl,n.toLength=bl,n.toLower=pu,n.toNumber=_l,n.toSafeInteger=wl,n.toString=Ml,n.toUpper=mu,n.trim=gu,n.trimEnd=vu,n.trimStart=yu,n.truncate=bu,n.unescape=_u,n.uniqueId=Gu,n.upperCase=Vh,n.upperFirst=Hh,n.each=ss,n.eachRight=ls,n.first=fa,Pu(n,function(){var e={};return ci(n,function(t,i){hc.call(n.prototype,i)||(e[i]=t)}),e}(),{chain:!1}),n.VERSION=\"4.17.11\",s([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],function(e){n[e].placeholder=n}),s([\"drop\",\"take\"],function(e,t){y.prototype[e]=function(n){n=n===ne?1:Uc(yl(n),0);var i=this.__filtered__&&!t?new y(this):this.clone();return i.__filtered__?i.__takeCount__=Wc(n,i.__takeCount__):i.__views__.push({size:Wc(n,Ie),type:e+(i.__dir__<0?\"Right\":\"\")}),i},y.prototype[e+\"Right\"]=function(t){return this.reverse()[e](t).reverse()}}),s([\"filter\",\"map\",\"takeWhile\"],function(e,t){var n=t+1,i=n==Oe||3==n;y.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:vo(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}}),s([\"head\",\"last\"],function(e,t){var n=\"take\"+(t?\"Right\":\"\");y.prototype[e]=function(){return this[n](1).value()[0]}}),s([\"initial\",\"tail\"],function(e,t){var n=\"drop\"+(t?\"\":\"Right\");y.prototype[e]=function(){return this.__filtered__?new y(this):this[n](1)}}),y.prototype.compact=function(){return this.filter(Tu)},y.prototype.find=function(e){return this.filter(e).head()},y.prototype.findLast=function(e){return this.reverse().find(e)},y.prototype.invokeMap=$i(function(e,t){return\"function\"==typeof e?new y(this):this.map(function(n){return wi(n,e,t)})}),y.prototype.reject=function(e){return this.filter(Os(vo(e)))},y.prototype.slice=function(e,t){e=yl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==ne&&(t=yl(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},y.prototype.toArray=function(){return this.take(Ie)},ci(y.prototype,function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=n[o?\"take\"+(\"last\"==t?\"Right\":\"\"):t],s=o||/^find/.test(t);a&&(n.prototype[t]=function(){var t=this.__wrapped__,l=o?[1]:arguments,u=t instanceof y,c=l[0],d=u||hh(t),h=function(e){var t=a.apply(n,p([e],l));return o&&f?t[0]:t};d&&i&&\"function\"==typeof c&&1!=c.length&&(u=d=!1);var f=this.__chain__,m=!!this.__actions__.length,g=s&&!f,v=u&&!m;if(!s&&d){t=v?t:new y(this);var b=e.apply(t,l);return b.__actions__.push({func:Xa,args:[h],thisArg:ne}),new r(b,f)}return g&&v?e.apply(this,l):(b=this.thru(h),g?o?b.value()[0]:b.value():b)})}),s([\"pop\",\"push\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(e){var t=sc[e],i=/^(?:push|sort|unshift)$/.test(e)?\"tap\":\"thru\",r=/^(?:pop|shift)$/.test(e);n.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var n=this.value();return t.apply(hh(n)?n:[],e)}return this[i](function(n){return t.apply(hh(n)?n:[],e)})}}),ci(y.prototype,function(e,t){var i=n[t];if(i){var r=i.name+\"\";(ed[r]||(ed[r]=[])).push({name:t,func:i})}}),ed[Yr(ne,me).name]=[{name:\"wrapper\",func:ne}],y.prototype.clone=k,y.prototype.reverse=K,y.prototype.value=$,n.prototype.at=Hd,n.prototype.chain=Ka,n.prototype.commit=Za,n.prototype.next=Ja,n.prototype.plant=$a,n.prototype.reverse=es,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=ts,n.prototype.first=n.prototype.head,Oc&&(n.prototype[Oc]=Qa),n}();Pn._=qn,(r=function(){return qn}.call(t,n,t,i))!==ne&&(i.exports=r)}).call(this)}).call(t,n(28),n(141)(e))},function(e,t,n){e.exports={default:n(375),__esModule:!0}},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e){function i(e,t){function n(){this.constructor=e}tn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function r(e){return e.interceptors&&e.interceptors.length>0}function o(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),Ce(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function a(e,t){var n=Tt();try{var i=e.interceptors;if(i)for(var r=0,o=i.length;r0}function l(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),Ce(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function u(e,t){var n=Tt(),i=e.changeListeners;if(i){i=i.slice();for(var r=0,o=i.length;r=this.length,value:t0,\"actions should have valid names, got: '\"+e+\"'\");var n=function(){return S(e,t,this,arguments)};return n.originalFn=t,n.isMobxAction=!0,n}function S(e,t,n,i){var r=E(e,t,n,i);try{return t.apply(n,i)}finally{T(r)}}function E(e,t,n,i){var r=c()&&!!e,o=0;if(r){o=Date.now();var a=i&&i.length||0,s=new Array(a);if(a>0)for(var l=0;l\",r=\"function\"==typeof e?e:t,o=\"function\"==typeof e?t:n;return ke(\"function\"==typeof r,w(\"m002\")),ke(0===r.length,w(\"m003\")),ke(\"string\"==typeof i&&i.length>0,\"actions should have valid names, got: '\"+i+\"'\"),S(i,r,o,void 0)}function z(e){return\"function\"==typeof e&&!0===e.isMobxAction}function F(e,t,n){var i=function(){return S(t,n,e,arguments)};i.isMobxAction=!0,Ne(e,t,i)}function j(e,t){return U(e,t)}function U(e,t,n,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var r=typeof e;return(\"function\"===r||\"object\"===r||\"object\"==typeof t)&&W(e,t,n,i)}function W(e,t,n,i){e=G(e),t=G(t);var r=wn.call(e);if(r!==wn.call(t))return!1;switch(r){case\"[object RegExp]\":case\"[object String]\":return\"\"+e==\"\"+t;case\"[object Number]\":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case\"[object Date]\":case\"[object Boolean]\":return+e==+t;case\"[object Symbol]\":return\"undefined\"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t)}var o=\"[object Array]\"===r;if(!o){if(\"object\"!=typeof e||\"object\"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(\"function\"==typeof a&&a instanceof a&&\"function\"==typeof s&&s instanceof s)&&\"constructor\"in e&&\"constructor\"in t)return!1}n=n||[],i=i||[];for(var l=n.length;l--;)if(n[l]===e)return i[l]===t;if(n.push(e),i.push(t),o){if((l=e.length)!==t.length)return!1;for(;l--;)if(!U(e[l],t[l],n,i))return!1}else{var u,c=Object.keys(e);if(l=c.length,Object.keys(t).length!==l)return!1;for(;l--;)if(u=c[l],!V(t,u)||!U(e[u],t[u],n,i))return!1}return n.pop(),i.pop(),!0}function G(e){return x(e)?e.peek():Fn(e)?e.entries():Ge(e)?He(e.entries()):e}function V(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function H(e,t){return e===t}function q(e,t){return j(e,t)}function Y(e,t){return Ue(e,t)||H(e,t)}function X(e,t,n){function i(){o(s)}var r,o,a;\"string\"==typeof e?(r=e,o=t,a=n):(r=e.name||\"Autorun@\"+Ee(),o=e,a=t),ke(\"function\"==typeof o,w(\"m004\")),ke(!1===z(o),w(\"m005\")),a&&(o=o.bind(a));var s=new ei(r,function(){this.track(i)});return s.schedule(),s.getDisposer()}function K(e,t,n,i){var r,o,a,s;return\"string\"==typeof e?(r=e,o=t,a=n,s=i):(r=\"When@\"+Ee(),o=e,a=t,s=n),X(r,function(e){if(o.call(s)){e.dispose();var t=Tt();a.call(s),kt(t)}})}function Z(e,t,n,i){function r(){a(c)}var o,a,s,l;\"string\"==typeof e?(o=e,a=t,s=n,l=i):(o=e.name||\"AutorunAsync@\"+Ee(),a=e,s=t,l=n),ke(!1===z(a),w(\"m006\")),void 0===s&&(s=1),l&&(a=a.bind(l));var u=!1,c=new ei(o,function(){u||(u=!0,setTimeout(function(){u=!1,c.isDisposed||c.track(r)},s))});return c.schedule(),c.getDisposer()}function J(e,t,n){function i(){if(!u.isDisposed){var n=!1;u.track(function(){var t=e(u);n=a||!l(o,t),o=t}),a&&r.fireImmediately&&t(o,u),a||!0!==n||t(o,u),a&&(a=!1)}}arguments.length>3&&Te(w(\"m007\")),me(e)&&Te(w(\"m008\"));var r;r=\"object\"==typeof n?n:{},r.name=r.name||e.name||t.name||\"Reaction@\"+Ee(),r.fireImmediately=!0===n||!0===r.fireImmediately,r.delay=r.delay||0,r.compareStructural=r.compareStructural||r.struct||!1,t=xn(r.name,r.context?t.bind(r.context):t),r.context&&(e=e.bind(r.context));var o,a=!0,s=!1,l=r.equals?r.equals:r.compareStructural||r.struct?Mn.structural:Mn.default,u=new ei(r.name,function(){a||r.delay<1?i():s||(s=!0,setTimeout(function(){s=!1,i()},r.delay))});return u.schedule(),u.getDisposer()}function Q(e,t){if(se(e)&&e.hasOwnProperty(\"$mobx\"))return e.$mobx;ke(Object.isExtensible(e),w(\"m035\")),Le(e)||(t=(e.constructor.name||\"ObservableObject\")+\"@\"+Ee()),t||(t=\"ObservableObject@\"+Ee());var n=new Tn(e,t);return Be(e,\"$mobx\",n),n}function $(e,t,n,i){if(e.values[t]&&!En(e.values[t]))return ke(\"value\"in n,\"The property \"+t+\" in \"+e.name+\" is already observable, cannot redefine it as computed property\"),void(e.target[t]=n.value);if(\"value\"in n)if(me(n.value)){var r=n.value;ee(e,t,r.initialValue,r.enhancer)}else z(n.value)&&!0===n.value.autoBind?F(e.target,t,n.value.originalFn):En(n.value)?ne(e,t,n.value):ee(e,t,n.value,i);else te(e,t,n.get,n.set,Mn.default,!0)}function ee(e,t,n,i){if(Fe(e.target,t),r(e)){var o=a(e,{object:e.target,name:t,type:\"add\",newValue:n});if(!o)return;n=o.newValue}n=(e.values[t]=new gn(n,i,e.name+\".\"+t,!1)).value,Object.defineProperty(e.target,t,ie(t)),ae(e,e.target,t,n)}function te(e,t,n,i,r,o){o&&Fe(e.target,t),e.values[t]=new Sn(n,e.target,r,e.name+\".\"+t,i),o&&Object.defineProperty(e.target,t,re(t))}function ne(e,t,n){var i=e.name+\".\"+t;n.name=i,n.scope||(n.scope=e.target),e.values[t]=n,Object.defineProperty(e.target,t,re(t))}function ie(e){return kn[e]||(kn[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[e].get()},set:function(t){oe(this,e,t)}})}function re(e){return On[e]||(On[e]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[e].get()},set:function(t){return this.$mobx.values[e].set(t)}})}function oe(e,t,n){var i=e.$mobx,o=i.values[t];if(r(i)){var l=a(i,{type:\"update\",object:e,name:t,newValue:n});if(!l)return;n=l.newValue}if((n=o.prepareNewValue(n))!==mn){var d=s(i),p=c(),l=d||p?{type:\"update\",object:e,oldValue:o.value,name:t,newValue:n}:null;p&&h(l),o.setNewValue(n),d&&u(i,l),p&&f()}}function ae(e,t,n,i){var r=s(e),o=c(),a=r||o?{type:\"add\",object:t,name:n,newValue:i}:null;o&&h(a),r&&u(e,a),o&&f()}function se(e){return!!Re(e)&&(I(e),Cn(e.$mobx))}function le(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(x(e)||Fn(e))throw new Error(w(\"m019\"));if(se(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return se(e)||!!e.$mobx||on(e)||ii(e)||En(e)}function ue(e){return ke(!!e,\":(\"),R(function(t,n,i,r,o){Fe(t,n),ke(!o||!o.get,w(\"m022\")),ee(Q(t,void 0),n,i,e)},function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()},function(e,t){oe(this,e,t)},!0,!1)}function ce(e){for(var t=[],n=1;n=2,w(\"m014\")),ke(\"object\"==typeof e,w(\"m015\")),ke(!Fn(e),w(\"m016\")),n.forEach(function(e){ke(\"object\"==typeof e,w(\"m017\")),ke(!le(e),w(\"m018\"))});for(var i=Q(e),r={},o=n.length-1;o>=0;o--){var a=n[o];for(var s in a)if(!0!==r[s]&&De(a,s)){if(r[s]=!0,e===a&&!ze(e,s))continue;var l=Object.getOwnPropertyDescriptor(a,s);$(i,s,l,t)}}return e}function fe(e){if(void 0===e&&(e=void 0),\"string\"==typeof arguments[1])return Pn.apply(null,arguments);if(ke(arguments.length<=1,w(\"m021\")),ke(!me(e),w(\"m020\")),le(e))return e;var t=ve(e,void 0,void 0);return t!==e?t:Nn.box(e)}function pe(e){Te(\"Expected one or two arguments to observable.\"+e+\". Did you accidentally try to use observable.\"+e+\" as decorator?\")}function me(e){return\"object\"==typeof e&&null!==e&&!0===e.isMobxModifierDescriptor}function ge(e,t){return ke(!me(t),\"Modifiers cannot be nested\"),{isMobxModifierDescriptor:!0,initialValue:t,enhancer:e}}function ve(e,t,n){return me(e)&&Te(\"You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it\"),le(e)?e:Array.isArray(e)?Nn.array(e,n):Le(e)?Nn.object(e,n):Ge(e)?Nn.map(e,n):e}function ye(e,t,n){return me(e)&&Te(\"You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it\"),void 0===e||null===e?e:se(e)||x(e)||Fn(e)?e:Array.isArray(e)?Nn.shallowArray(e,n):Le(e)?Nn.shallowObject(e,n):Ge(e)?Nn.shallowMap(e,n):Te(\"The shallow modifier / decorator can only used in combination with arrays, objects and maps\")}function be(e){return e}function _e(e,t,n){if(j(e,t))return t;if(le(e))return e;if(Array.isArray(e))return new hn(e,_e,n);if(Ge(e))return new zn(e,_e,n);if(Le(e)){var i={};return Q(i,n),he(i,_e,[e]),i}return e}function xe(e,t,n){return j(e,t)?t:e}function we(e,t){void 0===t&&(t=void 0),ct();try{return e.apply(t)}finally{dt()}}function Me(e){return Oe(\"`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead\"),Nn.map(e)}function Se(){return\"undefined\"!=typeof window?window:e}function Ee(){return++qn.mobxGuid}function Te(e,t){throw ke(!1,e,t),\"X\"}function ke(e,t,n){if(!e)throw new Error(\"[mobx] Invariant failed: \"+t+(n?\" in '\"+n+\"'\":\"\"))}function Oe(e){return-1===Un.indexOf(e)&&(Un.push(e),console.error(\"[mobx] Deprecated: \"+e),!0)}function Ce(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}function Pe(e){var t=[];return e.forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),t}function Ae(e,t,n){return void 0===t&&(t=100),void 0===n&&(n=\" - \"),e?e.slice(0,t).join(n)+(e.length>t?\" (... and \"+(e.length-t)+\"more)\":\"\"):\"\"}function Re(e){return null!==e&&\"object\"==typeof e}function Le(e){if(null===e||\"object\"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function Ie(){for(var e=arguments[0],t=1,n=arguments.length;t0&&(t.dependencies=Pe(e.observing).map(nt)),t}function it(e,t){return rt(Qe(e,t))}function rt(e){var t={name:e.name};return ot(e)&&(t.observers=at(e).map(rt)),t}function ot(e){return e.observers&&e.observers.length>0}function at(e){return e.observers}function st(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function lt(e,t){if(1===e.observers.length)e.observers.length=0,ut(e);else{var n=e.observers,i=e.observersIndexes,r=n.pop();if(r!==t){var o=i[t.__mapid]||0;o?i[r.__mapid]=o:delete i[r.__mapid],n[o]=r}delete i[t.__mapid]}}function ut(e){e.isPendingUnobservation||(e.isPendingUnobservation=!0,qn.pendingUnobservations.push(e))}function ct(){qn.inBatch++}function dt(){if(0==--qn.inBatch){Dt();for(var e=qn.pendingUnobservations,t=0;t=1e3)return void t.push(\"(and many more)\");t.push(\"\"+new Array(n).join(\"\\t\")+e.name),e.dependencies&&e.dependencies.forEach(function(e){return vt(e,t,n+1)})}function yt(e){return e instanceof $n}function bt(e){switch(e.dependenciesState){case Jn.UP_TO_DATE:return!1;case Jn.NOT_TRACKING:case Jn.STALE:return!0;case Jn.POSSIBLY_STALE:for(var t=Tt(),n=e.observing,i=n.length,r=0;r0;qn.computationDepth>0&&t&&Te(w(\"m031\")+e.name),!qn.allowStateChanges&&t&&Te(w(qn.strictMode?\"m030a\":\"m030b\")+e.name)}function wt(e,t,n){Ot(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++qn.runId;var i=qn.trackingDerivation;qn.trackingDerivation=e;var r;try{r=t.call(n)}catch(e){r=new $n(e)}return qn.trackingDerivation=i,Mt(e),r}function Mt(e){for(var t=e.observing,n=e.observing=e.newObserving,i=Jn.UP_TO_DATE,r=0,o=e.unboundDepsCount,a=0;ai&&(i=s.dependenciesState)}for(n.length=r,e.newObserving=null,o=t.length;o--;){var s=t[o];0===s.diffValue&<(s,e),s.diffValue=0}for(;r--;){var s=n[r];1===s.diffValue&&(s.diffValue=0,st(s,e))}i!==Jn.UP_TO_DATE&&(e.dependenciesState=i,e.onBecomeStale())}function St(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)lt(t[n],e);e.dependenciesState=Jn.NOT_TRACKING}function Et(e){var t=Tt(),n=e();return kt(t),n}function Tt(){var e=qn.trackingDerivation;return qn.trackingDerivation=null,e}function kt(e){qn.trackingDerivation=e}function Ot(e){if(e.dependenciesState!==Jn.UP_TO_DATE){e.dependenciesState=Jn.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=Jn.UP_TO_DATE}}function Ct(e){return console.log(e),e}function Pt(e,t){return Oe(\"`whyRun` is deprecated in favor of `trace`\"),e=Rt(arguments),e?En(e)||ii(e)?Ct(e.whyRun()):Te(w(\"m025\")):Ct(w(\"m024\"))}function At(){for(var e=[],t=0;t=0&&qn.globalReactionErrorHandlers.splice(t,1)}}function Dt(){qn.inBatch>0||qn.isRunningReactions||ni(Nt)}function Nt(){qn.isRunningReactions=!0;for(var e=qn.pendingReactions,t=0;e.length>0;){++t===ti&&(console.error(\"Reaction doesn't converge to a stable state after \"+ti+\" iterations. Probably there is a cycle in the reactive function: \"+e[0]),e.splice(0));for(var n=e.splice(0),i=0,r=n.length;it){for(var n=new Array(e-t),i=0;i0&&e+t+1>un&&_(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var i=this;xt(this.atom);var o=this.values.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:void 0===t||null===t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=[]),r(this)){var s=a(this,{object:this.array,type:\"splice\",index:e,removedCount:t,added:n});if(!s)return jn;t=s.removedCount,n=s.added}n=n.map(function(e){return i.enhancer(e,void 0)});var l=n.length-t;this.updateArrayLength(o,l);var u=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,u),this.dehanceValues(u)},e.prototype.spliceItemsIntoValues=function(e,t,n){if(n.length<1e4)return(r=this.values).splice.apply(r,[e,t].concat(n));var i=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),i;var r},e.prototype.notifyArrayChildUpdate=function(e,t,n){var i=!this.owned&&c(),r=s(this),o=r||i?{object:this.array,type:\"update\",index:e,newValue:t,oldValue:n}:null;i&&h(o),this.atom.reportChanged(),r&&u(this,o),i&&f()},e.prototype.notifyArraySplice=function(e,t,n){var i=!this.owned&&c(),r=s(this),o=r||i?{object:this.array,type:\"splice\",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;i&&h(o),this.atom.reportChanged(),r&&u(this,o),i&&f()},e}(),hn=function(e){function t(t,n,i,r){void 0===i&&(i=\"ObservableArray@\"+Ee()),void 0===r&&(r=!1);var o=e.call(this)||this,a=new dn(i,n,o,r);return Be(o,\"$mobx\",a),t&&t.length&&o.spliceWithArray(0,0,t),ln&&Object.defineProperty(a.array,\"0\",fn),o}return i(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error(\"[mobx.array] Index out of bounds: \"+e+\" is negative\");var t=this.$mobx.values.length;if(e>=t)throw new Error(\"[mobx.array] Index out of bounds: \"+e+\" is not smaller than \"+t)}if(n.call(this,e),n.call(this,t),e!==t){var i,r=this.$mobx.values;i=e\";Ne(e,t,xn(o,n))},function(e){return this[e]},function(){ke(!1,w(\"m001\"))},!1,!0),_n=R(function(e,t,n){F(e,t,n)},function(e){return this[e]},function(){ke(!1,w(\"m001\"))},!1,!1),xn=function(e,t,n,i){return 1===arguments.length&&\"function\"==typeof e?M(e.name||\"\",e):2===arguments.length&&\"function\"==typeof t?M(e,t):1===arguments.length&&\"string\"==typeof e?N(e):N(t).apply(null,arguments)};xn.bound=function(e,t,n){if(\"function\"==typeof e){var i=M(\"\",e);return i.autoBind=!0,i}return _n.apply(null,arguments)};var wn=Object.prototype.toString,Mn={identity:H,structural:q,default:Y},Sn=function(){function e(e,t,n,i,r){this.derivation=e,this.scope=t,this.equals=n,this.dependenciesState=Jn.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Jn.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid=\"#\"+Ee(),this.value=new $n(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Qn.NONE,this.name=i||\"ComputedValue@\"+Ee(),r&&(this.setter=M(i+\"-setter\",r))}return e.prototype.onBecomeStale=function(){mt(this)},e.prototype.onBecomeUnobserved=function(){St(this),this.value=void 0},e.prototype.get=function(){ke(!this.isComputing,\"Cycle detected in computation \"+this.name,this.derivation),0===qn.inBatch?(ct(),bt(this)&&(this.isTracing!==Qn.NONE&&console.log(\"[mobx.trace] '\"+this.name+\"' is being read outside a reactive context and doing a full recompute\"),this.value=this.computeValue(!1)),dt()):(ht(this),bt(this)&&this.trackAndCompute()&&pt(this));var e=this.value;if(yt(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(yt(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){ke(!this.isRunningSetter,\"The setter of computed value '\"+this.name+\"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?\"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else ke(!1,\"[ComputedValue '\"+this.name+\"'] It is not possible to assign a new value to a computed value.\")},e.prototype.trackAndCompute=function(){c()&&d({object:this.scope,type:\"compute\",fn:this.derivation});var e=this.value,t=this.dependenciesState===Jn.NOT_TRACKING,n=this.value=this.computeValue(!0);return t||yt(e)||yt(n)||!this.equals(e,n)},e.prototype.computeValue=function(e){this.isComputing=!0,qn.computationDepth++;var t;if(e)t=wt(this,this.derivation,this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new $n(e)}return qn.computationDepth--,this.isComputing=!1,t},e.prototype.observe=function(e,t){var n=this,i=!0,r=void 0;return X(function(){var o=n.get();if(!i||t){var a=Tt();e({type:\"update\",object:n,newValue:o,oldValue:r}),kt(a)}i=!1,r=o})},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+\"[\"+this.derivation.toString()+\"]\"},e.prototype.valueOf=function(){return Ye(this.get())},e.prototype.whyRun=function(){var e=Boolean(qn.trackingDerivation),t=Pe(this.isComputing?this.newObserving:this.observing).map(function(e){return e.name}),n=Pe(at(this).map(function(e){return e.name}));return\"\\nWhyRun? computation '\"+this.name+\"':\\n * Running because: \"+(e?\"[active] the value of this computation is needed by a reaction\":this.isComputing?\"[get] The value of this computed was requested outside a reaction\":\"[idle] not running at the moment\")+\"\\n\"+(this.dependenciesState===Jn.NOT_TRACKING?w(\"m032\"):\" * This computation will re-run if any of the following observables changes:\\n \"+Ae(t)+\"\\n \"+(this.isComputing&&e?\" (... or any observable accessed during the remainder of the current run)\":\"\")+\"\\n \"+w(\"m038\")+\"\\n\\n * If the outcome of this computation changes, the following observers will be re-run:\\n \"+Ae(n)+\"\\n\")},e}();Sn.prototype[qe()]=Sn.prototype.valueOf;var En=je(\"ComputedValue\",Sn),Tn=function(){function e(e,t){this.target=e,this.name=t,this.values={},this.changeListeners=null,this.interceptors=null}return e.prototype.observe=function(e,t){return ke(!0!==t,\"`observe` doesn't support the fire immediately property for observable objects.\"),l(this,e)},e.prototype.intercept=function(e){return o(this,e)},e}(),kn={},On={},Cn=je(\"ObservableObjectAdministration\",Tn),Pn=ue(ve),An=ue(ye),Rn=ue(be),Ln=ue(_e),In=ue(xe),Dn={box:function(e,t){return arguments.length>2&&pe(\"box\"),new gn(e,ve,t)},shallowBox:function(e,t){return arguments.length>2&&pe(\"shallowBox\"),new gn(e,be,t)},array:function(e,t){return arguments.length>2&&pe(\"array\"),new hn(e,ve,t)},shallowArray:function(e,t){return arguments.length>2&&pe(\"shallowArray\"),new hn(e,be,t)},map:function(e,t){return arguments.length>2&&pe(\"map\"),new zn(e,ve,t)},shallowMap:function(e,t){return arguments.length>2&&pe(\"shallowMap\"),new zn(e,be,t)},object:function(e,t){arguments.length>2&&pe(\"object\");var n={};return Q(n,t),ce(n,e),n},shallowObject:function(e,t){arguments.length>2&&pe(\"shallowObject\");var n={};return Q(n,t),de(n,e),n},ref:function(){return arguments.length<2?ge(be,arguments[0]):Rn.apply(null,arguments)},shallow:function(){return arguments.length<2?ge(ye,arguments[0]):An.apply(null,arguments)},deep:function(){return arguments.length<2?ge(ve,arguments[0]):Pn.apply(null,arguments)},struct:function(){return arguments.length<2?ge(_e,arguments[0]):Ln.apply(null,arguments)}},Nn=fe;Object.keys(Dn).forEach(function(e){return Nn[e]=Dn[e]}),Nn.deep.struct=Nn.struct,Nn.ref.struct=function(){return arguments.length<2?ge(xe,arguments[0]):In.apply(null,arguments)};var Bn={},zn=function(){function e(e,t,n){void 0===t&&(t=ve),void 0===n&&(n=\"ObservableMap@\"+Ee()),this.enhancer=t,this.name=n,this.$mobx=Bn,this._data=Object.create(null),this._hasMap=Object.create(null),this._keys=new hn(void 0,be,this.name+\".keys()\",!0),this.interceptors=null,this.changeListeners=null,this.dehancer=void 0,this.merge(e)}return e.prototype._has=function(e){return void 0!==this._data[e]},e.prototype.has=function(e){return!!this.isValidKey(e)&&(e=\"\"+e,this._hasMap[e]?this._hasMap[e].get():this._updateHasMapEntry(e,!1).get())},e.prototype.set=function(e,t){this.assertValidKey(e),e=\"\"+e;var n=this._has(e);if(r(this)){var i=a(this,{type:n?\"update\":\"add\",object:this,newValue:t,name:e});if(!i)return this;t=i.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(this.assertValidKey(e),e=\"\"+e,r(this)){var n=a(this,{type:\"delete\",object:this,name:e});if(!n)return!1}if(this._has(e)){var i=c(),o=s(this),n=o||i?{type:\"delete\",object:this,oldValue:this._data[e].value,name:e}:null;return i&&h(n),we(function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data[e].setNewValue(void 0),t._data[e]=void 0}),o&&u(this,n),i&&f(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap[e];return n?n.setNewValue(t):n=this._hasMap[e]=new gn(t,be,this.name+\".\"+e+\"?\",!1),n},e.prototype._updateValue=function(e,t){var n=this._data[e];if((t=n.prepareNewValue(t))!==mn){var i=c(),r=s(this),o=r||i?{type:\"update\",object:this,oldValue:n.value,name:e,newValue:t}:null;i&&h(o),n.setNewValue(t),r&&u(this,o),i&&f()}},e.prototype._addValue=function(e,t){var n=this;we(function(){var i=n._data[e]=new gn(t,n.enhancer,n.name+\".\"+e,!1);t=i.value,n._updateHasMapEntry(e,!0),n._keys.push(e)});var i=c(),r=s(this),o=r||i?{type:\"add\",object:this,name:e,newValue:t}:null;i&&h(o),r&&u(this,o),i&&f()},e.prototype.get=function(e){return e=\"\"+e,this.has(e)?this.dehanceValue(this._data[e].get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return g(this._keys.slice())},e.prototype.values=function(){return g(this._keys.map(this.get,this))},e.prototype.entries=function(){var e=this;return g(this._keys.map(function(t){return[t,e.get(t)]}))},e.prototype.forEach=function(e,t){var n=this;this.keys().forEach(function(i){return e.call(t,n.get(i),i,n)})},e.prototype.merge=function(e){var t=this;return Fn(e)&&(e=e.toJS()),we(function(){Le(e)?Object.keys(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=e[0],i=e[1];return t.set(n,i)}):Ge(e)?e.forEach(function(e,n){return t.set(n,e)}):null!==e&&void 0!==e&&Te(\"Cannot initialize map from \"+e)}),this},e.prototype.clear=function(){var e=this;we(function(){Et(function(){e.keys().forEach(e.delete,e)})})},e.prototype.replace=function(e){var t=this;return we(function(){var n=Ve(e);t.keys().filter(function(e){return-1===n.indexOf(e)}).forEach(function(e){return t.delete(e)}),t.merge(e)}),this},Object.defineProperty(e.prototype,\"size\",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toJS=function(){var e=this,t={};return this.keys().forEach(function(n){return t[n]=e.get(n)}),t},e.prototype.toJSON=function(){return this.toJS()},e.prototype.isValidKey=function(e){return null!==e&&void 0!==e&&(\"string\"==typeof e||\"number\"==typeof e||\"boolean\"==typeof e)},e.prototype.assertValidKey=function(e){if(!this.isValidKey(e))throw new Error(\"[mobx.map] Invalid key: '\"+e+\"', only strings, numbers and booleans are accepted as key in observable maps.\")},e.prototype.toString=function(){var e=this;return this.name+\"[{ \"+this.keys().map(function(t){return t+\": \"+e.get(t)}).join(\", \")+\" }]\"},e.prototype.observe=function(e,t){return ke(!0!==t,w(\"m033\")),l(this,e)},e.prototype.intercept=function(e){return o(this,e)},e}();v(zn.prototype,function(){return this.entries()});var Fn=je(\"ObservableMap\",zn),jn=[];Object.freeze(jn);var Un=[],Wn=function(){},Gn=Object.prototype.hasOwnProperty,Vn=[\"mobxGuid\",\"resetId\",\"spyListeners\",\"strictMode\",\"runId\"],Hn=function(){function e(){this.version=5,this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[],this.globalReactionErrorHandlers=[]}return e}(),qn=new Hn,Yn=!1,Xn=!1,Kn=!1,Zn=Se();Zn.__mobxInstanceCount?(Zn.__mobxInstanceCount++,setTimeout(function(){Yn||Xn||Kn||(Kn=!0,console.warn(\"[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details.\"))},1)):Zn.__mobxInstanceCount=1;var Jn;!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\"}(Jn||(Jn={}));var Qn;!function(e){e[e.NONE=0]=\"NONE\",e[e.LOG=1]=\"LOG\",e[e.BREAK=2]=\"BREAK\"}(Qn||(Qn={}));var $n=function(){function e(e){this.cause=e}return e}(),ei=function(){function e(e,t){void 0===e&&(e=\"Reaction@\"+Ee()),this.name=e,this.onInvalidate=t,this.observing=[],this.newObserving=[],this.dependenciesState=Jn.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid=\"#\"+Ee(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Qn.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,qn.pendingReactions.push(this),Dt())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(ct(),this._isScheduled=!1,bt(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&c()&&d({object:this,type:\"scheduled-reaction\"})),dt())},e.prototype.track=function(e){ct();var t,n=c();n&&(t=Date.now(),h({object:this,type:\"reaction\",fn:e})),this._isRunning=!0;var i=wt(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&St(this),yt(i)&&this.reportExceptionInDerivation(i.cause),n&&f({time:Date.now()-t}),dt()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)return void this.errorHandler(e,this);var n=\"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '\"+this,i=w(\"m037\");console.error(n||i,e),c()&&d({type:\"error\",message:n,error:e,object:this}),qn.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(ct(),St(this),dt()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e.onError=Lt,e},e.prototype.toString=function(){return\"Reaction[\"+this.name+\"]\"},e.prototype.whyRun=function(){var e=Pe(this._isRunning?this.newObserving:this.observing).map(function(e){return e.name});return\"\\nWhyRun? reaction '\"+this.name+\"':\\n * Status: [\"+(this.isDisposed?\"stopped\":this._isRunning?\"running\":this.isScheduled()?\"scheduled\":\"idle\")+\"]\\n * This reaction will re-run if any of the following observables changes:\\n \"+Ae(e)+\"\\n \"+(this._isRunning?\" (... or any observable accessed during the remainder of the current run)\":\"\")+\"\\n\\t\"+w(\"m038\")+\"\\n\"},e.prototype.trace=function(e){void 0===e&&(e=!1),At(this,e)},e}(),ti=100,ni=function(e){return e()},ii=je(\"Reaction\",ei),ri=Wt(Mn.default),oi=Wt(Mn.structural),ai=function(e,t,n){if(\"string\"==typeof t)return ri.apply(null,arguments);ke(\"function\"==typeof e,w(\"m011\")),ke(arguments.length<3,w(\"m012\"));var i=\"object\"==typeof t?t:{};i.setter=\"function\"==typeof t?t:i.setter;var r=i.equals?i.equals:i.compareStructural||i.struct?Mn.structural:Mn.default;return new Sn(e,i.context,r,i.name||e.name||\"\",i.setter)};ai.struct=oi,ai.equals=Wt;var si={allowStateChanges:C,deepEqual:j,getAtom:Qe,getDebugName:et,getDependencyTree:tt,getAdministration:$e,getGlobalState:Ze,getObserverTree:it,interceptReads:en,isComputingDerivation:_t,isSpyEnabled:c,onReactionError:It,reserveArrayBuffer:_,resetGlobalState:Je,isolateGlobalState:Xe,shareGlobalState:Ke,spyReport:d,spyReportEnd:f,spyReportStart:h,setReactionScheduler:Bt},li={Reaction:ei,untracked:Et,Atom:rn,BaseAtom:nn,useStrict:k,isStrictModeEnabled:O,spy:p,comparer:Mn,asReference:zt,asFlat:jt,asStructure:Ft,asMap:Ut,isModifierDescriptor:me,isObservableObject:se,isBoxedObservable:vn,isObservableArray:x,ObservableMap:zn,isObservableMap:Fn,map:Me,transaction:we,observable:Nn,computed:ai,isObservable:le,isComputed:Gt,extendObservable:ce,extendShallowObservable:de,observe:Vt,intercept:Yt,autorun:X,autorunAsync:Z,when:K,reaction:J,action:xn,isAction:z,runInAction:B,expr:Zt,toJS:Jt,createTransformer:Qt,whyRun:Pt,isArrayLike:We,extras:si},ui=!1;for(var ci in li)!function(e){var t=li[e];Object.defineProperty(li,e,{get:function(){return ui||(ui=!0,console.warn(\"Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in mobx@4.0.0\\nUse `import * as mobx from 'mobx'` instead\")),t}})}(ci);\"object\"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:p,extras:si}),t.default=li}.call(t,n(28))},function(e,t,n){e.exports={default:n(376),__esModule:!0}},function(e,t){e.exports=function(e){return\"object\"==typeof e?null!==e:\"function\"==typeof e}},function(e,t,n){var i=n(30),r=n(163),o=n(118),a=Object.defineProperty;t.f=n(31)?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(e,t,n)}catch(e){}if(\"get\"in n||\"set\"in n)throw TypeError(\"Accessors not supported!\");return\"value\"in n&&(e[t]=n.value),e}},function(e,t){\"function\"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){e.exports=n(546)()},function(e,t){var n;n=function(){return this}();try{n=n||Function(\"return this\")()||(0,eval)(\"this\")}catch(e){\"object\"==typeof window&&(n=window)}e.exports=n},function(e,t,n){\"use strict\";function i(e,t,n,i){var o,a,s,l,u,c,d,h,f,p=Object.keys(n);for(o=0,a=p.length;o0)},o.Buffer=function(){try{var e=o.inquire(\"buffer\").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(e){return\"number\"==typeof e?o.Buffer?o._Buffer_allocUnsafe(e):new o.Array(e):o.Buffer?o._Buffer_from(e):\"undefined\"==typeof Uint8Array?e:new Uint8Array(e)},o.Array=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire(\"long\"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\\\x00-\\\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(e){return e?o.LongBits.from(e).toHash():o.LongBits.zeroHash},o.longFromHash=function(e,t){var n=o.LongBits.fromHash(e);return o.Long?o.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},o.merge=i,o.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},o.newError=r,o.ProtocolError=r(\"ProtocolError\"),o.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},o.oneOfSetter=function(e){return function(t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2];this.coordinates.isInitialized()&&!n||this.coordinates.initialize(e,t)}},{key:\"updateDimension\",value:function(e,t){this.camera.aspect=e/t,this.camera.updateProjectionMatrix(),this.renderer.setSize(e,t),this.dimension.width=e,this.dimension.height=t}},{key:\"enableOrbitControls\",value:function(){var e=this.adc.mesh.position;this.controls.enabled=!0,this.controls.enableRotate=!1,this.controls.reset(),this.controls.minDistance=20,this.controls.maxDistance=1e3,this.controls.target.set(e.x,e.y,0),this.camera.position.set(e.x,e.y,50),\"FLU\"===this.coordinates.systemName?this.camera.up.set(1,0,0):this.camera.up.set(0,1,0),this.camera.lookAt(e.x,e.y,0)}},{key:\"adjustCamera\",value:function(e,t){if(!this.routingEditor.isInEditingMode()){switch(this.camera.fov=PARAMETERS.camera[t].fov,this.camera.near=PARAMETERS.camera[t].near,this.camera.far=PARAMETERS.camera[t].far,t){case\"Default\":var n=this.viewDistance*Math.cos(e.rotation.y)*Math.cos(this.viewAngle),i=this.viewDistance*Math.sin(e.rotation.y)*Math.cos(this.viewAngle),r=this.viewDistance*Math.sin(this.viewAngle);this.camera.position.x=e.position.x-n,this.camera.position.y=e.position.y-i,this.camera.position.z=e.position.z+r,this.camera.up.set(0,0,1),this.camera.lookAt({x:e.position.x+2*n,y:e.position.y+2*i,z:0}),this.controls.enabled=!1;break;case\"Near\":n=.5*this.viewDistance*Math.cos(e.rotation.y)*Math.cos(this.viewAngle),i=.5*this.viewDistance*Math.sin(e.rotation.y)*Math.cos(this.viewAngle),r=.5*this.viewDistance*Math.sin(this.viewAngle),this.camera.position.x=e.position.x-n,this.camera.position.y=e.position.y-i,this.camera.position.z=e.position.z+r,this.camera.up.set(0,0,1),this.camera.lookAt({x:e.position.x+2*n,y:e.position.y+2*i,z:0}),this.controls.enabled=!1;break;case\"Overhead\":i=.5*this.viewDistance*Math.sin(e.rotation.y)*Math.cos(this.viewAngle),r=2*this.viewDistance*Math.sin(this.viewAngle),this.camera.position.x=e.position.x,this.camera.position.y=e.position.y+i,this.camera.position.z=2*(e.position.z+r),\"FLU\"===this.coordinates.systemName?this.camera.up.set(1,0,0):this.camera.up.set(0,1,0),this.camera.lookAt({x:e.position.x,y:e.position.y+i,z:0}),this.controls.enabled=!1;break;case\"Map\":this.controls.enabled||this.enableOrbitControls()}this.camera.updateProjectionMatrix()}}},{key:\"enableRouteEditing\",value:function(){this.enableOrbitControls(),this.routingEditor.enableEditingMode(this.camera,this.adc),document.getElementById(this.canvasId).addEventListener(\"mousedown\",this.onMouseDownHandler,!1)}},{key:\"disableRouteEditing\",value:function(){this.routingEditor.disableEditingMode(this.scene),document.getElementById(this.canvasId).removeEventListener(\"mousedown\",this.onMouseDownHandler,!1)}},{key:\"addDefaultEndPoint\",value:function(e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1]&&this.map.removeAllElements(this.scene),this.map.appendMapData(e,this.coordinates,this.scene)}},{key:\"updatePointCloud\",value:function(e){this.coordinates.isInitialized()&&this.adc.mesh&&this.pointCloud.update(e,this.adc.mesh)}},{key:\"updateMapIndex\",value:function(e,t,n){this.routingEditor.isInEditingMode()&&PARAMETERS.routingEditor.radiusOfMapRequest!==n||this.map.updateIndex(e,t,this.scene)}},{key:\"isMobileDevice\",value:function(){return navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)}},{key:\"getGeolocation\",value:function(e){if(this.coordinates.isInitialized()){var t=e.currentTarget.getBoundingClientRect(),n=new u.Vector3((e.clientX-t.left)/this.dimension.width*2-1,-(e.clientY-t.top)/this.dimension.height*2+1,0);n.unproject(this.camera);var i=n.sub(this.camera.position).normalize(),r=-this.camera.position.z/i.z,o=this.camera.position.clone().add(i.multiplyScalar(r));return this.coordinates.applyOffset(o,!0)}}},{key:\"getMouseOverLanes\",value:function(e){var t=e.currentTarget.getBoundingClientRect(),n=new u.Vector3((e.clientX-t.left)/this.dimension.width*2-1,-(e.clientY-t.top)/this.dimension.height*2+1,0),i=new u.Raycaster;i.setFromCamera(n,this.camera);var r=this.map.data.lane.reduce(function(e,t){return e.concat(t.drewObjects)},[]);return i.intersectObjects(r).map(function(e){return e.object.name})}}]),e}()),j=new F;t.default=j},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(t){var n=t*w;e.position.z+=n}}function o(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=new g.MeshBasicMaterial({map:E.load(e),transparent:!0,depthWrite:!1}),s=new g.Mesh(new g.PlaneGeometry(t,n),a);return s.material.side=g.DoubleSide,s.position.set(i,r,o),s.overdraw=!0,s}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16711680,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],l=new g.Path,u=l.createGeometry(e);u.computeLineDistances();var c=new g.LineDashedMaterial({color:t,dashSize:i,linewidth:n,gapSize:o}),d=new g.Line(u,c);return r(d,a),d.matrixAutoUpdate=s,s||d.updateMatrix(),d}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,i=new g.CircleGeometry(e,n);return new g.Mesh(i,t)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16777215,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=M(e.map(function(e){return[e.x,e.y]})),s=new g.ShaderMaterial(S({side:g.DoubleSide,diffuse:n,thickness:t,opacity:i,transparent:!0})),l=new g.Mesh(a,s);return r(l,o),l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16711680,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,l=new g.Path,u=l.createGeometry(e),c=new g.LineBasicMaterial({color:t,linewidth:n,transparent:a,opacity:s}),d=new g.Line(u,c);return r(d,i),d.matrixAutoUpdate=o,!1===o&&d.updateMatrix(),d}function c(e,t,n){var i=new g.CubeGeometry(e.x,e.y,e.z),r=new g.MeshBasicMaterial({color:t}),o=new g.Mesh(i,r),a=new g.BoxHelper(o);return a.material.linewidth=n,a}function d(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.01,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.02,o=new g.CubeGeometry(e.x,e.y,e.z);o=new g.EdgesGeometry(o),o=(new g.Geometry).fromBufferGeometry(o),o.computeLineDistances();var a=new g.LineDashedMaterial({color:t,linewidth:n,dashSize:i,gapSize:r});return new g.LineSegments(o,a)}function h(e,t,n,i,r){var o=new g.Vector3(0,e,0);return u([new g.Vector3(0,0,0),o,new g.Vector3(i/2,e-n,0),o,new g.Vector3(-i/2,e-n,0)],r,t,1)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new g.Shape;if(t){n.moveTo(e[0].x,e[0].y);for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:new g.MeshBasicMaterial({color:16711680}),n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=f(e,n),s=new g.Mesh(a,t);return r(s,i),s.matrixAutoUpdate=o,!1===o&&s.updateMatrix(),s}Object.defineProperty(t,\"__esModule\",{value:!0}),t.addOffsetZ=r,t.drawImage=o,t.drawDashedLineFromPoints=a,t.drawCircle=s,t.drawThickBandFromPoints=l,t.drawSegmentsFromPoints=u,t.drawBox=c,t.drawDashedBox=d,t.drawArrow=h,t.getShapeGeometryFromPoints=f,t.drawShapeFromPoints=p;var m=n(12),g=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(m),v=n(599),y=i(v),b=n(600),_=i(b),x=n(20),w=.04,M=(0,y.default)(g),S=(0,_.default)(g),E=new g.TextureLoader},function(e,t,n){\"use strict\";var i=n(9),r=n(6),o=n(58);e.exports={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=r.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?r.merge({},[i.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var n=this;n.defaults.hasOwnProperty(e)&&(n.defaults[e]=r.extend(n.defaults[e],t))},addScalesToLayout:function(e){r.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,o.addBox(e,t)})}}},function(e,t,n){\"use strict\";e.exports={},e.exports.Arc=n(343),e.exports.Line=n(344),e.exports.Point=n(345),e.exports.Rectangle=n(346)},function(e,t,n){var i=n(25),r=n(66);e.exports=n(31)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(107),r=n(104);e.exports=function(e){return i(r(e))}},function(e,t,n){\"use strict\";function i(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e.constructor===Array&&e.length>0)for(;t1&&void 0!==arguments[1]&&arguments[1],n=new Date(e),i=n.getHours(),r=n.getMinutes(),o=n.getSeconds();i=i<10?\"0\"+i:i,r=r<10?\"0\"+r:r,o=o<10?\"0\"+o:o;var a=i+\":\"+r+\":\"+o;if(t){var s=n.getMilliseconds();s<10?s=\"00\"+s:s<100&&(s=\"0\"+s),a+=\":\"+s}return a}function s(e,t){if(!e||!t)return[];for(var n=e.positionX,i=e.positionY,r=e.heading,o=t.c0Position,a=t.c1HeadingAngle,s=t.c2Curvature,l=t.c3CurvatureDerivative,c=t.viewRange,d=[l,s,a,o],h=[],f=0;f=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){\"use strict\";t.a=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)}},function(e,t,n){\"use strict\";t.a=function(e,t,n){var i=e*t;return n/Math.sqrt(1-i*i)}},function(e,t,n){\"use strict\";function i(e,t,n,i,o,a,c){if(l.isObject(i)?(c=o,a=i,i=o=void 0):l.isObject(o)&&(c=a,a=o,o=void 0),r.call(this,e,a),!l.isInteger(t)||t<0)throw TypeError(\"id must be a non-negative integer\");if(!l.isString(n))throw TypeError(\"type must be a string\");if(void 0!==i&&!u.test(i=i.toString().toLowerCase()))throw TypeError(\"rule must be a string rule\");if(void 0!==o&&!l.isString(o))throw TypeError(\"extend must be a string\");this.rule=i&&\"optional\"!==i?i:void 0,this.type=n,this.id=t,this.extend=o||void 0,this.required=\"required\"===i,this.optional=!this.required,this.repeated=\"repeated\"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!l.Long&&void 0!==s.long[n],this.bytes=\"bytes\"===n,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=c}e.exports=i;var r=n(57);((i.prototype=Object.create(r.prototype)).constructor=i).className=\"Field\";var o,a=n(35),s=n(76),l=n(16),u=/^required|optional|repeated$/;i.fromJSON=function(e,t){return new i(e,t.id,t.type,t.rule,t.extend,t.options,t.comment)},Object.defineProperty(i.prototype,\"packed\",{get:function(){return null===this._packed&&(this._packed=!1!==this.getOption(\"packed\")),this._packed}}),i.prototype.setOption=function(e,t,n){return\"packed\"===e&&(this._packed=null),r.prototype.setOption.call(this,e,t,n)},i.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return l.toObject([\"rule\",\"optional\"!==this.rule&&this.rule||void 0,\"type\",this.type,\"id\",this.id,\"extend\",this.extend,\"options\",this.options,\"comment\",t?this.comment:void 0])},i.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])&&(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof a&&\"string\"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof a)||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=l.Long.fromNumber(this.typeDefault,\"u\"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&\"string\"==typeof this.typeDefault){var e;l.base64.test(this.typeDefault)?l.base64.decode(this.typeDefault,e=l.newBuffer(l.base64.length(this.typeDefault)),0):l.utf8.write(this.typeDefault,e=l.newBuffer(l.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=l.emptyObject:this.repeated?this.defaultValue=l.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),r.prototype.resolve.call(this)},i.d=function(e,t,n,r){return\"function\"==typeof t?t=l.decorateType(t).name:t&&\"object\"==typeof t&&(t=l.decorateEnum(t).name),function(o,a){l.decorateType(o.constructor).add(new i(a,e,t,n,{default:r}))}},i._configure=function(e){o=e}},function(e,t,n){\"use strict\";function i(e,t){if(!o.isString(e))throw TypeError(\"name must be a string\");if(t&&!o.isObject(t))throw TypeError(\"options must be an object\");this.options=t,this.name=e,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}e.exports=i,i.className=\"ReflectionObject\";var r,o=n(16);Object.defineProperties(i.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(\".\")}}}),i.prototype.toJSON=function(){throw Error()},i.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof r&&t._handleAdd(this)},i.prototype.onRemove=function(e){var t=e.root;t instanceof r&&t._handleRemove(this),this.parent=null,this.resolved=!1},i.prototype.resolve=function(){return this.resolved?this:(this.root instanceof r&&(this.resolved=!0),this)},i.prototype.getOption=function(e){if(this.options)return this.options[e]},i.prototype.setOption=function(e,t,n){return n&&this.options&&void 0!==this.options[e]||((this.options||(this.options={}))[e]=t),this},i.prototype.setOptions=function(e,t){if(e)for(var n=Object.keys(e),i=0;ih&&se.maxHeight){s--;break}s++,d=l*u}e.labelRotation=s},afterCalculateTickRotation:function(){c.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){c.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=i(e._ticks),r=e.options,l=r.ticks,u=r.scaleLabel,d=r.gridLines,h=r.display,f=e.isHorizontal(),p=a(l),m=r.gridLines.tickMarkLength;if(t.width=f?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:h&&d.drawTicks?m:0,t.height=f?h&&d.drawTicks?m:0:e.maxHeight,u.display&&h){var g=s(u),v=c.options.toPadding(u.padding),y=g+v.height;f?t.height+=y:t.width+=y}if(l.display&&h){var b=c.longestText(e.ctx,p.font,n,e.longestTextCache),_=c.numberOfLabelLines(n),x=.5*p.size,w=e.options.ticks.padding;if(f){e.longestLabelWidth=b;var M=c.toRadians(e.labelRotation),S=Math.cos(M),E=Math.sin(M),T=E*b+p.size*_+x*(_-1)+x;t.height=Math.min(e.maxHeight,t.height+T+w),e.ctx.font=p.font;var k=o(e.ctx,n[0],p.font),O=o(e.ctx,n[n.length-1],p.font);0!==e.labelRotation?(e.paddingLeft=\"bottom\"===r.position?S*k+3:S*x+3,e.paddingRight=\"bottom\"===r.position?S*x+3:S*O+3):(e.paddingLeft=k/2+3,e.paddingRight=O/2+3)}else l.mirror?b=0:b+=w+x,t.width=Math.min(e.maxWidth,t.width+b),e.paddingTop=p.size/2,e.paddingBottom=p.size/2}e.handleMargins(),e.width=t.width,e.height=t.height},handleMargins:function(){var e=this;e.margins&&(e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0),e.paddingTop=Math.max(e.paddingTop-e.margins.top,0),e.paddingRight=Math.max(e.paddingRight-e.margins.right,0),e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0))},afterFit:function(){c.callback(this.options.afterFit,[this])},isHorizontal:function(){return\"top\"===this.options.position||\"bottom\"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(c.isNullOrUndef(e))return NaN;if(\"number\"==typeof e&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},getLabelForIndex:c.noop,getPixelForValue:c.noop,getValueForPixel:c.noop,getPixelForTick:function(e){var t=this,n=t.options.offset;if(t.isHorizontal()){var i=t.width-(t.paddingLeft+t.paddingRight),r=i/Math.max(t._ticks.length-(n?0:1),1),o=r*e+t.paddingLeft;n&&(o+=r/2);var a=t.left+Math.round(o);return a+=t.isFullWidth()?t.margins.left:0}var s=t.height-(t.paddingTop+t.paddingBottom);return t.top+e*(s/(t._ticks.length-1))},getPixelForDecimal:function(e){var t=this;if(t.isHorizontal()){var n=t.width-(t.paddingLeft+t.paddingRight),i=n*e+t.paddingLeft,r=t.left+Math.round(i);return r+=t.isFullWidth()?t.margins.left:0}return t.top+e*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,n=e.max;return e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0},_autoSkip:function(e){var t,n,i,r,o,a=this,s=a.isHorizontal(),l=a.options.ticks.minor,u=e.length,d=c.toRadians(a.labelRotation),h=Math.cos(d),f=a.longestLabelWidth*h,p=[];for(l.maxTicksLimit&&(o=l.maxTicksLimit),s&&(t=!1,(f+l.autoSkipPadding)*u>a.width-(a.paddingLeft+a.paddingRight)&&(t=1+Math.floor((f+l.autoSkipPadding)*u/(a.width-(a.paddingLeft+a.paddingRight)))),o&&u>o&&(t=Math.max(t,Math.floor(u/o)))),n=0;n1&&n%t>0||n%t==0&&n+t>=u,r&&n!==u-1&&delete i.label,p.push(i);return p},draw:function(e){var t=this,n=t.options;if(n.display){var i=t.ctx,o=l.global,u=n.ticks.minor,d=n.ticks.major||u,h=n.gridLines,f=n.scaleLabel,p=0!==t.labelRotation,m=t.isHorizontal(),g=u.autoSkip?t._autoSkip(t.getTicks()):t.getTicks(),v=c.valueOrDefault(u.fontColor,o.defaultFontColor),y=a(u),b=c.valueOrDefault(d.fontColor,o.defaultFontColor),_=a(d),x=h.drawTicks?h.tickMarkLength:0,w=c.valueOrDefault(f.fontColor,o.defaultFontColor),M=a(f),S=c.options.toPadding(f.padding),E=c.toRadians(t.labelRotation),T=[],k=t.options.gridLines.lineWidth,O=\"right\"===n.position?t.left:t.right-k-x,C=\"right\"===n.position?t.left+x:t.right,P=\"bottom\"===n.position?t.top+k:t.bottom-x-k,A=\"bottom\"===n.position?t.top+k+x:t.bottom+k;if(c.each(g,function(i,a){if(!c.isNullOrUndef(i.label)){var s,l,d,f,v=i.label;a===t.zeroLineIndex&&n.offset===h.offsetGridLines?(s=h.zeroLineWidth,l=h.zeroLineColor,d=h.zeroLineBorderDash,f=h.zeroLineBorderDashOffset):(s=c.valueAtIndexOrDefault(h.lineWidth,a),l=c.valueAtIndexOrDefault(h.color,a),d=c.valueOrDefault(h.borderDash,o.borderDash),f=c.valueOrDefault(h.borderDashOffset,o.borderDashOffset));var y,b,_,w,M,S,R,L,I,D,N=\"middle\",B=\"middle\",z=u.padding;if(m){var F=x+z;\"bottom\"===n.position?(B=p?\"middle\":\"top\",N=p?\"right\":\"center\",D=t.top+F):(B=p?\"middle\":\"bottom\",N=p?\"left\":\"center\",D=t.bottom-F);var j=r(t,a,h.offsetGridLines&&g.length>1);j1);G3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var o=i.log10(Math.abs(r)),a=\"\";if(0!==e){if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var s=i.log10(Math.abs(e));a=e.toExponential(Math.floor(s)-Math.floor(o))}else{var l=-1*Math.floor(o);l=Math.max(Math.min(l,20),0),a=e.toFixed(l)}}else a=\"0\";return a},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(i.log10(e)));return 0===e?\"0\":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():\"\"}}}},function(e,t){e.exports=function(e){if(\"function\"!=typeof e)throw TypeError(e+\" is not a function!\");return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(33),r=n(166),o=n(164),a=n(30),s=n(84),l=n(121),u={},c={},t=e.exports=function(e,t,n,d,h){var f,p,m,g,v=h?function(){return e}:l(e),y=i(n,d,t?2:1),b=0;if(\"function\"!=typeof v)throw TypeError(e+\" is not iterable!\");if(o(v)){for(f=s(e.length);f>b;b++)if((g=t?y(a(p=e[b])[0],p[1]):y(e[b]))===u||g===c)return g}else for(m=v.call(e);!(p=m.next()).done;)if((g=r(m,y,p.value,t))===u||g===c)return g};t.BREAK=u,t.RETURN=c},function(e,t){e.exports=!0},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(25).f,r=n(46),o=n(18)(\"toStringTag\");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},function(e,t,n){n(412);for(var i=n(17),r=n(41),o=n(50),a=n(18)(\"toStringTag\"),s=\"CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList\".split(\",\"),l=0;l=t)return!0;return!1},r.isReservedName=function(e,t){if(e)for(var n=0;n0;){var i=e.shift();if(n.nested&&n.nested[i]){if(!((n=n.nested[i])instanceof r))throw Error(\"path conflicts with non-namespace objects\")}else n.add(n=new r(i))}return t&&n.addJSON(t),n},r.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t-1)return i}else if(i instanceof r&&(i=i.lookup(e.slice(1),t,!0)))return i}else for(var o=0;o=i())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+i().toString(16)+\" bytes\");return 0|e}function m(e){return+e!=e&&(e=0),o.alloc(+e)}function g(e,t){if(o.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 i=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return n;case\"utf8\":case\"utf-8\":case void 0:return V(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*n;case\"hex\":return n>>>1;case\"base64\":return Y(e).length;default:if(i)return V(e).length;t=(\"\"+t).toLowerCase(),i=!0}}function v(e,t,n){var i=!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,n<=t)return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return R(this,t,n);case\"utf8\":case\"utf-8\":return O(this,t,n);case\"ascii\":return P(this,t,n);case\"latin1\":case\"binary\":return A(this,t,n);case\"base64\":return k(this,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return L(this,t,n);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}function y(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function b(e,t,n,i,r){if(0===e.length)return-1;if(\"string\"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if(\"string\"==typeof t&&(t=o.from(t,i)),o.isBuffer(t))return 0===t.length?-1:_(e,t,n,i,r);if(\"number\"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&\"function\"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,i,r);throw new TypeError(\"val must be string, number or Buffer\")}function _(e,t,n,i,r){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}var u;if(r){var c=-1;for(u=n;us&&(n=s-l),u=n;u>=0;u--){for(var d=!0,h=0;hr&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError(\"Invalid hex string\");i>o/2&&(i=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(r+s<=n){var l,u,c,d;switch(s){case 1:o<128&&(a=o);break;case 2:l=e[r+1],128==(192&l)&&(d=(31&o)<<6|63&l)>127&&(a=d);break;case 3:l=e[r+1],u=e[r+2],128==(192&l)&&128==(192&u)&&(d=(15&o)<<12|(63&l)<<6|63&u)>2047&&(d<55296||d>57343)&&(a=d);break;case 4:l=e[r+1],u=e[r+2],c=e[r+3],128==(192&l)&&128==(192&u)&&128==(192&c)&&(d=(15&o)<<18|(63&l)<<12|(63&u)<<6|63&c)>65535&&d<1114112&&(a=d)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|1023&a),i.push(a),r+=s}return C(i)}function C(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var n=\"\",i=0;ii)&&(n=i);for(var r=\"\",o=t;on)throw new RangeError(\"Trying to access beyond buffer length\")}function D(e,t,n,i,r,a){if(!o.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError(\"Index out of range\")}function N(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r>>8*(i?r:1-r)}function B(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r>>8*(i?r:3-r)&255}function z(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"Index out of range\")}function F(e,t,n,i,r){return r||z(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),J.write(e,t,n,i,23,4),n+4}function j(e,t,n,i,r){return r||z(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),J.write(e,t,n,i,52,8),n+8}function U(e){if(e=W(e).replace(ee,\"\"),e.length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}function W(e){return e.trim?e.trim():e.replace(/^\\s+|\\s+$/g,\"\")}function G(e){return e<16?\"0\"+e.toString(16):e.toString(16)}function V(e,t){t=t||1/0;for(var n,i=e.length,r=null,o=[],a=0;a55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){for(var t=[],n=0;n>8,r=n%256,o.push(r),o.push(i);return o}function Y(e){return Z.toByteArray(U(e))}function X(e,t,n,i){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}function K(e){return e!==e}/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\nvar Z=n(322),J=n(456),Q=n(188);t.Buffer=o,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&\"function\"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=i(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,n){return a(null,e,t,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,\"undefined\"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,n){return l(null,e,t,n)},o.allocUnsafe=function(e){return u(null,e)},o.allocUnsafeSlow=function(e){return u(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError(\"Arguments must be Buffers\");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,a=Math.min(n,i);r0&&(e=this.toString(\"hex\",0,n).match(/.{2}/g).join(\" \"),this.length>n&&(e+=\" ... \")),\"\"},o.prototype.compare=function(e,t,n,i,r){if(!o.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===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError(\"out of range index\");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,r>>>=0,this===e)return 0;for(var a=r-i,s=n-t,l=Math.min(a,s),u=this.slice(i,r),c=e.slice(t,n),d=0;dr)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i||(i=\"utf8\");for(var o=!1;;)switch(i){case\"hex\":return x(this,e,t,n);case\"utf8\":case\"utf-8\":return w(this,e,t,n);case\"ascii\":return M(this,e,t,n);case\"latin1\":case\"binary\":return S(this,e,t,n);case\"base64\":return E(this,e,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return T(this,e,t,n);default:if(o)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;o.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(r*=256);)i+=this[e+--t]*r;return i},o.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var i=this[e],r=1,o=0;++o=r&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),J.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),J.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),J.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),J.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){D(this,e,t,n,Math.pow(2,8*n)-1,0)}var r=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+r]=e/o&255;return t+n},o.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},o.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError(\"sourceStart out of bounds\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t=0;--r)e[r+t]=this[r+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var a;if(\"number\"==typeof e)for(a=t;a=0;o--)t.call(n,e[o],o);else for(o=0;odocument.F=Object<\\/script>\"),e.close(),l=e.F;i--;)delete l.prototype[o[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=i(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:r(n,t)}},function(e,t,n){var i=n(117),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return\"Symbol(\".concat(void 0===e?\"\":e,\")_\",(++n+i).toString(36))}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return\"function\"==typeof e}function r(e){return\"number\"==typeof e}function o(e){return\"object\"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError(\"n must be a positive number\");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,u;if(this._events||(this._events={}),\"error\"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified \"error\" event. ('+t+\")\");throw c.context=t,c}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),u=n.slice(),r=u.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error(\"(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.\",this._events[e].length),\"function\"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError(\"listener must be a function\");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError(\"listener must be a function\");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit(\"removeListener\",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit(\"removeListener\",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)\"removeListener\"!==t&&this.removeAllListeners(t);return this.removeAllListeners(\"removeListener\"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){\"use strict\";(function(t){function n(e,n,i,r){if(\"function\"!=typeof e)throw new TypeError('\"callback\" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,i)});case 4:return t.nextTick(function(){e.call(null,n,i,r)});default:for(o=new Array(s-1),a=0;a1)for(var n=1;n0?1:-1,h=Math.tan(s)*d,f=d*c.x,p=h*c.y,m=Math.atan2(p,f),g=a.data[0],v=g.tooltipPosition();e.ctx.font=x.default.helpers.fontString(20,\"normal\",\"Helvetica Neue\"),e.ctx.translate(v.x,v.y),e.ctx.rotate(-m),e.ctx.fillText(\"►\",0,0),e.ctx.restore()}})}}),x.default.defaults.global.defaultFontColor=\"#FFFFFF\";var S={color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0,showText:!0,cubicInterpolationMode:\"monotone\",lineTension:0},E=function(e){function t(){return(0,c.default)(this,t),(0,p.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:\"initializeCanvas\",value:function(e,t){this.name2idx={};var n={title:{display:e&&e.length>0,text:e},legend:{display:t.legend.display},tooltips:{enable:!0,mode:\"nearest\",intersect:!1}};if(t.axes){n.scales||(n.scales={});for(var i in t.axes){var r=i+\"Axes\",o=t.axes[i],a={id:i+\"-axis-0\",scaleLabel:{display:!M.default.isEmpty(o.labelString),labelString:o.labelString},ticks:{min:o.min,max:o.max,minRotation:0,maxRotation:0},gridLines:{color:\"rgba(153, 153, 153, 0.5)\",zeroLineColor:\"rgba(153, 153, 153, 0.7)\"}};n.scales[r]||(n.scales[r]=[]),n.scales[r].push(a)}}var s=this.canvasElement.getContext(\"2d\");this.chart=new x.default(s,{type:\"scatter\",options:n})}},{key:\"updateData\",value:function(e,t,n,i){var r=t.substring(0,5);if(void 0===this.chart.data.datasets[e]){var o={label:r,showText:n.showLabel,text:t,backgroundColor:n.color,borderColor:n.color,data:i};for(var a in n)o[a]=n[a];this.chart.data.datasets.push(o)}else this.chart.data.datasets[e].text=t,this.chart.data.datasets[e].data=i}},{key:\"updateChart\",value:function(e){if(e.data&&e.properties){var t=e.data;for(var n in e.properties.cars){void 0===this.name2idx[n]&&(this.name2idx[n]=this.chart.data.datasets.length);var i=this.name2idx[n],r=M.default.get(t,\"cars[\"+n+\"]\",{}),o=M.default.get(e,\"properties.cars[\"+n+\"]\",{});o.specialMarker=\"car\",o.borderWidth=0,o.pointRadius=0,this.updateData(i,n,o,[r])}for(var s in e.properties.lines){void 0===this.name2idx[s]&&(this.name2idx[s]=this.chart.data.datasets.length);var l=this.name2idx[s],u=M.default.get(e,\"properties.lines[\"+s+\"]\",{}),c=M.default.get(t,\"lines[\"+s+\"]\",[]);this.updateData(l,s,u,c)}var d=(0,a.default)(this.name2idx).length;if(t.polygons)for(var h in t.polygons){var f=M.default.get(t,\"polygons[\"+h+\"]\");if(f){var p=M.default.get(e,\"properties.polygons[\"+h+\"]\",S);this.updateData(d,h,p,f),d++}}this.chart.data.datasets.splice(d,this.chart.data.datasets.length-d),this.chart.update(0)}}},{key:\"componentDidMount\",value:function(){var e=this.props,t=e.title,n=e.options;this.initializeCanvas(t,n),this.updateChart(this.props)}},{key:\"componentWillUnmount\",value:function(){this.chart.destroy()}},{key:\"componentWillReceiveProps\",value:function(e){this.updateChart(e)}},{key:\"render\",value:function(){var e=this,t=this.props;t.title,t.options,t.properties,t.data;return y.default.createElement(\"div\",{className:\"scatter-graph\"},y.default.createElement(\"canvas\",{ref:function(t){e.canvasElement=t}}))}}]),t}(y.default.Component);t.default=E,t.generateScatterGraph=r},function(e,t,n){\"use strict\";e.exports=function(){return new Worker(n.p+\"worker.bundle.js\")}},function(e,t){e.exports={Aacute:\"Á\",aacute:\"á\",Abreve:\"Ă\",abreve:\"ă\",ac:\"∾\",acd:\"∿\",acE:\"∾̳\",Acirc:\"Â\",acirc:\"â\",acute:\"´\",Acy:\"А\",acy:\"а\",AElig:\"Æ\",aelig:\"æ\",af:\"⁡\",Afr:\"𝔄\",afr:\"𝔞\",Agrave:\"À\",agrave:\"à\",alefsym:\"ℵ\",aleph:\"ℵ\",Alpha:\"Α\",alpha:\"α\",Amacr:\"Ā\",amacr:\"ā\",amalg:\"⨿\",amp:\"&\",AMP:\"&\",andand:\"⩕\",And:\"⩓\",and:\"∧\",andd:\"⩜\",andslope:\"⩘\",andv:\"⩚\",ang:\"∠\",ange:\"⦤\",angle:\"∠\",angmsdaa:\"⦨\",angmsdab:\"⦩\",angmsdac:\"⦪\",angmsdad:\"⦫\",angmsdae:\"⦬\",angmsdaf:\"⦭\",angmsdag:\"⦮\",angmsdah:\"⦯\",angmsd:\"∡\",angrt:\"∟\",angrtvb:\"⊾\",angrtvbd:\"⦝\",angsph:\"∢\",angst:\"Å\",angzarr:\"⍼\",Aogon:\"Ą\",aogon:\"ą\",Aopf:\"𝔸\",aopf:\"𝕒\",apacir:\"⩯\",ap:\"≈\",apE:\"⩰\",ape:\"≊\",apid:\"≋\",apos:\"'\",ApplyFunction:\"⁡\",approx:\"≈\",approxeq:\"≊\",Aring:\"Å\",aring:\"å\",Ascr:\"𝒜\",ascr:\"𝒶\",Assign:\"≔\",ast:\"*\",asymp:\"≈\",asympeq:\"≍\",Atilde:\"Ã\",atilde:\"ã\",Auml:\"Ä\",auml:\"ä\",awconint:\"∳\",awint:\"⨑\",backcong:\"≌\",backepsilon:\"϶\",backprime:\"‵\",backsim:\"∽\",backsimeq:\"⋍\",Backslash:\"∖\",Barv:\"⫧\",barvee:\"⊽\",barwed:\"⌅\",Barwed:\"⌆\",barwedge:\"⌅\",bbrk:\"⎵\",bbrktbrk:\"⎶\",bcong:\"≌\",Bcy:\"Б\",bcy:\"б\",bdquo:\"„\",becaus:\"∵\",because:\"∵\",Because:\"∵\",bemptyv:\"⦰\",bepsi:\"϶\",bernou:\"ℬ\",Bernoullis:\"ℬ\",Beta:\"Β\",beta:\"β\",beth:\"ℶ\",between:\"≬\",Bfr:\"𝔅\",bfr:\"𝔟\",bigcap:\"⋂\",bigcirc:\"◯\",bigcup:\"⋃\",bigodot:\"⨀\",bigoplus:\"⨁\",bigotimes:\"⨂\",bigsqcup:\"⨆\",bigstar:\"★\",bigtriangledown:\"▽\",bigtriangleup:\"△\",biguplus:\"⨄\",bigvee:\"⋁\",bigwedge:\"⋀\",bkarow:\"⤍\",blacklozenge:\"⧫\",blacksquare:\"▪\",blacktriangle:\"▴\",blacktriangledown:\"▾\",blacktriangleleft:\"◂\",blacktriangleright:\"▸\",blank:\"␣\",blk12:\"▒\",blk14:\"░\",blk34:\"▓\",block:\"█\",bne:\"=⃥\",bnequiv:\"≡⃥\",bNot:\"⫭\",bnot:\"⌐\",Bopf:\"𝔹\",bopf:\"𝕓\",bot:\"⊥\",bottom:\"⊥\",bowtie:\"⋈\",boxbox:\"⧉\",boxdl:\"┐\",boxdL:\"╕\",boxDl:\"╖\",boxDL:\"╗\",boxdr:\"┌\",boxdR:\"╒\",boxDr:\"╓\",boxDR:\"╔\",boxh:\"─\",boxH:\"═\",boxhd:\"┬\",boxHd:\"╤\",boxhD:\"╥\",boxHD:\"╦\",boxhu:\"┴\",boxHu:\"╧\",boxhU:\"╨\",boxHU:\"╩\",boxminus:\"⊟\",boxplus:\"⊞\",boxtimes:\"⊠\",boxul:\"┘\",boxuL:\"╛\",boxUl:\"╜\",boxUL:\"╝\",boxur:\"└\",boxuR:\"╘\",boxUr:\"╙\",boxUR:\"╚\",boxv:\"│\",boxV:\"║\",boxvh:\"┼\",boxvH:\"╪\",boxVh:\"╫\",boxVH:\"╬\",boxvl:\"┤\",boxvL:\"╡\",boxVl:\"╢\",boxVL:\"╣\",boxvr:\"├\",boxvR:\"╞\",boxVr:\"╟\",boxVR:\"╠\",bprime:\"‵\",breve:\"˘\",Breve:\"˘\",brvbar:\"¦\",bscr:\"𝒷\",Bscr:\"ℬ\",bsemi:\"⁏\",bsim:\"∽\",bsime:\"⋍\",bsolb:\"⧅\",bsol:\"\\\\\",bsolhsub:\"⟈\",bull:\"•\",bullet:\"•\",bump:\"≎\",bumpE:\"⪮\",bumpe:\"≏\",Bumpeq:\"≎\",bumpeq:\"≏\",Cacute:\"Ć\",cacute:\"ć\",capand:\"⩄\",capbrcup:\"⩉\",capcap:\"⩋\",cap:\"∩\",Cap:\"⋒\",capcup:\"⩇\",capdot:\"⩀\",CapitalDifferentialD:\"ⅅ\",caps:\"∩︀\",caret:\"⁁\",caron:\"ˇ\",Cayleys:\"ℭ\",ccaps:\"⩍\",Ccaron:\"Č\",ccaron:\"č\",Ccedil:\"Ç\",ccedil:\"ç\",Ccirc:\"Ĉ\",ccirc:\"ĉ\",Cconint:\"∰\",ccups:\"⩌\",ccupssm:\"⩐\",Cdot:\"Ċ\",cdot:\"ċ\",cedil:\"¸\",Cedilla:\"¸\",cemptyv:\"⦲\",cent:\"¢\",centerdot:\"·\",CenterDot:\"·\",cfr:\"𝔠\",Cfr:\"ℭ\",CHcy:\"Ч\",chcy:\"ч\",check:\"✓\",checkmark:\"✓\",Chi:\"Χ\",chi:\"χ\",circ:\"ˆ\",circeq:\"≗\",circlearrowleft:\"↺\",circlearrowright:\"↻\",circledast:\"⊛\",circledcirc:\"⊚\",circleddash:\"⊝\",CircleDot:\"⊙\",circledR:\"®\",circledS:\"Ⓢ\",CircleMinus:\"⊖\",CirclePlus:\"⊕\",CircleTimes:\"⊗\",cir:\"○\",cirE:\"⧃\",cire:\"≗\",cirfnint:\"⨐\",cirmid:\"⫯\",cirscir:\"⧂\",ClockwiseContourIntegral:\"∲\",CloseCurlyDoubleQuote:\"”\",CloseCurlyQuote:\"’\",clubs:\"♣\",clubsuit:\"♣\",colon:\":\",Colon:\"∷\",Colone:\"⩴\",colone:\"≔\",coloneq:\"≔\",comma:\",\",commat:\"@\",comp:\"∁\",compfn:\"∘\",complement:\"∁\",complexes:\"ℂ\",cong:\"≅\",congdot:\"⩭\",Congruent:\"≡\",conint:\"∮\",Conint:\"∯\",ContourIntegral:\"∮\",copf:\"𝕔\",Copf:\"ℂ\",coprod:\"∐\",Coproduct:\"∐\",copy:\"©\",COPY:\"©\",copysr:\"℗\",CounterClockwiseContourIntegral:\"∳\",crarr:\"↵\",cross:\"✗\",Cross:\"⨯\",Cscr:\"𝒞\",cscr:\"𝒸\",csub:\"⫏\",csube:\"⫑\",csup:\"⫐\",csupe:\"⫒\",ctdot:\"⋯\",cudarrl:\"⤸\",cudarrr:\"⤵\",cuepr:\"⋞\",cuesc:\"⋟\",cularr:\"↶\",cularrp:\"⤽\",cupbrcap:\"⩈\",cupcap:\"⩆\",CupCap:\"≍\",cup:\"∪\",Cup:\"⋓\",cupcup:\"⩊\",cupdot:\"⊍\",cupor:\"⩅\",cups:\"∪︀\",curarr:\"↷\",curarrm:\"⤼\",curlyeqprec:\"⋞\",curlyeqsucc:\"⋟\",curlyvee:\"⋎\",curlywedge:\"⋏\",curren:\"¤\",curvearrowleft:\"↶\",curvearrowright:\"↷\",cuvee:\"⋎\",cuwed:\"⋏\",cwconint:\"∲\",cwint:\"∱\",cylcty:\"⌭\",dagger:\"†\",Dagger:\"‡\",daleth:\"ℸ\",darr:\"↓\",Darr:\"↡\",dArr:\"⇓\",dash:\"‐\",Dashv:\"⫤\",dashv:\"⊣\",dbkarow:\"⤏\",dblac:\"˝\",Dcaron:\"Ď\",dcaron:\"ď\",Dcy:\"Д\",dcy:\"д\",ddagger:\"‡\",ddarr:\"⇊\",DD:\"ⅅ\",dd:\"ⅆ\",DDotrahd:\"⤑\",ddotseq:\"⩷\",deg:\"°\",Del:\"∇\",Delta:\"Δ\",delta:\"δ\",demptyv:\"⦱\",dfisht:\"⥿\",Dfr:\"𝔇\",dfr:\"𝔡\",dHar:\"⥥\",dharl:\"⇃\",dharr:\"⇂\",DiacriticalAcute:\"´\",DiacriticalDot:\"˙\",DiacriticalDoubleAcute:\"˝\",DiacriticalGrave:\"`\",DiacriticalTilde:\"˜\",diam:\"⋄\",diamond:\"⋄\",Diamond:\"⋄\",diamondsuit:\"♦\",diams:\"♦\",die:\"¨\",DifferentialD:\"ⅆ\",digamma:\"ϝ\",disin:\"⋲\",div:\"÷\",divide:\"÷\",divideontimes:\"⋇\",divonx:\"⋇\",DJcy:\"Ђ\",djcy:\"ђ\",dlcorn:\"⌞\",dlcrop:\"⌍\",dollar:\"$\",Dopf:\"𝔻\",dopf:\"𝕕\",Dot:\"¨\",dot:\"˙\",DotDot:\"⃜\",doteq:\"≐\",doteqdot:\"≑\",DotEqual:\"≐\",dotminus:\"∸\",dotplus:\"∔\",dotsquare:\"⊡\",doublebarwedge:\"⌆\",DoubleContourIntegral:\"∯\",DoubleDot:\"¨\",DoubleDownArrow:\"⇓\",DoubleLeftArrow:\"⇐\",DoubleLeftRightArrow:\"⇔\",DoubleLeftTee:\"⫤\",DoubleLongLeftArrow:\"⟸\",DoubleLongLeftRightArrow:\"⟺\",DoubleLongRightArrow:\"⟹\",DoubleRightArrow:\"⇒\",DoubleRightTee:\"⊨\",DoubleUpArrow:\"⇑\",DoubleUpDownArrow:\"⇕\",DoubleVerticalBar:\"∥\",DownArrowBar:\"⤓\",downarrow:\"↓\",DownArrow:\"↓\",Downarrow:\"⇓\",DownArrowUpArrow:\"⇵\",DownBreve:\"̑\",downdownarrows:\"⇊\",downharpoonleft:\"⇃\",downharpoonright:\"⇂\",DownLeftRightVector:\"⥐\",DownLeftTeeVector:\"⥞\",DownLeftVectorBar:\"⥖\",DownLeftVector:\"↽\",DownRightTeeVector:\"⥟\",DownRightVectorBar:\"⥗\",DownRightVector:\"⇁\",DownTeeArrow:\"↧\",DownTee:\"⊤\",drbkarow:\"⤐\",drcorn:\"⌟\",drcrop:\"⌌\",Dscr:\"𝒟\",dscr:\"𝒹\",DScy:\"Ѕ\",dscy:\"ѕ\",dsol:\"⧶\",Dstrok:\"Đ\",dstrok:\"đ\",dtdot:\"⋱\",dtri:\"▿\",dtrif:\"▾\",duarr:\"⇵\",duhar:\"⥯\",dwangle:\"⦦\",DZcy:\"Џ\",dzcy:\"џ\",dzigrarr:\"⟿\",Eacute:\"É\",eacute:\"é\",easter:\"⩮\",Ecaron:\"Ě\",ecaron:\"ě\",Ecirc:\"Ê\",ecirc:\"ê\",ecir:\"≖\",ecolon:\"≕\",Ecy:\"Э\",ecy:\"э\",eDDot:\"⩷\",Edot:\"Ė\",edot:\"ė\",eDot:\"≑\",ee:\"ⅇ\",efDot:\"≒\",Efr:\"𝔈\",efr:\"𝔢\",eg:\"⪚\",Egrave:\"È\",egrave:\"è\",egs:\"⪖\",egsdot:\"⪘\",el:\"⪙\",Element:\"∈\",elinters:\"⏧\",ell:\"ℓ\",els:\"⪕\",elsdot:\"⪗\",Emacr:\"Ē\",emacr:\"ē\",empty:\"∅\",emptyset:\"∅\",EmptySmallSquare:\"◻\",emptyv:\"∅\",EmptyVerySmallSquare:\"▫\",emsp13:\" \",emsp14:\" \",emsp:\" \",ENG:\"Ŋ\",eng:\"ŋ\",ensp:\" \",Eogon:\"Ę\",eogon:\"ę\",Eopf:\"𝔼\",eopf:\"𝕖\",epar:\"⋕\",eparsl:\"⧣\",eplus:\"⩱\",epsi:\"ε\",Epsilon:\"Ε\",epsilon:\"ε\",epsiv:\"ϵ\",eqcirc:\"≖\",eqcolon:\"≕\",eqsim:\"≂\",eqslantgtr:\"⪖\",eqslantless:\"⪕\",Equal:\"⩵\",equals:\"=\",EqualTilde:\"≂\",equest:\"≟\",Equilibrium:\"⇌\",equiv:\"≡\",equivDD:\"⩸\",eqvparsl:\"⧥\",erarr:\"⥱\",erDot:\"≓\",escr:\"ℯ\",Escr:\"ℰ\",esdot:\"≐\",Esim:\"⩳\",esim:\"≂\",Eta:\"Η\",eta:\"η\",ETH:\"Ð\",eth:\"ð\",Euml:\"Ë\",euml:\"ë\",euro:\"€\",excl:\"!\",exist:\"∃\",Exists:\"∃\",expectation:\"ℰ\",exponentiale:\"ⅇ\",ExponentialE:\"ⅇ\",fallingdotseq:\"≒\",Fcy:\"Ф\",fcy:\"ф\",female:\"♀\",ffilig:\"ffi\",fflig:\"ff\",ffllig:\"ffl\",Ffr:\"𝔉\",ffr:\"𝔣\",filig:\"fi\",FilledSmallSquare:\"◼\",FilledVerySmallSquare:\"▪\",fjlig:\"fj\",flat:\"♭\",fllig:\"fl\",fltns:\"▱\",fnof:\"ƒ\",Fopf:\"𝔽\",fopf:\"𝕗\",forall:\"∀\",ForAll:\"∀\",fork:\"⋔\",forkv:\"⫙\",Fouriertrf:\"ℱ\",fpartint:\"⨍\",frac12:\"½\",frac13:\"⅓\",frac14:\"¼\",frac15:\"⅕\",frac16:\"⅙\",frac18:\"⅛\",frac23:\"⅔\",frac25:\"⅖\",frac34:\"¾\",frac35:\"⅗\",frac38:\"⅜\",frac45:\"⅘\",frac56:\"⅚\",frac58:\"⅝\",frac78:\"⅞\",frasl:\"⁄\",frown:\"⌢\",fscr:\"𝒻\",Fscr:\"ℱ\",gacute:\"ǵ\",Gamma:\"Γ\",gamma:\"γ\",Gammad:\"Ϝ\",gammad:\"ϝ\",gap:\"⪆\",Gbreve:\"Ğ\",gbreve:\"ğ\",Gcedil:\"Ģ\",Gcirc:\"Ĝ\",gcirc:\"ĝ\",Gcy:\"Г\",gcy:\"г\",Gdot:\"Ġ\",gdot:\"ġ\",ge:\"≥\",gE:\"≧\",gEl:\"⪌\",gel:\"⋛\",geq:\"≥\",geqq:\"≧\",geqslant:\"⩾\",gescc:\"⪩\",ges:\"⩾\",gesdot:\"⪀\",gesdoto:\"⪂\",gesdotol:\"⪄\",gesl:\"⋛︀\",gesles:\"⪔\",Gfr:\"𝔊\",gfr:\"𝔤\",gg:\"≫\",Gg:\"⋙\",ggg:\"⋙\",gimel:\"ℷ\",GJcy:\"Ѓ\",gjcy:\"ѓ\",gla:\"⪥\",gl:\"≷\",glE:\"⪒\",glj:\"⪤\",gnap:\"⪊\",gnapprox:\"⪊\",gne:\"⪈\",gnE:\"≩\",gneq:\"⪈\",gneqq:\"≩\",gnsim:\"⋧\",Gopf:\"𝔾\",gopf:\"𝕘\",grave:\"`\",GreaterEqual:\"≥\",GreaterEqualLess:\"⋛\",GreaterFullEqual:\"≧\",GreaterGreater:\"⪢\",GreaterLess:\"≷\",GreaterSlantEqual:\"⩾\",GreaterTilde:\"≳\",Gscr:\"𝒢\",gscr:\"ℊ\",gsim:\"≳\",gsime:\"⪎\",gsiml:\"⪐\",gtcc:\"⪧\",gtcir:\"⩺\",gt:\">\",GT:\">\",Gt:\"≫\",gtdot:\"⋗\",gtlPar:\"⦕\",gtquest:\"⩼\",gtrapprox:\"⪆\",gtrarr:\"⥸\",gtrdot:\"⋗\",gtreqless:\"⋛\",gtreqqless:\"⪌\",gtrless:\"≷\",gtrsim:\"≳\",gvertneqq:\"≩︀\",gvnE:\"≩︀\",Hacek:\"ˇ\",hairsp:\" \",half:\"½\",hamilt:\"ℋ\",HARDcy:\"Ъ\",hardcy:\"ъ\",harrcir:\"⥈\",harr:\"↔\",hArr:\"⇔\",harrw:\"↭\",Hat:\"^\",hbar:\"ℏ\",Hcirc:\"Ĥ\",hcirc:\"ĥ\",hearts:\"♥\",heartsuit:\"♥\",hellip:\"…\",hercon:\"⊹\",hfr:\"𝔥\",Hfr:\"ℌ\",HilbertSpace:\"ℋ\",hksearow:\"⤥\",hkswarow:\"⤦\",hoarr:\"⇿\",homtht:\"∻\",hookleftarrow:\"↩\",hookrightarrow:\"↪\",hopf:\"𝕙\",Hopf:\"ℍ\",horbar:\"―\",HorizontalLine:\"─\",hscr:\"𝒽\",Hscr:\"ℋ\",hslash:\"ℏ\",Hstrok:\"Ħ\",hstrok:\"ħ\",HumpDownHump:\"≎\",HumpEqual:\"≏\",hybull:\"⁃\",hyphen:\"‐\",Iacute:\"Í\",iacute:\"í\",ic:\"⁣\",Icirc:\"Î\",icirc:\"î\",Icy:\"И\",icy:\"и\",Idot:\"İ\",IEcy:\"Е\",iecy:\"е\",iexcl:\"¡\",iff:\"⇔\",ifr:\"𝔦\",Ifr:\"ℑ\",Igrave:\"Ì\",igrave:\"ì\",ii:\"ⅈ\",iiiint:\"⨌\",iiint:\"∭\",iinfin:\"⧜\",iiota:\"℩\",IJlig:\"IJ\",ijlig:\"ij\",Imacr:\"Ī\",imacr:\"ī\",image:\"ℑ\",ImaginaryI:\"ⅈ\",imagline:\"ℐ\",imagpart:\"ℑ\",imath:\"ı\",Im:\"ℑ\",imof:\"⊷\",imped:\"Ƶ\",Implies:\"⇒\",incare:\"℅\",in:\"∈\",infin:\"∞\",infintie:\"⧝\",inodot:\"ı\",intcal:\"⊺\",int:\"∫\",Int:\"∬\",integers:\"ℤ\",Integral:\"∫\",intercal:\"⊺\",Intersection:\"⋂\",intlarhk:\"⨗\",intprod:\"⨼\",InvisibleComma:\"⁣\",InvisibleTimes:\"⁢\",IOcy:\"Ё\",iocy:\"ё\",Iogon:\"Į\",iogon:\"į\",Iopf:\"𝕀\",iopf:\"𝕚\",Iota:\"Ι\",iota:\"ι\",iprod:\"⨼\",iquest:\"¿\",iscr:\"𝒾\",Iscr:\"ℐ\",isin:\"∈\",isindot:\"⋵\",isinE:\"⋹\",isins:\"⋴\",isinsv:\"⋳\",isinv:\"∈\",it:\"⁢\",Itilde:\"Ĩ\",itilde:\"ĩ\",Iukcy:\"І\",iukcy:\"і\",Iuml:\"Ï\",iuml:\"ï\",Jcirc:\"Ĵ\",jcirc:\"ĵ\",Jcy:\"Й\",jcy:\"й\",Jfr:\"𝔍\",jfr:\"𝔧\",jmath:\"ȷ\",Jopf:\"𝕁\",jopf:\"𝕛\",Jscr:\"𝒥\",jscr:\"𝒿\",Jsercy:\"Ј\",jsercy:\"ј\",Jukcy:\"Є\",jukcy:\"є\",Kappa:\"Κ\",kappa:\"κ\",kappav:\"ϰ\",Kcedil:\"Ķ\",kcedil:\"ķ\",Kcy:\"К\",kcy:\"к\",Kfr:\"𝔎\",kfr:\"𝔨\",kgreen:\"ĸ\",KHcy:\"Х\",khcy:\"х\",KJcy:\"Ќ\",kjcy:\"ќ\",Kopf:\"𝕂\",kopf:\"𝕜\",Kscr:\"𝒦\",kscr:\"𝓀\",lAarr:\"⇚\",Lacute:\"Ĺ\",lacute:\"ĺ\",laemptyv:\"⦴\",lagran:\"ℒ\",Lambda:\"Λ\",lambda:\"λ\",lang:\"⟨\",Lang:\"⟪\",langd:\"⦑\",langle:\"⟨\",lap:\"⪅\",Laplacetrf:\"ℒ\",laquo:\"«\",larrb:\"⇤\",larrbfs:\"⤟\",larr:\"←\",Larr:\"↞\",lArr:\"⇐\",larrfs:\"⤝\",larrhk:\"↩\",larrlp:\"↫\",larrpl:\"⤹\",larrsim:\"⥳\",larrtl:\"↢\",latail:\"⤙\",lAtail:\"⤛\",lat:\"⪫\",late:\"⪭\",lates:\"⪭︀\",lbarr:\"⤌\",lBarr:\"⤎\",lbbrk:\"❲\",lbrace:\"{\",lbrack:\"[\",lbrke:\"⦋\",lbrksld:\"⦏\",lbrkslu:\"⦍\",Lcaron:\"Ľ\",lcaron:\"ľ\",Lcedil:\"Ļ\",lcedil:\"ļ\",lceil:\"⌈\",lcub:\"{\",Lcy:\"Л\",lcy:\"л\",ldca:\"⤶\",ldquo:\"“\",ldquor:\"„\",ldrdhar:\"⥧\",ldrushar:\"⥋\",ldsh:\"↲\",le:\"≤\",lE:\"≦\",LeftAngleBracket:\"⟨\",LeftArrowBar:\"⇤\",leftarrow:\"←\",LeftArrow:\"←\",Leftarrow:\"⇐\",LeftArrowRightArrow:\"⇆\",leftarrowtail:\"↢\",LeftCeiling:\"⌈\",LeftDoubleBracket:\"⟦\",LeftDownTeeVector:\"⥡\",LeftDownVectorBar:\"⥙\",LeftDownVector:\"⇃\",LeftFloor:\"⌊\",leftharpoondown:\"↽\",leftharpoonup:\"↼\",leftleftarrows:\"⇇\",leftrightarrow:\"↔\",LeftRightArrow:\"↔\",Leftrightarrow:\"⇔\",leftrightarrows:\"⇆\",leftrightharpoons:\"⇋\",leftrightsquigarrow:\"↭\",LeftRightVector:\"⥎\",LeftTeeArrow:\"↤\",LeftTee:\"⊣\",LeftTeeVector:\"⥚\",leftthreetimes:\"⋋\",LeftTriangleBar:\"⧏\",LeftTriangle:\"⊲\",LeftTriangleEqual:\"⊴\",LeftUpDownVector:\"⥑\",LeftUpTeeVector:\"⥠\",LeftUpVectorBar:\"⥘\",LeftUpVector:\"↿\",LeftVectorBar:\"⥒\",LeftVector:\"↼\",lEg:\"⪋\",leg:\"⋚\",leq:\"≤\",leqq:\"≦\",leqslant:\"⩽\",lescc:\"⪨\",les:\"⩽\",lesdot:\"⩿\",lesdoto:\"⪁\",lesdotor:\"⪃\",lesg:\"⋚︀\",lesges:\"⪓\",lessapprox:\"⪅\",lessdot:\"⋖\",lesseqgtr:\"⋚\",lesseqqgtr:\"⪋\",LessEqualGreater:\"⋚\",LessFullEqual:\"≦\",LessGreater:\"≶\",lessgtr:\"≶\",LessLess:\"⪡\",lesssim:\"≲\",LessSlantEqual:\"⩽\",LessTilde:\"≲\",lfisht:\"⥼\",lfloor:\"⌊\",Lfr:\"𝔏\",lfr:\"𝔩\",lg:\"≶\",lgE:\"⪑\",lHar:\"⥢\",lhard:\"↽\",lharu:\"↼\",lharul:\"⥪\",lhblk:\"▄\",LJcy:\"Љ\",ljcy:\"љ\",llarr:\"⇇\",ll:\"≪\",Ll:\"⋘\",llcorner:\"⌞\",Lleftarrow:\"⇚\",llhard:\"⥫\",lltri:\"◺\",Lmidot:\"Ŀ\",lmidot:\"ŀ\",lmoustache:\"⎰\",lmoust:\"⎰\",lnap:\"⪉\",lnapprox:\"⪉\",lne:\"⪇\",lnE:\"≨\",lneq:\"⪇\",lneqq:\"≨\",lnsim:\"⋦\",loang:\"⟬\",loarr:\"⇽\",lobrk:\"⟦\",longleftarrow:\"⟵\",LongLeftArrow:\"⟵\",Longleftarrow:\"⟸\",longleftrightarrow:\"⟷\",LongLeftRightArrow:\"⟷\",Longleftrightarrow:\"⟺\",longmapsto:\"⟼\",longrightarrow:\"⟶\",LongRightArrow:\"⟶\",Longrightarrow:\"⟹\",looparrowleft:\"↫\",looparrowright:\"↬\",lopar:\"⦅\",Lopf:\"𝕃\",lopf:\"𝕝\",loplus:\"⨭\",lotimes:\"⨴\",lowast:\"∗\",lowbar:\"_\",LowerLeftArrow:\"↙\",LowerRightArrow:\"↘\",loz:\"◊\",lozenge:\"◊\",lozf:\"⧫\",lpar:\"(\",lparlt:\"⦓\",lrarr:\"⇆\",lrcorner:\"⌟\",lrhar:\"⇋\",lrhard:\"⥭\",lrm:\"‎\",lrtri:\"⊿\",lsaquo:\"‹\",lscr:\"𝓁\",Lscr:\"ℒ\",lsh:\"↰\",Lsh:\"↰\",lsim:\"≲\",lsime:\"⪍\",lsimg:\"⪏\",lsqb:\"[\",lsquo:\"‘\",lsquor:\"‚\",Lstrok:\"Ł\",lstrok:\"ł\",ltcc:\"⪦\",ltcir:\"⩹\",lt:\"<\",LT:\"<\",Lt:\"≪\",ltdot:\"⋖\",lthree:\"⋋\",ltimes:\"⋉\",ltlarr:\"⥶\",ltquest:\"⩻\",ltri:\"◃\",ltrie:\"⊴\",ltrif:\"◂\",ltrPar:\"⦖\",lurdshar:\"⥊\",luruhar:\"⥦\",lvertneqq:\"≨︀\",lvnE:\"≨︀\",macr:\"¯\",male:\"♂\",malt:\"✠\",maltese:\"✠\",Map:\"⤅\",map:\"↦\",mapsto:\"↦\",mapstodown:\"↧\",mapstoleft:\"↤\",mapstoup:\"↥\",marker:\"▮\",mcomma:\"⨩\",Mcy:\"М\",mcy:\"м\",mdash:\"—\",mDDot:\"∺\",measuredangle:\"∡\",MediumSpace:\" \",Mellintrf:\"ℳ\",Mfr:\"𝔐\",mfr:\"𝔪\",mho:\"℧\",micro:\"µ\",midast:\"*\",midcir:\"⫰\",mid:\"∣\",middot:\"·\",minusb:\"⊟\",minus:\"−\",minusd:\"∸\",minusdu:\"⨪\",MinusPlus:\"∓\",mlcp:\"⫛\",mldr:\"…\",mnplus:\"∓\",models:\"⊧\",Mopf:\"𝕄\",mopf:\"𝕞\",mp:\"∓\",mscr:\"𝓂\",Mscr:\"ℳ\",mstpos:\"∾\",Mu:\"Μ\",mu:\"μ\",multimap:\"⊸\",mumap:\"⊸\",nabla:\"∇\",Nacute:\"Ń\",nacute:\"ń\",nang:\"∠⃒\",nap:\"≉\",napE:\"⩰̸\",napid:\"≋̸\",napos:\"ʼn\",napprox:\"≉\",natural:\"♮\",naturals:\"ℕ\",natur:\"♮\",nbsp:\" \",nbump:\"≎̸\",nbumpe:\"≏̸\",ncap:\"⩃\",Ncaron:\"Ň\",ncaron:\"ň\",Ncedil:\"Ņ\",ncedil:\"ņ\",ncong:\"≇\",ncongdot:\"⩭̸\",ncup:\"⩂\",Ncy:\"Н\",ncy:\"н\",ndash:\"–\",nearhk:\"⤤\",nearr:\"↗\",neArr:\"⇗\",nearrow:\"↗\",ne:\"≠\",nedot:\"≐̸\",NegativeMediumSpace:\"​\",NegativeThickSpace:\"​\",NegativeThinSpace:\"​\",NegativeVeryThinSpace:\"​\",nequiv:\"≢\",nesear:\"⤨\",nesim:\"≂̸\",NestedGreaterGreater:\"≫\",NestedLessLess:\"≪\",NewLine:\"\\n\",nexist:\"∄\",nexists:\"∄\",Nfr:\"𝔑\",nfr:\"𝔫\",ngE:\"≧̸\",nge:\"≱\",ngeq:\"≱\",ngeqq:\"≧̸\",ngeqslant:\"⩾̸\",nges:\"⩾̸\",nGg:\"⋙̸\",ngsim:\"≵\",nGt:\"≫⃒\",ngt:\"≯\",ngtr:\"≯\",nGtv:\"≫̸\",nharr:\"↮\",nhArr:\"⇎\",nhpar:\"⫲\",ni:\"∋\",nis:\"⋼\",nisd:\"⋺\",niv:\"∋\",NJcy:\"Њ\",njcy:\"њ\",nlarr:\"↚\",nlArr:\"⇍\",nldr:\"‥\",nlE:\"≦̸\",nle:\"≰\",nleftarrow:\"↚\",nLeftarrow:\"⇍\",nleftrightarrow:\"↮\",nLeftrightarrow:\"⇎\",nleq:\"≰\",nleqq:\"≦̸\",nleqslant:\"⩽̸\",nles:\"⩽̸\",nless:\"≮\",nLl:\"⋘̸\",nlsim:\"≴\",nLt:\"≪⃒\",nlt:\"≮\",nltri:\"⋪\",nltrie:\"⋬\",nLtv:\"≪̸\",nmid:\"∤\",NoBreak:\"⁠\",NonBreakingSpace:\" \",nopf:\"𝕟\",Nopf:\"ℕ\",Not:\"⫬\",not:\"¬\",NotCongruent:\"≢\",NotCupCap:\"≭\",NotDoubleVerticalBar:\"∦\",NotElement:\"∉\",NotEqual:\"≠\",NotEqualTilde:\"≂̸\",NotExists:\"∄\",NotGreater:\"≯\",NotGreaterEqual:\"≱\",NotGreaterFullEqual:\"≧̸\",NotGreaterGreater:\"≫̸\",NotGreaterLess:\"≹\",NotGreaterSlantEqual:\"⩾̸\",NotGreaterTilde:\"≵\",NotHumpDownHump:\"≎̸\",NotHumpEqual:\"≏̸\",notin:\"∉\",notindot:\"⋵̸\",notinE:\"⋹̸\",notinva:\"∉\",notinvb:\"⋷\",notinvc:\"⋶\",NotLeftTriangleBar:\"⧏̸\",NotLeftTriangle:\"⋪\",NotLeftTriangleEqual:\"⋬\",NotLess:\"≮\",NotLessEqual:\"≰\",NotLessGreater:\"≸\",NotLessLess:\"≪̸\",NotLessSlantEqual:\"⩽̸\",NotLessTilde:\"≴\",NotNestedGreaterGreater:\"⪢̸\",NotNestedLessLess:\"⪡̸\",notni:\"∌\",notniva:\"∌\",notnivb:\"⋾\",notnivc:\"⋽\",NotPrecedes:\"⊀\",NotPrecedesEqual:\"⪯̸\",NotPrecedesSlantEqual:\"⋠\",NotReverseElement:\"∌\",NotRightTriangleBar:\"⧐̸\",NotRightTriangle:\"⋫\",NotRightTriangleEqual:\"⋭\",NotSquareSubset:\"⊏̸\",NotSquareSubsetEqual:\"⋢\",NotSquareSuperset:\"⊐̸\",NotSquareSupersetEqual:\"⋣\",NotSubset:\"⊂⃒\",NotSubsetEqual:\"⊈\",NotSucceeds:\"⊁\",NotSucceedsEqual:\"⪰̸\",NotSucceedsSlantEqual:\"⋡\",NotSucceedsTilde:\"≿̸\",NotSuperset:\"⊃⃒\",NotSupersetEqual:\"⊉\",NotTilde:\"≁\",NotTildeEqual:\"≄\",NotTildeFullEqual:\"≇\",NotTildeTilde:\"≉\",NotVerticalBar:\"∤\",nparallel:\"∦\",npar:\"∦\",nparsl:\"⫽⃥\",npart:\"∂̸\",npolint:\"⨔\",npr:\"⊀\",nprcue:\"⋠\",nprec:\"⊀\",npreceq:\"⪯̸\",npre:\"⪯̸\",nrarrc:\"⤳̸\",nrarr:\"↛\",nrArr:\"⇏\",nrarrw:\"↝̸\",nrightarrow:\"↛\",nRightarrow:\"⇏\",nrtri:\"⋫\",nrtrie:\"⋭\",nsc:\"⊁\",nsccue:\"⋡\",nsce:\"⪰̸\",Nscr:\"𝒩\",nscr:\"𝓃\",nshortmid:\"∤\",nshortparallel:\"∦\",nsim:\"≁\",nsime:\"≄\",nsimeq:\"≄\",nsmid:\"∤\",nspar:\"∦\",nsqsube:\"⋢\",nsqsupe:\"⋣\",nsub:\"⊄\",nsubE:\"⫅̸\",nsube:\"⊈\",nsubset:\"⊂⃒\",nsubseteq:\"⊈\",nsubseteqq:\"⫅̸\",nsucc:\"⊁\",nsucceq:\"⪰̸\",nsup:\"⊅\",nsupE:\"⫆̸\",nsupe:\"⊉\",nsupset:\"⊃⃒\",nsupseteq:\"⊉\",nsupseteqq:\"⫆̸\",ntgl:\"≹\",Ntilde:\"Ñ\",ntilde:\"ñ\",ntlg:\"≸\",ntriangleleft:\"⋪\",ntrianglelefteq:\"⋬\",ntriangleright:\"⋫\",ntrianglerighteq:\"⋭\",Nu:\"Ν\",nu:\"ν\",num:\"#\",numero:\"№\",numsp:\" \",nvap:\"≍⃒\",nvdash:\"⊬\",nvDash:\"⊭\",nVdash:\"⊮\",nVDash:\"⊯\",nvge:\"≥⃒\",nvgt:\">⃒\",nvHarr:\"⤄\",nvinfin:\"⧞\",nvlArr:\"⤂\",nvle:\"≤⃒\",nvlt:\"<⃒\",nvltrie:\"⊴⃒\",nvrArr:\"⤃\",nvrtrie:\"⊵⃒\",nvsim:\"∼⃒\",nwarhk:\"⤣\",nwarr:\"↖\",nwArr:\"⇖\",nwarrow:\"↖\",nwnear:\"⤧\",Oacute:\"Ó\",oacute:\"ó\",oast:\"⊛\",Ocirc:\"Ô\",ocirc:\"ô\",ocir:\"⊚\",Ocy:\"О\",ocy:\"о\",odash:\"⊝\",Odblac:\"Ő\",odblac:\"ő\",odiv:\"⨸\",odot:\"⊙\",odsold:\"⦼\",OElig:\"Œ\",oelig:\"œ\",ofcir:\"⦿\",Ofr:\"𝔒\",ofr:\"𝔬\",ogon:\"˛\",Ograve:\"Ò\",ograve:\"ò\",ogt:\"⧁\",ohbar:\"⦵\",ohm:\"Ω\",oint:\"∮\",olarr:\"↺\",olcir:\"⦾\",olcross:\"⦻\",oline:\"‾\",olt:\"⧀\",Omacr:\"Ō\",omacr:\"ō\",Omega:\"Ω\",omega:\"ω\",Omicron:\"Ο\",omicron:\"ο\",omid:\"⦶\",ominus:\"⊖\",Oopf:\"𝕆\",oopf:\"𝕠\",opar:\"⦷\",OpenCurlyDoubleQuote:\"“\",OpenCurlyQuote:\"‘\",operp:\"⦹\",oplus:\"⊕\",orarr:\"↻\",Or:\"⩔\",or:\"∨\",ord:\"⩝\",order:\"ℴ\",orderof:\"ℴ\",ordf:\"ª\",ordm:\"º\",origof:\"⊶\",oror:\"⩖\",orslope:\"⩗\",orv:\"⩛\",oS:\"Ⓢ\",Oscr:\"𝒪\",oscr:\"ℴ\",Oslash:\"Ø\",oslash:\"ø\",osol:\"⊘\",Otilde:\"Õ\",otilde:\"õ\",otimesas:\"⨶\",Otimes:\"⨷\",otimes:\"⊗\",Ouml:\"Ö\",ouml:\"ö\",ovbar:\"⌽\",OverBar:\"‾\",OverBrace:\"⏞\",OverBracket:\"⎴\",OverParenthesis:\"⏜\",para:\"¶\",parallel:\"∥\",par:\"∥\",parsim:\"⫳\",parsl:\"⫽\",part:\"∂\",PartialD:\"∂\",Pcy:\"П\",pcy:\"п\",percnt:\"%\",period:\".\",permil:\"‰\",perp:\"⊥\",pertenk:\"‱\",Pfr:\"𝔓\",pfr:\"𝔭\",Phi:\"Φ\",phi:\"φ\",phiv:\"ϕ\",phmmat:\"ℳ\",phone:\"☎\",Pi:\"Π\",pi:\"π\",pitchfork:\"⋔\",piv:\"ϖ\",planck:\"ℏ\",planckh:\"ℎ\",plankv:\"ℏ\",plusacir:\"⨣\",plusb:\"⊞\",pluscir:\"⨢\",plus:\"+\",plusdo:\"∔\",plusdu:\"⨥\",pluse:\"⩲\",PlusMinus:\"±\",plusmn:\"±\",plussim:\"⨦\",plustwo:\"⨧\",pm:\"±\",Poincareplane:\"ℌ\",pointint:\"⨕\",popf:\"𝕡\",Popf:\"ℙ\",pound:\"£\",prap:\"⪷\",Pr:\"⪻\",pr:\"≺\",prcue:\"≼\",precapprox:\"⪷\",prec:\"≺\",preccurlyeq:\"≼\",Precedes:\"≺\",PrecedesEqual:\"⪯\",PrecedesSlantEqual:\"≼\",PrecedesTilde:\"≾\",preceq:\"⪯\",precnapprox:\"⪹\",precneqq:\"⪵\",precnsim:\"⋨\",pre:\"⪯\",prE:\"⪳\",precsim:\"≾\",prime:\"′\",Prime:\"″\",primes:\"ℙ\",prnap:\"⪹\",prnE:\"⪵\",prnsim:\"⋨\",prod:\"∏\",Product:\"∏\",profalar:\"⌮\",profline:\"⌒\",profsurf:\"⌓\",prop:\"∝\",Proportional:\"∝\",Proportion:\"∷\",propto:\"∝\",prsim:\"≾\",prurel:\"⊰\",Pscr:\"𝒫\",pscr:\"𝓅\",Psi:\"Ψ\",psi:\"ψ\",puncsp:\" \",Qfr:\"𝔔\",qfr:\"𝔮\",qint:\"⨌\",qopf:\"𝕢\",Qopf:\"ℚ\",qprime:\"⁗\",Qscr:\"𝒬\",qscr:\"𝓆\",quaternions:\"ℍ\",quatint:\"⨖\",quest:\"?\",questeq:\"≟\",quot:'\"',QUOT:'\"',rAarr:\"⇛\",race:\"∽̱\",Racute:\"Ŕ\",racute:\"ŕ\",radic:\"√\",raemptyv:\"⦳\",rang:\"⟩\",Rang:\"⟫\",rangd:\"⦒\",range:\"⦥\",rangle:\"⟩\",raquo:\"»\",rarrap:\"⥵\",rarrb:\"⇥\",rarrbfs:\"⤠\",rarrc:\"⤳\",rarr:\"→\",Rarr:\"↠\",rArr:\"⇒\",rarrfs:\"⤞\",rarrhk:\"↪\",rarrlp:\"↬\",rarrpl:\"⥅\",rarrsim:\"⥴\",Rarrtl:\"⤖\",rarrtl:\"↣\",rarrw:\"↝\",ratail:\"⤚\",rAtail:\"⤜\",ratio:\"∶\",rationals:\"ℚ\",rbarr:\"⤍\",rBarr:\"⤏\",RBarr:\"⤐\",rbbrk:\"❳\",rbrace:\"}\",rbrack:\"]\",rbrke:\"⦌\",rbrksld:\"⦎\",rbrkslu:\"⦐\",Rcaron:\"Ř\",rcaron:\"ř\",Rcedil:\"Ŗ\",rcedil:\"ŗ\",rceil:\"⌉\",rcub:\"}\",Rcy:\"Р\",rcy:\"р\",rdca:\"⤷\",rdldhar:\"⥩\",rdquo:\"”\",rdquor:\"”\",rdsh:\"↳\",real:\"ℜ\",realine:\"ℛ\",realpart:\"ℜ\",reals:\"ℝ\",Re:\"ℜ\",rect:\"▭\",reg:\"®\",REG:\"®\",ReverseElement:\"∋\",ReverseEquilibrium:\"⇋\",ReverseUpEquilibrium:\"⥯\",rfisht:\"⥽\",rfloor:\"⌋\",rfr:\"𝔯\",Rfr:\"ℜ\",rHar:\"⥤\",rhard:\"⇁\",rharu:\"⇀\",rharul:\"⥬\",Rho:\"Ρ\",rho:\"ρ\",rhov:\"ϱ\",RightAngleBracket:\"⟩\",RightArrowBar:\"⇥\",rightarrow:\"→\",RightArrow:\"→\",Rightarrow:\"⇒\",RightArrowLeftArrow:\"⇄\",rightarrowtail:\"↣\",RightCeiling:\"⌉\",RightDoubleBracket:\"⟧\",RightDownTeeVector:\"⥝\",RightDownVectorBar:\"⥕\",RightDownVector:\"⇂\",RightFloor:\"⌋\",rightharpoondown:\"⇁\",rightharpoonup:\"⇀\",rightleftarrows:\"⇄\",rightleftharpoons:\"⇌\",rightrightarrows:\"⇉\",rightsquigarrow:\"↝\",RightTeeArrow:\"↦\",RightTee:\"⊢\",RightTeeVector:\"⥛\",rightthreetimes:\"⋌\",RightTriangleBar:\"⧐\",RightTriangle:\"⊳\",RightTriangleEqual:\"⊵\",RightUpDownVector:\"⥏\",RightUpTeeVector:\"⥜\",RightUpVectorBar:\"⥔\",RightUpVector:\"↾\",RightVectorBar:\"⥓\",RightVector:\"⇀\",ring:\"˚\",risingdotseq:\"≓\",rlarr:\"⇄\",rlhar:\"⇌\",rlm:\"‏\",rmoustache:\"⎱\",rmoust:\"⎱\",rnmid:\"⫮\",roang:\"⟭\",roarr:\"⇾\",robrk:\"⟧\",ropar:\"⦆\",ropf:\"𝕣\",Ropf:\"ℝ\",roplus:\"⨮\",rotimes:\"⨵\",RoundImplies:\"⥰\",rpar:\")\",rpargt:\"⦔\",rppolint:\"⨒\",rrarr:\"⇉\",Rrightarrow:\"⇛\",rsaquo:\"›\",rscr:\"𝓇\",Rscr:\"ℛ\",rsh:\"↱\",Rsh:\"↱\",rsqb:\"]\",rsquo:\"’\",rsquor:\"’\",rthree:\"⋌\",rtimes:\"⋊\",rtri:\"▹\",rtrie:\"⊵\",rtrif:\"▸\",rtriltri:\"⧎\",RuleDelayed:\"⧴\",ruluhar:\"⥨\",rx:\"℞\",Sacute:\"Ś\",sacute:\"ś\",sbquo:\"‚\",scap:\"⪸\",Scaron:\"Š\",scaron:\"š\",Sc:\"⪼\",sc:\"≻\",sccue:\"≽\",sce:\"⪰\",scE:\"⪴\",Scedil:\"Ş\",scedil:\"ş\",Scirc:\"Ŝ\",scirc:\"ŝ\",scnap:\"⪺\",scnE:\"⪶\",scnsim:\"⋩\",scpolint:\"⨓\",scsim:\"≿\",Scy:\"С\",scy:\"с\",sdotb:\"⊡\",sdot:\"⋅\",sdote:\"⩦\",searhk:\"⤥\",searr:\"↘\",seArr:\"⇘\",searrow:\"↘\",sect:\"§\",semi:\";\",seswar:\"⤩\",setminus:\"∖\",setmn:\"∖\",sext:\"✶\",Sfr:\"𝔖\",sfr:\"𝔰\",sfrown:\"⌢\",sharp:\"♯\",SHCHcy:\"Щ\",shchcy:\"щ\",SHcy:\"Ш\",shcy:\"ш\",ShortDownArrow:\"↓\",ShortLeftArrow:\"←\",shortmid:\"∣\",shortparallel:\"∥\",ShortRightArrow:\"→\",ShortUpArrow:\"↑\",shy:\"­\",Sigma:\"Σ\",sigma:\"σ\",sigmaf:\"ς\",sigmav:\"ς\",sim:\"∼\",simdot:\"⩪\",sime:\"≃\",simeq:\"≃\",simg:\"⪞\",simgE:\"⪠\",siml:\"⪝\",simlE:\"⪟\",simne:\"≆\",simplus:\"⨤\",simrarr:\"⥲\",slarr:\"←\",SmallCircle:\"∘\",smallsetminus:\"∖\",smashp:\"⨳\",smeparsl:\"⧤\",smid:\"∣\",smile:\"⌣\",smt:\"⪪\",smte:\"⪬\",smtes:\"⪬︀\",SOFTcy:\"Ь\",softcy:\"ь\",solbar:\"⌿\",solb:\"⧄\",sol:\"/\",Sopf:\"𝕊\",sopf:\"𝕤\",spades:\"♠\",spadesuit:\"♠\",spar:\"∥\",sqcap:\"⊓\",sqcaps:\"⊓︀\",sqcup:\"⊔\",sqcups:\"⊔︀\",Sqrt:\"√\",sqsub:\"⊏\",sqsube:\"⊑\",sqsubset:\"⊏\",sqsubseteq:\"⊑\",sqsup:\"⊐\",sqsupe:\"⊒\",sqsupset:\"⊐\",sqsupseteq:\"⊒\",square:\"□\",Square:\"□\",SquareIntersection:\"⊓\",SquareSubset:\"⊏\",SquareSubsetEqual:\"⊑\",SquareSuperset:\"⊐\",SquareSupersetEqual:\"⊒\",SquareUnion:\"⊔\",squarf:\"▪\",squ:\"□\",squf:\"▪\",srarr:\"→\",Sscr:\"𝒮\",sscr:\"𝓈\",ssetmn:\"∖\",ssmile:\"⌣\",sstarf:\"⋆\",Star:\"⋆\",star:\"☆\",starf:\"★\",straightepsilon:\"ϵ\",straightphi:\"ϕ\",strns:\"¯\",sub:\"⊂\",Sub:\"⋐\",subdot:\"⪽\",subE:\"⫅\",sube:\"⊆\",subedot:\"⫃\",submult:\"⫁\",subnE:\"⫋\",subne:\"⊊\",subplus:\"⪿\",subrarr:\"⥹\",subset:\"⊂\",Subset:\"⋐\",subseteq:\"⊆\",subseteqq:\"⫅\",SubsetEqual:\"⊆\",subsetneq:\"⊊\",subsetneqq:\"⫋\",subsim:\"⫇\",subsub:\"⫕\",subsup:\"⫓\",succapprox:\"⪸\",succ:\"≻\",succcurlyeq:\"≽\",Succeeds:\"≻\",SucceedsEqual:\"⪰\",SucceedsSlantEqual:\"≽\",SucceedsTilde:\"≿\",succeq:\"⪰\",succnapprox:\"⪺\",succneqq:\"⪶\",succnsim:\"⋩\",succsim:\"≿\",SuchThat:\"∋\",sum:\"∑\",Sum:\"∑\",sung:\"♪\",sup1:\"¹\",sup2:\"²\",sup3:\"³\",sup:\"⊃\",Sup:\"⋑\",supdot:\"⪾\",supdsub:\"⫘\",supE:\"⫆\",supe:\"⊇\",supedot:\"⫄\",Superset:\"⊃\",SupersetEqual:\"⊇\",suphsol:\"⟉\",suphsub:\"⫗\",suplarr:\"⥻\",supmult:\"⫂\",supnE:\"⫌\",supne:\"⊋\",supplus:\"⫀\",supset:\"⊃\",Supset:\"⋑\",supseteq:\"⊇\",supseteqq:\"⫆\",supsetneq:\"⊋\",supsetneqq:\"⫌\",supsim:\"⫈\",supsub:\"⫔\",supsup:\"⫖\",swarhk:\"⤦\",swarr:\"↙\",swArr:\"⇙\",swarrow:\"↙\",swnwar:\"⤪\",szlig:\"ß\",Tab:\"\\t\",target:\"⌖\",Tau:\"Τ\",tau:\"τ\",tbrk:\"⎴\",Tcaron:\"Ť\",tcaron:\"ť\",Tcedil:\"Ţ\",tcedil:\"ţ\",Tcy:\"Т\",tcy:\"т\",tdot:\"⃛\",telrec:\"⌕\",Tfr:\"𝔗\",tfr:\"𝔱\",there4:\"∴\",therefore:\"∴\",Therefore:\"∴\",Theta:\"Θ\",theta:\"θ\",thetasym:\"ϑ\",thetav:\"ϑ\",thickapprox:\"≈\",thicksim:\"∼\",ThickSpace:\"  \",ThinSpace:\" \",thinsp:\" \",thkap:\"≈\",thksim:\"∼\",THORN:\"Þ\",thorn:\"þ\",tilde:\"˜\",Tilde:\"∼\",TildeEqual:\"≃\",TildeFullEqual:\"≅\",TildeTilde:\"≈\",timesbar:\"⨱\",timesb:\"⊠\",times:\"×\",timesd:\"⨰\",tint:\"∭\",toea:\"⤨\",topbot:\"⌶\",topcir:\"⫱\",top:\"⊤\",Topf:\"𝕋\",topf:\"𝕥\",topfork:\"⫚\",tosa:\"⤩\",tprime:\"‴\",trade:\"™\",TRADE:\"™\",triangle:\"▵\",triangledown:\"▿\",triangleleft:\"◃\",trianglelefteq:\"⊴\",triangleq:\"≜\",triangleright:\"▹\",trianglerighteq:\"⊵\",tridot:\"◬\",trie:\"≜\",triminus:\"⨺\",TripleDot:\"⃛\",triplus:\"⨹\",trisb:\"⧍\",tritime:\"⨻\",trpezium:\"⏢\",Tscr:\"𝒯\",tscr:\"𝓉\",TScy:\"Ц\",tscy:\"ц\",TSHcy:\"Ћ\",tshcy:\"ћ\",Tstrok:\"Ŧ\",tstrok:\"ŧ\",twixt:\"≬\",twoheadleftarrow:\"↞\",twoheadrightarrow:\"↠\",Uacute:\"Ú\",uacute:\"ú\",uarr:\"↑\",Uarr:\"↟\",uArr:\"⇑\",Uarrocir:\"⥉\",Ubrcy:\"Ў\",ubrcy:\"ў\",Ubreve:\"Ŭ\",ubreve:\"ŭ\",Ucirc:\"Û\",ucirc:\"û\",Ucy:\"У\",ucy:\"у\",udarr:\"⇅\",Udblac:\"Ű\",udblac:\"ű\",udhar:\"⥮\",ufisht:\"⥾\",Ufr:\"𝔘\",ufr:\"𝔲\",Ugrave:\"Ù\",ugrave:\"ù\",uHar:\"⥣\",uharl:\"↿\",uharr:\"↾\",uhblk:\"▀\",ulcorn:\"⌜\",ulcorner:\"⌜\",ulcrop:\"⌏\",ultri:\"◸\",Umacr:\"Ū\",umacr:\"ū\",uml:\"¨\",UnderBar:\"_\",UnderBrace:\"⏟\",UnderBracket:\"⎵\",UnderParenthesis:\"⏝\",Union:\"⋃\",UnionPlus:\"⊎\",Uogon:\"Ų\",uogon:\"ų\",Uopf:\"𝕌\",uopf:\"𝕦\",UpArrowBar:\"⤒\",uparrow:\"↑\",UpArrow:\"↑\",Uparrow:\"⇑\",UpArrowDownArrow:\"⇅\",updownarrow:\"↕\",UpDownArrow:\"↕\",Updownarrow:\"⇕\",UpEquilibrium:\"⥮\",upharpoonleft:\"↿\",upharpoonright:\"↾\",uplus:\"⊎\",UpperLeftArrow:\"↖\",UpperRightArrow:\"↗\",upsi:\"υ\",Upsi:\"ϒ\",upsih:\"ϒ\",Upsilon:\"Υ\",upsilon:\"υ\",UpTeeArrow:\"↥\",UpTee:\"⊥\",upuparrows:\"⇈\",urcorn:\"⌝\",urcorner:\"⌝\",urcrop:\"⌎\",Uring:\"Ů\",uring:\"ů\",urtri:\"◹\",Uscr:\"𝒰\",uscr:\"𝓊\",utdot:\"⋰\",Utilde:\"Ũ\",utilde:\"ũ\",utri:\"▵\",utrif:\"▴\",uuarr:\"⇈\",Uuml:\"Ü\",uuml:\"ü\",uwangle:\"⦧\",vangrt:\"⦜\",varepsilon:\"ϵ\",varkappa:\"ϰ\",varnothing:\"∅\",varphi:\"ϕ\",varpi:\"ϖ\",varpropto:\"∝\",varr:\"↕\",vArr:\"⇕\",varrho:\"ϱ\",varsigma:\"ς\",varsubsetneq:\"⊊︀\",varsubsetneqq:\"⫋︀\",varsupsetneq:\"⊋︀\",varsupsetneqq:\"⫌︀\",vartheta:\"ϑ\",vartriangleleft:\"⊲\",vartriangleright:\"⊳\",vBar:\"⫨\",Vbar:\"⫫\",vBarv:\"⫩\",Vcy:\"В\",vcy:\"в\",vdash:\"⊢\",vDash:\"⊨\",Vdash:\"⊩\",VDash:\"⊫\",Vdashl:\"⫦\",veebar:\"⊻\",vee:\"∨\",Vee:\"⋁\",veeeq:\"≚\",vellip:\"⋮\",verbar:\"|\",Verbar:\"‖\",vert:\"|\",Vert:\"‖\",VerticalBar:\"∣\",VerticalLine:\"|\",VerticalSeparator:\"❘\",VerticalTilde:\"≀\",VeryThinSpace:\" \",Vfr:\"𝔙\",vfr:\"𝔳\",vltri:\"⊲\",vnsub:\"⊂⃒\",vnsup:\"⊃⃒\",Vopf:\"𝕍\",vopf:\"𝕧\",vprop:\"∝\",vrtri:\"⊳\",Vscr:\"𝒱\",vscr:\"𝓋\",vsubnE:\"⫋︀\",vsubne:\"⊊︀\",vsupnE:\"⫌︀\",vsupne:\"⊋︀\",Vvdash:\"⊪\",vzigzag:\"⦚\",Wcirc:\"Ŵ\",wcirc:\"ŵ\",wedbar:\"⩟\",wedge:\"∧\",Wedge:\"⋀\",wedgeq:\"≙\",weierp:\"℘\",Wfr:\"𝔚\",wfr:\"𝔴\",Wopf:\"𝕎\",wopf:\"𝕨\",wp:\"℘\",wr:\"≀\",wreath:\"≀\",Wscr:\"𝒲\",wscr:\"𝓌\",xcap:\"⋂\",xcirc:\"◯\",xcup:\"⋃\",xdtri:\"▽\",Xfr:\"𝔛\",xfr:\"𝔵\",xharr:\"⟷\",xhArr:\"⟺\",Xi:\"Ξ\",xi:\"ξ\",xlarr:\"⟵\",xlArr:\"⟸\",xmap:\"⟼\",xnis:\"⋻\",xodot:\"⨀\",Xopf:\"𝕏\",xopf:\"𝕩\",xoplus:\"⨁\",xotime:\"⨂\",xrarr:\"⟶\",xrArr:\"⟹\",Xscr:\"𝒳\",xscr:\"𝓍\",xsqcup:\"⨆\",xuplus:\"⨄\",xutri:\"△\",xvee:\"⋁\",xwedge:\"⋀\",Yacute:\"Ý\",yacute:\"ý\",YAcy:\"Я\",yacy:\"я\",Ycirc:\"Ŷ\",ycirc:\"ŷ\",Ycy:\"Ы\",ycy:\"ы\",yen:\"¥\",Yfr:\"𝔜\",yfr:\"𝔶\",YIcy:\"Ї\",yicy:\"ї\",Yopf:\"𝕐\",yopf:\"𝕪\",Yscr:\"𝒴\",yscr:\"𝓎\",YUcy:\"Ю\",yucy:\"ю\",yuml:\"ÿ\",Yuml:\"Ÿ\",Zacute:\"Ź\",zacute:\"ź\",Zcaron:\"Ž\",zcaron:\"ž\",Zcy:\"З\",zcy:\"з\",Zdot:\"Ż\",zdot:\"ż\",zeetrf:\"ℨ\",ZeroWidthSpace:\"​\",Zeta:\"Ζ\",zeta:\"ζ\",zfr:\"𝔷\",Zfr:\"ℨ\",ZHcy:\"Ж\",zhcy:\"ж\",zigrarr:\"⇝\",zopf:\"𝕫\",Zopf:\"ℤ\",Zscr:\"𝒵\",zscr:\"𝓏\",zwj:\"‍\",zwnj:\"‌\"}},function(e,t){e.exports={amp:\"&\",apos:\"'\",gt:\">\",lt:\"<\",quot:'\"'}},function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+\": incorrect invocation!\");return e}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError(\"Can't call method on \"+e);return e}},function(e,t,n){var i=n(24),r=n(17).document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},function(e,t){e.exports=\"constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf\".split(\",\")},function(e,t,n){var i=n(62);e.exports=Object(\"z\").propertyIsEnumerable(0)?Object:function(e){return\"String\"==i(e)?e.split(\"\"):Object(e)}},function(e,t,n){\"use strict\";var i=n(64),r=n(15),o=n(174),a=n(41),s=n(50),l=n(397),u=n(67),c=n(170),d=n(18)(\"iterator\"),h=!([].keys&&\"next\"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,m,g,v){l(n,t,p);var y,b,_,x=function(e){if(!h&&e in E)return E[e];switch(e){case\"keys\":case\"values\":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+\" Iterator\",M=\"values\"==m,S=!1,E=e.prototype,T=E[d]||E[\"@@iterator\"]||m&&E[m],k=T||x(m),O=m?M?x(\"entries\"):k:void 0,C=\"Array\"==t?E.entries||T:T;if(C&&(_=c(C.call(new e)))!==Object.prototype&&_.next&&(u(_,w,!0),i||\"function\"==typeof _[d]||a(_,d,f)),M&&T&&\"values\"!==T.name&&(S=!0,k=function(){return T.call(this)}),i&&!v||!h&&!S&&E[d]||a(E,d,k),s[t]=k,s[w]=f,m)if(y={values:M?k:x(\"values\"),keys:g?k:x(\"keys\"),entries:O},v)for(b in y)b in E||o(E,b,y[b]);else r(r.P+r.F*(h||S),t,y);return y}},function(e,t,n){var i=n(85)(\"meta\"),r=n(24),o=n(46),a=n(25).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(45)(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,i,{value:{i:\"O\"+ ++s,w:{}}})},d=function(e,t){if(!r(e))return\"symbol\"==typeof e?e:(\"string\"==typeof e?\"S\":\"P\")+e;if(!o(e,i)){if(!l(e))return\"F\";if(!t)return\"E\";c(e)}return e[i].i},h=function(e,t){if(!o(e,i)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[i].w},f=function(e){return u&&p.NEED&&l(e)&&!o(e,i)&&c(e),e},p=e.exports={KEY:i,NEED:!1,fastKey:d,getWeak:h,onFreeze:f}},function(e,t,n){\"use strict\";function i(e){var t,n;this.promise=new e(function(e,i){if(void 0!==t||void 0!==n)throw TypeError(\"Bad Promise constructor\");t=e,n=i}),this.resolve=r(t),this.reject=r(n)}var r=n(61);e.exports.f=function(e){return new i(e)}},function(e,t,n){var i=n(65),r=n(66),o=n(42),a=n(118),s=n(46),l=n(163),u=Object.getOwnPropertyDescriptor;t.f=n(31)?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(15),r=n(10),o=n(45);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),i(i.S+i.F*o(function(){n(1)}),\"Object\",a)}},function(e,t,n){var i=n(41);e.exports=function(e,t,n){for(var r in t)n&&e[r]?e[r]=t[r]:i(e,r,t[r]);return e}},function(e,t,n){var i=n(116)(\"keys\"),r=n(85);e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){var i=n(10),r=n(17),o=r[\"__core-js_shared__\"]||(r[\"__core-js_shared__\"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})(\"versions\",[]).push({version:i.version,mode:n(64)?\"pure\":\"global\",copyright:\"© 2018 Denis Pushkarev (zloirock.ru)\"})},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(24);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&\"function\"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if(\"function\"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&\"function\"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError(\"Can't convert object to primitive value\")}},function(e,t,n){var i=n(17),r=n(10),o=n(64),a=n(120),s=n(25).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});\"_\"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(18)},function(e,t,n){var i=n(82),r=n(18)(\"iterator\"),o=n(50);e.exports=n(10).getIteratorMethod=function(e){if(void 0!=e)return e[r]||e[\"@@iterator\"]||o[i(e)]}},function(e,t){},function(e,t){function n(e,t){var n=e[1]||\"\",r=e[3];if(!r)return n;if(t&&\"function\"==typeof btoa){var o=i(r);return[n].concat(r.sources.map(function(e){return\"/*# sourceURL=\"+r.sourceRoot+e+\" */\"})).concat([o]).join(\"\\n\")}return[n].join(\"\\n\")}function i(e){return\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+\" */\"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var i=n(t,e);return t[2]?\"@media \"+t[2]+\"{\"+i+\"}\":i}).join(\"\")},t.i=function(e,n){\"string\"==typeof e&&(e=[[null,e,\"\"]]);for(var i={},r=0;r>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var i=t.length-1;if(i=0?(r>0&&(e.lastNeed=r-1),r):--i=0?(r>0&&(e.lastNeed=r-2),r):--i=0?(r>0&&(2===r?r=0:e.lastNeed=r-3),r):0)}function l(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,\"�\";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,\"�\";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,\"�\"}}function u(e){var t=this.lastTotal-this.lastNeed,n=l(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(\"utf8\",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString(\"utf8\",t,i)}function d(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+\"�\":t}function h(e,t){if((e.length-t)%2==0){var n=e.toString(\"utf16le\",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(\"utf16le\",t,e.length-1)}function f(e){var t=e&&e.length?this.write(e):\"\";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(\"utf16le\",0,n)}return t}function p(e,t){var n=(e.length-t)%3;return 0===n?e.toString(\"base64\",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(\"base64\",t,e.length-n))}function m(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+this.lastChar.toString(\"base64\",0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):\"\"}var y=n(98).Buffer,b=y.isEncoding||function(e){switch((e=\"\"+e)&&e.toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":case\"raw\":return!0;default:return!1}};t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return\"\";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return\"\";n=this.lastNeed,this.lastNeed=0}else n=0;return n1e-7?(n=e*t,(1-e*e)*(t/(1-n*n)-.5/e*Math.log((1-n)/(1+n)))):2*t}},function(e,t,n){\"use strict\";function i(e){if(e)for(var t=Object.keys(e),n=0;n-1&&this.oneof.splice(t,1),e.partOf=null,this},i.prototype.onAdd=function(e){o.prototype.onAdd.call(this,e);for(var t=this,n=0;n \"+e.len)}function r(e){this.buf=e,this.pos=0,this.len=e.length}function o(){var e=new c(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw i(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw i(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error(\"invalid varint encoding\")}function a(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function s(){if(this.pos+8>this.len)throw i(this,8);return new c(a(this.buf,this.pos+=4),a(this.buf,this.pos+=4))}e.exports=r;var l,u=n(36),c=u.LongBits,d=u.utf8,h=\"undefined\"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new r(e);throw Error(\"illegal buffer\")}:function(e){if(Array.isArray(e))return new r(e);throw Error(\"illegal buffer\")};r.create=u.Buffer?function(e){return(r.create=function(e){return u.Buffer.isBuffer(e)?new l(e):h(e)})(e)}:h,r.prototype._slice=u.Array.prototype.subarray||u.Array.prototype.slice,r.prototype.uint32=function(){var e=4294967295;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return e;if((this.pos+=5)>this.len)throw this.pos=this.len,i(this,10);return e}}(),r.prototype.int32=function(){return 0|this.uint32()},r.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},r.prototype.bool=function(){return 0!==this.uint32()},r.prototype.fixed32=function(){if(this.pos+4>this.len)throw i(this,4);return a(this.buf,this.pos+=4)},r.prototype.sfixed32=function(){if(this.pos+4>this.len)throw i(this,4);return 0|a(this.buf,this.pos+=4)},r.prototype.float=function(){if(this.pos+4>this.len)throw i(this,4);var e=u.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},r.prototype.double=function(){if(this.pos+8>this.len)throw i(this,4);var e=u.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},r.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw i(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},r.prototype.string=function(){var e=this.bytes();return d.read(e,0,e.length)},r.prototype.skip=function(e){if(\"number\"==typeof e){if(this.pos+e>this.len)throw i(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw i(this)}while(128&this.buf[this.pos++]);return this},r.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error(\"invalid wire type \"+e+\" at offset \"+this.pos)}return this},r._configure=function(e){l=e;var t=u.Long?\"toLong\":\"toNumber\";u.merge(r.prototype,{int64:function(){return o.call(this)[t](!1)},uint64:function(){return o.call(this)[t](!0)},sint64:function(){return o.call(this).zzDecode()[t](!1)},fixed64:function(){return s.call(this)[t](!0)},sfixed64:function(){return s.call(this)[t](!1)}})}},function(e,t,n){\"use strict\";function i(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function r(){}function o(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function a(){this.len=0,this.head=new i(r,0,0),this.tail=this.head,this.states=null}function s(e,t,n){t[n]=255&e}function l(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e}function u(e,t){this.len=e,this.next=void 0,this.val=t}function c(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function d(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}e.exports=a;var h,f=n(36),p=f.LongBits,m=f.base64,g=f.utf8;a.create=f.Buffer?function(){return(a.create=function(){return new h})()}:function(){return new a},a.alloc=function(e){return new f.Array(e)},f.Array!==Array&&(a.alloc=f.pool(a.alloc,f.Array.prototype.subarray)),a.prototype._push=function(e,t,n){return this.tail=this.tail.next=new i(e,t,n),this.len+=t,this},u.prototype=Object.create(i.prototype),u.prototype.fn=l,a.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new u((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},a.prototype.int32=function(e){return e<0?this._push(c,10,p.fromNumber(e)):this.uint32(e)},a.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},a.prototype.uint64=function(e){var t=p.from(e);return this._push(c,t.length(),t)},a.prototype.int64=a.prototype.uint64,a.prototype.sint64=function(e){var t=p.from(e).zzEncode();return this._push(c,t.length(),t)},a.prototype.bool=function(e){return this._push(s,1,e?1:0)},a.prototype.fixed32=function(e){return this._push(d,4,e>>>0)},a.prototype.sfixed32=a.prototype.fixed32,a.prototype.fixed64=function(e){var t=p.from(e);return this._push(d,4,t.lo)._push(d,4,t.hi)},a.prototype.sfixed64=a.prototype.fixed64,a.prototype.float=function(e){return this._push(f.float.writeFloatLE,4,e)},a.prototype.double=function(e){return this._push(f.float.writeDoubleLE,8,e)};var v=f.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var i=0;i>>0;if(!t)return this._push(s,1,0);if(f.isString(e)){var n=a.alloc(t=m.length(e));m.decode(e,n,0),e=n}return this.uint32(t)._push(v,t,e)},a.prototype.string=function(e){var t=g.length(e);return t?this.uint32(t)._push(g.write,t,e):this._push(s,1,0)},a.prototype.fork=function(){return this.states=new o(this),this.head=this.tail=new i(r,0,0),this.len=0,this},a.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new i(r,0,0),this.len=0),this},a.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},a.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},a._configure=function(e){h=e}},function(e,t,n){\"use strict\";function i(e){for(var t=1;t-1?i:O.nextTick;c.WritableState=u;var A=n(69);A.inherits=n(26);var R={deprecate:n(602)},L=n(219),I=n(98).Buffer,D=r.Uint8Array||function(){},N=n(218);A.inherits(c,L),u.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(u.prototype,\"buffer\",{get:R.deprecate(function(){return this.getBuffer()},\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch(e){}}();var B;\"function\"==typeof Symbol&&Symbol.hasInstance&&\"function\"==typeof Function.prototype[Symbol.hasInstance]?(B=Function.prototype[Symbol.hasInstance],Object.defineProperty(c,Symbol.hasInstance,{value:function(e){return!!B.call(this,e)||this===c&&(e&&e._writableState instanceof u)}})):B=function(e){return e instanceof this},c.prototype.pipe=function(){this.emit(\"error\",new Error(\"Cannot pipe, not readable\"))},c.prototype.write=function(e,t,n){var i=this._writableState,r=!1,o=!i.objectMode&&s(e);return o&&!I.isBuffer(e)&&(e=a(e)),\"function\"==typeof t&&(n=t,t=null),o?t=\"buffer\":t||(t=i.defaultEncoding),\"function\"!=typeof n&&(n=l),i.ended?d(this,n):(o||h(this,i,e,n))&&(i.pendingcb++,r=p(this,i,o,e,t,n)),r},c.prototype.cork=function(){this._writableState.corked++},c.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||x(this,e))},c.prototype.setDefaultEncoding=function(e){if(\"string\"==typeof e&&(e=e.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((e+\"\").toLowerCase())>-1))throw new TypeError(\"Unknown encoding: \"+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(c.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),c.prototype._write=function(e,t,n){n(new Error(\"_write() is not implemented\"))},c.prototype._writev=null,c.prototype.end=function(e,t,n){var i=this._writableState;\"function\"==typeof e?(n=e,e=null,t=null):\"function\"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||T(this,i,n)},Object.defineProperty(c.prototype,\"destroyed\",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),c.prototype.destroy=N.destroy,c.prototype._undestroy=N.undestroy,c.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,n(88),n(601).setImmediate,n(28))},function(e,t,n){t=e.exports=n(216),t.Stream=t,t.Readable=t,t.Writable=n(137),t.Duplex=n(47),t.Transform=n(217),t.PassThrough=n(582)},function(e,t,n){function i(e,t){for(var n=0;n=0&&b.splice(t,1)}function s(e){var t=document.createElement(\"style\");return e.attrs.type=\"text/css\",u(t,e.attrs),o(e,t),t}function l(e){var t=document.createElement(\"link\");return e.attrs.type=\"text/css\",e.attrs.rel=\"stylesheet\",u(t,e.attrs),o(e,t),t}function u(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function c(e,t){var n,i,r,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var u=y++;n=v||(v=s(t)),i=d.bind(null,n,u,!1),r=d.bind(null,n,u,!0)}else e.sourceMap&&\"function\"==typeof URL&&\"function\"==typeof URL.createObjectURL&&\"function\"==typeof URL.revokeObjectURL&&\"function\"==typeof Blob&&\"function\"==typeof btoa?(n=l(t),i=f.bind(null,n,t),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),i=h.bind(null,n),r=function(){a(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}function d(e,t,n,i){var r=n?\"\":i.css;if(e.styleSheet)e.styleSheet.cssText=x(t,r);else{var o=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function h(e,t){var n=t.css,i=t.media;if(i&&e.setAttribute(\"media\",i),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function f(e,t,n){var i=n.css,r=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||o)&&(i=_(i)),r&&(i+=\"\\n/*# sourceMappingURL=data:application/json;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+\" */\");var a=new Blob([i],{type:\"text/css\"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var p={},m=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),g=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e.call(this,n)),t[n]}}(function(e){return document.querySelector(e)}),v=null,y=0,b=[],_=n(598);e.exports=function(e,t){if(\"undefined\"!=typeof DEBUG&&DEBUG&&\"object\"!=typeof document)throw new Error(\"The style-loader cannot be used in a non-browser environment\");t=t||{},t.attrs=\"object\"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=m()),t.insertInto||(t.insertInto=\"head\"),t.insertAt||(t.insertAt=\"bottom\");var n=r(e,t);return i(n,t),function(e){for(var o=[],a=0;an.length)for(;this.routingPaths.length>n.length;)this.mapAdapter.removePolyline(this.routingPaths[this.routingPaths.length-1]),this.routingPaths.pop();this.routingPaths.forEach(function(e,i){t.mapAdapter.updatePolyline(e,n[i])})}}},{key:\"requestRoute\",value:function(e,t,n,i){var r=this;if(e&&t&&n&&i){var o=\"http://navi-env.axty8vi3ic.us-west-2.elasticbeanstalk.com/dreamview/navigation?origin=\"+e+\",\"+t+\"&destination=\"+n+\",\"+i+\"&heading=0\";fetch(encodeURI(o),{method:\"GET\",mode:\"cors\"}).then(function(e){return e.arrayBuffer()}).then(function(e){if(!e.byteLength)return void alert(\"No navigation info received.\");r.WS.publishNavigationInfo(e)}).catch(function(e){console.error(\"Failed to retrieve navigation data:\",e)})}}},{key:\"sendRoutingRequest\",value:function(){if(this.routingRequestPoints){var e=this.routingRequestPoints.length>1?this.routingRequestPoints[0]:this.mapAdapter.getMarkerPosition(this.vehicleMarker),t=this.routingRequestPoints[this.routingRequestPoints.length-1];return this.routingRequestPoints=[],this.requestRoute(e.lat,e.lng,t.lat,t.lng),!0}return alert(\"Please select a route\"),!1}},{key:\"addDefaultEndPoint\",value:function(e){var t=this;e.forEach(function(e){var n=t.mapAdapter.applyCoordinateOffset((0,c.UTMToWGS84)(e.x,e.y)),i=(0,o.default)(n,2),r=i[0],a=i[1];t.routingRequestPoints.push({lat:a,lng:r})})}}]),e}(),f=new h;t.default=f},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=t.CameraVideo=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=t.CameraVideo=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"render\",value:function(){return m.default.createElement(\"div\",{className:\"camera-video\"},m.default.createElement(\"img\",{src:\"/image\"}))}}]),t}(m.default.Component),v=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"render\",value:function(){return m.default.createElement(\"div\",{className:\"card camera\"},m.default.createElement(\"div\",{className:\"card-header\"},m.default.createElement(\"span\",null,\"Camera Sensor\")),m.default.createElement(\"div\",{className:\"card-content-column\"},m.default.createElement(g,null)))}}]),t}(m.default.Component);t.default=v},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=n(13),v=i(g),y=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.id,n=e.title,i=e.isChecked,r=e.onClick,o=e.disabled,a=e.extraClasses;return m.default.createElement(\"ul\",{className:(0,v.default)({disabled:o},a)},m.default.createElement(\"li\",{id:t,onClick:function(){o||r()}},m.default.createElement(\"div\",{className:\"switch\"},m.default.createElement(\"input\",{type:\"checkbox\",className:\"toggle-switch\",name:t,checked:i,disabled:o,readOnly:!0}),m.default.createElement(\"label\",{className:\"toggle-switch-label\",htmlFor:t})),m.default.createElement(\"span\",null,n)))}}]),t}(m.default.Component);t.default=y},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.setElementRef=function(e){n.elementRef=e},n.handleKeyPress=n.handleKeyPress.bind(n),n}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"componentDidMount\",value:function(){this.props.autoFocus&&this.elementRef&&this.elementRef.focus()}},{key:\"handleKeyPress\",value:function(e){\"Enter\"===e.key&&(e.preventDefault(),this.props.onClick())}},{key:\"render\",value:function(){var e=this.props,t=e.id,n=e.title,i=(e.options,e.onClick),r=e.checked,o=e.extraClasses;e.autoFocus;return m.default.createElement(\"ul\",{className:o,tabIndex:\"0\",ref:this.setElementRef,onKeyPress:this.handleKeyPress,onClick:i},m.default.createElement(\"li\",null,m.default.createElement(\"input\",{type:\"radio\",name:t,checked:r,readOnly:!0}),m.default.createElement(\"label\",{className:\"radio-selector-label\",htmlFor:n}),m.default.createElement(\"span\",null,n)))}}]),t}(m.default.Component);t.default=g},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=t.ObstacleColorMapping=t.DEFAULT_COLOR=void 0;var r=n(313),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(12),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(c),h=n(20),f=i(h),p=n(14),m=i(p),g=n(282),v=i(g),y=n(43),b=n(38),_=n(221),x=i(_),w=t.DEFAULT_COLOR=16711932,M=t.ObstacleColorMapping={PEDESTRIAN:16771584,BICYCLE:56555,VEHICLE:65340,VIRTUAL:8388608,CIPV:16750950},S=function(){function e(){(0,s.default)(this,e),this.textRender=new v.default,this.arrows=[],this.ids=[],this.solidCubes=[],this.dashedCubes=[],this.extrusionSolidFaces=[],this.extrusionDashedFaces=[],this.laneMarkers=[],this.icons=[]}return(0,u.default)(e,[{key:\"update\",value:function(e,t,n){this.updateObjects(e,t,n),this.updateLaneMarkers(e,t,n)}},{key:\"updateObjects\",value:function(e,t,n){f.default.isEmpty(this.ids)||(this.ids.forEach(function(e){e.children.forEach(function(e){return e.visible=!1}),n.remove(e)}),this.ids=[]),this.textRender.reset();var i=e.object;if(f.default.isEmpty(i))return(0,y.hideArrayObjects)(this.arrows),(0,y.hideArrayObjects)(this.solidCubes),(0,y.hideArrayObjects)(this.dashedCubes),(0,y.hideArrayObjects)(this.extrusionSolidFaces),(0,y.hideArrayObjects)(this.extrusionDashedFaces),void(0,y.hideArrayObjects)(this.icons);for(var r=t.applyOffset({x:e.autoDrivingCar.positionX,y:e.autoDrivingCar.positionY}),a=0,s=0,l=0,u=0,c=0;c.5){var v=this.updateArrow(p,h.speedHeading,g,a++,n),b=1+(0,o.default)(h.speed);v.scale.set(b,b,b),v.visible=!0}if(m.default.options.showObstaclesHeading){var _=this.updateArrow(p,h.heading,16777215,a++,n);_.scale.set(1,1,1),_.visible=!0}this.updateTexts(r,h,p,n);var x=h.confidence;x=Math.max(0,x),x=Math.min(1,x);var S=h.polygonPoint;if(void 0!==S&&S.length>0?(this.updatePolygon(S,h.height,g,t,x,l,n),l+=S.length):h.length&&h.width&&h.height&&this.updateCube(h.length,h.width,h.height,p,h.heading,g,x,s++,n),h.yieldedObstacle){var E={x:p.x,y:p.y,z:p.z+h.height+.5};this.updateIcon(E,e.autoDrivingCar.heading,u,n),u++}}}(0,y.hideArrayObjects)(this.arrows,a),(0,y.hideArrayObjects)(this.solidCubes,s),(0,y.hideArrayObjects)(this.dashedCubes,s),(0,y.hideArrayObjects)(this.extrusionSolidFaces,l),(0,y.hideArrayObjects)(this.extrusionDashedFaces,l),(0,y.hideArrayObjects)(this.icons,u)}},{key:\"updateArrow\",value:function(e,t,n,i,r){var o=this.getArrow(i,r);return(0,y.copyProperty)(o.position,e),o.material.color.setHex(n),o.rotation.set(0,0,-(Math.PI/2-t)),o}},{key:\"updateTexts\",value:function(e,t,n,i){var r={x:n.x,y:n.y,z:t.height||3},o=0;if(m.default.options.showObstaclesInfo){var a=e.distanceTo(n).toFixed(1),s=t.speed.toFixed(1);this.drawTexts(\"(\"+a+\"m, \"+s+\"m/s)\",r,i),o++}if(m.default.options.showObstaclesId){var l={x:r.x,y:r.y+.7*o,z:r.z+1*o};this.drawTexts(t.id,l,i),o++}if(m.default.options.showPredictionPriority){var u=t.obstaclePriority;if(u&&\"NORMAL\"!==u){var c={x:r.x,y:r.y+.7*o,z:r.z+1*o};this.drawTexts(u,c,i)}}}},{key:\"updatePolygon\",value:function(e,t,n,i,r,o,a){for(var s=0;s0){var u=this.getCube(s,l,!0);u.position.set(i.x,i.y,i.z+n*(a-1)/2),u.scale.set(e,t,n*a),u.material.color.setHex(o),u.rotation.set(0,0,r),u.visible=!0}if(a<1){var c=this.getCube(s,l,!1);c.position.set(i.x,i.y,i.z+n*a/2),c.scale.set(e,t,n*(1-a)),c.material.color.setHex(o),c.rotation.set(0,0,r),c.visible=!0}}},{key:\"updateIcon\",value:function(e,t,n,i){var r=this.getIcon(n,i);(0,y.copyProperty)(r.position,e),r.rotation.set(Math.PI/2,t-Math.PI/2,0),r.visible=!0}},{key:\"getArrow\",value:function(e,t){if(e2&&void 0!==arguments[2])||arguments[2],i=n?this.extrusionSolidFaces:this.extrusionDashedFaces;if(e2&&void 0!==arguments[2])||arguments[2],i=n?this.solidCubes:this.dashedCubes;if(e\",GT:\">\",Iacute:\"Í\",iacute:\"í\",Icirc:\"Î\",icirc:\"î\",iexcl:\"¡\",Igrave:\"Ì\",igrave:\"ì\",iquest:\"¿\",Iuml:\"Ï\",iuml:\"ï\",laquo:\"«\",lt:\"<\",LT:\"<\",macr:\"¯\",micro:\"µ\",middot:\"·\",nbsp:\" \",not:\"¬\",Ntilde:\"Ñ\",ntilde:\"ñ\",Oacute:\"Ó\",oacute:\"ó\",Ocirc:\"Ô\",ocirc:\"ô\",Ograve:\"Ò\",ograve:\"ò\",ordf:\"ª\",ordm:\"º\",Oslash:\"Ø\",oslash:\"ø\",Otilde:\"Õ\",otilde:\"õ\",Ouml:\"Ö\",ouml:\"ö\",para:\"¶\",plusmn:\"±\",pound:\"£\",quot:'\"',QUOT:'\"',raquo:\"»\",reg:\"®\",REG:\"®\",sect:\"§\",shy:\"­\",sup1:\"¹\",sup2:\"²\",sup3:\"³\",szlig:\"ß\",THORN:\"Þ\",thorn:\"þ\",times:\"×\",Uacute:\"Ú\",uacute:\"ú\",Ucirc:\"Û\",ucirc:\"û\",Ugrave:\"Ù\",ugrave:\"ù\",uml:\"¨\",Uuml:\"Ü\",uuml:\"ü\",Yacute:\"Ý\",yacute:\"ý\",yen:\"¥\",yuml:\"ÿ\"}},function(e,t,n){\"use strict\";function i(e,t){for(var n=new Array(arguments.length-1),i=0,r=2,o=!0;r1&&(n=Math.floor(e.dropFrames),e.dropFrames=e.dropFrames%1),e.advance(1+n);var i=Date.now();e.dropFrames+=(i-t)/e.frameDuration,e.animations.length>0&&e.requestAnimationFrame()},advance:function(e){for(var t,n,i=this.animations,o=0;o=t.numSteps?(r.callback(t.onAnimationComplete,[t],n),n.animating=!1,i.splice(o,1)):++o}}},function(e,t,n){\"use strict\";function i(e,t){return e.native?{x:e.x,y:e.y}:u.getRelativePosition(e,t)}function r(e,t){var n,i,r,o,a,s=e.data.datasets;for(i=0,o=s.length;i0&&(u=e.getDatasetMeta(u[0]._datasetIndex).data),u},\"x-axis\":function(e,t){return l(e,t,{intersect:!1})},point:function(e,t){return o(e,i(t,e))},nearest:function(e,t,n){var r=i(t,e);n.axis=n.axis||\"xy\";var o=s(n.axis),l=a(e,r,n.intersect,o);return l.length>1&&l.sort(function(e,t){var n=e.getArea(),i=t.getArea(),r=n-i;return 0===r&&(r=e._datasetIndex-t._datasetIndex),r}),l.slice(0,1)},x:function(e,t,n){var o=i(t,e),a=[],s=!1;return r(e,function(e){e.inXRange(o.x)&&a.push(e),e.inRange(o.x,o.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a},y:function(e,t,n){var o=i(t,e),a=[],s=!1;return r(e,function(e){e.inYRange(o.y)&&a.push(e),e.inRange(o.x,o.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a}}}},function(e,t,n){\"use strict\";var i=n(9),r=n(6);i._set(\"global\",{plugins:{}}),e.exports={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var i,r,o,a,s,l=this.descriptors(e),u=l.length;for(i=0;i-1?e.split(\"\\n\"):e}function a(e){var t=e._xScale,n=e._yScale||e._scale,i=e._index,r=e._datasetIndex;return{xLabel:t?t.getLabelForIndex(i,r):\"\",yLabel:n?n.getLabelForIndex(i,r):\"\",index:i,datasetIndex:r,x:e._model.x,y:e._model.y}}function s(e){var t=h.global,n=p.valueOrDefault;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:n(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:n(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:n(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:n(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:n(e.titleFontStyle,t.defaultFontStyle),titleFontSize:n(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:n(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:n(e.footerFontStyle,t.defaultFontStyle),footerFontSize:n(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function l(e,t){var n=e._chart.ctx,i=2*t.yPadding,r=0,o=t.body,a=o.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);a+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,u=t.titleFontSize,c=t.bodyFontSize,d=t.footerFontSize;i+=s*u,i+=s?(s-1)*t.titleSpacing:0,i+=s?t.titleMarginBottom:0,i+=a*c,i+=a?(a-1)*t.bodySpacing:0,i+=l?t.footerMarginTop:0,i+=l*d,i+=l?(l-1)*t.footerSpacing:0;var h=0,f=function(e){r=Math.max(r,n.measureText(e).width+h)};return n.font=p.fontString(u,t._titleFontStyle,t._titleFontFamily),p.each(t.title,f),n.font=p.fontString(c,t._bodyFontStyle,t._bodyFontFamily),p.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?c+2:0,p.each(o,function(e){p.each(e.before,f),p.each(e.lines,f),p.each(e.after,f)}),h=0,n.font=p.fontString(d,t._footerFontStyle,t._footerFontFamily),p.each(t.footer,f),r+=2*t.xPadding,{width:r,height:i}}function u(e,t){var n=e._model,i=e._chart,r=e._chart.chartArea,o=\"center\",a=\"center\";n.yi.height-t.height&&(a=\"bottom\");var s,l,u,c,d,h=(r.left+r.right)/2,f=(r.top+r.bottom)/2;\"center\"===a?(s=function(e){return e<=h},l=function(e){return e>h}):(s=function(e){return e<=t.width/2},l=function(e){return e>=i.width-t.width/2}),u=function(e){return e+t.width+n.caretSize+n.caretPadding>i.width},c=function(e){return e-t.width-n.caretSize-n.caretPadding<0},d=function(e){return e<=f?\"top\":\"bottom\"},s(n.x)?(o=\"left\",u(n.x)&&(o=\"center\",a=d(n.y))):l(n.x)&&(o=\"right\",c(n.x)&&(o=\"center\",a=d(n.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:o,yAlign:p.yAlign?p.yAlign:a}}function c(e,t,n,i){var r=e.x,o=e.y,a=e.caretSize,s=e.caretPadding,l=e.cornerRadius,u=n.xAlign,c=n.yAlign,d=a+s,h=l+s;return\"right\"===u?r-=t.width:\"center\"===u&&(r-=t.width/2,r+t.width>i.width&&(r=i.width-t.width),r<0&&(r=0)),\"top\"===c?o+=d:o-=\"bottom\"===c?t.height+d:t.height/2,\"center\"===c?\"left\"===u?r+=d:\"right\"===u&&(r-=d):\"left\"===u?r-=h:\"right\"===u&&(r+=h),{x:r,y:o}}function d(e){return r([],o(e))}var h=n(9),f=n(29),p=n(6);h._set(\"global\",{tooltips:{enabled:!0,custom:null,mode:\"nearest\",position:\"average\",intersect:!0,backgroundColor:\"rgba(0,0,0,0.8)\",titleFontStyle:\"bold\",titleSpacing:2,titleMarginBottom:6,titleFontColor:\"#fff\",titleAlign:\"left\",bodySpacing:2,bodyFontColor:\"#fff\",bodyAlign:\"left\",footerFontStyle:\"bold\",footerSpacing:2,footerMarginTop:6,footerFontColor:\"#fff\",footerAlign:\"left\",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:\"#fff\",displayColors:!0,borderColor:\"rgba(0,0,0,0)\",borderWidth:0,callbacks:{beforeTitle:p.noop,title:function(e,t){var n=\"\",i=t.labels,r=i?i.length:0;if(e.length>0){var o=e[0];o.xLabel?n=o.xLabel:r>0&&o.index0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},i={x:t.x,y:t.y},r=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(this.drawBackground(i,t,e,n,r),i.x+=t.xPadding,i.y+=t.yPadding,this.drawTitle(i,t,e,r),this.drawBody(i,t,e,r),this.drawFooter(i,t,e,r))}},handleEvent:function(e){var t=this,n=t._options,i=!1;return t._lastActive=t._lastActive||[],\"mouseout\"===e.type?t._active=[]:t._active=t._chart.getElementsAtEventForMode(e,n.mode,n),i=!p.arrayEquals(t._active,t._lastActive),i&&(t._lastActive=t._active,(n.enabled||n.custom)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0),t.pivot())),i}})).positioners=m},function(e,t,n){\"use strict\";var i=n(6),r=n(350),o=n(351),a=o._enabled?o:r;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},a)},function(e,t,n){var i=n(364),r=n(362),o=function(e){if(e instanceof o)return e;if(!(this instanceof o))return new o(e);this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var t;\"string\"==typeof e?(t=r.getRgba(e),t?this.setValues(\"rgb\",t):(t=r.getHsla(e))?this.setValues(\"hsl\",t):(t=r.getHwb(e))&&this.setValues(\"hwb\",t)):\"object\"==typeof e&&(t=e,void 0!==t.r||void 0!==t.red?this.setValues(\"rgb\",t):void 0!==t.l||void 0!==t.lightness?this.setValues(\"hsl\",t):void 0!==t.v||void 0!==t.value?this.setValues(\"hsv\",t):void 0!==t.w||void 0!==t.whiteness?this.setValues(\"hwb\",t):void 0===t.c&&void 0===t.cyan||this.setValues(\"cmyk\",t))};o.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace(\"rgb\",arguments)},hsl:function(){return this.setSpace(\"hsl\",arguments)},hsv:function(){return this.setSpace(\"hsv\",arguments)},hwb:function(){return this.setSpace(\"hwb\",arguments)},cmyk:function(){return this.setSpace(\"cmyk\",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues(\"alpha\",e),this)},red:function(e){return this.setChannel(\"rgb\",0,e)},green:function(e){return this.setChannel(\"rgb\",1,e)},blue:function(e){return this.setChannel(\"rgb\",2,e)},hue:function(e){return e&&(e%=360,e=e<0?360+e:e),this.setChannel(\"hsl\",0,e)},saturation:function(e){return this.setChannel(\"hsl\",1,e)},lightness:function(e){return this.setChannel(\"hsl\",2,e)},saturationv:function(e){return this.setChannel(\"hsv\",1,e)},whiteness:function(e){return this.setChannel(\"hwb\",1,e)},blackness:function(e){return this.setChannel(\"hwb\",2,e)},value:function(e){return this.setChannel(\"hsv\",2,e)},cyan:function(e){return this.setChannel(\"cmyk\",0,e)},magenta:function(e){return this.setChannel(\"cmyk\",1,e)},yellow:function(e){return this.setChannel(\"cmyk\",2,e)},black:function(e){return this.setChannel(\"cmyk\",3,e)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;nn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?\"AAA\":t>=4.5?\"AA\":\"\"},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues(\"rgb\",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues(\"hsl\",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues(\"hsl\",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues(\"hsl\",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues(\"hsl\",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues(\"hwb\",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues(\"hwb\",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues(\"rgb\",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues(\"alpha\",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues(\"alpha\",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues(\"hsl\",t),this},mix:function(e,t){var n=this,i=e,r=void 0===t?.5:t,o=2*r-1,a=n.alpha()-i.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return this.rgb(s*n.red()+l*i.red(),s*n.green()+l*i.green(),s*n.blue()+l*i.blue()).alpha(n.alpha()*r+i.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new o,i=this.values,r=n.values;for(var a in i)i.hasOwnProperty(a)&&(e=i[a],t={}.toString.call(e),\"[object Array]\"===t?r[a]=e.slice(0):\"[object Number]\"===t?r[a]=e:console.error(\"unexpected color value:\",e));return n}},o.prototype.spaces={rgb:[\"red\",\"green\",\"blue\"],hsl:[\"hue\",\"saturation\",\"lightness\"],hsv:[\"hue\",\"saturation\",\"value\"],hwb:[\"hue\",\"whiteness\",\"blackness\"],cmyk:[\"cyan\",\"magenta\",\"yellow\",\"black\"]},o.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},o.prototype.getValues=function(e){for(var t=this.values,n={},i=0;il;)i(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var i=n(30),r=n(24),o=n(110);e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){e.exports=n(41)},function(e,t,n){\"use strict\";var i=n(17),r=n(10),o=n(25),a=n(31),s=n(18)(\"species\");e.exports=function(e){var t=\"function\"==typeof r[e]?r[e]:i[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var i=n(30),r=n(61),o=n(18)(\"species\");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||void 0==(n=i(a)[o])?t:r(n)}},function(e,t,n){var i,r,o,a=n(33),s=n(396),l=n(162),u=n(105),c=n(17),d=c.process,h=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,m=c.Dispatch,g=0,v={},y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){y.call(e.data)};h&&f||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++g]=function(){s(\"function\"==typeof e?e:Function(e),t)},i(g),g},f=function(e){delete v[e]},\"process\"==n(62)(d)?i=function(e){d.nextTick(a(y,e,1))}:m&&m.now?i=function(e){m.now(a(y,e,1))}:p?(r=new p,o=r.port2,r.port1.onmessage=b,i=a(o.postMessage,o,1)):c.addEventListener&&\"function\"==typeof postMessage&&!c.importScripts?(i=function(e){c.postMessage(e+\"\",\"*\")},c.addEventListener(\"message\",b,!1)):i=\"onreadystatechange\"in u(\"script\")?function(e){l.appendChild(u(\"script\")).onreadystatechange=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:h,clear:f}},function(e,t,n){var i=n(24);e.exports=function(e,t){if(!i(e)||e._t!==t)throw TypeError(\"Incompatible receiver, \"+t+\" required!\");return e}},function(e,t,n){\"use strict\";function i(e){return(0,o.default)(e)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(455),o=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=t.default},function(e,t){var n=e.exports={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return r[this.type]||r.element}},i={tagName:\"name\",childNodes:\"children\",parentNode:\"parent\",previousSibling:\"prev\",nextSibling:\"next\",nodeValue:\"data\"},r={element:1,text:3,cdata:4,comment:8};Object.keys(i).forEach(function(e){var t=i[e];Object.defineProperty(n,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},function(e,t,n){function i(e){if(e>=55296&&e<=57343||e>1114111)return\"�\";e in r&&(e=r[e]);var t=\"\";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}var r=n(303);e.exports=i},function(e,t,n){function i(e,t){this._options=t||{},this._cbs=e||{},this._tagname=\"\",this._attribname=\"\",this._attribvalue=\"\",this._attribs=null,this._stack=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames=\"lowerCaseTags\"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames=\"lowerCaseAttributeNames\"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(r=this._options.Tokenizer),this._tokenizer=new r(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}var r=n(183),o={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},a={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:o,input:o,output:o,button:o,datalist:o,textarea:o,option:{option:!0},optgroup:{optgroup:!0}},s={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,path:!0,circle:!0,ellipse:!0,line:!0,rect:!0,use:!0,stop:!0,polyline:!0,polygon:!0},l=/\\s|\\//;n(26)(i,n(86).EventEmitter),i.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},i.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},i.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&e in a)for(var t;(t=this._stack[this._stack.length-1])in a[e];this.onclosetag(t));!this._options.xmlMode&&e in s||this._stack.push(e),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},i.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in s&&this._cbs.onclosetag(this._tagname),this._tagname=\"\"},i.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),!this._stack.length||e in s&&!this._options.xmlMode)this._options.xmlMode||\"br\"!==e&&\"p\"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else\"p\"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},i.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing?this._closeCurrentTag():this.onopentagend()},i.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},i.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},i.prototype.onattribdata=function(e){this._attribvalue+=e},i.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname=\"\",this._attribvalue=\"\"},i.prototype._getInstructionName=function(e){var t=e.search(l),n=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},i.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction(\"!\"+t,\"!\"+e)}},i.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction(\"?\"+t,\"?\"+e)}},i.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},i.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment(\"[CDATA[\"+e+\"]]\")},i.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},i.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},i.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname=\"\",this._attribname=\"\",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},i.prototype.parseComplete=function(e){this.reset(),this.end(e)},i.prototype.write=function(e){this._tokenizer.write(e)},i.prototype.end=function(e){this._tokenizer.end(e)},i.prototype.pause=function(){this._tokenizer.pause()},i.prototype.resume=function(){this._tokenizer.resume()},i.prototype.parseChunk=i.prototype.write,i.prototype.done=i.prototype.end,e.exports=i},function(e,t,n){function i(e){return\" \"===e||\"\\n\"===e||\"\\t\"===e||\"\\f\"===e||\"\\r\"===e}function r(e,t,n){var i=e.toLowerCase();return e===i?function(e){e===i?this._state=t:(this._state=n,this._index--)}:function(r){r===i||r===e?this._state=t:(this._state=n,this._index--)}}function o(e,t){var n=e.toLowerCase();return function(i){i===n||i===e?this._state=t:(this._state=p,this._index--)}}function a(e,t){this._state=h,this._buffer=\"\",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=h,this._special=pe,this._cbs=t,this._running=!0,this._ended=!1,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}e.exports=a;var s=n(181),l=n(101),u=n(148),c=n(102),d=0,h=d++,f=d++,p=d++,m=d++,g=d++,v=d++,y=d++,b=d++,_=d++,x=d++,w=d++,M=d++,S=d++,E=d++,T=d++,k=d++,O=d++,C=d++,P=d++,A=d++,R=d++,L=d++,I=d++,D=d++,N=d++,B=d++,z=d++,F=d++,j=d++,U=d++,W=d++,G=d++,V=d++,H=d++,q=d++,Y=d++,X=d++,K=d++,Z=d++,J=d++,Q=d++,$=d++,ee=d++,te=d++,ne=d++,ie=d++,re=d++,oe=d++,ae=d++,se=d++,le=d++,ue=d++,ce=d++,de=d++,he=d++,fe=0,pe=fe++,me=fe++,ge=fe++;a.prototype._stateText=function(e){\"<\"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=f,this._sectionStart=this._index):this._decodeEntities&&this._special===pe&&\"&\"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=h,this._state=le,this._sectionStart=this._index)},a.prototype._stateBeforeTagName=function(e){\"/\"===e?this._state=g:\"<\"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):\">\"===e||this._special!==pe||i(e)?this._state=h:\"!\"===e?(this._state=T,this._sectionStart=this._index+1):\"?\"===e?(this._state=O,this._sectionStart=this._index+1):(this._state=this._xmlMode||\"s\"!==e&&\"S\"!==e?p:W,this._sectionStart=this._index)},a.prototype._stateInTagName=function(e){(\"/\"===e||\">\"===e||i(e))&&(this._emitToken(\"onopentagname\"),this._state=b,this._index--)},a.prototype._stateBeforeCloseingTagName=function(e){i(e)||(\">\"===e?this._state=h:this._special!==pe?\"s\"===e||\"S\"===e?this._state=G:(this._state=h,this._index--):(this._state=v,this._sectionStart=this._index))},a.prototype._stateInCloseingTagName=function(e){(\">\"===e||i(e))&&(this._emitToken(\"onclosetag\"),this._state=y,this._index--)},a.prototype._stateAfterCloseingTagName=function(e){\">\"===e&&(this._state=h,this._sectionStart=this._index+1)},a.prototype._stateBeforeAttributeName=function(e){\">\"===e?(this._cbs.onopentagend(),this._state=h,this._sectionStart=this._index+1):\"/\"===e?this._state=m:i(e)||(this._state=_,this._sectionStart=this._index)},a.prototype._stateInSelfClosingTag=function(e){\">\"===e?(this._cbs.onselfclosingtag(),this._state=h,this._sectionStart=this._index+1):i(e)||(this._state=b,this._index--)},a.prototype._stateInAttributeName=function(e){(\"=\"===e||\"/\"===e||\">\"===e||i(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=x,this._index--)},a.prototype._stateAfterAttributeName=function(e){\"=\"===e?this._state=w:\"/\"===e||\">\"===e?(this._cbs.onattribend(),this._state=b,this._index--):i(e)||(this._cbs.onattribend(),this._state=_,this._sectionStart=this._index)},a.prototype._stateBeforeAttributeValue=function(e){'\"'===e?(this._state=M,this._sectionStart=this._index+1):\"'\"===e?(this._state=S,this._sectionStart=this._index+1):i(e)||(this._state=E,this._sectionStart=this._index,this._index--)},a.prototype._stateInAttributeValueDoubleQuotes=function(e){'\"'===e?(this._emitToken(\"onattribdata\"),this._cbs.onattribend(),this._state=b):this._decodeEntities&&\"&\"===e&&(this._emitToken(\"onattribdata\"),this._baseState=this._state,this._state=le,this._sectionStart=this._index)},a.prototype._stateInAttributeValueSingleQuotes=function(e){\"'\"===e?(this._emitToken(\"onattribdata\"),this._cbs.onattribend(),this._state=b):this._decodeEntities&&\"&\"===e&&(this._emitToken(\"onattribdata\"),this._baseState=this._state,this._state=le,this._sectionStart=this._index)},a.prototype._stateInAttributeValueNoQuotes=function(e){i(e)||\">\"===e?(this._emitToken(\"onattribdata\"),this._cbs.onattribend(),this._state=b,this._index--):this._decodeEntities&&\"&\"===e&&(this._emitToken(\"onattribdata\"),this._baseState=this._state,this._state=le,this._sectionStart=this._index)},a.prototype._stateBeforeDeclaration=function(e){this._state=\"[\"===e?L:\"-\"===e?C:k},a.prototype._stateInDeclaration=function(e){\">\"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=h,this._sectionStart=this._index+1)},a.prototype._stateInProcessingInstruction=function(e){\">\"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=h,this._sectionStart=this._index+1)},a.prototype._stateBeforeComment=function(e){\"-\"===e?(this._state=P,this._sectionStart=this._index+1):this._state=k},a.prototype._stateInComment=function(e){\"-\"===e&&(this._state=A)},a.prototype._stateAfterComment1=function(e){this._state=\"-\"===e?R:P},a.prototype._stateAfterComment2=function(e){\">\"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=h,this._sectionStart=this._index+1):\"-\"!==e&&(this._state=P)},a.prototype._stateBeforeCdata1=r(\"C\",I,k),a.prototype._stateBeforeCdata2=r(\"D\",D,k),a.prototype._stateBeforeCdata3=r(\"A\",N,k),a.prototype._stateBeforeCdata4=r(\"T\",B,k),a.prototype._stateBeforeCdata5=r(\"A\",z,k),a.prototype._stateBeforeCdata6=function(e){\"[\"===e?(this._state=F,this._sectionStart=this._index+1):(this._state=k,this._index--)},a.prototype._stateInCdata=function(e){\"]\"===e&&(this._state=j)},a.prototype._stateAfterCdata1=function(e,t){return function(n){n===e&&(this._state=t)}}(\"]\",U),a.prototype._stateAfterCdata2=function(e){\">\"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=h,this._sectionStart=this._index+1):\"]\"!==e&&(this._state=F)},a.prototype._stateBeforeSpecial=function(e){\"c\"===e||\"C\"===e?this._state=V:\"t\"===e||\"T\"===e?this._state=ee:(this._state=p,this._index--)},a.prototype._stateBeforeSpecialEnd=function(e){this._special!==me||\"c\"!==e&&\"C\"!==e?this._special!==ge||\"t\"!==e&&\"T\"!==e?this._state=h:this._state=re:this._state=K},a.prototype._stateBeforeScript1=o(\"R\",H),a.prototype._stateBeforeScript2=o(\"I\",q),a.prototype._stateBeforeScript3=o(\"P\",Y),a.prototype._stateBeforeScript4=o(\"T\",X),a.prototype._stateBeforeScript5=function(e){(\"/\"===e||\">\"===e||i(e))&&(this._special=me),this._state=p,this._index--},a.prototype._stateAfterScript1=r(\"R\",Z,h),a.prototype._stateAfterScript2=r(\"I\",J,h),a.prototype._stateAfterScript3=r(\"P\",Q,h),a.prototype._stateAfterScript4=r(\"T\",$,h),a.prototype._stateAfterScript5=function(e){\">\"===e||i(e)?(this._special=pe,this._state=v,this._sectionStart=this._index-6,this._index--):this._state=h},a.prototype._stateBeforeStyle1=o(\"Y\",te),a.prototype._stateBeforeStyle2=o(\"L\",ne),a.prototype._stateBeforeStyle3=o(\"E\",ie),a.prototype._stateBeforeStyle4=function(e){(\"/\"===e||\">\"===e||i(e))&&(this._special=ge),this._state=p,this._index--},a.prototype._stateAfterStyle1=r(\"Y\",oe,h),a.prototype._stateAfterStyle2=r(\"L\",ae,h),a.prototype._stateAfterStyle3=r(\"E\",se,h),a.prototype._stateAfterStyle4=function(e){\">\"===e||i(e)?(this._special=pe,this._state=v,this._sectionStart=this._index-5,this._index--):this._state=h},a.prototype._stateBeforeEntity=r(\"#\",ue,ce),a.prototype._stateBeforeNumericEntity=r(\"X\",he,de),a.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+16&&(t=6);t>=2;){var n=this._buffer.substr(e,t);if(u.hasOwnProperty(n))return this._emitPartial(u[n]),void(this._sectionStart+=t+1);t--}},a.prototype._stateInNamedEntity=function(e){\";\"===e?(this._parseNamedEntityStrict(),this._sectionStart+1\"z\")&&(e<\"A\"||e>\"Z\")&&(e<\"0\"||e>\"9\")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==h?\"=\"!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},a.prototype._decodeNumericEntity=function(e,t){var n=this._sectionStart+e;if(n!==this._index){var i=this._buffer.substring(n,this._index),r=parseInt(i,t);this._emitPartial(s(r)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},a.prototype._stateInNumericEntity=function(e){\";\"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<\"0\"||e>\"9\")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},a.prototype._stateInHexEntity=function(e){\";\"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<\"a\"||e>\"f\")&&(e<\"A\"||e>\"F\")&&(e<\"0\"||e>\"9\")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},a.prototype._cleanup=function(){this._sectionStart<0?(this._buffer=\"\",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===h?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer=\"\",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer=\"\",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},a.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(\".write() after done!\")),this._buffer+=e,this._parse()},a.prototype._parse=function(){for(;this._index=56&&h<64&&f>=3&&f<12&&(d=32),h>=72&&h<84&&(f>=0&&f<9?d=31:f>=9&&f<21?d=33:f>=21&&f<33?d=35:f>=33&&f<42&&(d=37)),t=6*(d-1)-180+3,u=a(t),n=.006739496752268451,i=p/Math.sqrt(1-.00669438*Math.sin(m)*Math.sin(m)),r=Math.tan(m)*Math.tan(m),o=n*Math.cos(m)*Math.cos(m),s=Math.cos(m)*(g-u),l=p*(.9983242984503243*m-.002514607064228144*Math.sin(2*m)+2639046602129982e-21*Math.sin(4*m)-3.418046101696858e-9*Math.sin(6*m));var v=.9996*i*(s+(1-r+o)*s*s*s/6+(5-18*r+r*r+72*o-58*n)*s*s*s*s*s/120)+5e5,y=.9996*(l+i*Math.tan(m)*(s*s/2+(5-r+9*o+4*o*o)*s*s*s*s/24+(61-58*r+r*r+600*o-330*n)*s*s*s*s*s*s/720));return h<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(v),zoneNumber:d,zoneLetter:c(h)}}function u(e){var t=e.northing,n=e.easting,i=e.zoneLetter,r=e.zoneNumber;if(r<0||r>60)return null;var o,a,l,c,d,h,f,p,m,g,v=6378137,y=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),b=n-5e5,_=t;i<\"N\"&&(_-=1e7),p=6*(r-1)-180+3,o=.006739496752268451,f=_/.9996,m=f/6367449.145945056,g=m+(3*y/2-27*y*y*y/32)*Math.sin(2*m)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*m)+151*y*y*y/96*Math.sin(6*m),a=v/Math.sqrt(1-.00669438*Math.sin(g)*Math.sin(g)),l=Math.tan(g)*Math.tan(g),c=o*Math.cos(g)*Math.cos(g),d=.99330562*v/Math.pow(1-.00669438*Math.sin(g)*Math.sin(g),1.5),h=b/(.9996*a);var x=g-a*Math.tan(g)/d*(h*h/2-(5+3*l+10*c-4*c*c-9*o)*h*h*h*h/24+(61+90*l+298*c+45*l*l-252*o-3*c*c)*h*h*h*h*h*h/720);x=s(x);var w=(h-(1+2*l+c)*h*h*h/6+(5-2*c+28*l-3*c*c+8*o+24*l*l)*h*h*h*h*h/120)/Math.cos(g);w=p+s(w);var M;if(e.accuracy){var S=u({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});M={top:S.lat,right:S.lon,bottom:x,left:w}}else M={lat:x,lon:w};return M}function c(e){var t=\"Z\";return 84>=e&&e>=72?t=\"X\":72>e&&e>=64?t=\"W\":64>e&&e>=56?t=\"V\":56>e&&e>=48?t=\"U\":48>e&&e>=40?t=\"T\":40>e&&e>=32?t=\"S\":32>e&&e>=24?t=\"R\":24>e&&e>=16?t=\"Q\":16>e&&e>=8?t=\"P\":8>e&&e>=0?t=\"N\":0>e&&e>=-8?t=\"M\":-8>e&&e>=-16?t=\"L\":-16>e&&e>=-24?t=\"K\":-24>e&&e>=-32?t=\"J\":-32>e&&e>=-40?t=\"H\":-40>e&&e>=-48?t=\"G\":-48>e&&e>=-56?t=\"F\":-56>e&&e>=-64?t=\"E\":-64>e&&e>=-72?t=\"D\":-72>e&&e>=-80&&(t=\"C\"),t}function d(e,t){var n=\"00000\"+e.easting,i=\"00000\"+e.northing;return e.zoneNumber+e.zoneLetter+h(e.easting,e.northing,e.zoneNumber)+n.substr(n.length-5,t)+i.substr(i.length-5,t)}function h(e,t,n){var i=f(n);return p(Math.floor(e/1e5),Math.floor(t/1e5)%20,i)}function f(e){var t=e%b;return 0===t&&(t=b),t}function p(e,t,n){var i=n-1,r=_.charCodeAt(i),o=x.charCodeAt(i),a=r+e-1,s=o+t,l=!1;return a>T&&(a=a-T+w-1,l=!0),(a===M||rM||(a>M||rS||(a>S||rT&&(a=a-T+w-1),s>E?(s=s-E+w-1,l=!0):l=!1,(s===M||oM||(s>M||oS||(s>S||oE&&(s=s-E+w-1),String.fromCharCode(a)+String.fromCharCode(s)}function m(e){if(e&&0===e.length)throw\"MGRSPoint coverting from nothing\";for(var t,n=e.length,i=null,r=\"\",o=0;!/[A-Z]/.test(t=e.charAt(o));){if(o>=2)throw\"MGRSPoint bad conversion from: \"+e;r+=t,o++}var a=parseInt(r,10);if(0===o||o+3>n)throw\"MGRSPoint bad conversion from: \"+e;var s=e.charAt(o++);if(s<=\"A\"||\"B\"===s||\"Y\"===s||s>=\"Z\"||\"I\"===s||\"O\"===s)throw\"MGRSPoint zone letter \"+s+\" not handled: \"+e;i=e.substring(o,o+=2);for(var l=f(a),u=g(i.charAt(0),l),c=v(i.charAt(1),l);c0&&(h=1e5/Math.pow(10,x),p=e.substring(o,o+x),w=parseFloat(p)*h,m=e.substring(o+x),M=parseFloat(m)*h),b=w+u,_=M+c,{easting:b,northing:_,zoneLetter:s,zoneNumber:a,accuracy:h}}function g(e,t){for(var n=_.charCodeAt(t-1),i=1e5,r=!1;n!==e.charCodeAt(0);){if(n++,n===M&&n++,n===S&&n++,n>T){if(r)throw\"Bad character: \"+e;n=w,r=!0}i+=1e5}return i}function v(e,t){if(e>\"V\")throw\"MGRSPoint given invalid Northing \"+e;for(var n=x.charCodeAt(t-1),i=0,r=!1;n!==e.charCodeAt(0);){if(n++,n===M&&n++,n===S&&n++,n>E){if(r)throw\"Bad character: \"+e;n=w,r=!0}i+=1e5}return i}function y(e){var t;switch(e){case\"C\":t=11e5;break;case\"D\":t=2e6;break;case\"E\":t=28e5;break;case\"F\":t=37e5;break;case\"G\":t=46e5;break;case\"H\":t=55e5;break;case\"J\":t=64e5;break;case\"K\":t=73e5;break;case\"L\":t=82e5;break;case\"M\":t=91e5;break;case\"N\":t=0;break;case\"P\":t=8e5;break;case\"Q\":t=17e5;break;case\"R\":t=26e5;break;case\"S\":t=35e5;break;case\"T\":t=44e5;break;case\"U\":t=53e5;break;case\"V\":t=62e5;break;case\"W\":t=7e6;break;case\"X\":t=79e5;break;default:t=-1}if(t>=0)return t;throw\"Invalid zone letter: \"+e}t.c=i,t.b=o;var b=6,_=\"AJSAJS\",x=\"AFAFAF\",w=65,M=73,S=79,E=86,T=90;t.a={forward:i,inverse:r,toPoint:o}},function(e,t,n){\"use strict\";t.a=function(e,t){e=Math.abs(e),t=Math.abs(t);var n=Math.max(e,t),i=Math.min(e,t)/(n||1);return n*Math.sqrt(1+Math.pow(i,2))}},function(e,t,n){\"use strict\";var i=.01068115234375;t.a=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*i))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*i)));var n=e*e;return t[2]=n*(.46875-e*(.013020833333333334+.007120768229166667*e)),n*=e,t[3]=n*(.3645833333333333-.005696614583333333*e),t[4]=n*e*.3076171875,t}},function(e,t,n){\"use strict\";var i=n(130),r=n(7);t.a=function(e,t,o){for(var a=1/(1-t),s=e,l=20;l;--l){var u=Math.sin(s),c=1-t*u*u;if(c=(n.i(i.a)(s,u,Math.cos(s),o)-e)*(c*Math.sqrt(c))*a,s-=c,Math.abs(c)2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t}},function(e,t,n){\"use strict\";function i(e){var t=this;if(2===arguments.length){var r=arguments[1];\"string\"==typeof r?\"+\"===r.charAt(0)?i[e]=n.i(o.a)(arguments[1]):i[e]=n.i(a.a)(arguments[1]):i[e]=r}else if(1===arguments.length){if(Array.isArray(e))return e.map(function(e){Array.isArray(e)?i.apply(t,e):i(e)});if(\"string\"==typeof e){if(e in i)return i[e]}else\"EPSG\"in e?i[\"EPSG:\"+e.EPSG]=e:\"ESRI\"in e?i[\"ESRI:\"+e.ESRI]=e:\"IAU2000\"in e?i[\"IAU2000:\"+e.IAU2000]=e:console.log(e);return}}var r=n(512),o=n(196),a=n(220);n.i(r.a)(i),t.a=i},function(e,t,n){\"use strict\";var i=n(7),r=n(504),o=n(505),a=n(96);t.a=function(e){var t,s,l,u={},c=e.split(\"+\").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var n=t.split(\"=\");return n.push(!0),e[n[0].toLowerCase()]=n[1],e},{}),d={proj:\"projName\",datum:\"datumCode\",rf:function(e){u.rf=parseFloat(e)},lat_0:function(e){u.lat0=e*i.d},lat_1:function(e){u.lat1=e*i.d},lat_2:function(e){u.lat2=e*i.d},lat_ts:function(e){u.lat_ts=e*i.d},lon_0:function(e){u.long0=e*i.d},lon_1:function(e){u.long1=e*i.d},lon_2:function(e){u.long2=e*i.d},alpha:function(e){u.alpha=parseFloat(e)*i.d},lonc:function(e){u.longc=e*i.d},x_0:function(e){u.x0=parseFloat(e)},y_0:function(e){u.y0=parseFloat(e)},k_0:function(e){u.k0=parseFloat(e)},k:function(e){u.k0=parseFloat(e)},a:function(e){u.a=parseFloat(e)},b:function(e){u.b=parseFloat(e)},r_a:function(){u.R_A=!0},zone:function(e){u.zone=parseInt(e,10)},south:function(){u.utmSouth=!0},towgs84:function(e){u.datum_params=e.split(\",\").map(function(e){return parseFloat(e)})},to_meter:function(e){u.to_meter=parseFloat(e)},units:function(e){u.units=e;var t=n.i(a.a)(o.a,e);t&&(u.to_meter=t.to_meter)},from_greenwich:function(e){u.from_greenwich=e*i.d},pm:function(e){var t=n.i(a.a)(r.a,e);u.from_greenwich=(t||parseFloat(e))*i.d},nadgrids:function(e){\"@null\"===e?u.datumCode=\"none\":u.nadgrids=e},axis:function(e){var t=\"ewnsud\";3===e.length&&-1!==t.indexOf(e.substr(0,1))&&-1!==t.indexOf(e.substr(1,1))&&-1!==t.indexOf(e.substr(2,1))&&(u.axis=e)}};for(t in c)s=c[t],t in d?(l=d[t],\"function\"==typeof l?l(s):u[l]=s):u[t]=s;return\"string\"==typeof u.datumCode&&\"WGS84\"!==u.datumCode&&(u.datumCode=u.datumCode.toLowerCase()),u}},function(e,t,n){\"use strict\";function i(){if(void 0===this.es||this.es<=0)throw new Error(\"incorrect elliptical usage\");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),i=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),i*=t,this.cgb[1]=i*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=i*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),i*=t,this.cgb[2]=i*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=i*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),i*=t,this.cgb[3]=i*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=i*(1237/630+t*(t*(-24832/14175)-2.4)),i*=t,this.cgb[4]=i*(4174/315+t*(-144838/6237)),this.cbg[4]=i*(-734/315+t*(109598/31185)),i*=t,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+i*(.25+i*(1/64+i/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=i*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=i*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),i*=t,this.utg[2]=i*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=i*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),i*=t,this.utg[3]=i*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=i*(49561/161280+t*(-179/168+t*(6601661/7257600))),i*=t,this.utg[4]=i*(-4583/161280+t*(108847/3991680)),this.gtu[4]=i*(34729/80640+t*(-3418889/1995840)),i*=t,this.utg[5]=-.03233083094085698*i,this.gtu[5]=.6650675310896665*i;var r=n.i(u.a)(this.cbg,this.lat0);this.Zb=-this.Qn*(r+n.i(c.a)(this.gtu,2*r))}function r(e){var t=n.i(h.a)(e.x-this.long0),i=e.y;i=n.i(u.a)(this.cbg,i);var r=Math.sin(i),o=Math.cos(i),a=Math.sin(t),c=Math.cos(t);i=Math.atan2(r,c*o),t=Math.atan2(a*o,n.i(s.a)(r,o*c)),t=n.i(l.a)(Math.tan(t));var f=n.i(d.a)(this.gtu,2*i,2*t);i+=f[0],t+=f[1];var p,m;return Math.abs(t)<=2.623395162778?(p=this.a*(this.Qn*t)+this.x0,m=this.a*(this.Qn*i+this.Zb)+this.y0):(p=1/0,m=1/0),e.x=p,e.y=m,e}function o(e){var t=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);i=(i-this.Zb)/this.Qn,t/=this.Qn;var r,o;if(Math.abs(t)<=2.623395162778){var l=n.i(d.a)(this.utg,2*i,2*t);i+=l[0],t+=l[1],t=Math.atan(n.i(a.a)(t));var c=Math.sin(i),f=Math.cos(i),p=Math.sin(t),m=Math.cos(t);i=Math.atan2(c*m,n.i(s.a)(p,m*f)),t=Math.atan2(p,m*f),r=n.i(h.a)(t+this.long0),o=n.i(u.a)(this.cgb,i)}else r=1/0,o=1/0;return e.x=r,e.y=o,e}var a=n(193),s=n(190),l=n(494),u=n(498),c=n(495),d=n(496),h=n(11),f=[\"Extended_Transverse_Mercator\",\"Extended Transverse Mercator\",\"etmerc\"];t.a={init:i,forward:r,inverse:o,names:f}},function(e,t,n){\"use strict\";function i(e,t){return(e.datum.datum_type===o.i||e.datum.datum_type===o.j)&&\"WGS84\"!==t.datumCode||(t.datum.datum_type===o.i||t.datum.datum_type===o.j)&&\"WGS84\"!==e.datumCode}function r(e,t,d){var h;return Array.isArray(d)&&(d=n.i(u.a)(d)),n.i(c.a)(d),e.datum&&t.datum&&i(e,t)&&(h=new l.a(\"WGS84\"),d=r(e,h,d),e=h),\"enu\"!==e.axis&&(d=n.i(s.a)(e,!1,d)),\"longlat\"===e.projName?d={x:d.x*o.d,y:d.y*o.d}:(e.to_meter&&(d={x:d.x*e.to_meter,y:d.y*e.to_meter}),d=e.inverse(d)),e.from_greenwich&&(d.x+=e.from_greenwich),d=n.i(a.a)(e.datum,t.datum,d),t.from_greenwich&&(d={x:d.x-t.from_greenwich,y:d.y}),\"longlat\"===t.projName?d={x:d.x*o.a,y:d.y*o.a}:(d=t.forward(d),t.to_meter&&(d={x:d.x/t.to_meter,y:d.y/t.to_meter})),\"enu\"!==t.axis?n.i(s.a)(t,!0,d):d}t.a=r;var o=n(7),a=n(509),s=n(491),l=n(127),u=n(194),c=n(492)},function(e,t,n){\"use strict\";function i(e,t,n,i){if(t.resolvedType)if(t.resolvedType instanceof a){e(\"switch(d%s){\",i);for(var r=t.resolvedType.values,o=Object.keys(r),s=0;s>>0\",i,i);break;case\"int32\":case\"sint32\":case\"sfixed32\":e(\"m%s=d%s|0\",i,i);break;case\"uint64\":l=!0;case\"int64\":case\"sint64\":case\"fixed64\":case\"sfixed64\":e(\"if(util.Long)\")(\"(m%s=util.Long.fromValue(d%s)).unsigned=%j\",i,i,l)('else if(typeof d%s===\"string\")',i)(\"m%s=parseInt(d%s,10)\",i,i)('else if(typeof d%s===\"number\")',i)(\"m%s=d%s\",i,i)('else if(typeof d%s===\"object\")',i)(\"m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)\",i,i,i,l?\"true\":\"\");break;case\"bytes\":e('if(typeof d%s===\"string\")',i)(\"util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)\",i,i,i)(\"else if(d%s.length)\",i)(\"m%s=d%s\",i,i);break;case\"string\":e(\"m%s=String(d%s)\",i,i);break;case\"bool\":e(\"m%s=Boolean(d%s)\",i,i)}}return e}function r(e,t,n,i){if(t.resolvedType)t.resolvedType instanceof a?e(\"d%s=o.enums===String?types[%i].values[m%s]:m%s\",i,n,i,i):e(\"d%s=types[%i].toObject(m%s,o)\",i,n,i);else{var r=!1;switch(t.type){case\"double\":case\"float\":e(\"d%s=o.json&&!isFinite(m%s)?String(m%s):m%s\",i,i,i,i);break;case\"uint64\":r=!0;case\"int64\":case\"sint64\":case\"fixed64\":case\"sfixed64\":e('if(typeof m%s===\"number\")',i)(\"d%s=o.longs===String?String(m%s):m%s\",i,i,i)(\"else\")(\"d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s\",i,i,i,i,r?\"true\":\"\",i);break;case\"bytes\":e(\"d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s\",i,i,i,i,i);break;default:e(\"d%s=m%s\",i,i)}}return e}var o=t,a=n(35),s=n(16);o.fromObject=function(e){var t=e.fieldsArray,n=s.codegen([\"d\"],e.name+\"$fromObject\")(\"if(d instanceof this.ctor)\")(\"return d\");if(!t.length)return n(\"return new this.ctor\");n(\"var m=new this.ctor\");for(var r=0;r>>3){\");for(var n=0;n>>0,(t.id<<3|4)>>>0):e(\"types[%i].encode(%s,w.uint32(%i).fork()).ldelim()\",n,i,(t.id<<3|2)>>>0)}function r(e){for(var t,n,r=s.codegen([\"m\",\"w\"],e.name+\"$encode\")(\"if(!w)\")(\"w=Writer.create()\"),l=e.fieldsArray.slice().sort(s.compareFieldsById),t=0;t>>0,8|a.mapKey[u.keyType],u.keyType),void 0===h?r(\"types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()\",c,n):r(\".uint32(%i).%s(%s[ks[i]]).ldelim()\",16|h,d,n),r(\"}\")(\"}\")):u.repeated?(r(\"if(%s!=null&&%s.length){\",n,n),u.packed&&void 0!==a.packed[d]?r(\"w.uint32(%i).fork()\",(u.id<<3|2)>>>0)(\"for(var i=0;i<%s.length;++i)\",n)(\"w.%s(%s[i])\",d,n)(\"w.ldelim()\"):(r(\"for(var i=0;i<%s.length;++i)\",n),void 0===h?i(r,u,c,n+\"[i]\"):r(\"w.uint32(%i).%s(%s[i])\",(u.id<<3|h)>>>0,d,n)),r(\"}\")):(u.optional&&r(\"if(%s!=null&&m.hasOwnProperty(%j))\",n,u.name),void 0===h?i(r,u,c,n):r(\"w.uint32(%i).%s(%s)\",(u.id<<3|h)>>>0,d,n))}return r(\"return w\")}e.exports=r;var o=n(35),a=n(76),s=n(16)},function(e,t,n){\"use strict\";function i(e,t,n,i,o,s){if(r.call(this,e,t,i,void 0,void 0,o,s),!a.isString(n))throw TypeError(\"keyType must be a string\");this.keyType=n,this.resolvedKeyType=null,this.map=!0}e.exports=i;var r=n(56);((i.prototype=Object.create(r.prototype)).constructor=i).className=\"MapField\";var o=n(76),a=n(16);i.fromJSON=function(e,t){return new i(e,t.id,t.keyType,t.type,t.options,t.comment)},i.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject([\"keyType\",this.keyType,\"type\",this.type,\"id\",this.id,\"extend\",this.extend,\"options\",this.options,\"comment\",t?this.comment:void 0])},i.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error(\"invalid key type: \"+this.keyType);return r.prototype.resolve.call(this)},i.d=function(e,t,n){return\"function\"==typeof n?n=a.decorateType(n).name:n&&\"object\"==typeof n&&(n=a.decorateEnum(n).name),function(r,o){a.decorateType(r.constructor).add(new i(o,e,t,n))}}},function(e,t,n){\"use strict\";function i(e,t,n,i,a,s,l,u){if(o.isObject(a)?(l=a,a=s=void 0):o.isObject(s)&&(l=s,s=void 0),void 0!==t&&!o.isString(t))throw TypeError(\"type must be a string\");if(!o.isString(n))throw TypeError(\"requestType must be a string\");if(!o.isString(i))throw TypeError(\"responseType must be a string\");r.call(this,e,l),this.type=t||\"rpc\",this.requestType=n,this.requestStream=!!a||void 0,this.responseType=i,this.responseStream=!!s||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=u}e.exports=i;var r=n(57);((i.prototype=Object.create(r.prototype)).constructor=i).className=\"Method\";var o=n(16);i.fromJSON=function(e,t){return new i(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment)},i.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject([\"type\",\"rpc\"!==this.type&&this.type||void 0,\"requestType\",this.requestType,\"requestStream\",this.requestStream,\"responseType\",this.responseType,\"responseStream\",this.responseStream,\"options\",this.options,\"comment\",t?this.comment:void 0])},i.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),r.prototype.resolve.call(this))}},function(e,t,n){\"use strict\";function i(e){a.call(this,\"\",e),this.deferred=[],this.files=[]}function r(){}function o(e,t){var n=t.parent.lookup(t.extend);if(n){var i=new c(t.fullName,t.id,t.type,t.rule,void 0,t.options);return i.declaringField=t,t.extensionField=i,n.add(i),!0}return!1}e.exports=i;var a=n(75);((i.prototype=Object.create(a.prototype)).constructor=i).className=\"Root\";var s,l,u,c=n(56),d=n(35),h=n(133),f=n(16);i.fromJSON=function(e,t){return t||(t=new i),e.options&&t.setOptions(e.options),t.addJSON(e.nested)},i.prototype.resolvePath=f.path.resolve,i.prototype.load=function e(t,n,i){function o(e,t){if(i){var n=i;if(i=null,d)throw e;n(e,t)}}function a(e,t){try{if(f.isString(t)&&\"{\"===t.charAt(0)&&(t=JSON.parse(t)),f.isString(t)){l.filename=e;var i,r=l(t,c,n),a=0;if(r.imports)for(;a-1){var r=e.substring(n);r in u&&(e=r)}if(!(c.files.indexOf(e)>-1)){if(c.files.push(e),e in u)return void(d?a(e,u[e]):(++h,setTimeout(function(){--h,a(e,u[e])})));if(d){var s;try{s=f.fs.readFileSync(e).toString(\"utf8\")}catch(e){return void(t||o(e))}a(e,s)}else++h,f.fetch(e,function(n,r){if(--h,i)return n?void(t?h||o(null,c):o(n)):void a(e,r)})}}\"function\"==typeof n&&(i=n,n=void 0);var c=this;if(!i)return f.asPromise(e,c,t,n);var d=i===r,h=0;f.isString(t)&&(t=[t]);for(var p,m=0;m-1&&this.deferred.splice(t,1)}}else if(e instanceof d)p.test(e.name)&&delete e.parent[e.name];else if(e instanceof a){for(var n=0;n0?(\"string\"==typeof t||a.objectMode||Object.getPrototypeOf(t)===B.prototype||(t=r(t)),i?a.endEmitted?e.emit(\"error\",new Error(\"stream.unshift() after end event\")):c(e,a,t,!0):a.ended?e.emit(\"error\",new Error(\"stream.push() after EOF\")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?c(e,a,t,!1):y(e,a)):c(e,a,t,!1))):i||(a.reading=!1)}return h(a)}function c(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(e.emit(\"data\",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&g(e)),y(e,t)}function d(e,t){var n;return o(t)||\"string\"==typeof t||void 0===t||e.objectMode||(n=new TypeError(\"Invalid non-string/buffer chunk\")),n}function h(e){return!e.ended&&(e.needReadable||e.length=q?e=q:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function p(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=f(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function m(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,g(e)}}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(U(\"emitReadable\",t.flowing),t.emittedReadable=!0,t.sync?R.nextTick(v,e):v(e))}function v(e){U(\"emit readable\"),e.emit(\"readable\"),S(e)}function y(e,t){t.readingMore||(t.readingMore=!0,R.nextTick(b,e,t))}function b(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(\"\"):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=T(e,t.buffer,t.decoder),n}function T(e,t,n){var i;return eo.length?o.length:e;if(a===o.length?r+=o:r+=o.slice(0,e),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}function O(e,t){var n=B.allocUnsafe(e),i=t.head,r=1;for(i.data.copy(n),e-=i.data.length;i=i.next;){var o=i.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a));break}++r}return t.length-=r,n}function C(e){var t=e._readableState;if(t.length>0)throw new Error('\"endReadable()\" called on non-empty stream');t.endEmitted||(t.ended=!0,R.nextTick(P,t,e))}function P(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit(\"end\"))}function A(e,t){for(var n=0,i=e.length;n=t.highWaterMark||t.ended))return U(\"read: emitReadable\",t.length,t.ended),0===t.length&&t.ended?C(this):g(this),null;if(0===(e=p(e,t))&&t.ended)return 0===t.length&&C(this),null;var i=t.needReadable;U(\"need readable\",i),(0===t.length||t.length-e0?E(e,t):null,null===r?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&C(this)),null!==r&&this.emit(\"data\",r),r},l.prototype._read=function(e){this.emit(\"error\",new Error(\"_read() is not implemented\"))},l.prototype.pipe=function(e,t){function n(e,t){U(\"onunpipe\"),e===h&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,o())}function r(){U(\"onend\"),e.end()}function o(){U(\"cleanup\"),e.removeListener(\"close\",u),e.removeListener(\"finish\",c),e.removeListener(\"drain\",g),e.removeListener(\"error\",l),e.removeListener(\"unpipe\",n),h.removeListener(\"end\",r),h.removeListener(\"end\",d),h.removeListener(\"data\",s),v=!0,!f.awaitDrain||e._writableState&&!e._writableState.needDrain||g()}function s(t){U(\"ondata\"),y=!1,!1!==e.write(t)||y||((1===f.pipesCount&&f.pipes===e||f.pipesCount>1&&-1!==A(f.pipes,e))&&!v&&(U(\"false write response, pause\",h._readableState.awaitDrain),h._readableState.awaitDrain++,y=!0),h.pause())}function l(t){U(\"onerror\",t),d(),e.removeListener(\"error\",l),0===D(e,\"error\")&&e.emit(\"error\",t)}function u(){e.removeListener(\"finish\",c),d()}function c(){U(\"onfinish\"),e.removeListener(\"close\",u),d()}function d(){U(\"unpipe\"),h.unpipe(e)}var h=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=e;break;case 1:f.pipes=[f.pipes,e];break;default:f.pipes.push(e)}f.pipesCount+=1,U(\"pipe count=%d opts=%j\",f.pipesCount,t);var p=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr,m=p?r:d;f.endEmitted?R.nextTick(m):h.once(\"end\",m),e.on(\"unpipe\",n);var g=_(h);e.on(\"drain\",g);var v=!1,y=!1;return h.on(\"data\",s),a(e,\"error\",l),e.once(\"close\",u),e.once(\"finish\",c),e.emit(\"pipe\",h),f.flowing||(U(\"pipe resume\"),h.resume()),e},l.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(\"unpipe\",this,n),this);if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0?90:-90),e.lat_ts=e.lat1)}var a=n(608),s=n(609),l=.017453292519943295;t.a=function(e){var t=n.i(a.a)(e),i=t.shift(),r=t.shift();t.unshift([\"name\",r]),t.unshift([\"type\",i]);var l={};return n.i(s.a)(t,l),o(l),l}},function(e,t,n){e.exports=n.p+\"assets/3tc9TFA8_5YuxA455U7BMg.png\"},function(e,t,n){e.exports=n.p+\"assets/3WNj6QfIN0cgE7u5icG0Zx.png\"},function(e,t,n){e.exports=n.p+\"assets/ZzXs2hkPaGeWT_N6FgGOx.png\"},function(e,t,n){e.exports=n.p+\"assets/13lPmuYsGizUIj_HGNYM82.png\"},function(e,t){e.exports={1:\"showTasks\",2:\"showModuleController\",3:\"showMenu\",4:\"showRouteEditingBar\",5:\"showDataRecorder\",6:\"enableAudioCapture\",7:\"showPOI\",v:\"cameraAngle\",p:\"showPNCMonitor\"}},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o,a=n(3),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(5),f=i(h),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(214),_=n(560),x=i(_),w=n(236),M=i(w),S=n(237),E=i(S),T=n(238),k=i(T),O=n(245),C=i(O),P=n(256),A=i(P),R=n(231),L=i(R),I=n(143),D=n(225),N=i(D),B=n(19),z=i(B),F=(r=(0,y.inject)(\"store\"))(o=(0,y.observer)(o=function(e){function t(e){(0,u.default)(this,t);var n=(0,f.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return n.handleDrag=n.handleDrag.bind(n),n.handleKeyPress=n.handleKeyPress.bind(n),n.updateDimension=n.props.store.updateDimension.bind(n.props.store),n}return(0,m.default)(t,e),(0,d.default)(t,[{key:\"handleDrag\",value:function(e){this.props.store.options.showPNCMonitor&&this.props.store.updateWidthInPercentage(Math.min(1,e/window.innerWidth))}},{key:\"handleKeyPress\",value:function(e){var t=this.props.store,n=t.options,i=t.enableHMIButtonsOnly,r=t.hmi,o=N.default[e.key];o&&!n.showDataRecorder&&(e.preventDefault(),\"cameraAngle\"===o?n.rotateCameraAngle():n.isSideBarButtonDisabled(o,i,r.inNavigationMode)||this.props.store.handleOptionToggle(o))}},{key:\"componentWillMount\",value:function(){this.props.store.updateDimension()}},{key:\"componentDidMount\",value:function(){z.default.initialize(),B.MAP_WS.initialize(),B.POINT_CLOUD_WS.initialize(),window.addEventListener(\"resize\",this.updateDimension,!1),window.addEventListener(\"keypress\",this.handleKeyPress,!1)}},{key:\"componentWillUnmount\",value:function(){window.removeEventListener(\"resize\",this.updateDimension,!1),window.removeEventListener(\"keypress\",this.handleKeyPress,!1)}},{key:\"render\",value:function(){var e=this.props.store,t=(e.isInitialized,e.dimension),n=(e.sceneDimension,e.options);e.hmi;return v.default.createElement(\"div\",null,v.default.createElement(M.default,null),v.default.createElement(\"div\",{className:\"pane-container\"},v.default.createElement(x.default,{split:\"vertical\",size:t.width,onChange:this.handleDrag,allowResize:n.showPNCMonitor},v.default.createElement(\"div\",{className:\"left-pane\"},v.default.createElement(A.default,null),v.default.createElement(\"div\",{className:\"dreamview-body\"},v.default.createElement(E.default,null),v.default.createElement(k.default,null))),v.default.createElement(\"div\",{className:\"right-pane\"},n.showPNCMonitor&&n.showVideo&&v.default.createElement(\"div\",null,v.default.createElement(b.Tab,null,v.default.createElement(\"span\",null,\"Camera Sensor\")),v.default.createElement(I.CameraVideo,null)),n.showPNCMonitor&&v.default.createElement(C.default,{options:n})))),v.default.createElement(\"div\",{className:\"hidden\"},n.enableAudioCapture&&v.default.createElement(L.default,null)))}}]),t}(v.default.Component))||o)||o;t.default=F},function(e,t,n){var i=n(301);\"string\"==typeof i&&(i=[[e.i,i,\"\"]]);var r={};r.transform=void 0;n(139)(i,r);i.locals&&(e.exports=i.locals)},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=g(p.default.hmi.utmZoneId);return(0,c.default)(m,n,[e,t])}function o(e,t){var n=g(p.default.hmi.utmZoneId);return(0,c.default)(n,m,[e,t])}function a(e,t){return h.transform([e,t],\"WGS84\",\"GCJ02\")}function s(e,t){if(l(e,t))return[e,t];var n=a(e,t);return h.transform(n,\"GCJ02\",\"BD09LL\")}function l(e,t){return e<72.004||e>137.8347||(t<.8293||t>55.8271)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.WGS84ToUTM=r,t.UTMToWGS84=o,t.WGS84ToGCJ02=a,t.WGS84ToBD09LL=s;var u=n(513),c=i(u),d=n(365),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(d),f=n(14),p=i(f),m=\"+proj=longlat +ellps=WGS84\",g=function(e){return\"+proj=utm +zone=\"+e+\" +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs\"}},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(312),o=i(r),a=n(44),s=i(a);t.default=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,l=(0,s.default)(e);!(i=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&l.return&&l.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if((0,o.default)(Object(t)))return e(t,n);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}}()},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}var r=n(48),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=n(2),s=i(a),l=n(8);n(227);var u=n(14),c=i(u),d=n(226),h=i(d);o.render(s.default.createElement(l.Provider,{store:c.default},s.default.createElement(h.default,null)),document.getElementById(\"root\"))},function(e,t,n){\"use strict\";(function(e){function i(e){return e&&e.__esModule?e:{default:e}}function r(t){for(var n=t.length,i=new ArrayBuffer(2*n),r=new Int16Array(i,0),o=0,a=0;a0){var u=a.customizedToggles.keys().map(function(e){var t=S.default.startCase(e);return _.default.createElement(Y,{key:e,id:e,title:t,optionName:e,options:a,isCustomized:!0})});s=s.concat(u)}}else\"radio\"===r&&(s=(0,l.default)(o).map(function(e){var t=o[e];return a.togglesToHide[e]?null:_.default.createElement(T.default,{key:n+\"_\"+e,id:n,onClick:function(){a.selectCamera(t)},checked:a.cameraAngle===t,title:t,options:a})}));return _.default.createElement(\"div\",{className:\"card\"},_.default.createElement(\"div\",{className:\"card-header summary\"},_.default.createElement(\"span\",null,_.default.createElement(\"img\",{src:q[n]}),i)),_.default.createElement(\"div\",{className:\"card-content-column\"},s))}}]),t}(_.default.Component))||o,K=(0,x.observer)(a=function(e){function t(){return(0,h.default)(this,t),(0,g.default)(this,(t.__proto__||(0,c.default)(t)).apply(this,arguments))}return(0,y.default)(t,e),(0,p.default)(t,[{key:\"render\",value:function(){var e=this.props.options,t=(0,l.default)(O.default).map(function(t){var n=O.default[t];return _.default.createElement(X,{key:n.id,tabId:n.id,tabTitle:n.title,tabType:n.type,data:n.data,options:e})});return _.default.createElement(\"div\",{className:\"tool-view-menu\",id:\"layer-menu\"},t)}}]),t}(_.default.Component))||a;t.default=K},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o=n(32),a=i(o),s=n(3),l=i(s),u=n(0),c=i(u),d=n(1),h=i(d),f=n(5),p=i(f),m=n(4),g=i(m),v=n(2),y=i(v),b=n(8),_=n(13),x=(i(_),n(145)),w=i(x),M=(0,b.observer)(r=function(e){function t(){return(0,c.default)(this,t),(0,p.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.routeEditingManager,n=e.options,i=e.inNavigationMode,r=(0,a.default)(t.defaultRoutingEndPoint).map(function(e,r){return y.default.createElement(w.default,{extraClasses:[\"poi-button\"],key:\"poi_\"+e,id:\"poi\",title:e,onClick:function(){t.addDefaultEndPoint(e,i),n.showRouteEditingBar||t.sendRoutingRequest(i),n.showPOI=!1},autoFocus:0===r,checked:!1})});return y.default.createElement(\"div\",{className:\"tool-view-menu\",id:\"poi-list\"},y.default.createElement(\"div\",{className:\"card\"},y.default.createElement(\"div\",{className:\"card-header\"},y.default.createElement(\"span\",null,\"Point of Interest\")),y.default.createElement(\"div\",{className:\"card-content-row\"},r)))}}]),t}(y.default.Component))||r;t.default=M},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=n(13),v=i(g),y=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.type,n=e.label,i=e.iconSrc,r=e.hotkey,o=e.active,a=e.disabled,s=e.extraClasses,l=e.onClick,u=\"sub\"===t,c=r?n+\" (\"+r+\")\":n;return m.default.createElement(\"button\",{onClick:l,disabled:a,\"data-for\":\"sidebar-button\",\"data-tip\":c,className:(0,v.default)({button:!u,\"button-active\":!u&&o,\"sub-button\":u,\"sub-button-active\":u&&o},s)},i&&m.default.createElement(\"img\",{src:i,className:\"icon\"}),m.default.createElement(\"div\",{className:\"label\"},n))}}]),t}(m.default.PureComponent);t.default=y},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o,a=n(320),s=i(a),l=n(153),u=i(l),c=n(3),d=i(c),h=n(0),f=i(h),p=n(1),m=i(p),g=n(5),v=i(g),y=n(4),b=i(y),_=n(2),x=i(_),w=n(8),M=n(574),S=i(M),E=n(20),T=i(E),k=n(255),O=i(k),C=n(225),P=i(C),A=n(19),R=(i(A),n(660)),L=i(R),I=n(658),D=i(I),N=n(657),B=i(N),z=n(659),F=i(z),j=n(656),U=i(j),W={showTasks:L.default,showModuleController:D.default,showMenu:B.default,showRouteEditingBar:F.default,showDataRecorder:U.default},G={showTasks:\"Tasks\",showModuleController:\"Module Controller\",showMenu:\"Layer Menu\",showRouteEditingBar:\"Route Editing\",showDataRecorder:\"Data Recorder\",enableAudioCapture:\"Audio Capture\",showPOI:\"Default Routing\"},V=(r=(0,w.inject)(\"store\"))(o=(0,w.observer)(o=function(e){function t(){return(0,f.default)(this,t),(0,v.default)(this,(t.__proto__||(0,d.default)(t)).apply(this,arguments))}return(0,b.default)(t,e),(0,m.default)(t,[{key:\"render\",value:function(){var e=this,t=this.props.store,n=t.options,i=t.enableHMIButtonsOnly,r=t.hmi,o=T.default.invert(P.default),a={};return[].concat((0,u.default)(n.mainSideBarOptions),(0,u.default)(n.secondarySideBarOptions)).forEach(function(t){a[t]={label:G[t],active:n[t],onClick:function(){e.props.store.handleOptionToggle(t)},disabled:n.isSideBarButtonDisabled(t,i,r.inNavigationMode),hotkey:o[t],iconSrc:W[t]}}),x.default.createElement(\"div\",{className:\"side-bar\"},x.default.createElement(\"div\",{className:\"main-panel\"},x.default.createElement(O.default,(0,s.default)({type:\"main\"},a.showTasks)),x.default.createElement(O.default,(0,s.default)({type:\"main\"},a.showModuleController)),x.default.createElement(O.default,(0,s.default)({type:\"main\"},a.showMenu)),x.default.createElement(O.default,(0,s.default)({type:\"main\"},a.showRouteEditingBar)),x.default.createElement(O.default,(0,s.default)({type:\"main\"},a.showDataRecorder))),x.default.createElement(\"div\",{className:\"sub-button-panel\"},x.default.createElement(O.default,(0,s.default)({type:\"sub\"},a.enableAudioCapture)),x.default.createElement(O.default,(0,s.default)({type:\"sub\"},a.showPOI,{active:!n.showRouteEditingBar&&n.showPOI}))),x.default.createElement(S.default,{id:\"sidebar-button\",place:\"right\",delayShow:500}))}}]),t}(x.default.Component))||o)||o;t.default=V},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o=n(3),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(5),h=i(d),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(260),b=i(y),_=function(e){function t(){return(0,l.default)(this,t),(0,h.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,c.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.label,n=e.percentage,i=e.meterColor,r=e.background;return g.default.createElement(\"div\",{className:\"meter-container\"},g.default.createElement(\"div\",{className:\"meter-label\"},t),g.default.createElement(\"span\",{className:\"meter-head\",style:{borderColor:i}}),g.default.createElement(\"div\",{className:\"meter-background\",style:{backgroundColor:r}},g.default.createElement(\"span\",{style:{backgroundColor:i,width:n+\"%\"}})))}}]),t}(g.default.Component),x=(0,v.observer)(r=function(e){function t(e){(0,l.default)(this,t);var n=(0,h.default)(this,(t.__proto__||(0,a.default)(t)).call(this,e));return n.setting={brake:{label:\"Brake\",meterColor:\"#B43131\",background:\"#382626\"},accelerator:{label:\"Accelerator\",meterColor:\"#006AFF\",background:\"#2D3B50\"}},n}return(0,p.default)(t,e),(0,c.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.throttlePercent,n=e.brakePercent,i=e.speed;return g.default.createElement(\"div\",{className:\"auto-meter\"},g.default.createElement(b.default,{meterPerSecond:i}),g.default.createElement(\"div\",{className:\"brake-panel\"},g.default.createElement(_,{label:this.setting.brake.label,percentage:n,meterColor:this.setting.brake.meterColor,background:this.setting.brake.background})),g.default.createElement(\"div\",{className:\"throttle-panel\"},g.default.createElement(_,{label:this.setting.accelerator.label,percentage:t,meterColor:this.setting.accelerator.meterColor,background:this.setting.accelerator.background})))}}]),t}(g.default.Component))||r;t.default=x},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=n(13),v=i(g),y=n(77),b=i(y),_=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"componentWillUpdate\",value:function(){b.default.cancelAllInQueue()}},{key:\"render\",value:function(){var e=this.props,t=e.drivingMode,n=e.isAutoMode;return b.default.speakOnce(\"Entering to \"+t+\" mode\"),m.default.createElement(\"div\",{className:(0,v.default)({\"driving-mode\":!0,\"auto-mode\":n,\"manual-mode\":!n})},m.default.createElement(\"span\",{className:\"text\"},t))}}]),t}(m.default.PureComponent);t.default=_},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o=n(3),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(5),h=i(d),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(13),b=i(y),_=n(223),x=i(_),w=n(222),M=i(w),S=(0,v.observer)(r=function(e){function t(){return(0,l.default)(this,t),(0,h.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,c.default)(t,[{key:\"render\",value:function(){var e=this.props.monitor;if(!e.hasActiveNotification)return null;if(0===e.items.length)return null;var t=e.items[0],n=\"ERROR\"===t.logLevel||\"FATAL\"===t.logLevel?\"alert\":\"warn\",i=\"alert\"===n?M.default:x.default;return g.default.createElement(\"div\",{className:\"notification-\"+n},g.default.createElement(\"img\",{src:i,className:\"icon\"}),g.default.createElement(\"span\",{className:(0,b.default)(\"text\",n)},t.msg))}}]),t}(g.default.Component))||r;t.default=S},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=[{name:\"km/h\",conversionFromMeterPerSecond:3.6},{name:\"m/s\",conversionFromMeterPerSecond:1},{name:\"mph\",conversionFromMeterPerSecond:2.23694}],v=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.state={unit:0},n.changeUnit=n.changeUnit.bind(n),n}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"changeUnit\",value:function(){this.setState({unit:(this.state.unit+1)%g.length})}},{key:\"render\",value:function(){var e=this.props.meterPerSecond,t=g[this.state.unit],n=t.name,i=Math.round(e*t.conversionFromMeterPerSecond);return m.default.createElement(\"span\",{onClick:this.changeUnit},m.default.createElement(\"span\",{className:\"speed-read\"},i),m.default.createElement(\"span\",{className:\"speed-unit\"},n))}}]),t}(m.default.Component);t.default=v},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g={GREEN:\"rgba(79, 198, 105, 0.8)\",YELLOW:\"rgba(239, 255, 0, 0.8)\",RED:\"rgba(180, 49, 49, 0.8)\",BLACK:\"rgba(30, 30, 30, 0.8)\",UNKNOWN:\"rgba(30, 30, 30, 0.8)\",\"\":null},v=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"render\",value:function(){var e=this.props.colorName,t=g[e],n=e||\"NO SIGNAL\";return m.default.createElement(\"div\",{className:\"traffic-light\"},t&&m.default.createElement(\"svg\",{className:\"symbol\",viewBox:\"0 0 30 30\",height:\"28\",width:\"28\"},m.default.createElement(\"circle\",{cx:\"15\",cy:\"15\",r:\"15\",fill:t})),m.default.createElement(\"div\",{className:\"text\"},n))}}]),t}(m.default.PureComponent);t.default=v},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o=n(3),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(5),h=i(d),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=function(e){function t(){return(0,l.default)(this,t),(0,h.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,c.default)(t,[{key:\"render\",value:function(){var e=this.props.steeringAngle;return g.default.createElement(\"svg\",{className:\"wheel\",viewBox:\"0 0 100 100\",height:\"80\",width:\"80\"},g.default.createElement(\"circle\",{className:\"wheel-background\",cx:\"50\",cy:\"50\",r:\"45\"}),g.default.createElement(\"g\",{className:\"wheel-arm\",transform:\"rotate(\"+e+\" 50 50)\"},g.default.createElement(\"rect\",{x:\"45\",y:\"7\",height:\"10\",width:\"10\"}),g.default.createElement(\"line\",{x1:\"50\",y1:\"50\",x2:\"50\",y2:\"5\"})))}}]),t}(g.default.Component),b=(0,v.observer)(r=function(e){function t(e){(0,l.default)(this,t);var n=(0,h.default)(this,(t.__proto__||(0,a.default)(t)).call(this,e));return n.signalColor={off:\"#30435E\",on:\"#006AFF\"},n}return(0,p.default)(t,e),(0,c.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.steeringPercentage,n=e.steeringAngle,i=e.turnSignal,r=\"LEFT\"===i||\"EMERGENCY\"===i?this.signalColor.on:this.signalColor.off,o=\"RIGHT\"===i||\"EMERGENCY\"===i?this.signalColor.on:this.signalColor.off;return g.default.createElement(\"div\",{className:\"wheel-panel\"},g.default.createElement(\"div\",{className:\"steerangle-read\"},t),g.default.createElement(\"div\",{className:\"steerangle-unit\"},\"%\"),g.default.createElement(\"div\",{className:\"left-arrow\",style:{borderRightColor:r}}),g.default.createElement(y,{steeringAngle:n}),g.default.createElement(\"div\",{className:\"right-arrow\",style:{borderLeftColor:o}}))}}]),t}(g.default.Component))||r;t.default=b},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o=n(3),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(5),h=i(d),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(257),b=i(y),_=n(259),x=i(_),w=n(261),M=i(w),S=n(258),E=i(S),T=n(262),k=i(T),O=(0,v.observer)(r=function(e){function t(){return(0,l.default)(this,t),(0,h.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,c.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.meters,n=e.trafficSignal,i=e.showNotification,r=e.monitor;return g.default.createElement(\"div\",{className:\"status-bar\"},i&&g.default.createElement(x.default,{monitor:r}),g.default.createElement(b.default,{throttlePercent:t.throttlePercent,brakePercent:t.brakePercent,speed:t.speed}),g.default.createElement(k.default,{steeringPercentage:t.steeringPercentage,steeringAngle:t.steeringAngle,turnSignal:t.turnSignal}),g.default.createElement(\"div\",{className:\"traffic-light-and-driving-mode\"},g.default.createElement(M.default,{colorName:n.color}),g.default.createElement(E.default,{drivingMode:t.drivingMode,isAutoMode:t.isAutoMode})))}}]),t}(g.default.Component))||r;t.default=O},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o,a,s=n(3),l=i(s),u=n(0),c=i(u),d=n(1),h=i(d),f=n(5),p=i(f),m=n(4),g=i(m),v=n(2),y=i(v),b=n(8),_=n(13),x=i(_),w=n(223),M=i(w),S=n(222),E=i(S),T=n(43),k=(0,b.observer)(r=function(e){function t(){return(0,c.default)(this,t),(0,p.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.level,n=e.text,i=e.time,r=\"ERROR\"===t||\"FATAL\"===t?\"alert\":\"warn\",o=\"alert\"===r?E.default:M.default;return y.default.createElement(\"li\",{className:\"monitor-item\"},y.default.createElement(\"img\",{src:o,className:\"icon\"}),y.default.createElement(\"span\",{className:(0,x.default)(\"text\",r)},n),y.default.createElement(\"span\",{className:(0,x.default)(\"time\",r)},i))}}]),t}(y.default.Component))||r,O=(o=(0,b.inject)(\"store\"))(a=(0,b.observer)(a=function(e){function t(){return(0,c.default)(this,t),(0,p.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:\"render\",value:function(){var e=this.props.store.monitor;return y.default.createElement(\"div\",{className:\"card\",style:{maxWidth:\"50%\"}},y.default.createElement(\"div\",{className:\"card-header\"},y.default.createElement(\"span\",null,\"Console\")),y.default.createElement(\"div\",{className:\"card-content-column\"},y.default.createElement(\"ul\",{className:\"console\"},e.items.map(function(e,t){return y.default.createElement(k,{key:t,text:e.msg,level:e.logLevel,time:(0,T.timestampMsToTimeString)(e.timestampMs)})}))))}}]),t}(y.default.Component))||a)||a;t.default=O},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o,a=n(3),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(5),f=i(h),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(13),_=i(b),x=n(43),w=function(e){function t(){return(0,u.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.time,n=e.warning,i=\"-\"===t?t:(0,x.millisecondsToTime)(0|t);return v.default.createElement(\"div\",{className:(0,_.default)({value:!0,warning:n})},i)}}]),t}(v.default.PureComponent),M=(r=(0,y.inject)(\"store\"))(o=(0,y.observer)(o=function(e){function t(){return(0,u.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:\"render\",value:function(){var e=this.props.store.moduleDelay,t=e.keys().sort().map(function(t){var n=e.get(t),i=n.delay>2e3&&\"TrafficLight\"!==n.name;return v.default.createElement(\"div\",{className:\"delay-item\",key:\"delay_\"+t},v.default.createElement(\"div\",{className:\"name\"},n.name),v.default.createElement(w,{time:n.delay,warning:i}))});return v.default.createElement(\"div\",{className:\"delay card\"},v.default.createElement(\"div\",{className:\"card-header\"},v.default.createElement(\"span\",null,\"Module Delay\")),v.default.createElement(\"div\",{className:\"card-content-column\"},t))}}]),t}(v.default.Component))||o)||o;t.default=M},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o,a=n(3),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(5),f=i(h),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(144),_=i(b),x=n(19),w=i(x),M=(r=(0,y.inject)(\"store\"))(o=(0,y.observer)(o=function(e){function t(){return(0,u.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:\"render\",value:function(){var e=this,t=this.props.store,n=t.options,i=t.enableHMIButtonsOnly,r=i||n.lockTaskPanel;return v.default.createElement(\"div\",{className:\"others card\"},v.default.createElement(\"div\",{className:\"card-header\"},v.default.createElement(\"span\",null,\"Others\")),v.default.createElement(\"div\",{className:\"card-content-column\"},v.default.createElement(\"button\",{disabled:r,onClick:function(){w.default.resetBackend()}},\"Reset Backend Data\"),v.default.createElement(\"button\",{disabled:r,onClick:function(){w.default.dumpMessages()}},\"Dump Message\"),v.default.createElement(_.default,{id:\"showPNCMonitor\",title:\"PNC Monitor\",isChecked:n.showPNCMonitor,disabled:r,onClick:function(){e.props.store.handleOptionToggle(\"showPNCMonitor\")}}),v.default.createElement(_.default,{id:\"toggleSimControl\",title:\"Sim Control\",isChecked:n.enableSimControl,disabled:n.lockTaskPanel,onClick:function(){w.default.toggleSimControl(!n.enableSimControl),e.props.store.handleOptionToggle(\"enableSimControl\")}}),v.default.createElement(_.default,{id:\"showVideo\",title:\"Camera Sensor\",isChecked:n.showVideo,disabled:r,onClick:function(){e.props.store.handleOptionToggle(\"showVideo\")}}),v.default.createElement(_.default,{id:\"panelLock\",title:\"Lock Task Panel\",isChecked:n.lockTaskPanel,disabled:!1,onClick:function(){e.props.store.handleOptionToggle(\"lockTaskPanel\")}})))}}]),t}(v.default.Component))||o)||o;t.default=M},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o,a=n(32),s=i(a),l=n(3),u=i(l),c=n(0),d=i(c),h=n(1),f=i(h),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),_=n(8),x=n(13),w=i(x),M=n(77),S=i(M),E=n(19),T=i(E),k=function(e){function t(){return(0,d.default)(this,t),(0,m.default)(this,(t.__proto__||(0,u.default)(t)).apply(this,arguments))}return(0,v.default)(t,e),(0,f.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.name,n=e.commands,i=e.disabled,r=e.extraCommandClass,o=e.extraButtonClass,a=(0,s.default)(n).map(function(e){return b.default.createElement(\"button\",{className:o,disabled:i,key:e,onClick:n[e]},e)}),l=t?b.default.createElement(\"span\",{className:\"name\"},t+\":\"):null;return b.default.createElement(\"div\",{className:(0,w.default)(\"command-group\",r)},l,a)}}]),t}(b.default.Component),O=(r=(0,_.inject)(\"store\"))(o=(0,_.observer)(o=function(e){function t(e){(0,d.default)(this,t);var n=(0,m.default)(this,(t.__proto__||(0,u.default)(t)).call(this,e));return n.setup={Setup:function(){T.default.executeModeCommand(\"SETUP_MODE\"),S.default.speakOnce(\"Setup\")}},n.reset={\"Reset All\":function(){T.default.executeModeCommand(\"RESET_MODE\"),S.default.speakOnce(\"Reset All\")}},n.auto={\"Start Auto\":function(){T.default.executeModeCommand(\"ENTER_AUTO_MODE\"),S.default.speakOnce(\"Start Auto\")}},n}return(0,v.default)(t,e),(0,f.default)(t,[{key:\"componentWillUpdate\",value:function(){S.default.cancelAllInQueue()}},{key:\"render\",value:function(){var e=this.props.store.hmi,t=this.props.store.options.lockTaskPanel;return b.default.createElement(\"div\",{className:\"card\"},b.default.createElement(\"div\",{className:\"card-header\"},b.default.createElement(\"span\",null,\"Quick Start\")),b.default.createElement(\"div\",{className:\"card-content-column\"},b.default.createElement(k,{disabled:t,commands:this.setup}),b.default.createElement(k,{disabled:t,commands:this.reset}),b.default.createElement(k,{disabled:!e.enableStartAuto||t,commands:this.auto,extraButtonClass:\"start-auto-button\",extraCommandClass:\"start-auto-command\"})))}}]),t}(b.default.Component))||o)||o;t.default=O},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o,a=n(3),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(5),f=i(h),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(267),_=i(b),x=n(266),w=i(x),M=n(265),S=i(M),E=n(264),T=i(E),k=n(143),O=i(k),C=(r=(0,y.inject)(\"store\"))(o=(0,y.observer)(o=function(e){function t(){return(0,u.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:\"render\",value:function(){var e=this.props.options;return v.default.createElement(\"div\",{className:\"tasks\"},v.default.createElement(_.default,null),v.default.createElement(w.default,null),v.default.createElement(S.default,null),v.default.createElement(T.default,null),e.showVideo&&!e.showPNCMonitor&&v.default.createElement(O.default,null))}}]),t}(v.default.Component))||o)||o;t.default=C},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(79),o=i(r),a=n(321),s=i(a),l=n(2),u=i(l),c=n(27),d=i(c),h=function(e){var t=e.image,n=e.style,i=e.className,r=((0,s.default)(e,[\"image\",\"style\",\"className\"]),(0,o.default)({},n||{},{backgroundImage:\"url(\"+t+\")\",backgroundSize:\"cover\"})),a=i?i+\" dreamview-image\":\"dreamview-image\";return u.default.createElement(\"div\",{className:a,style:r})};h.propTypes={image:d.default.string.isRequired,style:d.default.object},t.default=h},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=n(13),v=i(g),y=n(37),b=(i(y),n(224)),_=i(b),x=n(642),w=(i(x),function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.height,n=e.extraClasses,i=e.offlineViewErr,r=\"Please send car initial position and map data.\",o=_.default;return m.default.createElement(\"div\",{className:\"loader\",style:{height:t}},m.default.createElement(\"div\",{className:(0,v.default)(\"img-container\",n)},m.default.createElement(\"img\",{src:o,alt:\"Loader\"}),m.default.createElement(\"div\",{className:i?\"error-message\":\"status-message\"},r)))}}]),t}(m.default.Component));t.default=w},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h);n(670);var p=n(2),m=i(p),g=n(48),v=i(g),y=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.setOkButtonRef=function(e){n.okButton=e},n}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"componentDidMount\",value:function(){var e=this;setTimeout(function(){e.okButton&&e.okButton.focus()},0)}},{key:\"componentDidUpdate\",value:function(){this.okButton&&this.okButton.focus()}},{key:\"render\",value:function(){var e=this,t=this.props,n=t.open,i=t.header;return n?m.default.createElement(\"div\",null,m.default.createElement(\"div\",{className:\"modal-background\"}),m.default.createElement(\"div\",{className:\"modal-content\"},m.default.createElement(\"div\",{role:\"dialog\",className:\"modal-dialog\"},i&&m.default.createElement(\"header\",null,m.default.createElement(\"span\",null,this.props.header)),this.props.children),m.default.createElement(\"button\",{ref:this.setOkButtonRef,className:\"ok-button\",onClick:function(){return e.props.onClose()}},\"OK\"))):null}}]),t}(m.default.Component),b=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.rootSelector=document.getElementById(\"root\"),n.container=document.createElement(\"div\"),n}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"componentDidMount\",value:function(){this.rootSelector.appendChild(this.container)}},{key:\"componentWillUnmount\",value:function(){this.rootSelector.removeChild(this.container)}},{key:\"render\",value:function(){return v.default.createPortal(m.default.createElement(y,this.props),this.container)}}]),t}(m.default.Component);t.default=b},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(14),u=i(l),c=n(611),d=i(c),h=n(612),f=i(h),p=n(78),m={adc:{menuOptionName:\"showPositionLocalization\",carMaterial:d.default},planningAdc:{menuOptionName:\"showPlanningCar\",carMaterial:null}},g=function(){function e(t,n){var i=this;(0,o.default)(this,e),this.mesh=null,this.name=t;var r=m[t];if(!r)return void console.error(\"Car properties not found for car:\",t);(0,p.loadObject)(r.carMaterial,f.default,{x:1,y:1,z:1},function(e){i.mesh=e,i.mesh.rotation.x=Math.PI/2,i.mesh.visible=u.default.options[r.menuOptionName],n.add(i.mesh)})}return(0,s.default)(e,[{key:\"update\",value:function(e,t){if(this.mesh&&t&&_.isNumber(t.positionX)&&_.isNumber(t.positionY)){var n=m[this.name].menuOptionName;this.mesh.visible=u.default.options[n];var i=e.applyOffset({x:t.positionX,y:t.positionY});null!==i&&(this.mesh.position.set(i.x,i.y,0),this.mesh.rotation.y=t.heading)}}},{key:\"resizeCarScale\",value:function(e,t,n){this.mesh&&this.mesh.scale.set(e,t,n)}}]),e}();t.default=g},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),c=function(){function e(){(0,o.default)(this,e),this.systemName=\"ENU\",this.offset=null}return(0,s.default)(e,[{key:\"isInitialized\",value:function(){return null!==this.offset}},{key:\"initialize\",value:function(e,t){this.offset={x:e,y:t},console.log(\"Offset is set to x:\"+e+\", y:\"+t)}},{key:\"setSystem\",value:function(e){this.systemName=e}},{key:\"applyOffset\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null===this.offset?(console.error(\"Offset is not set.\"),null):isNaN(this.offset.x)||isNaN(this.offset.y)?(console.error(\"Offset contains NaN!\"),null):isNaN(e.x)||isNaN(e.y)?(console.warn(\"Point contains NaN!\"),null):isNaN(e.z)?new u.Vector2(t?e.x+this.offset.x:e.x-this.offset.x,t?e.y+this.offset.y:e.y-this.offset.y):new u.Vector3(t?e.x+this.offset.x:e.x-this.offset.x,t?e.y+this.offset.y:e.y-this.offset.y,e.z)}},{key:\"applyOffsetToArray\",value:function(e){var t=this;return e.map(function(e){return t.applyOffset(e)})}}]),e}();t.default=c},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(44),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(12),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(c),h=n(14),f=i(h),p=n(629),m=i(p),g=n(633),v=i(g),y=n(631),b=i(y),_=n(221),x=i(_),w=n(632),M=i(w),S=n(623),E=i(S),T=n(626),k=i(T),O=n(624),C=i(O),P=n(627),A=i(P),R=n(625),L=i(R),I=n(628),D=i(I),N=n(621),B=i(N),z=n(635),F=i(z),j=n(634),U=i(j),W=n(637),G=i(W),V=n(638),H=i(V),q=n(639),Y=i(q),X=n(619),K=i(X),Z=n(620),J=i(Z),Q=n(622),$=i(Q),ee=n(630),te=i(ee),ne=n(636),ie=i(ne),re=n(618),oe=i(re),ae=n(617),se=i(ae),le=n(43),ue=n(38),ce=n(20),de={STOP:16724016,FOLLOW:1757281,YIELD:16724215,OVERTAKE:3188223},he={STOP_REASON_HEAD_VEHICLE:D.default,STOP_REASON_DESTINATION:B.default,STOP_REASON_PEDESTRIAN:F.default,STOP_REASON_OBSTACLE:U.default,STOP_REASON_SIGNAL:G.default,STOP_REASON_STOP_SIGN:H.default,STOP_REASON_YIELD_SIGN:Y.default,STOP_REASON_CLEAR_ZONE:K.default,STOP_REASON_CROSSWALK:J.default,STOP_REASON_EMERGENCY:$.default,STOP_REASON_NOT_READY:te.default,STOP_REASON_PULL_OVER:ie.default},fe={LEFT:se.default,RIGHT:oe.default},pe=function(){function e(){(0,s.default)(this,e),this.markers={STOP:[],FOLLOW:[],YIELD:[],OVERTAKE:[]},this.nudges=[],this.mainDecision={STOP:this.getMainStopDecision(),CHANGE_LANE:this.getMainChangeLaneDecision()},this.mainDecisionAddedToScene=!1}return(0,u.default)(e,[{key:\"update\",value:function(e,t,n){this.nudges.forEach(function(e){n.remove(e),e.geometry.dispose(),e.material.dispose()}),this.nudges=[],this.updateMainDecision(e,t,n),this.updateObstacleDecision(e,t,n)}},{key:\"updateMainDecision\",value:function(e,t,n){var i=this,r=e.mainDecision?e.mainDecision:e.mainStop;for(var a in this.mainDecision)this.mainDecision[a].visible=!1;if(f.default.options.showDecisionMain&&!ce.isEmpty(r)){if(!this.mainDecisionAddedToScene){for(var s in this.mainDecision)n.add(this.mainDecision[s]);this.mainDecisionAddedToScene=!0}for(var l in he)this.mainDecision.STOP[l].visible=!1;for(var u in fe)this.mainDecision.CHANGE_LANE[u].visible=!1;var c=t.applyOffset({x:r.positionX,y:r.positionY,z:.2}),d=r.heading,h=!0,p=!1,m=void 0;try{for(var g,v=(0,o.default)(r.decision);!(h=(g=v.next()).done);h=!0)!function(){var e=g.value,n=c,r=d;ce.isNumber(e.positionX)&&ce.isNumber(e.positionY)&&(n=t.applyOffset({x:e.positionX,y:e.positionY,z:.2})),ce.isNumber(e.heading)&&(r=e.heading);var o=ce.attempt(function(){return e.stopReason});!ce.isError(o)&&o&&(i.mainDecision.STOP.position.set(n.x,n.y,n.z),i.mainDecision.STOP.rotation.set(Math.PI/2,r-Math.PI/2,0),i.mainDecision.STOP[o].visible=!0,i.mainDecision.STOP.visible=!0);var a=ce.attempt(function(){return e.changeLaneType});!ce.isError(a)&&a&&(i.mainDecision.CHANGE_LANE.position.set(n.x,n.y,n.z),i.mainDecision.CHANGE_LANE.rotation.set(Math.PI/2,r-Math.PI/2,0),i.mainDecision.CHANGE_LANE[a].visible=!0,i.mainDecision.CHANGE_LANE.visible=!0)}()}catch(e){p=!0,m=e}finally{try{!h&&v.return&&v.return()}finally{if(p)throw m}}}}},{key:\"updateObstacleDecision\",value:function(e,t,n){var i=this,r=e.object;if(f.default.options.showDecisionObstacle&&!ce.isEmpty(r)){for(var o={STOP:0,FOLLOW:0,YIELD:0,OVERTAKE:0},a=0;a=i.markers[u].length?(c=i.getObstacleDecision(u),i.markers[u].push(c),n.add(c)):c=i.markers[u][o[u]];var h=t.applyOffset(new d.Vector3(l.positionX,l.positionY,0));if(null===h)return\"continue\";if(c.position.set(h.x,h.y,.2),c.rotation.set(Math.PI/2,l.heading-Math.PI/2,0),c.visible=!0,o[u]++,\"YIELD\"===u||\"OVERTAKE\"===u){var f=c.connect;f.geometry.vertices[0].set(r[a].positionX-l.positionX,r[a].positionY-l.positionY,0),f.geometry.verticesNeedUpdate=!0,f.geometry.computeLineDistances(),f.geometry.lineDistancesNeedUpdate=!0,f.rotation.set(Math.PI/-2,0,Math.PI/2-l.heading)}}else if(\"NUDGE\"===u){var p=(0,ue.drawShapeFromPoints)(t.applyOffsetToArray(l.polygonPoint),new d.MeshBasicMaterial({color:16744192}),!1,2);i.nudges.push(p),n.add(p)}})(l)}}var u=null;for(u in de)(0,le.hideArrayObjects)(this.markers[u],o[u])}else{var c=null;for(c in de)(0,le.hideArrayObjects)(this.markers[c])}}},{key:\"getMainStopDecision\",value:function(){var e=this.getFence(\"MAIN_STOP\");for(var t in he){var n=(0,ue.drawImage)(he[t],1,1,4.2,3.6,0);e.add(n),e[t]=n}return e.visible=!1,e}},{key:\"getMainChangeLaneDecision\",value:function(){var e=this.getFence(\"MAIN_CHANGE_LANE\");for(var t in fe){var n=(0,ue.drawImage)(fe[t],1,1,1,2.8,0);e.add(n),e[t]=n}return e.visible=!1,e}},{key:\"getObstacleDecision\",value:function(e){var t=this.getFence(e);if(\"YIELD\"===e||\"OVERTAKE\"===e){var n=de[e],i=(0,ue.drawDashedLineFromPoints)([new d.Vector3(1,1,0),new d.Vector3(0,0,0)],n,2,2,1,30);t.add(i),t.connect=i}return t.visible=!1,t}},{key:\"getFence\",value:function(e){var t=null,n=null,i=new d.Object3D;switch(e){case\"STOP\":t=(0,ue.drawImage)(k.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(v.default,1,1,3,3.6,0),i.add(n);break;case\"FOLLOW\":t=(0,ue.drawImage)(C.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(b.default,1,1,3,3.6,0),i.add(n);break;case\"YIELD\":t=(0,ue.drawImage)(A.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(x.default,1,1,3,3.6,0),i.add(n);break;case\"OVERTAKE\":t=(0,ue.drawImage)(L.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(M.default,1,1,3,3.6,0),i.add(n);break;case\"MAIN_STOP\":t=(0,ue.drawImage)(E.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(m.default,1,1,3,3.6,0),i.add(n)}return i}}]),e}();t.default=pe},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),c=n(14),d=i(c),h=n(38),f=function(){function e(){(0,o.default)(this,e),this.circle=null,this.base=null}return(0,s.default)(e,[{key:\"update\",value:function(e,t,n){if(e.gps&&e.autoDrivingCar){if(!this.circle){var i=new u.MeshBasicMaterial({color:27391,transparent:!1,opacity:.5});this.circle=(0,h.drawCircle)(.2,i),n.add(this.circle)}if(!this.base){var r=d.default.hmi.vehicleParam;this.base=(0,h.drawSegmentsFromPoints)([new u.Vector3(r.frontEdgeToCenter,-r.leftEdgeToCenter,0),new u.Vector3(r.frontEdgeToCenter,r.rightEdgeToCenter,0),new u.Vector3(-r.backEdgeToCenter,r.rightEdgeToCenter,0),new u.Vector3(-r.backEdgeToCenter,-r.leftEdgeToCenter,0),new u.Vector3(r.frontEdgeToCenter,-r.leftEdgeToCenter,0)],27391,2,5),n.add(this.base)}var o=d.default.options.showPositionGps,a=t.applyOffset({x:e.gps.positionX,y:e.gps.positionY,z:0});this.circle.position.set(a.x,a.y,a.z),this.circle.visible=o,this.base.position.set(a.x,a.y,a.z),this.base.rotation.set(0,0,e.gps.heading),this.base.visible=o}}}]),e}();t.default=f},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),c=n(78),d=n(640),h=i(d),f=n(14),p=i(f),m=function(){function e(){var t=this;(0,o.default)(this,e),this.type=\"default\",this.loadedMap=null,this.updateMap=null,this.mesh=null,this.geometry=null,this.initialized=!1,this.inNaviMode=null,(0,c.loadTexture)(h.default,function(e){t.geometry=new u.PlaneGeometry(1,1),t.mesh=new u.Mesh(t.geometry,new u.MeshBasicMaterial({map:e}))})}return(0,s.default)(e,[{key:\"initialize\",value:function(e){return!!this.mesh&&(!(this.loadedMap===this.updateMap&&!this.render(e))&&(this.initialized=!0,!0))}},{key:\"loadGrid\",value:function(e){var t=this;(0,c.loadTexture)(h.default,function(n){console.log(\"using grid as ground image...\"),t.mesh.material.map=n,t.mesh.type=\"grid\",t.render(e)})}},{key:\"update\",value:function(e,t,n){var i=this;if(!0===this.initialized){var r=this.inNaviMode!==p.default.hmi.inNavigationMode;if(this.inNaviMode=p.default.hmi.inNavigationMode,this.inNaviMode?(this.mesh.type=\"grid\",r&&this.loadGrid(t)):this.mesh.type=\"refelction\",\"grid\"===this.mesh.type){var o=e.autoDrivingCar,a=t.applyOffset({x:o.positionX,y:o.positionY});this.mesh.position.set(a.x,a.y,0)}else if(this.loadedMap!==this.updateMap||r){var s=this.titleCaseToSnakeCase(this.updateMap),l=window.location,u=PARAMETERS.server.port,d=l.protocol+\"//\"+l.hostname+\":\"+u,h=d+\"/assets/map_data/\"+s+\"/background.jpg\";(0,c.loadTexture)(h,function(e){console.log(\"updating ground image with \"+s),i.mesh.material.map=e,i.mesh.type=\"reflection\",i.render(t,s)},function(e){i.loadGrid(t)}),this.loadedMap=this.updateMap}}}},{key:\"updateImage\",value:function(e){this.updateMap=e}},{key:\"render\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"defaults\";console.log(\"rendering ground image...\");var n=PARAMETERS.ground[t],i=n.xres,r=n.yres,o=n.mpp,a=n.xorigin,s=n.yorigin,l=e.applyOffset({x:a,y:s});return null===l?(console.warn(\"Cannot find position for ground mesh!\"),!1):(\"defaults\"===t&&(l={x:0,y:0}),this.mesh.position.set(l.x,l.y,0),this.mesh.scale.set(i*o,r*o,1),this.mesh.material.needsUpdate=!0,this.mesh.overdraw=!1,!0)}},{key:\"titleCaseToSnakeCase\",value:function(e){return e.replace(/\\s/g,\"_\").toLowerCase()}}]),e}();t.default=m},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(32),o=i(r),a=n(44),s=i(a),l=n(79),u=i(l),c=n(0),d=i(c),h=n(1),f=i(h),p=n(12),m=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(p),g=n(14),v=i(g),y=n(19),b=n(20),_=i(b),x=n(38),w=n(613),M=i(w),S=n(614),E=i(S),T=n(615),k=i(T),O=n(616),C=i(O),P=n(78),A={YELLOW:14329120,WHITE:13421772,CORAL:16744272,RED:16737894,GREEN:25600,BLUE:3188223,PURE_WHITE:16777215,DEFAULT:12632256},R={x:.006,y:.006,z:.006},L={x:.01,y:.01,z:.01},I=function(){function e(){(0,d.default)(this,e),this.hash=-1,this.data={},this.initialized=!1,this.elementKindsDrawn=\"\"}return(0,f.default)(e,[{key:\"diffMapElements\",value:function(e,t){var n=this,i={},r=!0;for(var o in e){(function(o){if(!n.shouldDrawThisElementKind(o))return\"continue\";i[o]=[];for(var a=e[o],s=t[o],l=0;l=2){var i=Math.atan2(t[n-1].y-t[0].y,t[n-1].x-t[0].x);return 1.5*Math.PI+i}return NaN}},{key:\"getHeadingFromStopLineAndTrafficLightBoundary\",value:function(e){var t=e.boundary.point;if(t.length<3)return console.warn(\"Cannot get three points from boundary, signal_id: \"+e.id.id),this.getHeadingFromStopLine(e);var n=t[0],i=t[1],r=t[2],o=(i.x-n.x)*(r.z-n.z)-(r.x-n.x)*(i.z-n.z),a=(i.y-n.y)*(r.z-n.z)-(r.y-n.y)*(i.z-n.z),s=-o*n.x-a*n.y,l=_.default.get(e,\"stopLine[0].segment[0].lineSegment.point\",\"\"),u=l.length;if(u<2)return console.warn(\"Cannot get any stop line, signal_id: \"+e.id.id),NaN;var c=l[u-1].y-l[0].y,d=l[0].x-l[u-1].x,h=-c*l[0].x-d*l[0].y;if(Math.abs(c*a-o*d)<1e-9)return console.warn(\"The signal orthogonal direction is parallel to the stop line,\",\"signal_id: \"+e.id.id),this.getHeadingFromStopLine(e);var f=(d*s-a*h)/(c*a-o*d),p=0!==d?(-c*f-h)/d:(-o*f-s)/a,m=Math.atan2(-o,a);return(m<0&&p>n.y||m>0&&p.2&&(v-=.7)})}}))}},{key:\"getPredCircle\",value:function(){var e=new u.MeshBasicMaterial({color:16777215,transparent:!1,opacity:.5}),t=(0,f.drawCircle)(.2,e);return this.predCircles.push(t),t}}]),e}();t.default=m},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=(function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e}(l),n(14)),c=i(u),d=n(38),h=(n(20),function(){function e(){(0,o.default)(this,e),this.routePaths=[],this.lastRoutingTime=-1}return(0,s.default)(e,[{key:\"update\",value:function(e,t,n,i){var r=this;this.routePaths.forEach(function(e){e.visible=c.default.options.showRouting}),this.lastRoutingTime!==e&&void 0!==t&&(this.lastRoutingTime=e,this.routePaths.forEach(function(e){i.remove(e),e.material.dispose(),e.geometry.dispose()}),t.forEach(function(e){var t=n.applyOffsetToArray(e.point),o=(0,d.drawThickBandFromPoints)(t,.3,16711680,.6,5);o.visible=c.default.options.showRouting,i.add(o),r.routePaths.push(o)}))}}]),e}());t.default=h},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12);!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e}(l);n(664);var u=n(652),c=i(u),d=n(14),h=(i(d),n(19)),f=i(h),p=n(38),m=function(){function e(){(0,o.default)(this,e),this.routePoints=[],this.parkingSpaceId=null,this.inEditingMode=!1}return(0,s.default)(e,[{key:\"isInEditingMode\",value:function(){return this.inEditingMode}},{key:\"enableEditingMode\",value:function(e,t){this.inEditingMode=!0;e.fov=PARAMETERS.camera.Map.fov,e.near=PARAMETERS.camera.Map.near,e.far=PARAMETERS.camera.Map.far,e.updateProjectionMatrix(),f.default.requestMapElementIdsByRadius(PARAMETERS.routingEditor.radiusOfMapRequest)}},{key:\"disableEditingMode\",value:function(e){this.inEditingMode=!1,this.removeAllRoutePoints(e),this.parkingSpaceId=null}},{key:\"addRoutingPoint\",value:function(e,t,n){var i=t.applyOffset({x:e.x,y:e.y}),r=(0,p.drawImage)(c.default,3.5,3.5,i.x,i.y,.3);this.routePoints.push(r),n.add(r)}},{key:\"setParkingSpaceId\",value:function(e){this.parkingSpaceId=e}},{key:\"removeLastRoutingPoint\",value:function(e){var t=this.routePoints.pop();t&&(e.remove(t),t.geometry&&t.geometry.dispose(),t.material&&t.material.dispose())}},{key:\"removeAllRoutePoints\",value:function(e){this.routePoints.forEach(function(t){e.remove(t),t.geometry&&t.geometry.dispose(),t.material&&t.material.dispose()}),this.routePoints=[]}},{key:\"sendRoutingRequest\",value:function(e,t){if(0===this.routePoints.length)return alert(\"Please provide at least an end point.\"),!1;var n=this.routePoints.map(function(e){return e.position.z=0,t.applyOffset(e.position,!0)}),i=n.length>1?n[0]:t.applyOffset(e,!0),r=n[n.length-1],o=n.length>1?n.slice(1,-1):[];return f.default.requestRoute(i,o,r,this.parkingSpaceId),!0}}]),e}();t.default=m},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),c=n(20),d={},h=!1,f=new u.FontLoader,p=\"fonts/gentilis_bold.typeface.json\";f.load(p,function(e){d.gentilis_bold=e,h=!0},function(e){console.log(p+e.loaded/e.total*100+\"% loaded\")},function(e){console.log(\"An error happened when loading \"+p)});var m=function(){function e(){(0,o.default)(this,e),this.charMeshes={},this.charPointers={}}return(0,s.default)(e,[{key:\"reset\",value:function(){this.charPointers={}}},{key:\"composeText\",value:function(e){if(!h)return null;for(var t=c.map(e,function(e){return e.charCodeAt(0)-32}),n=new u.Object3D,i=0;i0?this.charMeshes[r][0].clone():this.drawChar3D(e[i]),this.charMeshes[r].push(a));var s=0;switch(e[i]){case\"I\":case\"i\":s=.15;break;case\",\":s=.35;break;case\"/\":s=.15}a.position.set(.43*(i-t.length/2)+s,0,0),this.charPointers[r]++,n.add(a)}return n}},{key:\"drawChar3D\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.gentilis_bold,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.6,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:16771584,o=new u.TextGeometry(e,{font:t,size:n,height:i}),a=new u.MeshBasicMaterial({color:r});return new u.Mesh(o,a)}}]),e}();t.default=m},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=new h.default(e);for(var i in t)n.delete(i);return n}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var o=n(44),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(152),h=i(d),f=n(12),p=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(f),m=n(19),g=(i(m),n(78)),v=function(){function e(){(0,l.default)(this,e),this.mesh=!0,this.type=\"tile\",this.hash=-1,this.currentTiles={},this.initialized=!1,this.range=PARAMETERS.ground.defaults.tileRange,this.metadata=null,this.mapId=null,this.mapUrlPrefix=null}return(0,c.default)(e,[{key:\"initialize\",value:function(e,t){this.metadata={tileLength:t.tile*t.mpp,left:t.left,top:t.top,numCols:t.wnum,numRows:t.hnum,mpp:t.mpp,tile:t.tile,imageUrl:t.image_url},this.mapId=t.mapid,this.mapUrlPrefix=this.metadata.imageUrl?this.metadata.imageUrl+\"/\"+this.mapId:e+\"/map/getMapPic\",this.initialized=!0}},{key:\"removeDrewObject\",value:function(e,t){var n=this.currentTiles[e];n&&(t.remove(n),n.geometry&&n.geometry.dispose(),n.material&&n.material.dispose()),delete this.currentTiles[e]}},{key:\"appendTiles\",value:function(e,t,n,i,r){var o=this;if(!(t<0||t>this.metadata.numCols||e<0||e>this.metadata.numRows)){var a=this.metadata.imageUrl?this.mapUrlPrefix+\"/\"+this.metadata.mpp+\"_\"+e+\"_\"+t+\"_\"+this.metadata.tile+\".png\":this.mapUrlPrefix+\"?mapId=\"+this.mapId+\"&i=\"+e+\"&j=\"+t,s=i.applyOffset({x:this.metadata.left+(e+.5)*this.metadata.tileLength,y:this.metadata.top-(t+.5)*this.metadata.tileLength,z:0});(0,g.loadTexture)(a,function(e){var t=new p.Mesh(new p.PlaneGeometry(1,1),new p.MeshBasicMaterial({map:e}));t.position.set(s.x,s.y,s.z),t.scale.set(o.metadata.tileLength,o.metadata.tileLength,1),t.overdraw=!1,o.currentTiles[n]=t,r.add(t)})}}},{key:\"removeExpiredTiles\",value:function(e,t){for(var n in this.currentTiles)e.has(n)||this.removeDrewObject(n,t)}},{key:\"updateIndex\",value:function(e,t,n,i){if(e!==this.hash){this.hash=e,this.removeExpiredTiles(t,i);var o=r(t,this.currentTiles);if(!_.isEmpty(o)||!this.initialized){var s=!0,l=!1,u=void 0;try{for(var c,d=(0,a.default)(o);!(s=(c=d.next()).done);s=!0){var h=c.value;this.currentTiles[h]=null;var f=h.split(\",\"),p=parseInt(f[0]),m=parseInt(f[1]);this.appendTiles(p,m,h,n,i)}}catch(e){l=!0,u=e}finally{try{!s&&d.return&&d.return()}finally{if(l)throw u}}}}}},{key:\"update\",value:function(e,t,n){if(t.isInitialized()&&this.initialized){for(var i=e.autoDrivingCar.positionX,r=e.autoDrivingCar.positionY,o=Math.floor((i-this.metadata.left)/this.metadata.tileLength),a=Math.floor((this.metadata.top-r)/this.metadata.tileLength),s=new h.default,l=\"\",u=o-this.range;u<=o+this.range;u++)for(var c=a-this.range;c<=a+this.range;c++){var d=u+\",\"+c;s.add(d),l+=d}this.updateIndex(l,s,t,n)}}}]),e}();t.default=v},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!e)return[];for(var n=[],i=0;i0){if(Math.abs(n[n.length-1].x-o.x)+Math.abs(n[n.length-1].y-o.y)=PARAMETERS.planning.pathProperties.length&&(console.error(\"No enough property to render the planning path, use a duplicated property instead.\"),u=0);var c=PARAMETERS.planning.pathProperties[u];if(l[e]){var d=r(l[e],n);o.paths[e]=(0,m.drawThickBandFromPoints)(d,s*c.width,c.color,c.opacity,c.zOffset),i.add(o.paths[e])}}else o.paths[e]&&(o.paths[e].visible=!1);u+=1})}}]),e}();t.default=g},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,u.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,(\"value\"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var a,s,l=n(21),u=i(l),c=n(23),d=i(c),h=n(0),f=i(h),p=n(1),m=i(p),g=n(22),v=n(12),y=(a=function(){function e(){(0,f.default)(this,e),r(this,\"lastUpdatedTime\",s,this),this.data=this.initData()}return(0,m.default)(e,[{key:\"updateTime\",value:function(e){this.lastUpdatedTime=e}},{key:\"initData\",value:function(){return{trajectoryGraph:{plan:[],target:[],real:[],autoModeZone:[],steerCurve:[]},pose:{x:null,y:null,heading:null},speedGraph:{plan:[],target:[],real:[],autoModeZone:[]},curvatureGraph:{plan:[],target:[],real:[],autoModeZone:[]},accelerationGraph:{plan:[],target:[],real:[],autoModeZone:[]},stationErrorGraph:{error:[]},headingErrorGraph:{error:[]},lateralErrorGraph:{error:[]}}}},{key:\"updateErrorGraph\",value:function(e,t,n){if(n&&t&&e){var i=e.error.length>0&&t=80;i?e.error=[]:r&&e.error.shift();(0===e.error.length||t!==e.error[e.error.length-1].x)&&e.error.push({x:t,y:n})}}},{key:\"updateSteerCurve\",value:function(e,t,n){var i=t.steeringAngle/n.steerRatio,r=null;r=Math.abs(Math.tan(i))>1e-4?n.length/Math.tan(i):1e5;var o=t.heading,a=Math.abs(r),s=7200/(2*Math.PI*a)*Math.PI/180,l=null,u=null,c=null,d=null;r>=0?(c=Math.PI/2+o,d=o-Math.PI/2,l=0,u=s):(c=o-Math.PI/2,d=Math.PI/2+o,l=-s,u=0);var h=t.positionX+Math.cos(c)*a,f=t.positionY+Math.sin(c)*a,p=new v.EllipseCurve(h,f,a,a,l,u,!1,d);e.steerCurve=p.getPoints(25)}},{key:\"interpolateValueByCurrentTime\",value:function(e,t,n){if(\"timestampSec\"===n)return t;var i=e.map(function(e){return e.timestampSec}),r=e.map(function(e){return e[n]});return new v.LinearInterpolant(i,r,1,[]).evaluate(t)[0]}},{key:\"updateAdcStatusGraph\",value:function(e,t,n,i,r){var o=n.timestampSec,a=e.target.length>0&&o=80;if(a?(e.target=[],e.real=[],e.autoModeZone=[]):s&&(e.target.shift(),e.real.shift(),e.autoModeZone.shift()),0===e.target.length||o!==e.target[e.target.length-1].t){e.plan=t.map(function(e){return{x:e[i],y:e[r]}}),e.target.push({x:this.interpolateValueByCurrentTime(t,o,i),y:this.interpolateValueByCurrentTime(t,o,r),t:o}),e.real.push({x:n[i],y:n[r]});var l=\"DISENGAGE_NONE\"===n.disengageType;e.autoModeZone.push({x:n[i],y:l?n[r]:void 0})}}},{key:\"update\",value:function(e,t){var n=e.planningTrajectory,i=e.autoDrivingCar;if(n&&i&&(this.updateAdcStatusGraph(this.data.speedGraph,n,i,\"timestampSec\",\"speed\"),this.updateAdcStatusGraph(this.data.accelerationGraph,n,i,\"timestampSec\",\"speedAcceleration\"),this.updateAdcStatusGraph(this.data.curvatureGraph,n,i,\"timestampSec\",\"kappa\"),this.updateAdcStatusGraph(this.data.trajectoryGraph,n,i,\"positionX\",\"positionY\"),this.updateSteerCurve(this.data.trajectoryGraph,i,t),this.data.pose.x=i.positionX,this.data.pose.y=i.positionY,this.data.pose.heading=i.heading),e.controlData){var r=e.controlData,o=r.timestampSec;this.updateErrorGraph(this.data.stationErrorGraph,o,r.stationError),this.updateErrorGraph(this.data.lateralErrorGraph,o,r.lateralError),this.updateErrorGraph(this.data.headingErrorGraph,o,r.headingError),this.updateTime(o)}}}]),e}(),s=o(a.prototype,\"lastUpdatedTime\",[g.observable],{enumerable:!0,initializer:function(){return null}}),o(a.prototype,\"updateTime\",[g.action],(0,d.default)(a.prototype,\"updateTime\"),a.prototype),a);t.default=y},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,v.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,(\"value\"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var a,s,l,u,c,d,h,f,p,m,g=n(21),v=i(g),y=n(23),b=i(y),_=n(32),x=i(_),w=n(49),M=i(w),S=n(0),E=i(S),T=n(1),k=i(T),O=n(22),C=n(19),P=i(C),A=n(77),R=i(A),L=n(37),I=i(L),D=(a=function(){function e(){(0,E.default)(this,e),this.modes=[],r(this,\"currentMode\",s,this),this.vehicles=[],r(this,\"currentVehicle\",l,this),this.defaultVehicleSize={height:1.48,width:2.11,length:4.933},this.vehicleParam={frontEdgeToCenter:3.89,backEdgeToCenter:1.04,leftEdgeToCenter:1.055,rightEdgeToCenter:1.055,height:1.48,width:2.11,length:4.933,steerRatio:16},this.maps=[],r(this,\"currentMap\",u,this),r(this,\"moduleStatus\",c,this),r(this,\"componentStatus\",d,this),r(this,\"enableStartAuto\",h,this),this.displayName={},this.utmZoneId=10,r(this,\"dockerImage\",f,this),r(this,\"isCoDriver\",p,this),r(this,\"isMute\",m,this)}return(0,k.default)(e,[{key:\"toggleCoDriverFlag\",value:function(){this.isCoDriver=!this.isCoDriver}},{key:\"toggleMuteFlag\",value:function(){this.isMute=!this.isMute,R.default.setMute(this.isMute)}},{key:\"updateStatus\",value:function(e){if(e.dockerImage&&(this.dockerImage=e.dockerImage),e.utmZoneId&&(this.utmZoneId=e.utmZoneId),e.modes&&(this.modes=e.modes.sort()),e.currentMode&&(this.currentMode=e.currentMode),e.maps&&(this.maps=e.maps.sort()),e.currentMap&&(this.currentMap=e.currentMap),e.vehicles&&(this.vehicles=e.vehicles.sort()),e.currentVehicle&&(this.currentVehicle=e.currentVehicle),e.modules){(0,M.default)((0,x.default)(e.modules).sort())!==(0,M.default)(this.moduleStatus.keys().sort())&&this.moduleStatus.clear();for(var t in e.modules)this.moduleStatus.set(t,e.modules[t])}if(e.monitoredComponents){(0,M.default)((0,x.default)(e.monitoredComponents).sort())!==(0,M.default)(this.componentStatus.keys().sort())&&this.componentStatus.clear();for(var n in e.monitoredComponents)this.componentStatus.set(n,e.monitoredComponents[n])}\"string\"==typeof e.passengerMsg&&R.default.speakRepeatedly(e.passengerMsg)}},{key:\"update\",value:function(e){this.enableStartAuto=\"READY_TO_ENGAGE\"===e.engageAdvice}},{key:\"updateVehicleParam\",value:function(e){this.vehicleParam=e,I.default.adc.resizeCarScale(this.vehicleParam.length/this.defaultVehicleSize.length,this.vehicleParam.width/this.defaultVehicleSize.width,this.vehicleParam.height/this.defaultVehicleSize.height)}},{key:\"toggleModule\",value:function(e){this.moduleStatus.set(e,!this.moduleStatus.get(e));var t=this.moduleStatus.get(e)?\"START_MODULE\":\"STOP_MODULE\";P.default.executeModuleCommand(e,t)}},{key:\"inNavigationMode\",get:function(){return\"Navigation\"===this.currentMode}}]),e}(),s=o(a.prototype,\"currentMode\",[O.observable],{enumerable:!0,initializer:function(){return\"none\"}}),l=o(a.prototype,\"currentVehicle\",[O.observable],{enumerable:!0,initializer:function(){return\"none\"}}),u=o(a.prototype,\"currentMap\",[O.observable],{enumerable:!0,initializer:function(){return\"none\"}}),c=o(a.prototype,\"moduleStatus\",[O.observable],{enumerable:!0,initializer:function(){return O.observable.map()}}),d=o(a.prototype,\"componentStatus\",[O.observable],{enumerable:!0,initializer:function(){return O.observable.map()}}),h=o(a.prototype,\"enableStartAuto\",[O.observable],{enumerable:!0,initializer:function(){return!1}}),f=o(a.prototype,\"dockerImage\",[O.observable],{enumerable:!0,initializer:function(){return\"unknown\"}}),p=o(a.prototype,\"isCoDriver\",[O.observable],{enumerable:!0,initializer:function(){return!1}}),m=o(a.prototype,\"isMute\",[O.observable],{enumerable:!0,initializer:function(){return!1}}),o(a.prototype,\"toggleCoDriverFlag\",[O.action],(0,b.default)(a.prototype,\"toggleCoDriverFlag\"),a.prototype),o(a.prototype,\"toggleMuteFlag\",[O.action],(0,b.default)(a.prototype,\"toggleMuteFlag\"),a.prototype),o(a.prototype,\"updateStatus\",[O.action],(0,b.default)(a.prototype,\"updateStatus\"),a.prototype),o(a.prototype,\"update\",[O.action],(0,b.default)(a.prototype,\"update\"),a.prototype),o(a.prototype,\"toggleModule\",[O.action],(0,b.default)(a.prototype,\"toggleModule\"),a.prototype),o(a.prototype,\"inNavigationMode\",[O.computed],(0,b.default)(a.prototype,\"inNavigationMode\"),a.prototype),a);t.default=D},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,u.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,(\"value\"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var a,s,l=n(21),u=i(l),c=n(23),d=i(c),h=n(0),f=i(h),p=n(1),m=i(p),g=n(22),v=(a=function(){function e(){(0,f.default)(this,e),r(this,\"lastUpdatedTime\",s,this),this.data={}}return(0,m.default)(e,[{key:\"updateTime\",value:function(e){this.lastUpdatedTime=e}},{key:\"updateLatencyGraph\",value:function(e,t){if(t){var n=t.timestampSec,i=this.data[e];if(i.length>0){var r=i[0].x,o=i[i.length-1].x,a=n-r;n300&&i.shift()}0!==i.length&&i[i.length-1].x===n||i.push({x:n,y:t.totalTimeMs})}}},{key:\"update\",value:function(e){if(e.latency){var t=0;for(var n in e.latency)n in this.data||(this.data[n]=[]),this.updateLatencyGraph(n,e.latency[n]),t=Math.max(e.latency[n].timestampSec,t);this.updateTime(t)}}}]),e}(),s=o(a.prototype,\"lastUpdatedTime\",[g.observable],{enumerable:!0,initializer:function(){return 0}}),o(a.prototype,\"updateTime\",[g.action],(0,d.default)(a.prototype,\"updateTime\"),a.prototype),a);t.default=v},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,b.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,(\"value\"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function a(e){return 10*Math.round(e/10)}function s(e){switch(e){case\"DISENGAGE_MANUAL\":return\"MANUAL\";case\"DISENGAGE_NONE\":return\"AUTO\";case\"DISENGAGE_EMERGENCY\":return\"DISENGAGED\";case\"DISENGAGE_AUTO_STEER_ONLY\":return\"AUTO STEER\";case\"DISENGAGE_AUTO_SPEED_ONLY\":return\"AUTO SPEED\";case\"DISENGAGE_CHASSIS_ERROR\":return\"CHASSIS ERROR\";default:return\"UNKNOWN\"}}function l(e){return\"DISENGAGE_NONE\"===e||\"DISENGAGE_AUTO_STEER_ONLY\"===e||\"DISENGAGE_AUTO_SPEED_ONLY\"===e}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var u,c,d,h,f,p,m,g,v,y=n(21),b=i(y),_=n(23),x=i(_),w=n(0),M=i(w),S=n(1),E=i(S),T=n(22),k=(u=function(){function e(){(0,M.default)(this,e),r(this,\"throttlePercent\",c,this),r(this,\"brakePercent\",d,this),r(this,\"speed\",h,this),r(this,\"steeringAngle\",f,this),r(this,\"steeringPercentage\",p,this),r(this,\"drivingMode\",m,this),r(this,\"isAutoMode\",g,this),r(this,\"turnSignal\",v,this)}return(0,E.default)(e,[{key:\"update\",value:function(e){e.autoDrivingCar&&(void 0!==e.autoDrivingCar.throttlePercentage&&(this.throttlePercent=a(e.autoDrivingCar.throttlePercentage)),void 0!==e.autoDrivingCar.brakePercentage&&(this.brakePercent=a(e.autoDrivingCar.brakePercentage)),void 0!==e.autoDrivingCar.speed&&(this.speed=e.autoDrivingCar.speed),void 0===e.autoDrivingCar.steeringPercentage||isNaN(e.autoDrivingCar.steeringPercentage)||(this.steeringPercentage=Math.round(e.autoDrivingCar.steeringPercentage)),void 0===e.autoDrivingCar.steeringAngle||isNaN(e.autoDrivingCar.steeringAngle)||(this.steeringAngle=-Math.round(180*e.autoDrivingCar.steeringAngle/Math.PI)),void 0!==e.autoDrivingCar.disengageType&&(this.drivingMode=s(e.autoDrivingCar.disengageType),this.isAutoMode=l(e.autoDrivingCar.disengageType)),void 0!==e.autoDrivingCar.currentSignal&&(this.turnSignal=e.autoDrivingCar.currentSignal))}}]),e}(),c=o(u.prototype,\"throttlePercent\",[T.observable],{enumerable:!0,initializer:function(){return 0}}),d=o(u.prototype,\"brakePercent\",[T.observable],{enumerable:!0,initializer:function(){return 0}}),h=o(u.prototype,\"speed\",[T.observable],{enumerable:!0,initializer:function(){return 0}}),f=o(u.prototype,\"steeringAngle\",[T.observable],{enumerable:!0,initializer:function(){return 0}}),p=o(u.prototype,\"steeringPercentage\",[T.observable],{enumerable:!0,initializer:function(){return 0}}),m=o(u.prototype,\"drivingMode\",[T.observable],{enumerable:!0,initializer:function(){return\"UNKNOWN\"}}),g=o(u.prototype,\"isAutoMode\",[T.observable],{enumerable:!0,initializer:function(){return!1}}),v=o(u.prototype,\"turnSignal\",[T.observable],{enumerable:!0,initializer:function(){return\"\"}}),o(u.prototype,\"update\",[T.action],(0,x.default)(u.prototype,\"update\"),u.prototype),u);t.default=k},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,c.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,(\"value\"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var a,s,l,u=n(21),c=i(u),d=n(23),h=i(d),f=n(49),p=i(f),m=n(79),g=i(m),v=n(0),y=i(v),b=n(1),_=i(b),x=n(22),w=(a=function(){function e(){(0,y.default)(this,e),r(this,\"hasActiveNotification\",s,this),r(this,\"items\",l,this),this.lastUpdateTimestamp=0,this.refreshTimer=null}return(0,_.default)(e,[{key:\"startRefresh\",value:function(){var e=this;this.clearRefreshTimer(),this.refreshTimer=setInterval(function(){Date.now()-e.lastUpdateTimestamp>6e3&&(e.setHasActiveNotification(!1),e.clearRefreshTimer())},500)}},{key:\"clearRefreshTimer\",value:function(){null!==this.refreshTimer&&(clearInterval(this.refreshTimer),this.refreshTimer=null)}},{key:\"setHasActiveNotification\",value:function(e){this.hasActiveNotification=e}},{key:\"update\",value:function(e){if(e.monitor||e.notification){var t=[];e.notification?t=e.notification.reverse().map(function(e){return(0,g.default)(e.item,{timestampMs:1e3*e.timestampSec})}):e.monitor&&(t=e.monitor.item),this.hasNewNotification(this.items,t)&&(this.hasActiveNotification=!0,this.lastUpdateTimestamp=Date.now(),this.items.replace(t),this.startRefresh())}}},{key:\"hasNewNotification\",value:function(e,t){return(0!==e.length||0!==t.length)&&(0===e.length||0===t.length||(0,p.default)(this.items[0])!==(0,p.default)(t[0]))}},{key:\"insert\",value:function(e,t,n){var i=[];i.push({msg:t,logLevel:e,timestampMs:n});for(var r=0;r10||e<-10?100*e/Math.abs(e):e}},{key:\"extractDataPoints\",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!e)return[];var o=e.map(function(e){return{x:e[t]+r,y:e[n]}});return i&&e.length&&o.push({x:e[0][t],y:e[0][n]}),o}},{key:\"updateSLFrame\",value:function(e){var t=this.data.slGraph,n=e[0].sampledS;t.mapLowerBound=this.generateDataPoints(n,e[0].mapLowerBound,this.transformMapBound),t.mapUpperBound=this.generateDataPoints(n,e[0].mapUpperBound,this.transformMapBound),t.staticObstacleLowerBound=this.generateDataPoints(n,e[0].staticObstacleLowerBound),t.staticObstacleUpperBound=this.generateDataPoints(n,e[0].staticObstacleUpperBound),t.dynamicObstacleLowerBound=this.generateDataPoints(n,e[0].dynamicObstacleLowerBound),t.dynamicObstacleUpperBound=this.generateDataPoints(n,e[0].dynamicObstacleUpperBound),t.pathLine=this.extractDataPoints(e[0].slPath,\"s\",\"l\");var i=e[1].aggregatedBoundaryS;t.aggregatedBoundaryLow=this.generateDataPoints(i,e[1].aggregatedBoundaryLow),t.aggregatedBoundaryHigh=this.generateDataPoints(i,e[1].aggregatedBoundaryHigh)}},{key:\"updateSTGraph\",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=(0,f.default)(e);!(t=(r=o.next()).done);t=!0){var a=r.value;this.data.stGraph[a.name]={obstaclesBoundary:{}};var s=this.data.stGraph[a.name];if(a.boundary){var l=!0,u=!1,c=void 0;try{for(var d,h=(0,f.default)(a.boundary);!(l=(d=h.next()).done);l=!0){var p=d.value,m=p.type.substring(\"ST_BOUNDARY_TYPE_\".length),g=p.name+\"_\"+m;s.obstaclesBoundary[g]=this.extractDataPoints(p.point,\"t\",\"s\",!0)}}catch(e){u=!0,c=e}finally{try{!l&&h.return&&h.return()}finally{if(u)throw c}}}s.curveLine=this.extractDataPoints(a.speedProfile,\"t\",\"s\"),a.kernelCruiseRef&&(s.kernelCruise=this.generateDataPoints(a.kernelCruiseRef.t,a.kernelCruiseRef.cruiseLineS)),a.kernelFollowRef&&(s.kernelFollow=this.generateDataPoints(a.kernelFollowRef.t,a.kernelFollowRef.followLineS))}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}}},{key:\"updateSTSpeedGraph\",value:function(e){var t=this,n=!0,i=!1,r=void 0;try{for(var o,a=(0,f.default)(e);!(n=(o=a.next()).done);n=!0){var s=o.value;this.data.stSpeedGraph[s.name]={};var l=this.data.stSpeedGraph[s.name];l.limit=this.extractDataPoints(s.speedLimit,\"s\",\"v\"),l.planned=this.extractDataPoints(s.speedProfile,\"s\",\"v\"),s.speedConstraint&&function(){var e=s.speedProfile.map(function(e){return e.t}),n=s.speedProfile.map(function(e){return e.s}),i=new b.LinearInterpolant(e,n,1,[]),r=s.speedConstraint.t.map(function(e){return i.evaluate(e)[0]});l.lowerConstraint=t.generateDataPoints(r,s.speedConstraint.lowerBound),l.upperConstraint=t.generateDataPoints(r,s.speedConstraint.upperBound)}()}}catch(e){i=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw r}}}},{key:\"updateSpeed\",value:function(e,t){var n=this.data.speedGraph;if(e){var i=!0,r=!1,o=void 0;try{for(var a,s=(0,f.default)(e);!(i=(a=s.next()).done);i=!0){var l=a.value;n[l.name]=this.extractDataPoints(l.speedPoint,\"t\",\"v\")}}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}}t&&(n.finalSpeed=this.extractDataPoints(t,\"timestampSec\",\"speed\",!1,-this.planningTime))}},{key:\"updateAccelerationGraph\",value:function(e){var t=this.data.accelerationGraph;e&&(t.acceleration=this.extractDataPoints(e,\"timestampSec\",\"speedAcceleration\",!1,-this.planningTime))}},{key:\"updateThetaGraph\",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=(0,f.default)(e);!(t=(r=o.next()).done);t=!0){var a=r.value,s=\"planning_reference_line\"===a.name?\"ReferenceLine\":a.name;this.data.thetaGraph[s]=this.extractDataPoints(a.pathPoint,\"s\",\"theta\")}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}}},{key:\"updateKappaGraph\",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=(0,f.default)(e);!(t=(r=o.next()).done);t=!0){var a=r.value,s=\"planning_reference_line\"===a.name?\"ReferenceLine\":a.name;this.data.kappaGraph[s]=this.extractDataPoints(a.pathPoint,\"s\",\"kappa\")}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}}},{key:\"updateDkappaGraph\",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=(0,f.default)(e);!(t=(r=o.next()).done);t=!0){var a=r.value,s=\"planning_reference_line\"===a.name?\"ReferenceLine\":a.name;this.data.dkappaGraph[s]=this.extractDataPoints(a.pathPoint,\"s\",\"dkappa\")}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}}},{key:\"updateDpPolyGraph\",value:function(e){var t=this.data.dpPolyGraph;if(e.sampleLayer){t.sampleLayer=[];var n=!0,i=!1,r=void 0;try{for(var o,a=(0,f.default)(e.sampleLayer);!(n=(o=a.next()).done);n=!0){o.value.slPoint.map(function(e){var n=e.s,i=e.l;t.sampleLayer.push({x:n,y:i})})}}catch(e){i=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw r}}}e.minCostPoint&&(t.minCostPoint=this.extractDataPoints(e.minCostPoint,\"s\",\"l\"))}},{key:\"updateScenario\",value:function(e,t){if(e){var n=this.scenarioHistory.length>0?this.scenarioHistory[this.scenarioHistory.length-1]:{};n.time&&t5&&this.scenarioHistory.shift())}}},{key:\"update\",value:function(e){var t=e.planningData;if(t){var n=e.latency.planning.timestampSec;if(this.planningTime===n)return;if(t.scenario&&this.updateScenario(t.scenario,n),this.chartData=[],this.data=this.initData(),t.chart){var i=!0,r=!1,o=void 0;try{for(var a,s=(0,f.default)(t.chart);!(i=(a=s.next()).done);i=!0){var l=a.value;this.chartData.push((0,_.parseChartDataFromProtoBuf)(l))}}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}}t.slFrame&&t.slFrame.length>=2&&this.updateSLFrame(t.slFrame),t.stGraph&&(this.updateSTGraph(t.stGraph),this.updateSTSpeedGraph(t.stGraph)),t.speedPlan&&e.planningTrajectory&&this.updateSpeed(t.speedPlan,e.planningTrajectory),e.planningTrajectory&&this.updateAccelerationGraph(e.planningTrajectory),t.path&&(this.updateKappaGraph(t.path),this.updateDkappaGraph(t.path),this.updateThetaGraph(t.path)),t.dpPolyGraph&&this.updateDpPolyGraph(t.dpPolyGraph),this.updatePlanningTime(n)}}}]),e}(),s=o(a.prototype,\"planningTime\",[y.observable],{enumerable:!0,initializer:function(){return null}}),o(a.prototype,\"updatePlanningTime\",[y.action],(0,d.default)(a.prototype,\"updatePlanningTime\"),a.prototype),a);t.default=x},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,p.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,(\"value\"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var a,s,l,u,c,d,h,f=n(21),p=i(f),m=n(23),g=i(m),v=n(0),y=i(v),b=n(1),_=i(b),x=n(22);n(671);var w=(a=function(){function e(){(0,y.default)(this,e),this.FPS=10,this.msPerFrame=100,this.recordId=null,this.mapId=null,r(this,\"numFrames\",s,this),r(this,\"requestedFrame\",l,this),r(this,\"retrievedFrame\",u,this),r(this,\"isPlaying\",c,this),r(this,\"isSeeking\",d,this),r(this,\"seekingFrame\",h,this)}return(0,_.default)(e,[{key:\"setMapId\",value:function(e){this.mapId=e}},{key:\"setRecordId\",value:function(e){this.recordId=e}},{key:\"setNumFrames\",value:function(e){this.numFrames=parseInt(e)}},{key:\"setPlayRate\",value:function(e){if(\"number\"==typeof e&&e>0){var t=1/this.FPS*1e3;this.msPerFrame=t/e}}},{key:\"initialized\",value:function(){return this.numFrames&&null!==this.recordId&&null!==this.mapId}},{key:\"hasNext\",value:function(){return this.initialized()&&this.requestedFrame0&&e<=this.numFrames&&(this.seekingFrame=e,this.requestedFrame=e-1,this.isSeeking=!0)}},{key:\"resetFrame\",value:function(){this.requestedFrame=0,this.retrievedFrame=0,this.seekingFrame=1}},{key:\"shouldProcessFrame\",value:function(e){return!(!e||!e.sequenceNum||this.seekingFrame!==e.sequenceNum||!this.isPlaying&&!this.isSeeking)&&(this.retrievedFrame=e.sequenceNum,this.isSeeking=!1,this.seekingFrame++,!0)}},{key:\"currentFrame\",get:function(){return this.retrievedFrame}},{key:\"replayComplete\",get:function(){return this.seekingFrame>this.numFrames}}]),e}(),s=o(a.prototype,\"numFrames\",[x.observable],{enumerable:!0,initializer:function(){return 0}}),l=o(a.prototype,\"requestedFrame\",[x.observable],{enumerable:!0,initializer:function(){return 0}}),u=o(a.prototype,\"retrievedFrame\",[x.observable],{enumerable:!0,initializer:function(){return 0}}),c=o(a.prototype,\"isPlaying\",[x.observable],{enumerable:!0,initializer:function(){return!1}}),d=o(a.prototype,\"isSeeking\",[x.observable],{enumerable:!0,initializer:function(){return!0}}),h=o(a.prototype,\"seekingFrame\",[x.observable],{enumerable:!0,initializer:function(){return 1}}),o(a.prototype,\"next\",[x.action],(0,g.default)(a.prototype,\"next\"),a.prototype),o(a.prototype,\"currentFrame\",[x.computed],(0,g.default)(a.prototype,\"currentFrame\"),a.prototype),o(a.prototype,\"replayComplete\",[x.computed],(0,g.default)(a.prototype,\"replayComplete\"),a.prototype),o(a.prototype,\"setPlayAction\",[x.action],(0,g.default)(a.prototype,\"setPlayAction\"),a.prototype),o(a.prototype,\"seekFrame\",[x.action],(0,g.default)(a.prototype,\"seekFrame\"),a.prototype),o(a.prototype,\"resetFrame\",[x.action],(0,g.default)(a.prototype,\"resetFrame\"),a.prototype),o(a.prototype,\"shouldProcessFrame\",[x.action],(0,g.default)(a.prototype,\"shouldProcessFrame\"),a.prototype),a);t.default=w},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,d.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,(\"value\"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var a,s,l,u,c=n(21),d=i(c),h=n(23),f=i(h),p=n(0),m=i(p),g=n(1),v=i(g),y=n(22),b=n(37),x=i(b),w=n(142),M=i(w),S=(a=function(){function e(){(0,m.default)(this,e),r(this,\"defaultRoutingEndPoint\",s,this),r(this,\"defaultParkingSpaceId\",l,this),r(this,\"currentPOI\",u,this)}return(0,v.default)(e,[{key:\"updateDefaultRoutingEndPoint\",value:function(e){if(void 0!==e.poi){this.defaultRoutingEndPoint={},this.defaultParkingSpaceId={};for(var t=0;t150&&console.log(\"Last sim_world_update took \"+(e.timestamp-this.lastUpdateTimestamp)+\"ms\"),this.lastUpdateTimestamp=e.timestamp,-1!==this.lastSeqNum&&e.world.sequenceNum>this.lastSeqNum+1&&console.debug(\"Last seq: \"+this.lastSeqNum+\". New seq: \"+e.world.sequenceNum+\".\"),this.lastSeqNum=e.world.sequenceNum}},{key:\"startPlayback\",value:function(e){var t=this;clearInterval(this.requestTimer),this.requestTimer=setInterval(function(){if(t.websocket.readyState===t.websocket.OPEN&&d.default.playback.initialized()){if(!d.default.playback.hasNext())return clearInterval(t.requestTimer),void(t.requestTimer=null);t.requestSimulationWorld(d.default.playback.recordId,d.default.playback.next())}},e/2),clearInterval(this.processTimer),this.processTimer=setInterval(function(){if(d.default.playback.initialized()){var e=d.default.playback.seekingFrame;e in t.frameData&&t.processSimWorld(t.frameData[e]),d.default.playback.replayComplete&&(clearInterval(t.processTimer),t.processTimer=null)}},e)}},{key:\"pausePlayback\",value:function(){clearInterval(this.requestTimer),clearInterval(this.processTimer),this.requestTimer=null,this.processTimer=null}},{key:\"requestGroundMeta\",value:function(e){this.websocket.send((0,o.default)({type:\"RetrieveGroundMeta\",mapId:e}))}},{key:\"processSimWorld\",value:function(e){d.default.playback.shouldProcessFrame(e)&&(e.routePath||(e.routePath=this.routingTime2Path[e.routingTime]),d.default.updateTimestamp(e.timestamp),f.default.maybeInitializeOffest(e.autoDrivingCar.positionX,e.autoDrivingCar.positionY),f.default.updateWorld(e),d.default.meters.update(e),d.default.monitor.update(e),d.default.trafficSignal.update(e))}},{key:\"requestFrameCount\",value:function(e){this.websocket.send((0,o.default)({type:\"RetrieveFrameCount\",recordId:e}))}},{key:\"requestSimulationWorld\",value:function(e,t){t in this.frameData?d.default.playback.isSeeking&&this.processSimWorld(this.frameData[t]):this.websocket.send((0,o.default)({type:\"RequestSimulationWorld\",recordId:e,frameId:t}))}},{key:\"requestRoutePath\",value:function(e,t){this.websocket.send((0,o.default)({type:\"requestRoutePath\",recordId:e,frameId:t}))}}]),e}();t.default=p},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(49),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(14),d=i(c),h=n(37),f=i(h),p=n(100),m=i(p),g=function(){function e(t){(0,s.default)(this,e),this.serverAddr=t,this.websocket=null,this.worker=new m.default}return(0,u.default)(e,[{key:\"initialize\",value:function(){var e=this;try{this.websocket=new WebSocket(this.serverAddr),this.websocket.binaryType=\"arraybuffer\"}catch(t){return console.error(\"Failed to establish a connection: \"+t),void setTimeout(function(){e.initialize()},1e3)}this.websocket.onmessage=function(t){e.worker.postMessage({source:\"point_cloud\",data:t.data})},this.websocket.onclose=function(t){console.log(\"WebSocket connection closed with code: \"+t.code),e.initialize()},this.worker.onmessage=function(e){\"PointCloudStatus\"===e.data.type?(d.default.setOptionStatus(\"showPointCloud\",e.data.enabled),!1===d.default.options.showPointCloud&&f.default.updatePointCloud({num:[]})):!0===d.default.options.showPointCloud&&void 0!==e.data.num&&f.default.updatePointCloud(e.data)},clearInterval(this.timer),this.timer=setInterval(function(){e.websocket.readyState===e.websocket.OPEN&&!0===d.default.options.showPointCloud&&e.websocket.send((0,o.default)({type:\"RequestPointCloud\"}))},200)}},{key:\"togglePointCloud\",value:function(e){this.websocket.send((0,o.default)({type:\"TogglePointCloud\",enable:e})),!1===d.default.options.showPointCloud&&f.default.updatePointCloud({num:[]})}}]),e}();t.default=g},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(153),o=i(r),a=n(49),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(14),f=i(h),p=n(37),m=i(p),g=n(142),v=i(g),y=n(77),b=i(y),_=n(100),x=i(_),w=function(){function e(t){(0,u.default)(this,e),this.serverAddr=t,this.websocket=null,this.simWorldUpdatePeriodMs=100,this.simWorldLastUpdateTimestamp=0,this.mapUpdatePeriodMs=1e3,this.mapLastUpdateTimestamp=0,this.updatePOI=!0,this.routingTime=void 0,this.currentMode=null,this.worker=new x.default}return(0,d.default)(e,[{key:\"initialize\",value:function(){var e=this;try{this.websocket=new WebSocket(this.serverAddr),this.websocket.binaryType=\"arraybuffer\"}catch(t){return console.error(\"Failed to establish a connection: \"+t),void setTimeout(function(){e.initialize()},1e3)}this.websocket.onmessage=function(t){e.worker.postMessage({source:\"realtime\",data:t.data})},this.worker.onmessage=function(t){var n=t.data;switch(n.type){case\"HMIStatus\":f.default.hmi.updateStatus(n.data),m.default.updateGroundImage(f.default.hmi.currentMap);break;case\"VehicleParam\":f.default.hmi.updateVehicleParam(n.data);break;case\"SimControlStatus\":f.default.setOptionStatus(\"enableSimControl\",n.enabled);break;case\"SimWorldUpdate\":e.checkMessage(n);var i=e.currentMode!==f.default.hmi.currentMode;e.currentMode=f.default.hmi.currentMode,f.default.hmi.inNavigationMode?(v.default.isInitialized()&&v.default.update(n),n.autoDrivingCar.positionX=0,n.autoDrivingCar.positionY=0,n.autoDrivingCar.heading=0,m.default.coordinates.setSystem(\"FLU\"),e.mapUpdatePeriodMs=100):(m.default.coordinates.setSystem(\"ENU\"),e.mapUpdatePeriodMs=1e3),f.default.update(n),m.default.maybeInitializeOffest(n.autoDrivingCar.positionX,n.autoDrivingCar.positionY,i),m.default.updateWorld(n),e.updateMapIndex(n),e.routingTime!==n.routingTime&&(e.requestRoutePath(),e.routingTime=n.routingTime);break;case\"MapElementIds\":m.default.updateMapIndex(n.mapHash,n.mapElementIds,n.mapRadius);break;case\"DefaultEndPoint\":f.default.routeEditingManager.updateDefaultRoutingEndPoint(n);break;case\"RoutePath\":m.default.updateRouting(n.routingTime,n.routePath)}},this.websocket.onclose=function(t){console.log(\"WebSocket connection closed, close_code: \"+t.code);var n=(new Date).getTime(),i=n-e.simWorldLastUpdateTimestamp,r=n-f.default.monitor.lastUpdateTimestamp;if(0!==e.simWorldLastUpdateTimestamp&&i>1e4&&r>2e3){var o=\"Connection to the server has been lost.\";f.default.monitor.insert(\"FATAL\",o,n),b.default.getCurrentText()===o&&b.default.isSpeaking()||b.default.speakOnce(o)}e.initialize()},clearInterval(this.timer),this.timer=setInterval(function(){if(e.websocket.readyState===e.websocket.OPEN){e.updatePOI&&(e.requestDefaultRoutingEndPoint(),e.updatePOI=!1);var t=f.default.options.showPNCMonitor;e.websocket.send((0,s.default)({type:\"RequestSimulationWorld\",planning:t}))}},this.simWorldUpdatePeriodMs)}},{key:\"updateMapIndex\",value:function(e){var t=new Date,n=t-this.mapLastUpdateTimestamp;e.mapHash&&n>=this.mapUpdatePeriodMs&&(m.default.updateMapIndex(e.mapHash,e.mapElementIds,e.mapRadius),this.mapLastUpdateTimestamp=t)}},{key:\"checkMessage\",value:function(e){var t=(new Date).getTime(),n=t-this.simWorldLastUpdateTimestamp;0!==this.simWorldLastUpdateTimestamp&&n>200&&console.warn(\"Last sim_world_update took \"+n+\"ms\"),this.secondLastSeqNum===e.sequenceNum&&console.warn(\"Received duplicate simulation_world:\",this.lastSeqNum),this.secondLastSeqNum=this.lastSeqNum,this.lastSeqNum=e.sequenceNum,this.simWorldLastUpdateTimestamp=t}},{key:\"requestMapElementIdsByRadius\",value:function(e){this.websocket.send((0,s.default)({type:\"RetrieveMapElementIdsByRadius\",radius:e}))}},{key:\"requestRoute\",value:function(e,t,n,i){var r={type:\"SendRoutingRequest\",start:e,end:n,waypoint:t};i&&(r.parkingSpaceId=i),this.websocket.send((0,s.default)(r))}},{key:\"requestDefaultRoutingEndPoint\",value:function(){this.websocket.send((0,s.default)({type:\"GetDefaultEndPoint\"}))}},{key:\"resetBackend\",value:function(){this.websocket.send((0,s.default)({type:\"Reset\"}))}},{key:\"dumpMessages\",value:function(){this.websocket.send((0,s.default)({type:\"Dump\"}))}},{key:\"changeSetupMode\",value:function(e){this.websocket.send((0,s.default)({type:\"HMIAction\",action:\"CHANGE_MODE\",value:e}))}},{key:\"changeMap\",value:function(e){this.websocket.send((0,s.default)({type:\"HMIAction\",action:\"CHANGE_MAP\",value:e})),this.updatePOI=!0}},{key:\"changeVehicle\",value:function(e){this.websocket.send((0,s.default)({type:\"HMIAction\",action:\"CHANGE_VEHICLE\",value:e}))}},{key:\"executeModeCommand\",value:function(e){if(![\"SETUP_MODE\",\"RESET_MODE\",\"ENTER_AUTO_MODE\"].includes(e))return void console.error(\"Unknown mode command found:\",e);this.websocket.send((0,s.default)({type:\"HMIAction\",action:e}))}},{key:\"executeModuleCommand\",value:function(e,t){if(![\"START_MODULE\",\"STOP_MODULE\"].includes(t))return void console.error(\"Unknown module command found:\",t);this.websocket.send((0,s.default)({type:\"HMIAction\",action:t,value:e}))}},{key:\"submitDriveEvent\",value:function(e,t,n){this.websocket.send((0,s.default)({type:\"SubmitDriveEvent\",event_time_ms:e,event_msg:t,event_type:n}))}},{key:\"sendAudioPiece\",value:function(e){this.websocket.send((0,s.default)({type:\"HMIAction\",action:\"RECORD_AUDIO\",value:btoa(String.fromCharCode.apply(String,(0,o.default)(e)))}))}},{key:\"toggleSimControl\",value:function(e){this.websocket.send((0,s.default)({type:\"ToggleSimControl\",enable:e}))}},{key:\"requestRoutePath\",value:function(){this.websocket.send((0,s.default)({type:\"RequestRoutePath\"}))}},{key:\"publishNavigationInfo\",value:function(e){this.websocket.send(e)}}]),e}();t.default=w},function(e,t,n){\"use strict\";function i(){return l[u++%l.length]}function r(e,t){return!(!e||!t)&&(e.x===t.x&&e.y===t.y)}function o(e){var t={};for(var n in e){var r=e[n];try{t[n]=JSON.parse(r)}catch(e){console.error(\"Failed to parse chart property \"+n+\":\"+r+\".\",\"Set its value without parsing.\"),t[n]=r}}return t.color||(t.color=i()),t}function a(e,t,n){var i={},a={};return e&&(i.lines={},a.lines={},e.forEach(function(e){var t=e.label;a.lines[t]=o(e.properties),i.lines[t]=e.point})),t&&(i.polygons={},a.polygons={},t.forEach(function(e){var t=e.point.length;if(0!==t){var n=e.label;i.polygons[n]=e.point,r(e.point[0],e.point[t-1])||i.polygons[n].push(e.point[0]),e.properties&&(a.polygons[n]=o(e.properties))}})),n&&(i.cars={},a.cars={},n.forEach(function(e){var t=e.label;a.cars[t]={color:e.color},i.cars[t]={x:e.x,y:e.y,heading:e.heading}})),{data:i,properties:a}}function s(e){var t=\"boolean\"!=typeof e.options.legendDisplay||e.options.legendDisplay,n={legend:{display:t},axes:{x:e.options.x,y:e.options.y}},i=a(e.line,e.polygon,e.car),r=i.properties,o=i.data;return{title:e.title,options:n,properties:r,data:o}}Object.defineProperty(t,\"__esModule\",{value:!0});var l=[\"rgba(241, 113, 112, 0.5)\",\"rgba(254, 208, 114, 0.5)\",\"rgba(162, 212, 113, 0.5)\",\"rgba(113, 226, 208, 0.5)\",\"rgba(113, 208, 255, 0.5)\",\"rgba(179, 164, 238, 0.5)\"],u=0;t.parseChartDataFromProtoBuf=s},function(e,t,n){t=e.exports=n(123)(!1),t.push([e.i,\".modal-background{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.5);z-index:1000}.modal-content{position:fixed;top:35%;left:50%;width:300px;height:130px;transform:translate(-50%,-50%);text-align:center;background-color:rgba(0,0,0,.8);box-shadow:0 0 10px 0 rgba(0,0,0,.75);z-index:1001}.modal-content header{background:#217cba;display:flex;align-items:center;justify-content:space-between;padding:0 2rem;min-height:50px}.modal-content .modal-dialog{position:absolute;top:0;right:0;bottom:50px;left:0;padding:5px}.modal-content .ok-button{position:absolute;bottom:0;transform:translate(-50%,-50%);padding:7px 25px;border:none;background:#006aff;color:#fff;cursor:pointer}.modal-content .ok-button:hover{background:#49a9ee}\",\"\"])},function(e,t,n){t=e.exports=n(123)(!1),t.push([e.i,'body{margin:0;overflow:hidden;background-color:#14171a!important;font:14px Lucida Grande,Helvetica,Arial,sans-serif;color:#fff}body *{font-size:16px}@media (max-height:800px),(max-width:1280px){body *{font-size:14px}}::-webkit-scrollbar{width:4px;height:8px;opacity:.3;background-color:#fff}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);background-color:#555}::-webkit-scrollbar-thumb{opacity:.8;background-color:#30a5ff}::-webkit-scrollbar-thumb:active{background-color:#30a5ff}.header{display:flex;align-items:center;z-index:100;position:relative;top:0;left:0;height:60px;background:#000;color:#fff;text-align:left}@media (max-height:800px),(max-width:1280px){.header{height:55px}}.header .apollo-logo{flex:0 0 auto;top:40px;left:40px;height:40px;width:121px;margin:10px auto 5px 18px}@media (max-height:800px),(max-width:1280px){.header .apollo-logo{top:15px;left:25px;height:25px;width:80px;margin-top:5px}}.header .header-item{flex:0 0 auto;position:relative;margin:5px;border:1px solid #383838}.header .selector select{display:block;border:none;padding:.5em 3em .5em .5em;background:#000;color:#fff;outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.header .selector .arrow{position:absolute;top:0;right:0;width:30px;height:100%;border-left:1px solid #383838;background:#181818;pointer-events:none}.header .selector .arrow:before{position:absolute;top:55%;right:7px;margin-top:-5px;border-top:8px solid #666;border-left:8px solid transparent;border-right:8px solid transparent;content:\"\";pointer-events:none}.header .header-button{min-width:125px;padding:.5em 0;background:#181818;color:#fff;text-align:center}@media (max-height:800px),(max-width:1280px){.header .header-button{min-width:110px}}.header .header-button-active{color:#30a5ff}.pane-container{position:absolute;width:100%;height:calc(100% - 60px)}@media (max-height:800px),(max-width:1280px){.pane-container{height:calc(100% - 55px)}}.pane-container .left-pane{display:flex;flex-flow:row nowrap;align-items:stretch;position:absolute;bottom:0;top:0;width:100%}.pane-container .left-pane .dreamview-body{display:flex;flex-flow:column nowrap;flex:1 1 auto;overflow:hidden}.pane-container .left-pane .dreamview-body .main-view{flex:0 0 auto;position:relative;min-width:600px}.pane-container .right-pane{position:absolute;right:0;width:100%;height:100%;overflow:hidden}.pane-container .right-pane ::-webkit-scrollbar{width:6px}.pane-container .right-pane .react-tabs__tab-list{display:table;width:100%;margin:0;border-bottom:1px solid #000;padding:0}.pane-container .right-pane .react-tabs__tab{display:table-cell;position:relative;border:1px solid transparent;border-bottom:none;padding:6px 12px;background:#1d2226;color:#999;list-style:none;cursor:pointer}.pane-container .right-pane .react-tabs__tab--selected{background:#2a3238;color:#fff}.pane-container .right-pane .react-tabs__tab span{color:#fff}.pane-container .right-pane .react-tabs__tab-panel{display:none}.pane-container .right-pane .react-tabs__tab-panel--selected{display:block}.pane-container .right-pane .pnc-monitor{height:100%;border:1px solid #000;box-sizing:border-box;background-color:#1d2226;overflow:auto}.pane-container .right-pane .pnc-monitor .scatter-graph{margin:0;border:1px #000;border-style:solid none}.pane-container .right-pane .pnc-monitor .scenario-history-container{padding:10px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400}.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-title{margin:5px;border-bottom:1px solid hsla(0,0%,60%,.5);padding-bottom:5px;font-size:12px;font-weight:600;text-align:center}.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-table,.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-table .scenario-history-item{position:relative;width:100%}.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-table .scenario-history-item .text{position:relative;width:30%;padding:2px 4px;color:#999;font-size:12px}.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-table .scenario-history-item .time{text-align:center}.pane-container .SplitPane .Resizer{background:#000;opacity:.2;z-index:1;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}.pane-container .SplitPane .Resizer:hover{-webkit-transition:all 2s ease;transition:all 2s ease}.pane-container .SplitPane .Resizer.vertical{width:11px;margin:0 -5px;border-left:5px solid hsla(0,0%,100%,0);border-right:5px solid hsla(0,0%,100%,0);cursor:col-resize}.pane-container .SplitPane .Resizer.vertical:hover{border-left:5px solid rgba(0,0,0,.5);border-right:5px solid rgba(0,0,0,.5)}.pane-container .SplitPane .Resizer.disabled{cursor:auto}.pane-container .SplitPane .Resizer.disabled:hover{border-color:transparent}.offlineview{display:flex;flex-flow:column nowrap;position:absolute;width:100%;height:100%}.offlineview .main-view{flex:0 0 auto;position:relative}.dreamview-canvas{z-index:1;position:absolute}.dreamview-canvas .geolocation{z-index:10;position:absolute;bottom:10px;right:10px;color:#fff}.hidden{display:none}.tools{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;margin-top:3px;overflow:hidden}.tools .card{flex:1 1 auto;border-right:3px solid #000;padding:15px 10px 25px 20px;background:#1d2226}@media (max-height:800px),(max-width:1280px){.tools .card{padding:15px 5px 15px 15px}}.tools .card .card-header{width:100%;padding-bottom:15px}.tools .card .card-header span{width:200px;border-bottom:1px solid #999;padding:10px 10px 10px 0;font-size:18px}@media (max-height:800px),(max-width:1280px){.tools .card .card-header span{font-size:16px}}.tools .card .card-content-row{display:flex;flex-flow:row wrap;align-content:flex-start;overflow-x:hidden;overflow-y:auto;height:85%}.tools .card .card-content-column{display:flex;flex-flow:column nowrap;overflow-x:hidden;overflow-y:auto;height:89%}.tools ul{flex:0 0 auto;margin:0 2px 0 0;padding-left:0;padding-right:5px;background-color:#1d2226;color:#999;list-style:none;cursor:pointer}.tools ul li{line-height:40px}.tools ul li span{padding-left:20px}.tools ul li:hover{color:#fff;background-color:#2a3238}.tools .switch{display:inline-block;position:relative;width:40px;transform:translate(35%,25%)}.tools .switch .toggle-switch{display:none}.tools .switch .toggle-switch-label{display:block;overflow:hidden;cursor:pointer;height:20px;padding:0;line-height:20px;border:0;background-color:#3f4548;transition:background-color .2s ease-in}.tools .switch .toggle-switch-label:before{content:\"\";display:block;width:16px;margin:2px;background:#a0a0a0;position:absolute;top:0;bottom:0;right:20px;transition:all .2s ease-in}.tools .switch .toggle-switch:checked+.toggle-switch-label{background-color:#0e3d62}.tools .switch .toggle-switch:checked+.toggle-switch-label,.tools .switch .toggle-switch:checked+.toggle-switch-label:before{border-color:#0e3d62}.tools .switch .toggle-switch:checked+.toggle-switch-label:before{right:0;background-color:#30a5ff}.tools .switch .toggle-switch:disabled+.toggle-switch-label,.tools .switch .toggle-switch:disabled+.toggle-switch-label:before{cursor:not-allowed}.tools .tool-view-menu{display:flex;flex-flow:row nowrap;align-items:stretch;flex:2 1 auto;z-index:10!important;margin-right:3px;overflow-y:hidden;overflow-x:auto;background:#1d2226;color:#fff;text-align:left;white-space:nowrap}.tools .tool-view-menu .summary{line-height:50px}@media (max-height:800px),(max-width:1280px){.tools .tool-view-menu .summary{line-height:25px}}.tools .tool-view-menu .summary img{position:relative;width:30px;height:30px;transform:translate(-30%,25%)}@media (max-height:800px),(max-width:1280px){.tools .tool-view-menu .summary img{width:20px;height:20px;transform:translate(-50%,10%)}}.tools .tool-view-menu .summary span{padding-left:10px}.tools .tool-view-menu input[type=radio]{display:none}.tools .tool-view-menu .radio-selector-label{display:inline-block;position:relative;transform:translate(65%,30%);box-sizing:border-box;-webkit-box-sizing:border-box;width:25px;height:25px;margin-right:6px;border-radius:50%;-webkit-border-radius:50%;background-color:#a0a0a0;box-shadow:inset 1px 0 #a0a0a0;border:7px solid #3f4548}.tools .tool-view-menu input[type=radio]:checked+.radio-selector-label{border:7px solid #0e3d62;background-color:#30a5ff}.tools .console{z-index:10;position:relative;min-width:230px;margin:0;border:none;padding:0;overflow:hidden}.tools .console .monitor-item{display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default}.tools .console .monitor-item .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px),(max-width:1280px){.tools .console .monitor-item .icon{height:15px;width:15px}}.tools .console .monitor-item .text{position:relative;width:calc(100% - 80px);padding-left:5px;line-height:150%;font-size:12px;word-wrap:break-word}.tools .console .monitor-item .time{position:absolute;right:5px;font-size:12px}.tools .console .monitor-item .alert{color:#d7466f}.tools .console .monitor-item .warn{color:#a3842d}.tools .poi-button{min-width:310px}@media (max-height:800px),(max-width:1280px){.tools .poi-button{min-width:280px}}.side-bar{display:flex;flex-direction:column;flex:0 0 auto;z-index:100;background:#1d2226;border-right:3px solid #000;overflow-y:auto;overflow-x:hidden}.side-bar .main-panel{margin-bottom:auto}.side-bar .button{display:block;width:90px;border:none;padding:20px 10px;text-align:center;background:#1d2226;color:#fff;opacity:.6;cursor:pointer}@media (max-height:800px),(max-width:1280px){.side-bar .button{width:80px;padding-top:10px}}.side-bar .button .icon{width:40px;height:40px;margin:auto}@media (max-height:800px),(max-width:1280px){.side-bar .button .icon{width:30px;height:30px}}.side-bar .button .label{padding-top:10px}@media (max-height:800px),(max-width:1280px){.side-bar .button .label{padding-top:4px}}.side-bar .button:first-child{padding-top:25px}@media (max-height:800px),(max-width:1280px){.side-bar .button:first-child{padding-top:10px}}.side-bar .button:disabled{color:#414141;cursor:not-allowed}.side-bar .button:disabled .icon{opacity:.2}.side-bar .button-active{background:#2a3238;opacity:1;color:#fff}.side-bar .sub-button{display:block;width:90px;height:80px;border:none;padding:10px;text-align:center;background:#3e4041;color:#999;cursor:pointer}@media (max-height:800px),(max-width:1280px){.side-bar .sub-button{width:80px;height:60px}}.side-bar .sub-button:not(:last-child){border-bottom:1px solid #1d2226}.side-bar .sub-button:disabled{cursor:not-allowed;opacity:.3}.side-bar .sub-button-active{background:#30a5ff;color:#fff}.status-bar{z-index:10;position:absolute;top:0;left:0;width:100%}.status-bar .auto-meter{position:absolute;width:224px;height:112px;top:10px;right:20px;background:rgba(0,0,0,.8)}.status-bar .auto-meter .speed-read{position:absolute;top:27px;left:15px;font-family:Arial;font-weight:lighter;font-size:35px;color:#fff}.status-bar .auto-meter .speed-unit{position:absolute;top:66px;left:17px;color:#fff;font-size:15px}.status-bar .auto-meter .brake-panel{position:absolute;top:21px;right:2px}.status-bar .auto-meter .throttle-panel{position:absolute;top:61px;right:2px}.status-bar .auto-meter .meter-container .meter-label{font-size:13px;color:#fff}.status-bar .auto-meter .meter-container .meter-head{display:inline-block;position:absolute;margin:5px 0 0;border-width:4px;border-style:solid}.status-bar .auto-meter .meter-container .meter-background{position:relative;display:block;height:2px;width:120px;margin:8px}.status-bar .auto-meter .meter-container .meter-background span{position:relative;overflow:hidden;display:block;height:100%}.status-bar .wheel-panel{display:flex;flex-direction:row;justify-content:left;align-items:center;position:absolute;top:128px;right:20px;width:187px;height:92px;padding:10px 22px 10px 15px;background:rgba(0,0,0,.8)}.status-bar .wheel-panel .steerangle-read{font-family:Arial;font-weight:lighter;font-size:35px;color:#fff}.status-bar .wheel-panel .steerangle-unit{padding:20px 10px 0 3px;color:#fff;font-size:13px}.status-bar .wheel-panel .left-arrow{position:absolute;top:45px;right:115px;width:0;height:0;border-style:solid;border-width:12px 15px 12px 0;border-color:transparent}.status-bar .wheel-panel .right-arrow{position:absolute;top:45px;right:15px;width:0;height:0;border-style:solid;border-width:12px 0 12px 15px;border-color:transparent transparent transparent #30435e}.status-bar .wheel-panel .wheel{position:absolute;top:15px;right:33px}.status-bar .wheel-panel .wheel-background{stroke-width:3px;stroke:#006aff}.status-bar .wheel-panel .wheel-arm{stroke-width:3px;stroke:#006aff;fill:#006aff}.status-bar .traffic-light-and-driving-mode{position:absolute;top:246px;right:20px;width:224px;height:35px;font-size:14px}.status-bar .traffic-light-and-driving-mode .traffic-light{position:absolute;width:116px;height:35px;background:rgba(0,0,0,.8)}.status-bar .traffic-light-and-driving-mode .traffic-light .symbol{position:relative;top:4px;left:4px;width:28px;height:28px}.status-bar .traffic-light-and-driving-mode .traffic-light .text{position:absolute;top:10px;right:8px;font-size:14px;color:#fff}.status-bar .traffic-light-and-driving-mode .driving-mode{position:absolute;top:0;right:0;width:105px;height:35px}.status-bar .traffic-light-and-driving-mode .driving-mode .text{position:absolute;top:50%;left:50%;float:right;transform:translate(-50%,-50%);text-align:center;font-size:14px}.status-bar .traffic-light-and-driving-mode .auto-mode{background:linear-gradient(90deg,rgba(17,30,48,.8),rgba(7,42,94,.8));border-right:1px solid #006aff;color:#006aff}.status-bar .traffic-light-and-driving-mode .manual-mode{background:linear-gradient(90deg,rgba(30,17,17,.8),rgba(71,36,36,.8));color:#b43131;border-right:1px solid #b43131}.status-bar .notification-warn{position:absolute;top:10px;right:260px;width:260px;display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default;border:1px solid #a3842d;background-color:rgba(52,39,5,.3)}.status-bar .notification-warn .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px),(max-width:1280px){.status-bar .notification-warn .icon{height:15px;width:15px}}.status-bar .notification-warn .text{position:relative;width:calc(100% - 17px);padding-left:5px;line-height:150%;font-size:12px;word-wrap:break-word}.status-bar .notification-warn .time{position:absolute;right:5px;font-size:12px}.status-bar .notification-warn .alert{color:#d7466f}.status-bar .notification-warn .warn{color:#a3842d}.status-bar .notification-alert{position:absolute;top:10px;right:260px;width:260px;display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default;border:1px solid #d7466f;background-color:rgba(74,5,24,.3)}.status-bar .notification-alert .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px),(max-width:1280px){.status-bar .notification-alert .icon{height:15px;width:15px}}.status-bar .notification-alert .text{position:relative;width:calc(100% - 17px);padding-left:5px;line-height:150%;font-size:12px;word-wrap:break-word}.status-bar .notification-alert .time{position:absolute;right:5px;font-size:12px}.status-bar .notification-alert .alert{color:#d7466f}.status-bar .notification-alert .warn{color:#a3842d}.tasks{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;z-index:10;margin-right:3px;overflow-x:auto;overflow-y:hidden}.tasks .command-group{display:flex;flex-flow:row nowrap;justify-content:flex-start;flex:1 1 0;min-height:45px;min-width:130px}.tasks .command-group .name{width:40px;padding:15px}.tasks .start-auto-command{flex:2 2 0}.tasks .start-auto-command .start-auto-button{max-height:unset}.tasks .others{min-width:200px;max-width:280px}@media (max-height:800px),(max-width:1280px){.tasks .others{min-width:180px;max-width:260px}}.tasks .delay{min-width:265px;line-height:26px}.tasks .delay .delay-item{position:relative;margin:0 10px}.tasks .delay .delay-item .name{display:inline-block;min-width:140px;color:#1c9063}.tasks .delay .delay-item .value{display:inline-block;position:absolute;right:0;min-width:70px;text-align:right}.tasks .delay .delay-item .warning{color:#b43131}.tasks .camera{min-width:265px}.tasks button{flex:1 1 0;margin:5px;border:0;min-width:75px;min-height:40px;max-height:60px;color:#999;border-bottom:2px solid #1c9063;background:linear-gradient(#000,#111f1d);outline:none;cursor:pointer}.tasks button:hover{color:#fff;background:#151e1b}.tasks button:active{background:rgba(35,51,45,.6)}.tasks button:disabled{color:#999;border-color:#555;background:linear-gradient(rgba(0,0,0,.8),rgba(9,17,16,.8));cursor:not-allowed}.tasks .disabled{cursor:not-allowed}.module-controller{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;z-index:10;margin-right:3px;overflow:hidden}.module-controller .controller{min-width:180px}.module-controller .modules-container{flex-flow:column wrap}.module-controller .status-display{display:flex;flex-wrap:nowrap;justify-content:space-around;min-width:250px;padding:5px 20px 5px 5px}.module-controller .status-display:hover{background:#2a3238}.module-controller .status-display .name{padding:10px;min-width:80px}.module-controller .status-display .status{position:relative;width:130px;padding:10px;background:#000;white-space:nowrap}.module-controller .status-display .status .status-icon{position:absolute;right:10px;width:15px;height:15px;background-color:#b43131}.route-editing-bar{z-index:10;position:absolute;top:0;left:0;right:0;min-height:90px;border-bottom:3px solid #000;padding-left:10px;background:#1d2226}@media (max-height:800px),(max-width:1280px){.route-editing-bar{min-height:60px}}.route-editing-bar .editing-panel{display:flex;justify-content:center;align-items:center;overflow:hidden;white-space:nowrap}.route-editing-bar .editing-panel .button{height:90px;border:none;padding:10px 15px;background:#1d2226;outline:none;color:#999}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .button{height:60px;padding:5px 10px}}.route-editing-bar .editing-panel .button img{display:block;top:23px;margin:15px auto}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .button img{top:13px;margin:7px auto}}.route-editing-bar .editing-panel .button span{font-family:PingFangSC-Light;color:#d8d8d8;text-align:center}.route-editing-bar .editing-panel .button:hover{background:#2a3238}.route-editing-bar .editing-panel .active{color:#fff;background:#2a3238}.route-editing-bar .editing-panel .editing-tip{height:90px;width:90px;margin-left:auto;border:none;color:#d8d8d8}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .editing-tip{height:60px;width:60px}}.route-editing-bar .editing-panel .editing-tip p{position:absolute;top:120%;right:15px;width:400px;border-radius:3px;padding:20px;background-color:#fff;color:#999;text-align:left;white-space:pre-wrap}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .editing-tip p{right:5px}}.route-editing-bar .editing-panel .editing-tip p:before{position:absolute;top:-20px;right:13px;content:\"\";border-style:solid;border-width:0 20px 20px;border-color:transparent transparent #fff}@-moz-document url-prefix(){.route-editing-bar .editing-panel .editing-tip p:before{top:-38px}}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .editing-tip p:before{right:8px}}.data-recorder table{width:100%;height:100%;min-width:550px}.data-recorder table td,.data-recorder table tr{border:2px solid #1d2226}.data-recorder table td:first-child{width:100px;border:none;box-sizing:border-box;white-space:nowrap}@media (max-height:800px),(max-width:1280px){.data-recorder table td:first-child{width:60px}}.data-recorder table .drive-event-time-row span{position:relative;padding:10px 5px 10px 10px;background:#101315;white-space:nowrap}.data-recorder table .drive-event-time-row span .timestamp-button{position:relative;top:0;right:0;padding:5px 20px;border:5px solid #101315;margin-left:10px;background:#006aff;color:#fff}.data-recorder table .drive-event-time-row span .timestamp-button:hover{background:#49a9ee}.data-recorder table .drive-event-msg-row{width:70%;height:70%}.data-recorder table .drive-event-msg-row textarea{height:100%;width:100%;max-width:500px;color:#fff;border:1px solid #383838;background:#101315;resize:none}.data-recorder table .cancel-button,.data-recorder table .drive-event-type-button,.data-recorder table .submit-button,.data-recorder table .submit-button:active{margin-right:5px;padding:10px 35px;border:none;background:#1d2226;color:#fff;cursor:pointer}.data-recorder table .drive-event-type-button{background:#181818;padding:10px 25px}.data-recorder table .drive-event-type-button-active{color:#30a5ff}.data-recorder table .submit-button{background:#000}.data-recorder table .submit-button:active{background:#383838}.loader{flex:0 0 auto;position:relative;width:100%;height:100%;background-color:#000c17}.loader .img-container{position:relative;top:55%;left:50%;width:40%;transform:translate(-50%,-50%)}.loader .img-container img{width:100%;height:auto}.loader .img-container .status-message{margin-top:10px;font-size:18px;font-size:1.7vw;color:#fff;text-align:center;animation-name:flash;animation-duration:2s;animation-timing-function:linear;animation-iteration-count:infinite;animation-direction:alternate;animation-play-state:running}@keyframes flash{0%{color:#fff}to{color:#000c17}}.loader .offline-loader{width:60%;max-width:650px}.loader .offline-loader .status-message{position:relative;top:-70px;top:-4.5vw;font-size:3vw}.loader .offline-loader .error-message{position:relative;top:-2vw;font-size:1.5vw;color:#b43131;white-space:nowrap;text-align:center}.camera-video{text-align:center}.camera-video img{width:auto;height:auto;max-width:100%;max-height:100%}.dashcam-player{z-index:1;position:absolute;top:0;left:0;color:#fff}.dashcam-player video{max-width:380px;max-height:300px}@media (max-height:800px),(max-width:1280px){.dashcam-player video{max-width:300px;max-height:200px}}.dashcam-player .controls{display:flex;justify-content:flex-end;z-index:10;position:absolute;right:0}.dashcam-player .controls button{width:27px;height:27px;border:none;background-color:#000;opacity:.6;color:#fff}.dashcam-player .controls button img{width:15px}.dashcam-player .controls button:hover{opacity:.9}.dashcam-player .controls .close{font-size:20px}.dashcam-player .controls .syncup{padding-top:.5em}.navigation-view{z-index:20;position:relative}.navigation-view #map_canvas{width:100%;height:100%;background:rgba(0,0,0,.8)}.navigation-view .window-resize-control{position:absolute;bottom:0;right:0;width:30px;height:30px}',\"\"])},function(e,t,n){t=e.exports=n(123)(!1),t.push([e.i,'.playback-controls{z-index:100;position:absolute;width:100%;height:40px;bottom:0;background:#1d2226;font-size:16px;min-width:550px}@media (max-height:800px),(max-width:1280px){.playback-controls{font-size:14px}}.playback-controls .icon{display:inline-block;width:20px;height:20px;padding:10px;cursor:pointer}.playback-controls .icon .play{stroke-linejoin:round;stroke-width:1.5px;stroke:#006aff;fill:#1d2226}.playback-controls .icon .pause,.playback-controls .icon .replay{stroke-linejoin:round;stroke-width:1.5px;stroke:#006aff;fill:#006aff}.playback-controls .icon .replay{top:2px}.playback-controls .icon .exit-fullscreen,.playback-controls .icon .fullscreen{stroke-linejoin:round;stroke-width:10px;stroke:#006aff;fill:#1d2226}.playback-controls .left-controls{display:inline-block;float:left}.playback-controls .right-controls{display:inline-block;float:right}.playback-controls .rate-selector{position:absolute;left:40px}.playback-controls .rate-selector select{display:block;border:none;padding:11px 23px 0 5px;color:#fff;background:#1d2226;outline:none;cursor:pointer;font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.playback-controls .rate-selector .arrow{position:absolute;top:5px;right:0;width:10px;height:100%;pointer-events:none}.playback-controls .rate-selector .arrow:before{position:absolute;top:16px;right:1px;margin-top:-5px;border-top:8px solid #666;border-left:8px solid transparent;border-right:8px solid transparent;content:\"\";pointer-events:none}.playback-controls .time-controls{position:absolute;min-width:300px;height:100%;left:125px;right:50px}.playback-controls .time-controls .rangeslider{position:absolute;top:7px;left:10px;right:115px;margin:10px 0;height:7px;border-radius:10px;background:#2d3b50;-ms-touch-action:none;touch-action:none}.playback-controls .time-controls .rangeslider .rangeslider__fill{display:block;height:100%;border-radius:10px;background-color:#006aff;background:#006aff}.playback-controls .time-controls .rangeslider .rangeslider__handle{display:inline-block;position:absolute;height:16px;width:16px;top:50%;transform:translate3d(-50%,-50%,0);border:1px solid #006aff;border-radius:100%;background:#006aff;cursor:pointer;box-shadow:none}.playback-controls .time-controls .time-display{position:absolute;top:12px;right:0;color:#fff}',\"\"])},function(e,t){e.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},function(e,t,n){\"use strict\";var i=t;i.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&\"=\"===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var r=new Array(64),o=new Array(123),a=0;a<64;)o[r[a]=a<26?a+65:a<52?a+71:a<62?a-4:a-59|43]=a++;i.encode=function(e,t,n){for(var i,o=null,a=[],s=0,l=0;t>2],i=(3&u)<<4,l=1;break;case 1:a[s++]=r[i|u>>4],i=(15&u)<<2,l=2;break;case 2:a[s++]=r[i|u>>6],a[s++]=r[63&u],l=0}s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,a)),s=0)}return l&&(a[s++]=r[i],a[s++]=61,1===l&&(a[s++]=61)),o?(s&&o.push(String.fromCharCode.apply(String,a.slice(0,s))),o.join(\"\")):String.fromCharCode.apply(String,a.slice(0,s))};i.decode=function(e,t,n){for(var i,r=n,a=0,s=0;s1)break;if(void 0===(l=o[l]))throw Error(\"invalid encoding\");switch(a){case 0:i=l,a=1;break;case 1:t[n++]=i<<2|(48&l)>>4,i=l,a=2;break;case 2:t[n++]=(15&i)<<4|(60&l)>>2,i=l,a=3;break;case 3:t[n++]=(3&i)<<6|l,a=0}}if(1===a)throw Error(\"invalid encoding\");return n-r},i.test=function(e){return/^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$/.test(e)}},function(e,t,n){\"use strict\";function i(e,t){function n(e){if(\"string\"!=typeof e){var t=r();if(i.verbose&&console.log(\"codegen: \"+t),t=\"return \"+t,e){for(var a=Object.keys(e),s=new Array(a.length+1),l=new Array(a.length),u=0;u0?0:2147483648,n,i);else if(isNaN(t))e(2143289344,n,i);else if(t>3.4028234663852886e38)e((r<<31|2139095040)>>>0,n,i);else if(t<1.1754943508222875e-38)e((r<<31|Math.round(t/1.401298464324817e-45))>>>0,n,i);else{var o=Math.floor(Math.log(t)/Math.LN2),a=8388607&Math.round(t*Math.pow(2,-o)*8388608);e((r<<31|o+127<<23|a)>>>0,n,i)}}function n(e,t,n){var i=e(t,n),r=2*(i>>31)+1,o=i>>>23&255,a=8388607&i;return 255===o?a?NaN:r*(1/0):0===o?1.401298464324817e-45*r*a:r*Math.pow(2,o-150)*(a+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,o),e.readFloatLE=n.bind(null,a),e.readFloatBE=n.bind(null,s)}(),\"undefined\"!=typeof Float64Array?function(){function t(e,t,n){o[0]=e,t[n]=a[0],t[n+1]=a[1],t[n+2]=a[2],t[n+3]=a[3],t[n+4]=a[4],t[n+5]=a[5],t[n+6]=a[6],t[n+7]=a[7]}function n(e,t,n){o[0]=e,t[n]=a[7],t[n+1]=a[6],t[n+2]=a[5],t[n+3]=a[4],t[n+4]=a[3],t[n+5]=a[2],t[n+6]=a[1],t[n+7]=a[0]}function i(e,t){return a[0]=e[t],a[1]=e[t+1],a[2]=e[t+2],a[3]=e[t+3],a[4]=e[t+4],a[5]=e[t+5],a[6]=e[t+6],a[7]=e[t+7],o[0]}function r(e,t){return a[7]=e[t],a[6]=e[t+1],a[5]=e[t+2],a[4]=e[t+3],a[3]=e[t+4],a[2]=e[t+5],a[1]=e[t+6],a[0]=e[t+7],o[0]}var o=new Float64Array([-0]),a=new Uint8Array(o.buffer),s=128===a[7];e.writeDoubleLE=s?t:n,e.writeDoubleBE=s?n:t,e.readDoubleLE=s?i:r,e.readDoubleBE=s?r:i}():function(){function t(e,t,n,i,r,o){var a=i<0?1:0;if(a&&(i=-i),0===i)e(0,r,o+t),e(1/i>0?0:2147483648,r,o+n);else if(isNaN(i))e(0,r,o+t),e(2146959360,r,o+n);else if(i>1.7976931348623157e308)e(0,r,o+t),e((a<<31|2146435072)>>>0,r,o+n);else{var s;if(i<2.2250738585072014e-308)s=i/5e-324,e(s>>>0,r,o+t),e((a<<31|s/4294967296)>>>0,r,o+n);else{var l=Math.floor(Math.log(i)/Math.LN2);1024===l&&(l=1023),s=i*Math.pow(2,-l),e(4503599627370496*s>>>0,r,o+t),e((a<<31|l+1023<<20|1048576*s&1048575)>>>0,r,o+n)}}}function n(e,t,n,i,r){var o=e(i,r+t),a=e(i,r+n),s=2*(a>>31)+1,l=a>>>20&2047,u=4294967296*(1048575&a)+o;return 2047===l?u?NaN:s*(1/0):0===l?5e-324*s*u:s*Math.pow(2,l-1075)*(u+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,o,4,0),e.readDoubleLE=n.bind(null,a,0,4),e.readDoubleBE=n.bind(null,s,4,0)}(),e}function r(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function o(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function a(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function s(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=i(i)},function(e,t,n){\"use strict\";var i=t,r=i.isAbsolute=function(e){return/^(?:\\/|\\w+:)/.test(e)},o=i.normalize=function(e){e=e.replace(/\\\\/g,\"/\").replace(/\\/{2,}/g,\"/\");var t=e.split(\"/\"),n=r(e),i=\"\";n&&(i=t.shift()+\"/\");for(var o=0;o0&&\"..\"!==t[o-1]?t.splice(--o,2):n?t.splice(o,1):++o:\".\"===t[o]?t.splice(o,1):++o;return i+t.join(\"/\")};i.resolve=function(e,t,n){return n||(t=o(t)),r(t)?t:(n||(e=o(e)),(e=e.replace(/(?:\\/|^)[^\\/]+$/,\"\")).length?o(e+\"/\"+t):t)}},function(e,t,n){\"use strict\";function i(e,t,n){var i=n||8192,r=i>>>1,o=null,a=i;return function(n){if(n<1||n>r)return e(n);a+n>i&&(o=e(i),a=0);var s=t.call(o,a,a+=n);return 7&a&&(a=1+(7|a)),s}}e.exports=i},function(e,t,n){\"use strict\";var i=t;i.length=function(e){for(var t=0,n=0,i=0;i191&&i<224?o[a++]=(31&i)<<6|63&e[t++]:i>239&&i<365?(i=((7&i)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[a++]=55296+(i>>10),o[a++]=56320+(1023&i)):o[a++]=(15&i)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,o)),a=0);return r?(a&&r.push(String.fromCharCode.apply(String,o.slice(0,a))),r.join(\"\")):String.fromCharCode.apply(String,o.slice(0,a))},i.write=function(e,t,n){for(var i,r,o=n,a=0;a>6|192,t[n++]=63&i|128):55296==(64512&i)&&56320==(64512&(r=e.charCodeAt(a+1)))?(i=65536+((1023&i)<<10)+(1023&r),++a,t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128);return n-o}},function(e,t,n){e.exports={default:n(370),__esModule:!0}},function(e,t,n){e.exports={default:n(372),__esModule:!0}},function(e,t,n){e.exports={default:n(374),__esModule:!0}},function(e,t,n){e.exports={default:n(379),__esModule:!0}},function(e,t,n){e.exports={default:n(380),__esModule:!0}},function(e,t,n){e.exports={default:n(381),__esModule:!0}},function(e,t,n){e.exports={default:n(383),__esModule:!0}},function(e,t,n){e.exports={default:n(384),__esModule:!0}},function(e,t,n){\"use strict\";t.__esModule=!0;var i=n(79),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r.default||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}},function(e,t,n){\"use strict\";function i(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 r(e){var t=i(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function o(e,t,n){return 3*(t+n)/4-n}function a(e){for(var t,n=i(e),r=n[0],a=n[1],s=new h(o(e,r,a)),l=0,u=a>0?r-4:r,c=0;c>16&255,s[l++]=t>>8&255,s[l++]=255&t;return 2===a&&(t=d[e.charCodeAt(c)]<<2|d[e.charCodeAt(c+1)]>>4,s[l++]=255&t),1===a&&(t=d[e.charCodeAt(c)]<<10|d[e.charCodeAt(c+1)]<<4|d[e.charCodeAt(c+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t),s}function s(e){return c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}function l(e,t,n){for(var i,r=[],o=t;oa?a:o+16383));return 1===i?(t=e[n-1],r.push(c[t>>2]+c[t<<4&63]+\"==\")):2===i&&(t=(e[n-2]<<8)+e[n-1],r.push(c[t>>10]+c[t>>4&63]+c[t<<2&63]+\"=\")),r.join(\"\")}t.byteLength=r,t.toByteArray=a,t.fromByteArray=u;for(var c=[],d=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,f=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",p=0,m=f.length;p1&&n[1]||\"\"}function n(t){var n=e.match(t);return n&&n.length>1&&n[2]||\"\"}var r,o=t(/(ipod|iphone|ipad)/i).toLowerCase(),s=/like android/i.test(e),l=!s&&/android/i.test(e),u=/nexus\\s*[0-6]\\s*/i.test(e),c=!u&&/nexus\\s*[0-9]+/i.test(e),d=/CrOS/.test(e),h=/silk/i.test(e),f=/sailfish/i.test(e),p=/tizen/i.test(e),m=/(web|hpw)(o|0)s/i.test(e),g=/windows phone/i.test(e),v=(/SamsungBrowser/i.test(e),!g&&/windows/i.test(e)),y=!o&&!h&&/macintosh/i.test(e),b=!l&&!f&&!p&&!m&&/linux/i.test(e),_=n(/edg([ea]|ios)\\/(\\d+(\\.\\d+)?)/i),x=t(/version\\/(\\d+(\\.\\d+)?)/i),w=/tablet/i.test(e)&&!/tablet pc/i.test(e),M=!w&&/[^-]mobi/i.test(e),S=/xbox/i.test(e);/opera/i.test(e)?r={name:\"Opera\",opera:a,version:x||t(/(?:opera|opr|opios)[\\s\\/](\\d+(\\.\\d+)?)/i)}:/opr\\/|opios/i.test(e)?r={name:\"Opera\",opera:a,version:t(/(?:opr|opios)[\\s\\/](\\d+(\\.\\d+)?)/i)||x}:/SamsungBrowser/i.test(e)?r={name:\"Samsung Internet for Android\",samsungBrowser:a,version:x||t(/(?:SamsungBrowser)[\\s\\/](\\d+(\\.\\d+)?)/i)}:/Whale/i.test(e)?r={name:\"NAVER Whale browser\",whale:a,version:t(/(?:whale)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/MZBrowser/i.test(e)?r={name:\"MZ Browser\",mzbrowser:a,version:t(/(?:MZBrowser)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/coast/i.test(e)?r={name:\"Opera Coast\",coast:a,version:x||t(/(?:coast)[\\s\\/](\\d+(\\.\\d+)?)/i)}:/focus/i.test(e)?r={name:\"Focus\",focus:a,version:t(/(?:focus)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/yabrowser/i.test(e)?r={name:\"Yandex Browser\",yandexbrowser:a,version:x||t(/(?:yabrowser)[\\s\\/](\\d+(\\.\\d+)?)/i)}:/ucbrowser/i.test(e)?r={name:\"UC Browser\",ucbrowser:a,version:t(/(?:ucbrowser)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/mxios/i.test(e)?r={name:\"Maxthon\",maxthon:a,version:t(/(?:mxios)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/epiphany/i.test(e)?r={name:\"Epiphany\",epiphany:a,version:t(/(?:epiphany)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/puffin/i.test(e)?r={name:\"Puffin\",puffin:a,version:t(/(?:puffin)[\\s\\/](\\d+(?:\\.\\d+)?)/i)}:/sleipnir/i.test(e)?r={name:\"Sleipnir\",sleipnir:a,version:t(/(?:sleipnir)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/k-meleon/i.test(e)?r={name:\"K-Meleon\",kMeleon:a,version:t(/(?:k-meleon)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:g?(r={name:\"Windows Phone\",osname:\"Windows Phone\",windowsphone:a},_?(r.msedge=a,r.version=_):(r.msie=a,r.version=t(/iemobile\\/(\\d+(\\.\\d+)?)/i))):/msie|trident/i.test(e)?r={name:\"Internet Explorer\",msie:a,version:t(/(?:msie |rv:)(\\d+(\\.\\d+)?)/i)}:d?r={name:\"Chrome\",osname:\"Chrome OS\",chromeos:a,chromeBook:a,chrome:a,version:t(/(?:chrome|crios|crmo)\\/(\\d+(\\.\\d+)?)/i)}:/edg([ea]|ios)/i.test(e)?r={name:\"Microsoft Edge\",msedge:a,version:_}:/vivaldi/i.test(e)?r={name:\"Vivaldi\",vivaldi:a,version:t(/vivaldi\\/(\\d+(\\.\\d+)?)/i)||x}:f?r={name:\"Sailfish\",osname:\"Sailfish OS\",sailfish:a,version:t(/sailfish\\s?browser\\/(\\d+(\\.\\d+)?)/i)}:/seamonkey\\//i.test(e)?r={name:\"SeaMonkey\",seamonkey:a,version:t(/seamonkey\\/(\\d+(\\.\\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(e)?(r={name:\"Firefox\",firefox:a,version:t(/(?:firefox|iceweasel|fxios)[ \\/](\\d+(\\.\\d+)?)/i)},/\\((mobile|tablet);[^\\)]*rv:[\\d\\.]+\\)/i.test(e)&&(r.firefoxos=a,r.osname=\"Firefox OS\")):h?r={name:\"Amazon Silk\",silk:a,version:t(/silk\\/(\\d+(\\.\\d+)?)/i)}:/phantom/i.test(e)?r={name:\"PhantomJS\",phantom:a,version:t(/phantomjs\\/(\\d+(\\.\\d+)?)/i)}:/slimerjs/i.test(e)?r={name:\"SlimerJS\",slimer:a,version:t(/slimerjs\\/(\\d+(\\.\\d+)?)/i)}:/blackberry|\\bbb\\d+/i.test(e)||/rim\\stablet/i.test(e)?r={name:\"BlackBerry\",osname:\"BlackBerry OS\",blackberry:a,version:x||t(/blackberry[\\d]+\\/(\\d+(\\.\\d+)?)/i)}:m?(r={name:\"WebOS\",osname:\"WebOS\",webos:a,version:x||t(/w(?:eb)?osbrowser\\/(\\d+(\\.\\d+)?)/i)},/touchpad\\//i.test(e)&&(r.touchpad=a)):/bada/i.test(e)?r={name:\"Bada\",osname:\"Bada\",bada:a,version:t(/dolfin\\/(\\d+(\\.\\d+)?)/i)}:p?r={name:\"Tizen\",osname:\"Tizen\",tizen:a,version:t(/(?:tizen\\s?)?browser\\/(\\d+(\\.\\d+)?)/i)||x}:/qupzilla/i.test(e)?r={name:\"QupZilla\",qupzilla:a,version:t(/(?:qupzilla)[\\s\\/](\\d+(?:\\.\\d+)+)/i)||x}:/chromium/i.test(e)?r={name:\"Chromium\",chromium:a,version:t(/(?:chromium)[\\s\\/](\\d+(?:\\.\\d+)?)/i)||x}:/chrome|crios|crmo/i.test(e)?r={name:\"Chrome\",chrome:a,version:t(/(?:chrome|crios|crmo)\\/(\\d+(\\.\\d+)?)/i)}:l?r={name:\"Android\",version:x}:/safari|applewebkit/i.test(e)?(r={name:\"Safari\",safari:a},x&&(r.version=x)):o?(r={name:\"iphone\"==o?\"iPhone\":\"ipad\"==o?\"iPad\":\"iPod\"},x&&(r.version=x)):r=/googlebot/i.test(e)?{name:\"Googlebot\",googlebot:a,version:t(/googlebot\\/(\\d+(\\.\\d+))/i)||x}:{name:t(/^(.*)\\/(.*) /),version:n(/^(.*)\\/(.*) /)},!r.msedge&&/(apple)?webkit/i.test(e)?(/(apple)?webkit\\/537\\.36/i.test(e)?(r.name=r.name||\"Blink\",r.blink=a):(r.name=r.name||\"Webkit\",r.webkit=a),!r.version&&x&&(r.version=x)):!r.opera&&/gecko\\//i.test(e)&&(r.name=r.name||\"Gecko\",r.gecko=a,r.version=r.version||t(/gecko\\/(\\d+(\\.\\d+)?)/i)),r.windowsphone||!l&&!r.silk?!r.windowsphone&&o?(r[o]=a,r.ios=a,r.osname=\"iOS\"):y?(r.mac=a,r.osname=\"macOS\"):S?(r.xbox=a,r.osname=\"Xbox\"):v?(r.windows=a,r.osname=\"Windows\"):b&&(r.linux=a,r.osname=\"Linux\"):(r.android=a,r.osname=\"Android\");var E=\"\";r.windows?E=function(e){switch(e){case\"NT\":return\"NT\";case\"XP\":return\"XP\";case\"NT 5.0\":return\"2000\";case\"NT 5.1\":return\"XP\";case\"NT 5.2\":return\"2003\";case\"NT 6.0\":return\"Vista\";case\"NT 6.1\":return\"7\";case\"NT 6.2\":return\"8\";case\"NT 6.3\":return\"8.1\";case\"NT 10.0\":return\"10\";default:return}}(t(/Windows ((NT|XP)( \\d\\d?.\\d)?)/i)):r.windowsphone?E=t(/windows phone (?:os)?\\s?(\\d+(\\.\\d+)*)/i):r.mac?(E=t(/Mac OS X (\\d+([_\\.\\s]\\d+)*)/i),E=E.replace(/[_\\s]/g,\".\")):o?(E=t(/os (\\d+([_\\s]\\d+)*) like mac os x/i),E=E.replace(/[_\\s]/g,\".\")):l?E=t(/android[ \\/-](\\d+(\\.\\d+)*)/i):r.webos?E=t(/(?:web|hpw)os\\/(\\d+(\\.\\d+)*)/i):r.blackberry?E=t(/rim\\stablet\\sos\\s(\\d+(\\.\\d+)*)/i):r.bada?E=t(/bada\\/(\\d+(\\.\\d+)*)/i):r.tizen&&(E=t(/tizen[\\/\\s](\\d+(\\.\\d+)*)/i)),E&&(r.osversion=E);var T=!r.windows&&E.split(\".\")[0];return w||c||\"ipad\"==o||l&&(3==T||T>=4&&!M)||r.silk?r.tablet=a:(M||\"iphone\"==o||\"ipod\"==o||l||u||r.blackberry||r.webos||r.bada)&&(r.mobile=a),r.msedge||r.msie&&r.version>=10||r.yandexbrowser&&r.version>=15||r.vivaldi&&r.version>=1||r.chrome&&r.version>=20||r.samsungBrowser&&r.version>=4||r.whale&&1===i([r.version,\"1.0\"])||r.mzbrowser&&1===i([r.version,\"6.0\"])||r.focus&&1===i([r.version,\"1.0\"])||r.firefox&&r.version>=20||r.safari&&r.version>=6||r.opera&&r.version>=10||r.ios&&r.osversion&&r.osversion.split(\".\")[0]>=6||r.blackberry&&r.version>=10.1||r.chromium&&r.version>=20?r.a=a:r.msie&&r.version<10||r.chrome&&r.version<20||r.firefox&&r.version<20||r.safari&&r.version<6||r.opera&&r.version<10||r.ios&&r.osversion&&r.osversion.split(\".\")[0]<6||r.chromium&&r.version<20?r.c=a:r.x=a,r}function t(e){return e.split(\".\").length}function n(e,t){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n=0;){if(r[0][i]>r[1][i])return 1;if(r[0][i]!==r[1][i])return-1;if(0===i)return 0}}function r(t,n,r){var o=s;\"string\"==typeof n&&(r=n,n=void 0),void 0===n&&(n=!1),r&&(o=e(r));var a=\"\"+o.version;for(var l in t)if(t.hasOwnProperty(l)&&o[l]){if(\"string\"!=typeof t[l])throw new Error(\"Browser version in the minVersion map should be a string: \"+l+\": \"+String(t));return i([a,t[l]])<0}return n}function o(e,t,n){return!r(e,t,n)}var a=!0,s=e(\"undefined\"!=typeof navigator?navigator.userAgent||\"\":\"\");return s.test=function(e){for(var t=0;t0?Math.min(a,i-n):a,n=i;return a}function r(e,t,n){var i,r,o=n.barThickness,a=t.stackCount,s=t.pixels[e];return l.isNullOrUndef(o)?(i=t.min*n.categoryPercentage,r=n.barPercentage):(i=o*a,r=1),{chunk:i/a,ratio:r,start:s-i/2}}function o(e,t,n){var i,r,o=t.pixels,a=o[e],s=e>0?o[e-1]:null,l=e0&&(e[0].yLabel?n=e[0].yLabel:t.labels.length>0&&e[0].index=0&&r>0)&&(g+=r));return o=d.getPixelForValue(g),a=d.getPixelForValue(g+f),s=(a-o)/2,{size:s,base:o,head:a,center:a+s/2}},calculateBarIndexPixels:function(e,t,n){var i=this,a=n.scale.options,s=\"flex\"===a.barThickness?o(t,n,a):r(t,n,a),u=i.getStackIndex(e,i.getMeta().stack),c=s.start+s.chunk*u+s.chunk/2,d=Math.min(l.valueOrDefault(a.maxBarThickness,1/0),s.chunk*s.ratio);return{base:c-d/2,head:c+d/2,center:c,size:d}},draw:function(){var e=this,t=e.chart,n=e.getValueScale(),i=e.getMeta().data,r=e.getDataset(),o=i.length,a=0;for(l.canvas.clipArea(t.ctx,t.chartArea);a');var n=e.data,i=n.datasets,r=n.labels;if(i.length)for(var o=0;o'),r[o]&&t.push(r[o]),t.push(\"\");return t.push(\"\"),t.join(\"\")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,i){var r=e.getDatasetMeta(0),a=t.datasets[0],s=r.data[i],l=s&&s.custom||{},u=o.valueAtIndexOrDefault,c=e.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(a.backgroundColor,i,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(a.borderColor,i,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(a.borderWidth,i,c.borderWidth),hidden:isNaN(a.data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(e,t){var n,i,r,o=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n=Math.PI?-1:p<-Math.PI?1:0);var m=p+f,g={x:Math.cos(p),y:Math.sin(p)},v={x:Math.cos(m),y:Math.sin(m)},y=p<=0&&m>=0||p<=2*Math.PI&&2*Math.PI<=m,b=p<=.5*Math.PI&&.5*Math.PI<=m||p<=2.5*Math.PI&&2.5*Math.PI<=m,_=p<=-Math.PI&&-Math.PI<=m||p<=Math.PI&&Math.PI<=m,x=p<=.5*-Math.PI&&.5*-Math.PI<=m||p<=1.5*Math.PI&&1.5*Math.PI<=m,w=h/100,M={x:_?-1:Math.min(g.x*(g.x<0?1:w),v.x*(v.x<0?1:w)),y:x?-1:Math.min(g.y*(g.y<0?1:w),v.y*(v.y<0?1:w))},S={x:y?1:Math.max(g.x*(g.x>0?1:w),v.x*(v.x>0?1:w)),y:b?1:Math.max(g.y*(g.y>0?1:w),v.y*(v.y>0?1:w))},E={width:.5*(S.x-M.x),height:.5*(S.y-M.y)};u=Math.min(s/E.width,l/E.height),c={x:-.5*(S.x+M.x),y:-.5*(S.y+M.y)}}n.borderWidth=t.getMaxBorderWidth(d.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(h?n.outerRadius/100*h:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=c.x*n.outerRadius,n.offsetY=c.y*n.outerRadius,d.total=t.calculateTotal(),t.outerRadius=n.outerRadius-n.radiusLength*t.getRingIndex(t.index),t.innerRadius=Math.max(t.outerRadius-n.radiusLength,0),o.each(d.data,function(n,i){t.updateElement(n,i,e)})},updateElement:function(e,t,n){var i=this,r=i.chart,a=r.chartArea,s=r.options,l=s.animation,u=(a.left+a.right)/2,c=(a.top+a.bottom)/2,d=s.rotation,h=s.rotation,f=i.getDataset(),p=n&&l.animateRotate?0:e.hidden?0:i.calculateCircumference(f.data[t])*(s.circumference/(2*Math.PI)),m=n&&l.animateScale?0:i.innerRadius,g=n&&l.animateScale?0:i.outerRadius,v=o.valueAtIndexOrDefault;o.extend(e,{_datasetIndex:i.index,_index:t,_model:{x:u+r.offsetX,y:c+r.offsetY,startAngle:d,endAngle:h,circumference:p,outerRadius:g,innerRadius:m,label:v(f.label,t,r.data.labels[t])}});var y=e._model,b=e.custom||{},_=o.valueAtIndexOrDefault,x=this.chart.options.elements.arc;y.backgroundColor=b.backgroundColor?b.backgroundColor:_(f.backgroundColor,t,x.backgroundColor),y.borderColor=b.borderColor?b.borderColor:_(f.borderColor,t,x.borderColor),y.borderWidth=b.borderWidth?b.borderWidth:_(f.borderWidth,t,x.borderWidth),n&&l.animateRotate||(y.startAngle=0===t?s.rotation:i.getMeta().data[t-1]._model.endAngle,y.endAngle=y.startAngle+y.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),i=0;return o.each(n.data,function(n,r){e=t.data[r],isNaN(e)||n.hidden||(i+=Math.abs(e))}),i},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?2*Math.PI*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){for(var t,n,i=0,r=this.index,o=e.length,a=0;ai?t:i,i=n>i?n:i;return i}})}},function(e,t,n){\"use strict\";var i=n(9),r=n(40),o=n(6);i._set(\"line\",{showLines:!0,spanGaps:!1,hover:{mode:\"label\"},scales:{xAxes:[{type:\"category\",id:\"x-axis-0\"}],yAxes:[{type:\"linear\",id:\"y-axis-0\"}]}}),e.exports=function(e){function t(e,t){return o.valueOrDefault(e.showLine,t.showLines)}e.controllers.line=e.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,update:function(e){var n,i,r,a=this,s=a.getMeta(),l=s.dataset,u=s.data||[],c=a.chart.options,d=c.elements.line,h=a.getScaleForId(s.yAxisID),f=a.getDataset(),p=t(f,c);for(p&&(r=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=h,l._datasetIndex=a.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:c.spanGaps,tension:r.tension?r.tension:o.valueOrDefault(f.lineTension,d.tension),backgroundColor:r.backgroundColor?r.backgroundColor:f.backgroundColor||d.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:f.borderWidth||d.borderWidth,borderColor:r.borderColor?r.borderColor:f.borderColor||d.borderColor,borderCapStyle:r.borderCapStyle?r.borderCapStyle:f.borderCapStyle||d.borderCapStyle,borderDash:r.borderDash?r.borderDash:f.borderDash||d.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:f.borderDashOffset||d.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:f.borderJoinStyle||d.borderJoinStyle,fill:r.fill?r.fill:void 0!==f.fill?f.fill:d.fill,steppedLine:r.steppedLine?r.steppedLine:o.valueOrDefault(f.steppedLine,d.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:o.valueOrDefault(f.cubicInterpolationMode,d.cubicInterpolationMode)},l.pivot()),n=0,i=u.length;n');var n=e.data,i=n.datasets,r=n.labels;if(i.length)for(var o=0;o'),r[o]&&t.push(r[o]),t.push(\"\");return t.push(\"\"),t.join(\"\")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,i){var r=e.getDatasetMeta(0),a=t.datasets[0],s=r.data[i],l=s.custom||{},u=o.valueAtIndexOrDefault,c=e.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(a.backgroundColor,i,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(a.borderColor,i,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(a.borderWidth,i,c.borderWidth),hidden:isNaN(a.data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(e,t){var n,i,r,o=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n=0;--n)t.isDatasetVisible(n)&&t.drawDataset(n,e);c.notify(t,\"afterDatasetsDraw\",[e])}},drawDataset:function(e,t){var n=this,i=n.getDatasetMeta(e),r={meta:i,index:e,easingValue:t};!1!==c.notify(n,\"beforeDatasetDraw\",[r])&&(i.controller.draw(t),c.notify(n,\"afterDatasetDraw\",[r]))},_drawTooltip:function(e){var t=this,n=t.tooltip,i={tooltip:n,easingValue:e};!1!==c.notify(t,\"beforeTooltipDraw\",[i])&&(n.draw(),c.notify(t,\"afterTooltipDraw\",[i]))},getElementAtEvent:function(e){return s.modes.single(this,e)},getElementsAtEvent:function(e){return s.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return s.modes[\"x-axis\"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var i=s.modes[t];return\"function\"==typeof i?i(this,e,n):[]},getDatasetAtEvent:function(e){return s.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,n=t.data.datasets[e];n._meta||(n._meta={});var i=n._meta[t.id];return i||(i=n._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t0||(r.forEach(function(t){delete e[t]}),delete e._chartjs)}}var r=[\"push\",\"pop\",\"shift\",\"splice\",\"unshift\"];e.DatasetController=function(e,t){this.initialize(e,t)},i.extend(e.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements()},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.getDataset();null!==t.xAxisID&&t.xAxisID in e.chart.scales||(t.xAxisID=n.xAxisID||e.chart.options.scales.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in e.chart.scales||(t.yAxisID=n.yAxisID||e.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,n=t.dataElementType;return n&&new n({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,n=this,i=n.getMeta(),r=n.getDataset().data||[],o=i.data;for(e=0,t=r.length;ei&&e.insertElements(i,r-i)},insertElements:function(e,t){for(var n=0;n=t[e].length&&t[e].push({}),!t[e][r].type||l.type&&l.type!==t[e][r].type?o.merge(t[e][r],[a.getScaleDefaults(s),l]):o.merge(t[e][r],l)}else o._merger(e,t,n,i)}})},o.where=function(e,t){if(o.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return o.each(e,function(e){t(e)&&n.push(e)}),n},o.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var i=0,r=e.length;i=0;i--){var r=e[i];if(t(r))return r}},o.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},o.almostEquals=function(e,t,n){return Math.abs(e-t)e},o.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},o.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},o.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return e=+e,0===e||isNaN(e)?e:e>0?1:-1},o.log10=Math.log10?function(e){return Math.log10(e)}:function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t},o.toRadians=function(e){return e*(Math.PI/180)},o.toDegrees=function(e){return e*(180/Math.PI)},o.getAngleFromPoint=function(e,t){var n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i),o=Math.atan2(i,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:r}},o.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},o.aliasPixel=function(e){return e%2==0?0:.5},o.splineCurve=function(e,t,n,i){var r=e.skip?t:e,o=t,a=n.skip?t:n,s=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),l=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;var d=i*u,h=i*c;return{previous:{x:o.x-d*(a.x-r.x),y:o.y-d*(a.y-r.y)},next:{x:o.x+h*(a.x-r.x),y:o.y+h*(a.y-r.y)}}},o.EPSILON=Number.EPSILON||1e-14,o.splineCurveMonotone=function(e){var t,n,i,r,a=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),s=a.length;for(t=0;t0?a[t-1]:null,(r=t0?a[t-1]:null,r=t=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},o.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},o.niceNum=function(e,t){var n=Math.floor(o.log10(e)),i=e/Math.pow(10,n);return(t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},o.requestAnimFrame=function(){return\"undefined\"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}}(),o.getRelativePosition=function(e,t){var n,i,r=e.originalEvent||e,a=e.target||e.srcElement,s=a.getBoundingClientRect(),l=r.touches;l&&l.length>0?(n=l[0].clientX,i=l[0].clientY):(n=r.clientX,i=r.clientY);var u=parseFloat(o.getStyle(a,\"padding-left\")),c=parseFloat(o.getStyle(a,\"padding-top\")),d=parseFloat(o.getStyle(a,\"padding-right\")),h=parseFloat(o.getStyle(a,\"padding-bottom\")),f=s.right-s.left-u-d,p=s.bottom-s.top-c-h;return n=Math.round((n-s.left-u)/f*a.width/t.currentDevicePixelRatio),i=Math.round((i-s.top-c)/p*a.height/t.currentDevicePixelRatio),{x:n,y:i}},o.getConstraintWidth=function(e){return n(e,\"max-width\",\"clientWidth\")},o.getConstraintHeight=function(e){return n(e,\"max-height\",\"clientHeight\")},o._calculatePadding=function(e,t,n){return t=o.getStyle(e,t),t.indexOf(\"%\")>-1?n/parseInt(t,10):parseInt(t,10)},o._getParentNode=function(e){var t=e.parentNode;return t&&t.host&&(t=t.host),t},o.getMaximumWidth=function(e){var t=o._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,i=o._calculatePadding(t,\"padding-left\",n),r=o._calculatePadding(t,\"padding-right\",n),a=n-i-r,s=o.getConstraintWidth(e);return isNaN(s)?a:Math.min(a,s)},o.getMaximumHeight=function(e){var t=o._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,i=o._calculatePadding(t,\"padding-top\",n),r=o._calculatePadding(t,\"padding-bottom\",n),a=n-i-r,s=o.getConstraintHeight(e);return isNaN(s)?a:Math.min(a,s)},o.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},o.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||\"undefined\"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=e.canvas,r=e.height,o=e.width;i.height=r*n,i.width=o*n,e.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=r+\"px\",i.style.width=o+\"px\")}},o.fontString=function(e,t,n){return t+\" \"+e+\"px \"+n},o.longestText=function(e,t,n,i){i=i||{};var r=i.data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},a=i.garbageCollect=[],i.font=t),e.font=t;var s=0;o.each(n,function(t){void 0!==t&&null!==t&&!0!==o.isArray(t)?s=o.measureText(e,r,a,s,t):o.isArray(t)&&o.each(t,function(t){void 0===t||null===t||o.isArray(t)||(s=o.measureText(e,r,a,s,t))})});var l=a.length/2;if(l>n.length){for(var u=0;ui&&(i=o),i},o.numberOfLabelLines=function(e){var t=1;return o.each(e,function(e){o.isArray(e)&&e.length>t&&(t=e.length)}),t},o.color=i?function(e){return e instanceof CanvasGradient&&(e=r.global.defaultColor),i(e)}:function(e){return console.error(\"Color.js not found!\"),e},o.getHoverColor=function(e){return e instanceof CanvasPattern?e:o.color(e).saturate(.5).darken(.1).rgbString()}}},function(e,t,n){\"use strict\";n(9)._set(\"global\",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:[\"mousemove\",\"mouseout\",\"click\",\"touchstart\",\"touchmove\"],hover:{onHover:null,mode:\"nearest\",intersect:!0,animationDuration:400},onClick:null,defaultColor:\"rgba(0,0,0,0.1)\",defaultFontColor:\"#666\",defaultFontFamily:\"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",defaultFontSize:12,defaultFontStyle:\"normal\",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var e=function(e,t){return this.construct(e,t),this};return e.Chart=e,e}},function(e,t,n){\"use strict\";var i=n(9),r=n(29),o=n(6);i._set(\"global\",{elements:{arc:{backgroundColor:i.global.defaultColor,borderColor:\"#fff\",borderWidth:2}}}),e.exports=r.extend({inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)l;)r-=2*Math.PI;for(;r=s&&r<=l,c=a>=n.innerRadius&&a<=n.outerRadius;return u&&c}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e=this._chart.ctx,t=this._view,n=t.startAngle,i=t.endAngle;e.beginPath(),e.arc(t.x,t.y,t.outerRadius,n,i),e.arc(t.x,t.y,t.innerRadius,i,n,!0),e.closePath(),e.strokeStyle=t.borderColor,e.lineWidth=t.borderWidth,e.fillStyle=t.backgroundColor,e.fill(),e.lineJoin=\"bevel\",t.borderWidth&&e.stroke()}})},function(e,t,n){\"use strict\";var i=n(9),r=n(29),o=n(6),a=i.global;i._set(\"global\",{elements:{line:{tension:.4,backgroundColor:a.defaultColor,borderWidth:3,borderColor:a.defaultColor,borderCapStyle:\"butt\",borderDash:[],borderDashOffset:0,borderJoinStyle:\"miter\",capBezierPoints:!0,fill:!0}}}),e.exports=r.extend({draw:function(){var e,t,n,i,r=this,s=r._view,l=r._chart.ctx,u=s.spanGaps,c=r._children.slice(),d=a.elements.line,h=-1;for(r._loop&&c.length&&c.push(c[0]),l.save(),l.lineCap=s.borderCapStyle||d.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||d.borderDash),l.lineDashOffset=s.borderDashOffset||d.borderDashOffset,l.lineJoin=s.borderJoinStyle||d.borderJoinStyle,l.lineWidth=s.borderWidth||d.borderWidth,l.strokeStyle=s.borderColor||a.defaultColor,l.beginPath(),h=-1,e=0;e=e.left&&1.01*e.right>=n.x&&n.y>=e.top&&1.01*e.bottom>=n.y)&&(i.strokeStyle=t.borderColor||l,i.lineWidth=s.valueOrDefault(t.borderWidth,o.global.elements.point.borderWidth),i.fillStyle=t.backgroundColor||l,s.canvas.drawPoint(i,r,u,c,d,a))}})},function(e,t,n){\"use strict\";function i(e){return void 0!==e._view.width}function r(e){var t,n,r,o,a=e._view;if(i(e)){var s=a.width/2;t=a.x-s,n=a.x+s,r=Math.min(a.y,a.base),o=Math.max(a.y,a.base)}else{var l=a.height/2;t=Math.min(a.x,a.base),n=Math.max(a.x,a.base),r=a.y-l,o=a.y+l}return{left:t,top:r,right:n,bottom:o}}var o=n(9),a=n(29);o._set(\"global\",{elements:{rectangle:{backgroundColor:o.global.defaultColor,borderColor:o.global.defaultColor,borderSkipped:\"bottom\",borderWidth:0}}}),e.exports=a.extend({draw:function(){function e(e){return v[(b+e)%4]}var t,n,i,r,o,a,s,l=this._chart.ctx,u=this._view,c=u.borderWidth;if(u.horizontal?(t=u.base,n=u.x,i=u.y-u.height/2,r=u.y+u.height/2,o=n>t?1:-1,a=1,s=u.borderSkipped||\"left\"):(t=u.x-u.width/2,n=u.x+u.width/2,i=u.y,r=u.base,o=1,a=r>i?1:-1,s=u.borderSkipped||\"bottom\"),c){var d=Math.min(Math.abs(t-n),Math.abs(i-r));c=c>d?d:c;var h=c/2,f=t+(\"left\"!==s?h*o:0),p=n+(\"right\"!==s?-h*o:0),m=i+(\"top\"!==s?h*a:0),g=r+(\"bottom\"!==s?-h*a:0);f!==p&&(i=m,r=g),m!==g&&(t=f,n=p)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=c;var v=[[t,r],[t,i],[n,i],[n,r]],y=[\"bottom\",\"left\",\"top\",\"right\"],b=y.indexOf(s,0);-1===b&&(b=0);var _=e(0);l.moveTo(_[0],_[1]);for(var x=1;x<4;x++)_=e(x),l.lineTo(_[0],_[1]);l.fill(),c&&l.stroke()},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){var n=!1;if(this._view){var i=r(this);n=e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom}return n},inLabelRange:function(e,t){var n=this;if(!n._view)return!1;var o=r(n);return i(n)?e>=o.left&&e<=o.right:t>=o.top&&t<=o.bottom},inXRange:function(e){var t=r(this);return e>=t.left&&e<=t.right},inYRange:function(e){var t=r(this);return e>=t.top&&e<=t.bottom},getCenterPoint:function(){var e,t,n=this._view;return i(this)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return e.width*Math.abs(e.y-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}})},function(e,t,n){\"use strict\";var i=n(81),t=e.exports={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,i,r,o){if(o){var a=Math.min(o,r/2-1e-7,i/2-1e-7);e.moveTo(t+a,n),e.lineTo(t+i-a,n),e.arcTo(t+i,n,t+i,n+a,a),e.lineTo(t+i,n+r-a),e.arcTo(t+i,n+r,t+i-a,n+r,a),e.lineTo(t+a,n+r),e.arcTo(t,n+r,t,n+r-a,a),e.lineTo(t,n+a),e.arcTo(t,n,t+a,n,a),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,i,r)},drawPoint:function(e,t,n,i,r,o){var a,s,l,u,c,d;if(o=o||0,t&&\"object\"==typeof t&&(\"[object HTMLImageElement]\"===(a=t.toString())||\"[object HTMLCanvasElement]\"===a))return void e.drawImage(t,i-t.width/2,r-t.height/2,t.width,t.height);if(!(isNaN(n)||n<=0)){switch(e.save(),e.translate(i,r),e.rotate(o*Math.PI/180),e.beginPath(),t){default:e.arc(0,0,n,0,2*Math.PI),e.closePath();break;case\"triangle\":s=3*n/Math.sqrt(3),c=s*Math.sqrt(3)/2,e.moveTo(-s/2,c/3),e.lineTo(s/2,c/3),e.lineTo(0,-2*c/3),e.closePath();break;case\"rect\":d=1/Math.SQRT2*n,e.rect(-d,-d,2*d,2*d);break;case\"rectRounded\":var h=n/Math.SQRT2,f=-h,p=-h,m=Math.SQRT2*n;this.roundedRect(e,f,p,m,m,.425*n);break;case\"rectRot\":d=1/Math.SQRT2*n,e.moveTo(-d,0),e.lineTo(0,d),e.lineTo(d,0),e.lineTo(0,-d),e.closePath();break;case\"cross\":e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-n,0),e.lineTo(n,0);break;case\"crossRot\":l=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,e.moveTo(-l,-u),e.lineTo(l,u),e.moveTo(-l,u),e.lineTo(l,-u);break;case\"star\":e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-n,0),e.lineTo(n,0),l=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,e.moveTo(-l,-u),e.lineTo(l,u),e.moveTo(-l,u),e.lineTo(l,-u);break;case\"line\":e.moveTo(-n,0),e.lineTo(n,0);break;case\"dash\":e.moveTo(0,0),e.lineTo(n,0)}e.fill(),e.stroke(),e.restore()}},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,i){return n.steppedLine?(\"after\"===n.steppedLine&&!i||\"after\"!==n.steppedLine&&i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y),void e.lineTo(n.x,n.y)):n.tension?void e.bezierCurveTo(i?t.controlPointPreviousX:t.controlPointNextX,i?t.controlPointPreviousY:t.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):void e.lineTo(n.x,n.y)}};i.clear=t.clear,i.drawRoundedRectangle=function(e){e.beginPath(),t.roundedRect.apply(t,arguments)}},function(e,t,n){\"use strict\";var i=n(81),r={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-r.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*r.easeInBounce(2*e):.5*r.easeOutBounce(2*e-1)+.5}};e.exports={effects:r},i.easingEffects=r},function(e,t,n){\"use strict\";var i=n(81);e.exports={toLineHeight:function(e,t){var n=(\"\"+e).match(/^(normal|(\\d+(?:\\.\\d+)?)(px|em|%)?)$/);if(!n||\"normal\"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case\"px\":return e;case\"%\":e/=100}return t*e},toPadding:function(e){var t,n,r,o;return i.isObject(e)?(t=+e.top||0,n=+e.right||0,r=+e.bottom||0,o=+e.left||0):t=n=r=o=+e||0,{top:t,right:n,bottom:r,left:o,height:t+r,width:o+n}},resolve:function(e,t,n){var r,o,a;for(r=0,o=e.length;r
';var r=t.childNodes[0],a=t.childNodes[1];t._reset=function(){r.scrollLeft=1e6,r.scrollTop=1e6,a.scrollLeft=1e6,a.scrollTop=1e6};var s=function(){t._reset(),e()};return o(r,\"scroll\",s.bind(r,\"expand\")),o(a,\"scroll\",s.bind(a,\"shrink\")),t}function d(e,t){var n=e[v]||(e[v]={}),i=n.renderProxy=function(e){e.animationName===_&&t()};g.each(x,function(t){o(e,t,i)}),n.reflow=!!e.offsetParent,e.classList.add(b)}function h(e){var t=e[v]||{},n=t.renderProxy;n&&(g.each(x,function(t){a(e,t,n)}),delete t.renderProxy),e.classList.remove(b)}function f(e,t,n){var i=e[v]||(e[v]={}),r=i.resizer=c(u(function(){if(i.resizer)return t(s(\"resize\",n))}));d(e,function(){if(i.resizer){var t=e.parentNode;t&&t!==r.parentNode&&t.insertBefore(r,t.firstChild),r._reset()}})}function p(e){var t=e[v]||{},n=t.resizer;delete t.resizer,h(e),n&&n.parentNode&&n.parentNode.removeChild(n)}function m(e,t){var n=e._style||document.createElement(\"style\");e._style||(e._style=n,t=\"/* Chart.js */\\n\"+t,n.setAttribute(\"type\",\"text/css\"),document.getElementsByTagName(\"head\")[0].appendChild(n)),n.appendChild(document.createTextNode(t))}var g=n(6),v=\"$chartjs\",y=\"chartjs-\",b=y+\"render-monitor\",_=y+\"render-animation\",x=[\"animationstart\",\"webkitAnimationStart\"],w={touchstart:\"mousedown\",touchmove:\"mousemove\",touchend:\"mouseup\",pointerenter:\"mouseenter\",pointerdown:\"mousedown\",pointermove:\"mousemove\",pointerup:\"mouseup\",pointerleave:\"mouseout\",pointerout:\"mouseout\"},M=function(){var e=!1;try{var t=Object.defineProperty({},\"passive\",{get:function(){e=!0}});window.addEventListener(\"e\",null,t)}catch(e){}return e}(),S=!!M&&{passive:!0};e.exports={_enabled:\"undefined\"!=typeof window&&\"undefined\"!=typeof document,initialize:function(){var e=\"from{opacity:0.99}to{opacity:1}\";m(this,\"@-webkit-keyframes \"+_+\"{\"+e+\"}@keyframes \"+_+\"{\"+e+\"}.\"+b+\"{-webkit-animation:\"+_+\" 0.001s;animation:\"+_+\" 0.001s;}\")},acquireContext:function(e,t){\"string\"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext(\"2d\");return n&&n.canvas===e?(r(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[v]){var n=t[v].initial;[\"height\",\"width\"].forEach(function(e){var i=n[e];g.isNullOrUndef(i)?t.removeAttribute(e):t.setAttribute(e,i)}),g.each(n.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t[v]}},addEventListener:function(e,t,n){var i=e.canvas;if(\"resize\"===t)return void f(i,n,e);var r=n[v]||(n[v]={});o(i,t,(r.proxies||(r.proxies={}))[e.id+\"_\"+t]=function(t){n(l(t,e))})},removeEventListener:function(e,t,n){var i=e.canvas;if(\"resize\"===t)return void p(i);var r=n[v]||{},o=r.proxies||{},s=o[e.id+\"_\"+t];s&&a(i,t,s)}},g.addEvent=o,g.removeEvent=a},function(e,t,n){\"use strict\";e.exports={},e.exports.filler=n(353),e.exports.legend=n(354),e.exports.title=n(355)},function(e,t,n){\"use strict\";function i(e,t,n){var i,r=e._model||{},o=r.fill;if(void 0===o&&(o=!!r.backgroundColor),!1===o||null===o)return!1;if(!0===o)return\"origin\";if(i=parseFloat(o,10),isFinite(i)&&Math.floor(i)===i)return\"-\"!==o[0]&&\"+\"!==o[0]||(i=t+i),!(i===t||i<0||i>=n)&&i;switch(o){case\"bottom\":return\"start\";case\"top\":return\"end\";case\"zero\":return\"origin\";case\"origin\":case\"start\":case\"end\":return o;default:return!1}}function r(e){var t,n=e.el._model||{},i=e.el._scale||{},r=e.fill,o=null;if(isFinite(r))return null;if(\"start\"===r?o=void 0===n.scaleBottom?i.bottom:n.scaleBottom:\"end\"===r?o=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:i.getBasePosition?o=i.getBasePosition():i.getBasePixel&&(o=i.getBasePixel()),void 0!==o&&null!==o){if(void 0!==o.x&&void 0!==o.y)return o;if(\"number\"==typeof o&&isFinite(o))return t=i.isHorizontal(),{x:t?o:null,y:t?null:o}}return null}function o(e,t,n){var i,r=e[t],o=r.fill,a=[t];if(!n)return o;for(;!1!==o&&-1===a.indexOf(o);){if(!isFinite(o))return o;if(!(i=e[o]))return!1;if(i.visible)return o;a.push(o),o=i.fill}return!1}function a(e){var t=e.fill,n=\"dataset\";return!1===t?null:(isFinite(t)||(n=\"boundary\"),f[n](e))}function s(e){return e&&!e.skip}function l(e,t,n,i,r){var o;if(i&&r){for(e.moveTo(t[0].x,t[0].y),o=1;o0;--o)h.canvas.lineTo(e,n[o],n[o-1],!0)}}function u(e,t,n,i,r,o){var a,u,c,d,h,f,p,m=t.length,g=i.spanGaps,v=[],y=[],b=0,_=0;for(e.beginPath(),a=0,u=m+!!o;a');for(var n=0;n'),e.data.datasets[n].label&&t.push(e.data.datasets[n].label),t.push(\"\");return t.push(\"\"),t.join(\"\")}});var c=a.extend({initialize:function(e){s.extend(this,e),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:u,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:u,beforeSetDimensions:u,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:u,beforeBuildLabels:u,buildLabels:function(){var e=this,t=e.options.labels||{},n=s.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter(function(n){return t.filter(n,e.chart.data)})),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:u,beforeFit:u,fit:function(){var e=this,t=e.options,n=t.labels,r=t.display,a=e.ctx,l=o.global,u=s.valueOrDefault,c=u(n.fontSize,l.defaultFontSize),d=u(n.fontStyle,l.defaultFontStyle),h=u(n.fontFamily,l.defaultFontFamily),f=s.fontString(c,d,h),p=e.legendHitBoxes=[],m=e.minSize,g=e.isHorizontal();if(g?(m.width=e.maxWidth,m.height=r?10:0):(m.width=r?10:0,m.height=e.maxHeight),r)if(a.font=f,g){var v=e.lineWidths=[0],y=e.legendItems.length?c+n.padding:0;a.textAlign=\"left\",a.textBaseline=\"top\",s.each(e.legendItems,function(t,r){var o=i(n,c),s=o+c/2+a.measureText(t.text).width;v[v.length-1]+s+n.padding>=e.width&&(y+=c+n.padding,v[v.length]=e.left),p[r]={left:0,top:0,width:s,height:c},v[v.length-1]+=s+n.padding}),m.height+=y}else{var b=n.padding,_=e.columnWidths=[],x=n.padding,w=0,M=0,S=c+b;s.each(e.legendItems,function(e,t){var r=i(n,c),o=r+c/2+a.measureText(e.text).width;M+S>m.height&&(x+=w+n.padding,_.push(w),w=0,M=0),w=Math.max(w,o),M+=S,p[t]={left:0,top:0,width:o,height:c}}),x+=w,_.push(w),m.width+=x}e.width=m.width,e.height=m.height},afterFit:u,isHorizontal:function(){return\"top\"===this.options.position||\"bottom\"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,r=o.global,a=r.elements.line,l=e.width,u=e.lineWidths;if(t.display){var c,d=e.ctx,h=s.valueOrDefault,f=h(n.fontColor,r.defaultFontColor),p=h(n.fontSize,r.defaultFontSize),m=h(n.fontStyle,r.defaultFontStyle),g=h(n.fontFamily,r.defaultFontFamily),v=s.fontString(p,m,g);d.textAlign=\"left\",d.textBaseline=\"middle\",d.lineWidth=.5,d.strokeStyle=f,d.fillStyle=f,d.font=v;var y=i(n,p),b=e.legendHitBoxes,_=function(e,n,i){if(!(isNaN(y)||y<=0)){d.save(),d.fillStyle=h(i.fillStyle,r.defaultColor),d.lineCap=h(i.lineCap,a.borderCapStyle),d.lineDashOffset=h(i.lineDashOffset,a.borderDashOffset),d.lineJoin=h(i.lineJoin,a.borderJoinStyle),d.lineWidth=h(i.lineWidth,a.borderWidth),d.strokeStyle=h(i.strokeStyle,r.defaultColor);var o=0===h(i.lineWidth,a.borderWidth);if(d.setLineDash&&d.setLineDash(h(i.lineDash,a.borderDash)),t.labels&&t.labels.usePointStyle){var l=p*Math.SQRT2/2,u=l/Math.SQRT2,c=e+u,f=n+u;s.canvas.drawPoint(d,i.pointStyle,l,c,f)}else o||d.strokeRect(e,n,y,p),d.fillRect(e,n,y,p);d.restore()}},x=function(e,t,n,i){var r=p/2,o=y+r+e,a=t+r;d.fillText(n.text,o,a),n.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(o,a),d.lineTo(o+i,a),d.stroke())},w=e.isHorizontal();c=w?{x:e.left+(l-u[0])/2,y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+n.padding,line:0};var M=p+n.padding;s.each(e.legendItems,function(t,i){var r=d.measureText(t.text).width,o=y+p/2+r,a=c.x,s=c.y;w?a+o>=l&&(s=c.y+=M,c.line++,a=c.x=e.left+(l-u[c.line])/2):s+M>e.bottom&&(a=c.x=a+e.columnWidths[c.line]+n.padding,s=c.y=e.top+n.padding,c.line++),_(a,s,t),b[i].left=a,b[i].top=s,x(a,s,t,r),w?c.x+=o+n.padding:c.y+=M})}},handleEvent:function(e){var t=this,n=t.options,i=\"mouseup\"===e.type?\"click\":e.type,r=!1;if(\"mousemove\"===i){if(!n.onHover)return}else{if(\"click\"!==i)return;if(!n.onClick)return}var o=e.x,a=e.y;if(o>=t.left&&o<=t.right&&a>=t.top&&a<=t.bottom)for(var s=t.legendHitBoxes,l=0;l=u.left&&o<=u.left+u.width&&a>=u.top&&a<=u.top+u.height){if(\"click\"===i){n.onClick.call(t,e.native,t.legendItems[l]),r=!0;break}if(\"mousemove\"===i){n.onHover.call(t,e.native,t.legendItems[l]),r=!0;break}}}return r}});e.exports={id:\"legend\",_element:c,beforeInit:function(e){var t=e.options.legend;t&&r(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(s.mergeIf(t,o.global.legend),n?(l.configure(e,n,t),n.options=t):r(e,t)):n&&(l.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}}},function(e,t,n){\"use strict\";function i(e,t){var n=new u({ctx:e.ctx,options:t,chart:e});s.configure(e,n,t),s.addBox(e,n),e.titleBlock=n}var r=n(9),o=n(29),a=n(6),s=n(58),l=a.noop;r._set(\"global\",{title:{display:!1,fontStyle:\"bold\",fullWidth:!0,lineHeight:1.2,padding:10,position:\"top\",text:\"\",weight:2e3}});var u=o.extend({initialize:function(e){var t=this;a.extend(t,e),t.legendHitBoxes=[]},beforeUpdate:l,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:l,beforeSetDimensions:l,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:l,beforeBuildLabels:l,buildLabels:l,afterBuildLabels:l,beforeFit:l,fit:function(){var e=this,t=a.valueOrDefault,n=e.options,i=n.display,o=t(n.fontSize,r.global.defaultFontSize),s=e.minSize,l=a.isArray(n.text)?n.text.length:1,u=a.options.toLineHeight(n.lineHeight,o),c=i?l*u+2*n.padding:0;e.isHorizontal()?(s.width=e.maxWidth,s.height=c):(s.width=c,s.height=e.maxHeight),e.width=s.width,e.height=s.height},afterFit:l,isHorizontal:function(){var e=this.options.position;return\"top\"===e||\"bottom\"===e},draw:function(){var e=this,t=e.ctx,n=a.valueOrDefault,i=e.options,o=r.global;if(i.display){var s,l,u,c=n(i.fontSize,o.defaultFontSize),d=n(i.fontStyle,o.defaultFontStyle),h=n(i.fontFamily,o.defaultFontFamily),f=a.fontString(c,d,h),p=a.options.toLineHeight(i.lineHeight,c),m=p/2+i.padding,g=0,v=e.top,y=e.left,b=e.bottom,_=e.right;t.fillStyle=n(i.fontColor,o.defaultFontColor),t.font=f,e.isHorizontal()?(l=y+(_-y)/2,u=v+m,s=_-y):(l=\"left\"===i.position?y+m:_-m,u=v+(b-v)/2,s=b-v,g=Math.PI*(\"left\"===i.position?-.5:.5)),t.save(),t.translate(l,u),t.rotate(g),t.textAlign=\"center\",t.textBaseline=\"middle\";var x=i.text;if(a.isArray(x))for(var w=0,M=0;Mt.max&&(t.max=i))})});t.min=isFinite(t.min)&&!isNaN(t.min)?t.min:0,t.max=isFinite(t.max)&&!isNaN(t.max)?t.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var e,t=this,n=t.options.ticks;if(t.isHorizontal())e=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(t.width/50));else{var o=r.valueOrDefault(n.fontSize,i.global.defaultFontSize);e=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(t.height/(2*o)))}return e},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this,n=t.start,i=+t.getRightValue(e),r=t.end-n;return t.isHorizontal()?t.left+t.width/r*(i-n):t.bottom-t.height/r*(i-n)},getValueForPixel:function(e){var t=this,n=t.isHorizontal(),i=n?t.width:t.height,r=(n?e-t.left:t.bottom-e)/i;return t.start+(t.end-t.start)*r},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}});o.registerScaleType(\"linear\",n,t)}},function(e,t,n){\"use strict\";function i(e,t){var n,i,o,a=[];if(e.stepSize&&e.stepSize>0)o=e.stepSize;else{var s=r.niceNum(t.max-t.min,!1);o=r.niceNum(s/(e.maxTicks-1),!0),i=e.precision,void 0!==i&&(n=Math.pow(10,i),o=Math.ceil(o*n)/n)}var l=Math.floor(t.min/o)*o,u=Math.ceil(t.max/o)*o;r.isNullOrUndef(e.min)||r.isNullOrUndef(e.max)||!e.stepSize||r.almostWhole((e.max-e.min)/e.stepSize,o/1e3)&&(l=e.min,u=e.max);var c=(u-l)/o;c=r.almostEquals(c,Math.round(c),o/1e3)?Math.round(c):Math.ceil(c),i=1,o<1&&(i=Math.pow(10,1-Math.floor(r.log10(o))),l=Math.round(l*i)/i,u=Math.round(u*i)/i),a.push(void 0!==e.min?e.min:l);for(var d=1;d0&&o>0&&(e.min=0)}var a=void 0!==n.min||void 0!==n.suggestedMin,s=void 0!==n.max||void 0!==n.suggestedMax;void 0!==n.min?e.min=n.min:void 0!==n.suggestedMin&&(null===e.min?e.min=n.suggestedMin:e.min=Math.min(e.min,n.suggestedMin)),void 0!==n.max?e.max=n.max:void 0!==n.suggestedMax&&(null===e.max?e.max=n.suggestedMax:e.max=Math.max(e.max,n.suggestedMax)),a!==s&&e.min>=e.max&&(a?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,n.beginAtZero||e.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var e=this,t=e.options,n=t.ticks,o=e.getTickLimit();o=Math.max(2,o);var a={maxTicks:o,min:n.min,max:n.max,precision:n.precision,stepSize:r.valueOrDefault(n.fixedStepSize,n.stepSize)},s=e.ticks=i(a,e);e.handleDirectionalChanges(),e.max=r.max(s),e.min=r.min(s),n.reverse?(s.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),o.prototype.convertTicksToLabels.call(e)}})}},function(e,t,n){\"use strict\";function i(e,t){var n,i,o=[],a=r.valueOrDefault,s=a(e.min,Math.pow(10,Math.floor(r.log10(t.min)))),l=Math.floor(r.log10(t.max)),u=Math.ceil(t.max/Math.pow(10,l));0===s?(n=Math.floor(r.log10(t.minNotZero)),i=Math.floor(t.minNotZero/Math.pow(10,n)),o.push(s),s=i*Math.pow(10,n)):(n=Math.floor(r.log10(s)),i=Math.floor(s/Math.pow(10,n)));var c=n<0?Math.pow(10,Math.abs(n)):1;do{o.push(s),++i,10===i&&(i=1,++n,c=n>=0?1:c),s=Math.round(i*Math.pow(10,n)*c)/c}while(n0){var n=r.min(e),i=r.max(e);t.min=null===t.min?n:Math.min(t.min,n),t.max=null===t.max?i:Math.max(t.max,i)}})}else r.each(a,function(n,o){var a=i.getDatasetMeta(o);i.isDatasetVisible(o)&&e(a)&&r.each(n.data,function(e,n){var i=+t.getRightValue(e);isNaN(i)||a.data[n].hidden||i<0||(null===t.min?t.min=i:it.max&&(t.max=i),0!==i&&(null===t.minNotZero||i0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(r.log10(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options,n=t.ticks,o=!e.isHorizontal(),a={min:n.min,max:n.max},s=e.ticks=i(a,e);e.max=r.max(s),e.min=r.min(s),n.reverse?(o=!o,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),o&&s.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),o.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){return this.getPixelForValue(this.tickValues[e])},_getFirstTickValue:function(e){var t=Math.floor(r.log10(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},getPixelForValue:function(t){var n,i,o,a,s,l=this,u=l.options.ticks.reverse,c=r.log10,d=l._getFirstTickValue(l.minNotZero),h=0;return t=+l.getRightValue(t),u?(o=l.end,a=l.start,s=-1):(o=l.start,a=l.end,s=1),l.isHorizontal()?(n=l.width,i=u?l.right:l.left):(n=l.height,s*=-1,i=u?l.top:l.bottom),t!==o&&(0===o&&(h=r.getValueOrDefault(l.options.ticks.fontSize,e.defaults.global.defaultFontSize),n-=h,o=d),0!==t&&(h+=n/(c(a)-c(o))*(c(t)-c(o))),i+=s*h),i},getValueForPixel:function(t){var n,i,o,a,s=this,l=s.options.ticks.reverse,u=r.log10,c=s._getFirstTickValue(s.minNotZero);if(l?(i=s.end,o=s.start):(i=s.start,o=s.end),s.isHorizontal()?(n=s.width,a=l?s.right-t:t-s.left):(n=s.height,a=l?t-s.top:s.bottom-t),a!==i){if(0===i){var d=r.getValueOrDefault(s.options.ticks.fontSize,e.defaults.global.defaultFontSize);a-=d,n-=d,i=c}a*=u(o)-u(i),a/=n,a=Math.pow(10,u(i)+a)}return a}});a.registerScaleType(\"logarithmic\",n,t)}},function(e,t,n){\"use strict\";var i=n(9),r=n(6),o=n(39),a=n(60);e.exports=function(e){function t(e){var t=e.options;return t.angleLines.display||t.pointLabels.display?e.chart.data.labels.length:0}function n(e){var t=e.options.pointLabels,n=r.valueOrDefault(t.fontSize,v.defaultFontSize),i=r.valueOrDefault(t.fontStyle,v.defaultFontStyle),o=r.valueOrDefault(t.fontFamily,v.defaultFontFamily);return{size:n,style:i,family:o,font:r.fontString(n,i,o)}}function s(e,t,n){return r.isArray(n)?{w:r.longestText(e,e.font,n),h:n.length*t+1.5*(n.length-1)*t}:{w:e.measureText(n).width,h:t}}function l(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:er?{start:t-n-5,end:t}:{start:t,end:t+n+5}}function u(e){var i,o,a,u=n(e),c=Math.min(e.height/2,e.width/2),d={r:e.width,l:0,t:e.height,b:0},h={};e.ctx.font=u.font,e._pointLabelSizes=[];var f=t(e);for(i=0;id.r&&(d.r=g.end,h.r=p),v.startd.b&&(d.b=v.end,h.b=p)}e.setReductions(c,d,h)}function c(e){var t=Math.min(e.height/2,e.width/2);e.drawingArea=Math.round(t),e.setCenterPoint(0,0,0,0)}function d(e){return 0===e||180===e?\"center\":e<180?\"left\":\"right\"}function h(e,t,n,i){if(r.isArray(t))for(var o=n.y,a=1.5*i,s=0;s270||e<90)&&(n.y-=t.h)}function p(e){var i=e.ctx,o=e.options,a=o.angleLines,s=o.pointLabels;i.lineWidth=a.lineWidth,i.strokeStyle=a.color;var l=e.getDistanceFromCenterForValue(o.ticks.reverse?e.min:e.max),u=n(e);i.textBaseline=\"top\";for(var c=t(e)-1;c>=0;c--){if(a.display){var p=e.getPointPosition(c,l);i.beginPath(),i.moveTo(e.xCenter,e.yCenter),i.lineTo(p.x,p.y),i.stroke(),i.closePath()}if(s.display){var m=e.getPointPosition(c,l+5),g=r.valueAtIndexOrDefault(s.fontColor,c,v.defaultFontColor);i.font=u.font,i.fillStyle=g;var y=e.getIndexAngle(c),b=r.toDegrees(y);i.textAlign=d(b),f(b,e._pointLabelSizes[c],m),h(i,e.pointLabels[c]||\"\",m,u.size)}}}function m(e,n,i,o){var a=e.ctx;if(a.strokeStyle=r.valueAtIndexOrDefault(n.color,o-1),a.lineWidth=r.valueAtIndexOrDefault(n.lineWidth,o-1),e.options.gridLines.circular)a.beginPath(),a.arc(e.xCenter,e.yCenter,i,0,2*Math.PI),a.closePath(),a.stroke();else{var s=t(e);if(0===s)return;a.beginPath();var l=e.getPointPosition(0,i);a.moveTo(l.x,l.y);for(var u=1;u0&&n>0?t:0)},draw:function(){var e=this,t=e.options,n=t.gridLines,i=t.ticks,o=r.valueOrDefault;if(t.display){var a=e.ctx,s=this.getIndexAngle(0),l=o(i.fontSize,v.defaultFontSize),u=o(i.fontStyle,v.defaultFontStyle),c=o(i.fontFamily,v.defaultFontFamily),d=r.fontString(l,u,c);r.each(e.ticks,function(t,r){if(r>0||i.reverse){var u=e.getDistanceFromCenterForValue(e.ticksAsNumbers[r]);if(n.display&&0!==r&&m(e,n,u,r),i.display){var c=o(i.fontColor,v.defaultFontColor);if(a.font=d,a.save(),a.translate(e.xCenter,e.yCenter),a.rotate(s),i.showLabelBackdrop){var h=a.measureText(t).width;a.fillStyle=i.backdropColor,a.fillRect(-h/2-i.backdropPaddingX,-u-l/2-i.backdropPaddingY,h+2*i.backdropPaddingX,l+2*i.backdropPaddingY)}a.textAlign=\"center\",a.textBaseline=\"middle\",a.fillStyle=c,a.fillText(t,0,-u),a.restore()}}}),(t.angleLines.display||t.pointLabels.display)&&p(e)}}});o.registerScaleType(\"radialLinear\",b,y)}},function(e,t,n){\"use strict\";function i(e,t){return e-t}function r(e){var t,n,i,r={},o=[];for(t=0,n=e.length;tt&&s=0&&a<=s;){if(i=a+s>>1,r=e[i-1]||null,o=e[i],!r)return{lo:null,hi:o};if(o[t]n))return{lo:r,hi:o};s=i-1}}return{lo:o,hi:null}}function s(e,t,n,i){var r=a(e,t,n),o=r.lo?r.hi?r.lo:e[e.length-2]:e[0],s=r.lo?r.hi?r.hi:e[e.length-1]:e[1],l=s[t]-o[t],u=l?(n-o[t])/l:0,c=(s[i]-o[i])*u;return o[i]+c}function l(e,t){var n=t.parser,i=t.parser||t.format;return\"function\"==typeof n?n(e):\"string\"==typeof e&&\"string\"==typeof i?y(e,i):(e instanceof y||(e=y(e)),e.isValid()?e:\"function\"==typeof i?i(e):e)}function u(e,t){if(_.isNullOrUndef(e))return null;var n=t.options.time,i=l(t.getRightValue(e),n);return i.isValid()?(n.round&&i.startOf(n.round),i.valueOf()):null}function c(e,t,n,i){var r,o,a,s=t-e,l=E[n],u=l.size,c=l.steps;if(!c)return Math.ceil(s/(i*u));for(r=0,o=c.length;r=T.indexOf(t);r--)if(o=T[r],E[o].common&&a.as(o)>=e.length)return o;return T[t?T.indexOf(t):0]}function f(e){for(var t=T.indexOf(e)+1,n=T.length;t1?t[1]:i,a=t[0],l=(s(e,\"time\",o,\"pos\")-s(e,\"time\",a,\"pos\"))/2),r.time.max||(o=t[t.length-1],a=t.length>1?t[t.length-2]:n,u=(s(e,\"time\",o,\"pos\")-s(e,\"time\",a,\"pos\"))/2)),{left:l,right:u}}function g(e,t){var n,i,r,o,a=[];for(n=0,i=e.length;n=r&&n<=a&&d.push(n);return i.min=r,i.max=a,i._unit=l.unit||h(d,l.minUnit,i.min,i.max),i._majorUnit=f(i._unit),i._table=o(i._timestamps.data,r,a,s.distribution),i._offsets=m(i._table,d,r,a,s),i._labelFormat=v(i._timestamps.data,l),g(d,i._majorUnit)},getLabelForIndex:function(e,t){var n=this,i=n.chart.data,r=n.options.time,o=i.labels&&e=0&&e0?a:1}});w.registerScaleType(\"time\",t,e)}},function(e,t,n){function i(e){if(e){var t=/^#([a-fA-F0-9]{3})$/i,n=/^#([a-fA-F0-9]{6})$/i,i=/^rgba?\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,r=/^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,o=/(\\w+)/,a=[0,0,0],s=1,l=e.match(t);if(l){l=l[1];for(var u=0;u.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,[100*(.4124*t+.3576*n+.1805*i),100*(.2126*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]}function u(e){var t,n,i,r=l(e),o=r[0],a=r[1],s=r[2];return o/=95.047,a/=100,s/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,t=116*a-16,n=500*(o-a),i=200*(a-s),[t,n,i]}function c(e){return B(u(e))}function d(e){var t,n,i,r,o,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0==s)return o=255*l,[o,o,o];n=l<.5?l*(1+s):l+s-l*s,t=2*l-n,r=[0,0,0];for(var u=0;u<3;u++)i=a+1/3*-(u-1),i<0&&i++,i>1&&i--,o=6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t,r[u]=255*o;return r}function h(e){var t,n,i=e[0],r=e[1]/100,o=e[2]/100;return 0===o?[0,0,0]:(o*=2,r*=o<=1?o:2-o,n=(o+r)/2,t=2*r/(o+r),[i,100*t,100*n])}function f(e){return o(d(e))}function p(e){return a(d(e))}function m(e){return s(d(e))}function v(e){var t=e[0]/60,n=e[1]/100,i=e[2]/100,r=Math.floor(t)%6,o=t-Math.floor(t),a=255*i*(1-n),s=255*i*(1-n*o),l=255*i*(1-n*(1-o)),i=255*i;switch(r){case 0:return[i,l,a];case 1:return[s,i,a];case 2:return[a,i,l];case 3:return[a,s,i];case 4:return[l,a,i];case 5:return[i,a,s]}}function y(e){var t,n,i=e[0],r=e[1]/100,o=e[2]/100;return n=(2-r)*o,t=r*o,t/=n<=1?n:2-n,t=t||0,n/=2,[i,100*t,100*n]}function _(e){return o(v(e))}function x(e){return a(v(e))}function w(e){return s(v(e))}function M(e){var t,n,i,o,a=e[0]/360,s=e[1]/100,l=e[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),t=Math.floor(6*a),n=1-l,i=6*a-t,0!=(1&t)&&(i=1-i),o=s+i*(n-s),t){default:case 6:case 0:r=n,g=o,b=s;break;case 1:r=o,g=n,b=s;break;case 2:r=s,g=n,b=o;break;case 3:r=s,g=o,b=n;break;case 4:r=o,g=s,b=n;break;case 5:r=n,g=s,b=o}return[255*r,255*g,255*b]}function S(e){return n(M(e))}function E(e){return i(M(e))}function T(e){return a(M(e))}function k(e){return s(M(e))}function O(e){var t,n,i,r=e[0]/100,o=e[1]/100,a=e[2]/100,s=e[3]/100;return t=1-Math.min(1,r*(1-s)+s),n=1-Math.min(1,o*(1-s)+s),i=1-Math.min(1,a*(1-s)+s),[255*t,255*n,255*i]}function C(e){return n(O(e))}function P(e){return i(O(e))}function A(e){return o(O(e))}function R(e){return s(O(e))}function L(e){var t,n,i,r=e[0]/100,o=e[1]/100,a=e[2]/100;return t=3.2406*r+-1.5372*o+-.4986*a,n=-.9689*r+1.8758*o+.0415*a,i=.0557*r+-.204*o+1.057*a,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,t=Math.min(Math.max(0,t),1),n=Math.min(Math.max(0,n),1),i=Math.min(Math.max(0,i),1),[255*t,255*n,255*i]}function I(e){var t,n,i,r=e[0],o=e[1],a=e[2];return r/=95.047,o/=100,a/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,t=116*o-16,n=500*(r-o),i=200*(o-a),[t,n,i]}function D(e){return B(I(e))}function N(e){var t,n,i,r,o=e[0],a=e[1],s=e[2];return o<=8?(n=100*o/903.3,r=n/100*7.787+16/116):(n=100*Math.pow((o+16)/116,3),r=Math.pow(n/100,1/3)),t=t/95.047<=.008856?t=95.047*(a/500+r-16/116)/7.787:95.047*Math.pow(a/500+r,3),i=i/108.883<=.008859?i=108.883*(r-s/200-16/116)/7.787:108.883*Math.pow(r-s/200,3),[t,n,i]}function B(e){var t,n,i,r=e[0],o=e[1],a=e[2];return t=Math.atan2(a,o),n=360*t/2/Math.PI,n<0&&(n+=360),i=Math.sqrt(o*o+a*a),[r,i,n]}function z(e){return L(N(e))}function F(e){var t,n,i,r=e[0],o=e[1],a=e[2];return i=a/360*2*Math.PI,t=o*Math.cos(i),n=o*Math.sin(i),[r,t,n]}function j(e){return N(F(e))}function U(e){return z(F(e))}function W(e){return K[e]}function G(e){return n(W(e))}function V(e){return i(W(e))}function H(e){return o(W(e))}function q(e){return a(W(e))}function Y(e){return u(W(e))}function X(e){return l(W(e))}e.exports={rgb2hsl:n,rgb2hsv:i,rgb2hwb:o,rgb2cmyk:a,rgb2keyword:s,rgb2xyz:l,rgb2lab:u,rgb2lch:c,hsl2rgb:d,hsl2hsv:h,hsl2hwb:f,hsl2cmyk:p,hsl2keyword:m,hsv2rgb:v,hsv2hsl:y,hsv2hwb:_,hsv2cmyk:x,hsv2keyword:w,hwb2rgb:M,hwb2hsl:S,hwb2hsv:E,hwb2cmyk:T,hwb2keyword:k,cmyk2rgb:O,cmyk2hsl:C,cmyk2hsv:P,cmyk2hwb:A,cmyk2keyword:R,keyword2rgb:W,keyword2hsl:G,keyword2hsv:V,keyword2hwb:H,keyword2cmyk:q,keyword2lab:Y,keyword2xyz:X,xyz2rgb:L,xyz2lab:I,xyz2lch:D,lab2xyz:N,lab2rgb:z,lab2lch:B,lch2lab:F,lch2xyz:j,lch2rgb:U};var K={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Z={};for(var J in K)Z[JSON.stringify(K[J])]=J},function(e,t,n){var i=n(363),r=function(){return new u};for(var o in i){r[o+\"Raw\"]=function(e){return function(t){return\"number\"==typeof t&&(t=Array.prototype.slice.call(arguments)),i[e](t)}}(o);var a=/(\\w+)2(\\w+)/.exec(o),s=a[1],l=a[2];r[s]=r[s]||{},r[s][l]=r[o]=function(e){return function(t){\"number\"==typeof t&&(t=Array.prototype.slice.call(arguments));var n=i[e](t);if(\"string\"==typeof n||void 0===n)return n;for(var r=0;r0?l=n:a=n,o>0?u=i:s=i,++c>1e4)break}return[i,n]},gcj02_bd09ll:function(e,t){var n=e,i=t,r=Math.sqrt(n*n+i*i)+2e-5*Math.sin(i*this.x_pi),o=Math.atan2(i,n)+3e-6*Math.cos(n*this.x_pi);return[r*Math.cos(o)+.0065,r*Math.sin(o)+.006]},bd09ll_gcj02:function(e,t){var n=e-.0065,i=t-.006,r=Math.sqrt(n*n+i*i)-2e-5*Math.sin(i*this.x_pi),o=Math.atan2(i,n)-3e-6*Math.cos(n*this.x_pi);return[r*Math.cos(o),r*Math.sin(o)]},outOfChina:function(e,t){return t<72.004||t>137.8347||(e<.8293||e>55.8271)},transformLat:function(e,t){var n=2*e-100+3*t+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*this.PI)+20*Math.sin(2*e*this.PI))/3,n+=2*(20*Math.sin(t*this.PI)+40*Math.sin(t/3*this.PI))/3,n+=2*(160*Math.sin(t/12*this.PI)+320*Math.sin(t*this.PI/30))/3},transformLon:function(e,t){var n=300+e+2*t+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*this.PI)+20*Math.sin(2*e*this.PI))/3,n+=2*(20*Math.sin(e*this.PI)+40*Math.sin(e/3*this.PI))/3,n+=2*(150*Math.sin(e/12*this.PI)+300*Math.sin(e/30*this.PI))/3}},i={crs:{bd09ll:\"+proj=longlat +datum=BD09\",gcj02:\"+proj=longlat +datum=GCJ02\",wgs84:\"+proj=longlat +datum=WGS84 +no_defs\"},transform:function(e,t,n){if(!e)return null;if(!t||!n)throw new Error(\"must provide a valid fromCRS and toCRS.\");if(this._isCoord(e))return this._transformCoordinate(e,t,n);if(this._isArray(e)){for(var i=[],r=0;r2){if(!l(n))throw new TypeError(\"polynomial()::invalid input argument. Options argument must be an object. Value: `\"+n+\"`.\");if(n.hasOwnProperty(\"copy\")&&(m=n.copy,!u(m)))throw new TypeError(\"polynomial()::invalid option. Copy option must be a boolean primitive. Option: `\"+m+\"`.\");if(n.hasOwnProperty(\"accessor\")&&(r=n.accessor,!c(r)))throw new TypeError(\"polynomial()::invalid option. Accessor must be a function. Option: `\"+r+\"`.\")}if(d=t.length,h=m?new Array(d):t,r)for(p=0;pc;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var i=n(33),r=n(107),o=n(52),a=n(84),s=n(390);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,d=6==e,h=5==e||d,f=t||s;return function(t,s,p){for(var m,g,v=o(t),y=r(v),b=i(s,p,3),_=a(y.length),x=0,w=n?f(t,_):l?f(t,0):void 0;_>x;x++)if((h||x in y)&&(m=y[x],g=b(m,x,v),e))if(n)w[x]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:w.push(m)}else if(c)return!1;return d?-1:u||c?c:w}}},function(e,t,n){var i=n(24),r=n(165),o=n(18)(\"species\");e.exports=function(e){var t;return r(e)&&(t=e.constructor,\"function\"!=typeof t||t!==Array&&!r(t.prototype)||(t=void 0),i(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var i=n(389);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){\"use strict\";var i=n(25).f,r=n(83),o=n(114),a=n(33),s=n(103),l=n(63),u=n(108),c=n(168),d=n(175),h=n(31),f=n(109).fastKey,p=n(178),m=h?\"_s\":\"size\",g=function(e,t){var n,i=f(t);if(\"F\"!==i)return e._i[i];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var c=e(function(e,i){s(e,c,t,\"_i\"),e._t=t,e._i=r(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=i&&l(i,n,e[u],e)});return o(c.prototype,{clear:function(){for(var e=p(this,t),n=e._i,i=e._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=p(this,t),i=g(n,e);if(i){var r=i.n,o=i.p;delete n._i[i.i],i.r=!0,o&&(o.n=r),r&&(r.p=o),n._f==i&&(n._f=r),n._l==i&&(n._l=o),n[m]--}return!!i},forEach:function(e){p(this,t);for(var n,i=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(p(this,t),e)}}),h&&i(c.prototype,\"size\",{get:function(){return p(this,t)[m]}}),c},def:function(e,t,n){var i,r,o=g(e,t);return o?o.v=n:(e._l=o={i:r=f(t,!0),k:t,v:n,p:i=e._l,n:void 0,r:!1},e._f||(e._f=o),i&&(i.n=o),e[m]++,\"F\"!==r&&(e._i[r]=o)),e},getEntry:g,setStrong:function(e,t,n){u(e,t,function(e,n){this._t=p(e,t),this._k=n,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?\"keys\"==t?c(0,n.k):\"values\"==t?c(0,n.v):c(0,[n.k,n.v]):(e._t=void 0,c(1))},n?\"entries\":\"values\",!n,!0),d(t)}}},function(e,t,n){var i=n(82),r=n(386);e.exports=function(e){return function(){if(i(this)!=e)throw TypeError(e+\"#toJSON isn't generic\");return r(this)}}},function(e,t,n){\"use strict\";var i=n(17),r=n(15),o=n(109),a=n(45),s=n(41),l=n(114),u=n(63),c=n(103),d=n(24),h=n(67),f=n(25).f,p=n(388)(0),m=n(31);e.exports=function(e,t,n,g,v,y){var b=i[e],_=b,x=v?\"set\":\"add\",w=_&&_.prototype,M={};return m&&\"function\"==typeof _&&(y||w.forEach&&!a(function(){(new _).entries().next()}))?(_=t(function(t,n){c(t,_,e,\"_c\"),t._c=new b,void 0!=n&&u(n,v,t[x],t)}),p(\"add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON\".split(\",\"),function(e){var t=\"add\"==e||\"set\"==e;e in w&&(!y||\"clear\"!=e)&&s(_.prototype,e,function(n,i){if(c(this,_,e),!t&&y&&!d(n))return\"get\"==e&&void 0;var r=this._c[e](0===n?0:n,i);return t?this:r})}),y||f(_.prototype,\"size\",{get:function(){return this._c.size}})):(_=g.getConstructor(t,e,v,x),l(_.prototype,n),o.NEED=!0),h(_,e),M[e]=_,r(r.G+r.W+r.F,M),y||g.setStrong(_,e,v),_}},function(e,t,n){\"use strict\";var i=n(25),r=n(66);e.exports=function(e,t,n){t in e?i.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){var i=n(51),r=n(112),o=n(65);e.exports=function(e){var t=i(e),n=r.f;if(n)for(var a,s=n(e),l=o.f,u=0;s.length>u;)l.call(e,a=s[u++])&&t.push(a);return t}},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){\"use strict\";var i=n(83),r=n(66),o=n(67),a={};n(41)(a,n(18)(\"iterator\"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(a,{next:r(1,n)}),o(e,t+\" Iterator\")}},function(e,t,n){var i=n(17),r=n(177).set,o=i.MutationObserver||i.WebKitMutationObserver,a=i.process,s=i.Promise,l=\"process\"==n(62)(a);e.exports=function(){var e,t,n,u=function(){var i,r;for(l&&(i=a.domain)&&i.exit();e;){r=e.fn,e=e.next;try{r()}catch(i){throw e?n():t=void 0,i}}t=void 0,i&&i.enter()};if(l)n=function(){a.nextTick(u)};else if(!o||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(u)}}else n=function(){r.call(i,u)};else{var d=!0,h=document.createTextNode(\"\");new o(u).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(i){var r={fn:i,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}},function(e,t,n){\"use strict\";var i=n(51),r=n(112),o=n(65),a=n(52),s=n(107),l=Object.assign;e.exports=!l||n(45)(function(){var e={},t={},n=Symbol(),i=\"abcdefghijklmnopqrst\";return e[n]=7,i.split(\"\").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join(\"\")!=i})?function(e,t){for(var n=a(e),l=arguments.length,u=1,c=r.f,d=o.f;l>u;)for(var h,f=s(arguments[u++]),p=c?i(f).concat(c(f)):i(f),m=p.length,g=0;m>g;)d.call(f,h=p[g++])&&(n[h]=f[h]);return n}:l},function(e,t,n){var i=n(25),r=n(30),o=n(51);e.exports=n(31)?Object.defineProperties:function(e,t){r(e);for(var n,a=o(t),s=a.length,l=0;s>l;)i.f(e,n=a[l++],t[n]);return e}},function(e,t,n){var i=n(42),r=n(169).f,o={}.toString,a=\"object\"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&\"[object Window]\"==o.call(e)?s(e):r(i(e))}},function(e,t,n){var i=n(51),r=n(42),o=n(65).f;e.exports=function(e){return function(t){for(var n,a=r(t),s=i(a),l=s.length,u=0,c=[];l>u;)o.call(a,n=s[u++])&&c.push(e?[n,a[n]]:a[n]);return c}}},function(e,t,n){\"use strict\";var i=n(15),r=n(61),o=n(33),a=n(63);e.exports=function(e){i(i.S,e,{from:function(e){var t,n,i,s,l=arguments[1];return r(this),t=void 0!==l,t&&r(l),void 0==e?new this:(n=[],t?(i=0,s=o(l,arguments[2],2),a(e,!1,function(e){n.push(s(e,i++))})):a(e,!1,n.push,n),new this(n))}})}},function(e,t,n){\"use strict\";var i=n(15);e.exports=function(e){i(i.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){var i=n(24),r=n(30),o=function(e,t){if(r(e),!i(t)&&null!==t)throw TypeError(t+\": can't set as prototype!\")};e.exports={set:Object.setPrototypeOf||(\"__proto__\"in{}?function(e,t,i){try{i=n(33)(Function.call,n(111).f(Object.prototype,\"__proto__\").set,2),i(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){var i=n(117),r=n(104);e.exports=function(e){return function(t,n){var o,a,s=String(r(t)),l=i(n),u=s.length;return l<0||l>=u?e?\"\":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},function(e,t,n){var i=n(117),r=Math.max,o=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):o(e,t)}},function(e,t,n){var i=n(17),r=i.navigator;e.exports=r&&r.userAgent||\"\"},function(e,t,n){var i=n(30),r=n(121);e.exports=n(10).getIterator=function(e){var t=r(e);if(\"function\"!=typeof t)throw TypeError(e+\" is not iterable!\");return i(t.call(e))}},function(e,t,n){var i=n(82),r=n(18)(\"iterator\"),o=n(50);e.exports=n(10).isIterable=function(e){var t=Object(e);return void 0!==t[r]||\"@@iterator\"in t||o.hasOwnProperty(i(t))}},function(e,t,n){\"use strict\";var i=n(33),r=n(15),o=n(52),a=n(166),s=n(164),l=n(84),u=n(394),c=n(121);r(r.S+r.F*!n(167)(function(e){Array.from(e)}),\"Array\",{from:function(e){var t,n,r,d,h=o(e),f=\"function\"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,y=c(h);if(g&&(m=i(m,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&s(y))for(t=l(h.length),n=new f(t);t>v;v++)u(n,v,g?m(h[v],v):h[v]);else for(d=y.call(h),n=new f;!(r=d.next()).done;v++)u(n,v,g?a(d,m,[r.value,v],!0):r.value);return n.length=v,n}})},function(e,t,n){\"use strict\";var i=n(385),r=n(168),o=n(50),a=n(42);e.exports=n(108)(Array,\"Array\",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):\"keys\"==t?r(0,n):\"values\"==t?r(0,e[n]):r(0,[n,e[n]])},\"values\"),o.Arguments=o.Array,i(\"keys\"),i(\"values\"),i(\"entries\")},function(e,t,n){var i=n(15);i(i.S,\"Math\",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var i=n(15);i(i.S+i.F,\"Object\",{assign:n(399)})},function(e,t,n){var i=n(15);i(i.S,\"Object\",{create:n(83)})},function(e,t,n){var i=n(15);i(i.S+i.F*!n(31),\"Object\",{defineProperty:n(25).f})},function(e,t,n){var i=n(42),r=n(111).f;n(113)(\"getOwnPropertyDescriptor\",function(){return function(e,t){return r(i(e),t)}})},function(e,t,n){var i=n(52),r=n(170);n(113)(\"getPrototypeOf\",function(){return function(e){return r(i(e))}})},function(e,t,n){var i=n(52),r=n(51);n(113)(\"keys\",function(){return function(e){return r(i(e))}})},function(e,t,n){var i=n(15);i(i.S,\"Object\",{setPrototypeOf:n(405).set})},function(e,t,n){\"use strict\";var i,r,o,a,s=n(64),l=n(17),u=n(33),c=n(82),d=n(15),h=n(24),f=n(61),p=n(103),m=n(63),g=n(176),v=n(177).set,y=n(398)(),b=n(110),_=n(172),x=n(408),w=n(173),M=l.TypeError,S=l.process,E=S&&S.versions,T=E&&E.v8||\"\",k=l.Promise,O=\"process\"==c(S),C=function(){},P=r=b.f,A=!!function(){try{var e=k.resolve(1),t=(e.constructor={})[n(18)(\"species\")]=function(e){e(C,C)};return(O||\"function\"==typeof PromiseRejectionEvent)&&e.then(C)instanceof t&&0!==T.indexOf(\"6.6\")&&-1===x.indexOf(\"Chrome/66\")}catch(e){}}(),R=function(e){var t;return!(!h(e)||\"function\"!=typeof(t=e.then))&&t},L=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var i=e._v,r=1==e._s,o=0;n.length>o;)!function(t){var n,o,a,s=r?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{s?(r||(2==e._h&&N(e),e._h=1),!0===s?n=i:(c&&c.enter(),n=s(i),c&&(c.exit(),a=!0)),n===t.promise?u(M(\"Promise-chain cycle\")):(o=R(n))?o.call(n,l,u):l(n)):u(i)}catch(e){c&&!a&&c.exit(),u(e)}}(n[o++]);e._c=[],e._n=!1,t&&!e._h&&I(e)})}},I=function(e){v.call(l,function(){var t,n,i,r=e._v,o=D(e);if(o&&(t=_(function(){O?S.emit(\"unhandledRejection\",r,e):(n=l.onunhandledrejection)?n({promise:e,reason:r}):(i=l.console)&&i.error&&i.error(\"Unhandled promise rejection\",r)}),e._h=O||D(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},N=function(e){v.call(l,function(){var t;O?S.emit(\"rejectionHandled\",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},B=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),L(t,!0))},z=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw M(\"Promise can't be resolved itself\");(t=R(e))?y(function(){var i={_w:n,_d:!1};try{t.call(e,u(z,i,1),u(B,i,1))}catch(e){B.call(i,e)}}):(n._v=e,n._s=1,L(n,!1))}catch(e){B.call({_w:n,_d:!1},e)}}};A||(k=function(e){p(this,k,\"Promise\",\"_h\"),f(e),i.call(this);try{e(u(z,this,1),u(B,this,1))}catch(e){B.call(this,e)}},i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n(114)(k.prototype,{then:function(e,t){var n=P(g(this,k));return n.ok=\"function\"!=typeof e||e,n.fail=\"function\"==typeof t&&t,n.domain=O?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new i;this.promise=e,this.resolve=u(z,e,1),this.reject=u(B,e,1)},b.f=P=function(e){return e===k||e===a?new o(e):r(e)}),d(d.G+d.W+d.F*!A,{Promise:k}),n(67)(k,\"Promise\"),n(175)(\"Promise\"),a=n(10).Promise,d(d.S+d.F*!A,\"Promise\",{reject:function(e){var t=P(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!A),\"Promise\",{resolve:function(e){return w(s&&this===a?k:this,e)}}),d(d.S+d.F*!(A&&n(167)(function(e){k.all(e).catch(C)})),\"Promise\",{all:function(e){var t=this,n=P(t),i=n.resolve,r=n.reject,o=_(function(){var n=[],o=0,a=1;m(e,!1,function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||i(n))},r)}),--a||i(n)});return o.e&&r(o.v),n.promise},race:function(e){var t=this,n=P(t),i=n.reject,r=_(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},function(e,t,n){\"use strict\";var i=n(391),r=n(178);e.exports=n(393)(\"Set\",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return i.def(r(this,\"Set\"),e=0===e?0:e,e)}},i)},function(e,t,n){\"use strict\";var i=n(17),r=n(46),o=n(31),a=n(15),s=n(174),l=n(109).KEY,u=n(45),c=n(116),d=n(67),h=n(85),f=n(18),p=n(120),m=n(119),g=n(395),v=n(165),y=n(30),b=n(24),_=n(42),x=n(118),w=n(66),M=n(83),S=n(401),E=n(111),T=n(25),k=n(51),O=E.f,C=T.f,P=S.f,A=i.Symbol,R=i.JSON,L=R&&R.stringify,I=f(\"_hidden\"),D=f(\"toPrimitive\"),N={}.propertyIsEnumerable,B=c(\"symbol-registry\"),z=c(\"symbols\"),F=c(\"op-symbols\"),j=Object.prototype,U=\"function\"==typeof A,W=i.QObject,G=!W||!W.prototype||!W.prototype.findChild,V=o&&u(function(){return 7!=M(C({},\"a\",{get:function(){return C(this,\"a\",{value:7}).a}})).a})?function(e,t,n){var i=O(j,t);i&&delete j[t],C(e,t,n),i&&e!==j&&C(j,t,i)}:C,H=function(e){var t=z[e]=M(A.prototype);return t._k=e,t},q=U&&\"symbol\"==typeof A.iterator?function(e){return\"symbol\"==typeof e}:function(e){return e instanceof A},Y=function(e,t,n){return e===j&&Y(F,t,n),y(e),t=x(t,!0),y(n),r(z,t)?(n.enumerable?(r(e,I)&&e[I][t]&&(e[I][t]=!1),n=M(n,{enumerable:w(0,!1)})):(r(e,I)||C(e,I,w(1,{})),e[I][t]=!0),V(e,t,n)):C(e,t,n)},X=function(e,t){y(e);for(var n,i=g(t=_(t)),r=0,o=i.length;o>r;)Y(e,n=i[r++],t[n]);return e},K=function(e,t){return void 0===t?M(e):X(M(e),t)},Z=function(e){var t=N.call(this,e=x(e,!0));return!(this===j&&r(z,e)&&!r(F,e))&&(!(t||!r(this,e)||!r(z,e)||r(this,I)&&this[I][e])||t)},J=function(e,t){if(e=_(e),t=x(t,!0),e!==j||!r(z,t)||r(F,t)){var n=O(e,t);return!n||!r(z,t)||r(e,I)&&e[I][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=P(_(e)),i=[],o=0;n.length>o;)r(z,t=n[o++])||t==I||t==l||i.push(t);return i},$=function(e){for(var t,n=e===j,i=P(n?F:_(e)),o=[],a=0;i.length>a;)!r(z,t=i[a++])||n&&!r(j,t)||o.push(z[t]);return o};U||(A=function(){if(this instanceof A)throw TypeError(\"Symbol is not a constructor!\");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===j&&t.call(F,n),r(this,I)&&r(this[I],e)&&(this[I][e]=!1),V(this,e,w(1,n))};return o&&G&&V(j,e,{configurable:!0,set:t}),H(e)},s(A.prototype,\"toString\",function(){return this._k}),E.f=J,T.f=Y,n(169).f=S.f=Q,n(65).f=Z,n(112).f=$,o&&!n(64)&&s(j,\"propertyIsEnumerable\",Z,!0),p.f=function(e){return H(f(e))}),a(a.G+a.W+a.F*!U,{Symbol:A});for(var ee=\"hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables\".split(\",\"),te=0;ee.length>te;)f(ee[te++]);for(var ne=k(f.store),ie=0;ne.length>ie;)m(ne[ie++]);a(a.S+a.F*!U,\"Symbol\",{for:function(e){return r(B,e+=\"\")?B[e]:B[e]=A(e)},keyFor:function(e){if(!q(e))throw TypeError(e+\" is not a symbol!\");for(var t in B)if(B[t]===e)return t},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!U,\"Object\",{create:K,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:$}),R&&a(a.S+a.F*(!U||u(function(){var e=A();return\"[null]\"!=L([e])||\"{}\"!=L({a:e})||\"{}\"!=L(Object(e))})),\"JSON\",{stringify:function(e){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=t=i[1],(b(t)||void 0!==e)&&!q(e))return v(t)||(t=function(e,t){if(\"function\"==typeof n&&(t=n.call(this,e,t)),!q(t))return t}),i[1]=t,L.apply(R,i)}}),A.prototype[D]||n(41)(A.prototype,D,A.prototype.valueOf),d(A,\"Symbol\"),d(Math,\"Math\",!0),d(i.JSON,\"JSON\",!0)},function(e,t,n){var i=n(15),r=n(402)(!1);i(i.S,\"Object\",{values:function(e){return r(e)}})},function(e,t,n){\"use strict\";var i=n(15),r=n(10),o=n(17),a=n(176),s=n(173);i(i.P+i.R,\"Promise\",{finally:function(e){var t=a(this,r.Promise||o.Promise),n=\"function\"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){\"use strict\";var i=n(15),r=n(110),o=n(172);i(i.S,\"Promise\",{try:function(e){var t=r.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){n(403)(\"Set\")},function(e,t,n){n(404)(\"Set\")},function(e,t,n){var i=n(15);i(i.P+i.R,\"Set\",{toJSON:n(392)(\"Set\")})},function(e,t,n){n(119)(\"asyncIterator\")},function(e,t,n){n(119)(\"observable\")},function(e,t,n){function i(e,t){if(e){var n,i=\"\";for(var r in e)n=e[r],i&&(i+=\" \"),!n&&d[r]?i+=r:i+=r+'=\"'+(t.decodeEntities?c.encodeXML(n):n)+'\"';return i}}function r(e,t){\"svg\"===e.name&&(t={decodeEntities:t.decodeEntities,xmlMode:!0});var n=\"<\"+e.name,r=i(e.attribs,t);return r&&(n+=\" \"+r),!t.xmlMode||e.children&&0!==e.children.length?(n+=\">\",e.children&&(n+=p(e.children,t)),f[e.name]&&!t.xmlMode||(n+=\"\")):n+=\"/>\",n}function o(e){return\"<\"+e.data+\">\"}function a(e,t){var n=e.data||\"\";return!t.decodeEntities||e.parent&&e.parent.name in h||(n=c.encodeXML(n)),n}function s(e){return\"\"}function l(e){return\"\\x3c!--\"+e.data+\"--\\x3e\"}var u=n(433),c=n(436),d={__proto__:null,allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,hidden:!0,ismap:!0,loop:!0,multiple:!0,muted:!0,open:!0,readonly:!0,required:!0,reversed:!0,scoped:!0,seamless:!0,selected:!0,typemustmatch:!0},h={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0},f={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},p=e.exports=function(e,t){Array.isArray(e)||e.cheerio||(e=[e]),t=t||{};for(var n=\"\",i=0;i0&&(r=1/Math.sqrt(r),e[0]=t[0]*r,e[1]=t[1]*r),e}e.exports=n},function(e,t){function n(e,t,n){return e[0]=t,e[1]=n,e}e.exports=n},function(e,t){function n(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}e.exports=n},function(e,t,n){function i(e){this._cbs=e||{},this.events=[]}e.exports=i;var r=n(72).EVENTS;Object.keys(r).forEach(function(e){if(0===r[e])e=\"on\"+e,i.prototype[e]=function(){this.events.push([e]),this._cbs[e]&&this._cbs[e]()};else if(1===r[e])e=\"on\"+e,i.prototype[e]=function(t){this.events.push([e,t]),this._cbs[e]&&this._cbs[e](t)};else{if(2!==r[e])throw Error(\"wrong number of arguments\");e=\"on\"+e,i.prototype[e]=function(t,n){this.events.push([e,t,n]),this._cbs[e]&&this._cbs[e](t,n)}}}),i.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},i.prototype.restart=function(){this._cbs.onreset&&this._cbs.onreset();for(var e=0,t=this.events.length;e-1;){for(t=n=e[r],e[r]=null,i=!0;n;){if(e.indexOf(n)>-1){i=!1,e.splice(r,1);break}n=n.parent}i&&(e[r]=t)}return e};var n={DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16},i=t.compareDocumentPosition=function(e,t){var i,r,o,a,s,l,u=[],c=[];if(e===t)return 0;for(i=e;i;)u.unshift(i),i=i.parent;for(i=t;i;)c.unshift(i),i=i.parent;for(l=0;u[l]===c[l];)l++;return 0===l?n.DISCONNECTED:(r=u[l-1],o=r.children,a=u[l],s=c[l],o.indexOf(a)>o.indexOf(s)?r===t?n.FOLLOWING|n.CONTAINED_BY:n.FOLLOWING:r===e?n.PRECEDING|n.CONTAINS:n.PRECEDING)};t.uniqueSort=function(e){var t,r,o=e.length;for(e=e.slice();--o>-1;)t=e[o],(r=e.indexOf(t))>-1&&r0&&(o=r(e,o,n,i),a=a.concat(o),(i-=o.length)<=0)));s++);return a}function o(e,t){for(var n=0,i=t.length;n0&&(n=a(e,t[i].children)));return n}function s(e,t){for(var n=0,i=t.length;n0&&s(e,t[n].children)))return!0;return!1}function l(e,t){for(var n=[],i=t.slice();i.length;){var r=i.shift();u(r)&&(r.children&&r.children.length>0&&i.unshift.apply(i,r.children),e(r)&&n.push(r))}return n}var u=n(71).isTag;e.exports={filter:i,find:r,findOneChild:o,findOne:a,existsOne:s,findAll:l}},function(e,t,n){function i(e,t){return e.children?e.children.map(function(e){return a(e,t)}).join(\"\"):\"\"}function r(e){return Array.isArray(e)?e.map(r).join(\"\"):s(e)?\"br\"===e.name?\"\\n\":r(e.children):e.type===o.CDATA?r(e.children):e.type===o.Text?e.data:\"\"}var o=n(71),a=n(432),s=o.isTag;e.exports={getInnerHTML:i,getOuterHTML:a,getText:r}},function(e,t){var n=t.getChildren=function(e){return e.children},i=t.getParent=function(e){return e.parent};t.getSiblings=function(e){var t=i(e);return t?n(t):[e]},t.getAttributeValue=function(e,t){return e.attribs&&e.attribs[t]},t.hasAttrib=function(e,t){return!!e.attribs&&hasOwnProperty.call(e.attribs,t)},t.getName=function(e){return e.name}},function(e,t,n){\"use strict\";function i(e){return e in a?a[e]:a[e]=e.replace(r,\"-$&\").toLowerCase().replace(o,\"-ms-\")}var r=/[A-Z]/g,o=/^ms-/,a={};e.exports=i},function(e,t){t.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,l=(1<>1,c=-7,d=n?r-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=i;c>0;a=256*a+e[t+d],d+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=u}return(f?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var a,s,l,u=8*o-r-1,c=(1<>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+d>=1?h/l:h*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+f]=255&s,f+=p,s/=256,r-=8);for(a=a<0;e[n+f]=255&a,f+=p,a/=256,u-=8);e[n+f-p]|=128*m}},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function o(e){var t=e.prefixMap,n=e.plugins,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};return function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e);var i=\"undefined\"!=typeof navigator?navigator.userAgent:void 0;if(this._userAgent=n.userAgent||i,this._keepUnprefixed=n.keepUnprefixed||!1,this._userAgent&&(this._browserInfo=(0,l.default)(this._userAgent)),!this._browserInfo||!this._browserInfo.cssPrefix)return this._useFallback=!0,!1;this.prefixedKeyframes=(0,c.default)(this._browserInfo.browserName,this._browserInfo.browserVersion,this._browserInfo.cssPrefix);var o=this._browserInfo.browserName&&t[this._browserInfo.browserName];if(o){this._requiresPrefix={};for(var a in o)o[a]>=this._browserInfo.browserVersion&&(this._requiresPrefix[a]=!0);this._hasPropsRequiringPrefix=Object.keys(this._requiresPrefix).length>0}else this._useFallback=!0;this._metaData={browserVersion:this._browserInfo.browserVersion,browserName:this._browserInfo.browserName,cssPrefix:this._browserInfo.cssPrefix,jsPrefix:this._browserInfo.jsPrefix,keepUnprefixed:this._keepUnprefixed,requiresPrefix:this._requiresPrefix}}return a(e,[{key:\"prefix\",value:function(e){return this._useFallback?i(e):this._hasPropsRequiringPrefix?this._prefixStyle(e):e}},{key:\"_prefixStyle\",value:function(e){for(var t in e){var i=e[t];if((0,g.default)(i))e[t]=this.prefix(i);else if(Array.isArray(i)){for(var r=[],o=0,a=i.length;o0&&(e[t]=r)}else{var l=(0,y.default)(n,t,i,e,this._metaData);l&&(e[t]=l),this._requiresPrefix.hasOwnProperty(t)&&(e[this._browserInfo.jsPrefix+(0,h.default)(t)]=i,this._keepUnprefixed||delete e[t])}}return e}}],[{key:\"prefixAll\",value:function(e){return i(e)}}]),e}()}Object.defineProperty(t,\"__esModule\",{value:!0});var a=function(){function e(e,t){for(var n=0;n-1&&(\"chrome\"===r||\"opera\"===r||\"and_chr\"===r||(\"ios_saf\"===r||\"safari\"===r)&&a<10))return(0,o.default)(t.replace(/cross-fade\\(/g,s+\"cross-fade(\"),t,l)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.browserName,l=i.browserVersion,u=i.cssPrefix,c=i.keepUnprefixed;return\"cursor\"!==e||!a[t]||\"firefox\"!==r&&\"chrome\"!==r&&\"safari\"!==r&&\"opera\"!==r?\"cursor\"===e&&s[t]&&(\"firefox\"===r&&l<24||\"chrome\"===r&&l<37||\"safari\"===r&&l<9||\"opera\"===r&&l<24)?(0,o.default)(u+t,t,c):void 0:(0,o.default)(u+t,t,c)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a={grab:!0,grabbing:!0},s={\"zoom-in\":!0,\"zoom-out\":!0};e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.browserName,a=i.browserVersion,s=i.cssPrefix,l=i.keepUnprefixed;if(\"string\"==typeof t&&t.indexOf(\"filter(\")>-1&&(\"ios_saf\"===r||\"safari\"===r&&a<9.1))return(0,o.default)(t.replace(/filter\\(/g,s+\"filter(\"),t,l)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.browserName,s=i.browserVersion,l=i.cssPrefix,u=i.keepUnprefixed;if(\"display\"===e&&a[t]&&(\"chrome\"===r&&s<29&&s>20||(\"safari\"===r||\"ios_saf\"===r)&&s<9&&s>6||\"opera\"===r&&(15===s||16===s)))return(0,o.default)(l+t,t,u)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a={flex:!0,\"inline-flex\":!0};e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.browserName,l=i.browserVersion,c=i.cssPrefix,d=i.keepUnprefixed,h=i.requiresPrefix;if((u.indexOf(e)>-1||\"display\"===e&&\"string\"==typeof t&&t.indexOf(\"flex\")>-1)&&(\"firefox\"===r&&l<22||\"chrome\"===r&&l<21||(\"safari\"===r||\"ios_saf\"===r)&&l<=6.1||\"android\"===r&&l<4.4||\"and_uc\"===r)){if(delete h[e],d||Array.isArray(n[e])||delete n[e],\"flexDirection\"===e&&\"string\"==typeof t&&(t.indexOf(\"column\")>-1?n.WebkitBoxOrient=\"vertical\":n.WebkitBoxOrient=\"horizontal\",t.indexOf(\"reverse\")>-1?n.WebkitBoxDirection=\"reverse\":n.WebkitBoxDirection=\"normal\"),\"display\"===e&&a.hasOwnProperty(t))return(0,o.default)(c+a[t],t,d);s.hasOwnProperty(e)&&(n[s[e]]=a[t]||t)}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a={\"space-around\":\"justify\",\"space-between\":\"justify\",\"flex-start\":\"start\",\"flex-end\":\"end\",\"wrap-reverse\":\"multiple\",wrap:\"multiple\",flex:\"box\",\"inline-flex\":\"inline-box\"},s={alignItems:\"WebkitBoxAlign\",justifyContent:\"WebkitBoxPack\",flexWrap:\"WebkitBoxLines\"},l=[\"alignContent\",\"alignSelf\",\"order\",\"flexGrow\",\"flexShrink\",\"flexBasis\",\"flexDirection\"],u=Object.keys(s).concat(l);e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.browserName,s=i.browserVersion,l=i.cssPrefix,u=i.keepUnprefixed;if(\"string\"==typeof t&&a.test(t)&&(\"firefox\"===r&&s<16||\"chrome\"===r&&s<26||(\"safari\"===r||\"ios_saf\"===r)&&s<7||(\"opera\"===r||\"op_mini\"===r)&&s<12.1||\"android\"===r&&s<4.4||\"and_uc\"===r))return(0,o.default)(l+t,t,u)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.browserName,a=i.cssPrefix,s=i.keepUnprefixed;if(\"string\"==typeof t&&t.indexOf(\"image-set(\")>-1&&(\"chrome\"===r||\"opera\"===r||\"and_chr\"===r||\"and_uc\"===r||\"ios_saf\"===r||\"safari\"===r))return(0,o.default)(t.replace(/image-set\\(/g,a+\"image-set(\"),t,s)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.browserName,a=i.cssPrefix,s=i.keepUnprefixed;if(\"position\"===e&&\"sticky\"===t&&(\"safari\"===r||\"ios_saf\"===r))return(0,o.default)(a+t,t,s)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.cssPrefix,l=i.keepUnprefixed;if(a.hasOwnProperty(e)&&s.hasOwnProperty(t))return(0,o.default)(r+t,t,l)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},s={\"min-content\":!0,\"max-content\":!0,\"fill-available\":!0,\"fit-content\":!0,\"contain-floats\":!0};e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.cssPrefix,l=i.keepUnprefixed,u=i.requiresPrefix;if(\"string\"==typeof t&&a.hasOwnProperty(e)){s||(s=Object.keys(u).map(function(e){return(0,o.default)(e)}));var c=t.split(/,(?![^()]*(?:\\([^()]*\\))?\\))/g);return s.forEach(function(e){c.forEach(function(t,n){t.indexOf(e)>-1&&\"order\"!==e&&(c[n]=t.replace(e,r+e)+(l?\",\"+t:\"\"))})}),c.join(\",\")}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(179),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},s=void 0;e.exports=t.default},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){function t(e){for(var r in e){var o=e[r];if((0,h.default)(o))e[r]=t(o);else if(Array.isArray(o)){for(var s=[],u=0,d=o.length;u0&&(e[r]=s)}else{var p=(0,l.default)(i,r,o,e,n);p&&(e[r]=p),(0,a.default)(n,r,e)}}return e}var n=e.prefixMap,i=e.plugins;return t}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=r;var o=n(485),a=i(o),s=n(187),l=i(s),u=n(185),c=i(u),d=n(186),h=i(d);e.exports=t.default},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(470),o=i(r),a=n(482),s=i(a),l=n(473),u=i(l),c=n(472),d=i(c),h=n(474),f=i(h),p=n(475),m=i(p),g=n(476),v=i(g),y=n(477),b=i(y),_=n(478),x=i(_),w=n(479),M=i(w),S=n(480),E=i(S),T=n(481),k=i(T),O=[d.default,u.default,f.default,v.default,b.default,x.default,M.default,E.default,k.default,m.default];t.default=(0,o.default)({prefixMap:s.default.prefixMap,plugins:O}),e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t){if(\"string\"==typeof t&&!(0,o.default)(t)&&t.indexOf(\"cross-fade(\")>-1)return a.map(function(e){return t.replace(/cross-fade\\(/g,e+\"cross-fade(\")})}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(70),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=[\"-webkit-\",\"\"];e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t){if(\"cursor\"===e&&o.hasOwnProperty(t))return r.map(function(e){return e+t})}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=[\"-webkit-\",\"-moz-\",\"\"],o={\"zoom-in\":!0,\"zoom-out\":!0,grab:!0,grabbing:!0};e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t){if(\"string\"==typeof t&&!(0,o.default)(t)&&t.indexOf(\"filter(\")>-1)return a.map(function(e){return t.replace(/filter\\(/g,e+\"filter(\")})}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(70),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=[\"-webkit-\",\"\"];e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t){if(\"display\"===e&&r.hasOwnProperty(t))return r[t]}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r={flex:[\"-webkit-box\",\"-moz-box\",\"-ms-flexbox\",\"-webkit-flex\",\"flex\"],\"inline-flex\":[\"-webkit-inline-box\",\"-moz-inline-box\",\"-ms-inline-flexbox\",\"-webkit-inline-flex\",\"inline-flex\"]};e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n){\"flexDirection\"===e&&\"string\"==typeof t&&(t.indexOf(\"column\")>-1?n.WebkitBoxOrient=\"vertical\":n.WebkitBoxOrient=\"horizontal\",t.indexOf(\"reverse\")>-1?n.WebkitBoxDirection=\"reverse\":n.WebkitBoxDirection=\"normal\"),o.hasOwnProperty(e)&&(n[o[e]]=r[t]||t)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r={\"space-around\":\"justify\",\"space-between\":\"justify\",\"flex-start\":\"start\",\"flex-end\":\"end\",\"wrap-reverse\":\"multiple\",wrap:\"multiple\"},o={alignItems:\"WebkitBoxAlign\",justifyContent:\"WebkitBoxPack\",flexWrap:\"WebkitBoxLines\"};e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t){if(\"string\"==typeof t&&!(0,o.default)(t)&&s.test(t))return a.map(function(e){return e+t})}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(70),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=[\"-webkit-\",\"-moz-\",\"\"],s=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t){if(\"string\"==typeof t&&!(0,o.default)(t)&&t.indexOf(\"image-set(\")>-1)return a.map(function(e){return t.replace(/image-set\\(/g,e+\"image-set(\")})}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(70),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=[\"-webkit-\",\"\"];e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t){if(\"position\"===e&&\"sticky\"===t)return[\"-webkit-sticky\",\"sticky\"]}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i,e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t){if(o.hasOwnProperty(e)&&a.hasOwnProperty(t))return r.map(function(e){return e+t})}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=[\"-webkit-\",\"-moz-\",\"\"],o={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},a={\"min-content\":!0,\"max-content\":!0,\"fill-available\":!0,\"fit-content\":!0,\"contain-floats\":!0};e.exports=t.default},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if((0,u.default)(e))return e;for(var n=e.split(/,(?![^()]*(?:\\([^()]*\\))?\\))/g),i=0,r=n.length;i-1&&\"order\"!==c)for(var d=t[l],h=0,p=d.length;h-1)return a;var s=o.split(/,(?![^()]*(?:\\([^()]*\\))?\\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(\",\");return e.indexOf(\"Moz\")>-1?s:(n[\"Webkit\"+(0,d.default)(e)]=a,n[\"Moz\"+(0,d.default)(e)]=s,o)}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=o;var a=n(179),s=i(a),l=n(70),u=i(l),c=n(124),d=i(c),h={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},f={Webkit:\"-webkit-\",Moz:\"-moz-\",ms:\"-ms-\"};e.exports=t.default},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=[\"Webkit\"],r=[\"Moz\"],o=[\"ms\"],a=[\"Webkit\",\"Moz\"],s=[\"Webkit\",\"ms\"],l=[\"Webkit\",\"Moz\",\"ms\"];t.default={plugins:[],prefixMap:{appearance:a,userSelect:l,textEmphasisPosition:i,textEmphasis:i,textEmphasisStyle:i,textEmphasisColor:i,boxDecorationBreak:i,clipPath:i,maskImage:i,maskMode:i,maskRepeat:i,maskPosition:i,maskClip:i,maskOrigin:i,maskSize:i,maskComposite:i,mask:i,maskBorderSource:i,maskBorderMode:i,maskBorderSlice:i,maskBorderWidth:i,maskBorderOutset:i,maskBorderRepeat:i,maskBorder:i,maskType:i,textDecorationStyle:i,textDecorationSkip:i,textDecorationLine:i,textDecorationColor:i,filter:i,fontFeatureSettings:i,breakAfter:l,breakBefore:l,breakInside:l,columnCount:a,columnFill:a,columnGap:a,columnRule:a,columnRuleColor:a,columnRuleStyle:a,columnRuleWidth:a,columns:a,columnSpan:a,columnWidth:a,writingMode:s,flex:i,flexBasis:i,flexDirection:i,flexGrow:i,flexFlow:i,flexShrink:i,flexWrap:i,alignContent:i,alignItems:i,alignSelf:i,justifyContent:i,order:i,transform:i,transformOrigin:i,transformOriginX:i,transformOriginY:i,backfaceVisibility:i,perspective:i,perspectiveOrigin:i,transformStyle:i,transformOriginZ:i,animation:i,animationDelay:i,animationDirection:i,animationFillMode:i,animationDuration:i,animationIterationCount:i,animationName:i,animationPlayState:i,animationTimingFunction:i,backdropFilter:i,fontKerning:i,scrollSnapType:s,scrollSnapPointsX:s,scrollSnapPointsY:s,scrollSnapDestination:s,scrollSnapCoordinate:s,shapeImageThreshold:i,shapeImageMargin:i,shapeImageOutside:i,hyphens:l,flowInto:s,flowFrom:s,regionFragment:s,textAlignLast:r,tabSize:r,wrapFlow:o,wrapThrough:o,wrapMargin:o,gridTemplateColumns:o,gridTemplateRows:o,gridTemplateAreas:o,gridTemplate:o,gridAutoColumns:o,gridAutoRows:o,gridAutoFlow:o,grid:o,gridRowStart:o,gridColumnStart:o,gridRowEnd:o,gridRow:o,gridColumn:o,gridColumnEnd:o,gridColumnGap:o,gridRowGap:o,gridArea:o,gridGap:o,textSizeAdjust:s,borderImage:i,borderImageOutset:i,borderImageRepeat:i,borderImageSlice:i,borderImageSource:i,borderImageWidth:i,transitionDelay:i,transitionDuration:i,transitionProperty:i,transitionTimingFunction:i}},e.exports=t.default},function(e,t,n){\"use strict\";function i(e){if(e.firefox)return\"firefox\";if(e.mobile||e.tablet){if(e.ios)return\"ios_saf\";if(e.android)return\"android\";if(e.opera)return\"op_mini\"}for(var t in l)if(e.hasOwnProperty(t))return l[t]}function r(e){var t=a.default._detect(e);t.yandexbrowser&&(t=a.default._detect(e.replace(/YaBrowser\\/[0-9.]*/,\"\")));for(var n in s)if(t.hasOwnProperty(n)){var r=s[n];t.jsPrefix=r,t.cssPrefix=\"-\"+r.toLowerCase()+\"-\";break}return t.browserName=i(t),t.version?t.browserVersion=parseFloat(t.version):t.browserVersion=parseInt(parseFloat(t.osversion),10),t.osVersion=parseFloat(t.osversion),\"ios_saf\"===t.browserName&&t.browserVersion>t.osVersion&&(t.browserVersion=t.osVersion),\"android\"===t.browserName&&t.chrome&&t.browserVersion>37&&(t.browserName=\"and_chr\"),\"android\"===t.browserName&&t.osVersion<5&&(t.browserVersion=t.osVersion),\"android\"===t.browserName&&t.samsungBrowser&&(t.browserName=\"and_chr\",t.browserVersion=44),t}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=r;var o=n(323),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s={chrome:\"Webkit\",safari:\"Webkit\",ios:\"Webkit\",android:\"Webkit\",phantom:\"Webkit\",opera:\"Webkit\",webos:\"Webkit\",blackberry:\"Webkit\",bada:\"Webkit\",tizen:\"Webkit\",chromium:\"Webkit\",vivaldi:\"Webkit\",firefox:\"Moz\",seamoney:\"Moz\",sailfish:\"Moz\",msie:\"ms\",msedge:\"ms\"},l={chrome:\"chrome\",chromium:\"chrome\",safari:\"safari\",firfox:\"firefox\",msedge:\"edge\",opera:\"opera\",vivaldi:\"opera\",msie:\"ie\"};e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n){return\"chrome\"===e&&t<43||(\"safari\"===e||\"ios_saf\"===e)&&t<9||\"opera\"===e&&t<30||\"android\"===e&&t<=4.4||\"and_uc\"===e?n+\"keyframes\":\"keyframes\"}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i,e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n){if(e.hasOwnProperty(t))for(var i=e[t],r=0,a=i.length;r0)for(n=0;n0?\"future\":\"past\"];return E(n)?n(t):n.replace(/%s/i,t)}function D(e,t){var n=e.toLowerCase();Bi[n]=Bi[n+\"s\"]=Bi[t]=e}function N(e){return\"string\"==typeof e?Bi[e]||Bi[e.toLowerCase()]:void 0}function B(e){var t,n,i={};for(n in e)u(e,n)&&(t=N(n))&&(i[t]=e[n]);return i}function z(e,t){zi[e]=t}function F(e){var t=[];for(var n in e)t.push({unit:n,priority:zi[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function j(e,t,n){var i=\"\"+Math.abs(e),r=t-i.length;return(e>=0?n?\"+\":\"\":\"-\")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function U(e,t,n,i){var r=i;\"string\"==typeof i&&(r=function(){return this[i]()}),e&&(Wi[e]=r),t&&(Wi[t[0]]=function(){return j(r.apply(this,arguments),t[1],t[2])}),n&&(Wi[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function W(e){return e.match(/\\[[\\s\\S]/)?e.replace(/^\\[|\\]$/g,\"\"):e.replace(/\\\\/g,\"\")}function G(e){var t,n,i=e.match(Fi);for(t=0,n=i.length;t=0&&ji.test(e);)e=e.replace(ji,n),ji.lastIndex=0,i-=1;return e}function q(e,t,n){ar[e]=E(t)?t:function(e,i){return e&&n?n:t}}function Y(e,t){return u(ar,e)?ar[e](t._strict,t._locale):new RegExp(X(e))}function X(e){return K(e.replace(\"\\\\\",\"\").replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function K(e){return e.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\")}function Z(e,t){var n,i=t;for(\"string\"==typeof e&&(e=[e]),a(t)&&(i=function(e,n){n[t]=_(e)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function _e(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function xe(e,t,n){var i=7+t-n;return-(7+_e(e,0,i).getUTCDay()-t)%7+i-1}function we(e,t,n,i,r){var o,a,s=(7+n-i)%7,l=xe(e,i,r),u=1+7*(t-1)+s+l;return u<=0?(o=e-1,a=$(o)+u):u>$(e)?(o=e+1,a=u-$(e)):(o=e,a=u),{year:o,dayOfYear:a}}function Me(e,t,n){var i,r,o=xe(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(r=e.year()-1,i=a+Se(r,t,n)):a>Se(e.year(),t,n)?(i=a-Se(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Se(e,t,n){var i=xe(e,t,n),r=xe(e+1,t,n);return($(e)-i+r)/7}function Ee(e){return Me(e,this._week.dow,this._week.doy).week}function Te(){return this._week.dow}function ke(){return this._week.doy}function Oe(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),\"d\")}function Ce(e){var t=Me(this,1,4).week;return null==e?t:this.add(7*(e-t),\"d\")}function Pe(e,t){return\"string\"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),\"number\"==typeof e?e:null):parseInt(e,10)}function Ae(e,t){return\"string\"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Re(e,t){return e?n(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?\"format\":\"standalone\"][e.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone}function Le(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ie(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function De(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=d([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,\"\").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,\"\").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,\"\").toLocaleLowerCase();return n?\"dddd\"===t?(r=vr.call(this._weekdaysParse,a),-1!==r?r:null):\"ddd\"===t?(r=vr.call(this._shortWeekdaysParse,a),-1!==r?r:null):(r=vr.call(this._minWeekdaysParse,a),-1!==r?r:null):\"dddd\"===t?-1!==(r=vr.call(this._weekdaysParse,a))?r:-1!==(r=vr.call(this._shortWeekdaysParse,a))?r:(r=vr.call(this._minWeekdaysParse,a),-1!==r?r:null):\"ddd\"===t?-1!==(r=vr.call(this._shortWeekdaysParse,a))?r:-1!==(r=vr.call(this._weekdaysParse,a))?r:(r=vr.call(this._minWeekdaysParse,a),-1!==r?r:null):-1!==(r=vr.call(this._minWeekdaysParse,a))?r:-1!==(r=vr.call(this._weekdaysParse,a))?r:(r=vr.call(this._shortWeekdaysParse,a),-1!==r?r:null)}function Ne(e,t,n){var i,r,o;if(this._weekdaysParseExact)return De.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=d([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp(\"^\"+this.weekdays(r,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\"),this._shortWeekdaysParse[i]=new RegExp(\"^\"+this.weekdaysShort(r,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\"),this._minWeekdaysParse[i]=new RegExp(\"^\"+this.weekdaysMin(r,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\")),this._weekdaysParse[i]||(o=\"^\"+this.weekdays(r,\"\")+\"|^\"+this.weekdaysShort(r,\"\")+\"|^\"+this.weekdaysMin(r,\"\"),this._weekdaysParse[i]=new RegExp(o.replace(\".\",\"\"),\"i\")),n&&\"dddd\"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&\"ddd\"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&\"dd\"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Be(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Pe(e,this.localeData()),this.add(e-t,\"d\")):t}function ze(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,\"d\")}function Fe(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ae(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function je(e){return this._weekdaysParseExact?(u(this,\"_weekdaysRegex\")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,\"_weekdaysRegex\")||(this._weekdaysRegex=Or),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ue(e){return this._weekdaysParseExact?(u(this,\"_weekdaysRegex\")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,\"_weekdaysShortRegex\")||(this._weekdaysShortRegex=Cr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function We(e){return this._weekdaysParseExact?(u(this,\"_weekdaysRegex\")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,\"_weekdaysMinRegex\")||(this._weekdaysMinRegex=Pr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ge(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),i=this.weekdaysMin(n,\"\"),r=this.weekdaysShort(n,\"\"),o=this.weekdays(n,\"\"),a.push(i),s.push(r),l.push(o),u.push(i),u.push(r),u.push(o);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=K(s[t]),l[t]=K(l[t]),u[t]=K(u[t]);this._weekdaysRegex=new RegExp(\"^(\"+u.join(\"|\")+\")\",\"i\"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(\"^(\"+l.join(\"|\")+\")\",\"i\"),this._weekdaysShortStrictRegex=new RegExp(\"^(\"+s.join(\"|\")+\")\",\"i\"),this._weekdaysMinStrictRegex=new RegExp(\"^(\"+a.join(\"|\")+\")\",\"i\")}function Ve(){return this.hours()%12||12}function He(){return this.hours()||24}function qe(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ye(e,t){return t._meridiemParse}function Xe(e){return\"p\"===(e+\"\").toLowerCase().charAt(0)}function Ke(e,t,n){return e>11?n?\"pm\":\"PM\":n?\"am\":\"AM\"}function Ze(e){return e?e.toLowerCase().replace(\"_\",\"-\"):e}function Je(e){for(var t,n,i,r,o=0;o0;){if(i=Qe(r.slice(0,t).join(\"-\")))return i;if(n&&n.length>=t&&x(r,n,!0)>=t-1)break;t--}o++}return Ar}function Qe(t){var n=null;if(!Dr[t]&&void 0!==e&&e&&e.exports)try{n=Ar._abbr;!function(){var e=new Error('Cannot find module \"./locale\"');throw e.code=\"MODULE_NOT_FOUND\",e}(),$e(n)}catch(e){}return Dr[t]}function $e(e,t){var n;return e&&(n=o(t)?nt(e):et(e,t),n?Ar=n:\"undefined\"!=typeof console&&console.warn&&console.warn(\"Locale \"+e+\" not found. Did you forget to load it?\")),Ar._abbr}function et(e,t){if(null!==t){var n,i=Ir;if(t.abbr=e,null!=Dr[e])S(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\"),i=Dr[e]._config;else if(null!=t.parentLocale)if(null!=Dr[t.parentLocale])i=Dr[t.parentLocale]._config;else{if(null==(n=Qe(t.parentLocale)))return Nr[t.parentLocale]||(Nr[t.parentLocale]=[]),Nr[t.parentLocale].push({name:e,config:t}),null;i=n._config}return Dr[e]=new O(k(i,t)),Nr[e]&&Nr[e].forEach(function(e){et(e.name,e.config)}),$e(e),Dr[e]}return delete Dr[e],null}function tt(e,t){if(null!=t){var n,i,r=Ir;i=Qe(e),null!=i&&(r=i._config),t=k(r,t),n=new O(t),n.parentLocale=Dr[e],Dr[e]=n,$e(e)}else null!=Dr[e]&&(null!=Dr[e].parentLocale?Dr[e]=Dr[e].parentLocale:null!=Dr[e]&&delete Dr[e]);return Dr[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ar;if(!n(e)){if(t=Qe(e))return t;e=[e]}return Je(e)}function it(){return Ri(Dr)}function rt(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[ur]<0||n[ur]>11?ur:n[cr]<1||n[cr]>le(n[lr],n[ur])?cr:n[dr]<0||n[dr]>24||24===n[dr]&&(0!==n[hr]||0!==n[fr]||0!==n[pr])?dr:n[hr]<0||n[hr]>59?hr:n[fr]<0||n[fr]>59?fr:n[pr]<0||n[pr]>999?pr:-1,f(e)._overflowDayOfYear&&(tcr)&&(t=cr),f(e)._overflowWeeks&&-1===t&&(t=mr),f(e)._overflowWeekday&&-1===t&&(t=gr),f(e).overflow=t),e}function ot(e,t,n){return null!=e?e:null!=t?t:n}function at(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function st(e){var t,n,i,r,o,a=[];if(!e._d){for(i=at(e),e._w&&null==e._a[cr]&&null==e._a[ur]&<(e),null!=e._dayOfYear&&(o=ot(e._a[lr],i[lr]),(e._dayOfYear>$(o)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=_e(o,0,e._dayOfYear),e._a[ur]=n.getUTCMonth(),e._a[cr]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[dr]&&0===e._a[hr]&&0===e._a[fr]&&0===e._a[pr]&&(e._nextDay=!0,e._a[dr]=0),e._d=(e._useUTC?_e:be).apply(null,a),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[dr]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(f(e).weekdayMismatch=!0)}}function lt(e){var t,n,i,r,o,a,s,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,a=4,n=ot(t.GG,e._a[lr],Me(Et(),1,4).year),i=ot(t.W,1),((r=ot(t.E,1))<1||r>7)&&(l=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var u=Me(Et(),o,a);n=ot(t.gg,e._a[lr],u.year),i=ot(t.w,u.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o}i<1||i>Se(n,o,a)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(s=we(n,i,r,o,a),e._a[lr]=s.year,e._dayOfYear=s.dayOfYear)}function ut(e){var t,n,i,r,o,a,s=e._i,l=Br.exec(s)||zr.exec(s);if(l){for(f(e).iso=!0,t=0,n=jr.length;t0&&f(e).unusedInput.push(a),s=s.slice(s.indexOf(i)+i.length),u+=i.length),Wi[o]?(i?f(e).empty=!1:f(e).unusedTokens.push(o),Q(o,i,e)):e._strict&&!i&&f(e).unusedTokens.push(o);f(e).charsLeftOver=l-u,s.length>0&&f(e).unusedInput.push(s),e._a[dr]<=12&&!0===f(e).bigHour&&e._a[dr]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[dr]=yt(e._locale,e._a[dr],e._meridiem),st(e),rt(e)}function yt(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function bt(e){var t,n,i,r,o;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qt(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),e=wt(e),e._a){var t=e._isUTC?d(e._a):Et(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Yt(){return!!this.isValid()&&!this._isUTC}function Xt(){return!!this.isValid()&&this._isUTC}function Kt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Zt(e,t){var n,i,r,o=e,s=null;return Lt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:a(e)?(o={},t?o[t]=e:o.milliseconds=e):(s=Zr.exec(e))?(n=\"-\"===s[1]?-1:1,o={y:0,d:_(s[cr])*n,h:_(s[dr])*n,m:_(s[hr])*n,s:_(s[fr])*n,ms:_(It(1e3*s[pr]))*n}):(s=Jr.exec(e))?(n=\"-\"===s[1]?-1:(s[1],1),o={y:Jt(s[2],n),M:Jt(s[3],n),w:Jt(s[4],n),d:Jt(s[5],n),h:Jt(s[6],n),m:Jt(s[7],n),s:Jt(s[8],n)}):null==o?o={}:\"object\"==typeof o&&(\"from\"in o||\"to\"in o)&&(r=$t(Et(o.from),Et(o.to)),o={},o.ms=r.milliseconds,o.M=r.months),i=new Rt(o),Lt(e)&&u(e,\"_locale\")&&(i._locale=e._locale),i}function Jt(e,t){var n=e&&parseFloat(e.replace(\",\",\".\"));return(isNaN(n)?0:n)*t}function Qt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,\"M\").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,\"M\"),n}function $t(e,t){var n;return e.isValid()&&t.isValid()?(t=Bt(t,e),e.isBefore(t)?n=Qt(e,t):(n=Qt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function en(e,t){return function(n,i){var r,o;return null===i||isNaN(+i)||(S(t,\"moment().\"+t+\"(period, number) is deprecated. Please use moment().\"+t+\"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.\"),o=n,n=i,i=o),n=\"string\"==typeof n?+n:n,r=Zt(n,i),tn(this,r,e),this}}function tn(e,n,i,r){var o=n._milliseconds,a=It(n._days),s=It(n._months);e.isValid()&&(r=null==r||r,s&&fe(e,ie(e,\"Month\")+s*i),a&&re(e,\"Date\",ie(e,\"Date\")+a*i),o&&e._d.setTime(e._d.valueOf()+o*i),r&&t.updateOffset(e,a||s))}function nn(e,t){var n=e.diff(t,\"days\",!0);return n<-6?\"sameElse\":n<-1?\"lastWeek\":n<0?\"lastDay\":n<1?\"sameDay\":n<2?\"nextDay\":n<7?\"nextWeek\":\"sameElse\"}function rn(e,n){var i=e||Et(),r=Bt(i,this).startOf(\"day\"),o=t.calendarFormat(this,r)||\"sameElse\",a=n&&(E(n[o])?n[o].call(this,i):n[o]);return this.format(a||this.localeData().calendar(o,this,Et(i)))}function on(){return new v(this)}function an(e,t){var n=y(e)?e:Et(e);return!(!this.isValid()||!n.isValid())&&(t=N(o(t)?\"millisecond\":t),\"millisecond\"===t?this.valueOf()>n.valueOf():n.valueOf()9999?V(n,t?\"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\":\"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ\"):E(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace(\"Z\",V(n,\"Z\")):V(n,t?\"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\":\"YYYY-MM-DD[T]HH:mm:ss.SSSZ\")}function gn(){if(!this.isValid())return\"moment.invalid(/* \"+this._i+\" */)\";var e=\"moment\",t=\"\";this.isLocal()||(e=0===this.utcOffset()?\"moment.utc\":\"moment.parseZone\",t=\"Z\");var n=\"[\"+e+'(\"]',i=0<=this.year()&&this.year()<=9999?\"YYYY\":\"YYYYYY\",r=t+'[\")]';return this.format(n+i+\"-MM-DD[T]HH:mm:ss.SSS\"+r)}function vn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=V(this,e);return this.localeData().postformat(n)}function yn(e,t){return this.isValid()&&(y(e)&&e.isValid()||Et(e).isValid())?Zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function bn(e){return this.from(Et(),e)}function _n(e,t){return this.isValid()&&(y(e)&&e.isValid()||Et(e).isValid())?Zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function xn(e){return this.to(Et(),e)}function wn(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function Mn(){return this._locale}function Sn(e){switch(e=N(e)){case\"year\":this.month(0);case\"quarter\":case\"month\":this.date(1);case\"week\":case\"isoWeek\":case\"day\":case\"date\":this.hours(0);case\"hour\":this.minutes(0);case\"minute\":this.seconds(0);case\"second\":this.milliseconds(0)}return\"week\"===e&&this.weekday(0),\"isoWeek\"===e&&this.isoWeekday(1),\"quarter\"===e&&this.month(3*Math.floor(this.month()/3)),this}function En(e){return void 0===(e=N(e))||\"millisecond\"===e?this:(\"date\"===e&&(e=\"day\"),this.startOf(e).add(1,\"isoWeek\"===e?\"week\":e).subtract(1,\"ms\"))}function Tn(){return this._d.valueOf()-6e4*(this._offset||0)}function kn(){return Math.floor(this.valueOf()/1e3)}function On(){return new Date(this.valueOf())}function Cn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Pn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function An(){return this.isValid()?this.toISOString():null}function Rn(){return p(this)}function Ln(){return c({},f(this))}function In(){return f(this).overflow}function Dn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Nn(e,t){U(0,[e,e.length],0,t)}function Bn(e){return Un.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function zn(e){return Un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Fn(){return Se(this.year(),1,4)}function jn(){var e=this.localeData()._week;return Se(this.year(),e.dow,e.doy)}function Un(e,t,n,i,r){var o;return null==e?Me(this,i,r).year:(o=Se(e,i,r),t>o&&(t=o),Wn.call(this,e,t,n,i,r))}function Wn(e,t,n,i,r){var o=we(e,t,n,i,r),a=_e(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Gn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Vn(e){var t=Math.round((this.clone().startOf(\"day\")-this.clone().startOf(\"year\"))/864e5)+1;return null==e?t:this.add(e-t,\"d\")}function Hn(e,t){t[pr]=_(1e3*(\"0.\"+e))}function qn(){return this._isUTC?\"UTC\":\"\"}function Yn(){return this._isUTC?\"Coordinated Universal Time\":\"\"}function Xn(e){return Et(1e3*e)}function Kn(){return Et.apply(null,arguments).parseZone()}function Zn(e){return e}function Jn(e,t,n,i){var r=nt(),o=d().set(i,t);return r[n](o,e)}function Qn(e,t,n){if(a(e)&&(t=e,e=void 0),e=e||\"\",null!=t)return Jn(e,t,n,\"month\");var i,r=[];for(i=0;i<12;i++)r[i]=Jn(e,i,n,\"month\");return r}function $n(e,t,n,i){\"boolean\"==typeof e?(a(t)&&(n=t,t=void 0),t=t||\"\"):(t=e,n=t,e=!1,a(t)&&(n=t,t=void 0),t=t||\"\");var r=nt(),o=e?r._week.dow:0;if(null!=n)return Jn(t,(n+o)%7,i,\"day\");var s,l=[];for(s=0;s<7;s++)l[s]=Jn(t,(s+o)%7,i,\"day\");return l}function ei(e,t){return Qn(e,t,\"months\")}function ti(e,t){return Qn(e,t,\"monthsShort\")}function ni(e,t,n){return $n(e,t,n,\"weekdays\")}function ii(e,t,n){return $n(e,t,n,\"weekdaysShort\")}function ri(e,t,n){return $n(e,t,n,\"weekdaysMin\")}function oi(){var e=this._data;return this._milliseconds=lo(this._milliseconds),this._days=lo(this._days),this._months=lo(this._months),e.milliseconds=lo(e.milliseconds),e.seconds=lo(e.seconds),e.minutes=lo(e.minutes),e.hours=lo(e.hours),e.months=lo(e.months),e.years=lo(e.years),this}function ai(e,t,n,i){var r=Zt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function si(e,t){return ai(this,e,t,1)}function li(e,t){return ai(this,e,t,-1)}function ui(e){return e<0?Math.floor(e):Math.ceil(e)}function ci(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*ui(hi(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=b(o/1e3),l.seconds=e%60,t=b(e/60),l.minutes=t%60,n=b(t/60),l.hours=n%24,a+=b(n/24),r=b(di(a)),s+=r,a-=ui(hi(r)),i=b(s/12),s%=12,l.days=a,l.months=s,l.years=i,this}function di(e){return 4800*e/146097}function hi(e){return 146097*e/4800}function fi(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if(\"month\"===(e=N(e))||\"year\"===e)return t=this._days+i/864e5,n=this._months+di(t),\"month\"===e?n:n/12;switch(t=this._days+Math.round(hi(this._months)),e){case\"week\":return t/7+i/6048e5;case\"day\":return t+i/864e5;case\"hour\":return 24*t+i/36e5;case\"minute\":return 1440*t+i/6e4;case\"second\":return 86400*t+i/1e3;case\"millisecond\":return Math.floor(864e5*t)+i;default:throw new Error(\"Unknown unit \"+e)}}function pi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12):NaN}function mi(e){return function(){return this.as(e)}}function gi(){return Zt(this)}function vi(e){return e=N(e),this.isValid()?this[e+\"s\"]():NaN}function yi(e){return function(){return this.isValid()?this._data[e]:NaN}}function bi(){return b(this.days()/7)}function _i(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function xi(e,t,n){var i=Zt(e).abs(),r=Eo(i.as(\"s\")),o=Eo(i.as(\"m\")),a=Eo(i.as(\"h\")),s=Eo(i.as(\"d\")),l=Eo(i.as(\"M\")),u=Eo(i.as(\"y\")),c=r<=To.ss&&[\"s\",r]||r0,c[4]=n,_i.apply(null,c)}function wi(e){return void 0===e?Eo:\"function\"==typeof e&&(Eo=e,!0)}function Mi(e,t){return void 0!==To[e]&&(void 0===t?To[e]:(To[e]=t,\"s\"===e&&(To.ss=t-1),!0))}function Si(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=xi(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Ei(e){return(e>0)-(e<0)||+e}function Ti(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i=ko(this._milliseconds)/1e3,r=ko(this._days),o=ko(this._months);e=b(i/60),t=b(e/60),i%=60,e%=60,n=b(o/12),o%=12;var a=n,s=o,l=r,u=t,c=e,d=i?i.toFixed(3).replace(/\\.?0+$/,\"\"):\"\",h=this.asSeconds();if(!h)return\"P0D\";var f=h<0?\"-\":\"\",p=Ei(this._months)!==Ei(h)?\"-\":\"\",m=Ei(this._days)!==Ei(h)?\"-\":\"\",g=Ei(this._milliseconds)!==Ei(h)?\"-\":\"\";return f+\"P\"+(a?p+a+\"Y\":\"\")+(s?p+s+\"M\":\"\")+(l?m+l+\"D\":\"\")+(u||c||d?\"T\":\"\")+(u?g+u+\"H\":\"\")+(c?g+c+\"M\":\"\")+(d?g+d+\"S\":\"\")}var ki,Oi;Oi=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i68?1900:2e3)};var vr,yr=ne(\"FullYear\",!0);vr=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;tthis?this:e:m()}),Yr=function(){return Date.now?Date.now():+new Date},Xr=[\"year\",\"quarter\",\"month\",\"week\",\"day\",\"hour\",\"minute\",\"second\",\"millisecond\"];Dt(\"Z\",\":\"),Dt(\"ZZ\",\"\"),q(\"Z\",ir),q(\"ZZ\",ir),Z([\"Z\",\"ZZ\"],function(e,t,n){n._useUTC=!0,n._tzm=Nt(ir,e)});var Kr=/([\\+\\-]|\\d\\d)/gi;t.updateOffset=function(){};var Zr=/^(\\-|\\+)?(?:(\\d*)[. ])?(\\d+)\\:(\\d+)(?:\\:(\\d+)(\\.\\d*)?)?$/,Jr=/^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Zt.fn=Rt.prototype,Zt.invalid=At;var Qr=en(1,\"add\"),$r=en(-1,\"subtract\");t.defaultFormat=\"YYYY-MM-DDTHH:mm:ssZ\",t.defaultFormatUtc=\"YYYY-MM-DDTHH:mm:ss[Z]\";var eo=M(\"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.\",function(e){return void 0===e?this.localeData():this.locale(e)});U(0,[\"gg\",2],0,function(){return this.weekYear()%100}),U(0,[\"GG\",2],0,function(){return this.isoWeekYear()%100}),Nn(\"gggg\",\"weekYear\"),Nn(\"ggggg\",\"weekYear\"),Nn(\"GGGG\",\"isoWeekYear\"),Nn(\"GGGGG\",\"isoWeekYear\"),D(\"weekYear\",\"gg\"),D(\"isoWeekYear\",\"GG\"),z(\"weekYear\",1),z(\"isoWeekYear\",1),q(\"G\",tr),q(\"g\",tr),q(\"GG\",Xi,Vi),q(\"gg\",Xi,Vi),q(\"GGGG\",Qi,qi),q(\"gggg\",Qi,qi),q(\"GGGGG\",$i,Yi),q(\"ggggg\",$i,Yi),J([\"gggg\",\"ggggg\",\"GGGG\",\"GGGGG\"],function(e,t,n,i){t[i.substr(0,2)]=_(e)}),J([\"gg\",\"GG\"],function(e,n,i,r){n[r]=t.parseTwoDigitYear(e)}),U(\"Q\",0,\"Qo\",\"quarter\"),D(\"quarter\",\"Q\"),z(\"quarter\",7),q(\"Q\",Gi),Z(\"Q\",function(e,t){t[ur]=3*(_(e)-1)}),U(\"D\",[\"DD\",2],\"Do\",\"date\"),D(\"date\",\"D\"),z(\"date\",9),q(\"D\",Xi),q(\"DD\",Xi,Vi),q(\"Do\",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Z([\"D\",\"DD\"],cr),Z(\"Do\",function(e,t){t[cr]=_(e.match(Xi)[0])});var to=ne(\"Date\",!0);U(\"DDD\",[\"DDDD\",3],\"DDDo\",\"dayOfYear\"),D(\"dayOfYear\",\"DDD\"),z(\"dayOfYear\",4),q(\"DDD\",Ji),q(\"DDDD\",Hi),Z([\"DDD\",\"DDDD\"],function(e,t,n){n._dayOfYear=_(e)}),U(\"m\",[\"mm\",2],0,\"minute\"),D(\"minute\",\"m\"),z(\"minute\",14),q(\"m\",Xi),q(\"mm\",Xi,Vi),Z([\"m\",\"mm\"],hr);var no=ne(\"Minutes\",!1);U(\"s\",[\"ss\",2],0,\"second\"),D(\"second\",\"s\"),z(\"second\",15),q(\"s\",Xi),q(\"ss\",Xi,Vi),Z([\"s\",\"ss\"],fr);var io=ne(\"Seconds\",!1);U(\"S\",0,0,function(){return~~(this.millisecond()/100)}),U(0,[\"SS\",2],0,function(){return~~(this.millisecond()/10)}),U(0,[\"SSS\",3],0,\"millisecond\"),U(0,[\"SSSS\",4],0,function(){return 10*this.millisecond()}),U(0,[\"SSSSS\",5],0,function(){return 100*this.millisecond()}),U(0,[\"SSSSSS\",6],0,function(){return 1e3*this.millisecond()}),U(0,[\"SSSSSSS\",7],0,function(){return 1e4*this.millisecond()}),U(0,[\"SSSSSSSS\",8],0,function(){return 1e5*this.millisecond()}),U(0,[\"SSSSSSSSS\",9],0,function(){return 1e6*this.millisecond()}),D(\"millisecond\",\"ms\"),z(\"millisecond\",16),q(\"S\",Ji,Gi),q(\"SS\",Ji,Vi),q(\"SSS\",Ji,Hi);var ro;for(ro=\"SSSS\";ro.length<=9;ro+=\"S\")q(ro,er);for(ro=\"S\";ro.length<=9;ro+=\"S\")Z(ro,Hn);var oo=ne(\"Milliseconds\",!1);U(\"z\",0,0,\"zoneAbbr\"),U(\"zz\",0,0,\"zoneName\");var ao=v.prototype;ao.add=Qr,ao.calendar=rn,ao.clone=on,ao.diff=hn,ao.endOf=En,ao.format=vn,ao.from=yn,ao.fromNow=bn,ao.to=_n,ao.toNow=xn,ao.get=oe,ao.invalidAt=In,ao.isAfter=an,ao.isBefore=sn,ao.isBetween=ln,ao.isSame=un,ao.isSameOrAfter=cn,ao.isSameOrBefore=dn,ao.isValid=Rn,ao.lang=eo,ao.locale=wn,ao.localeData=Mn,ao.max=qr,ao.min=Hr,ao.parsingFlags=Ln,ao.set=ae,ao.startOf=Sn,ao.subtract=$r,ao.toArray=Cn,ao.toObject=Pn,ao.toDate=On,ao.toISOString=mn,ao.inspect=gn,ao.toJSON=An,ao.toString=pn,ao.unix=kn,ao.valueOf=Tn,ao.creationData=Dn,ao.year=yr,ao.isLeapYear=te,ao.weekYear=Bn,ao.isoWeekYear=zn,ao.quarter=ao.quarters=Gn,ao.month=pe,ao.daysInMonth=me,ao.week=ao.weeks=Oe,ao.isoWeek=ao.isoWeeks=Ce,ao.weeksInYear=jn,ao.isoWeeksInYear=Fn,ao.date=to,ao.day=ao.days=Be,ao.weekday=ze,ao.isoWeekday=Fe,ao.dayOfYear=Vn,ao.hour=ao.hours=Lr,ao.minute=ao.minutes=no,ao.second=ao.seconds=io,ao.millisecond=ao.milliseconds=oo,ao.utcOffset=Ft,ao.utc=Ut,ao.local=Wt,ao.parseZone=Gt,ao.hasAlignedHourOffset=Vt,ao.isDST=Ht,ao.isLocal=Yt,ao.isUtcOffset=Xt,ao.isUtc=Kt,ao.isUTC=Kt,ao.zoneAbbr=qn,ao.zoneName=Yn,ao.dates=M(\"dates accessor is deprecated. Use date instead.\",to),ao.months=M(\"months accessor is deprecated. Use month instead\",pe),ao.years=M(\"years accessor is deprecated. Use year instead\",yr),ao.zone=M(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\",jt),ao.isDSTShifted=M(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\",qt);var so=O.prototype;so.calendar=C,so.longDateFormat=P,so.invalidDate=A,so.ordinal=R,so.preparse=Zn,so.postformat=Zn,so.relativeTime=L,so.pastFuture=I,so.set=T,so.months=ue,so.monthsShort=ce,so.monthsParse=he,so.monthsRegex=ve,so.monthsShortRegex=ge,so.week=Ee,so.firstDayOfYear=ke,so.firstDayOfWeek=Te,so.weekdays=Re,so.weekdaysMin=Ie,so.weekdaysShort=Le,so.weekdaysParse=Ne,so.weekdaysRegex=je,so.weekdaysShortRegex=Ue,so.weekdaysMinRegex=We,so.isPM=Xe,so.meridiem=Ke,$e(\"en\",{dayOfMonthOrdinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===_(e%100/10)?\"th\":1===t?\"st\":2===t?\"nd\":3===t?\"rd\":\"th\")}}),t.lang=M(\"moment.lang is deprecated. Use moment.locale instead.\",$e),t.langData=M(\"moment.langData is deprecated. Use moment.localeData instead.\",nt);var lo=Math.abs,uo=mi(\"ms\"),co=mi(\"s\"),ho=mi(\"m\"),fo=mi(\"h\"),po=mi(\"d\"),mo=mi(\"w\"),go=mi(\"M\"),vo=mi(\"y\"),yo=yi(\"milliseconds\"),bo=yi(\"seconds\"),_o=yi(\"minutes\"),xo=yi(\"hours\"),wo=yi(\"days\"),Mo=yi(\"months\"),So=yi(\"years\"),Eo=Math.round,To={ss:44,s:45,m:45,h:22,d:26,M:11},ko=Math.abs,Oo=Rt.prototype;return Oo.isValid=Pt,Oo.abs=oi,Oo.add=si,Oo.subtract=li,Oo.as=fi,Oo.asMilliseconds=uo,Oo.asSeconds=co,Oo.asMinutes=ho,Oo.asHours=fo,Oo.asDays=po,Oo.asWeeks=mo,Oo.asMonths=go,Oo.asYears=vo,Oo.valueOf=pi,Oo._bubble=ci,Oo.clone=gi,Oo.get=vi,Oo.milliseconds=yo,Oo.seconds=bo,Oo.minutes=_o,Oo.hours=xo,Oo.days=wo,Oo.weeks=bi,Oo.months=Mo,Oo.years=So,Oo.humanize=Si,Oo.toISOString=Ti,Oo.toString=Ti,Oo.toJSON=Ti,Oo.locale=wn,Oo.localeData=Mn,Oo.toIsoString=M(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\",Ti),Oo.lang=eo,U(\"X\",0,0,\"unix\"),U(\"x\",0,0,\"valueOf\"),q(\"x\",tr),q(\"X\",rr),Z(\"X\",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),Z(\"x\",function(e,t,n){n._d=new Date(_(e))}),t.version=\"2.22.2\",function(e){ki=e}(Et),t.fn=ao,t.min=kt,t.max=Ot,t.now=Yr,t.utc=d,t.unix=Xn,t.months=ei,t.isDate=s,t.locale=$e,t.invalid=m,t.duration=Zt,t.isMoment=y,t.weekdays=ni,t.parseZone=Kn,t.localeData=nt,t.isDuration=Lt,t.monthsShort=ti,t.weekdaysMin=ri,t.defineLocale=et,t.updateLocale=tt,t.locales=it,t.weekdaysShort=ii,t.normalizeUnits=N,t.relativeTimeRounding=wi,t.relativeTimeThreshold=Mi,t.calendarFormat=nn,t.prototype=ao,t.HTML5_FMT={DATETIME_LOCAL:\"YYYY-MM-DDTHH:mm\",DATETIME_LOCAL_SECONDS:\"YYYY-MM-DDTHH:mm:ss\",DATETIME_LOCAL_MS:\"YYYY-MM-DDTHH:mm:ss.SSS\",DATE:\"YYYY-MM-DD\",TIME:\"HH:mm\",TIME_SECONDS:\"HH:mm:ss\",TIME_MS:\"HH:mm:ss.SSS\",WEEK:\"YYYY-[W]WW\",MONTH:\"YYYY-MM\"},t})}).call(t,n(141)(e))},function(e,t,n){var i=n(439),r=n(442),o=n(441),a=n(443),s=n(440),l=[0,0];e.exports.computeMiter=function(e,t,n,a,u){return i(e,n,a),o(e,e),r(t,-e[1],e[0]),r(l,-n[1],n[0]),u/s(t,l)},e.exports.normal=function(e,t){return r(e,-t[1],t[0]),e},e.exports.direction=function(e,t,n){return a(e,t,n),o(e,e),e}},function(e,t,n){function i(e,t,n){e.push([[t[0],t[1]],n])}var r=n(488),o=[0,0],a=[0,0],s=[0,0],l=[0,0];e.exports=function(e,t){var n=null,u=[];t&&(e=e.slice(),e.push(e[0]));for(var c=e.length,d=1;d2&&t){var g=e[c-2],v=e[0],y=e[1];r.direction(o,v,g),r.direction(a,y,v),r.normal(n,o);var b=r.computeMiter(s,l,o,a,1);u[0][0]=l.slice(),u[c-1][0]=l.slice(),u[0][1]=b,u[c-1][1]=b,u.pop()}return u}},function(e,t,n){\"use strict\";function i(e,t,n){if(!(this instanceof i))return new i(e,t,n);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if(\"object\"==typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if(\"string\"==typeof e&&void 0===t){var r=e.split(\",\");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=e,this.y=t,this.z=n||0;console.warn(\"proj4.Point will be removed in version 3, use proj4.toPoint\")}var r=n(189);i.fromMGRS=function(e){return new i(n.i(r.b)(e))},i.prototype.toMGRS=function(e){return n.i(r.c)([this.x,this.y],e)},t.a=i},function(e,t,n){\"use strict\";t.a=function(e,t,n){var i,r,o,a=n.x,s=n.y,l=n.z||0,u={};for(o=0;o<3;o++)if(!t||2!==o||void 0!==n.z)switch(0===o?(i=a,r=\"x\"):1===o?(i=s,r=\"y\"):(i=l,r=\"z\"),e.axis[o]){case\"e\":u[r]=i;break;case\"w\":u[r]=-i;break;case\"n\":u[r]=i;break;case\"s\":u[r]=-i;break;case\"u\":void 0!==n[r]&&(u.z=i);break;case\"d\":void 0!==n[r]&&(u.z=-i);break;default:return null}return u}},function(e,t,n){\"use strict\";function i(e){if(\"function\"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError(\"coordinates must be finite numbers\")}if(\"number\"!=typeof e||e!==e||!isFinite(e))throw new TypeError(\"coordinates must be finite numbers\")}t.a=function(e){i(e.x),i(e.y)}},function(e,t,n){\"use strict\";var i=n(11);t.a=function(e,t){if(void 0===e){if((e=Math.floor(30*(n.i(i.a)(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}},function(e,t,n){\"use strict\";var i=n(190),r=n(500);t.a=function(e){var t=Math.abs(e);return t=n.i(r.a)(t*(1+t/(n.i(i.a)(1,t)+1))),e<0?-t:t}},function(e,t,n){\"use strict\";t.a=function(e,t){for(var n,i=2*Math.cos(t),r=e.length-1,o=e[r],a=0;--r>=0;)n=i*o-a+e[r],a=o,o=n;return Math.sin(t)*n}},function(e,t,n){\"use strict\";var i=n(193),r=n(497);t.a=function(e,t,o){for(var a,s,l=Math.sin(t),u=Math.cos(t),c=n.i(i.a)(o),d=n.i(r.a)(o),h=2*u*d,f=-2*l*c,p=e.length-1,m=e[p],g=0,v=0,y=0;--p>=0;)a=v,s=g,v=m,g=y,m=h*v-a-f*g+e[p],y=f*v-s+h*g;return h=l*d,f=u*c,[h*m-f*y,h*y+f*m]}},function(e,t,n){\"use strict\";t.a=function(e){var t=Math.exp(e);return t=(t+1/t)/2}},function(e,t,n){\"use strict\";t.a=function(e,t){for(var n,i=2*Math.cos(2*t),r=e.length-1,o=e[r],a=0;--r>=0;)n=i*o-a+e[r],a=o,o=n;return t+n*Math.sin(2*t)}},function(e,t,n){\"use strict\";var i=n(7);t.a=function(e,t){var n=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-n)<1e-6)return t<0?-1*i.b:i.b;for(var r,o,a,s,l=Math.asin(.5*t),u=0;u<30;u++)if(o=Math.sin(l),a=Math.cos(l),s=e*o,r=Math.pow(1-s*s,2)/(2*a)*(t/(1-e*e)-o/(1-s*s)+.5/e*Math.log((1-s)/(1+s))),l+=r,Math.abs(r)<=1e-10)return l;return NaN}},function(e,t,n){\"use strict\";t.a=function(e){var t=1+e,n=t-1;return 0===n?e:e*Math.log(t)/n}},function(e,t,n){\"use strict\";t.a=function(e,t){return Math.pow((1-e)/(1+e),t)}},function(e,t,n){\"use strict\";n.d(t,\"a\",function(){return i});var i={};i.wgs84={towgs84:\"0,0,0\",ellipse:\"WGS84\",datumName:\"WGS84\"},i.ch1903={towgs84:\"674.374,15.056,405.346\",ellipse:\"bessel\",datumName:\"swiss\"},i.ggrs87={towgs84:\"-199.87,74.79,246.62\",ellipse:\"GRS80\",datumName:\"Greek_Geodetic_Reference_System_1987\"},i.nad83={towgs84:\"0,0,0\",ellipse:\"GRS80\",datumName:\"North_American_Datum_1983\"},i.nad27={nadgrids:\"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat\",ellipse:\"clrk66\",datumName:\"North_American_Datum_1927\"},i.potsdam={towgs84:\"606.0,23.0,413.0\",ellipse:\"bessel\",datumName:\"Potsdam Rauenberg 1950 DHDN\"},i.carthage={towgs84:\"-263.0,6.0,431.0\",ellipse:\"clark80\",datumName:\"Carthage 1934 Tunisia\"},i.hermannskogel={towgs84:\"653.0,-212.0,449.0\",ellipse:\"bessel\",datumName:\"Hermannskogel\"},i.osni52={towgs84:\"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15\",ellipse:\"airy\",datumName:\"Irish National\"},i.ire65={towgs84:\"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15\",ellipse:\"mod_airy\",datumName:\"Ireland 1965\"},i.rassadiran={towgs84:\"-133.63,-157.5,-158.62\",ellipse:\"intl\",datumName:\"Rassadiran\"},i.nzgd49={towgs84:\"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993\",ellipse:\"intl\",datumName:\"New Zealand Geodetic Datum 1949\"},i.osgb36={towgs84:\"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894\",ellipse:\"airy\",datumName:\"Airy 1830\"},i.s_jtsk={towgs84:\"589,76,480\",ellipse:\"bessel\",datumName:\"S-JTSK (Ferro)\"},i.beduaram={towgs84:\"-106,-87,188\",ellipse:\"clrk80\",datumName:\"Beduaram\"},i.gunung_segara={towgs84:\"-403,684,41\",ellipse:\"bessel\",datumName:\"Gunung Segara Jakarta\"},i.rnb72={towgs84:\"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1\",ellipse:\"intl\",datumName:\"Reseau National Belge 1972\"}},function(e,t,n){\"use strict\";n.d(t,\"a\",function(){return i}),n.d(t,\"b\",function(){return r});var i={};i.MERIT={a:6378137,rf:298.257,ellipseName:\"MERIT 1983\"},i.SGS85={a:6378136,rf:298.257,ellipseName:\"Soviet Geodetic System 85\"},i.GRS80={a:6378137,rf:298.257222101,ellipseName:\"GRS 1980(IUGG, 1980)\"},i.IAU76={a:6378140,rf:298.257,ellipseName:\"IAU 1976\"},i.airy={a:6377563.396,b:6356256.91,ellipseName:\"Airy 1830\"},i.APL4={a:6378137,rf:298.25,ellipseName:\"Appl. Physics. 1965\"},i.NWL9D={a:6378145,rf:298.25,ellipseName:\"Naval Weapons Lab., 1965\"},i.mod_airy={a:6377340.189,b:6356034.446,ellipseName:\"Modified Airy\"},i.andrae={a:6377104.43,rf:300,ellipseName:\"Andrae 1876 (Den., Iclnd.)\"},i.aust_SA={a:6378160,rf:298.25,ellipseName:\"Australian Natl & S. Amer. 1969\"},i.GRS67={a:6378160,rf:298.247167427,ellipseName:\"GRS 67(IUGG 1967)\"},i.bessel={a:6377397.155,rf:299.1528128,ellipseName:\"Bessel 1841\"},i.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:\"Bessel 1841 (Namibia)\"},i.clrk66={a:6378206.4,b:6356583.8,ellipseName:\"Clarke 1866\"},i.clrk80={a:6378249.145,rf:293.4663,ellipseName:\"Clarke 1880 mod.\"},i.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:\"Clarke 1858\"},i.CPM={a:6375738.7,rf:334.29,ellipseName:\"Comm. des Poids et Mesures 1799\"},i.delmbr={a:6376428,rf:311.5,ellipseName:\"Delambre 1810 (Belgium)\"},i.engelis={a:6378136.05,rf:298.2566,ellipseName:\"Engelis 1985\"},i.evrst30={a:6377276.345,rf:300.8017,ellipseName:\"Everest 1830\"},i.evrst48={a:6377304.063,rf:300.8017,ellipseName:\"Everest 1948\"},i.evrst56={a:6377301.243,rf:300.8017,ellipseName:\"Everest 1956\"},i.evrst69={a:6377295.664,rf:300.8017,ellipseName:\"Everest 1969\"},i.evrstSS={a:6377298.556,rf:300.8017,ellipseName:\"Everest (Sabah & Sarawak)\"},i.fschr60={a:6378166,rf:298.3,ellipseName:\"Fischer (Mercury Datum) 1960\"},i.fschr60m={a:6378155,rf:298.3,ellipseName:\"Fischer 1960\"},i.fschr68={a:6378150,rf:298.3,ellipseName:\"Fischer 1968\"},i.helmert={a:6378200,rf:298.3,ellipseName:\"Helmert 1906\"},i.hough={a:6378270,rf:297,ellipseName:\"Hough\"},i.intl={a:6378388,rf:297,ellipseName:\"International 1909 (Hayford)\"},i.kaula={a:6378163,rf:298.24,ellipseName:\"Kaula 1961\"},i.lerch={a:6378139,rf:298.257,ellipseName:\"Lerch 1979\"},i.mprts={a:6397300,rf:191,ellipseName:\"Maupertius 1738\"},i.new_intl={a:6378157.5,b:6356772.2,ellipseName:\"New International 1967\"},i.plessis={a:6376523,rf:6355863,ellipseName:\"Plessis 1817 (France)\"},i.krass={a:6378245,rf:298.3,ellipseName:\"Krassovsky, 1942\"},i.SEasia={a:6378155,b:6356773.3205,ellipseName:\"Southeast Asia\"},i.walbeck={a:6376896,b:6355834.8467,ellipseName:\"Walbeck\"},i.WGS60={a:6378165,rf:298.3,ellipseName:\"WGS 60\"},i.WGS66={a:6378145,rf:298.25,ellipseName:\"WGS 66\"},i.WGS7={a:6378135,rf:298.26,ellipseName:\"WGS 72\"};var r=i.WGS84={a:6378137,rf:298.257223563,ellipseName:\"WGS 84\"};i.sphere={a:6370997,b:6370997,ellipseName:\"Normal Sphere (r=6370997)\"}},function(e,t,n){\"use strict\";n.d(t,\"a\",function(){return i});var i={};i.greenwich=0,i.lisbon=-9.131906111111,i.paris=2.337229166667,i.bogota=-74.080916666667,i.madrid=-3.687938888889,i.rome=12.452333333333,i.bern=7.439583333333,i.jakarta=106.807719444444,i.ferro=-17.666666666667,i.brussels=4.367975,i.stockholm=18.058277777778,i.athens=23.7163375,i.oslo=10.722916666667},function(e,t,n){\"use strict\";t.a={ft:{to_meter:.3048},\"us-ft\":{to_meter:1200/3937}}},function(e,t,n){\"use strict\";function i(e,t,i){var r,o,a;return Array.isArray(i)?(r=n.i(s.a)(e,t,i),3===i.length?[r.x,r.y,r.z]:[r.x,r.y]):(o=n.i(s.a)(e,t,i),a=Object.keys(i),2===a.length?o:(a.forEach(function(e){\"x\"!==e&&\"y\"!==e&&(o[e]=i[e])}),o))}function r(e){return e instanceof a.a?e:e.oProj?e.oProj:n.i(a.a)(e)}function o(e,t,n){e=r(e);var o,a=!1;return void 0===t?(t=e,e=l,a=!0):(void 0!==t.x||Array.isArray(t))&&(n=t,t=e,e=l,a=!0),t=r(t),n?i(e,t,n):(o={forward:function(n){return i(e,t,n)},inverse:function(n){return i(t,e,n)}},a&&(o.oProj=t),o)}var a=n(127),s=n(198),l=n.i(a.a)(\"WGS84\");t.a=o},function(e,t,n){\"use strict\";function i(e,t,n,i,o,a){var s={};return s.datum_type=void 0===e||\"none\"===e?r.k:r.l,t&&(s.datum_params=t.map(parseFloat),0===s.datum_params[0]&&0===s.datum_params[1]&&0===s.datum_params[2]||(s.datum_type=r.i),s.datum_params.length>3&&(0===s.datum_params[3]&&0===s.datum_params[4]&&0===s.datum_params[5]&&0===s.datum_params[6]||(s.datum_type=r.j,s.datum_params[3]*=r.h,s.datum_params[4]*=r.h,s.datum_params[5]*=r.h,s.datum_params[6]=s.datum_params[6]/1e6+1))),s.a=n,s.b=i,s.es=o,s.ep2=a,s}var r=n(7);t.a=i},function(e,t,n){\"use strict\";function i(e,t){return e.datum_type===t.datum_type&&(!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(e.datum_type===l.i?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:e.datum_type!==l.j||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6]))}function r(e,t,n){var i,r,o,a,s=e.x,u=e.y,c=e.z?e.z:0;if(u<-l.b&&u>-1.001*l.b)u=-l.b;else if(u>l.b&&u<1.001*l.b)u=l.b;else{if(u<-l.b)return{x:-1/0,y:-1/0,z:e.z};if(u>l.b)return{x:1/0,y:1/0,z:e.z}}return s>Math.PI&&(s-=2*Math.PI),r=Math.sin(u),a=Math.cos(u),o=r*r,i=n/Math.sqrt(1-t*o),{x:(i+c)*a*Math.cos(s),y:(i+c)*a*Math.sin(s),z:(i*(1-t)+c)*r}}function o(e,t,n,i){var r,o,a,s,u,c,d,h,f,p,m,g,v,y,b,_,x=e.x,w=e.y,M=e.z?e.z:0;if(r=Math.sqrt(x*x+w*w),o=Math.sqrt(x*x+w*w+M*M),r/n<1e-12){if(y=0,o/n<1e-12)return b=l.b,_=-i,{x:e.x,y:e.y,z:e.z}}else y=Math.atan2(w,x);a=M/o,s=r/o,u=1/Math.sqrt(1-t*(2-t)*s*s),h=s*(1-t)*u,f=a*u,v=0;do{v++,d=n/Math.sqrt(1-t*f*f),_=r*h+M*f-d*(1-t*f*f),c=t*d/(d+_),u=1/Math.sqrt(1-c*(2-c)*s*s),p=s*(1-c)*u,m=a*u,g=m*h-p*f,h=p,f=m}while(g*g>1e-24&&v<30);return b=Math.atan(m/Math.abs(p)),{x:y,y:b,z:_}}function a(e,t,n){if(t===l.i)return{x:e.x+n[0],y:e.y+n[1],z:e.z+n[2]};if(t===l.j){var i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],u=n[5],c=n[6];return{x:c*(e.x-u*e.y+s*e.z)+i,y:c*(u*e.x+e.y-a*e.z)+r,z:c*(-s*e.x+a*e.y+e.z)+o}}}function s(e,t,n){if(t===l.i)return{x:e.x-n[0],y:e.y-n[1],z:e.z-n[2]};if(t===l.j){var i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],u=n[5],c=n[6],d=(e.x-i)/c,h=(e.y-r)/c,f=(e.z-o)/c;return{x:d+u*h-s*f,y:-u*d+h+a*f,z:s*d-a*h+f}}}t.a=i,t.b=r,t.e=o,t.c=a,t.d=s;var l=n(7)},function(e,t,n){\"use strict\";function i(e){return e===r.i||e===r.j}var r=n(7),o=n(508);t.a=function(e,t,a){return n.i(o.a)(e,t)?a:e.datum_type===r.k||t.datum_type===r.k?a:e.es!==t.es||e.a!==t.a||i(e.datum_type)||i(t.datum_type)?(a=n.i(o.b)(a,e.es,e.a),i(e.datum_type)&&(a=n.i(o.c)(a,e.datum_type,e.datum_params)),i(t.datum_type)&&(a=n.i(o.d)(a,t.datum_type,t.datum_params)),n.i(o.e)(a,t.es,t.a,t.b)):a}},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=e*e,a=t*t,s=(r-a)/r,l=0;return i?(e*=1-s*(o.m+s*(o.n+s*o.o)),r=e*e,s=0):l=Math.sqrt(s),{es:s,e:l,ep2:(r-a)/a}}function r(e,t,i,r,l){if(!e){var u=n.i(s.a)(a.a,r);u||(u=a.b),e=u.a,t=u.b,i=u.rf}return i&&!t&&(t=(1-1/i)*e),(0===i||Math.abs(e-t)-1})}function a(e){var t=n.i(f.a)(e,\"authority\");if(t){var i=n.i(f.a)(t,\"epsg\");return i&&m.indexOf(i)>-1}}function s(e){var t=n.i(f.a)(e,\"extension\");if(t)return n.i(f.a)(t,\"proj4\")}function l(e){return\"+\"===e[0]}function u(e){if(!i(e))return e;if(r(e))return c.a[e];if(o(e)){var t=n.i(d.a)(e);if(a(t))return c.a[\"EPSG:3857\"];var u=s(t);return u?n.i(h.a)(u):t}return l(e)?n.i(h.a)(e):void 0}var c=n(195),d=n(220),h=n(196),f=n(96),p=[\"PROJECTEDCRS\",\"PROJCRS\",\"GEOGCS\",\"GEOCCS\",\"PROJCS\",\"LOCAL_CS\",\"GEODCRS\",\"GEODETICCRS\",\"GEODETICDATUM\",\"ENGCRS\",\"ENGINEERINGCRS\"],m=[\"3857\",\"900913\",\"3785\",\"102113\"];t.a=u},function(e,t,n){\"use strict\";function i(e,t){var n=c.length;return e.names?(c[n]=e,e.names.forEach(function(e){u[e.toLowerCase()]=n}),this):(console.log(t),!0)}function r(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==u[t]&&c[u[t]]?c[u[t]]:void 0}function o(){l.forEach(i)}var a=n(528),s=n(527),l=[a.a,s.a],u={},c=[];t.a={start:o,add:i,get:r}},function(e,t,n){\"use strict\";function i(){Math.abs(this.lat1+this.lat2)d.c?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function r(e){var t=e.x,i=e.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var r=n.i(l.a)(this.e3,this.sin_phi,this.cos_phi),o=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,a=this.ns0*n.i(u.a)(t-this.long0),s=o*Math.sin(a)+this.x0,c=this.rh-o*Math.cos(a)+this.y0;return e.x=s,e.y=c,e}function o(e){var t,i,r,o,a,s;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),r=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),r=-1),o=0,0!==t&&(o=Math.atan2(r*e.x,r*e.y)),r=t*this.ns0/this.a,this.sphere?s=Math.asin((this.c-r*r)/(2*this.ns0)):(i=(this.c-r*r)/this.ns0,s=this.phi1z(this.e3,i)),a=n.i(u.a)(o/this.ns0+this.long0),e.x=a,e.y=s,e}function a(e,t){var i,r,o,a,s,l=n.i(c.a)(.5*t);if(e2*s.b*this.a)return;return i=t/this.a,r=Math.sin(i),o=Math.cos(i),g=this.long0,Math.abs(t)<=s.c?v=this.lat0:(v=n.i(p.a)(o*this.sin_p12+e.y*r*this.cos_p12/t),y=Math.abs(this.lat0)-s.b,g=Math.abs(y)<=s.c?this.lat0>=0?n.i(a.a)(this.long0+Math.atan2(e.x,-e.y)):n.i(a.a)(this.long0-Math.atan2(-e.x,e.y)):n.i(a.a)(this.long0+Math.atan2(e.x*r,t*this.cos_p12*o-e.y*this.sin_p12*r))),e.x=g,e.y=v,e}return b=n.i(u.a)(this.es),_=n.i(c.a)(this.es),x=n.i(d.a)(this.es),w=n.i(h.a)(this.es),Math.abs(this.sin_p12-1)<=s.c?(M=this.a*n.i(l.a)(b,_,x,w,s.b),t=Math.sqrt(e.x*e.x+e.y*e.y),S=M-t,v=n.i(m.a)(S/this.a,b,_,x,w),g=n.i(a.a)(this.long0+Math.atan2(e.x,-1*e.y)),e.x=g,e.y=v,e):Math.abs(this.sin_p12+1)<=s.c?(M=this.a*n.i(l.a)(b,_,x,w,s.b),t=Math.sqrt(e.x*e.x+e.y*e.y),S=t-M,v=n.i(m.a)(S/this.a,b,_,x,w),g=n.i(a.a)(this.long0+Math.atan2(e.x,e.y)),e.x=g,e.y=v,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),k=Math.atan2(e.x,e.y),E=n.i(f.a)(this.a,this.e,this.sin_p12),O=Math.cos(k),C=this.e*this.cos_p12*O,P=-C*C/(1-this.es),A=3*this.es*(1-P)*this.sin_p12*this.cos_p12*O/(1-this.es),R=t/E,L=R-P*(1+P)*Math.pow(R,3)/6-A*(1+3*P)*Math.pow(R,4)/24,I=1-P*L*L/2-R*L*L*L/6,T=Math.asin(this.sin_p12*Math.cos(L)+this.cos_p12*Math.sin(L)*O),g=n.i(a.a)(this.long0+Math.asin(Math.sin(k)*Math.sin(L)/Math.cos(T))),v=Math.atan((1-this.es*I*this.sin_p12/Math.sin(T))*Math.tan(T)/(1-this.es)),e.x=g,e.y=v,e)}var a=n(11),s=n(7),l=n(93),u=n(89),c=n(90),d=n(91),h=n(92),f=n(128),p=n(54),m=n(129),g=[\"Azimuthal_Equidistant\",\"aeqd\"];t.a={init:i,forward:r,inverse:o,names:g}},function(e,t,n){\"use strict\";function i(){this.sphere||(this.e0=n.i(s.a)(this.es),this.e1=n.i(l.a)(this.es),this.e2=n.i(u.a)(this.es),this.e3=n.i(c.a)(this.es),this.ml0=this.a*n.i(a.a)(this.e0,this.e1,this.e2,this.e3,this.lat0))}function r(e){var t,i,r=e.x,o=e.y;if(r=n.i(h.a)(r-this.long0),this.sphere)t=this.a*Math.asin(Math.cos(o)*Math.sin(r)),i=this.a*(Math.atan2(Math.tan(o),Math.cos(r))-this.lat0);else{var s=Math.sin(o),l=Math.cos(o),u=n.i(d.a)(this.a,this.e,s),c=Math.tan(o)*Math.tan(o),f=r*Math.cos(o),p=f*f,m=this.es*l*l/(1-this.es),g=this.a*n.i(a.a)(this.e0,this.e1,this.e2,this.e3,o);t=u*f*(1-p*c*(1/6-(8-c+8*m)*p/120)),i=g-this.ml0+u*s/l*p*(.5+(5-c+6*m)*p/24)}return e.x=t+this.x0,e.y=i+this.y0,e}function o(e){e.x-=this.x0,e.y-=this.y0;var t,i,r=e.x/this.a,o=e.y/this.a;if(this.sphere){var a=o+this.lat0;t=Math.asin(Math.sin(a)*Math.cos(r)),i=Math.atan2(Math.tan(r),Math.cos(a))}else{var s=this.ml0/this.a+o,l=n.i(p.a)(s,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(l)-m.b)<=m.c)return e.x=this.long0,e.y=m.b,o<0&&(e.y*=-1),e;var u=n.i(d.a)(this.a,this.e,Math.sin(l)),c=u*u*u/this.a/this.a*(1-this.es),g=Math.pow(Math.tan(l),2),v=r*this.a/u,y=v*v;t=l-u*Math.tan(l)/c*v*v*(.5-(1+3*g)*v*v/24),i=v*(1-y*(g/3+(1+3*g)*g*y/15))/Math.cos(l)}return e.x=n.i(h.a)(i+this.long0),e.y=n.i(f.a)(t),e}var a=n(93),s=n(89),l=n(90),u=n(91),c=n(92),d=n(128),h=n(11),f=n(73),p=n(129),m=n(7),g=[\"Cassini\",\"Cassini_Soldner\",\"cass\"];t.a={init:i,forward:r,inverse:o,names:g}},function(e,t,n){\"use strict\";function i(){this.sphere||(this.k0=n.i(l.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function r(e){var t,i,r=e.x,o=e.y,l=n.i(a.a)(r-this.long0);if(this.sphere)t=this.x0+this.a*l*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(o)/Math.cos(this.lat_ts);else{var u=n.i(s.a)(this.e,Math.sin(o));t=this.x0+this.a*this.k0*l,i=this.y0+this.a*u*.5/this.k0}return e.x=t,e.y=i,e}function o(e){e.x-=this.x0,e.y-=this.y0;var t,i;return this.sphere?(t=n.i(a.a)(this.long0+e.x/this.a/Math.cos(this.lat_ts)),i=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(i=n.i(u.a)(this.e,2*e.y*this.k0/this.a),t=n.i(a.a)(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=i,e}var a=n(11),s=n(131),l=n(55),u=n(499),c=[\"cea\"];t.a={init:i,forward:r,inverse:o,names:c}},function(e,t,n){\"use strict\";function i(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||\"Equidistant Cylindrical (Plate Carre)\",this.rc=Math.cos(this.lat_ts)}function r(e){var t=e.x,i=e.y,r=n.i(a.a)(t-this.long0),o=n.i(s.a)(i-this.lat0);return e.x=this.x0+this.a*r*this.rc,e.y=this.y0+this.a*o,e}function o(e){var t=e.x,i=e.y;return e.x=n.i(a.a)(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=n.i(s.a)(this.lat0+(i-this.y0)/this.a),e}var a=n(11),s=n(73),l=[\"Equirectangular\",\"Equidistant_Cylindrical\",\"eqc\"];t.a={init:i,forward:r,inverse:o,names:l}},function(e,t,n){\"use strict\";function i(){Math.abs(this.lat1+this.lat2)=0?(i=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(i=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var a=0;if(0!==i&&(a=Math.atan2(t*e.x,t*e.y)),this.sphere)return o=n.i(h.a)(this.long0+a/this.ns),r=n.i(f.a)(this.g-i/this.a),e.x=o,e.y=r,e;var s=this.g-i/this.a;return r=n.i(p.a)(s,this.e0,this.e1,this.e2,this.e3),o=n.i(h.a)(this.long0+a/this.ns),e.x=o,e.y=r,e}var a=n(89),s=n(90),l=n(91),u=n(92),c=n(55),d=n(93),h=n(11),f=n(73),p=n(129),m=n(7),g=[\"Equidistant_Conic\",\"eqdc\"];t.a={init:i,forward:r,inverse:o,names:g}},function(e,t,n){\"use strict\";function i(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+s.g)/(Math.pow(Math.tan(.5*this.lat0+s.g),this.C)*n.i(a.a)(this.e*e,this.ratexp))}function r(e){var t=e.x,i=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+s.g),this.C)*n.i(a.a)(this.e*Math.sin(i),this.ratexp))-s.b,e.x=this.C*t,e}function o(e){for(var t=e.x/this.C,i=e.y,r=Math.pow(Math.tan(.5*i+s.g)/this.K,1/this.C),o=l;o>0&&(i=2*Math.atan(r*n.i(a.a)(this.e*Math.sin(e.y),-.5*this.e))-s.b,!(Math.abs(i-e.y)<1e-14));--o)e.y=i;return o?(e.x=t,e.y=i,e):null}var a=n(501),s=n(7),l=20,u=[\"gauss\"];t.a={init:i,forward:r,inverse:o,names:u}},function(e,t,n){\"use strict\";function i(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function r(e){var t,i,r,o,s,u,c,d,h=e.x,f=e.y;return r=n.i(a.a)(h-this.long0),t=Math.sin(f),i=Math.cos(f),o=Math.cos(r),u=this.sin_p14*t+this.cos_p14*i*o,s=1,u>0||Math.abs(u)<=l.c?(c=this.x0+this.a*s*i*Math.sin(r)/u,d=this.y0+this.a*s*(this.cos_p14*t-this.sin_p14*i*o)/u):(c=this.x0+this.infinity_dist*i*Math.sin(r),d=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*i*o)),e.x=c,e.y=d,e}function o(e){var t,i,r,o,l,u;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(o=Math.atan2(t,this.rc),i=Math.sin(o),r=Math.cos(o),u=n.i(s.a)(r*this.sin_p14+e.y*i*this.cos_p14/t),l=Math.atan2(e.x*i,t*this.cos_p14*r-e.y*this.sin_p14*i),l=n.i(a.a)(this.long0+l)):(u=this.phic0,l=0),e.x=l,e.y=u,e}var a=n(11),s=n(54),l=n(7),u=[\"gnom\"];t.a={init:i,forward:r,inverse:o,names:u}},function(e,t,n){\"use strict\";function i(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function r(e){var t,i,r,o,s,l,u,c=e.x,d=e.y,h=n.i(a.a)(c-this.long0);return t=Math.pow((1+this.e*Math.sin(d))/(1-this.e*Math.sin(d)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(d/2+this.s45),this.alfa)/t)-this.s45),r=-h*this.alfa,o=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),s=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(o)),l=this.n*s,u=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(o/2+this.s45),this.n),e.y=u*Math.cos(l)/1,e.x=u*Math.sin(l)/1,this.czech||(e.y*=-1,e.x*=-1),e}function o(e){var t,n,i,r,o,a,s,l,u=e.x;e.x=e.y,e.y=u,this.czech||(e.y*=-1,e.x*=-1),a=Math.sqrt(e.x*e.x+e.y*e.y),o=Math.atan2(e.y,e.x),r=o/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/a,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),n=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(t)),e.x=this.long0-n/this.alfa,s=t,l=0;var c=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-e.y)<1e-10&&(l=1),s=e.y,c+=1}while(0===l&&c<15);return c>=15?null:e}var a=n(11),s=[\"Krovak\",\"krovak\"];t.a={init:i,forward:r,inverse:o,names:s}},function(e,t,n){\"use strict\";function i(){var e=Math.abs(this.lat0);if(Math.abs(e-l.b)0){var t;switch(this.qp=n.i(u.a)(this.e,1),this.mmf=.5/(1-this.es),this.apa=a(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=n.i(u.a)(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function r(e){var t,i,r,o,a,s,d,h,f,p,m=e.x,g=e.y;if(m=n.i(c.a)(m-this.long0),this.sphere){if(a=Math.sin(g),p=Math.cos(g),r=Math.cos(m),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((i=this.mode===this.EQUIT?1+p*r:1+this.sinph0*a+this.cosph0*p*r)<=l.c)return null;i=Math.sqrt(2/i),t=i*p*Math.sin(m),i*=this.mode===this.EQUIT?a:this.cosph0*a-this.sinph0*p*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(g+this.phi0)=0?(t=(f=Math.sqrt(s))*o,i=r*(this.mode===this.S_POLE?f:-f)):t=i=0}}return e.x=this.a*t+this.x0,e.y=this.a*i+this.y0,e}function o(e){e.x-=this.x0,e.y-=this.y0;var t,i,r,o,a,u,d,h=e.x/this.a,f=e.y/this.a;if(this.sphere){var p,m=0,g=0;if(p=Math.sqrt(h*h+f*f),(i=.5*p)>1)return null;switch(i=2*Math.asin(i),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(g=Math.sin(i),m=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(p)<=l.c?0:Math.asin(f*g/p),h*=g,f=m*p;break;case this.OBLIQ:i=Math.abs(p)<=l.c?this.phi0:Math.asin(m*this.sinph0+f*g*this.cosph0/p),h*=g*this.cosph0,f=(m-Math.sin(i)*this.sinph0)*p;break;case this.N_POLE:f=-f,i=l.b-i;break;case this.S_POLE:i-=l.b}t=0!==f||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(h,f):0}else{if(d=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(h/=this.dd,f*=this.dd,(u=Math.sqrt(h*h+f*f))d.c?this.ns=Math.log(r/c)/Math.log(o/h):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=r/(this.ns*Math.pow(o,this.ns)),this.rh=this.a*this.f0*Math.pow(f,this.ns),this.title||(this.title=\"Lambert Conformal Conic\")}}function r(e){var t=e.x,i=e.y;Math.abs(2*Math.abs(i)-Math.PI)<=d.c&&(i=n.i(l.a)(i)*(d.b-2*d.c));var r,o,a=Math.abs(Math.abs(i)-d.b);if(a>d.c)r=n.i(s.a)(this.e,i,Math.sin(i)),o=this.a*this.f0*Math.pow(r,this.ns);else{if((a=i*this.ns)<=0)return null;o=0}var c=this.ns*n.i(u.a)(t-this.long0);return e.x=this.k0*(o*Math.sin(c))+this.x0,e.y=this.k0*(this.rh-o*Math.cos(c))+this.y0,e}function o(e){var t,i,r,o,a,s=(e.x-this.x0)/this.k0,l=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(s*s+l*l),i=1):(t=-Math.sqrt(s*s+l*l),i=-1);var h=0;if(0!==t&&(h=Math.atan2(i*s,i*l)),0!==t||this.ns>0){if(i=1/this.ns,r=Math.pow(t/(this.a*this.f0),i),-9999===(o=n.i(c.a)(this.e,r)))return null}else o=-d.b;return a=n.i(u.a)(h/this.ns+this.long0),e.x=a,e.y=o,e}var a=n(55),s=n(95),l=n(74),u=n(11),c=n(94),d=n(7),h=[\"Lambert Tangential Conformal Conic Projection\",\"Lambert_Conformal_Conic\",\"Lambert_Conformal_Conic_2SP\",\"lcc\"];t.a={init:i,forward:r,inverse:o,names:h}},function(e,t,n){\"use strict\";function i(){}function r(e){return e}var o=[\"longlat\",\"identity\"];t.a={init:i,forward:r,inverse:r,names:o}},function(e,t,n){\"use strict\";function i(){var e=this.b/this.a;this.es=1-e*e,\"x0\"in this||(this.x0=0),\"y0\"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=n.i(a.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function r(e){var t=e.x,i=e.y;if(i*c.a>90&&i*c.a<-90&&t*c.a>180&&t*c.a<-180)return null;var r,o;if(Math.abs(Math.abs(i)-c.b)<=c.c)return null;if(this.sphere)r=this.x0+this.a*this.k0*n.i(s.a)(t-this.long0),o=this.y0+this.a*this.k0*Math.log(Math.tan(c.g+.5*i));else{var a=Math.sin(i),u=n.i(l.a)(this.e,i,a);r=this.x0+this.a*this.k0*n.i(s.a)(t-this.long0),o=this.y0-this.a*this.k0*Math.log(u)}return e.x=r,e.y=o,e}function o(e){var t,i,r=e.x-this.x0,o=e.y-this.y0;if(this.sphere)i=c.b-2*Math.atan(Math.exp(-o/(this.a*this.k0)));else{var a=Math.exp(-o/(this.a*this.k0));if(-9999===(i=n.i(u.a)(this.e,a)))return null}return t=n.i(s.a)(this.long0+r/(this.a*this.k0)),e.x=t,e.y=i,e}var a=n(55),s=n(11),l=n(95),u=n(94),c=n(7),d=[\"Mercator\",\"Popular Visualisation Pseudo Mercator\",\"Mercator_1SP\",\"Mercator_Auxiliary_Sphere\",\"merc\"];t.a={init:i,forward:r,inverse:o,names:d}},function(e,t,n){\"use strict\";function i(){}function r(e){var t=e.x,i=e.y,r=n.i(a.a)(t-this.long0),o=this.x0+this.a*r,s=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return e.x=o,e.y=s,e}function o(e){e.x-=this.x0,e.y-=this.y0;var t=n.i(a.a)(this.long0+e.x/this.a),i=2.5*(Math.atan(Math.exp(.8*e.y/this.a))-Math.PI/4);return e.x=t,e.y=i,e}var a=n(11),s=[\"Miller_Cylindrical\",\"mill\"];t.a={init:i,forward:r,inverse:o,names:s}},function(e,t,n){\"use strict\";function i(){}function r(e){for(var t=e.x,i=e.y,r=n.i(a.a)(t-this.long0),o=i,l=Math.PI*Math.sin(i);;){var u=-(o+Math.sin(o)-l)/(1+Math.cos(o));if(o+=u,Math.abs(u).999999999999&&(i=.999999999999),t=Math.asin(i);var r=n.i(a.a)(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),i=(2*t+Math.sin(2*t))/Math.PI,Math.abs(i)>1&&(i=1);var o=Math.asin(i);return e.x=r,e.y=o,e}var a=n(11),s=n(7),l=[\"Mollweide\",\"moll\"];t.a={init:i,forward:r,inverse:o,names:l}},function(e,t,n){\"use strict\";function i(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function r(e){var t,n=e.x,i=e.y,r=i-this.lat0,o=n-this.long0,s=r/a.h*1e-5,l=o,u=1,c=0;for(t=1;t<=10;t++)u*=s,c+=this.A[t]*u;var d,h,f=c,p=l,m=1,g=0,v=0,y=0;for(t=1;t<=6;t++)d=m*f-g*p,h=g*f+m*p,m=d,g=h,v=v+this.B_re[t]*m-this.B_im[t]*g,y=y+this.B_im[t]*m+this.B_re[t]*g;return e.x=y*this.a+this.x0,e.y=v*this.a+this.y0,e}function o(e){var t,n,i,r=e.x,o=e.y,s=r-this.x0,l=o-this.y0,u=l/this.a,c=s/this.a,d=1,h=0,f=0,p=0;for(t=1;t<=6;t++)n=d*u-h*c,i=h*u+d*c,d=n,h=i,f=f+this.C_re[t]*d-this.C_im[t]*h,p=p+this.C_im[t]*d+this.C_re[t]*h;for(var m=0;m=0?this.el=(o+Math.sqrt(o*o-1))*Math.pow(r,this.bl):this.el=(o-Math.sqrt(o*o-1))*Math.pow(r,this.bl);var h=Math.pow(c,this.bl),f=Math.pow(d,this.bl);l=this.el/h,u=.5*(l-1/l);var p=(this.el*this.el-f*h)/(this.el*this.el+f*h),m=(f-h)/(f+h),g=n.i(s.a)(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(p*Math.tan(.5*this.bl*g)/m)/this.bl,this.long0=n.i(s.a)(this.long0);var v=n.i(s.a)(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*v)/u),this.alpha=Math.asin(o*Math.sin(this.gamma0))}else l=this.lat0>=0?o+Math.sqrt(o*o-1):o-Math.sqrt(o*o-1),this.el=l*Math.pow(r,this.bl),u=.5*(l-1/l),this.gamma0=Math.asin(Math.sin(this.alpha)/o),this.long0=this.longc-Math.asin(u*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(o*o-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(o*o-1),Math.cos(this.alpha))}function r(e){var t,i,r,o=e.x,l=e.y,c=n.i(s.a)(o-this.long0);if(Math.abs(Math.abs(l)-u.b)<=u.c)r=l>0?-1:1,i=this.al/this.bl*Math.log(Math.tan(u.g+r*this.gamma0*.5)),t=-1*r*u.b*this.al/this.bl;else{var d=n.i(a.a)(this.e,l,Math.sin(l)),h=this.el/Math.pow(d,this.bl),f=.5*(h-1/h),p=.5*(h+1/h),m=Math.sin(this.bl*c),g=(f*Math.sin(this.gamma0)-m*Math.cos(this.gamma0))/p;i=Math.abs(Math.abs(g)-1)<=u.c?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-g)/(1+g))/this.bl,t=Math.abs(Math.cos(this.bl*c))<=u.c?this.al*this.bl*c:this.al*Math.atan2(f*Math.cos(this.gamma0)+m*Math.sin(this.gamma0),Math.cos(this.bl*c))/this.bl}return this.no_rot?(e.x=this.x0+t,e.y=this.y0+i):(t-=this.uc,e.x=this.x0+i*Math.cos(this.alpha)+t*Math.sin(this.alpha),e.y=this.y0+t*Math.cos(this.alpha)-i*Math.sin(this.alpha)),e}function o(e){var t,i;this.no_rot?(i=e.y-this.y0,t=e.x-this.x0):(i=(e.x-this.x0)*Math.cos(this.alpha)-(e.y-this.y0)*Math.sin(this.alpha),t=(e.y-this.y0)*Math.cos(this.alpha)+(e.x-this.x0)*Math.sin(this.alpha),t+=this.uc);var r=Math.exp(-1*this.bl*i/this.al),o=.5*(r-1/r),a=.5*(r+1/r),c=Math.sin(this.bl*t/this.al),d=(c*Math.cos(this.gamma0)+o*Math.sin(this.gamma0))/a,h=Math.pow(this.el/Math.sqrt((1+d)/(1-d)),1/this.bl);return Math.abs(d-1)0||Math.abs(u)<=l.c)&&(c=this.a*s*i*Math.sin(r),d=this.y0+this.a*s*(this.cos_p14*t-this.sin_p14*i*o)),e.x=c,e.y=d,e}function o(e){var t,i,r,o,u,c,d;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),i=n.i(s.a)(t/this.a),r=Math.sin(i),o=Math.cos(i),c=this.long0,Math.abs(t)<=l.c?(d=this.lat0,e.x=c,e.y=d,e):(d=n.i(s.a)(o*this.sin_p14+e.y*r*this.cos_p14/t),u=Math.abs(this.lat0)-l.b,Math.abs(u)<=l.c?(c=this.lat0>=0?n.i(a.a)(this.long0+Math.atan2(e.x,-e.y)):n.i(a.a)(this.long0-Math.atan2(-e.x,e.y)),e.x=c,e.y=d,e):(c=n.i(a.a)(this.long0+Math.atan2(e.x*r,t*this.cos_p14*o-e.y*this.sin_p14*r)),e.x=c,e.y=d,e))}var a=n(11),s=n(54),l=n(7),u=[\"ortho\"];t.a={init:i,forward:r,inverse:o,names:u}},function(e,t,n){\"use strict\";function i(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=n.i(a.a)(this.es),this.e1=n.i(s.a)(this.es),this.e2=n.i(l.a)(this.es),this.e3=n.i(u.a)(this.es),this.ml0=this.a*n.i(h.a)(this.e0,this.e1,this.e2,this.e3,this.lat0)}function r(e){var t,i,r,o=e.x,a=e.y,s=n.i(c.a)(o-this.long0);if(r=s*Math.sin(a),this.sphere)Math.abs(a)<=f.c?(t=this.a*s,i=-1*this.a*this.lat0):(t=this.a*Math.sin(r)/Math.tan(a),i=this.a*(n.i(d.a)(a-this.lat0)+(1-Math.cos(r))/Math.tan(a)));else if(Math.abs(a)<=f.c)t=this.a*s,i=-1*this.ml0;else{var l=n.i(p.a)(this.a,this.e,Math.sin(a))/Math.tan(a);t=l*Math.sin(r),i=this.a*n.i(h.a)(this.e0,this.e1,this.e2,this.e3,a)-this.ml0+l*(1-Math.cos(r))}return e.x=t+this.x0,e.y=i+this.y0,e}function o(e){var t,i,r,o,a,s,l,u,d;if(r=e.x-this.x0,o=e.y-this.y0,this.sphere)if(Math.abs(o+this.a*this.lat0)<=f.c)t=n.i(c.a)(r/this.a+this.long0),i=0;else{s=this.lat0+o/this.a,l=r*r/this.a/this.a+s*s,u=s;var p;for(a=m;a;--a)if(p=Math.tan(u),d=-1*(s*(u*p+1)-u-.5*(u*u+l)*p)/((u-s)/p-1),u+=d,Math.abs(d)<=f.c){i=u;break}t=n.i(c.a)(this.long0+Math.asin(r*Math.tan(u)/this.a)/Math.sin(i))}else if(Math.abs(o+this.ml0)<=f.c)i=0,t=n.i(c.a)(this.long0+r/this.a);else{s=(this.ml0+o)/this.a,l=r*r/this.a/this.a+s*s,u=s;var g,v,y,b,_;for(a=m;a;--a)if(_=this.e*Math.sin(u),g=Math.sqrt(1-_*_)*Math.tan(u),v=this.a*n.i(h.a)(this.e0,this.e1,this.e2,this.e3,u),y=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),b=v/this.a,d=(s*(g*b+1)-b-.5*g*(b*b+l))/(this.es*Math.sin(2*u)*(b*b+l-2*s*b)/(4*g)+(s-b)*(g*y-2/Math.sin(2*u))-y),u-=d,Math.abs(d)<=f.c){i=u;break}g=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),t=n.i(c.a)(this.long0+Math.asin(r*g/this.a)/Math.sin(i))}return e.x=t,e.y=i,e}var a=n(89),s=n(90),l=n(91),u=n(92),c=n(11),d=n(73),h=n(93),f=n(7),p=n(128),m=20,g=[\"Polyconic\",\"poly\"];t.a={init:i,forward:r,inverse:o,names:g}},function(e,t,n){\"use strict\";function i(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||\"Quadrilateralized Spherical Cube\",this.lat0>=l.b-l.g/2?this.face=u.TOP:this.lat0<=-(l.b-l.g/2)?this.face=u.BOTTOM:Math.abs(this.long0)<=l.g?this.face=u.FRONT:Math.abs(this.long0)<=l.b+l.g?this.face=this.long0>0?u.RIGHT:u.LEFT:this.face=u.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function r(e){var t,n,i,r,o,d,h={x:0,y:0},f={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,n=e.x,this.face===u.TOP)r=l.b-t,n>=l.g&&n<=l.b+l.g?(f.value=c.AREA_0,i=n-l.b):n>l.b+l.g||n<=-(l.b+l.g)?(f.value=c.AREA_1,i=n>0?n-l.e:n+l.e):n>-(l.b+l.g)&&n<=-l.g?(f.value=c.AREA_2,i=n+l.b):(f.value=c.AREA_3,i=n);else if(this.face===u.BOTTOM)r=l.b+t,n>=l.g&&n<=l.b+l.g?(f.value=c.AREA_0,i=-n+l.b):n=-l.g?(f.value=c.AREA_1,i=-n):n<-l.g&&n>=-(l.b+l.g)?(f.value=c.AREA_2,i=-n-l.b):(f.value=c.AREA_3,i=n>0?-n+l.e:-n-l.e);else{var p,m,g,v,y,b,_;this.face===u.RIGHT?n=s(n,+l.b):this.face===u.BACK?n=s(n,+l.e):this.face===u.LEFT&&(n=s(n,-l.b)),v=Math.sin(t),y=Math.cos(t),b=Math.sin(n),_=Math.cos(n),p=y*_,m=y*b,g=v,this.face===u.FRONT?(r=Math.acos(p),i=a(r,g,m,f)):this.face===u.RIGHT?(r=Math.acos(m),i=a(r,g,-p,f)):this.face===u.BACK?(r=Math.acos(-p),i=a(r,g,-m,f)):this.face===u.LEFT?(r=Math.acos(-m),i=a(r,g,p,f)):(r=i=0,f.value=c.AREA_0)}return d=Math.atan(12/l.e*(i+Math.acos(Math.sin(i)*Math.cos(l.g))-l.b)),o=Math.sqrt((1-Math.cos(r))/(Math.cos(d)*Math.cos(d))/(1-Math.cos(Math.atan(1/Math.cos(i))))),f.value===c.AREA_1?d+=l.b:f.value===c.AREA_2?d+=l.e:f.value===c.AREA_3&&(d+=1.5*l.e),h.x=o*Math.cos(d),h.y=o*Math.sin(d),h.x=h.x*this.a+this.x0,h.y=h.y*this.a+this.y0,e.x=h.x,e.y=h.y,e}function o(e){var t,n,i,r,o,a,d,h,f,p={lam:0,phi:0},m={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?m.value=c.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(m.value=c.AREA_1,t-=l.b):e.x<0&&-e.x>=Math.abs(e.y)?(m.value=c.AREA_2,t=t<0?t+l.e:t-l.e):(m.value=c.AREA_3,t+=l.b),f=l.e/12*Math.tan(t),o=Math.sin(f)/(Math.cos(f)-1/Math.sqrt(2)),a=Math.atan(o),i=Math.cos(t),r=Math.tan(n),d=1-i*i*r*r*(1-Math.cos(Math.atan(1/Math.cos(a)))),d<-1?d=-1:d>1&&(d=1),this.face===u.TOP)h=Math.acos(d),p.phi=l.b-h,m.value===c.AREA_0?p.lam=a+l.b:m.value===c.AREA_1?p.lam=a<0?a+l.e:a-l.e:m.value===c.AREA_2?p.lam=a-l.b:p.lam=a;else if(this.face===u.BOTTOM)h=Math.acos(d),p.phi=h-l.b,m.value===c.AREA_0?p.lam=-a+l.b:m.value===c.AREA_1?p.lam=-a:m.value===c.AREA_2?p.lam=-a-l.b:p.lam=a<0?-a-l.e:-a+l.e;else{var g,v,y;g=d,f=g*g,y=f>=1?0:Math.sqrt(1-f)*Math.sin(a),f+=y*y,v=f>=1?0:Math.sqrt(1-f),m.value===c.AREA_1?(f=v,v=-y,y=f):m.value===c.AREA_2?(v=-v,y=-y):m.value===c.AREA_3&&(f=v,v=y,y=-f),this.face===u.RIGHT?(f=g,g=-v,v=f):this.face===u.BACK?(g=-g,v=-v):this.face===u.LEFT&&(f=g,g=v,v=-f),p.phi=Math.acos(-y)-l.b,p.lam=Math.atan2(v,g),this.face===u.RIGHT?p.lam=s(p.lam,-l.b):this.face===u.BACK?p.lam=s(p.lam,-l.e):this.face===u.LEFT&&(p.lam=s(p.lam,+l.b))}if(0!==this.es){var b,_,x;b=p.phi<0?1:0,_=Math.tan(p.phi),x=this.b/Math.sqrt(_*_+this.one_minus_f_squared),p.phi=Math.atan(Math.sqrt(this.a*this.a-x*x)/(this.one_minus_f*x)),b&&(p.phi=-p.phi)}return p.lam+=this.long0,e.x=p.lam,e.y=p.phi,e}function a(e,t,n,i){var r;return el.g&&r<=l.b+l.g?(i.value=c.AREA_1,r-=l.b):r>l.b+l.g||r<=-(l.b+l.g)?(i.value=c.AREA_2,r=r>=0?r-l.e:r+l.e):(i.value=c.AREA_3,r+=l.b)),r}function s(e,t){var n=e+t;return n<-l.e?n+=l.f:n>+l.e&&(n-=l.f),n}var l=n(7),u={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},c={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4},d=[\"Quadrilateralized Spherical Cube\",\"Quadrilateralized_Spherical_Cube\",\"qsc\"];t.a={init:i,forward:r,inverse:o,names:d}},function(e,t,n){\"use strict\";function i(e,t,n,i){for(var r=t;i;--i){var o=e(r);if(r-=o,Math.abs(o)=m&&(r=m-1),i=s.a*(i-p*r);var o={x:g(u[r],i)*t,y:g(c[r],i)};return e.y<0&&(o.y=-o.y),o.x=o.x*this.a*d+this.x0,o.y=o.y*this.a*h+this.y0,o}function a(e){var t={x:(e.x-this.x0)/(this.a*d),y:Math.abs(e.y-this.y0)/(this.a*h)};if(t.y>=1)t.x/=u[m][0],t.y=e.y<0?-s.b:s.b;else{var r=Math.floor(t.y*m);for(r<0?r=0:r>=m&&(r=m-1);;)if(c[r][0]>t.y)--r;else{if(!(c[r+1][0]<=t.y))break;++r}var o=c[r],a=5*(t.y-o[0])/(c[r+1][0]-o[0]);a=i(function(e){return(g(o,e)-t.y)/v(o,e)},a,s.c,100),t.x/=g(u[r],a),t.y=(5*r+a)*s.d,e.y<0&&(t.y=-t.y)}return t.x=n.i(l.a)(t.x+this.long0),t}var s=n(7),l=n(11),u=[[1,2.2199e-17,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],c=[[-5.20417e-18,.0124,1.21431e-18,-8.45284e-11],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],d=.8487,h=1.3523,f=s.a/5,p=1/f,m=18,g=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},v=function(e,t){return e[1]+t*(2*e[2]+3*t*e[3])},y=[\"Robinson\",\"robin\"];t.a={init:r,forward:o,inverse:a,names:y}},function(e,t,n){\"use strict\";function i(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=n.i(l.a)(this.es)}function r(e){var t,i,r=e.x,o=e.y;if(r=n.i(a.a)(r-this.long0),this.sphere){if(this.m)for(var s=this.n*Math.sin(o),l=f;l;--l){var c=(this.m*o+Math.sin(o)-s)/(this.m+Math.cos(o));if(o-=c,Math.abs(c)1e-7;){if(++d>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),c=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return e.x=s,e.y=u,e}var a=[\"somerc\"];t.a={init:i,forward:r,inverse:o,names:a}},function(e,t,n){\"use strict\";function i(e,t,n){return t*=n,Math.tan(.5*(s.b+e))*Math.pow((1-t)/(1+t),.5*n)}function r(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s.c&&(this.k0=.5*(1+n.i(l.a)(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=s.c&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s.c&&(this.k0=.5*this.cons*n.i(u.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/n.i(c.a)(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=n.i(u.a)(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-s.b,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function o(e){var t,i,r,o,a,l,u=e.x,d=e.y,f=Math.sin(d),p=Math.cos(d),m=n.i(h.a)(u-this.long0);return Math.abs(Math.abs(u-this.long0)-Math.PI)<=s.c&&Math.abs(d+this.lat0)<=s.c?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*f+this.coslat0*p*Math.cos(m)),e.x=this.a*t*p*Math.sin(m)+this.x0,e.y=this.a*t*(this.coslat0*f-this.sinlat0*p*Math.cos(m))+this.y0,e):(i=2*Math.atan(this.ssfn_(d,f,this.e))-s.b,o=Math.cos(i),r=Math.sin(i),Math.abs(this.coslat0)<=s.c?(a=n.i(c.a)(this.e,d*this.con,this.con*f),l=2*this.a*this.k0*a/this.cons,e.x=this.x0+l*Math.sin(u-this.long0),e.y=this.y0-this.con*l*Math.cos(u-this.long0),e):(Math.abs(this.sinlat0)0?n.i(h.a)(this.long0+Math.atan2(e.x,-1*e.y)):n.i(h.a)(this.long0+Math.atan2(e.x,e.y)):n.i(h.a)(this.long0+Math.atan2(e.x*Math.sin(u),l*this.coslat0*Math.cos(u)-e.y*this.sinlat0*Math.sin(u))),e.x=t,e.y=i,e)}if(Math.abs(this.coslat0)<=s.c){if(l<=s.c)return i=this.lat0,t=this.long0,e.x=t,e.y=i,e;e.x*=this.con,e.y*=this.con,r=l*this.cons/(2*this.a*this.k0),i=this.con*n.i(d.a)(this.e,r),t=this.con*n.i(h.a)(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else o=2*Math.atan(l*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,l<=s.c?a=this.X0:(a=Math.asin(Math.cos(o)*this.sinX0+e.y*Math.sin(o)*this.cosX0/l),t=n.i(h.a)(this.long0+Math.atan2(e.x*Math.sin(o),l*this.cosX0*Math.cos(o)-e.y*this.sinX0*Math.sin(o)))),i=-1*n.i(d.a)(this.e,Math.tan(.5*(s.b+a)));return e.x=t,e.y=i,e}var s=n(7),l=n(74),u=n(55),c=n(95),d=n(94),h=n(11),f=[\"stere\",\"Stereographic_South_Pole\",\"Polar Stereographic (variant B)\"];t.a={init:r,forward:o,inverse:a,names:f,ssfn_:i}},function(e,t,n){\"use strict\";function i(){a.a.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title=\"Oblique Stereographic Alternative\"))}function r(e){var t,i,r,o;return e.x=n.i(s.a)(e.x-this.long0),a.a.forward.apply(this,[e]),t=Math.sin(e.y),i=Math.cos(e.y),r=Math.cos(e.x),o=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*i*r),e.x=o*i*Math.sin(e.x),e.y=o*(this.cosc0*t-this.sinc0*i*r),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function o(e){var t,i,r,o,l;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,l=Math.sqrt(e.x*e.x+e.y*e.y)){var u=2*Math.atan2(l,this.R2);t=Math.sin(u),i=Math.cos(u),o=Math.asin(i*this.sinc0+e.y*t*this.cosc0/l),r=Math.atan2(e.x*t,l*this.cosc0*i-e.y*this.sinc0*t)}else o=this.phic0,r=0;return e.x=r,e.y=o,a.a.inverse.apply(this,[e]),e.x=n.i(s.a)(e.x+this.long0),e}var a=n(522),s=n(11),l=[\"Stereographic_North_Pole\",\"Oblique_Stereographic\",\"Polar_Stereographic\",\"sterea\",\"Oblique Stereographic Alternative\",\"Double_Stereographic\"];t.a={init:i,forward:r,inverse:o,names:l}},function(e,t,n){\"use strict\";function i(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=n.i(a.a)(this.es),this.ml0=n.i(s.a)(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function r(e){var t,i,r,o=e.x,a=e.y,l=n.i(u.a)(o-this.long0),d=Math.sin(a),h=Math.cos(a);if(this.es){var f=h*l,p=Math.pow(f,2),m=this.ep2*Math.pow(h,2),g=Math.pow(m,2),v=Math.abs(h)>c.c?Math.tan(a):0,y=Math.pow(v,2),b=Math.pow(y,2);t=1-this.es*Math.pow(d,2),f/=Math.sqrt(t);var _=n.i(s.a)(a,d,h,this.en);i=this.a*(this.k0*f*(1+p/6*(1-y+m+p/20*(5-18*y+b+14*m-58*y*m+p/42*(61+179*b-b*y-479*y)))))+this.x0,r=this.a*(this.k0*(_-this.ml0+d*l*f/2*(1+p/12*(5-y+9*m+4*g+p/30*(61+b-58*y+270*m-330*y*m+p/56*(1385+543*b-b*y-3111*y))))))+this.y0}else{var x=h*Math.sin(l);if(Math.abs(Math.abs(x)-1)=1){if(x-1>c.c)return 93;r=0}else r=Math.acos(r);a<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return e.x=i,e.y=r,e}function o(e){var t,i,r,o,a=(e.x-this.x0)*(1/this.a),s=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+s/this.k0,i=n.i(l.a)(t,this.es,this.en),Math.abs(i)c.c?Math.tan(i):0,m=this.ep2*Math.pow(f,2),g=Math.pow(m,2),v=Math.pow(p,2),y=Math.pow(v,2);t=1-this.es*Math.pow(h,2);var b=a*Math.sqrt(t)/this.k0,_=Math.pow(b,2);t*=p,r=i-t*_/(1-this.es)*.5*(1-_/12*(5+3*v-9*m*v+m-4*g-_/30*(61+90*v-252*m*v+45*y+46*m-_/56*(1385+3633*v+4095*y+1574*y*v)))),o=n.i(u.a)(this.long0+b*(1-_/6*(1+2*v+m-_/20*(5+28*v+24*y+8*m*v+6*m-_/42*(61+662*v+1320*y+720*y*v))))/f)}else r=c.b*n.i(d.a)(s),o=0;else{var x=Math.exp(a/this.k0),w=.5*(x-1/x),M=this.lat0+s/this.k0,S=Math.cos(M);t=Math.sqrt((1-Math.pow(S,2))/(1+Math.pow(w,2))),r=Math.asin(t),s<0&&(r=-r),o=0===w&&0===S?0:n.i(u.a)(Math.atan2(w,S)+this.long0)}return e.x=o,e.y=r,e}var a=n(191),s=n(130),l=n(192),u=n(11),c=n(7),d=n(74),h=[\"Transverse_Mercator\",\"Transverse Mercator\",\"tmerc\"];t.a={init:i,forward:r,inverse:o,names:h}},function(e,t,n){\"use strict\";function i(){var e=n.i(r.a)(this.zone,this.long0);if(void 0===e)throw new Error(\"unknown utm zone\");this.lat0=0,this.long0=(6*Math.abs(e)-183)*a.d,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,o.a.init.apply(this),this.forward=o.a.forward,this.inverse=o.a.inverse}var r=n(493),o=n(197),a=n(7),s=[\"Universal Transverse Mercator System\",\"utm\"];t.a={init:i,names:s,dependsOn:\"etmerc\"}},function(e,t,n){\"use strict\";function i(){this.R=this.a}function r(e){var t,i,r=e.x,o=e.y,u=n.i(a.a)(r-this.long0);Math.abs(o)<=s.c&&(t=this.x0+this.R*u,i=this.y0);var c=n.i(l.a)(2*Math.abs(o/Math.PI));(Math.abs(u)<=s.c||Math.abs(Math.abs(o)-s.b)<=s.c)&&(t=this.x0,i=o>=0?this.y0+Math.PI*this.R*Math.tan(.5*c):this.y0+Math.PI*this.R*-Math.tan(.5*c));var d=.5*Math.abs(Math.PI/u-u/Math.PI),h=d*d,f=Math.sin(c),p=Math.cos(c),m=p/(f+p-1),g=m*m,v=m*(2/f-1),y=v*v,b=Math.PI*this.R*(d*(m-y)+Math.sqrt(h*(m-y)*(m-y)-(y+h)*(g-y)))/(y+h);u<0&&(b=-b),t=this.x0+b;var _=h+m;return b=Math.PI*this.R*(v*_-d*Math.sqrt((y+h)*(h+1)-_*_))/(y+h),i=o>=0?this.y0+b:this.y0-b,e.x=t,e.y=i,e}function o(e){var t,i,r,o,l,u,c,d,h,f,p,m,g;return e.x-=this.x0,e.y-=this.y0,p=Math.PI*this.R,r=e.x/p,o=e.y/p,l=r*r+o*o,u=-Math.abs(o)*(1+l),c=u-2*o*o+r*r,d=-2*u+1+2*o*o+l*l,g=o*o/d+(2*c*c*c/d/d/d-9*u*c/d/d)/27,h=(u-c*c/3/d)/d,f=2*Math.sqrt(-h/3),p=3*g/h/f,Math.abs(p)>1&&(p=p>=0?1:-1),m=Math.acos(p)/3,i=e.y>=0?(-f*Math.cos(m+Math.PI/3)-c/3/d)*Math.PI:-(-f*Math.cos(m+Math.PI/3)-c/3/d)*Math.PI,t=Math.abs(r)>>0,this.hi=t>>>0}e.exports=i;var r=n(36),o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var a=i.zeroHash=\"\\0\\0\\0\\0\\0\\0\\0\\0\";i.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new i(n,r)},i.from=function(e){if(\"number\"==typeof e)return i.fromNumber(e);if(r.isString(e)){if(!r.Long)return i.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):o},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;i.fromHash=function(e){return e===a?o:new i((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},function(e,t,n){\"use strict\";function i(){o.call(this)}function r(e,t,n){e.length<40?a.utf8.write(e,t,n):t.utf8Write(e,n)}e.exports=i;var o=n(135);(i.prototype=Object.create(o.prototype)).constructor=i;var a=n(36),s=a.Buffer;i.alloc=function(e){return(i.alloc=a._Buffer_allocUnsafe)(e)};var l=s&&s.prototype instanceof Uint8Array&&\"set\"===s.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var i=0;i>>0;return this.uint32(t),t&&this._push(l,t,e),this},i.prototype.string=function(e){var t=s.byteLength(e);return this.uint32(t),t&&this._push(r,t,e),this}},function(e,t,n){\"use strict\";function i(e,t,n,i,r,o,a,s){if(!e){if(e=void 0,void 0===t)e=Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else{var l=[n,i,r,o,a,s],u=0;e=Error(t.replace(/%s/g,function(){return l[u++]})),e.name=\"Invariant Violation\"}throw e.framesToPop=1,e}}function r(e){for(var t=arguments.length-1,n=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+e,r=0;rthis.eventPool.length&&this.eventPool.push(e)}function N(e){e.eventPool=[],e.getPooled=I,e.release=D}function B(e,t){switch(e){case\"keyup\":return-1!==tr.indexOf(t.keyCode);case\"keydown\":return 229!==t.keyCode;case\"keypress\":case\"mousedown\":case\"blur\":return!0;default:return!1}}function z(e){return e=e.detail,\"object\"==typeof e&&\"data\"in e?e.data:null}function F(e,t){switch(e){case\"compositionend\":return z(t);case\"keypress\":return 32!==t.which?null:(lr=!0,ar);case\"textInput\":return e=t.data,e===ar&&lr?null:e;default:return null}}function j(e,t){if(ur)return\"compositionend\"===e||!nr&&B(e,t)?(e=P(),Qi=Ji=Zi=null,ur=!1,e):null;switch(e){case\"paste\":return null;case\"keypress\":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1t}return!1}function se(e,t,n,i,r){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t}function le(e){return e[1].toUpperCase()}function ue(e,t,n,i){var r=Ir.hasOwnProperty(t)?Ir[t]:null;(null!==r?0===r.type:!i&&(2po.length&&po.push(e)}}}function We(e){return Object.prototype.hasOwnProperty.call(e,yo)||(e[yo]=vo++,go[e[yo]]={}),go[e[yo]]}function Ge(e){if(void 0===(e=e||(\"undefined\"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ve(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function He(e,t){var n=Ve(e);e=0;for(var i;n;){if(3===n.nodeType){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ve(n)}}function qe(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?qe(e,t.parentNode):\"contains\"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Ye(){for(var e=window,t=Ge();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=Ge(e.document)}return t}function Xe(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(\"input\"===t&&(\"text\"===e.type||\"search\"===e.type||\"tel\"===e.type||\"url\"===e.type||\"password\"===e.type)||\"textarea\"===t||\"true\"===e.contentEditable)}function Ke(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return So||null==xo||xo!==Ge(n)?null:(n=xo,\"selectionStart\"in n&&Xe(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Mo&&Pe(Mo,n)?null:(Mo=n,e=L.getPooled(_o.select,wo,e,t),e.type=\"select\",e.target=xo,k(e),e))}function Ze(e){var t=\"\";return bi.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}function Je(e,t){return e=_i({children:void 0},t),(t=Ze(t.children))&&(e.children=t),e}function Qe(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r=t.length||r(\"93\"),t=t[0]),n=t),null==n&&(n=\"\")),e._wrapperState={initialValue:ce(n)}}function tt(e,t){var n=ce(t.value),i=ce(t.defaultValue);null!=n&&(n=\"\"+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=i&&(e.defaultValue=\"\"+i)}function nt(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}function it(e){switch(e){case\"svg\":return\"http://www.w3.org/2000/svg\";case\"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}function rt(e,t){return null==e||\"http://www.w3.org/1999/xhtml\"===e?it(t):\"http://www.w3.org/2000/svg\"===e&&\"foreignObject\"===t?\"http://www.w3.org/1999/xhtml\":e}function ot(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function at(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=0===n.indexOf(\"--\"),r=n,o=t[n];r=null==o||\"boolean\"==typeof o||\"\"===o?\"\":i||\"number\"!=typeof o||0===o||Co.hasOwnProperty(r)&&Co[r]?(\"\"+o).trim():o+\"px\",\"float\"===n&&(n=\"cssFloat\"),i?e.setProperty(n,r):e[n]=r}}function st(e,t){t&&(Ao[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&r(\"137\",e,\"\"),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&r(\"60\"),\"object\"==typeof t.dangerouslySetInnerHTML&&\"__html\"in t.dangerouslySetInnerHTML||r(\"61\")),null!=t.style&&\"object\"!=typeof t.style&&r(\"62\",\"\"))}function lt(e,t){if(-1===e.indexOf(\"-\"))return\"string\"==typeof t.is;switch(e){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}function ut(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=We(e);t=Ri[t];for(var i=0;iDo||(e.current=Io[Do],Io[Do]=null,Do--)}function gt(e,t){Do++,Io[Do]=e.current,e.current=t}function vt(e,t){var n=e.type.contextTypes;if(!n)return No;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r,o={};for(r in n)o[r]=t[r];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function yt(e){return null!==(e=e.childContextTypes)&&void 0!==e}function bt(e){mt(zo,e),mt(Bo,e)}function _t(e){mt(zo,e),mt(Bo,e)}function xt(e,t,n){Bo.current!==No&&r(\"168\"),gt(Bo,t,e),gt(zo,n,e)}function wt(e,t,n){var i=e.stateNode;if(e=t.childContextTypes,\"function\"!=typeof i.getChildContext)return n;i=i.getChildContext();for(var o in i)o in e||r(\"108\",ne(t)||\"Unknown\",o);return _i({},n,i)}function Mt(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||No,Fo=Bo.current,gt(Bo,t,e),gt(zo,zo.current,e),!0}function St(e,t,n){var i=e.stateNode;i||r(\"169\"),n?(t=wt(e,t,Fo),i.__reactInternalMemoizedMergedChildContext=t,mt(zo,e),mt(Bo,e),gt(Bo,t,e)):mt(zo,e),gt(zo,n,e)}function Et(e){return function(t){try{return e(t)}catch(e){}}}function Tt(e){if(\"undefined\"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);jo=Et(function(e){return t.onCommitFiberRoot(n,e)}),Uo=Et(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function kt(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=t,this.firstContextDependency=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ot(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ct(e,t,n){var i=e.alternate;return null===i?(i=new kt(e.tag,t,e.key,e.mode),i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.effectTag=0,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null),i.childExpirationTime=e.childExpirationTime,i.expirationTime=t!==e.pendingProps?n:e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,i.firstContextDependency=e.firstContextDependency,i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function Pt(e,t,n){var i=e.type,o=e.key;e=e.props;var a=void 0;if(\"function\"==typeof i)a=Ot(i)?2:4;else if(\"string\"==typeof i)a=7;else e:switch(i){case xr:return At(e.children,t,n,o);case Tr:a=10,t|=3;break;case wr:a=10,t|=2;break;case Mr:return i=new kt(15,e,o,4|t),i.type=Mr,i.expirationTime=n,i;case Or:a=16;break;default:if(\"object\"==typeof i&&null!==i)switch(i.$$typeof){case Sr:a=12;break e;case Er:a=11;break e;case kr:a=13;break e;default:if(\"function\"==typeof i.then){a=4;break e}}r(\"130\",null==i?i:typeof i,\"\")}return t=new kt(a,e,o,t),t.type=i,t.expirationTime=n,t}function At(e,t,n,i){return e=new kt(9,e,i,t),e.expirationTime=n,e}function Rt(e,t,n){return e=new kt(8,e,null,t),e.expirationTime=n,e}function Lt(e,t,n){return t=new kt(6,null!==e.children?e.children:[],e.key,t),t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function It(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n>t?e.earliestPendingTime=t:e.latestPendingTimee)&&(r=i),e=r,0!==e&&0!==n&&nr?(null===a&&(a=l,o=u),(0===s||s>c)&&(s=c)):(u=Gt(e,t,l,u,n,i),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(c=null,l=t.firstCapturedUpdate;null!==l;){var d=l.expirationTime;d>r?(null===c&&(c=l,null===a&&(o=u)),(0===s||s>d)&&(s=d)):(u=Gt(e,t,l,u,n,i),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(o=u),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=s,e.memoizedState=u}function Ht(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),qt(t.firstEffect,n),t.firstEffect=t.lastEffect=null,qt(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function qt(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var i=t;\"function\"!=typeof n&&r(\"191\",n),n.call(i)}e=e.nextEffect}}function Yt(e,t){return{value:e,source:t,stack:ie(t)}}function Xt(e,t){var n=e.type._context;gt(Go,n._currentValue,e),n._currentValue=t}function Kt(e){var t=Go.current;mt(Go,e),e.type._context._currentValue=t}function Zt(e){Vo=e,qo=Ho=null,e.firstContextDependency=null}function Jt(e,t){return qo!==e&&!1!==t&&0!==t&&(\"number\"==typeof t&&1073741823!==t||(qo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ho?(null===Vo&&r(\"277\"),Vo.firstContextDependency=Ho=t):Ho=Ho.next=t),e._currentValue}function Qt(e){return e===Yo&&r(\"174\"),e}function $t(e,t){gt(Zo,t,e),gt(Ko,e,e),gt(Xo,Yo,e);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:rt(null,\"\");break;default:n=8===n?t.parentNode:t,t=n.namespaceURI||null,n=n.tagName,t=rt(t,n)}mt(Xo,e),gt(Xo,t,e)}function en(e){mt(Xo,e),mt(Ko,e),mt(Zo,e)}function tn(e){Qt(Zo.current);var t=Qt(Xo.current),n=rt(t,e.type);t!==n&&(gt(Ko,e,e),gt(Xo,n,e))}function nn(e){Ko.current===e&&(mt(Xo,e),mt(Ko,e))}function rn(e,t,n,i){t=e.memoizedState,n=n(i,t),n=null===n||void 0===n?t:_i({},t,n),e.memoizedState=n,null!==(i=e.updateQueue)&&0===e.expirationTime&&(i.baseState=n)}function on(e,t,n,i,r,o,a){return e=e.stateNode,\"function\"==typeof e.shouldComponentUpdate?e.shouldComponentUpdate(i,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Pe(n,i)||!Pe(r,o))}function an(e,t,n,i){e=t.state,\"function\"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),\"function\"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Qo.enqueueReplaceState(t,t.state,null)}function sn(e,t,n,i){var r=e.stateNode,o=yt(t)?Fo:Bo.current;r.props=n,r.state=e.memoizedState,r.refs=Jo,r.context=vt(e,o),o=e.updateQueue,null!==o&&(Vt(e,o,n,r,i),r.state=e.memoizedState),o=t.getDerivedStateFromProps,\"function\"==typeof o&&(rn(e,t,o,n),r.state=e.memoizedState),\"function\"==typeof t.getDerivedStateFromProps||\"function\"==typeof r.getSnapshotBeforeUpdate||\"function\"!=typeof r.UNSAFE_componentWillMount&&\"function\"!=typeof r.componentWillMount||(t=r.state,\"function\"==typeof r.componentWillMount&&r.componentWillMount(),\"function\"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&Qo.enqueueReplaceState(r,r.state,null),null!==(o=e.updateQueue)&&(Vt(e,o,n,r,i),r.state=e.memoizedState)),\"function\"==typeof r.componentDidMount&&(e.effectTag|=4)}function ln(e,t,n){if(null!==(e=n.ref)&&\"function\"!=typeof e&&\"object\"!=typeof e){if(n._owner){n=n._owner;var i=void 0;n&&(2!==n.tag&&3!==n.tag&&r(\"110\"),i=n.stateNode),i||r(\"147\",e);var o=\"\"+e;return null!==t&&null!==t.ref&&\"function\"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===Jo&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}\"string\"!=typeof e&&r(\"284\"),n._owner||r(\"254\",e)}return e}function un(e,t){\"textarea\"!==e.type&&r(\"31\",\"[object Object]\"===Object.prototype.toString.call(t)?\"object with keys {\"+Object.keys(t).join(\", \")+\"}\":t,\"\")}function cn(e){function t(t,n){if(e){var i=t.lastEffect;null!==i?(i.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t,n){return e=Ct(e,t,n),e.index=0,e.sibling=null,e}function a(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index,im?(g=d,d=null):g=d.sibling;var v=f(r,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(r,d),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return n(r,d),u;if(null===d){for(;mg?(v=m,m=null):v=m.sibling;var b=f(o,m,y.value,u);if(null===b){m||(m=v);break}e&&m&&null===b.alternate&&t(o,m),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return n(o,m),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=h(o,y.value,u))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return c}for(m=i(o,m);!y.done;g++,y=l.next())null!==(y=p(m,o,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(o,e)}),c}return function(e,i,a,l){var u=\"object\"==typeof a&&null!==a&&a.type===xr&&null===a.key;u&&(a=a.props.children);var c=\"object\"==typeof a&&null!==a;if(c)switch(a.$$typeof){case br:e:{for(c=a.key,u=i;null!==u;){if(u.key===c){if(9===u.tag?a.type===xr:u.type===a.type){n(e,u.sibling),i=o(u,a.type===xr?a.props.children:a.props,l),i.ref=ln(e,u,a),i.return=e,e=i;break e}n(e,u);break}t(e,u),u=u.sibling}a.type===xr?(i=At(a.props.children,e.mode,l,a.key),i.return=e,e=i):(l=Pt(a,e.mode,l),l.ref=ln(e,i,a),l.return=e,e=l)}return s(e);case _r:e:{for(u=a.key;null!==i;){if(i.key===u){if(6===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(e,i.sibling),i=o(i,a.children||[],l),i.return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}i=Lt(a,e.mode,l),i.return=e,e=i}return s(e)}if(\"string\"==typeof a||\"number\"==typeof a)return a=\"\"+a,null!==i&&8===i.tag?(n(e,i.sibling),i=o(i,a,l),i.return=e,e=i):(n(e,i),i=Rt(a,e.mode,l),i.return=e,e=i),s(e);if($o(a))return m(e,i,a,l);if(te(a))return g(e,i,a,l);if(c&&un(e,a),void 0===a&&!u)switch(e.tag){case 2:case 3:case 0:l=e.type,r(\"152\",l.displayName||l.name||\"Component\")}return n(e,i)}}function dn(e,t){var n=new kt(7,null,null,0);n.type=\"DELETED\",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function hn(e,t){switch(e.tag){case 7:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 8:return null!==(t=\"\"===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function fn(e){if(ra){var t=ia;if(t){var n=t;if(!hn(e,t)){if(!(t=ft(n))||!hn(e,t))return e.effectTag|=2,ra=!1,void(na=e);dn(na,n)}na=e,ia=pt(t)}else e.effectTag|=2,ra=!1,na=e}}function pn(e){for(e=e.return;null!==e&&7!==e.tag&&5!==e.tag;)e=e.return;na=e}function mn(e){if(e!==na)return!1;if(!ra)return pn(e),ra=!0,!1;var t=e.type;if(7!==e.tag||\"head\"!==t&&\"body\"!==t&&!ht(t,e.memoizedProps))for(t=ia;t;)dn(e,t),t=ft(t);return pn(e),ia=na?ft(e.stateNode):null,!0}function gn(){ia=na=null,ra=!1}function vn(e){switch(e._reactStatus){case 1:return e._reactResult;case 2:throw e._reactResult;case 0:throw e;default:throw e._reactStatus=0,e.then(function(t){if(0===e._reactStatus){if(e._reactStatus=1,\"object\"==typeof t&&null!==t){var n=t.default;t=void 0!==n&&null!==n?n:t}e._reactResult=t}},function(t){0===e._reactStatus&&(e._reactStatus=2,e._reactResult=t)}),e}}function yn(e,t,n,i){t.child=null===e?ta(t,null,n,i):ea(t,e.child,n,i)}function bn(e,t,n,i,r){n=n.render;var o=t.ref;return zo.current||t.memoizedProps!==i||o!==(null!==e?e.ref:null)?(n=n(i,o),yn(e,t,n,r),t.memoizedProps=i,t.child):kn(e,t,r)}function _n(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function xn(e,t,n,i,r){var o=yt(n)?Fo:Bo.current;return o=vt(t,o),Zt(t,r),n=n(i,o),t.effectTag|=1,yn(e,t,n,r),t.memoizedProps=i,t.child}function wn(e,t,n,i,r){if(yt(n)){var o=!0;Mt(t)}else o=!1;if(Zt(t,r),null===e)if(null===t.stateNode){var a=yt(n)?Fo:Bo.current,s=n.contextTypes,l=null!==s&&void 0!==s;s=l?vt(t,a):No;var u=new n(i,s);t.memoizedState=null!==u.state&&void 0!==u.state?u.state:null,u.updater=Qo,t.stateNode=u,u._reactInternalFiber=t,l&&(l=t.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=a,l.__reactInternalMemoizedMaskedChildContext=s),sn(t,n,i,r),i=!0}else{a=t.stateNode,s=t.memoizedProps,a.props=s;var c=a.context;l=yt(n)?Fo:Bo.current,l=vt(t,l);var d=n.getDerivedStateFromProps;(u=\"function\"==typeof d||\"function\"==typeof a.getSnapshotBeforeUpdate)||\"function\"!=typeof a.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof a.componentWillReceiveProps||(s!==i||c!==l)&&an(t,a,i,l),Wo=!1;var h=t.memoizedState;c=a.state=h;var f=t.updateQueue;null!==f&&(Vt(t,f,i,a,r),c=t.memoizedState),s!==i||h!==c||zo.current||Wo?(\"function\"==typeof d&&(rn(t,n,d,i),c=t.memoizedState),(s=Wo||on(t,n,s,i,h,c,l))?(u||\"function\"!=typeof a.UNSAFE_componentWillMount&&\"function\"!=typeof a.componentWillMount||(\"function\"==typeof a.componentWillMount&&a.componentWillMount(),\"function\"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),\"function\"==typeof a.componentDidMount&&(t.effectTag|=4)):(\"function\"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=i,t.memoizedState=c),a.props=i,a.state=c,a.context=l,i=s):(\"function\"==typeof a.componentDidMount&&(t.effectTag|=4),i=!1)}else a=t.stateNode,s=t.memoizedProps,a.props=s,c=a.context,l=yt(n)?Fo:Bo.current,l=vt(t,l),d=n.getDerivedStateFromProps,(u=\"function\"==typeof d||\"function\"==typeof a.getSnapshotBeforeUpdate)||\"function\"!=typeof a.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof a.componentWillReceiveProps||(s!==i||c!==l)&&an(t,a,i,l),Wo=!1,c=t.memoizedState,h=a.state=c,f=t.updateQueue,null!==f&&(Vt(t,f,i,a,r),h=t.memoizedState),s!==i||c!==h||zo.current||Wo?(\"function\"==typeof d&&(rn(t,n,d,i),h=t.memoizedState),(d=Wo||on(t,n,s,i,c,h,l))?(u||\"function\"!=typeof a.UNSAFE_componentWillUpdate&&\"function\"!=typeof a.componentWillUpdate||(\"function\"==typeof a.componentWillUpdate&&a.componentWillUpdate(i,h,l),\"function\"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(i,h,l)),\"function\"==typeof a.componentDidUpdate&&(t.effectTag|=4),\"function\"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):(\"function\"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),\"function\"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=i,t.memoizedState=h),a.props=i,a.state=h,a.context=l,i=d):(\"function\"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),\"function\"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),i=!1);return Mn(e,t,n,i,o,r)}function Mn(e,t,n,i,r,o){_n(e,t);var a=0!=(64&t.effectTag);if(!i&&!a)return r&&St(t,n,!1),kn(e,t,o);i=t.stateNode,oa.current=t;var s=a?null:i.render();return t.effectTag|=1,null!==e&&a&&(yn(e,t,null,o),t.child=null),yn(e,t,s,o),t.memoizedState=i.state,t.memoizedProps=i.props,r&&St(t,n,!0),t.child}function Sn(e){var t=e.stateNode;t.pendingContext?xt(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xt(e,t.context,!1),$t(e,t.containerInfo)}function En(e,t){if(e&&e.defaultProps){t=_i({},t),e=e.defaultProps;for(var n in e)void 0===t[n]&&(t[n]=e[n])}return t}function Tn(e,t,n,i){null!==e&&r(\"155\");var o=t.pendingProps;if(\"object\"==typeof n&&null!==n&&\"function\"==typeof n.then){n=vn(n);var a=n;a=\"function\"==typeof a?Ot(a)?3:1:void 0!==a&&null!==a&&a.$$typeof?14:4,a=t.tag=a;var s=En(n,o);switch(a){case 1:return xn(e,t,n,s,i);case 3:return wn(e,t,n,s,i);case 14:return bn(e,t,n,s,i);default:r(\"283\",n)}}if(a=vt(t,Bo.current),Zt(t,i),a=n(o,a),t.effectTag|=1,\"object\"==typeof a&&null!==a&&\"function\"==typeof a.render&&void 0===a.$$typeof){t.tag=2,yt(n)?(s=!0,Mt(t)):s=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null;var l=n.getDerivedStateFromProps;return\"function\"==typeof l&&rn(t,n,l,o),a.updater=Qo,t.stateNode=a,a._reactInternalFiber=t,sn(t,n,o,i),Mn(e,t,n,!0,s,i)}return t.tag=0,yn(e,t,a,i),t.memoizedProps=o,t.child}function kn(e,t,n){null!==e&&(t.firstContextDependency=e.firstContextDependency);var i=t.childExpirationTime;if(0===i||i>n)return null;if(null!==e&&t.child!==e.child&&r(\"153\"),null!==t.child){for(e=t.child,n=Ct(e,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=Ct(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}function On(e,t,n){var i=t.expirationTime;if(!zo.current&&(0===i||i>n)){switch(t.tag){case 5:Sn(t),gn();break;case 7:tn(t);break;case 2:yt(t.type)&&Mt(t);break;case 3:yt(t.type._reactResult)&&Mt(t);break;case 6:$t(t,t.stateNode.containerInfo);break;case 12:Xt(t,t.memoizedProps.value)}return kn(e,t,n)}switch(t.expirationTime=0,t.tag){case 4:return Tn(e,t,t.type,n);case 0:return xn(e,t,t.type,t.pendingProps,n);case 1:var o=t.type._reactResult;return i=t.pendingProps,e=xn(e,t,o,En(o,i),n),t.memoizedProps=i,e;case 2:return wn(e,t,t.type,t.pendingProps,n);case 3:return o=t.type._reactResult,i=t.pendingProps,e=wn(e,t,o,En(o,i),n),t.memoizedProps=i,e;case 5:return Sn(t),i=t.updateQueue,null===i&&r(\"282\"),o=t.memoizedState,o=null!==o?o.element:null,Vt(t,i,t.pendingProps,null,n),i=t.memoizedState.element,i===o?(gn(),t=kn(e,t,n)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(ia=pt(t.stateNode.containerInfo),na=t,o=ra=!0),o?(t.effectTag|=2,t.child=ta(t,null,i,n)):(yn(e,t,i,n),gn()),t=t.child),t;case 7:tn(t),null===e&&fn(t),i=t.type,o=t.pendingProps;var a=null!==e?e.memoizedProps:null,s=o.children;return ht(i,o)?s=null:null!==a&&ht(i,a)&&(t.effectTag|=16),_n(e,t),1073741823!==n&&1&t.mode&&o.hidden?(t.expirationTime=1073741823,t.memoizedProps=o,t=null):(yn(e,t,s,n),t.memoizedProps=o,t=t.child),t;case 8:return null===e&&fn(t),t.memoizedProps=t.pendingProps,null;case 16:return null;case 6:return $t(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=ea(t,null,i,n):yn(e,t,i,n),t.memoizedProps=i,t.child;case 13:return bn(e,t,t.type,t.pendingProps,n);case 14:return o=t.type._reactResult,i=t.pendingProps,e=bn(e,t,o,En(o,i),n),t.memoizedProps=i,e;case 9:return i=t.pendingProps,yn(e,t,i,n),t.memoizedProps=i,t.child;case 10:return i=t.pendingProps.children,yn(e,t,i,n),t.memoizedProps=i,t.child;case 15:return i=t.pendingProps,yn(e,t,i.children,n),t.memoizedProps=i,t.child;case 12:e:{if(i=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,t.memoizedProps=o,Xt(t,a),null!==s){var l=s.value;if(0===(a=l===a&&(0!==l||1/l==1/a)||l!==l&&a!==a?0:0|(\"function\"==typeof i._calculateChangedBits?i._calculateChangedBits(l,a):1073741823))){if(s.children===o.children&&!zo.current){t=kn(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){if(null!==(l=s.firstContextDependency))do{if(l.context===i&&0!=(l.observedBits&a)){if(2===s.tag||3===s.tag){var u=zt(n);u.tag=2,jt(s,u)}(0===s.expirationTime||s.expirationTime>n)&&(s.expirationTime=n),u=s.alternate,null!==u&&(0===u.expirationTime||u.expirationTime>n)&&(u.expirationTime=n);for(var c=s.return;null!==c;){if(u=c.alternate,0===c.childExpirationTime||c.childExpirationTime>n)c.childExpirationTime=n,null!==u&&(0===u.childExpirationTime||u.childExpirationTime>n)&&(u.childExpirationTime=n);else{if(null===u||!(0===u.childExpirationTime||u.childExpirationTime>n))break;u.childExpirationTime=n}c=c.return}}u=s.child,l=l.next}while(null!==l);else u=12===s.tag&&s.type===t.type?null:s.child;if(null!==u)u.return=s;else for(u=s;null!==u;){if(u===t){u=null;break}if(null!==(s=u.sibling)){s.return=u.return,u=s;break}u=u.return}s=u}}yn(e,t,o.children,n),t=t.child}return t;case 11:return a=t.type,i=t.pendingProps,o=i.children,Zt(t,n),a=Jt(a,i.unstable_observedBits),o=o(a),t.effectTag|=1,yn(e,t,o,n),t.memoizedProps=i,t.child;default:r(\"156\")}}function Cn(e){e.effectTag|=4}function Pn(e,t){var n=t.source,i=t.stack;null===i&&null!==n&&(i=ie(n)),null!==n&&ne(n.type),t=t.value,null!==e&&2===e.tag&&ne(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function An(e){var t=e.ref;if(null!==t)if(\"function\"==typeof t)try{t(null)}catch(t){Vn(e,t)}else t.current=null}function Rn(e){switch(\"function\"==typeof Uo&&Uo(e),e.tag){case 2:case 3:An(e);var t=e.stateNode;if(\"function\"==typeof t.componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Vn(e,t)}break;case 7:An(e);break;case 6:Dn(e)}}function Ln(e){return 7===e.tag||5===e.tag||6===e.tag}function In(e){e:{for(var t=e.return;null!==t;){if(Ln(t)){var n=t;break e}t=t.return}r(\"160\"),n=void 0}var i=t=void 0;switch(n.tag){case 7:t=n.stateNode,i=!1;break;case 5:case 6:t=n.stateNode.containerInfo,i=!0;break;default:r(\"161\")}16&n.effectTag&&(ot(t,\"\"),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Ln(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;7!==n.tag&&8!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||6===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var o=e;;){if(7===o.tag||8===o.tag)if(n)if(i){var a=t,s=o.stateNode,l=n;8===a.nodeType?a.parentNode.insertBefore(s,l):a.insertBefore(s,l)}else t.insertBefore(o.stateNode,n);else i?(a=t,s=o.stateNode,8===a.nodeType?(l=a.parentNode,l.insertBefore(s,a)):(l=a,l.appendChild(s)),null===l.onclick&&(l.onclick=ct)):t.appendChild(o.stateNode);else if(6!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function Dn(e){for(var t=e,n=!1,i=void 0,o=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&r(\"160\"),n.tag){case 7:i=n.stateNode,o=!1;break e;case 5:case 6:i=n.stateNode.containerInfo,o=!0;break e}n=n.return}n=!0}if(7===t.tag||8===t.tag){e:for(var a=t,s=a;;)if(Rn(s),null!==s.child&&6!==s.tag)s.child.return=s,s=s.child;else{if(s===a)break;for(;null===s.sibling;){if(null===s.return||s.return===a)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}o?(a=i,s=t.stateNode,8===a.nodeType?a.parentNode.removeChild(s):a.removeChild(s)):i.removeChild(t.stateNode)}else if(6===t.tag?(i=t.stateNode.containerInfo,o=!0):Rn(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return,6===t.tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Nn(e,t){switch(t.tag){case 2:case 3:break;case 7:var n=t.stateNode;if(null!=n){var i=t.memoizedProps,o=null!==e?e.memoizedProps:i;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[ji]=i,\"input\"===e&&\"radio\"===i.type&&null!=i.name&&fe(n,i),lt(e,o),t=lt(e,i),o=0;o<\\/script>\",c=o.removeChild(o.firstChild)):\"string\"==typeof h.is?c=c.createElement(o,{is:h.is}):(c=c.createElement(o),\"select\"===o&&h.multiple&&(c.multiple=!0)):c=c.createElementNS(u,o),o=c,o[Fi]=d,o[ji]=a;e:for(d=o,h=t,c=h.child;null!==c;){if(7===c.tag||8===c.tag)d.appendChild(c.stateNode);else if(6!==c.tag&&null!==c.child){c.child.return=c,c=c.child;continue}if(c===h)break;for(;null===c.sibling;){if(null===c.return||c.return===h)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}h=o,c=l,d=a;var f=s,p=lt(c,d);switch(c){case\"iframe\":case\"object\":ze(\"load\",h),s=d;break;case\"video\":case\"audio\":for(s=0;si||0!==a&&a>i||0!==s&&s>i)return e.didError=!1,n=e.latestPingedTime,0!==n&&n<=i&&(e.latestPingedTime=0),n=e.earliestPendingTime,t=e.latestPendingTime,n===i?e.earliestPendingTime=t===i?e.latestPendingTime=0:t:t===i&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,t=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=i:n>i?e.earliestSuspendedTime=i:tOa)&&(Oa=e),e}function qn(e,t){e:{(0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t);var n=e.alternate;null!==n&&(0===n.expirationTime||n.expirationTime>t)&&(n.expirationTime=t);var i=e.return;if(null===i&&5===e.tag)e=e.stateNode;else{for(;null!==i;){if(n=i.alternate,(0===i.childExpirationTime||i.childExpirationTime>t)&&(i.childExpirationTime=t),null!==n&&(0===n.childExpirationTime||n.childExpirationTime>t)&&(n.childExpirationTime=t),null===i.return&&5===i.tag){e=i.stateNode;break e}i=i.return}e=null}}null!==e&&(!fa&&0!==ga&&tja&&(Ua=0,r(\"185\")))}function Yn(e,t,n,i,r){var o=ha;ha=1;try{return e(t,n,i,r)}finally{ha=o}}function Xn(){za=2+((xi.unstable_now()-Ba)/10|0)}function Kn(e,t){if(0!==Ma){if(t>Ma)return;null!==Sa&&xi.unstable_cancelScheduledWork(Sa)}Ma=t,e=xi.unstable_now()-Ba,Sa=xi.unstable_scheduleWork(Qn,{timeout:10*(t-2)-e})}function Zn(){return Ea?Fa:(Jn(),0!==ka&&1073741823!==ka||(Xn(),Fa=za),Fa)}function Jn(){var e=0,t=null;if(null!==wa)for(var n=wa,i=xa;null!==i;){var o=i.expirationTime;if(0===o){if((null===n||null===wa)&&r(\"244\"),i===i.nextScheduledRoot){xa=wa=i.nextScheduledRoot=null;break}if(i===xa)xa=o=i.nextScheduledRoot,wa.nextScheduledRoot=o,i.nextScheduledRoot=null;else{if(i===wa){wa=n,wa.nextScheduledRoot=xa,i.nextScheduledRoot=null;break}n.nextScheduledRoot=i.nextScheduledRoot,i.nextScheduledRoot=null}i=n.nextScheduledRoot}else{if((0===e||o=n&&(t.nextExpirationTimeToWorkOn=za),t=t.nextScheduledRoot}while(t!==xa)}$n(0,e)}function $n(e,t){if(Ra=t,Jn(),null!==Ra)for(Xn(),Fa=za;null!==Ta&&0!==ka&&(0===e||e>=ka)&&(!Ca||za>=ka);)ei(Ta,ka,za>=ka),Jn(),Xn(),Fa=za;else for(;null!==Ta&&0!==ka&&(0===e||e>=ka);)ei(Ta,ka,!0),Jn();if(null!==Ra&&(Ma=0,Sa=null),0!==ka&&Kn(Ta,ka),Ra=null,Ca=!1,Ua=0,Wa=null,null!==Na)for(e=Na,Na=null,t=0;te.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,It(e,i)):ib&&(_=b,b=E,E=_),_=He(M,E),x=He(M,b),_&&x&&(1!==S.rangeCount||S.anchorNode!==_.node||S.anchorOffset!==_.offset||S.focusNode!==x.node||S.focusOffset!==x.offset)&&(y=y.createRange(),y.setStart(_.node,_.offset),S.removeAllRanges(),E>b?(S.addRange(y),S.extend(x.node,x.offset)):(y.setEnd(x.node,x.offset),S.addRange(y))))),S=[];for(E=M;E=E.parentNode;)1===E.nodeType&&S.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(\"function\"==typeof M.focus&&M.focus(),M=0;MGa)&&(Ca=!0)}function ii(e){null===Ta&&r(\"246\"),Ta.expirationTime=0,Pa||(Pa=!0,Aa=e)}function ri(e,t){var n=La;La=!0;try{return e(t)}finally{(La=n)||Ea||$n(1,null)}}function oi(e,t){if(La&&!Ia){Ia=!0;try{return e(t)}finally{Ia=!1}}return e(t)}function ai(e,t,n){if(Da)return e(t,n);La||Ea||0===Oa||($n(Oa,null),Oa=0);var i=Da,r=La;La=Da=!0;try{return e(t,n)}finally{Da=i,(La=r)||Ea||$n(1,null)}}function si(e){if(!e)return No;e=e._reactInternalFiber;e:{(2!==Ae(e)||2!==e.tag&&3!==e.tag)&&r(\"170\");var t=e;do{switch(t.tag){case 5:t=t.stateNode.context;break e;case 2:if(yt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}break;case 3:if(yt(t.type._reactResult)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);r(\"171\"),t=void 0}if(2===e.tag){var n=e.type;if(yt(n))return wt(e,n,t)}else if(3===e.tag&&(n=e.type._reactResult,yt(n)))return wt(e,n,t);return t}function li(e,t,n,i,r){var o=t.current;return n=si(n),null===t.context?t.context=n:t.pendingContext=n,t=r,r=zt(i),r.payload={element:e},t=void 0===t?null:t,null!==t&&(r.callback=t),jt(o,r),qn(o,i),i}function ui(e,t,n,i){var r=t.current;return r=Hn(Zn(),r),li(e,t,n,r,i)}function ci(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 7:default:return e.child.stateNode}}function di(e,t,n){var i=3=ir),ar=String.fromCharCode(32),sr={beforeInput:{phasedRegistrationNames:{bubbled:\"onBeforeInput\",captured:\"onBeforeInputCapture\"},dependencies:[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]},compositionEnd:{phasedRegistrationNames:{bubbled:\"onCompositionEnd\",captured:\"onCompositionEndCapture\"},dependencies:\"blur compositionend keydown keypress keyup mousedown\".split(\" \")},compositionStart:{phasedRegistrationNames:{bubbled:\"onCompositionStart\",captured:\"onCompositionStartCapture\"},dependencies:\"blur compositionstart keydown keypress keyup mousedown\".split(\" \")},compositionUpdate:{phasedRegistrationNames:{bubbled:\"onCompositionUpdate\",captured:\"onCompositionUpdateCapture\"},dependencies:\"blur compositionupdate keydown keypress keyup mousedown\".split(\" \")}},lr=!1,ur=!1,cr={eventTypes:sr,extractEvents:function(e,t,n,i){var r=void 0,o=void 0;if(nr)e:{switch(e){case\"compositionstart\":r=sr.compositionStart;break e;case\"compositionend\":r=sr.compositionEnd;break e;case\"compositionupdate\":r=sr.compositionUpdate;break e}r=void 0}else ur?B(e,n)&&(r=sr.compositionEnd):\"keydown\"===e&&229===n.keyCode&&(r=sr.compositionStart);return r?(or&&\"ko\"!==n.locale&&(ur||r!==sr.compositionStart?r===sr.compositionEnd&&ur&&(o=P()):(Zi=i,Ji=\"value\"in Zi?Zi.value:Zi.textContent,ur=!0)),r=$i.getPooled(r,t,n,i),o?r.data=o:null!==(o=z(n))&&(r.data=o),k(r),o=r):o=null,(e=rr?F(e,n):j(e,n))?(t=er.getPooled(sr.beforeInput,t,n,i),t.data=e,k(t)):t=null,null===o?t:null===t?o:[o,t]}},dr=null,hr=null,fr=null,pr=!1,mr={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},gr=bi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vr=/^(.*)[\\\\\\/]/,yr=\"function\"==typeof Symbol&&Symbol.for,br=yr?Symbol.for(\"react.element\"):60103,_r=yr?Symbol.for(\"react.portal\"):60106,xr=yr?Symbol.for(\"react.fragment\"):60107,wr=yr?Symbol.for(\"react.strict_mode\"):60108,Mr=yr?Symbol.for(\"react.profiler\"):60114,Sr=yr?Symbol.for(\"react.provider\"):60109,Er=yr?Symbol.for(\"react.context\"):60110,Tr=yr?Symbol.for(\"react.async_mode\"):60111,kr=yr?Symbol.for(\"react.forward_ref\"):60112,Or=yr?Symbol.for(\"react.placeholder\"):60113,Cr=\"function\"==typeof Symbol&&Symbol.iterator,Pr=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,Ar=Object.prototype.hasOwnProperty,Rr={},Lr={},Ir={};\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(e){Ir[e]=new se(e,0,!1,e,null)}),[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(e){var t=e[0];Ir[t]=new se(t,1,!1,e[1],null)}),[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(e){Ir[e]=new se(e,2,!1,e.toLowerCase(),null)}),[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(e){Ir[e]=new se(e,2,!1,e,null)}),\"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(e){Ir[e]=new se(e,3,!1,e.toLowerCase(),null)}),[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(e){Ir[e]=new se(e,3,!0,e,null)}),[\"capture\",\"download\"].forEach(function(e){Ir[e]=new se(e,4,!1,e,null)}),[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(e){Ir[e]=new se(e,6,!1,e,null)}),[\"rowSpan\",\"start\"].forEach(function(e){Ir[e]=new se(e,5,!1,e.toLowerCase(),null)});var Dr=/[\\-:]([a-z])/g;\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(e){var t=e.replace(Dr,le);Ir[t]=new se(t,1,!1,e,null)}),\"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(e){var t=e.replace(Dr,le);Ir[t]=new se(t,1,!1,e,\"http://www.w3.org/1999/xlink\")}),[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(e){var t=e.replace(Dr,le);Ir[t]=new se(t,1,!1,e,\"http://www.w3.org/XML/1998/namespace\")}),Ir.tabIndex=new se(\"tabIndex\",1,!1,\"tabindex\",null);var Nr={change:{phasedRegistrationNames:{bubbled:\"onChange\",captured:\"onChangeCapture\"},dependencies:\"blur change click focus input keydown keyup selectionchange\".split(\" \")}},Br=null,zr=null,Fr=!1;Ui&&(Fr=Z(\"input\")&&(!document.documentMode||9=document.documentMode,_o={select:{phasedRegistrationNames:{bubbled:\"onSelect\",captured:\"onSelectCapture\"},dependencies:\"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange\".split(\" \")}},xo=null,wo=null,Mo=null,So=!1,Eo={eventTypes:_o,extractEvents:function(e,t,n,i){var r,o=i.window===i?i.document:9===i.nodeType?i:i.ownerDocument;if(!(r=!o)){e:{o=We(o),r=Ri.onSelect;for(var a=0;a\"+t+\"\",t=ko.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),Co={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Po=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(Co).forEach(function(e){Po.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Co[t]=Co[e]})});var Ao=_i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),Ro=null,Lo=null;new Set;var Io=[],Do=-1,No={},Bo={current:No},zo={current:!1},Fo=No,jo=null,Uo=null,Wo=!1,Go={current:null},Vo=null,Ho=null,qo=null,Yo={},Xo={current:Yo},Ko={current:Yo},Zo={current:Yo},Jo=(new bi.Component).refs,Qo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===Ae(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var i=Zn();i=Hn(i,e);var r=zt(i);r.payload=t,void 0!==n&&null!==n&&(r.callback=n),jt(e,r),qn(e,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var i=Zn();i=Hn(i,e);var r=zt(i);r.tag=1,r.payload=t,void 0!==n&&null!==n&&(r.callback=n),jt(e,r),qn(e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Zn();n=Hn(n,e);var i=zt(n);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),jt(e,i),qn(e,n)}},$o=Array.isArray,ea=cn(!0),ta=cn(!1),na=null,ia=null,ra=!1,oa=gr.ReactCurrentOwner,aa=void 0,sa=void 0,la=void 0;aa=function(){},sa=function(e,t,n,i,r){var o=e.memoizedProps;if(o!==i){var a=t.stateNode;switch(Qt(Xo.current),e=null,n){case\"input\":o=de(a,o),i=de(a,i),e=[];break;case\"option\":o=Je(a,o),i=Je(a,i),e=[];break;case\"select\":o=_i({},o,{value:void 0}),i=_i({},i,{value:void 0}),e=[];break;case\"textarea\":o=$e(a,o),i=$e(a,i),e=[];break;default:\"function\"!=typeof o.onClick&&\"function\"==typeof i.onClick&&(a.onclick=ct)}st(n,i),a=n=void 0;var s=null;for(n in o)if(!i.hasOwnProperty(n)&&o.hasOwnProperty(n)&&null!=o[n])if(\"style\"===n){var l=o[n];for(a in l)l.hasOwnProperty(a)&&(s||(s={}),s[a]=\"\")}else\"dangerouslySetInnerHTML\"!==n&&\"children\"!==n&&\"suppressContentEditableWarning\"!==n&&\"suppressHydrationWarning\"!==n&&\"autoFocus\"!==n&&(Ai.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in i){var u=i[n];if(l=null!=o?o[n]:void 0,i.hasOwnProperty(n)&&u!==l&&(null!=u||null!=l))if(\"style\"===n)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(s||(s={}),s[a]=\"\");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(s||(s={}),s[a]=u[a])}else s||(e||(e=[]),e.push(n,s)),s=u;else\"dangerouslySetInnerHTML\"===n?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(n,\"\"+u)):\"children\"===n?l===u||\"string\"!=typeof u&&\"number\"!=typeof u||(e=e||[]).push(n,\"\"+u):\"suppressContentEditableWarning\"!==n&&\"suppressHydrationWarning\"!==n&&(Ai.hasOwnProperty(n)?(null!=u&&ut(r,n),e||l===u||(e=[])):(e=e||[]).push(n,u))}s&&(e=e||[]).push(\"style\",s),r=e,(t.updateQueue=r)&&Cn(t)}},la=function(e,t,n,i){n!==i&&Cn(t)};var ua={readContext:Jt},ca=gr.ReactCurrentOwner,da=0,ha=0,fa=!1,pa=null,ma=null,ga=0,va=!1,ya=null,ba=!1,_a=null,xa=null,wa=null,Ma=0,Sa=void 0,Ea=!1,Ta=null,ka=0,Oa=0,Ca=!1,Pa=!1,Aa=null,Ra=null,La=!1,Ia=!1,Da=!1,Na=null,Ba=xi.unstable_now(),za=2+(Ba/10|0),Fa=za,ja=50,Ua=0,Wa=null,Ga=1;dr=function(e,t,n){switch(t){case\"input\":if(pe(e,n),t=n.name,\"radio\"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(\"input[name=\"+JSON.stringify(\"\"+t)+'][type=\"radio\"]'),t=0;ta?a:r+s,l&&l(u,e);break;case 37:case 40:u=r-s0){S=S.sort(function(e,t){return s?e-t:t-e});var E=!0,T=!1,k=void 0;try{for(var O,C=S[Symbol.iterator]();!(E=(O=C.next()).done);E=!0){var P=O.value,A=this.getPositionFromValue(P),R=this.coordinates(A),L=r({},g,R.label+\"px\");M.push(h.default.createElement(\"li\",{key:P,className:(0,c.default)(\"rangeslider__label-item\"),\"data-value\":P,onMouseDown:this.handleDrag,onTouchStart:this.handleStart,onTouchEnd:this.handleEnd,style:L},this.props.labels[P]))}}catch(e){T=!0,k=e}finally{try{!E&&C.return&&C.return()}finally{if(T)throw k}}}return h.default.createElement(\"div\",{ref:function(t){e.slider=t},className:(0,c.default)(\"rangeslider\",\"rangeslider-\"+i,{\"rangeslider-reverse\":s},o),onMouseDown:this.handleDrag,onMouseUp:this.handleEnd,onTouchStart:this.handleStart,onTouchEnd:this.handleEnd,\"aria-valuemin\":u,\"aria-valuemax\":d,\"aria-valuenow\":n,\"aria-orientation\":i},h.default.createElement(\"div\",{className:\"rangeslider__fill\",style:_}),h.default.createElement(\"div\",{ref:function(t){e.handle=t},className:\"rangeslider__handle\",onMouseDown:this.handleStart,onTouchMove:this.handleDrag,onTouchEnd:this.handleEnd,onKeyDown:this.handleKeyDown,style:x,tabIndex:0},w?h.default.createElement(\"div\",{ref:function(t){e.tooltip=t},className:\"rangeslider__handle-tooltip\"},h.default.createElement(\"span\",null,this.handleFormat(n))):null,h.default.createElement(\"div\",{className:\"rangeslider__handle-label\"},f)),l?this.renderLabels(M):null)}}]),t}(d.Component);b.propTypes={min:p.default.number,max:p.default.number,step:p.default.number,value:p.default.number,orientation:p.default.string,tooltip:p.default.bool,reverse:p.default.bool,labels:p.default.object,handleLabel:p.default.string,format:p.default.func,onChangeStart:p.default.func,onChange:p.default.func,onChangeComplete:p.default.func},b.defaultProps={min:0,max:100,step:1,value:0,orientation:\"horizontal\",tooltip:!0,reverse:!1,labels:{},handleLabel:\"\"},t.default=b},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=n(557),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r.default},function(e,t,n){\"use strict\";function i(e){return e.charAt(0).toUpperCase()+e.substr(1)}function r(e,t,n){return Math.min(Math.max(e,t),n)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.capitalize=i,t.clamp=r},function(e,t,n){\"use strict\";function i(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function r(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}this.setState(t.bind(this))}function o(e,t){try{var n=this.props,i=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,i)}finally{this.props=n,this.state=i}}function a(e,t){if(e.selection)e.selection.empty();else try{t.getSelection().removeAllRanges()}catch(e){}}function s(e,t,n,i){if(\"number\"==typeof i){var r=\"number\"==typeof t?t:0,o=\"number\"==typeof n&&n>=0?n:1/0;return Math.max(r,Math.min(o,i))}return void 0!==e?e:t}function l(e){return c.a.Children.toArray(e).filter(function(e){return e})}Object.defineProperty(t,\"__esModule\",{value:!0});var u=n(2),c=n.n(u),d=n(27),h=n.n(d),f=n(459),p=n.n(f),m=n(562),g=n.n(m);i.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0;var v=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")},y=function(){function e(e,t){for(var n=0;nparseInt(window.getComputedStyle(g).order)&&(M=-M);var S=i;if(void 0!==i&&i<=0){var E=this.splitPane;S=\"vertical\"===s?E.getBoundingClientRect().width+i:E.getBoundingClientRect().height+i}var T=x-M,k=d-w;TS?T=S:this.setState({position:k,resized:!0}),o&&o(T),this.setState(b({draggedSize:T},h?\"pane1Size\":\"pane2Size\",T))}}}}},{key:\"onMouseUp\",value:function(){var e=this.props,t=e.allowResize,n=e.onDragFinished,i=this.state,r=i.active,o=i.draggedSize;t&&r&&(\"function\"==typeof n&&n(o),this.setState({active:!1}))}},{key:\"render\",value:function(){var e=this,t=this.props,n=t.allowResize,i=t.children,r=t.className,o=t.onResizerClick,a=t.onResizerDoubleClick,s=t.paneClassName,u=t.pane1ClassName,d=t.pane2ClassName,h=t.paneStyle,f=t.pane1Style,p=t.pane2Style,m=t.prefixer,g=t.resizerClassName,v=t.resizerStyle,y=t.split,b=t.style,_=this.state,x=_.pane1Size,w=_.pane2Size,S=n?\"\":\"disabled\",T=g?g+\" Resizer\":g,k=l(i),O=Object.assign({},{display:\"flex\",flex:1,height:\"100%\",position:\"absolute\",outline:\"none\",overflow:\"hidden\",MozUserSelect:\"text\",WebkitUserSelect:\"text\",msUserSelect:\"text\",userSelect:\"text\"},b||{});\"vertical\"===y?Object.assign(O,{flexDirection:\"row\",left:0,right:0}):Object.assign(O,{bottom:0,flexDirection:\"column\",minHeight:\"100%\",top:0,width:\"100%\"});var C=[\"SplitPane\",r,y,S],P=m.prefix(Object.assign({},h||{},f||{})),A=m.prefix(Object.assign({},h||{},p||{})),R=[\"Pane1\",s,u].join(\" \"),L=[\"Pane2\",s,d].join(\" \");return c.a.createElement(\"div\",{className:C.join(\" \"),ref:function(t){e.splitPane=t},style:m.prefix(O)},c.a.createElement(M,{className:R,key:\"pane1\",eleRef:function(t){e.pane1=t},size:x,split:y,style:P},k[0]),c.a.createElement(E,{className:S,onClick:o,onDoubleClick:a,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:\"resizer\",resizerClassName:T,split:y,style:v||{}}),c.a.createElement(M,{className:L,key:\"pane2\",eleRef:function(t){e.pane2=t},size:w,split:y,style:A},k[1]))}}],[{key:\"getDerivedStateFromProps\",value:function(e,n){return t.getSizeUpdate(e,n)}},{key:\"getSizeUpdate\",value:function(e,t){var n={};if(t.instanceProps.size===e.size&&void 0!==e.size)return{};var i=void 0!==e.size?e.size:s(e.defaultSize,e.minSize,e.maxSize,t.draggedSize);void 0!==e.size&&(n.draggedSize=i);var r=\"first\"===e.primary;return n[r?\"pane1Size\":\"pane2Size\"]=i,n[r?\"pane2Size\":\"pane1Size\"]=void 0,n.instanceProps={size:e.size},n}}]),t}(c.a.Component);k.propTypes={allowResize:h.a.bool,children:h.a.arrayOf(h.a.node).isRequired,className:h.a.string,primary:h.a.oneOf([\"first\",\"second\"]),minSize:h.a.oneOfType([h.a.string,h.a.number]),maxSize:h.a.oneOfType([h.a.string,h.a.number]),defaultSize:h.a.oneOfType([h.a.string,h.a.number]),size:h.a.oneOfType([h.a.string,h.a.number]),split:h.a.oneOf([\"vertical\",\"horizontal\"]),onDragStarted:h.a.func,onDragFinished:h.a.func,onChange:h.a.func,onResizerClick:h.a.func,onResizerDoubleClick:h.a.func,prefixer:h.a.instanceOf(p.a).isRequired,style:g.a,resizerStyle:g.a,paneClassName:h.a.string,pane1ClassName:h.a.string,pane2ClassName:h.a.string,paneStyle:g.a,pane1Style:g.a,pane2Style:g.a,resizerClassName:h.a.string,step:h.a.number},k.defaultProps={allowResize:!0,minSize:50,prefixer:new p.a({userAgent:T}),primary:\"first\",split:\"vertical\",paneClassName:\"\",pane1ClassName:\"\",pane2ClassName:\"\"},function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error(\"Can only polyfill class components\");if(\"function\"!=typeof e.getDerivedStateFromProps&&\"function\"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if(\"function\"==typeof t.componentWillMount?n=\"componentWillMount\":\"function\"==typeof t.UNSAFE_componentWillMount&&(n=\"UNSAFE_componentWillMount\"),\"function\"==typeof t.componentWillReceiveProps?a=\"componentWillReceiveProps\":\"function\"==typeof t.UNSAFE_componentWillReceiveProps&&(a=\"UNSAFE_componentWillReceiveProps\"),\"function\"==typeof t.componentWillUpdate?s=\"componentWillUpdate\":\"function\"==typeof t.UNSAFE_componentWillUpdate&&(s=\"UNSAFE_componentWillUpdate\"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,u=\"function\"==typeof e.getDerivedStateFromProps?\"getDerivedStateFromProps()\":\"getSnapshotBeforeUpdate()\";throw Error(\"Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n\"+l+\" uses \"+u+\" but also contains the following legacy lifecycles:\"+(null!==n?\"\\n \"+n:\"\")+(null!==a?\"\\n \"+a:\"\")+(null!==s?\"\\n \"+s:\"\")+\"\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\nhttps://fb.me/react-async-component-lifecycle-hooks\")}if(\"function\"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=i,t.componentWillReceiveProps=r),\"function\"==typeof t.getSnapshotBeforeUpdate){if(\"function\"!=typeof t.componentDidUpdate)throw new Error(\"Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype\");t.componentWillUpdate=o;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var i=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,i)}}}(k),t.default=k},function(e,t){e.exports=[\"alignContent\",\"MozAlignContent\",\"WebkitAlignContent\",\"MSAlignContent\",\"OAlignContent\",\"alignItems\",\"MozAlignItems\",\"WebkitAlignItems\",\"MSAlignItems\",\"OAlignItems\",\"alignSelf\",\"MozAlignSelf\",\"WebkitAlignSelf\",\"MSAlignSelf\",\"OAlignSelf\",\"all\",\"MozAll\",\"WebkitAll\",\"MSAll\",\"OAll\",\"animation\",\"MozAnimation\",\"WebkitAnimation\",\"MSAnimation\",\"OAnimation\",\"animationDelay\",\"MozAnimationDelay\",\"WebkitAnimationDelay\",\"MSAnimationDelay\",\"OAnimationDelay\",\"animationDirection\",\"MozAnimationDirection\",\"WebkitAnimationDirection\",\"MSAnimationDirection\",\"OAnimationDirection\",\"animationDuration\",\"MozAnimationDuration\",\"WebkitAnimationDuration\",\"MSAnimationDuration\",\"OAnimationDuration\",\"animationFillMode\",\"MozAnimationFillMode\",\"WebkitAnimationFillMode\",\"MSAnimationFillMode\",\"OAnimationFillMode\",\"animationIterationCount\",\"MozAnimationIterationCount\",\"WebkitAnimationIterationCount\",\"MSAnimationIterationCount\",\"OAnimationIterationCount\",\"animationName\",\"MozAnimationName\",\"WebkitAnimationName\",\"MSAnimationName\",\"OAnimationName\",\"animationPlayState\",\"MozAnimationPlayState\",\"WebkitAnimationPlayState\",\"MSAnimationPlayState\",\"OAnimationPlayState\",\"animationTimingFunction\",\"MozAnimationTimingFunction\",\"WebkitAnimationTimingFunction\",\"MSAnimationTimingFunction\",\"OAnimationTimingFunction\",\"backfaceVisibility\",\"MozBackfaceVisibility\",\"WebkitBackfaceVisibility\",\"MSBackfaceVisibility\",\"OBackfaceVisibility\",\"background\",\"MozBackground\",\"WebkitBackground\",\"MSBackground\",\"OBackground\",\"backgroundAttachment\",\"MozBackgroundAttachment\",\"WebkitBackgroundAttachment\",\"MSBackgroundAttachment\",\"OBackgroundAttachment\",\"backgroundBlendMode\",\"MozBackgroundBlendMode\",\"WebkitBackgroundBlendMode\",\"MSBackgroundBlendMode\",\"OBackgroundBlendMode\",\"backgroundClip\",\"MozBackgroundClip\",\"WebkitBackgroundClip\",\"MSBackgroundClip\",\"OBackgroundClip\",\"backgroundColor\",\"MozBackgroundColor\",\"WebkitBackgroundColor\",\"MSBackgroundColor\",\"OBackgroundColor\",\"backgroundImage\",\"MozBackgroundImage\",\"WebkitBackgroundImage\",\"MSBackgroundImage\",\"OBackgroundImage\",\"backgroundOrigin\",\"MozBackgroundOrigin\",\"WebkitBackgroundOrigin\",\"MSBackgroundOrigin\",\"OBackgroundOrigin\",\"backgroundPosition\",\"MozBackgroundPosition\",\"WebkitBackgroundPosition\",\"MSBackgroundPosition\",\"OBackgroundPosition\",\"backgroundRepeat\",\"MozBackgroundRepeat\",\"WebkitBackgroundRepeat\",\"MSBackgroundRepeat\",\"OBackgroundRepeat\",\"backgroundSize\",\"MozBackgroundSize\",\"WebkitBackgroundSize\",\"MSBackgroundSize\",\"OBackgroundSize\",\"blockSize\",\"MozBlockSize\",\"WebkitBlockSize\",\"MSBlockSize\",\"OBlockSize\",\"border\",\"MozBorder\",\"WebkitBorder\",\"MSBorder\",\"OBorder\",\"borderBlockEnd\",\"MozBorderBlockEnd\",\"WebkitBorderBlockEnd\",\"MSBorderBlockEnd\",\"OBorderBlockEnd\",\"borderBlockEndColor\",\"MozBorderBlockEndColor\",\"WebkitBorderBlockEndColor\",\"MSBorderBlockEndColor\",\"OBorderBlockEndColor\",\"borderBlockEndStyle\",\"MozBorderBlockEndStyle\",\"WebkitBorderBlockEndStyle\",\"MSBorderBlockEndStyle\",\"OBorderBlockEndStyle\",\"borderBlockEndWidth\",\"MozBorderBlockEndWidth\",\"WebkitBorderBlockEndWidth\",\"MSBorderBlockEndWidth\",\"OBorderBlockEndWidth\",\"borderBlockStart\",\"MozBorderBlockStart\",\"WebkitBorderBlockStart\",\"MSBorderBlockStart\",\"OBorderBlockStart\",\"borderBlockStartColor\",\"MozBorderBlockStartColor\",\"WebkitBorderBlockStartColor\",\"MSBorderBlockStartColor\",\"OBorderBlockStartColor\",\"borderBlockStartStyle\",\"MozBorderBlockStartStyle\",\"WebkitBorderBlockStartStyle\",\"MSBorderBlockStartStyle\",\"OBorderBlockStartStyle\",\"borderBlockStartWidth\",\"MozBorderBlockStartWidth\",\"WebkitBorderBlockStartWidth\",\"MSBorderBlockStartWidth\",\"OBorderBlockStartWidth\",\"borderBottom\",\"MozBorderBottom\",\"WebkitBorderBottom\",\"MSBorderBottom\",\"OBorderBottom\",\"borderBottomColor\",\"MozBorderBottomColor\",\"WebkitBorderBottomColor\",\"MSBorderBottomColor\",\"OBorderBottomColor\",\"borderBottomLeftRadius\",\"MozBorderBottomLeftRadius\",\"WebkitBorderBottomLeftRadius\",\"MSBorderBottomLeftRadius\",\"OBorderBottomLeftRadius\",\"borderBottomRightRadius\",\"MozBorderBottomRightRadius\",\"WebkitBorderBottomRightRadius\",\"MSBorderBottomRightRadius\",\"OBorderBottomRightRadius\",\"borderBottomStyle\",\"MozBorderBottomStyle\",\"WebkitBorderBottomStyle\",\"MSBorderBottomStyle\",\"OBorderBottomStyle\",\"borderBottomWidth\",\"MozBorderBottomWidth\",\"WebkitBorderBottomWidth\",\"MSBorderBottomWidth\",\"OBorderBottomWidth\",\"borderCollapse\",\"MozBorderCollapse\",\"WebkitBorderCollapse\",\"MSBorderCollapse\",\"OBorderCollapse\",\"borderColor\",\"MozBorderColor\",\"WebkitBorderColor\",\"MSBorderColor\",\"OBorderColor\",\"borderImage\",\"MozBorderImage\",\"WebkitBorderImage\",\"MSBorderImage\",\"OBorderImage\",\"borderImageOutset\",\"MozBorderImageOutset\",\"WebkitBorderImageOutset\",\"MSBorderImageOutset\",\"OBorderImageOutset\",\"borderImageRepeat\",\"MozBorderImageRepeat\",\"WebkitBorderImageRepeat\",\"MSBorderImageRepeat\",\"OBorderImageRepeat\",\"borderImageSlice\",\"MozBorderImageSlice\",\"WebkitBorderImageSlice\",\"MSBorderImageSlice\",\"OBorderImageSlice\",\"borderImageSource\",\"MozBorderImageSource\",\"WebkitBorderImageSource\",\"MSBorderImageSource\",\"OBorderImageSource\",\"borderImageWidth\",\"MozBorderImageWidth\",\"WebkitBorderImageWidth\",\"MSBorderImageWidth\",\"OBorderImageWidth\",\"borderInlineEnd\",\"MozBorderInlineEnd\",\"WebkitBorderInlineEnd\",\"MSBorderInlineEnd\",\"OBorderInlineEnd\",\"borderInlineEndColor\",\"MozBorderInlineEndColor\",\"WebkitBorderInlineEndColor\",\"MSBorderInlineEndColor\",\"OBorderInlineEndColor\",\"borderInlineEndStyle\",\"MozBorderInlineEndStyle\",\"WebkitBorderInlineEndStyle\",\"MSBorderInlineEndStyle\",\"OBorderInlineEndStyle\",\"borderInlineEndWidth\",\"MozBorderInlineEndWidth\",\"WebkitBorderInlineEndWidth\",\"MSBorderInlineEndWidth\",\"OBorderInlineEndWidth\",\"borderInlineStart\",\"MozBorderInlineStart\",\"WebkitBorderInlineStart\",\"MSBorderInlineStart\",\"OBorderInlineStart\",\"borderInlineStartColor\",\"MozBorderInlineStartColor\",\"WebkitBorderInlineStartColor\",\"MSBorderInlineStartColor\",\"OBorderInlineStartColor\",\"borderInlineStartStyle\",\"MozBorderInlineStartStyle\",\"WebkitBorderInlineStartStyle\",\"MSBorderInlineStartStyle\",\"OBorderInlineStartStyle\",\"borderInlineStartWidth\",\"MozBorderInlineStartWidth\",\"WebkitBorderInlineStartWidth\",\"MSBorderInlineStartWidth\",\"OBorderInlineStartWidth\",\"borderLeft\",\"MozBorderLeft\",\"WebkitBorderLeft\",\"MSBorderLeft\",\"OBorderLeft\",\"borderLeftColor\",\"MozBorderLeftColor\",\"WebkitBorderLeftColor\",\"MSBorderLeftColor\",\"OBorderLeftColor\",\"borderLeftStyle\",\"MozBorderLeftStyle\",\"WebkitBorderLeftStyle\",\"MSBorderLeftStyle\",\"OBorderLeftStyle\",\"borderLeftWidth\",\"MozBorderLeftWidth\",\"WebkitBorderLeftWidth\",\"MSBorderLeftWidth\",\"OBorderLeftWidth\",\"borderRadius\",\"MozBorderRadius\",\"WebkitBorderRadius\",\"MSBorderRadius\",\"OBorderRadius\",\"borderRight\",\"MozBorderRight\",\"WebkitBorderRight\",\"MSBorderRight\",\"OBorderRight\",\"borderRightColor\",\"MozBorderRightColor\",\"WebkitBorderRightColor\",\"MSBorderRightColor\",\"OBorderRightColor\",\"borderRightStyle\",\"MozBorderRightStyle\",\"WebkitBorderRightStyle\",\"MSBorderRightStyle\",\"OBorderRightStyle\",\"borderRightWidth\",\"MozBorderRightWidth\",\"WebkitBorderRightWidth\",\"MSBorderRightWidth\",\"OBorderRightWidth\",\"borderSpacing\",\"MozBorderSpacing\",\"WebkitBorderSpacing\",\"MSBorderSpacing\",\"OBorderSpacing\",\"borderStyle\",\"MozBorderStyle\",\"WebkitBorderStyle\",\"MSBorderStyle\",\"OBorderStyle\",\"borderTop\",\"MozBorderTop\",\"WebkitBorderTop\",\"MSBorderTop\",\"OBorderTop\",\"borderTopColor\",\"MozBorderTopColor\",\"WebkitBorderTopColor\",\"MSBorderTopColor\",\"OBorderTopColor\",\"borderTopLeftRadius\",\"MozBorderTopLeftRadius\",\"WebkitBorderTopLeftRadius\",\"MSBorderTopLeftRadius\",\"OBorderTopLeftRadius\",\"borderTopRightRadius\",\"MozBorderTopRightRadius\",\"WebkitBorderTopRightRadius\",\"MSBorderTopRightRadius\",\"OBorderTopRightRadius\",\"borderTopStyle\",\"MozBorderTopStyle\",\"WebkitBorderTopStyle\",\"MSBorderTopStyle\",\"OBorderTopStyle\",\"borderTopWidth\",\"MozBorderTopWidth\",\"WebkitBorderTopWidth\",\"MSBorderTopWidth\",\"OBorderTopWidth\",\"borderWidth\",\"MozBorderWidth\",\"WebkitBorderWidth\",\"MSBorderWidth\",\"OBorderWidth\",\"bottom\",\"MozBottom\",\"WebkitBottom\",\"MSBottom\",\"OBottom\",\"boxDecorationBreak\",\"MozBoxDecorationBreak\",\"WebkitBoxDecorationBreak\",\"MSBoxDecorationBreak\",\"OBoxDecorationBreak\",\"boxShadow\",\"MozBoxShadow\",\"WebkitBoxShadow\",\"MSBoxShadow\",\"OBoxShadow\",\"boxSizing\",\"MozBoxSizing\",\"WebkitBoxSizing\",\"MSBoxSizing\",\"OBoxSizing\",\"breakAfter\",\"MozBreakAfter\",\"WebkitBreakAfter\",\"MSBreakAfter\",\"OBreakAfter\",\"breakBefore\",\"MozBreakBefore\",\"WebkitBreakBefore\",\"MSBreakBefore\",\"OBreakBefore\",\"breakInside\",\"MozBreakInside\",\"WebkitBreakInside\",\"MSBreakInside\",\"OBreakInside\",\"captionSide\",\"MozCaptionSide\",\"WebkitCaptionSide\",\"MSCaptionSide\",\"OCaptionSide\",\"caretColor\",\"MozCaretColor\",\"WebkitCaretColor\",\"MSCaretColor\",\"OCaretColor\",\"ch\",\"MozCh\",\"WebkitCh\",\"MSCh\",\"OCh\",\"clear\",\"MozClear\",\"WebkitClear\",\"MSClear\",\"OClear\",\"clip\",\"MozClip\",\"WebkitClip\",\"MSClip\",\"OClip\",\"clipPath\",\"MozClipPath\",\"WebkitClipPath\",\"MSClipPath\",\"OClipPath\",\"cm\",\"MozCm\",\"WebkitCm\",\"MSCm\",\"OCm\",\"color\",\"MozColor\",\"WebkitColor\",\"MSColor\",\"OColor\",\"columnCount\",\"MozColumnCount\",\"WebkitColumnCount\",\"MSColumnCount\",\"OColumnCount\",\"columnFill\",\"MozColumnFill\",\"WebkitColumnFill\",\"MSColumnFill\",\"OColumnFill\",\"columnGap\",\"MozColumnGap\",\"WebkitColumnGap\",\"MSColumnGap\",\"OColumnGap\",\"columnRule\",\"MozColumnRule\",\"WebkitColumnRule\",\"MSColumnRule\",\"OColumnRule\",\"columnRuleColor\",\"MozColumnRuleColor\",\"WebkitColumnRuleColor\",\"MSColumnRuleColor\",\"OColumnRuleColor\",\"columnRuleStyle\",\"MozColumnRuleStyle\",\"WebkitColumnRuleStyle\",\"MSColumnRuleStyle\",\"OColumnRuleStyle\",\"columnRuleWidth\",\"MozColumnRuleWidth\",\"WebkitColumnRuleWidth\",\"MSColumnRuleWidth\",\"OColumnRuleWidth\",\"columnSpan\",\"MozColumnSpan\",\"WebkitColumnSpan\",\"MSColumnSpan\",\"OColumnSpan\",\"columnWidth\",\"MozColumnWidth\",\"WebkitColumnWidth\",\"MSColumnWidth\",\"OColumnWidth\",\"columns\",\"MozColumns\",\"WebkitColumns\",\"MSColumns\",\"OColumns\",\"content\",\"MozContent\",\"WebkitContent\",\"MSContent\",\"OContent\",\"counterIncrement\",\"MozCounterIncrement\",\"WebkitCounterIncrement\",\"MSCounterIncrement\",\"OCounterIncrement\",\"counterReset\",\"MozCounterReset\",\"WebkitCounterReset\",\"MSCounterReset\",\"OCounterReset\",\"cursor\",\"MozCursor\",\"WebkitCursor\",\"MSCursor\",\"OCursor\",\"deg\",\"MozDeg\",\"WebkitDeg\",\"MSDeg\",\"ODeg\",\"direction\",\"MozDirection\",\"WebkitDirection\",\"MSDirection\",\"ODirection\",\"display\",\"MozDisplay\",\"WebkitDisplay\",\"MSDisplay\",\"ODisplay\",\"dpcm\",\"MozDpcm\",\"WebkitDpcm\",\"MSDpcm\",\"ODpcm\",\"dpi\",\"MozDpi\",\"WebkitDpi\",\"MSDpi\",\"ODpi\",\"dppx\",\"MozDppx\",\"WebkitDppx\",\"MSDppx\",\"ODppx\",\"em\",\"MozEm\",\"WebkitEm\",\"MSEm\",\"OEm\",\"emptyCells\",\"MozEmptyCells\",\"WebkitEmptyCells\",\"MSEmptyCells\",\"OEmptyCells\",\"ex\",\"MozEx\",\"WebkitEx\",\"MSEx\",\"OEx\",\"filter\",\"MozFilter\",\"WebkitFilter\",\"MSFilter\",\"OFilter\",\"flexBasis\",\"MozFlexBasis\",\"WebkitFlexBasis\",\"MSFlexBasis\",\"OFlexBasis\",\"flexDirection\",\"MozFlexDirection\",\"WebkitFlexDirection\",\"MSFlexDirection\",\"OFlexDirection\",\"flexFlow\",\"MozFlexFlow\",\"WebkitFlexFlow\",\"MSFlexFlow\",\"OFlexFlow\",\"flexGrow\",\"MozFlexGrow\",\"WebkitFlexGrow\",\"MSFlexGrow\",\"OFlexGrow\",\"flexShrink\",\"MozFlexShrink\",\"WebkitFlexShrink\",\"MSFlexShrink\",\"OFlexShrink\",\"flexWrap\",\"MozFlexWrap\",\"WebkitFlexWrap\",\"MSFlexWrap\",\"OFlexWrap\",\"float\",\"MozFloat\",\"WebkitFloat\",\"MSFloat\",\"OFloat\",\"font\",\"MozFont\",\"WebkitFont\",\"MSFont\",\"OFont\",\"fontFamily\",\"MozFontFamily\",\"WebkitFontFamily\",\"MSFontFamily\",\"OFontFamily\",\"fontFeatureSettings\",\"MozFontFeatureSettings\",\"WebkitFontFeatureSettings\",\"MSFontFeatureSettings\",\"OFontFeatureSettings\",\"fontKerning\",\"MozFontKerning\",\"WebkitFontKerning\",\"MSFontKerning\",\"OFontKerning\",\"fontLanguageOverride\",\"MozFontLanguageOverride\",\"WebkitFontLanguageOverride\",\"MSFontLanguageOverride\",\"OFontLanguageOverride\",\"fontSize\",\"MozFontSize\",\"WebkitFontSize\",\"MSFontSize\",\"OFontSize\",\"fontSizeAdjust\",\"MozFontSizeAdjust\",\"WebkitFontSizeAdjust\",\"MSFontSizeAdjust\",\"OFontSizeAdjust\",\"fontStretch\",\"MozFontStretch\",\"WebkitFontStretch\",\"MSFontStretch\",\"OFontStretch\",\"fontStyle\",\"MozFontStyle\",\"WebkitFontStyle\",\"MSFontStyle\",\"OFontStyle\",\"fontSynthesis\",\"MozFontSynthesis\",\"WebkitFontSynthesis\",\"MSFontSynthesis\",\"OFontSynthesis\",\"fontVariant\",\"MozFontVariant\",\"WebkitFontVariant\",\"MSFontVariant\",\"OFontVariant\",\"fontVariantAlternates\",\"MozFontVariantAlternates\",\"WebkitFontVariantAlternates\",\"MSFontVariantAlternates\",\"OFontVariantAlternates\",\"fontVariantCaps\",\"MozFontVariantCaps\",\"WebkitFontVariantCaps\",\"MSFontVariantCaps\",\"OFontVariantCaps\",\"fontVariantEastAsian\",\"MozFontVariantEastAsian\",\"WebkitFontVariantEastAsian\",\"MSFontVariantEastAsian\",\"OFontVariantEastAsian\",\"fontVariantLigatures\",\"MozFontVariantLigatures\",\"WebkitFontVariantLigatures\",\"MSFontVariantLigatures\",\"OFontVariantLigatures\",\"fontVariantNumeric\",\"MozFontVariantNumeric\",\"WebkitFontVariantNumeric\",\"MSFontVariantNumeric\",\"OFontVariantNumeric\",\"fontVariantPosition\",\"MozFontVariantPosition\",\"WebkitFontVariantPosition\",\"MSFontVariantPosition\",\"OFontVariantPosition\",\"fontWeight\",\"MozFontWeight\",\"WebkitFontWeight\",\"MSFontWeight\",\"OFontWeight\",\"fr\",\"MozFr\",\"WebkitFr\",\"MSFr\",\"OFr\",\"grad\",\"MozGrad\",\"WebkitGrad\",\"MSGrad\",\"OGrad\",\"grid\",\"MozGrid\",\"WebkitGrid\",\"MSGrid\",\"OGrid\",\"gridArea\",\"MozGridArea\",\"WebkitGridArea\",\"MSGridArea\",\"OGridArea\",\"gridAutoColumns\",\"MozGridAutoColumns\",\"WebkitGridAutoColumns\",\"MSGridAutoColumns\",\"OGridAutoColumns\",\"gridAutoFlow\",\"MozGridAutoFlow\",\"WebkitGridAutoFlow\",\"MSGridAutoFlow\",\"OGridAutoFlow\",\"gridAutoRows\",\"MozGridAutoRows\",\"WebkitGridAutoRows\",\"MSGridAutoRows\",\"OGridAutoRows\",\"gridColumn\",\"MozGridColumn\",\"WebkitGridColumn\",\"MSGridColumn\",\"OGridColumn\",\"gridColumnEnd\",\"MozGridColumnEnd\",\"WebkitGridColumnEnd\",\"MSGridColumnEnd\",\"OGridColumnEnd\",\"gridColumnGap\",\"MozGridColumnGap\",\"WebkitGridColumnGap\",\"MSGridColumnGap\",\"OGridColumnGap\",\"gridColumnStart\",\"MozGridColumnStart\",\"WebkitGridColumnStart\",\"MSGridColumnStart\",\"OGridColumnStart\",\"gridGap\",\"MozGridGap\",\"WebkitGridGap\",\"MSGridGap\",\"OGridGap\",\"gridRow\",\"MozGridRow\",\"WebkitGridRow\",\"MSGridRow\",\"OGridRow\",\"gridRowEnd\",\"MozGridRowEnd\",\"WebkitGridRowEnd\",\"MSGridRowEnd\",\"OGridRowEnd\",\"gridRowGap\",\"MozGridRowGap\",\"WebkitGridRowGap\",\"MSGridRowGap\",\"OGridRowGap\",\"gridRowStart\",\"MozGridRowStart\",\"WebkitGridRowStart\",\"MSGridRowStart\",\"OGridRowStart\",\"gridTemplate\",\"MozGridTemplate\",\"WebkitGridTemplate\",\"MSGridTemplate\",\"OGridTemplate\",\"gridTemplateAreas\",\"MozGridTemplateAreas\",\"WebkitGridTemplateAreas\",\"MSGridTemplateAreas\",\"OGridTemplateAreas\",\"gridTemplateColumns\",\"MozGridTemplateColumns\",\"WebkitGridTemplateColumns\",\"MSGridTemplateColumns\",\"OGridTemplateColumns\",\"gridTemplateRows\",\"MozGridTemplateRows\",\"WebkitGridTemplateRows\",\"MSGridTemplateRows\",\"OGridTemplateRows\",\"height\",\"MozHeight\",\"WebkitHeight\",\"MSHeight\",\"OHeight\",\"hyphens\",\"MozHyphens\",\"WebkitHyphens\",\"MSHyphens\",\"OHyphens\",\"hz\",\"MozHz\",\"WebkitHz\",\"MSHz\",\"OHz\",\"imageOrientation\",\"MozImageOrientation\",\"WebkitImageOrientation\",\"MSImageOrientation\",\"OImageOrientation\",\"imageRendering\",\"MozImageRendering\",\"WebkitImageRendering\",\"MSImageRendering\",\"OImageRendering\",\"imageResolution\",\"MozImageResolution\",\"WebkitImageResolution\",\"MSImageResolution\",\"OImageResolution\",\"imeMode\",\"MozImeMode\",\"WebkitImeMode\",\"MSImeMode\",\"OImeMode\",\"in\",\"MozIn\",\"WebkitIn\",\"MSIn\",\"OIn\",\"inherit\",\"MozInherit\",\"WebkitInherit\",\"MSInherit\",\"OInherit\",\"initial\",\"MozInitial\",\"WebkitInitial\",\"MSInitial\",\"OInitial\",\"inlineSize\",\"MozInlineSize\",\"WebkitInlineSize\",\"MSInlineSize\",\"OInlineSize\",\"isolation\",\"MozIsolation\",\"WebkitIsolation\",\"MSIsolation\",\"OIsolation\",\"justifyContent\",\"MozJustifyContent\",\"WebkitJustifyContent\",\"MSJustifyContent\",\"OJustifyContent\",\"khz\",\"MozKhz\",\"WebkitKhz\",\"MSKhz\",\"OKhz\",\"left\",\"MozLeft\",\"WebkitLeft\",\"MSLeft\",\"OLeft\",\"letterSpacing\",\"MozLetterSpacing\",\"WebkitLetterSpacing\",\"MSLetterSpacing\",\"OLetterSpacing\",\"lineBreak\",\"MozLineBreak\",\"WebkitLineBreak\",\"MSLineBreak\",\"OLineBreak\",\"lineHeight\",\"MozLineHeight\",\"WebkitLineHeight\",\"MSLineHeight\",\"OLineHeight\",\"listStyle\",\"MozListStyle\",\"WebkitListStyle\",\"MSListStyle\",\"OListStyle\",\"listStyleImage\",\"MozListStyleImage\",\"WebkitListStyleImage\",\"MSListStyleImage\",\"OListStyleImage\",\"listStylePosition\",\"MozListStylePosition\",\"WebkitListStylePosition\",\"MSListStylePosition\",\"OListStylePosition\",\"listStyleType\",\"MozListStyleType\",\"WebkitListStyleType\",\"MSListStyleType\",\"OListStyleType\",\"margin\",\"MozMargin\",\"WebkitMargin\",\"MSMargin\",\"OMargin\",\"marginBlockEnd\",\"MozMarginBlockEnd\",\"WebkitMarginBlockEnd\",\"MSMarginBlockEnd\",\"OMarginBlockEnd\",\"marginBlockStart\",\"MozMarginBlockStart\",\"WebkitMarginBlockStart\",\"MSMarginBlockStart\",\"OMarginBlockStart\",\"marginBottom\",\"MozMarginBottom\",\"WebkitMarginBottom\",\"MSMarginBottom\",\"OMarginBottom\",\"marginInlineEnd\",\"MozMarginInlineEnd\",\"WebkitMarginInlineEnd\",\"MSMarginInlineEnd\",\"OMarginInlineEnd\",\"marginInlineStart\",\"MozMarginInlineStart\",\"WebkitMarginInlineStart\",\"MSMarginInlineStart\",\"OMarginInlineStart\",\"marginLeft\",\"MozMarginLeft\",\"WebkitMarginLeft\",\"MSMarginLeft\",\"OMarginLeft\",\"marginRight\",\"MozMarginRight\",\"WebkitMarginRight\",\"MSMarginRight\",\"OMarginRight\",\"marginTop\",\"MozMarginTop\",\"WebkitMarginTop\",\"MSMarginTop\",\"OMarginTop\",\"mask\",\"MozMask\",\"WebkitMask\",\"MSMask\",\"OMask\",\"maskClip\",\"MozMaskClip\",\"WebkitMaskClip\",\"MSMaskClip\",\"OMaskClip\",\"maskComposite\",\"MozMaskComposite\",\"WebkitMaskComposite\",\"MSMaskComposite\",\"OMaskComposite\",\"maskImage\",\"MozMaskImage\",\"WebkitMaskImage\",\"MSMaskImage\",\"OMaskImage\",\"maskMode\",\"MozMaskMode\",\"WebkitMaskMode\",\"MSMaskMode\",\"OMaskMode\",\"maskOrigin\",\"MozMaskOrigin\",\"WebkitMaskOrigin\",\"MSMaskOrigin\",\"OMaskOrigin\",\"maskPosition\",\"MozMaskPosition\",\"WebkitMaskPosition\",\"MSMaskPosition\",\"OMaskPosition\",\"maskRepeat\",\"MozMaskRepeat\",\"WebkitMaskRepeat\",\"MSMaskRepeat\",\"OMaskRepeat\",\"maskSize\",\"MozMaskSize\",\"WebkitMaskSize\",\"MSMaskSize\",\"OMaskSize\",\"maskType\",\"MozMaskType\",\"WebkitMaskType\",\"MSMaskType\",\"OMaskType\",\"maxHeight\",\"MozMaxHeight\",\"WebkitMaxHeight\",\"MSMaxHeight\",\"OMaxHeight\",\"maxWidth\",\"MozMaxWidth\",\"WebkitMaxWidth\",\"MSMaxWidth\",\"OMaxWidth\",\"minBlockSize\",\"MozMinBlockSize\",\"WebkitMinBlockSize\",\"MSMinBlockSize\",\"OMinBlockSize\",\"minHeight\",\"MozMinHeight\",\"WebkitMinHeight\",\"MSMinHeight\",\"OMinHeight\",\"minInlineSize\",\"MozMinInlineSize\",\"WebkitMinInlineSize\",\"MSMinInlineSize\",\"OMinInlineSize\",\"minWidth\",\"MozMinWidth\",\"WebkitMinWidth\",\"MSMinWidth\",\"OMinWidth\",\"mixBlendMode\",\"MozMixBlendMode\",\"WebkitMixBlendMode\",\"MSMixBlendMode\",\"OMixBlendMode\",\"mm\",\"MozMm\",\"WebkitMm\",\"MSMm\",\"OMm\",\"ms\",\"MozMs\",\"WebkitMs\",\"MSMs\",\"OMs\",\"objectFit\",\"MozObjectFit\",\"WebkitObjectFit\",\"MSObjectFit\",\"OObjectFit\",\"objectPosition\",\"MozObjectPosition\",\"WebkitObjectPosition\",\"MSObjectPosition\",\"OObjectPosition\",\"offsetBlockEnd\",\"MozOffsetBlockEnd\",\"WebkitOffsetBlockEnd\",\"MSOffsetBlockEnd\",\"OOffsetBlockEnd\",\"offsetBlockStart\",\"MozOffsetBlockStart\",\"WebkitOffsetBlockStart\",\"MSOffsetBlockStart\",\"OOffsetBlockStart\",\"offsetInlineEnd\",\"MozOffsetInlineEnd\",\"WebkitOffsetInlineEnd\",\"MSOffsetInlineEnd\",\"OOffsetInlineEnd\",\"offsetInlineStart\",\"MozOffsetInlineStart\",\"WebkitOffsetInlineStart\",\"MSOffsetInlineStart\",\"OOffsetInlineStart\",\"opacity\",\"MozOpacity\",\"WebkitOpacity\",\"MSOpacity\",\"OOpacity\",\"order\",\"MozOrder\",\"WebkitOrder\",\"MSOrder\",\"OOrder\",\"orphans\",\"MozOrphans\",\"WebkitOrphans\",\"MSOrphans\",\"OOrphans\",\"outline\",\"MozOutline\",\"WebkitOutline\",\"MSOutline\",\"OOutline\",\"outlineColor\",\"MozOutlineColor\",\"WebkitOutlineColor\",\"MSOutlineColor\",\"OOutlineColor\",\"outlineOffset\",\"MozOutlineOffset\",\"WebkitOutlineOffset\",\"MSOutlineOffset\",\"OOutlineOffset\",\"outlineStyle\",\"MozOutlineStyle\",\"WebkitOutlineStyle\",\"MSOutlineStyle\",\"OOutlineStyle\",\"outlineWidth\",\"MozOutlineWidth\",\"WebkitOutlineWidth\",\"MSOutlineWidth\",\"OOutlineWidth\",\"overflow\",\"MozOverflow\",\"WebkitOverflow\",\"MSOverflow\",\"OOverflow\",\"overflowWrap\",\"MozOverflowWrap\",\"WebkitOverflowWrap\",\"MSOverflowWrap\",\"OOverflowWrap\",\"overflowX\",\"MozOverflowX\",\"WebkitOverflowX\",\"MSOverflowX\",\"OOverflowX\",\"overflowY\",\"MozOverflowY\",\"WebkitOverflowY\",\"MSOverflowY\",\"OOverflowY\",\"padding\",\"MozPadding\",\"WebkitPadding\",\"MSPadding\",\"OPadding\",\"paddingBlockEnd\",\"MozPaddingBlockEnd\",\"WebkitPaddingBlockEnd\",\"MSPaddingBlockEnd\",\"OPaddingBlockEnd\",\"paddingBlockStart\",\"MozPaddingBlockStart\",\"WebkitPaddingBlockStart\",\"MSPaddingBlockStart\",\"OPaddingBlockStart\",\"paddingBottom\",\"MozPaddingBottom\",\"WebkitPaddingBottom\",\"MSPaddingBottom\",\"OPaddingBottom\",\"paddingInlineEnd\",\"MozPaddingInlineEnd\",\"WebkitPaddingInlineEnd\",\"MSPaddingInlineEnd\",\"OPaddingInlineEnd\",\"paddingInlineStart\",\"MozPaddingInlineStart\",\"WebkitPaddingInlineStart\",\"MSPaddingInlineStart\",\"OPaddingInlineStart\",\"paddingLeft\",\"MozPaddingLeft\",\"WebkitPaddingLeft\",\"MSPaddingLeft\",\"OPaddingLeft\",\"paddingRight\",\"MozPaddingRight\",\"WebkitPaddingRight\",\"MSPaddingRight\",\"OPaddingRight\",\"paddingTop\",\"MozPaddingTop\",\"WebkitPaddingTop\",\"MSPaddingTop\",\"OPaddingTop\",\"pageBreakAfter\",\"MozPageBreakAfter\",\"WebkitPageBreakAfter\",\"MSPageBreakAfter\",\"OPageBreakAfter\",\"pageBreakBefore\",\"MozPageBreakBefore\",\"WebkitPageBreakBefore\",\"MSPageBreakBefore\",\"OPageBreakBefore\",\"pageBreakInside\",\"MozPageBreakInside\",\"WebkitPageBreakInside\",\"MSPageBreakInside\",\"OPageBreakInside\",\"pc\",\"MozPc\",\"WebkitPc\",\"MSPc\",\"OPc\",\"perspective\",\"MozPerspective\",\"WebkitPerspective\",\"MSPerspective\",\"OPerspective\",\"perspectiveOrigin\",\"MozPerspectiveOrigin\",\"WebkitPerspectiveOrigin\",\"MSPerspectiveOrigin\",\"OPerspectiveOrigin\",\"pointerEvents\",\"MozPointerEvents\",\"WebkitPointerEvents\",\"MSPointerEvents\",\"OPointerEvents\",\"position\",\"MozPosition\",\"WebkitPosition\",\"MSPosition\",\"OPosition\",\"pt\",\"MozPt\",\"WebkitPt\",\"MSPt\",\"OPt\",\"px\",\"MozPx\",\"WebkitPx\",\"MSPx\",\"OPx\",\"q\",\"MozQ\",\"WebkitQ\",\"MSQ\",\"OQ\",\"quotes\",\"MozQuotes\",\"WebkitQuotes\",\"MSQuotes\",\"OQuotes\",\"rad\",\"MozRad\",\"WebkitRad\",\"MSRad\",\"ORad\",\"rem\",\"MozRem\",\"WebkitRem\",\"MSRem\",\"ORem\",\"resize\",\"MozResize\",\"WebkitResize\",\"MSResize\",\"OResize\",\"revert\",\"MozRevert\",\"WebkitRevert\",\"MSRevert\",\"ORevert\",\"right\",\"MozRight\",\"WebkitRight\",\"MSRight\",\"ORight\",\"rubyAlign\",\"MozRubyAlign\",\"WebkitRubyAlign\",\"MSRubyAlign\",\"ORubyAlign\",\"rubyMerge\",\"MozRubyMerge\",\"WebkitRubyMerge\",\"MSRubyMerge\",\"ORubyMerge\",\"rubyPosition\",\"MozRubyPosition\",\"WebkitRubyPosition\",\"MSRubyPosition\",\"ORubyPosition\",\"s\",\"MozS\",\"WebkitS\",\"MSS\",\"OS\",\"scrollBehavior\",\"MozScrollBehavior\",\"WebkitScrollBehavior\",\"MSScrollBehavior\",\"OScrollBehavior\",\"scrollSnapCoordinate\",\"MozScrollSnapCoordinate\",\"WebkitScrollSnapCoordinate\",\"MSScrollSnapCoordinate\",\"OScrollSnapCoordinate\",\"scrollSnapDestination\",\"MozScrollSnapDestination\",\"WebkitScrollSnapDestination\",\"MSScrollSnapDestination\",\"OScrollSnapDestination\",\"scrollSnapType\",\"MozScrollSnapType\",\"WebkitScrollSnapType\",\"MSScrollSnapType\",\"OScrollSnapType\",\"shapeImageThreshold\",\"MozShapeImageThreshold\",\"WebkitShapeImageThreshold\",\"MSShapeImageThreshold\",\"OShapeImageThreshold\",\"shapeMargin\",\"MozShapeMargin\",\"WebkitShapeMargin\",\"MSShapeMargin\",\"OShapeMargin\",\"shapeOutside\",\"MozShapeOutside\",\"WebkitShapeOutside\",\"MSShapeOutside\",\"OShapeOutside\",\"tabSize\",\"MozTabSize\",\"WebkitTabSize\",\"MSTabSize\",\"OTabSize\",\"tableLayout\",\"MozTableLayout\",\"WebkitTableLayout\",\"MSTableLayout\",\"OTableLayout\",\"textAlign\",\"MozTextAlign\",\"WebkitTextAlign\",\"MSTextAlign\",\"OTextAlign\",\"textAlignLast\",\"MozTextAlignLast\",\"WebkitTextAlignLast\",\"MSTextAlignLast\",\"OTextAlignLast\",\"textCombineUpright\",\"MozTextCombineUpright\",\"WebkitTextCombineUpright\",\"MSTextCombineUpright\",\"OTextCombineUpright\",\"textDecoration\",\"MozTextDecoration\",\"WebkitTextDecoration\",\"MSTextDecoration\",\"OTextDecoration\",\"textDecorationColor\",\"MozTextDecorationColor\",\"WebkitTextDecorationColor\",\"MSTextDecorationColor\",\"OTextDecorationColor\",\"textDecorationLine\",\"MozTextDecorationLine\",\"WebkitTextDecorationLine\",\"MSTextDecorationLine\",\"OTextDecorationLine\",\"textDecorationStyle\",\"MozTextDecorationStyle\",\"WebkitTextDecorationStyle\",\"MSTextDecorationStyle\",\"OTextDecorationStyle\",\"textEmphasis\",\"MozTextEmphasis\",\"WebkitTextEmphasis\",\"MSTextEmphasis\",\"OTextEmphasis\",\"textEmphasisColor\",\"MozTextEmphasisColor\",\"WebkitTextEmphasisColor\",\"MSTextEmphasisColor\",\"OTextEmphasisColor\",\"textEmphasisPosition\",\"MozTextEmphasisPosition\",\"WebkitTextEmphasisPosition\",\"MSTextEmphasisPosition\",\"OTextEmphasisPosition\",\"textEmphasisStyle\",\"MozTextEmphasisStyle\",\"WebkitTextEmphasisStyle\",\"MSTextEmphasisStyle\",\"OTextEmphasisStyle\",\"textIndent\",\"MozTextIndent\",\"WebkitTextIndent\",\"MSTextIndent\",\"OTextIndent\",\"textOrientation\",\"MozTextOrientation\",\"WebkitTextOrientation\",\"MSTextOrientation\",\"OTextOrientation\",\"textOverflow\",\"MozTextOverflow\",\"WebkitTextOverflow\",\"MSTextOverflow\",\"OTextOverflow\",\"textRendering\",\"MozTextRendering\",\"WebkitTextRendering\",\"MSTextRendering\",\"OTextRendering\",\"textShadow\",\"MozTextShadow\",\"WebkitTextShadow\",\"MSTextShadow\",\"OTextShadow\",\"textTransform\",\"MozTextTransform\",\"WebkitTextTransform\",\"MSTextTransform\",\"OTextTransform\",\"textUnderlinePosition\",\"MozTextUnderlinePosition\",\"WebkitTextUnderlinePosition\",\"MSTextUnderlinePosition\",\"OTextUnderlinePosition\",\"top\",\"MozTop\",\"WebkitTop\",\"MSTop\",\"OTop\",\"touchAction\",\"MozTouchAction\",\"WebkitTouchAction\",\"MSTouchAction\",\"OTouchAction\",\"transform\",\"MozTransform\",\"WebkitTransform\",\"msTransform\",\"OTransform\",\"transformBox\",\"MozTransformBox\",\"WebkitTransformBox\",\"MSTransformBox\",\"OTransformBox\",\"transformOrigin\",\"MozTransformOrigin\",\"WebkitTransformOrigin\",\"MSTransformOrigin\",\"OTransformOrigin\",\"transformStyle\",\"MozTransformStyle\",\"WebkitTransformStyle\",\"MSTransformStyle\",\"OTransformStyle\",\"transition\",\"MozTransition\",\"WebkitTransition\",\"MSTransition\",\"OTransition\",\"transitionDelay\",\"MozTransitionDelay\",\"WebkitTransitionDelay\",\"MSTransitionDelay\",\"OTransitionDelay\",\"transitionDuration\",\"MozTransitionDuration\",\"WebkitTransitionDuration\",\"MSTransitionDuration\",\"OTransitionDuration\",\"transitionProperty\",\"MozTransitionProperty\",\"WebkitTransitionProperty\",\"MSTransitionProperty\",\"OTransitionProperty\",\"transitionTimingFunction\",\"MozTransitionTimingFunction\",\"WebkitTransitionTimingFunction\",\"MSTransitionTimingFunction\",\"OTransitionTimingFunction\",\"turn\",\"MozTurn\",\"WebkitTurn\",\"MSTurn\",\"OTurn\",\"unicodeBidi\",\"MozUnicodeBidi\",\"WebkitUnicodeBidi\",\"MSUnicodeBidi\",\"OUnicodeBidi\",\"unset\",\"MozUnset\",\"WebkitUnset\",\"MSUnset\",\"OUnset\",\"verticalAlign\",\"MozVerticalAlign\",\"WebkitVerticalAlign\",\"MSVerticalAlign\",\"OVerticalAlign\",\"vh\",\"MozVh\",\"WebkitVh\",\"MSVh\",\"OVh\",\"visibility\",\"MozVisibility\",\"WebkitVisibility\",\"MSVisibility\",\"OVisibility\",\"vmax\",\"MozVmax\",\"WebkitVmax\",\"MSVmax\",\"OVmax\",\"vmin\",\"MozVmin\",\"WebkitVmin\",\"MSVmin\",\"OVmin\",\"vw\",\"MozVw\",\"WebkitVw\",\"MSVw\",\"OVw\",\"whiteSpace\",\"MozWhiteSpace\",\"WebkitWhiteSpace\",\"MSWhiteSpace\",\"OWhiteSpace\",\"widows\",\"MozWidows\",\"WebkitWidows\",\"MSWidows\",\"OWidows\",\"width\",\"MozWidth\",\"WebkitWidth\",\"MSWidth\",\"OWidth\",\"willChange\",\"MozWillChange\",\"WebkitWillChange\",\"MSWillChange\",\"OWillChange\",\"wordBreak\",\"MozWordBreak\",\"WebkitWordBreak\",\"MSWordBreak\",\"OWordBreak\",\"wordSpacing\",\"MozWordSpacing\",\"WebkitWordSpacing\",\"MSWordSpacing\",\"OWordSpacing\",\"wordWrap\",\"MozWordWrap\",\"WebkitWordWrap\",\"MSWordWrap\",\"OWordWrap\",\"writingMode\",\"MozWritingMode\",\"WebkitWritingMode\",\"MSWritingMode\",\"OWritingMode\",\"zIndex\",\"MozZIndex\",\"WebkitZIndex\",\"MSZIndex\",\"OZIndex\",\"fontSize\",\"MozFontSize\",\"WebkitFontSize\",\"MSFontSize\",\"OFontSize\",\"flex\",\"MozFlex\",\"WebkitFlex\",\"MSFlex\",\"OFlex\",\"fr\",\"MozFr\",\"WebkitFr\",\"MSFr\",\"OFr\",\"overflowScrolling\",\"MozOverflowScrolling\",\"WebkitOverflowScrolling\",\"MSOverflowScrolling\",\"OOverflowScrolling\",\"userSelect\",\"MozUserSelect\",\"WebkitUserSelect\",\"MSUserSelect\",\"OUserSelect\"]},function(e,t,n){var i=n(561),r=n(27);e.exports=function(e,t,n){var r=e[t];if(r){var o=[];if(Object.keys(r).forEach(function(e){-1===i.indexOf(e)&&o.push(e)}),o.length)throw new Error(\"Prop \"+t+\" passed to \"+n+\". Has invalid keys \"+o.join(\", \"))}},e.exports.isRequired=function(t,n,i){if(!t[n])throw new Error(\"Prop \"+n+\" passed to \"+i+\" is required\");return e.exports(t,n,i)},e.exports.supportingArrays=r.oneOfType([r.arrayOf(e.exports),e.exports])},function(e,t,n){\"use strict\";function i(){return i=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,\"a\",function(){return d});var a=n(27),s=(n.n(a),n(2)),l=n.n(s),u=n(13),c=n.n(u),d=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.componentDidMount=function(){this.checkFocus()},n.componentDidUpdate=function(){this.checkFocus()},n.checkFocus=function(){var e=this.props,t=e.selected,n=e.focus;t&&n&&this.node.focus()},n.render=function(){var e,t=this,n=this.props,o=n.children,a=n.className,s=n.disabled,u=n.disabledClassName,d=(n.focus,n.id),h=n.panelId,f=n.selected,p=n.selectedClassName,m=n.tabIndex,g=n.tabRef,v=r(n,[\"children\",\"className\",\"disabled\",\"disabledClassName\",\"focus\",\"id\",\"panelId\",\"selected\",\"selectedClassName\",\"tabIndex\",\"tabRef\"]);return l.a.createElement(\"li\",i({},v,{className:c()(a,(e={},e[p]=f,e[u]=s,e)),ref:function(e){t.node=e,g&&g(e)},role:\"tab\",id:d,\"aria-selected\":f?\"true\":\"false\",\"aria-disabled\":s?\"true\":\"false\",\"aria-controls\":h,tabIndex:m||(f?\"0\":null)}),o)},t}(s.Component);d.defaultProps={className:\"react-tabs__tab\",disabledClassName:\"react-tabs__tab--disabled\",focus:!1,id:null,panelId:null,selected:!1,selectedClassName:\"react-tabs__tab--selected\"},d.propTypes={},d.tabsRole=\"Tab\"},function(e,t,n){\"use strict\";function i(){return i=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,\"a\",function(){return d});var a=n(27),s=(n.n(a),n(2)),l=n.n(s),u=n(13),c=n.n(u),d=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,o=r(e,[\"children\",\"className\"]);return l.a.createElement(\"ul\",i({},o,{className:c()(n),role:\"tablist\"}),t)},t}(s.Component);d.defaultProps={className:\"react-tabs__tab-list\"},d.propTypes={},d.tabsRole=\"TabList\"},function(e,t,n){\"use strict\";function i(){return i=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,\"a\",function(){return d});var a=n(27),s=(n.n(a),n(2)),l=n.n(s),u=n(13),c=n.n(u),d=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e,t=this.props,n=t.children,o=t.className,a=t.forceRender,s=t.id,u=t.selected,d=t.selectedClassName,h=t.tabId,f=r(t,[\"children\",\"className\",\"forceRender\",\"id\",\"selected\",\"selectedClassName\",\"tabId\"]);return l.a.createElement(\"div\",i({},f,{className:c()(o,(e={},e[d]=u,e)),role:\"tabpanel\",id:s,\"aria-labelledby\":h}),a||u?n:null)},t}(s.Component);d.defaultProps={className:\"react-tabs__tab-panel\",forceRender:!1,selectedClassName:\"react-tabs__tab-panel--selected\"},d.propTypes={},d.tabsRole=\"TabPanel\"},function(e,t,n){\"use strict\";function i(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i=0||(r[n]=e[n]);return r}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,\"a\",function(){return c});var o=n(27),a=(n.n(o),n(2)),s=n.n(a),l=(n(212),n(567)),u=n(211),c=function(e){function t(n){var i;return i=e.call(this,n)||this,i.handleSelected=function(e,n,r){var o=i.props.onSelect;if(\"function\"!=typeof o||!1!==o(e,n,r)){var a={focus:\"keydown\"===r.type};t.inUncontrolledMode(i.props)&&(a.selectedIndex=e),i.setState(a)}},i.state=t.copyPropsToState(i.props,{},n.defaultFocus),i}r(t,e);var o=t.prototype;return o.componentWillReceiveProps=function(e){this.setState(function(n){return t.copyPropsToState(e,n)})},t.inUncontrolledMode=function(e){return null===e.selectedIndex},t.copyPropsToState=function(e,i,r){void 0===r&&(r=!1);var o={focus:r};if(t.inUncontrolledMode(e)){var a=n.i(u.a)(e.children)-1,s=null;s=null!=i.selectedIndex?Math.min(i.selectedIndex,a):e.defaultIndex||0,o.selectedIndex=s}return o},o.render=function(){var e=this.props,t=e.children,n=(e.defaultIndex,e.defaultFocus,i(e,[\"children\",\"defaultIndex\",\"defaultFocus\"])),r=this.state,o=r.focus,a=r.selectedIndex;return n.focus=o,n.onSelect=this.handleSelected,null!=a&&(n.selectedIndex=a),s.a.createElement(l.a,n,t)},t}(a.Component);c.defaultProps={defaultFocus:!1,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null},c.propTypes={},c.tabsRole=\"Tabs\"},function(e,t,n){\"use strict\";function i(){return i=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e){return\"getAttribute\"in e&&\"tab\"===e.getAttribute(\"role\")}function s(e){return\"true\"===e.getAttribute(\"aria-disabled\")}n.d(t,\"a\",function(){return y});var l,u=n(27),c=(n.n(u),n(2)),d=n.n(c),h=n(13),f=n.n(h),p=n(213),m=(n(212),n(211)),g=n(136),v=n(97);try{l=!(\"undefined\"==typeof window||!window.document||!window.document.activeElement)}catch(e){l=!1}var y=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r=this.getTabsCount())){var n=this.props;(0,n.onSelect)(e,n.selectedIndex,t)}},u.getNextTab=function(e){for(var t=this.getTabsCount(),n=e+1;ne;)if(!s(this.getTab(t)))return t;return e},u.getFirstTab=function(){for(var e=this.getTabsCount(),t=0;t0||a){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:l,show:!0},function(){t.updatePosition(),n&&o&&o()})}};clearTimeout(this.delayShowLoop),i?this.delayShowLoop=setTimeout(u,s):u()}}},{key:\"listenForTooltipExit\",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener(\"mouseleave\",this.hideTooltip)}},{key:\"removeListenerForTooltipExit\",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener(\"mouseleave\",this.hideTooltip)}},{key:\"hideTooltip\",value:function(e,t){var n=this,i=this.state,r=i.delayHide,o=i.disable,a=this.props.afterHide,s=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(s)&&!o){if(t){if(!this.getTargetArray(this.props.id).some(function(t){return t===e.currentTarget})||!this.state.show)return}var l=function(){var e=n.state.show;if(n.mouseOnToolTip())return void n.listenForTooltipExit();n.removeListenerForTooltipExit(),n.setState({show:!1},function(){n.removeScrollListener(),e&&a&&a()})};this.clearTimer(),r?this.delayHideLoop=setTimeout(l,parseInt(r,10)):l()}}},{key:\"addScrollListener\",value:function(e){var t=this.isCapture(e);window.addEventListener(\"scroll\",this.hideTooltip,t)}},{key:\"removeScrollListener\",value:function(){window.removeEventListener(\"scroll\",this.hideTooltip)}},{key:\"updatePosition\",value:function(){var e=this,t=this.state,n=t.currentEvent,i=t.currentTarget,r=t.place,o=t.desiredPlace,a=t.effect,s=t.offset,l=v.default.findDOMNode(this),u=(0,D.default)(n,i,l,r,o,a,s);if(u.isNewState)return this.setState(u.newState,function(){e.updatePosition()});l.style.left=u.position.left+\"px\",l.style.top=u.position.top+\"px\"}},{key:\"setStyleHeader\",value:function(){var e=document.getElementsByTagName(\"head\")[0];if(!e.querySelector('style[id=\"react-tooltip\"]')){var t=document.createElement(\"style\");t.id=\"react-tooltip\",t.innerHTML=W.default,void 0!==n.nc&&n.nc&&t.setAttribute(\"nonce\",n.nc),e.insertBefore(t,e.firstChild)}}},{key:\"clearTimer\",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:\"render\",value:function(){var e=this,n=this.state,i=n.extraClass,r=n.html,o=n.ariaProps,a=n.disable,s=this.getTooltipContent(),l=this.isEmptyTip(s),u=(0,b.default)(\"__react_component_tooltip\",{show:this.state.show&&!a&&!l},{border:this.state.border},{\"place-top\":\"top\"===this.state.place},{\"place-bottom\":\"bottom\"===this.state.place},{\"place-left\":\"left\"===this.state.place},{\"place-right\":\"right\"===this.state.place},{\"type-dark\":\"dark\"===this.state.type},{\"type-success\":\"success\"===this.state.type},{\"type-warning\":\"warning\"===this.state.type},{\"type-error\":\"error\"===this.state.type},{\"type-info\":\"info\"===this.state.type},{\"type-light\":\"light\"===this.state.type},{allow_hover:this.props.delayUpdate}),d=this.props.wrapper;return t.supportedWrappers.indexOf(d)<0&&(d=t.defaultProps.wrapper),r?f.default.createElement(d,c({className:u+\" \"+i,id:this.props.id,ref:function(t){return e.tooltipRef=t}},o,{\"data-id\":\"tooltip\",dangerouslySetInnerHTML:{__html:(0,x.default)(s,this.props.sanitizeHtmlOptions)}})):f.default.createElement(d,c({className:u+\" \"+i,id:this.props.id},o,{ref:function(t){return e.tooltipRef=t},\"data-id\":\"tooltip\"}),s)}}]),t}(f.default.Component),l.propTypes={children:m.default.any,place:m.default.string,type:m.default.string,effect:m.default.string,offset:m.default.object,multiline:m.default.bool,border:m.default.bool,insecure:m.default.bool,class:m.default.string,className:m.default.string,id:m.default.string,html:m.default.bool,delayHide:m.default.number,delayUpdate:m.default.number,delayShow:m.default.number,event:m.default.string,eventOff:m.default.string,watchWindow:m.default.bool,isCapture:m.default.bool,globalEventOff:m.default.string,getContent:m.default.any,afterShow:m.default.func,afterHide:m.default.func,disable:m.default.bool,scrollHide:m.default.bool,resizeHide:m.default.bool,wrapper:m.default.string,sanitizeHtmlOptions:m.default.any},l.defaultProps={insecure:!0,resizeHide:!0,wrapper:\"div\"},l.supportedWrappers=[\"div\",\"span\"],l.displayName=\"ReactTooltip\",s=u))||s)||s)||s)||s)||s)||s;e.exports=G},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default='.__react_component_tooltip{border-radius:3px;display:inline-block;font-size:13px;left:-999em;opacity:0;padding:8px 21px;position:fixed;pointer-events:none;transition:opacity 0.3s ease-out;top:-999em;visibility:hidden;z-index:999}.__react_component_tooltip.allow_hover{pointer-events:auto}.__react_component_tooltip:before,.__react_component_tooltip:after{content:\"\";width:0;height:0;position:absolute}.__react_component_tooltip.show{opacity:0.9;margin-top:0px;margin-left:0px;visibility:visible}.__react_component_tooltip.type-dark{color:#fff;background-color:#222}.__react_component_tooltip.type-dark.place-top:after{border-top-color:#222;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-dark.place-bottom:after{border-bottom-color:#222;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-dark.place-left:after{border-left-color:#222;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-dark.place-right:after{border-right-color:#222;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-dark.border{border:1px solid #fff}.__react_component_tooltip.type-dark.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-dark.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-dark.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-dark.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-success{color:#fff;background-color:#8DC572}.__react_component_tooltip.type-success.place-top:after{border-top-color:#8DC572;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-success.place-bottom:after{border-bottom-color:#8DC572;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-success.place-left:after{border-left-color:#8DC572;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-success.place-right:after{border-right-color:#8DC572;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-success.border{border:1px solid #fff}.__react_component_tooltip.type-success.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-success.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-success.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-success.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-warning{color:#fff;background-color:#F0AD4E}.__react_component_tooltip.type-warning.place-top:after{border-top-color:#F0AD4E;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-warning.place-bottom:after{border-bottom-color:#F0AD4E;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-warning.place-left:after{border-left-color:#F0AD4E;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-warning.place-right:after{border-right-color:#F0AD4E;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-warning.border{border:1px solid #fff}.__react_component_tooltip.type-warning.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-warning.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-warning.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-warning.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-error{color:#fff;background-color:#BE6464}.__react_component_tooltip.type-error.place-top:after{border-top-color:#BE6464;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-error.place-bottom:after{border-bottom-color:#BE6464;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-error.place-left:after{border-left-color:#BE6464;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-error.place-right:after{border-right-color:#BE6464;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-error.border{border:1px solid #fff}.__react_component_tooltip.type-error.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-error.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-error.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-error.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-info{color:#fff;background-color:#337AB7}.__react_component_tooltip.type-info.place-top:after{border-top-color:#337AB7;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-info.place-bottom:after{border-bottom-color:#337AB7;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-info.place-left:after{border-left-color:#337AB7;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-info.place-right:after{border-right-color:#337AB7;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-info.border{border:1px solid #fff}.__react_component_tooltip.type-info.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-info.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-info.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-info.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-light{color:#222;background-color:#fff}.__react_component_tooltip.type-light.place-top:after{border-top-color:#fff;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-light.place-bottom:after{border-bottom-color:#fff;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-light.place-left:after{border-left-color:#fff;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-light.place-right:after{border-right-color:#fff;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-light.border{border:1px solid #222}.__react_component_tooltip.type-light.border.place-top:before{border-top:8px solid #222}.__react_component_tooltip.type-light.border.place-bottom:before{border-bottom:8px solid #222}.__react_component_tooltip.type-light.border.place-left:before{border-left:8px solid #222}.__react_component_tooltip.type-light.border.place-right:before{border-right:8px solid #222}.__react_component_tooltip.place-top{margin-top:-10px}.__react_component_tooltip.place-top:before{border-left:10px solid transparent;border-right:10px solid transparent;bottom:-8px;left:50%;margin-left:-10px}.__react_component_tooltip.place-top:after{border-left:8px solid transparent;border-right:8px solid transparent;bottom:-6px;left:50%;margin-left:-8px}.__react_component_tooltip.place-bottom{margin-top:10px}.__react_component_tooltip.place-bottom:before{border-left:10px solid transparent;border-right:10px solid transparent;top:-8px;left:50%;margin-left:-10px}.__react_component_tooltip.place-bottom:after{border-left:8px solid transparent;border-right:8px solid transparent;top:-6px;left:50%;margin-left:-8px}.__react_component_tooltip.place-left{margin-left:-10px}.__react_component_tooltip.place-left:before{border-top:6px solid transparent;border-bottom:6px solid transparent;right:-8px;top:50%;margin-top:-5px}.__react_component_tooltip.place-left:after{border-top:5px solid transparent;border-bottom:5px solid transparent;right:-6px;top:50%;margin-top:-4px}.__react_component_tooltip.place-right{margin-left:10px}.__react_component_tooltip.place-right:before{border-top:6px solid transparent;border-bottom:6px solid transparent;left:-8px;top:50%;margin-top:-5px}.__react_component_tooltip.place-right:after{border-top:5px solid transparent;border-bottom:5px solid transparent;left:-6px;top:50%;margin-top:-4px}.__react_component_tooltip .multi-line{display:block;padding:2px 0px;text-align:center}'},function(e,t,n){\"use strict\";function i(e){var t={};return Object.keys(e).filter(function(e){return/(^aria-\\w+$|^role$)/.test(e)}).forEach(function(n){t[n]=e[n]}),t}Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseAria=i},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e,t,n,l,u,c,d){for(var h=i(n),f=h.width,p=h.height,m=i(t),g=m.width,v=m.height,y=r(e,t,c),b=y.mouseX,_=y.mouseY,x=o(c,g,v,f,p),w=a(d),M=w.extraOffset_X,S=w.extraOffset_Y,E=window.innerWidth,T=window.innerHeight,k=s(n),O=k.parentTop,C=k.parentLeft,P=function(e){var t=x[e].l;return b+t+M},A=function(e){var t=x[e].r;return b+t+M},R=function(e){var t=x[e].t;return _+t+S},L=function(e){var t=x[e].b;return _+t+S},I=function(e){return P(e)<0},D=function(e){return A(e)>E},N=function(e){return R(e)<0},B=function(e){return L(e)>T},z=function(e){return I(e)||D(e)||N(e)||B(e)},F=function(e){return!z(e)},j=[\"top\",\"bottom\",\"left\",\"right\"],U=[],W=0;W<4;W++){var G=j[W];F(G)&&U.push(G)}var V=!1,H=void 0;return F(u)&&u!==l?(V=!0,H=u):U.length>0&&z(u)&&z(l)&&(V=!0,H=U[0]),V?{isNewState:!0,newState:{place:H}}:{isNewState:!1,position:{left:parseInt(P(l)-C,10),top:parseInt(R(l)-O,10)}}};var i=function(e){var t=e.getBoundingClientRect(),n=t.height,i=t.width;return{height:parseInt(n,10),width:parseInt(i,10)}},r=function(e,t,n){var r=t.getBoundingClientRect(),o=r.top,a=r.left,s=i(t),l=s.width,u=s.height;return\"float\"===n?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:a+l/2,mouseY:o+u/2}},o=function(e,t,n,i,r){var o=void 0,a=void 0,s=void 0,l=void 0;return\"float\"===e?(o={l:-i/2,r:i/2,t:-(r+3+2),b:-3},s={l:-i/2,r:i/2,t:15,b:r+3+2+12},l={l:-(i+3+2),r:-3,t:-r/2,b:r/2},a={l:3,r:i+3+2,t:-r/2,b:r/2}):\"solid\"===e&&(o={l:-i/2,r:i/2,t:-(n/2+r+2),b:-n/2},s={l:-i/2,r:i/2,t:n/2,b:n/2+r+2},l={l:-(i+t/2+2),r:-t/2,t:-r/2,b:r/2},a={l:t/2,r:i+t/2+2,t:-r/2,b:r/2}),{top:o,bottom:s,left:l,right:a}},a=function(e){var t=0,n=0;\"[object String]\"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/\\'/g,'\"')));for(var i in e)\"top\"===i?n-=parseInt(e[i],10):\"bottom\"===i?n+=parseInt(e[i],10):\"left\"===i?t-=parseInt(e[i],10):\"right\"===i&&(t+=parseInt(e[i],10));return{extraOffset_X:t,extraOffset_Y:n}},s=function(e){for(var t=e;t&&\"none\"===window.getComputedStyle(t).getPropertyValue(\"transform\");)t=t.parentElement;return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}}},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e,t,n,i){if(t)return t;if(void 0!==n&&null!==n)return n;if(null===n)return null;var o=//;return i&&\"false\"!==i&&o.test(e)?e.split(o).map(function(e,t){return r.default.createElement(\"span\",{key:t,className:\"multi-line\"},e)}):e};var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map(function(t){return e[t]})}},function(e,t,n){\"use strict\";function i(e,t,n,i,r,o,a,s){if(!e){if(e=void 0,void 0===t)e=Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else{var l=[n,i,r,o,a,s],u=0;e=Error(t.replace(/%s/g,function(){return l[u++]})),e.name=\"Invariant Violation\"}throw e.framesToPop=1,e}}function r(e){for(var t=arguments.length-1,n=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+e,r=0;rj.length&&j.push(e)}function p(e,t,n,i){var o=typeof e;\"undefined\"!==o&&\"boolean\"!==o||(e=null);var a=!1;if(null===e)a=!0;else switch(o){case\"string\":case\"number\":a=!0;break;case\"object\":switch(e.$$typeof){case M:case S:a=!0}}if(a)return n(i,e,\"\"===t?\".\"+g(e,0):t),1;if(a=0,t=\"\"===t?\".\":t+\":\",Array.isArray(e))for(var s=0;s0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return\"\";for(var t=this.head,n=\"\"+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var t=o.allocUnsafe(e>>>0),n=this.head,i=0;n;)r(n.data,t,i),i+=n.data.length,n=n.next;return t},e}(),a&&a.inspect&&a.inspect.custom&&(e.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+\" \"+e})},function(e,t,n){e.exports=n(138).PassThrough},function(e,t,n){e.exports=n(138).Transform},function(e,t,n){e.exports=n(137)},function(e,t,n){e.exports=n(588)},function(e,t,n){\"use strict\";function i(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}Object.defineProperty(t,\"__esModule\",{value:!0});var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.config=Object.assign({},s,n),this.audioContext=t,this.audioInput=null,this.realAudioInput=null,this.inputPoint=null,this.audioRecorder=null,this.rafID=null,this.analyserContext=null,this.recIndex=0,this.stream=null,this.updateAnalysers=this.updateAnalysers.bind(this)}return r(e,[{key:\"init\",value:function(e){var t=this;return new Promise(function(n){t.inputPoint=t.audioContext.createGain(),t.stream=e,t.realAudioInput=t.audioContext.createMediaStreamSource(e),t.audioInput=t.realAudioInput,t.audioInput.connect(t.inputPoint),t.analyserNode=t.audioContext.createAnalyser(),t.analyserNode.fftSize=2048,t.inputPoint.connect(t.analyserNode),t.audioRecorder=new a.default(t.inputPoint);var i=t.audioContext.createGain();i.gain.value=0,t.inputPoint.connect(i),i.connect(t.audioContext.destination),t.updateAnalysers(),n()})}},{key:\"start\",value:function(){var e=this;return new Promise(function(t,n){if(!e.audioRecorder)return void n(\"Not currently recording\");e.audioRecorder.clear(),e.audioRecorder.record(),t(e.stream)})}},{key:\"stop\",value:function(){var e=this;return new Promise(function(t){e.audioRecorder.stop(),e.audioRecorder.getBuffer(function(n){e.audioRecorder.exportWAV(function(e){return t({buffer:n,blob:e})})})})}},{key:\"updateAnalysers\",value:function(){if(this.config.onAnalysed){requestAnimationFrame(this.updateAnalysers);var e=new Uint8Array(this.analyserNode.frequencyBinCount);this.analyserNode.getByteFrequencyData(e);for(var t=new Array(255),n=0,i=void 0,r=0;r<255;r+=1)i=Math.floor(e[r])-Math.floor(e[r])%5,0!==i&&(n=r),t[r]=i;this.config.onAnalysed({data:t,lineTo:n})}}},{key:\"setOnAnalysed\",value:function(e){this.config.onAnalysed=e}}]),e}();l.download=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"audio\";a.default.forceDownload(e,t+\".wav\")},t.default=l},function(e,t,n){\"use strict\";function i(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}Object.defineProperty(t,\"__esModule\",{value:!0});var r=function(){function e(e,t){for(var n=0;n0;)t[i]=arguments[i+1];return t.reduce(function(t,i){return t+n(e[\"border-\"+i+\"-width\"])},0)}function r(e){for(var t=[\"top\",\"right\",\"bottom\",\"left\"],i={},r=0,o=t;r0},b.prototype.connect_=function(){h&&!this.connected_&&(document.addEventListener(\"transitionend\",this.onTransitionEnd_),window.addEventListener(\"resize\",this.refresh),y?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener(\"DOMSubtreeModified\",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},b.prototype.disconnect_=function(){h&&this.connected_&&(document.removeEventListener(\"transitionend\",this.onTransitionEnd_),window.removeEventListener(\"resize\",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener(\"DOMSubtreeModified\",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},b.prototype.onTransitionEnd_=function(e){var t=e.propertyName;void 0===t&&(t=\"\"),v.some(function(e){return!!~t.indexOf(e)})&&this.refresh()},b.getInstance=function(){return this.instance_||(this.instance_=new b),this.instance_},b.instance_=null;var _=function(e,t){for(var n=0,i=Object.keys(t);n0};var k=\"undefined\"!=typeof WeakMap?new WeakMap:new d,O=function(e){if(!(this instanceof O))throw new TypeError(\"Cannot call a class as a function.\");if(!arguments.length)throw new TypeError(\"1 argument required, but only 0 present.\");var t=b.getInstance(),n=new T(e,t,this);k.set(this,n)};[\"observe\",\"unobserve\",\"disconnect\"].forEach(function(e){O.prototype[e]=function(){return(t=k.get(this))[e].apply(t,arguments);var t}});var C=function(){return void 0!==f.ResizeObserver?f.ResizeObserver:O}();t.default=C}.call(t,n(28))},function(e,t,n){function i(e,t){e&&Object.keys(e).forEach(function(n){t(e[n],n)})}function r(e,t){return{}.hasOwnProperty.call(e,t)}function o(e,t,n){function c(e,t){var n=this;this.tag=e,this.attribs=t||{},this.tagPosition=f.length,this.text=\"\",this.updateParentNodeText=function(){if(x.length){x[x.length-1].text+=n.text}}}function d(e,n){n=n.replace(/[\\x00-\\x20]+/g,\"\"),n=n.replace(/<\\!\\-\\-.*?\\-\\-\\>/g,\"\");var i=n.match(/^([a-zA-Z]+)\\:/);if(!i)return!1;var o=i[1].toLowerCase();return r(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(o):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(o)}function h(e,t){return t?(e=e.split(/\\s+/),e.filter(function(e){return-1!==t.indexOf(e)}).join(\" \")):e}var f=\"\";t?(t=s(o.defaults,t),t.parser?t.parser=s(u,t.parser):t.parser=u):(t=o.defaults,t.parser=u);var p,m,g=t.nonTextTags||[\"script\",\"style\",\"textarea\"];t.allowedAttributes&&(p={},m={},i(t.allowedAttributes,function(e,t){p[t]=[];var n=[];e.forEach(function(e){e.indexOf(\"*\")>=0?n.push(l(e).replace(/\\\\\\*/g,\".*\")):p[t].push(e)}),m[t]=new RegExp(\"^(\"+n.join(\"|\")+\")$\")}));var v={};i(t.allowedClasses,function(e,t){p&&(r(p,t)||(p[t]=[]),p[t].push(\"class\")),v[t]=e});var y,b={};i(t.transformTags,function(e,t){var n;\"function\"==typeof e?n=e:\"string\"==typeof e&&(n=o.simpleTransform(e)),\"*\"===t?y=n:b[t]=n});var _=0,x=[],w={},M={},S=!1,E=0,T=new a.Parser({onopentag:function(e,n){if(S)return void E++;var o=new c(e,n);x.push(o);var a,s=!1,l=!!o.text;r(b,e)&&(a=b[e](e,n),o.attribs=n=a.attribs,void 0!==a.text&&(o.innerText=a.text),e!==a.tagName&&(o.name=e=a.tagName,M[_]=a.tagName)),y&&(a=y(e,n),o.attribs=n=a.attribs,e!==a.tagName&&(o.name=e=a.tagName,M[_]=a.tagName)),t.allowedTags&&-1===t.allowedTags.indexOf(e)&&(s=!0,-1!==g.indexOf(e)&&(S=!0,E=1),w[_]=!0),_++,s||(f+=\"<\"+e,(!p||r(p,e)||p[\"*\"])&&i(n,function(t,n){if(!p||r(p,e)&&-1!==p[e].indexOf(n)||p[\"*\"]&&-1!==p[\"*\"].indexOf(n)||r(m,e)&&m[e].test(n)||m[\"*\"]&&m[\"*\"].test(n)){if((\"href\"===n||\"src\"===n)&&d(e,t))return void delete o.attribs[n];if(\"class\"===n&&(t=h(t,v[e]),!t.length))return void delete o.attribs[n];f+=\" \"+n,t.length&&(f+='=\"'+t+'\"')}else delete o.attribs[n]}),-1!==t.selfClosing.indexOf(e)?f+=\" />\":(f+=\">\",!o.innerText||l||t.textFilter||(f+=o.innerText)))},ontext:function(e){if(!S){var n,i=x[x.length-1];if(i&&(n=i.tag,e=void 0!==i.innerText?i.innerText:e),\"script\"===n||\"style\"===n?f+=e:t.textFilter?f+=t.textFilter(e):f+=e,x.length){x[x.length-1].text+=e}}},onclosetag:function(e){if(S){if(--E)return;S=!1}var n=x.pop();if(n){if(S=!1,_--,w[_])return delete w[_],void n.updateParentNodeText();if(M[_]&&(e=M[_],delete M[_]),t.exclusiveFilter&&t.exclusiveFilter(n))return void(f=f.substr(0,n.tagPosition));n.updateParentNodeText(),-1===t.selfClosing.indexOf(e)&&(f+=\"\")}}},t.parser);return T.write(e),T.end(),f}var a=n(72),s=n(610),l=n(590);e.exports=o;var u={decodeEntities:!0};o.defaults={allowedTags:[\"h3\",\"h4\",\"h5\",\"h6\",\"blockquote\",\"p\",\"a\",\"ul\",\"ol\",\"nl\",\"li\",\"b\",\"i\",\"strong\",\"em\",\"strike\",\"code\",\"hr\",\"br\",\"div\",\"table\",\"thead\",\"caption\",\"tbody\",\"tr\",\"th\",\"td\",\"pre\"],allowedAttributes:{a:[\"href\",\"name\",\"target\"],img:[\"src\"]},selfClosing:[\"img\",\"br\",\"hr\",\"area\",\"base\",\"basefont\",\"input\",\"link\",\"meta\"],allowedSchemes:[\"http\",\"https\",\"ftp\",\"mailto\"],allowedSchemesByTag:{}},o.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(i,r){var o;if(n)for(o in t)r[o]=t[o];else r=t;return{tagName:e,attribs:r}}}},function(e,t,n){\"use strict\";function i(){if(!c){var e=u.timesOutAt;d?x():d=!0,_(o,e)}}function r(){var e=u,t=u.next;if(u===t)u=null;else{var n=u.previous;u=n.next=t,t.previous=n}e.next=e.previous=null,(e=e.callback)(f)}function o(e){c=!0,f.didTimeout=e;try{if(e)for(;null!==u;){var n=t.unstable_now();if(!(u.timesOutAt<=n))break;do{r()}while(null!==u&&u.timesOutAt<=n)}else if(null!==u)do{r()}while(null!==u&&0=P-n){if(!(-1!==k&&k<=n))return void(O||(O=!0,a(I)));e=!0}if(k=-1,n=E,E=null,null!==n){C=!0;try{n(e)}finally{C=!1}}}},!1);var I=function(e){O=!1;var t=e-P+R;tt&&(t=8),R=tn){r=o;break}o=o.next}while(o!==u);null===r?r=u:r===u&&(u=e,i(u)),n=r.previous,n.next=r.previous=e,e.next=r,e.previous=n}return e},t.unstable_cancelScheduledWork=function(e){var t=e.next;if(null!==t){if(t===e)u=null;else{e===u&&(u=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}}},function(e,t,n){\"use strict\";e.exports=n(593)},function(e,t,n){(function(e,t){!function(e,n){\"use strict\";function i(e){\"function\"!=typeof e&&(e=new Function(\"\"+e));for(var t=new Array(arguments.length-1),n=0;na+1e3&&(l.update(1e3*s/(e-a),100),a=e,s=0,c)){var t=performance.memory;c.update(t.usedJSHeapSize/1048576,t.jsHeapSizeLimit/1048576)}return e},update:function(){o=this.end()},domElement:r,setMode:n}};return e.Panel=function(e,t,n){var i=1/0,r=0,o=Math.round,a=o(window.devicePixelRatio||1),s=80*a,l=48*a,u=3*a,c=2*a,d=3*a,h=15*a,f=74*a,p=30*a,m=document.createElement(\"canvas\");m.width=s,m.height=l,m.style.cssText=\"width:80px;height:48px\";var g=m.getContext(\"2d\");return g.font=\"bold \"+9*a+\"px Helvetica,Arial,sans-serif\",g.textBaseline=\"top\",g.fillStyle=n,g.fillRect(0,0,s,l),g.fillStyle=t,g.fillText(e,u,c),g.fillRect(d,h,f,p),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(d,h,f,p),{dom:m,update:function(l,v){i=Math.min(i,l),r=Math.max(r,l),g.fillStyle=n,g.globalAlpha=1,g.fillRect(0,0,s,h),g.fillStyle=t,g.fillText(o(l)+\" \"+e+\" (\"+o(i)+\"-\"+o(r)+\")\",u,c),g.drawImage(m,d+a,h,f-a,p,d,h,f-a,p),g.fillRect(d+f-a,h,a,p),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(d+f-a,h,a,o((1-l/v)*p))}}},e})},function(e,t,n){function i(){r.call(this)}e.exports=i;var r=n(86).EventEmitter;n(26)(i,r),i.Readable=n(138),i.Writable=n(586),i.Duplex=n(581),i.Transform=n(585),i.PassThrough=n(584),i.Stream=i,i.prototype.pipe=function(e,t){function n(t){e.writable&&!1===e.write(t)&&u.pause&&u.pause()}function i(){u.readable&&u.resume&&u.resume()}function o(){c||(c=!0,e.end())}function a(){c||(c=!0,\"function\"==typeof e.destroy&&e.destroy())}function s(e){if(l(),0===r.listenerCount(this,\"error\"))throw e}function l(){u.removeListener(\"data\",n),e.removeListener(\"drain\",i),u.removeListener(\"end\",o),u.removeListener(\"close\",a),u.removeListener(\"error\",s),e.removeListener(\"error\",s),u.removeListener(\"end\",l),u.removeListener(\"close\",l),e.removeListener(\"close\",l)}var u=this;u.on(\"data\",n),e.on(\"drain\",i),e._isStdio||t&&!1===t.end||(u.on(\"end\",o),u.on(\"close\",a));var c=!1;return u.on(\"error\",s),e.on(\"error\",s),u.on(\"end\",l),u.on(\"close\",l),e.on(\"close\",l),e.emit(\"pipe\",u),e}},function(e,t){e.exports=function(e){var t=\"undefined\"!=typeof window&&window.location;if(!t)throw new Error(\"fixUrls requires window.location\");if(!e||\"string\"!=typeof e)return e;var n=t.protocol+\"//\"+t.host,i=n+t.pathname.replace(/\\/[^\\/]*$/,\"/\");return e.replace(/url\\s*\\(((?:[^)(]|\\((?:[^)(]+|\\([^)(]*\\))*\\))*)\\)/gi,function(e,t){var r=t.trim().replace(/^\"(.*)\"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\\/\\/|https:\\/\\/|file:\\/\\/\\/)/i.test(r))return e;var o;return o=0===r.indexOf(\"//\")?r:0===r.indexOf(\"/\")?n+r:i+r.replace(/^\\.\\//,\"\"),\"url(\"+JSON.stringify(o)+\")\"})}},function(e,t,n){var i=n(26),r=n(489);e.exports=function(e){function t(n,i){if(!(this instanceof t))return new t(n,i);e.BufferGeometry.call(this),Array.isArray(n)?i=i||{}:\"object\"==typeof n&&(i=n,n=[]),i=i||{},this.addAttribute(\"position\",new e.BufferAttribute(void 0,3)),this.addAttribute(\"lineNormal\",new e.BufferAttribute(void 0,2)),this.addAttribute(\"lineMiter\",new e.BufferAttribute(void 0,1)),i.distances&&this.addAttribute(\"lineDistance\",new e.BufferAttribute(void 0,1)),\"function\"==typeof this.setIndex?this.setIndex(new e.BufferAttribute(void 0,1)):this.addAttribute(\"index\",new e.BufferAttribute(void 0,1)),this.update(n,i.closed)}return i(t,e.BufferGeometry),t.prototype.update=function(e,t){e=e||[];var n=r(e,t);t&&(e=e.slice(),e.push(e[0]),n.push(n[0]));var i=this.getAttribute(\"position\"),o=this.getAttribute(\"lineNormal\"),a=this.getAttribute(\"lineMiter\"),s=this.getAttribute(\"lineDistance\"),l=\"function\"==typeof this.getIndex?this.getIndex():this.getAttribute(\"index\"),u=Math.max(0,6*(e.length-1));if(!i.array||e.length!==i.array.length/3/2){var c=2*e.length;i.array=new Float32Array(3*c),o.array=new Float32Array(2*c),a.array=new Float32Array(c),l.array=new Uint16Array(u),s&&(s.array=new Float32Array(c))}void 0!==i.count&&(i.count=c),i.needsUpdate=!0,void 0!==o.count&&(o.count=c),o.needsUpdate=!0,void 0!==a.count&&(a.count=c),a.needsUpdate=!0,void 0!==l.count&&(l.count=u),l.needsUpdate=!0,s&&(void 0!==s.count&&(s.count=c),s.needsUpdate=!0);var d=0,h=0,f=0,p=l.array;e.forEach(function(e,t,n){var r=d;if(p[h++]=r+0,p[h++]=r+1,p[h++]=r+2,p[h++]=r+2,p[h++]=r+1,p[h++]=r+3,i.setXYZ(d++,e[0],e[1],0),i.setXYZ(d++,e[0],e[1],0),s){var o=t/(n.length-1);s.setX(f++,o),s.setX(f++,o)}});var m=0,g=0;n.forEach(function(e){var t=e[0],n=e[1];o.setXY(m++,t[0],t[1]),o.setXY(m++,t[0],t[1]),a.setX(g++,-n),a.setX(g++,n)})},t}},function(e,t,n){var i=n(126);e.exports=function(e){return function(t){t=t||{};var n=\"number\"==typeof t.thickness?t.thickness:.1,r=\"number\"==typeof t.opacity?t.opacity:1,o=null!==t.diffuse?t.diffuse:16777215;delete t.thickness,delete t.opacity,delete t.diffuse,delete t.precision;var a=i({uniforms:{thickness:{type:\"f\",value:n},opacity:{type:\"f\",value:r},diffuse:{type:\"c\",value:new e.Color(o)}},vertexShader:[\"uniform float thickness;\",\"attribute float lineMiter;\",\"attribute vec2 lineNormal;\",\"void main() {\",\"vec3 pointPos = position.xyz + vec3(lineNormal * thickness / 2.0 * lineMiter, 0.0);\",\"gl_Position = projectionMatrix * modelViewMatrix * vec4(pointPos, 1.0);\",\"}\"].join(\"\\n\"),fragmentShader:[\"uniform vec3 diffuse;\",\"uniform float opacity;\",\"void main() {\",\"gl_FragColor = vec4(diffuse, opacity);\",\"}\"].join(\"\\n\")},t);return(0|(parseInt(e.REVISION,10)||0))<72&&(a.attributes={lineMiter:{type:\"f\",value:0},lineNormal:{type:\"v2\",value:new e.Vector2}}),a}}},function(e,t,n){(function(e){function i(e,t){this._id=e,this._clearFn=t}var r=void 0!==e&&e||\"undefined\"!=typeof self&&self||window,o=Function.prototype.apply;t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(595),t.setImmediate=\"undefined\"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate=\"undefined\"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,n(28))},function(e,t,n){(function(t){function n(e,t){function n(){if(!r){if(i(\"throwDeprecation\"))throw new Error(t);i(\"traceDeprecation\")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}if(i(\"noDeprecation\"))return e;var r=!1;return n}function i(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&\"true\"===String(n).toLowerCase()}e.exports=n}).call(t,n(28))},function(e,t,n){\"use strict\";function i(e){return!0===e||!1===e}e.exports=i},function(e,t,n){\"use strict\";function i(e){return\"function\"==typeof e}e.exports=i},function(e,t,n){\"use strict\";function i(e){var t,n;if(!r(e))return!1;if(!(t=e.length))return!1;for(var i=0;i=this.text.length)return;e=this.text[this.place++]}switch(this.state){case o:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},i.prototype.afterquote=function(e){if('\"'===e)return this.word+='\"',void(this.state=4);if(u.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error(\"havn't handled \\\"\"+e+'\" in afterquote yet, index '+this.place)},i.prototype.afterItem=function(e){return\",\"===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=o)):\"]\"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=o,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},i.prototype.number=function(e){if(c.test(e))return void(this.word+=e);if(u.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error(\"havn't handled \\\"\"+e+'\" in number yet, index '+this.place)},i.prototype.quoted=function(e){if('\"'===e)return void(this.state=5);this.word+=e},i.prototype.keyword=function(e){if(l.test(e))return void(this.word+=e);if(\"[\"===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=o)}if(u.test(e))return void this.afterItem(e);throw new Error(\"havn't handled \\\"\"+e+'\" in keyword yet, index '+this.place)},i.prototype.neutral=function(e){if(s.test(e))return this.word=e,void(this.state=2);if('\"'===e)return this.word=\"\",void(this.state=4);if(c.test(e))return this.word=e,void(this.state=3);if(u.test(e))return void this.afterItem(e);throw new Error(\"havn't handled \\\"\"+e+'\" in neutral yet, index '+this.place)},i.prototype.output=function(){for(;this.place0?s(r()):ee.y<0&&l(r()),Q.copy($),I.update()}function p(e){Z.set(e.clientX,e.clientY),J.subVectors(Z,K),ie(J.x,J.y),K.copy(Z),I.update()}function m(e){}function g(e){e.deltaY<0?l(r()):e.deltaY>0&&s(r()),I.update()}function v(e){switch(e.keyCode){case I.keys.UP:ie(0,I.keyPanSpeed),I.update();break;case I.keys.BOTTOM:ie(0,-I.keyPanSpeed),I.update();break;case I.keys.LEFT:ie(I.keyPanSpeed,0),I.update();break;case I.keys.RIGHT:ie(-I.keyPanSpeed,0),I.update()}}function y(e){q.set(e.touches[0].pageX,e.touches[0].pageY)}function b(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);Q.set(0,i)}function _(e){K.set(e.touches[0].pageX,e.touches[0].pageY)}function x(e){Y.set(e.touches[0].pageX,e.touches[0].pageY),X.subVectors(Y,q);var t=I.domElement===document?I.domElement.body:I.domElement;o(2*Math.PI*X.x/t.clientWidth*I.rotateSpeed),a(2*Math.PI*X.y/t.clientHeight*I.rotateSpeed),q.copy(Y),I.update()}function w(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);$.set(0,i),ee.subVectors($,Q),ee.y>0?l(r()):ee.y<0&&s(r()),Q.copy($),I.update()}function M(e){Z.set(e.touches[0].pageX,e.touches[0].pageY),J.subVectors(Z,K),ie(J.x,J.y),K.copy(Z),I.update()}function S(e){}function E(e){if(!1!==I.enabled){if(e.preventDefault(),e.button===I.mouseButtons.ORBIT){if(!1===I.enableRotate)return;u(e),F=z.ROTATE}else if(e.button===I.mouseButtons.ZOOM){if(!1===I.enableZoom)return;c(e),F=z.DOLLY}else if(e.button===I.mouseButtons.PAN){if(!1===I.enablePan)return;d(e),F=z.PAN}F!==z.NONE&&(document.addEventListener(\"mousemove\",T,!1),document.addEventListener(\"mouseup\",k,!1),I.dispatchEvent(N))}}function T(e){if(!1!==I.enabled)if(e.preventDefault(),F===z.ROTATE){if(!1===I.enableRotate)return;h(e)}else if(F===z.DOLLY){if(!1===I.enableZoom)return;f(e)}else if(F===z.PAN){if(!1===I.enablePan)return;p(e)}}function k(e){!1!==I.enabled&&(m(e),document.removeEventListener(\"mousemove\",T,!1),document.removeEventListener(\"mouseup\",k,!1),I.dispatchEvent(B),F=z.NONE)}function O(e){!1===I.enabled||!1===I.enableZoom||F!==z.NONE&&F!==z.ROTATE||(e.preventDefault(),e.stopPropagation(),g(e),I.dispatchEvent(N),I.dispatchEvent(B))}function C(e){!1!==I.enabled&&!1!==I.enableKeys&&!1!==I.enablePan&&v(e)}function P(e){if(!1!==I.enabled){switch(e.touches.length){case 1:if(!1===I.enableRotate)return;y(e),F=z.TOUCH_ROTATE;break;case 2:if(!1===I.enableZoom)return;b(e),F=z.TOUCH_DOLLY;break;case 3:if(!1===I.enablePan)return;_(e),F=z.TOUCH_PAN;break;default:F=z.NONE}F!==z.NONE&&I.dispatchEvent(N)}}function A(e){if(!1!==I.enabled)switch(e.preventDefault(),e.stopPropagation(),e.touches.length){case 1:if(!1===I.enableRotate)return;if(F!==z.TOUCH_ROTATE)return;x(e);break;case 2:if(!1===I.enableZoom)return;if(F!==z.TOUCH_DOLLY)return;w(e);break;case 3:if(!1===I.enablePan)return;if(F!==z.TOUCH_PAN)return;M(e);break;default:F=z.NONE}}function R(e){!1!==I.enabled&&(S(e),I.dispatchEvent(B),F=z.NONE)}function L(e){e.preventDefault()}this.object=e,this.domElement=void 0!==t?t:document,this.enabled=!0,this.target=new i.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.25,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={ORBIT:i.MOUSE.LEFT,ZOOM:i.MOUSE.MIDDLE,PAN:i.MOUSE.RIGHT},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return U.phi},this.getAzimuthalAngle=function(){return U.theta},this.reset=function(){I.target.copy(I.target0),I.object.position.copy(I.position0),I.object.zoom=I.zoom0,I.object.updateProjectionMatrix(),I.dispatchEvent(D),I.update(),F=z.NONE},this.update=function(){var t=new i.Vector3,r=(new i.Quaternion).setFromUnitVectors(e.up,new i.Vector3(0,1,0)),a=r.clone().inverse(),s=new i.Vector3,l=new i.Quaternion;return function(){var e=I.object.position;return t.copy(e).sub(I.target),t.applyQuaternion(r),U.setFromVector3(t),I.autoRotate&&F===z.NONE&&o(n()),U.theta+=W.theta,U.phi+=W.phi,U.theta=Math.max(I.minAzimuthAngle,Math.min(I.maxAzimuthAngle,U.theta)),U.phi=Math.max(I.minPolarAngle,Math.min(I.maxPolarAngle,U.phi)),U.makeSafe(),U.radius*=G,U.radius=Math.max(I.minDistance,Math.min(I.maxDistance,U.radius)),I.target.add(V),t.setFromSpherical(U),t.applyQuaternion(a),e.copy(I.target).add(t),I.object.lookAt(I.target),!0===I.enableDamping?(W.theta*=1-I.dampingFactor,W.phi*=1-I.dampingFactor):W.set(0,0,0),G=1,V.set(0,0,0),!!(H||s.distanceToSquared(I.object.position)>j||8*(1-l.dot(I.object.quaternion))>j)&&(I.dispatchEvent(D),s.copy(I.object.position),l.copy(I.object.quaternion),H=!1,!0)}}(),this.dispose=function(){I.domElement.removeEventListener(\"contextmenu\",L,!1),I.domElement.removeEventListener(\"mousedown\",E,!1),I.domElement.removeEventListener(\"wheel\",O,!1),I.domElement.removeEventListener(\"touchstart\",P,!1),I.domElement.removeEventListener(\"touchend\",R,!1),I.domElement.removeEventListener(\"touchmove\",A,!1),document.removeEventListener(\"mousemove\",T,!1),document.removeEventListener(\"mouseup\",k,!1),window.removeEventListener(\"keydown\",C,!1)};var I=this,D={type:\"change\"},N={type:\"start\"},B={type:\"end\"},z={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},F=z.NONE,j=1e-6,U=new i.Spherical,W=new i.Spherical,G=1,V=new i.Vector3,H=!1,q=new i.Vector2,Y=new i.Vector2,X=new i.Vector2,K=new i.Vector2,Z=new i.Vector2,J=new i.Vector2,Q=new i.Vector2,$=new i.Vector2,ee=new i.Vector2,te=function(){var e=new i.Vector3;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),V.add(e)}}(),ne=function(){var e=new i.Vector3;return function(t,n){e.setFromMatrixColumn(n,1),e.multiplyScalar(t),V.add(e)}}(),ie=function(){var e=new i.Vector3;return function(t,n){var r=I.domElement===document?I.domElement.body:I.domElement;if(I.object instanceof i.PerspectiveCamera){var o=I.object.position;e.copy(o).sub(I.target);var a=e.length();a*=Math.tan(I.object.fov/2*Math.PI/180),te(2*t*a/r.clientHeight,I.object.matrix),ne(2*n*a/r.clientHeight,I.object.matrix)}else I.object instanceof i.OrthographicCamera?(te(t*(I.object.right-I.object.left)/I.object.zoom/r.clientWidth,I.object.matrix),ne(n*(I.object.top-I.object.bottom)/I.object.zoom/r.clientHeight,I.object.matrix)):(console.warn(\"WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.\"),I.enablePan=!1)}}();I.domElement.addEventListener(\"contextmenu\",L,!1),I.domElement.addEventListener(\"mousedown\",E,!1),I.domElement.addEventListener(\"wheel\",O,!1),I.domElement.addEventListener(\"touchstart\",P,!1),I.domElement.addEventListener(\"touchend\",R,!1),I.domElement.addEventListener(\"touchmove\",A,!1),window.addEventListener(\"keydown\",C,!1),this.update()},i.OrbitControls.prototype=Object.create(i.EventDispatcher.prototype),i.OrbitControls.prototype.constructor=i.OrbitControls,Object.defineProperties(i.OrbitControls.prototype,{center:{get:function(){return console.warn(\"THREE.OrbitControls: .center has been renamed to .target\"),this.target}},noZoom:{get:function(){return console.warn(\"THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.\"),!this.enableZoom},set:function(e){console.warn(\"THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.\"),this.enableZoom=!e}},noRotate:{get:function(){return console.warn(\"THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.\"),!this.enableRotate},set:function(e){console.warn(\"THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.\"),this.enableRotate=!e}},noPan:{get:function(){return console.warn(\"THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.\"),!this.enablePan},set:function(e){console.warn(\"THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.\"),this.enablePan=!e}},noKeys:{get:function(){return console.warn(\"THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.\"),!this.enableKeys},set:function(e){console.warn(\"THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.\"),this.enableKeys=!e}},staticMoving:{get:function(){return console.warn(\"THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.\"),!this.enableDamping},set:function(e){console.warn(\"THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.\"),this.enableDamping=!e}},dynamicDampingFactor:{get:function(){return console.warn(\"THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.\"),this.dampingFactor},set:function(e){console.warn(\"THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.\"),this.dampingFactor=e}}})},function(e,t,n){var i=n(12);i.MTLLoader=function(e){this.manager=void 0!==e?e:i.DefaultLoadingManager},i.MTLLoader.prototype={constructor:i.MTLLoader,load:function(e,t,n,r){var o=this,a=new i.FileLoader(this.manager);a.setPath(this.path),a.load(e,function(e){t(o.parse(e))},n,r)},setPath:function(e){this.path=e},setTexturePath:function(e){this.texturePath=e},setBaseUrl:function(e){console.warn(\"THREE.MTLLoader: .setBaseUrl() is deprecated. Use .setTexturePath( path ) for texture path or .setPath( path ) for general base path instead.\"),this.setTexturePath(e)},setCrossOrigin:function(e){this.crossOrigin=e},setMaterialOptions:function(e){this.materialOptions=e},parse:function(e){for(var t=e.split(\"\\n\"),n={},r=/\\s+/,o={},a=0;a=0?s.substring(0,l):s;u=u.toLowerCase();var c=l>=0?s.substring(l+1):\"\";if(c=c.trim(),\"newmtl\"===u)n={name:c},o[c]=n;else if(n)if(\"ka\"===u||\"kd\"===u||\"ks\"===u){var d=c.split(r,3);n[u]=[parseFloat(d[0]),parseFloat(d[1]),parseFloat(d[2])]}else n[u]=c}}var h=new i.MTLLoader.MaterialCreator(this.texturePath||this.path,this.materialOptions);return h.setCrossOrigin(this.crossOrigin),h.setManager(this.manager),h.setMaterials(o),h}},i.MTLLoader.MaterialCreator=function(e,t){this.baseUrl=e||\"\",this.options=t,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.side=this.options&&this.options.side?this.options.side:i.FrontSide,this.wrap=this.options&&this.options.wrap?this.options.wrap:i.RepeatWrapping},i.MTLLoader.MaterialCreator.prototype={constructor:i.MTLLoader.MaterialCreator,setCrossOrigin:function(e){this.crossOrigin=e},setManager:function(e){this.manager=e},setMaterials:function(e){this.materialsInfo=this.convert(e),this.materials={},this.materialsArray=[],this.nameLookup={}},convert:function(e){if(!this.options)return e;var t={};for(var n in e){var i=e[n],r={};t[n]=r;for(var o in i){var a=!0,s=i[o],l=o.toLowerCase();switch(l){case\"kd\":case\"ka\":case\"ks\":this.options&&this.options.normalizeRGB&&(s=[s[0]/255,s[1]/255,s[2]/255]),this.options&&this.options.ignoreZeroRGBs&&0===s[0]&&0===s[1]&&0===s[2]&&(a=!1)}a&&(r[l]=s)}}return t},preload:function(){for(var e in this.materialsInfo)this.create(e)},getIndex:function(e){return this.nameLookup[e]},getAsArray:function(){var e=0;for(var t in this.materialsInfo)this.materialsArray[e]=this.create(t),this.nameLookup[t]=e,e++;return this.materialsArray},create:function(e){return void 0===this.materials[e]&&this.createMaterial_(e),this.materials[e]},createMaterial_:function(e){function t(e,t){return\"string\"!=typeof t||\"\"===t?\"\":/^https?:\\/\\//i.test(t)?t:e+t}function n(e,n){if(!a[e]){var i=r.getTextureParams(n,a),o=r.loadTexture(t(r.baseUrl,i.url));o.repeat.copy(i.scale),o.offset.copy(i.offset),o.wrapS=r.wrap,o.wrapT=r.wrap,a[e]=o}}var r=this,o=this.materialsInfo[e],a={name:e,side:this.side};for(var s in o){var l=o[s];if(\"\"!==l)switch(s.toLowerCase()){case\"kd\":a.color=(new i.Color).fromArray(l);break;case\"ks\":a.specular=(new i.Color).fromArray(l);break;case\"map_kd\":n(\"map\",l);break;case\"map_ks\":n(\"specularMap\",l);break;case\"map_bump\":case\"bump\":n(\"bumpMap\",l);break;case\"ns\":a.shininess=parseFloat(l);break;case\"d\":l<1&&(a.opacity=l,a.transparent=!0);break;case\"Tr\":l>0&&(a.opacity=1-l,a.transparent=!0)}}return this.materials[e]=new i.MeshPhongMaterial(a),this.materials[e]},getTextureParams:function(e,t){var n,r={scale:new i.Vector2(1,1),offset:new i.Vector2(0,0)},o=e.split(/\\s+/);return n=o.indexOf(\"-bm\"),n>=0&&(t.bumpScale=parseFloat(o[n+1]),o.splice(n,2)),n=o.indexOf(\"-s\"),n>=0&&(r.scale.set(parseFloat(o[n+1]),parseFloat(o[n+2])),o.splice(n,4)),n=o.indexOf(\"-o\"),n>=0&&(r.offset.set(parseFloat(o[n+1]),parseFloat(o[n+2])),o.splice(n,4)),r.url=o.join(\" \").trim(),r},loadTexture:function(e,t,n,r,o){var a,s=i.Loader.Handlers.get(e),l=void 0!==this.manager?this.manager:i.DefaultLoadingManager;return null===s&&(s=new i.TextureLoader(l)),s.setCrossOrigin&&s.setCrossOrigin(this.crossOrigin),a=s.load(e,n,r,o),void 0!==t&&(a.mapping=t),a}}},function(e,t,n){var i=n(12);i.OBJLoader=function(e){this.manager=void 0!==e?e:i.DefaultLoadingManager,this.materials=null,this.regexp={vertex_pattern:/^v\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)/,normal_pattern:/^vn\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)/,uv_pattern:/^vt\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)/,face_vertex:/^f\\s+(-?\\d+)\\s+(-?\\d+)\\s+(-?\\d+)(?:\\s+(-?\\d+))?/,face_vertex_uv:/^f\\s+(-?\\d+)\\/(-?\\d+)\\s+(-?\\d+)\\/(-?\\d+)\\s+(-?\\d+)\\/(-?\\d+)(?:\\s+(-?\\d+)\\/(-?\\d+))?/,face_vertex_uv_normal:/^f\\s+(-?\\d+)\\/(-?\\d+)\\/(-?\\d+)\\s+(-?\\d+)\\/(-?\\d+)\\/(-?\\d+)\\s+(-?\\d+)\\/(-?\\d+)\\/(-?\\d+)(?:\\s+(-?\\d+)\\/(-?\\d+)\\/(-?\\d+))?/,face_vertex_normal:/^f\\s+(-?\\d+)\\/\\/(-?\\d+)\\s+(-?\\d+)\\/\\/(-?\\d+)\\s+(-?\\d+)\\/\\/(-?\\d+)(?:\\s+(-?\\d+)\\/\\/(-?\\d+))?/,object_pattern:/^[og]\\s*(.+)?/,smoothing_pattern:/^s\\s+(\\d+|on|off)/,material_library_pattern:/^mtllib /,material_use_pattern:/^usemtl /}},i.OBJLoader.prototype={constructor:i.OBJLoader,load:function(e,t,n,r){var o=this,a=new i.FileLoader(o.manager);a.setPath(this.path),a.load(e,function(e){t(o.parse(e))},n,r)},setPath:function(e){this.path=e},setMaterials:function(e){this.materials=e},_createParserState:function(){var e={objects:[],object:{},vertices:[],normals:[],uvs:[],materialLibraries:[],startObject:function(e,t){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=e,void(this.object.fromDeclaration=!1!==t);var n=this.object&&\"function\"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&\"function\"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:e||\"\",fromDeclaration:!1!==t,geometry:{vertices:[],normals:[],uvs:[]},materials:[],smooth:!0,startMaterial:function(e,t){var n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);var i={index:this.materials.length,name:e||\"\",mtllib:Array.isArray(t)&&t.length>0?t[t.length-1]:\"\",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(e){var t={index:\"number\"==typeof e?e:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return t.clone=this.clone.bind(t),t}};return this.materials.push(i),i},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){var t=this.currentMaterial();if(t&&-1===t.groupEnd&&(t.groupEnd=this.geometry.vertices.length/3,t.groupCount=t.groupEnd-t.groupStart,t.inherited=!1),e&&this.materials.length>1)for(var n=this.materials.length-1;n>=0;n--)this.materials[n].groupCount<=0&&this.materials.splice(n,1);return e&&0===this.materials.length&&this.materials.push({name:\"\",smooth:this.smooth}),t}},n&&n.name&&\"function\"==typeof n.clone){var i=n.clone(0);i.inherited=!0,this.object.materials.push(i)}this.objects.push(this.object)},finalize:function(){this.object&&\"function\"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseNormalIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseUVIndex:function(e,t){var n=parseInt(e,10);return 2*(n>=0?n-1:n+t/2)},addVertex:function(e,t,n){var i=this.vertices,r=this.object.geometry.vertices;r.push(i[e+0]),r.push(i[e+1]),r.push(i[e+2]),r.push(i[t+0]),r.push(i[t+1]),r.push(i[t+2]),r.push(i[n+0]),r.push(i[n+1]),r.push(i[n+2])},addVertexLine:function(e){var t=this.vertices,n=this.object.geometry.vertices;n.push(t[e+0]),n.push(t[e+1]),n.push(t[e+2])},addNormal:function(e,t,n){var i=this.normals,r=this.object.geometry.normals;r.push(i[e+0]),r.push(i[e+1]),r.push(i[e+2]),r.push(i[t+0]),r.push(i[t+1]),r.push(i[t+2]),r.push(i[n+0]),r.push(i[n+1]),r.push(i[n+2])},addUV:function(e,t,n){var i=this.uvs,r=this.object.geometry.uvs;r.push(i[e+0]),r.push(i[e+1]),r.push(i[t+0]),r.push(i[t+1]),r.push(i[n+0]),r.push(i[n+1])},addUVLine:function(e){var t=this.uvs,n=this.object.geometry.uvs;n.push(t[e+0]),n.push(t[e+1])},addFace:function(e,t,n,i,r,o,a,s,l,u,c,d){var h,f=this.vertices.length,p=this.parseVertexIndex(e,f),m=this.parseVertexIndex(t,f),g=this.parseVertexIndex(n,f);if(void 0===i?this.addVertex(p,m,g):(h=this.parseVertexIndex(i,f),this.addVertex(p,m,h),this.addVertex(m,g,h)),void 0!==r){var v=this.uvs.length;p=this.parseUVIndex(r,v),m=this.parseUVIndex(o,v),g=this.parseUVIndex(a,v),void 0===i?this.addUV(p,m,g):(h=this.parseUVIndex(s,v),this.addUV(p,m,h),this.addUV(m,g,h))}if(void 0!==l){var y=this.normals.length;p=this.parseNormalIndex(l,y),m=l===u?p:this.parseNormalIndex(u,y),g=l===c?p:this.parseNormalIndex(c,y),void 0===i?this.addNormal(p,m,g):(h=this.parseNormalIndex(d,y),this.addNormal(p,m,h),this.addNormal(m,g,h))}},addLineGeometry:function(e,t){this.object.geometry.type=\"Line\";for(var n=this.vertices.length,i=this.uvs.length,r=0,o=e.length;r0?E.addAttribute(\"normal\",new i.BufferAttribute(new Float32Array(w.normals),3)):E.computeVertexNormals(),w.uvs.length>0&&E.addAttribute(\"uv\",new i.BufferAttribute(new Float32Array(w.uvs),2));for(var T=[],k=0,O=M.length;k1){for(var k=0,O=M.length;k0?s(r()):ee.y<0&&l(r()),Q.copy($),I.update()}function p(e){Z.set(e.clientX,e.clientY),J.subVectors(Z,K),ie(J.x,J.y),K.copy(Z),I.update()}function m(e){}function g(e){e.deltaY<0?l(r()):e.deltaY>0&&s(r()),I.update()}function v(e){switch(e.keyCode){case I.keys.UP:ie(0,I.keyPanSpeed),I.update();break;case I.keys.BOTTOM:ie(0,-I.keyPanSpeed),I.update();break;case I.keys.LEFT:ie(I.keyPanSpeed,0),I.update();break;case I.keys.RIGHT:ie(-I.keyPanSpeed,0),I.update()}}function y(e){q.set(e.touches[0].pageX,e.touches[0].pageY)}function b(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);Q.set(0,i)}function _(e){K.set(e.touches[0].pageX,e.touches[0].pageY)}function x(e){Y.set(e.touches[0].pageX,e.touches[0].pageY),X.subVectors(Y,q);var t=I.domElement===document?I.domElement.body:I.domElement;o(2*Math.PI*X.x/t.clientWidth*I.rotateSpeed),a(2*Math.PI*X.y/t.clientHeight*I.rotateSpeed),q.copy(Y),I.update()}function w(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);$.set(0,i),ee.subVectors($,Q),ee.y>0?l(r()):ee.y<0&&s(r()),Q.copy($),I.update()}function M(e){Z.set(e.touches[0].pageX,e.touches[0].pageY),J.subVectors(Z,K),ie(J.x,J.y),K.copy(Z),I.update()}function S(e){}function E(e){if(!1!==I.enabled){if(e.preventDefault(),e.button===I.mouseButtons.ORBIT){if(!1===I.enableRotate)return;u(e),F=z.ROTATE}else if(e.button===I.mouseButtons.ZOOM){if(!1===I.enableZoom)return;c(e),F=z.DOLLY}else if(e.button===I.mouseButtons.PAN){if(!1===I.enablePan)return;d(e),F=z.PAN}F!==z.NONE&&(document.addEventListener(\"mousemove\",T,!1),document.addEventListener(\"mouseup\",k,!1),I.dispatchEvent(N))}}function T(e){if(!1!==I.enabled)if(e.preventDefault(),F===z.ROTATE){if(!1===I.enableRotate)return;h(e)}else if(F===z.DOLLY){if(!1===I.enableZoom)return;f(e)}else if(F===z.PAN){if(!1===I.enablePan)return;p(e)}}function k(e){!1!==I.enabled&&(m(e),document.removeEventListener(\"mousemove\",T,!1),document.removeEventListener(\"mouseup\",k,!1),I.dispatchEvent(B),F=z.NONE)}function O(e){!1===I.enabled||!1===I.enableZoom||F!==z.NONE&&F!==z.ROTATE||(e.preventDefault(),e.stopPropagation(),g(e),I.dispatchEvent(N),I.dispatchEvent(B))}function C(e){!1!==I.enabled&&!1!==I.enableKeys&&!1!==I.enablePan&&v(e)}function P(e){if(!1!==I.enabled){switch(e.touches.length){case 1:if(!1===I.enableRotate)return;y(e),F=z.TOUCH_ROTATE;break;case 2:if(!1===I.enableZoom)return;b(e),F=z.TOUCH_DOLLY;break;case 3:if(!1===I.enablePan)return;_(e),F=z.TOUCH_PAN;break;default:F=z.NONE}F!==z.NONE&&I.dispatchEvent(N)}}function A(e){if(!1!==I.enabled)switch(e.preventDefault(),e.stopPropagation(),e.touches.length){case 1:if(!1===I.enableRotate)return;if(F!==z.TOUCH_ROTATE)return;x(e);break;case 2:if(!1===I.enableZoom)return;if(F!==z.TOUCH_DOLLY)return;w(e);break;case 3:if(!1===I.enablePan)return;if(F!==z.TOUCH_PAN)return;M(e);break;default:F=z.NONE}}function R(e){!1!==I.enabled&&(S(e),I.dispatchEvent(B),F=z.NONE)}function L(e){e.preventDefault()}this.object=e,this.domElement=void 0!==t?t:document,this.enabled=!0,this.target=new i.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.25,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={ORBIT:i.MOUSE.LEFT,ZOOM:i.MOUSE.MIDDLE,PAN:i.MOUSE.RIGHT},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return U.phi},this.getAzimuthalAngle=function(){return U.theta},this.reset=function(){I.target.copy(I.target0),I.object.position.copy(I.position0),I.object.zoom=I.zoom0,I.object.updateProjectionMatrix(),I.dispatchEvent(D),I.update(),F=z.NONE},this.update=function(){var t=new i.Vector3,r=(new i.Quaternion).setFromUnitVectors(e.up,new i.Vector3(0,1,0)),a=r.clone().inverse(),s=new i.Vector3,l=new i.Quaternion;return function(){var e=I.object.position;return t.copy(e).sub(I.target),t.applyQuaternion(r),U.setFromVector3(t),I.autoRotate&&F===z.NONE&&o(n()),U.theta+=W.theta,U.phi+=W.phi,U.theta=Math.max(I.minAzimuthAngle,Math.min(I.maxAzimuthAngle,U.theta)),U.phi=Math.max(I.minPolarAngle,Math.min(I.maxPolarAngle,U.phi)),U.makeSafe(),U.radius*=G,U.radius=Math.max(I.minDistance,Math.min(I.maxDistance,U.radius)),I.target.add(V),t.setFromSpherical(U),t.applyQuaternion(a),e.copy(I.target).add(t),I.object.lookAt(I.target),!0===I.enableDamping?(W.theta*=1-I.dampingFactor,W.phi*=1-I.dampingFactor):W.set(0,0,0),G=1,V.set(0,0,0),!!(H||s.distanceToSquared(I.object.position)>j||8*(1-l.dot(I.object.quaternion))>j)&&(I.dispatchEvent(D),s.copy(I.object.position),l.copy(I.object.quaternion),H=!1,!0)}}(),this.dispose=function(){I.domElement.removeEventListener(\"contextmenu\",L,!1),I.domElement.removeEventListener(\"mousedown\",E,!1),I.domElement.removeEventListener(\"wheel\",O,!1),I.domElement.removeEventListener(\"touchstart\",P,!1),I.domElement.removeEventListener(\"touchend\",R,!1),I.domElement.removeEventListener(\"touchmove\",A,!1),document.removeEventListener(\"mousemove\",T,!1),document.removeEventListener(\"mouseup\",k,!1),window.removeEventListener(\"keydown\",C,!1)};var I=this,D={type:\"change\"},N={type:\"start\"},B={type:\"end\"},z={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},F=z.NONE,j=1e-6,U=new i.Spherical,W=new i.Spherical,G=1,V=new i.Vector3,H=!1,q=new i.Vector2,Y=new i.Vector2,X=new i.Vector2,K=new i.Vector2,Z=new i.Vector2,J=new i.Vector2,Q=new i.Vector2,$=new i.Vector2,ee=new i.Vector2,te=function(){var e=new i.Vector3;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),V.add(e)}}(),ne=function(){var e=new i.Vector3;return function(t,n){e.setFromMatrixColumn(n,1),e.multiplyScalar(t),V.add(e)}}(),ie=function(){var e=new i.Vector3;return function(t,n){var r=I.domElement===document?I.domElement.body:I.domElement;if(I.object instanceof i.PerspectiveCamera){var o=I.object.position;e.copy(o).sub(I.target);var a=e.length();a*=Math.tan(I.object.fov/2*Math.PI/180),te(2*t*a/r.clientHeight,I.object.matrix),ne(2*n*a/r.clientHeight,I.object.matrix)}else I.object instanceof i.OrthographicCamera?(te(t*(I.object.right-I.object.left)/I.object.zoom/r.clientWidth,I.object.matrix),ne(n*(I.object.top-I.object.bottom)/I.object.zoom/r.clientHeight,I.object.matrix)):(console.warn(\"WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.\"),I.enablePan=!1)}}();I.domElement.addEventListener(\"contextmenu\",L,!1),I.domElement.addEventListener(\"mousedown\",E,!1),I.domElement.addEventListener(\"wheel\",O,!1),I.domElement.addEventListener(\"touchstart\",P,!1),I.domElement.addEventListener(\"touchend\",R,!1),I.domElement.addEventListener(\"touchmove\",A,!1),window.addEventListener(\"keydown\",C,!1),this.update()},i.OrbitControls.prototype=Object.create(i.EventDispatcher.prototype),i.OrbitControls.prototype.constructor=i.OrbitControls,Object.defineProperties(i.OrbitControls.prototype,{center:{get:function(){return console.warn(\"THREE.OrbitControls: .center has been renamed to .target\"),this.target}},noZoom:{get:function(){return console.warn(\"THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.\"),!this.enableZoom},set:function(e){console.warn(\"THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.\"),this.enableZoom=!e}},noRotate:{get:function(){return console.warn(\"THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.\"),!this.enableRotate},set:function(e){console.warn(\"THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.\"),this.enableRotate=!e}},noPan:{get:function(){return console.warn(\"THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.\"),!this.enablePan},set:function(e){console.warn(\"THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.\"),this.enablePan=!e}},noKeys:{get:function(){return console.warn(\"THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.\"),!this.enableKeys},set:function(e){console.warn(\"THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.\"),this.enableKeys=!e}},staticMoving:{get:function(){return console.warn(\"THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.\"),!this.enableDamping},set:function(e){console.warn(\"THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.\"),this.enableDamping=!e}},dynamicDampingFactor:{get:function(){return console.warn(\"THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.\"),this.dampingFactor},set:function(e){console.warn(\"THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.\"),this.dampingFactor=e}}})},,function(e,t){e.exports={trajectoryGraph:{title:\"Trajectory\",options:{legend:{display:!0},axes:{x:{labelString:\"x (m)\"},y:{labelString:\"y (m)\"}}},properties:{cars:{pose:{color:\"rgba(0, 255, 0, 1)\"}},lines:{real:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"},steerCurve:{color:\"rgba(255, 206, 86, 1)\",borderWidth:1,pointRadius:0,fill:!1,showLine:!0},plan:{color:\"rgba(1, 209, 193, 0.65)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:\"rgba(180, 255, 180, 0.7)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:\"rgba(224, 224, 224, 0.15)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},speedGraph:{title:\"Speed\",options:{legend:{display:!0},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"speed (m/s)\"}}},properties:{lines:{real:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"},plan:{color:\"rgba(1, 209, 193, 0.65)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:\"rgba(180, 255, 180, 0.7)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:\"rgba(224, 224, 224, 0.15)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},curvatureGraph:{title:\"Curvature\",options:{legend:{display:!0},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"Curvature (m-1)\"}}},properties:{lines:{real:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"},plan:{color:\"rgba(1, 209, 193, 0.65)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:\"rgba(180, 255, 180, 0.7)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:\"rgba(224, 224, 224, 0.15)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},accelerationGraph:{title:\"Acceleration\",options:{legend:{display:!0},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"acceleration (m/s^2)\"}}},properties:{lines:{real:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"},plan:{color:\"rgba(1, 209, 193, 0.65)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:\"rgba(180, 255, 180, 0.7)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:\"rgba(224, 224, 224, 0.15)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},stationErrorGraph:{title:\"Station Error\",options:{legend:{display:!1},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"error (m)\"}}},properties:{lines:{error:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"}}}},lateralErrorGraph:{title:\"Lateral Error\",options:{legend:{display:!1},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"error (m)\"}}},properties:{lines:{error:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"}}}},headingErrorGraph:{title:\"Heading Error\",options:{legend:{display:!1},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"error (rad)\"}}},properties:{lines:{error:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"}}}}}},function(e,t){e.exports={options:{legend:{display:!0},axes:{x:{labelString:\"timestampe (sec)\"},y:{labelString:\"latency (ms)\"}}},properties:{lines:{chassis:{color:\"rgba(241, 113, 112, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},localization:{color:\"rgba(254, 208,114, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},prediction:{color:\"rgba(162, 212, 113, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},perception:{color:\"rgba(113, 226, 208, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},planning:{color:\"rgba(113, 208, 255, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},control:{color:\"rgba(179, 164, 238, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}}},function(e,t){e.exports={slGraph:{title:\"QP Path - sl graph\",options:{legend:{display:!1},axes:{x:{min:0,max:200,labelString:\"s - ref_line (m)\"},y:{min:-5,max:5,labelString:\"l (m)\"}}},properties:{lines:{aggregatedBoundaryLow:{color:\"rgba(48, 165, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},aggregatedBoundaryHigh:{color:\"rgba(48, 165, 255, 1)\",borderWidth:2,pointRadius:0,lineTension:0,fill:!1,showLine:!0},pathLine:{color:\"rgba(225, 225, 225, 0.7)\",borderWidth:2,pointRadius:.5,fill:!1,showLine:!1},mapLowerBound:{color:\"rgba(54, 162, 235, 0.4)\",borderWidth:2,pointRadius:0,fill:\"start\",showLine:!0},mapUpperBound:{color:\"rgba(54, 162, 235, 0.4)\",borderWidth:2,pointRadius:0,fill:\"end\",showLine:!0},staticObstacleLowerBound:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:\"start\",showLine:!0},staticObstacleUpperBound:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:\"end\",showLine:!0},dynamicObstacleLowerBound:{color:\"rgba(255, 206, 86, 0.2)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},dynamicObstacleUpperBound:{color:\"rgba(255, 206, 86, 0.2)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}},stGraph:{options:{legend:{display:!1},axes:{x:{min:-2,max:10,labelString:\"t (second)\"},y:{min:-10,max:220,labelString:\"s (m)\"}}},properties:{lines:{curveLine:{color:\"rgba(225, 225, 225, 0.5)\",borderWidth:2,pointRadius:1,fill:!1,showLine:!1},kernelCruise:{color:\"rgba(27, 249, 105, 0.5)\",borderWidth:2,pointRadius:1,fill:!1,showLine:!1},kernelFollow:{color:\"rgba(255, 206, 86, 0.5)\",borderWidth:2,pointRadius:1,fill:!1,showLine:!1}}}},stSpeedGraph:{title:\"QP Speed - sv graph\",options:{legend:{display:!0},axes:{x:{min:-10,max:220,labelString:\"s - qp_path(m)\"},y:{min:-1,max:40,labelString:\"v (m/s)\"}}},properties:{lines:{upperConstraint:{color:\"rgba(54, 162, 235, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},lowerConstraint:{color:\"rgba(54, 162, 235, 1)\",borderWidth:4,pointRadius:0,fill:!1,showLine:!0},planned:{color:\"rgba(225, 225, 225, 0.5)\",borderWidth:4,pointRadius:0,fill:!1,showLine:!0},limit:{color:\"rgba(255, 0, 0, 0.5)\",borderWidth:4,pointRadius:0,fill:!1,showLine:!0}}}},speedGraph:{title:\"Planning Speed\",options:{legend:{display:!0},axes:{x:{min:-2,max:10,labelString:\"t (second)\"},y:{min:-1,max:40,labelString:\"speed (m/s)\"}}},properties:{lines:{finalSpeed:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:1,pointRadius:1,fill:!1,showLine:!1},DpStSpeedOptimizer:{color:\"rgba(27, 249, 105, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplineStSpeedOptimizer:{color:\"rgba(54, 162, 235, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"}}}},accelerationGraph:{title:\"Planning Acceleration\",options:{legend:{display:!1},axes:{x:{min:-2,max:10,labelString:\"t (second)\"},y:{min:-4,max:3.5,labelString:\"acceleration (m/s^2)\"}}},properties:{lines:{acceleration:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"}}}},kappaGraph:{title:\"Planning Kappa\",options:{legend:{display:!0},axes:{x:{labelString:\"s (m)\"},y:{min:-.2,max:.2,labelString:\"kappa\"}}},properties:{lines:{ReferenceLine:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},DpPolyPathOptimizer:{color:\"rgba(27, 249, 105, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplinePathOptimizer:{color:\"rgba(54, 162, 235, 1)\",borderWidth:5,pointRadius:0,fill:!1,showLine:!0}}}},dkappaGraph:{title:\"Planning Dkappa\",options:{legend:{display:!0},axes:{x:{labelString:\"s (m)\"},y:{min:-.02,max:.02,labelString:\"dkappa\"}}},properties:{lines:{ReferenceLine:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplinePathOptimizer:{color:\"rgba(54, 162, 235, 1)\",borderWidth:5,pointRadius:0,fill:!1,showLine:!0}}}},thetaGraph:{title:\"Planning theta\",options:{legend:{display:!0},axes:{x:{labelString:\"s (m)\"},y:{labelString:\"theta\"}}},properties:{lines:{ReferenceLine:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}},dpPolyGraph:{title:\"DP Path\",options:{legend:{display:!1},axes:{x:{labelString:\"s (m)\"},y:{labelString:\"l (m)\"}}},properties:{lines:{minCostPoint:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:2,fill:!1,showLine:!0},sampleLayer:{color:\"rgba(225, 225, 225, 0.5)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!1}}}}}},function(e,t){e.exports={name:\"proj4\",version:\"2.5.0\",description:\"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.\",main:\"dist/proj4-src.js\",module:\"lib/index.js\",directories:{test:\"test\",doc:\"docs\"},scripts:{build:\"grunt\",\"build:tmerc\":\"grunt build:tmerc\",test:\"npm run build && istanbul test _mocha test/test.js\"},repository:{type:\"git\",url:\"git://github.com/proj4js/proj4js.git\"},author:\"\",license:\"MIT\",devDependencies:{chai:\"~4.1.2\",\"curl-amd\":\"github:cujojs/curl\",grunt:\"^1.0.1\",\"grunt-cli\":\"~1.2.0\",\"grunt-contrib-connect\":\"~1.0.2\",\"grunt-contrib-jshint\":\"~1.1.0\",\"grunt-contrib-uglify\":\"~3.1.0\",\"grunt-mocha-phantomjs\":\"~4.0.0\",\"grunt-rollup\":\"^6.0.0\",istanbul:\"~0.4.5\",mocha:\"~4.0.0\",rollup:\"^0.50.0\",\"rollup-plugin-json\":\"^2.3.0\",\"rollup-plugin-node-resolve\":\"^3.0.0\",tin:\"~0.5.0\"},dependencies:{mgrs:\"1.0.0\",\"wkt-parser\":\"^1.2.0\"}}},function(e,t,n){var i=n(300);\"string\"==typeof i&&(i=[[e.i,i,\"\"]]);var r={};r.transform=void 0;n(139)(i,r);i.locals&&(e.exports=i.locals)},function(e,t,n){var i=n(302);\"string\"==typeof i&&(i=[[e.i,i,\"\"]]);var r={};r.transform=void 0;n(139)(i,r);i.locals&&(e.exports=i.locals)},function(e,t){e.exports=function(){throw new Error(\"define cannot be used indirect\")}},function(e,t){e.exports={nested:{apollo:{nested:{dreamview:{nested:{PolygonPoint:{fields:{x:{type:\"double\",id:1},y:{type:\"double\",id:2},z:{type:\"double\",id:3,options:{default:0}}}},Prediction:{fields:{probability:{type:\"double\",id:1},predictedTrajectory:{rule:\"repeated\",type:\"PolygonPoint\",id:2}}},Decision:{fields:{type:{type:\"Type\",id:1,options:{default:\"IGNORE\"}},polygonPoint:{rule:\"repeated\",type:\"PolygonPoint\",id:2},heading:{type:\"double\",id:3},latitude:{type:\"double\",id:4},longitude:{type:\"double\",id:5},positionX:{type:\"double\",id:6},positionY:{type:\"double\",id:7},length:{type:\"double\",id:8,options:{default:2.8}},width:{type:\"double\",id:9,options:{default:1.4}},height:{type:\"double\",id:10,options:{default:1.8}},stopReason:{type:\"StopReasonCode\",id:11},changeLaneType:{type:\"apollo.routing.ChangeLaneType\",id:12}},nested:{Type:{values:{IGNORE:0,STOP:1,NUDGE:2,YIELD:3,OVERTAKE:4,FOLLOW:5,SIDEPASS:6}},StopReasonCode:{values:{STOP_REASON_HEAD_VEHICLE:1,STOP_REASON_DESTINATION:2,STOP_REASON_PEDESTRIAN:3,STOP_REASON_OBSTACLE:4,STOP_REASON_SIGNAL:100,STOP_REASON_STOP_SIGN:101,STOP_REASON_YIELD_SIGN:102,STOP_REASON_CLEAR_ZONE:103,STOP_REASON_CROSSWALK:104,STOP_REASON_EMERGENCY:105,STOP_REASON_NOT_READY:106,STOP_REASON_PULL_OVER:107}}}},Object:{fields:{id:{type:\"string\",id:1},polygonPoint:{rule:\"repeated\",type:\"PolygonPoint\",id:2},heading:{type:\"double\",id:3},latitude:{type:\"double\",id:4},longitude:{type:\"double\",id:5},positionX:{type:\"double\",id:6},positionY:{type:\"double\",id:7},length:{type:\"double\",id:8,options:{default:2.8}},width:{type:\"double\",id:9,options:{default:1.4}},height:{type:\"double\",id:10,options:{default:1.8}},speed:{type:\"double\",id:11},speedAcceleration:{type:\"double\",id:12},speedJerk:{type:\"double\",id:13},spin:{type:\"double\",id:14},spinAcceleration:{type:\"double\",id:15},spinJerk:{type:\"double\",id:16},speedHeading:{type:\"double\",id:17},kappa:{type:\"double\",id:18},signalSet:{rule:\"repeated\",type:\"string\",id:19},currentSignal:{type:\"string\",id:20},timestampSec:{type:\"double\",id:21},decision:{rule:\"repeated\",type:\"Decision\",id:22},yieldedObstacle:{type:\"bool\",id:32,options:{default:!1}},throttlePercentage:{type:\"double\",id:23},brakePercentage:{type:\"double\",id:24},steeringPercentage:{type:\"double\",id:25},steeringAngle:{type:\"double\",id:26},steeringRatio:{type:\"double\",id:27},disengageType:{type:\"DisengageType\",id:28},type:{type:\"Type\",id:29},prediction:{rule:\"repeated\",type:\"Prediction\",id:30},confidence:{type:\"double\",id:31,options:{default:1}},obstaclePriority:{type:\"ObstaclePriority\",id:33,options:{default:\"NORMAL\"}}},nested:{DisengageType:{values:{DISENGAGE_NONE:0,DISENGAGE_UNKNOWN:1,DISENGAGE_MANUAL:2,DISENGAGE_EMERGENCY:3,DISENGAGE_AUTO_STEER_ONLY:4,DISENGAGE_AUTO_SPEED_ONLY:5,DISENGAGE_CHASSIS_ERROR:6}},Type:{values:{UNKNOWN:0,UNKNOWN_MOVABLE:1,UNKNOWN_UNMOVABLE:2,PEDESTRIAN:3,BICYCLE:4,VEHICLE:5,VIRTUAL:6,CIPV:7}},ObstaclePriority:{values:{CAUTION:1,NORMAL:2,IGNORE:3}}}},DelaysInMs:{fields:{chassis:{type:\"double\",id:1},localization:{type:\"double\",id:3},perceptionObstacle:{type:\"double\",id:4},planning:{type:\"double\",id:5},prediction:{type:\"double\",id:7},trafficLight:{type:\"double\",id:8},control:{type:\"double\",id:9}}},RoutePath:{fields:{point:{rule:\"repeated\",type:\"PolygonPoint\",id:1}}},Latency:{fields:{timestampSec:{type:\"double\",id:1},totalTimeMs:{type:\"double\",id:2}}},MapElementIds:{fields:{lane:{rule:\"repeated\",type:\"string\",id:1},crosswalk:{rule:\"repeated\",type:\"string\",id:2},junction:{rule:\"repeated\",type:\"string\",id:3},signal:{rule:\"repeated\",type:\"string\",id:4},stopSign:{rule:\"repeated\",type:\"string\",id:5},yield:{rule:\"repeated\",type:\"string\",id:6},overlap:{rule:\"repeated\",type:\"string\",id:7},road:{rule:\"repeated\",type:\"string\",id:8},clearArea:{rule:\"repeated\",type:\"string\",id:9},parkingSpace:{rule:\"repeated\",type:\"string\",id:10},speedBump:{rule:\"repeated\",type:\"string\",id:11}}},ControlData:{fields:{timestampSec:{type:\"double\",id:1},stationError:{type:\"double\",id:2},lateralError:{type:\"double\",id:3},headingError:{type:\"double\",id:4}}},Notification:{fields:{timestampSec:{type:\"double\",id:1},item:{type:\"apollo.common.monitor.MonitorMessageItem\",id:2}}},SimulationWorld:{fields:{timestamp:{type:\"double\",id:1},sequenceNum:{type:\"uint32\",id:2},object:{rule:\"repeated\",type:\"Object\",id:3},autoDrivingCar:{type:\"Object\",id:4},trafficSignal:{type:\"Object\",id:5},routePath:{rule:\"repeated\",type:\"RoutePath\",id:6},routingTime:{type:\"double\",id:7},planningTrajectory:{rule:\"repeated\",type:\"Object\",id:8},mainStop:{type:\"Object\",id:9,options:{deprecated:!0}},mainDecision:{type:\"Object\",id:10},speedLimit:{type:\"double\",id:11},delay:{type:\"DelaysInMs\",id:12},monitor:{type:\"apollo.common.monitor.MonitorMessage\",id:13,options:{deprecated:!0}},notification:{rule:\"repeated\",type:\"Notification\",id:14},engageAdvice:{type:\"string\",id:15},latency:{keyType:\"string\",type:\"Latency\",id:16},mapElementIds:{type:\"MapElementIds\",id:17},mapHash:{type:\"uint64\",id:18},mapRadius:{type:\"double\",id:19},planningData:{type:\"apollo.planning_internal.PlanningData\",id:20},gps:{type:\"Object\",id:21},laneMarker:{type:\"apollo.perception.LaneMarkers\",id:22},controlData:{type:\"ControlData\",id:23},navigationPath:{rule:\"repeated\",type:\"apollo.common.Path\",id:24}}},Options:{fields:{legendDisplay:{type:\"bool\",id:1,options:{default:!0}},x:{type:\"Axis\",id:2},y:{type:\"Axis\",id:3}},nested:{Axis:{fields:{min:{type:\"double\",id:1},max:{type:\"double\",id:2},labelString:{type:\"string\",id:3}}}}},Line:{fields:{label:{type:\"string\",id:1},point:{rule:\"repeated\",type:\"apollo.common.Point2D\",id:2},properties:{keyType:\"string\",type:\"string\",id:3}}},Polygon:{fields:{label:{type:\"string\",id:1},point:{rule:\"repeated\",type:\"apollo.common.Point2D\",id:2},properties:{keyType:\"string\",type:\"string\",id:3}}},Car:{fields:{label:{type:\"string\",id:1},x:{type:\"double\",id:2},y:{type:\"double\",id:3},heading:{type:\"double\",id:4},color:{type:\"string\",id:5}}},Chart:{fields:{title:{type:\"string\",id:1},options:{type:\"Options\",id:2},line:{rule:\"repeated\",type:\"Line\",id:3},polygon:{rule:\"repeated\",type:\"Polygon\",id:4},car:{rule:\"repeated\",type:\"Car\",id:5}}}}},common:{nested:{DriveEvent:{fields:{header:{type:\"apollo.common.Header\",id:1},event:{type:\"string\",id:2},location:{type:\"apollo.localization.Pose\",id:3},type:{rule:\"repeated\",type:\"Type\",id:4,options:{packed:!1}}},nested:{Type:{values:{CRITICAL:0,PROBLEM:1,DESIRED:2,OUT_OF_SCOPE:3}}}},EngageAdvice:{fields:{advice:{type:\"Advice\",id:1,options:{default:\"DISALLOW_ENGAGE\"}},reason:{type:\"string\",id:2}},nested:{Advice:{values:{UNKNOWN:0,DISALLOW_ENGAGE:1,READY_TO_ENGAGE:2,KEEP_ENGAGED:3,PREPARE_DISENGAGE:4}}}},ErrorCode:{values:{OK:0,CONTROL_ERROR:1e3,CONTROL_INIT_ERROR:1001,CONTROL_COMPUTE_ERROR:1002,CANBUS_ERROR:2e3,CAN_CLIENT_ERROR_BASE:2100,CAN_CLIENT_ERROR_OPEN_DEVICE_FAILED:2101,CAN_CLIENT_ERROR_FRAME_NUM:2102,CAN_CLIENT_ERROR_SEND_FAILED:2103,CAN_CLIENT_ERROR_RECV_FAILED:2104,LOCALIZATION_ERROR:3e3,LOCALIZATION_ERROR_MSG:3100,LOCALIZATION_ERROR_LIDAR:3200,LOCALIZATION_ERROR_INTEG:3300,LOCALIZATION_ERROR_GNSS:3400,PERCEPTION_ERROR:4e3,PERCEPTION_ERROR_TF:4001,PERCEPTION_ERROR_PROCESS:4002,PERCEPTION_FATAL:4003,PERCEPTION_ERROR_NONE:4004,PERCEPTION_ERROR_UNKNOWN:4005,PREDICTION_ERROR:5e3,PLANNING_ERROR:6e3,HDMAP_DATA_ERROR:7e3,ROUTING_ERROR:8e3,ROUTING_ERROR_REQUEST:8001,ROUTING_ERROR_RESPONSE:8002,ROUTING_ERROR_NOT_READY:8003,END_OF_INPUT:9e3,HTTP_LOGIC_ERROR:1e4,HTTP_RUNTIME_ERROR:10001,RELATIVE_MAP_ERROR:11e3,RELATIVE_MAP_NOT_READY:11001,DRIVER_ERROR_GNSS:12e3,DRIVER_ERROR_VELODYNE:13e3}},StatusPb:{fields:{errorCode:{type:\"ErrorCode\",id:1,options:{default:\"OK\"}},msg:{type:\"string\",id:2}}},PointENU:{fields:{x:{type:\"double\",id:1,options:{default:null}},y:{type:\"double\",id:2,options:{default:null}},z:{type:\"double\",id:3,options:{default:0}}}},PointLLH:{fields:{lon:{type:\"double\",id:1,options:{default:null}},lat:{type:\"double\",id:2,options:{default:null}},height:{type:\"double\",id:3,options:{default:0}}}},Point2D:{fields:{x:{type:\"double\",id:1,options:{default:null}},y:{type:\"double\",id:2,options:{default:null}}}},Point3D:{fields:{x:{type:\"double\",id:1,options:{default:null}},y:{type:\"double\",id:2,options:{default:null}},z:{type:\"double\",id:3,options:{default:null}}}},Quaternion:{fields:{qx:{type:\"double\",id:1,options:{default:null}},qy:{type:\"double\",id:2,options:{default:null}},qz:{type:\"double\",id:3,options:{default:null}},qw:{type:\"double\",id:4,options:{default:null}}}},Polygon:{fields:{point:{rule:\"repeated\",type:\"Point3D\",id:1}}},Header:{fields:{timestampSec:{type:\"double\",id:1},moduleName:{type:\"string\",id:2},sequenceNum:{type:\"uint32\",id:3},lidarTimestamp:{type:\"uint64\",id:4},cameraTimestamp:{type:\"uint64\",id:5},radarTimestamp:{type:\"uint64\",id:6},version:{type:\"uint32\",id:7,options:{default:1}},status:{type:\"StatusPb\",id:8},frameId:{type:\"string\",id:9}}},SLPoint:{fields:{s:{type:\"double\",id:1},l:{type:\"double\",id:2}}},FrenetFramePoint:{fields:{s:{type:\"double\",id:1},l:{type:\"double\",id:2},dl:{type:\"double\",id:3},ddl:{type:\"double\",id:4}}},SpeedPoint:{fields:{s:{type:\"double\",id:1},t:{type:\"double\",id:2},v:{type:\"double\",id:3},a:{type:\"double\",id:4},da:{type:\"double\",id:5}}},PathPoint:{fields:{x:{type:\"double\",id:1},y:{type:\"double\",id:2},z:{type:\"double\",id:3},theta:{type:\"double\",id:4},kappa:{type:\"double\",id:5},s:{type:\"double\",id:6},dkappa:{type:\"double\",id:7},ddkappa:{type:\"double\",id:8},laneId:{type:\"string\",id:9},xDerivative:{type:\"double\",id:10},yDerivative:{type:\"double\",id:11}}},Path:{fields:{name:{type:\"string\",id:1},pathPoint:{rule:\"repeated\",type:\"PathPoint\",id:2}}},TrajectoryPoint:{fields:{pathPoint:{type:\"PathPoint\",id:1},v:{type:\"double\",id:2},a:{type:\"double\",id:3},relativeTime:{type:\"double\",id:4},da:{type:\"double\",id:5}}},Trajectory:{fields:{name:{type:\"string\",id:1},trajectoryPoint:{rule:\"repeated\",type:\"TrajectoryPoint\",id:2}}},VehicleMotionPoint:{fields:{trajectoryPoint:{type:\"TrajectoryPoint\",id:1},steer:{type:\"double\",id:2}}},VehicleMotion:{fields:{name:{type:\"string\",id:1},vehicleMotionPoint:{rule:\"repeated\",type:\"VehicleMotionPoint\",id:2}}},VehicleSignal:{fields:{turnSignal:{type:\"TurnSignal\",id:1},highBeam:{type:\"bool\",id:2},lowBeam:{type:\"bool\",id:3},horn:{type:\"bool\",id:4},emergencyLight:{type:\"bool\",id:5}},nested:{TurnSignal:{values:{TURN_NONE:0,TURN_LEFT:1,TURN_RIGHT:2}}}},monitor:{nested:{MonitorMessageItem:{fields:{source:{type:\"MessageSource\",id:1,options:{default:\"UNKNOWN\"}},msg:{type:\"string\",id:2},logLevel:{type:\"LogLevel\",id:3,options:{default:\"INFO\"}}},nested:{MessageSource:{values:{UNKNOWN:1,CANBUS:2,CONTROL:3,DECISION:4,LOCALIZATION:5,PLANNING:6,PREDICTION:7,SIMULATOR:8,HWSYS:9,ROUTING:10,MONITOR:11,HMI:12,RELATIVE_MAP:13,GNSS:14,CONTI_RADAR:15,RACOBIT_RADAR:16,ULTRASONIC_RADAR:17,MOBILEYE:18,DELPHI_ESR:19}},LogLevel:{values:{INFO:0,WARN:1,ERROR:2,FATAL:3}}}},MonitorMessage:{fields:{header:{type:\"apollo.common.Header\",id:1},item:{rule:\"repeated\",type:\"MonitorMessageItem\",id:2}}}}}}},localization:{nested:{Uncertainty:{fields:{positionStdDev:{type:\"apollo.common.Point3D\",id:1},orientationStdDev:{type:\"apollo.common.Point3D\",id:2},linearVelocityStdDev:{type:\"apollo.common.Point3D\",id:3},linearAccelerationStdDev:{type:\"apollo.common.Point3D\",id:4},angularVelocityStdDev:{type:\"apollo.common.Point3D\",id:5}}},LocalizationEstimate:{fields:{header:{type:\"apollo.common.Header\",id:1},pose:{type:\"apollo.localization.Pose\",id:2},uncertainty:{type:\"Uncertainty\",id:3},measurementTime:{type:\"double\",id:4},trajectoryPoint:{rule:\"repeated\",type:\"apollo.common.TrajectoryPoint\",id:5},msfStatus:{type:\"MsfStatus\",id:6},sensorStatus:{type:\"MsfSensorMsgStatus\",id:7}}},MeasureState:{values:{OK:0,WARNNING:1,ERROR:2,CRITICAL_ERROR:3,FATAL_ERROR:4}},LocalizationStatus:{fields:{header:{type:\"apollo.common.Header\",id:1},fusionStatus:{type:\"MeasureState\",id:2},gnssStatus:{type:\"MeasureState\",id:3,options:{deprecated:!0}},lidarStatus:{type:\"MeasureState\",id:4,options:{deprecated:!0}},measurementTime:{type:\"double\",id:5},stateMessage:{type:\"string\",id:6}}},Pose:{fields:{position:{type:\"apollo.common.PointENU\",id:1},orientation:{type:\"apollo.common.Quaternion\",id:2},linearVelocity:{type:\"apollo.common.Point3D\",id:3},linearAcceleration:{type:\"apollo.common.Point3D\",id:4},angularVelocity:{type:\"apollo.common.Point3D\",id:5},heading:{type:\"double\",id:6},linearAccelerationVrf:{type:\"apollo.common.Point3D\",id:7},angularVelocityVrf:{type:\"apollo.common.Point3D\",id:8},eulerAngles:{type:\"apollo.common.Point3D\",id:9}}},LocalLidarStatus:{values:{MSF_LOCAL_LIDAR_NORMAL:0,MSF_LOCAL_LIDAR_MAP_MISSING:1,MSF_LOCAL_LIDAR_EXTRINSICS_MISSING:2,MSF_LOCAL_LIDAR_MAP_LOADING_FAILED:3,MSF_LOCAL_LIDAR_NO_OUTPUT:4,MSF_LOCAL_LIDAR_OUT_OF_MAP:5,MSF_LOCAL_LIDAR_NOT_GOOD:6,MSF_LOCAL_LIDAR_UNDEFINED_STATUS:7}},LocalLidarQuality:{values:{MSF_LOCAL_LIDAR_VERY_GOOD:0,MSF_LOCAL_LIDAR_GOOD:1,MSF_LOCAL_LIDAR_NOT_BAD:2,MSF_LOCAL_LIDAR_BAD:3}},LocalLidarConsistency:{values:{MSF_LOCAL_LIDAR_CONSISTENCY_00:0,MSF_LOCAL_LIDAR_CONSISTENCY_01:1,MSF_LOCAL_LIDAR_CONSISTENCY_02:2,MSF_LOCAL_LIDAR_CONSISTENCY_03:3}},GnssConsistency:{values:{MSF_GNSS_CONSISTENCY_00:0,MSF_GNSS_CONSISTENCY_01:1,MSF_GNSS_CONSISTENCY_02:2,MSF_GNSS_CONSISTENCY_03:3}},GnssPositionType:{values:{NONE:0,FIXEDPOS:1,FIXEDHEIGHT:2,FLOATCONV:4,WIDELANE:5,NARROWLANE:6,DOPPLER_VELOCITY:8,SINGLE:16,PSRDIFF:17,WAAS:18,PROPOGATED:19,OMNISTAR:20,L1_FLOAT:32,IONOFREE_FLOAT:33,NARROW_FLOAT:34,L1_INT:48,WIDE_INT:49,NARROW_INT:50,RTK_DIRECT_INS:51,INS_SBAS:52,INS_PSRSP:53,INS_PSRDIFF:54,INS_RTKFLOAT:55,INS_RTKFIXED:56,INS_OMNISTAR:57,INS_OMNISTAR_HP:58,INS_OMNISTAR_XP:59,OMNISTAR_HP:64,OMNISTAR_XP:65,PPP_CONVERGING:68,PPP:69,INS_PPP_Converging:73,INS_PPP:74,MSG_LOSS:91}},ImuMsgDelayStatus:{values:{IMU_DELAY_NORMAL:0,IMU_DELAY_1:1,IMU_DELAY_2:2,IMU_DELAY_3:3,IMU_DELAY_ABNORMAL:4}},ImuMsgMissingStatus:{values:{IMU_MISSING_NORMAL:0,IMU_MISSING_1:1,IMU_MISSING_2:2,IMU_MISSING_3:3,IMU_MISSING_4:4,IMU_MISSING_5:5,IMU_MISSING_ABNORMAL:6}},ImuMsgDataStatus:{values:{IMU_DATA_NORMAL:0,IMU_DATA_ABNORMAL:1,IMU_DATA_OTHER:2}},MsfRunningStatus:{values:{MSF_SOL_LIDAR_GNSS:0,MSF_SOL_X_GNSS:1,MSF_SOL_LIDAR_X:2,MSF_SOL_LIDAR_XX:3,MSF_SOL_LIDAR_XXX:4,MSF_SOL_X_X:5,MSF_SOL_X_XX:6,MSF_SOL_X_XXX:7,MSF_SSOL_LIDAR_GNSS:8,MSF_SSOL_X_GNSS:9,MSF_SSOL_LIDAR_X:10,MSF_SSOL_LIDAR_XX:11,MSF_SSOL_LIDAR_XXX:12,MSF_SSOL_X_X:13,MSF_SSOL_X_XX:14,MSF_SSOL_X_XXX:15,MSF_NOSOL_LIDAR_GNSS:16,MSF_NOSOL_X_GNSS:17,MSF_NOSOL_LIDAR_X:18,MSF_NOSOL_LIDAR_XX:19,MSF_NOSOL_LIDAR_XXX:20,MSF_NOSOL_X_X:21,MSF_NOSOL_X_XX:22,MSF_NOSOL_X_XXX:23,MSF_RUNNING_INIT:24}},MsfSensorMsgStatus:{fields:{imuDelayStatus:{type:\"ImuMsgDelayStatus\",id:1},imuMissingStatus:{type:\"ImuMsgMissingStatus\",id:2},imuDataStatus:{type:\"ImuMsgDataStatus\",id:3}}},MsfStatus:{fields:{localLidarConsistency:{type:\"LocalLidarConsistency\",id:1},gnssConsistency:{type:\"GnssConsistency\",id:2},localLidarStatus:{type:\"LocalLidarStatus\",id:3},localLidarQuality:{type:\"LocalLidarQuality\",id:4},gnssposPositionType:{type:\"GnssPositionType\",id:5},msfRunningStatus:{type:\"MsfRunningStatus\",id:6}}}}},canbus:{nested:{Chassis:{fields:{engineStarted:{type:\"bool\",id:3},engineRpm:{type:\"float\",id:4,options:{default:null}},speedMps:{type:\"float\",id:5,options:{default:null}},odometerM:{type:\"float\",id:6,options:{default:null}},fuelRangeM:{type:\"int32\",id:7},throttlePercentage:{type:\"float\",id:8,options:{default:null}},brakePercentage:{type:\"float\",id:9,options:{default:null}},steeringPercentage:{type:\"float\",id:11,options:{default:null}},steeringTorqueNm:{type:\"float\",id:12,options:{default:null}},parkingBrake:{type:\"bool\",id:13},highBeamSignal:{type:\"bool\",id:14,options:{deprecated:!0}},lowBeamSignal:{type:\"bool\",id:15,options:{deprecated:!0}},leftTurnSignal:{type:\"bool\",id:16,options:{deprecated:!0}},rightTurnSignal:{type:\"bool\",id:17,options:{deprecated:!0}},horn:{type:\"bool\",id:18,options:{deprecated:!0}},wiper:{type:\"bool\",id:19},disengageStatus:{type:\"bool\",id:20,options:{deprecated:!0}},drivingMode:{type:\"DrivingMode\",id:21,options:{default:\"COMPLETE_MANUAL\"}},errorCode:{type:\"ErrorCode\",id:22,options:{default:\"NO_ERROR\"}},gearLocation:{type:\"GearPosition\",id:23},steeringTimestamp:{type:\"double\",id:24},header:{type:\"apollo.common.Header\",id:25},chassisErrorMask:{type:\"int32\",id:26,options:{default:0}},signal:{type:\"apollo.common.VehicleSignal\",id:27},chassisGps:{type:\"ChassisGPS\",id:28},engageAdvice:{type:\"apollo.common.EngageAdvice\",id:29},wheelSpeed:{type:\"WheelSpeed\",id:30},surround:{type:\"Surround\",id:31},license:{type:\"License\",id:32}},nested:{DrivingMode:{values:{COMPLETE_MANUAL:0,COMPLETE_AUTO_DRIVE:1,AUTO_STEER_ONLY:2,AUTO_SPEED_ONLY:3,EMERGENCY_MODE:4}},ErrorCode:{values:{NO_ERROR:0,CMD_NOT_IN_PERIOD:1,CHASSIS_ERROR:2,MANUAL_INTERVENTION:3,CHASSIS_CAN_NOT_IN_PERIOD:4,UNKNOWN_ERROR:5}},GearPosition:{values:{GEAR_NEUTRAL:0,GEAR_DRIVE:1,GEAR_REVERSE:2,GEAR_PARKING:3,GEAR_LOW:4,GEAR_INVALID:5,GEAR_NONE:6}}}},ChassisGPS:{fields:{latitude:{type:\"double\",id:1},longitude:{type:\"double\",id:2},gpsValid:{type:\"bool\",id:3},year:{type:\"int32\",id:4},month:{type:\"int32\",id:5},day:{type:\"int32\",id:6},hours:{type:\"int32\",id:7},minutes:{type:\"int32\",id:8},seconds:{type:\"int32\",id:9},compassDirection:{type:\"double\",id:10},pdop:{type:\"double\",id:11},isGpsFault:{type:\"bool\",id:12},isInferred:{type:\"bool\",id:13},altitude:{type:\"double\",id:14},heading:{type:\"double\",id:15},hdop:{type:\"double\",id:16},vdop:{type:\"double\",id:17},quality:{type:\"GpsQuality\",id:18},numSatellites:{type:\"int32\",id:19},gpsSpeed:{type:\"double\",id:20}}},GpsQuality:{values:{FIX_NO:0,FIX_2D:1,FIX_3D:2,FIX_INVALID:3}},WheelSpeed:{fields:{isWheelSpdRrValid:{type:\"bool\",id:1,options:{default:!1}},wheelDirectionRr:{type:\"WheelSpeedType\",id:2,options:{default:\"INVALID\"}},wheelSpdRr:{type:\"double\",id:3,options:{default:0}},isWheelSpdRlValid:{type:\"bool\",id:4,options:{default:!1}},wheelDirectionRl:{type:\"WheelSpeedType\",id:5,options:{default:\"INVALID\"}},wheelSpdRl:{type:\"double\",id:6,options:{default:0}},isWheelSpdFrValid:{type:\"bool\",id:7,options:{default:!1}},wheelDirectionFr:{type:\"WheelSpeedType\",id:8,options:{default:\"INVALID\"}},wheelSpdFr:{type:\"double\",id:9,options:{default:0}},isWheelSpdFlValid:{type:\"bool\",id:10,options:{default:!1}},wheelDirectionFl:{type:\"WheelSpeedType\",id:11,options:{default:\"INVALID\"}},wheelSpdFl:{type:\"double\",id:12,options:{default:0}}},nested:{WheelSpeedType:{values:{FORWARD:0,BACKWARD:1,STANDSTILL:2,INVALID:3}}}},Sonar:{fields:{range:{type:\"double\",id:1},translation:{type:\"apollo.common.Point3D\",id:2},rotation:{type:\"apollo.common.Quaternion\",id:3}}},Surround:{fields:{crossTrafficAlertLeft:{type:\"bool\",id:1},crossTrafficAlertLeftEnabled:{type:\"bool\",id:2},blindSpotLeftAlert:{type:\"bool\",id:3},blindSpotLeftAlertEnabled:{type:\"bool\",id:4},crossTrafficAlertRight:{type:\"bool\",id:5},crossTrafficAlertRightEnabled:{type:\"bool\",id:6},blindSpotRightAlert:{type:\"bool\",id:7},blindSpotRightAlertEnabled:{type:\"bool\",id:8},sonar00:{type:\"double\",id:9},sonar01:{type:\"double\",id:10},sonar02:{type:\"double\",id:11},sonar03:{type:\"double\",id:12},sonar04:{type:\"double\",id:13},sonar05:{type:\"double\",id:14},sonar06:{type:\"double\",id:15},sonar07:{type:\"double\",id:16},sonar08:{type:\"double\",id:17},sonar09:{type:\"double\",id:18},sonar10:{type:\"double\",id:19},sonar11:{type:\"double\",id:20},sonarEnabled:{type:\"bool\",id:21},sonarFault:{type:\"bool\",id:22},sonarRange:{rule:\"repeated\",type:\"double\",id:23,options:{packed:!1}},sonar:{rule:\"repeated\",type:\"Sonar\",id:24}}},License:{fields:{vin:{type:\"string\",id:1}}}}},planning:{nested:{autotuning:{nested:{PathPointwiseFeature:{fields:{l:{type:\"double\",id:1},dl:{type:\"double\",id:2},ddl:{type:\"double\",id:3},kappa:{type:\"double\",id:4},obstacleInfo:{rule:\"repeated\",type:\"ObstacleFeature\",id:5},leftBoundFeature:{type:\"BoundRelatedFeature\",id:6},rightBoundFeature:{type:\"BoundRelatedFeature\",id:7}},nested:{ObstacleFeature:{fields:{lateralDistance:{type:\"double\",id:1}}},BoundRelatedFeature:{fields:{boundDistance:{type:\"double\",id:1},crossableLevel:{type:\"CrossableLevel\",id:2}},nested:{CrossableLevel:{values:{CROSS_FREE:0,CROSS_ABLE:1,CROSS_FORBIDDEN:2}}}}}},SpeedPointwiseFeature:{fields:{s:{type:\"double\",id:1,options:{default:0}},t:{type:\"double\",id:2,options:{default:0}},v:{type:\"double\",id:3,options:{default:0}},speedLimit:{type:\"double\",id:4,options:{default:0}},acc:{type:\"double\",id:5,options:{default:0}},jerk:{type:\"double\",id:6,options:{default:0}},followObsFeature:{rule:\"repeated\",type:\"ObstacleFeature\",id:7},overtakeObsFeature:{rule:\"repeated\",type:\"ObstacleFeature\",id:8},nudgeObsFeature:{rule:\"repeated\",type:\"ObstacleFeature\",id:9},stopObsFeature:{rule:\"repeated\",type:\"ObstacleFeature\",id:10},collisionTimes:{type:\"int32\",id:11,options:{default:0}},virtualObsFeature:{rule:\"repeated\",type:\"ObstacleFeature\",id:12},lateralAcc:{type:\"double\",id:13,options:{default:0}},pathCurvatureAbs:{type:\"double\",id:14,options:{default:0}},sidepassFrontObsFeature:{rule:\"repeated\",type:\"ObstacleFeature\",id:15},sidepassRearObsFeature:{rule:\"repeated\",type:\"ObstacleFeature\",id:16}},nested:{ObstacleFeature:{fields:{longitudinalDistance:{type:\"double\",id:1},obstacleSpeed:{type:\"double\",id:2},lateralDistance:{type:\"double\",id:3,options:{default:10}},probability:{type:\"double\",id:4},relativeV:{type:\"double\",id:5}}}}},TrajectoryPointwiseFeature:{fields:{pathInputFeature:{type:\"PathPointwiseFeature\",id:1},speedInputFeature:{type:\"SpeedPointwiseFeature\",id:2}}},TrajectoryFeature:{fields:{pointFeature:{rule:\"repeated\",type:\"TrajectoryPointwiseFeature\",id:1}}},PathPointRawFeature:{fields:{cartesianCoord:{type:\"apollo.common.PathPoint\",id:1},frenetCoord:{type:\"apollo.common.FrenetFramePoint\",id:2}}},SpeedPointRawFeature:{fields:{s:{type:\"double\",id:1},t:{type:\"double\",id:2},v:{type:\"double\",id:3},a:{type:\"double\",id:4},j:{type:\"double\",id:5},speedLimit:{type:\"double\",id:6},follow:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:10},overtake:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:11},virtualDecision:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:13},stop:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:14},collision:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:15},nudge:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:12},sidepassFront:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:16},sidepassRear:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:17},keepClear:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:18}},nested:{ObjectDecisionFeature:{fields:{id:{type:\"int32\",id:1},relativeS:{type:\"double\",id:2},relativeL:{type:\"double\",id:3},relativeV:{type:\"double\",id:4},speed:{type:\"double\",id:5}}}}},ObstacleSTRawData:{fields:{obstacleStData:{rule:\"repeated\",type:\"ObstacleSTData\",id:1},obstacleStNudge:{rule:\"repeated\",type:\"ObstacleSTData\",id:2},obstacleStSidepass:{rule:\"repeated\",type:\"ObstacleSTData\",id:3}},nested:{STPointPair:{fields:{sLower:{type:\"double\",id:1},sUpper:{type:\"double\",id:2},t:{type:\"double\",id:3},l:{type:\"double\",id:4,options:{default:10}}}},ObstacleSTData:{fields:{id:{type:\"int32\",id:1},speed:{type:\"double\",id:2},isVirtual:{type:\"bool\",id:3},probability:{type:\"double\",id:4},polygon:{rule:\"repeated\",type:\"STPointPair\",id:8},distribution:{rule:\"repeated\",type:\"STPointPair\",id:9}}}}},TrajectoryPointRawFeature:{fields:{pathFeature:{type:\"PathPointRawFeature\",id:1},speedFeature:{type:\"SpeedPointRawFeature\",id:2}}},TrajectoryRawFeature:{fields:{pointFeature:{rule:\"repeated\",type:\"TrajectoryPointRawFeature\",id:1},stRawData:{type:\"ObstacleSTRawData\",id:2}}}}},DeciderCreepConfig:{fields:{stopDistance:{type:\"double\",id:1,options:{default:.5}},speedLimit:{type:\"double\",id:2,options:{default:1}},maxValidStopDistance:{type:\"double\",id:3,options:{default:.3}},minBoundaryT:{type:\"double\",id:4,options:{default:6}}}},RuleCrosswalkConfig:{fields:{enabled:{type:\"bool\",id:1,options:{default:!0}},stopDistance:{type:\"double\",id:2,options:{default:1}}}},RuleStopSignConfig:{fields:{enabled:{type:\"bool\",id:1,options:{default:!0}},stopDistance:{type:\"double\",id:2,options:{default:1}}}},RuleTrafficLightConfig:{fields:{enabled:{type:\"bool\",id:1,options:{default:!0}},stopDistance:{type:\"double\",id:2,options:{default:1}},signalExpireTimeSec:{type:\"double\",id:3,options:{default:5}}}},DeciderRuleBasedStopConfig:{fields:{crosswalk:{type:\"RuleCrosswalkConfig\",id:1},stopSign:{type:\"RuleStopSignConfig\",id:2},trafficLight:{type:\"RuleTrafficLightConfig\",id:3}}},SidePassSafetyConfig:{fields:{minObstacleLateralDistance:{type:\"double\",id:1,options:{default:1}},maxOverlapSRange:{type:\"double\",id:2,options:{default:5}},safeDurationReachRefLine:{type:\"double\",id:3,options:{default:5}}}},TargetLane:{fields:{id:{type:\"string\",id:1},startS:{type:\"double\",id:2},endS:{type:\"double\",id:3},speedLimit:{type:\"double\",id:4}}},ObjectIgnore:{fields:{}},StopReasonCode:{values:{STOP_REASON_HEAD_VEHICLE:1,STOP_REASON_DESTINATION:2,STOP_REASON_PEDESTRIAN:3,STOP_REASON_OBSTACLE:4,STOP_REASON_PREPARKING:5,STOP_REASON_SIGNAL:100,STOP_REASON_STOP_SIGN:101,STOP_REASON_YIELD_SIGN:102,STOP_REASON_CLEAR_ZONE:103,STOP_REASON_CROSSWALK:104,STOP_REASON_CREEPER:105,STOP_REASON_REFERENCE_END:106,STOP_REASON_YELLOW_SIGNAL:107,STOP_REASON_PULL_OVER:108}},ObjectStop:{fields:{reasonCode:{type:\"StopReasonCode\",id:1},distanceS:{type:\"double\",id:2},stopPoint:{type:\"apollo.common.PointENU\",id:3},stopHeading:{type:\"double\",id:4},waitForObstacle:{rule:\"repeated\",type:\"string\",id:5}}},ObjectNudge:{fields:{type:{type:\"Type\",id:1},distanceL:{type:\"double\",id:2}},nested:{Type:{values:{LEFT_NUDGE:1,RIGHT_NUDGE:2,NO_NUDGE:3}}}},ObjectYield:{fields:{distanceS:{type:\"double\",id:1},fencePoint:{type:\"apollo.common.PointENU\",id:2},fenceHeading:{type:\"double\",id:3},timeBuffer:{type:\"double\",id:4}}},ObjectFollow:{fields:{distanceS:{type:\"double\",id:1},fencePoint:{type:\"apollo.common.PointENU\",id:2},fenceHeading:{type:\"double\",id:3}}},ObjectOvertake:{fields:{distanceS:{type:\"double\",id:1},fencePoint:{type:\"apollo.common.PointENU\",id:2},fenceHeading:{type:\"double\",id:3},timeBuffer:{type:\"double\",id:4}}},ObjectSidePass:{fields:{type:{type:\"Type\",id:1}},nested:{Type:{values:{LEFT:1,RIGHT:2}}}},ObjectAvoid:{fields:{}},ObjectDecisionType:{oneofs:{objectTag:{oneof:[\"ignore\",\"stop\",\"follow\",\"yield\",\"overtake\",\"nudge\",\"avoid\"]}},fields:{ignore:{type:\"ObjectIgnore\",id:1},stop:{type:\"ObjectStop\",id:2},follow:{type:\"ObjectFollow\",id:3},yield:{type:\"ObjectYield\",id:4},overtake:{type:\"ObjectOvertake\",id:5},nudge:{type:\"ObjectNudge\",id:6},avoid:{type:\"ObjectAvoid\",id:7}}},ObjectDecision:{fields:{id:{type:\"string\",id:1},perceptionId:{type:\"int32\",id:2},objectDecision:{rule:\"repeated\",type:\"ObjectDecisionType\",id:3}}},ObjectDecisions:{fields:{decision:{rule:\"repeated\",type:\"ObjectDecision\",id:1}}},MainStop:{fields:{reasonCode:{type:\"StopReasonCode\",id:1},reason:{type:\"string\",id:2},stopPoint:{type:\"apollo.common.PointENU\",id:3},stopHeading:{type:\"double\",id:4},changeLaneType:{type:\"apollo.routing.ChangeLaneType\",id:5}}},EmergencyStopHardBrake:{fields:{}},EmergencyStopCruiseToStop:{fields:{}},MainEmergencyStop:{oneofs:{task:{oneof:[\"hardBrake\",\"cruiseToStop\"]}},fields:{reasonCode:{type:\"ReasonCode\",id:1},reason:{type:\"string\",id:2},hardBrake:{type:\"EmergencyStopHardBrake\",id:3},cruiseToStop:{type:\"EmergencyStopCruiseToStop\",id:4}},nested:{ReasonCode:{values:{ESTOP_REASON_INTERNAL_ERR:1,ESTOP_REASON_COLLISION:2,ESTOP_REASON_ST_FIND_PATH:3,ESTOP_REASON_ST_MAKE_DECISION:4,ESTOP_REASON_SENSOR_ERROR:5}}}},MainCruise:{fields:{changeLaneType:{type:\"apollo.routing.ChangeLaneType\",id:1}}},MainChangeLane:{fields:{type:{type:\"Type\",id:1},defaultLane:{rule:\"repeated\",type:\"TargetLane\",id:2},defaultLaneStop:{type:\"MainStop\",id:3},targetLaneStop:{type:\"MainStop\",id:4}},nested:{Type:{values:{LEFT:1,RIGHT:2}}}},MainMissionComplete:{fields:{stopPoint:{type:\"apollo.common.PointENU\",id:1},stopHeading:{type:\"double\",id:2}}},MainNotReady:{fields:{reason:{type:\"string\",id:1}}},MainParking:{fields:{}},MainDecision:{oneofs:{task:{oneof:[\"cruise\",\"stop\",\"estop\",\"changeLane\",\"missionComplete\",\"notReady\",\"parking\"]}},fields:{cruise:{type:\"MainCruise\",id:1},stop:{type:\"MainStop\",id:2},estop:{type:\"MainEmergencyStop\",id:3},changeLane:{type:\"MainChangeLane\",id:4,options:{deprecated:!0}},missionComplete:{type:\"MainMissionComplete\",id:6},notReady:{type:\"MainNotReady\",id:7},parking:{type:\"MainParking\",id:8},targetLane:{rule:\"repeated\",type:\"TargetLane\",id:5,options:{deprecated:!0}}}},DecisionResult:{fields:{mainDecision:{type:\"MainDecision\",id:1},objectDecision:{type:\"ObjectDecisions\",id:2},vehicleSignal:{type:\"apollo.common.VehicleSignal\",id:3}}},DpPolyPathConfig:{fields:{waypointSamplerConfig:{type:\"WaypointSamplerConfig\",id:1},evalTimeInterval:{type:\"double\",id:2,options:{default:.1}},pathResolution:{type:\"double\",id:3,options:{default:.1}},obstacleIgnoreDistance:{type:\"double\",id:4,options:{default:20}},obstacleCollisionDistance:{type:\"double\",id:5,options:{default:.2}},obstacleRiskDistance:{type:\"double\",id:6,options:{default:2}},obstacleCollisionCost:{type:\"double\",id:7,options:{default:1e3}},pathLCost:{type:\"double\",id:8},pathDlCost:{type:\"double\",id:9},pathDdlCost:{type:\"double\",id:10},pathLCostParamL0:{type:\"double\",id:11},pathLCostParamB:{type:\"double\",id:12},pathLCostParamK:{type:\"double\",id:13},pathOutLaneCost:{type:\"double\",id:14},pathEndLCost:{type:\"double\",id:15}}},DpStSpeedConfig:{fields:{totalPathLength:{type:\"double\",id:1,options:{default:.1}},totalTime:{type:\"double\",id:2,options:{default:3}},matrixDimensionS:{type:\"int32\",id:3,options:{default:100}},matrixDimensionT:{type:\"int32\",id:4,options:{default:10}},speedWeight:{type:\"double\",id:5,options:{default:0}},accelWeight:{type:\"double\",id:6,options:{default:10}},jerkWeight:{type:\"double\",id:7,options:{default:10}},obstacleWeight:{type:\"double\",id:8,options:{default:1}},referenceWeight:{type:\"double\",id:9,options:{default:0}},goDownBuffer:{type:\"double\",id:10,options:{default:5}},goUpBuffer:{type:\"double\",id:11,options:{default:5}},defaultObstacleCost:{type:\"double\",id:12,options:{default:1e10}},defaultSpeedCost:{type:\"double\",id:13,options:{default:1}},exceedSpeedPenalty:{type:\"double\",id:14,options:{default:10}},lowSpeedPenalty:{type:\"double\",id:15,options:{default:2.5}},keepClearLowSpeedPenalty:{type:\"double\",id:16,options:{default:10}},accelPenalty:{type:\"double\",id:20,options:{default:2}},decelPenalty:{type:\"double\",id:21,options:{default:2}},positiveJerkCoeff:{type:\"double\",id:30,options:{default:1}},negativeJerkCoeff:{type:\"double\",id:31,options:{default:300}},maxAcceleration:{type:\"double\",id:40,options:{default:4.5}},maxDeceleration:{type:\"double\",id:41,options:{default:-4.5}},stBoundaryConfig:{type:\"apollo.planning.StBoundaryConfig\",id:50}}},LonCondition:{fields:{s:{type:\"double\",id:1,options:{default:0}},ds:{type:\"double\",id:2,options:{default:0}},dds:{type:\"double\",id:3,options:{default:0}}}},LatCondition:{fields:{l:{type:\"double\",id:1,options:{default:0}},dl:{type:\"double\",id:2,options:{default:0}},ddl:{type:\"double\",id:3,options:{default:0}}}},TStrategy:{fields:{tMarkers:{rule:\"repeated\",type:\"double\",id:1,options:{packed:!1}},tStep:{type:\"double\",id:2,options:{default:.5}},strategy:{type:\"string\",id:3}}},SStrategy:{fields:{sMarkers:{rule:\"repeated\",type:\"double\",id:1,options:{packed:!1}},sStep:{type:\"double\",id:2,options:{default:.5}},strategy:{type:\"string\",id:3}}},LonSampleConfig:{fields:{lonEndCondition:{type:\"LonCondition\",id:1},tStrategy:{type:\"TStrategy\",id:2}}},LatSampleConfig:{fields:{latEndCondition:{type:\"LatCondition\",id:1},sStrategy:{type:\"SStrategy\",id:2}}},LatticeSamplingConfig:{fields:{lonSampleConfig:{type:\"LonSampleConfig\",id:1},latSampleConfig:{type:\"LatSampleConfig\",id:2}}},PathTimePoint:{fields:{t:{type:\"double\",id:1},s:{type:\"double\",id:2},obstacleId:{type:\"string\",id:4}}},SamplePoint:{fields:{pathTimePoint:{type:\"PathTimePoint\",id:1},refV:{type:\"double\",id:2}}},PathTimeObstacle:{fields:{obstacleId:{type:\"string\",id:1},bottomLeft:{type:\"PathTimePoint\",id:2},upperLeft:{type:\"PathTimePoint\",id:3},upperRight:{type:\"PathTimePoint\",id:4},bottomRight:{type:\"PathTimePoint\",id:5},timeLower:{type:\"double\",id:6},timeUpper:{type:\"double\",id:7},pathLower:{type:\"double\",id:8},pathUpper:{type:\"double\",id:9}}},StopPoint:{fields:{s:{type:\"double\",id:1},type:{type:\"Type\",id:2,options:{default:\"HARD\"}}},nested:{Type:{values:{HARD:0,SOFT:1}}}},PlanningTarget:{fields:{stopPoint:{type:\"StopPoint\",id:1},cruiseSpeed:{type:\"double\",id:2}}},NaviObstacleDeciderConfig:{fields:{minNudgeDistance:{type:\"double\",id:1,options:{default:.2}},maxNudgeDistance:{type:\"double\",id:2,options:{default:1.2}},maxAllowNudgeSpeed:{type:\"double\",id:3,options:{default:16.667}},safeDistance:{type:\"double\",id:4,options:{default:.2}},nudgeAllowTolerance:{type:\"double\",id:5,options:{default:.05}},cyclesNumber:{type:\"uint32\",id:6,options:{default:3}},judgeDisCoeff:{type:\"double\",id:7,options:{default:2}},basisDisValue:{type:\"double\",id:8,options:{default:30}},lateralVelocityValue:{type:\"double\",id:9,options:{default:.5}},speedDeciderDetectRange:{type:\"double\",id:10,options:{default:1}},maxKeepNudgeCycles:{type:\"uint32\",id:11,options:{default:100}}}},NaviPathDeciderConfig:{fields:{minPathLength:{type:\"double\",id:1,options:{default:5}},minLookForwardTime:{type:\"uint32\",id:2,options:{default:2}},maxKeepLaneDistance:{type:\"double\",id:3,options:{default:.8}},maxKeepLaneShiftY:{type:\"double\",id:4,options:{default:20}},minKeepLaneOffset:{type:\"double\",id:5,options:{default:15}},keepLaneShiftCompensation:{type:\"double\",id:6,options:{default:.01}},moveDestLaneConfigTalbe:{type:\"MoveDestLaneConfigTable\",id:7},moveDestLaneCompensation:{type:\"double\",id:8,options:{default:.35}},maxKappaThreshold:{type:\"double\",id:9,options:{default:0}},kappaMoveDestLaneCompensation:{type:\"double\",id:10,options:{default:0}},startPlanPointFrom:{type:\"uint32\",id:11,options:{default:0}}}},MoveDestLaneConfigTable:{fields:{lateralShift:{rule:\"repeated\",type:\"ShiftConfig\",id:1}}},ShiftConfig:{fields:{maxSpeed:{type:\"double\",id:1,options:{default:4.16}},maxMoveDestLaneShiftY:{type:\"double\",id:3,options:{default:.4}}}},NaviSpeedDeciderConfig:{fields:{preferredAccel:{type:\"double\",id:1,options:{default:2}},preferredDecel:{type:\"double\",id:2,options:{default:2}},preferredJerk:{type:\"double\",id:3,options:{default:2}},maxAccel:{type:\"double\",id:4,options:{default:4}},maxDecel:{type:\"double\",id:5,options:{default:5}},obstacleBuffer:{type:\"double\",id:6,options:{default:.5}},safeDistanceBase:{type:\"double\",id:7,options:{default:2}},safeDistanceRatio:{type:\"double\",id:8,options:{default:1}},followingAccelRatio:{type:\"double\",id:9,options:{default:.5}},softCentricAccelLimit:{type:\"double\",id:10,options:{default:1.2}},hardCentricAccelLimit:{type:\"double\",id:11,options:{default:1.5}},hardSpeedLimit:{type:\"double\",id:12,options:{default:100}},hardAccelLimit:{type:\"double\",id:13,options:{default:10}},enableSafePath:{type:\"bool\",id:14,options:{default:!0}},enablePlanningStartPoint:{type:\"bool\",id:15,options:{default:!0}},enableAccelAutoCompensation:{type:\"bool\",id:16,options:{default:!0}},kappaPreview:{type:\"double\",id:17,options:{default:0}},kappaThreshold:{type:\"double\",id:18,options:{default:0}}}},DrivingAction:{values:{FOLLOW:0,CHANGE_LEFT:1,CHANGE_RIGHT:2,PULL_OVER:3,STOP:4}},PadMessage:{fields:{header:{type:\"apollo.common.Header\",id:1},action:{type:\"DrivingAction\",id:2}}},PlannerOpenSpaceConfig:{fields:{warmStartConfig:{type:\"WarmStartConfig\",id:1},dualVariableWarmStartConfig:{type:\"DualVariableWarmStartConfig\",id:2},distanceApproachConfig:{type:\"DistanceApproachConfig\",id:3},deltaT:{type:\"float\",id:4,options:{default:1}},maxPositionErrorToEndPoint:{type:\"double\",id:5,options:{default:.5}},maxThetaErrorToEndPoint:{type:\"double\",id:6,options:{default:.2}}}},WarmStartConfig:{fields:{xyGridResolution:{type:\"double\",id:1,options:{default:.2}},phiGridResolution:{type:\"double\",id:2,options:{default:.05}},maxSteering:{type:\"double\",id:7,options:{default:.6}},nextNodeNum:{type:\"uint64\",id:8,options:{default:10}},stepSize:{type:\"double\",id:9,options:{default:.5}},backPenalty:{type:\"double\",id:10,options:{default:0}},gearSwitchPenalty:{type:\"double\",id:11,options:{default:10}},steerPenalty:{type:\"double\",id:12,options:{default:100}},steerChangePenalty:{type:\"double\",id:13,options:{default:10}}}},DualVariableWarmStartConfig:{fields:{weightD:{type:\"double\",id:1,options:{default:1}}}},DistanceApproachConfig:{fields:{weightU:{rule:\"repeated\",type:\"double\",id:1,options:{packed:!1}},weightURate:{rule:\"repeated\",type:\"double\",id:2,options:{packed:!1}},weightState:{rule:\"repeated\",type:\"double\",id:3,options:{packed:!1}},weightStitching:{rule:\"repeated\",type:\"double\",id:4,options:{packed:!1}},weightTime:{rule:\"repeated\",type:\"double\",id:5,options:{packed:!1}},minSafetyDistance:{type:\"double\",id:6,options:{default:0}},maxSteerAngle:{type:\"double\",id:7,options:{default:.6}},maxSteerRate:{type:\"double\",id:8,options:{default:.6}},maxSpeedForward:{type:\"double\",id:9,options:{default:3}},maxSpeedReverse:{type:\"double\",id:10,options:{default:2}},maxAccelerationForward:{type:\"double\",id:11,options:{default:2}},maxAccelerationReverse:{type:\"double\",id:12,options:{default:2}},minTimeSampleScaling:{type:\"double\",id:13,options:{default:.1}},maxTimeSampleScaling:{type:\"double\",id:14,options:{default:10}},useFixTime:{type:\"bool\",id:18,options:{default:!1}}}},ADCSignals:{fields:{signal:{rule:\"repeated\",type:\"SignalType\",id:1,options:{packed:!1}}},nested:{SignalType:{values:{LEFT_TURN:1,RIGHT_TURN:2,LOW_BEAM_LIGHT:3,HIGH_BEAM_LIGHT:4,FOG_LIGHT:5,EMERGENCY_LIGHT:6}}}},EStop:{fields:{isEstop:{type:\"bool\",id:1},reason:{type:\"string\",id:2}}},TaskStats:{fields:{name:{type:\"string\",id:1},timeMs:{type:\"double\",id:2}}},LatencyStats:{fields:{totalTimeMs:{type:\"double\",id:1},taskStats:{rule:\"repeated\",type:\"TaskStats\",id:2},initFrameTimeMs:{type:\"double\",id:3}}},ADCTrajectory:{fields:{header:{type:\"apollo.common.Header\",id:1},totalPathLength:{type:\"double\",id:2},totalPathTime:{type:\"double\",id:3},trajectoryPoint:{rule:\"repeated\",type:\"apollo.common.TrajectoryPoint\",id:12},estop:{type:\"EStop\",id:6},pathPoint:{rule:\"repeated\",type:\"apollo.common.PathPoint\",id:13},isReplan:{type:\"bool\",id:9,options:{default:!1}},gear:{type:\"apollo.canbus.Chassis.GearPosition\",id:10},decision:{type:\"apollo.planning.DecisionResult\",id:14},latencyStats:{type:\"LatencyStats\",id:15},routingHeader:{type:\"apollo.common.Header\",id:16},debug:{type:\"apollo.planning_internal.Debug\",id:8},rightOfWayStatus:{type:\"RightOfWayStatus\",id:17},laneId:{rule:\"repeated\",type:\"apollo.hdmap.Id\",id:18},engageAdvice:{type:\"apollo.common.EngageAdvice\",id:19},criticalRegion:{type:\"CriticalRegion\",id:20},trajectoryType:{type:\"TrajectoryType\",id:21,options:{default:\"UNKNOWN\"}}},nested:{RightOfWayStatus:{values:{UNPROTECTED:0,PROTECTED:1}},CriticalRegion:{fields:{region:{rule:\"repeated\",type:\"apollo.common.Polygon\",id:1}}},TrajectoryType:{values:{UNKNOWN:0,NORMAL:1,PATH_FALLBACK:2,SPEED_FALLBACK:3}}}},PathDeciderConfig:{fields:{}},TaskConfig:{oneofs:{taskConfig:{oneof:[\"dpPolyPathConfig\",\"dpStSpeedConfig\",\"qpSplinePathConfig\",\"qpStSpeedConfig\",\"polyStSpeedConfig\",\"pathDeciderConfig\",\"proceedWithCautionSpeedConfig\",\"qpPiecewiseJerkPathConfig\",\"deciderCreepConfig\",\"deciderRuleBasedStopConfig\",\"sidePassSafetyConfig\",\"sidePassPathDeciderConfig\",\"polyVtSpeedConfig\"]}},fields:{taskType:{type:\"TaskType\",id:1},dpPolyPathConfig:{type:\"DpPolyPathConfig\",id:2},dpStSpeedConfig:{type:\"DpStSpeedConfig\",id:3},qpSplinePathConfig:{type:\"QpSplinePathConfig\",id:4},qpStSpeedConfig:{type:\"QpStSpeedConfig\",id:5},polyStSpeedConfig:{type:\"PolyStSpeedConfig\",id:6},pathDeciderConfig:{type:\"PathDeciderConfig\",id:7},proceedWithCautionSpeedConfig:{type:\"ProceedWithCautionSpeedConfig\",id:8},qpPiecewiseJerkPathConfig:{type:\"QpPiecewiseJerkPathConfig\",id:9},deciderCreepConfig:{type:\"DeciderCreepConfig\",id:10},deciderRuleBasedStopConfig:{type:\"DeciderRuleBasedStopConfig\",id:11},sidePassSafetyConfig:{type:\"SidePassSafetyConfig\",id:12},sidePassPathDeciderConfig:{type:\"SidePassPathDeciderConfig\",id:13},polyVtSpeedConfig:{type:\"PolyVTSpeedConfig\",id:14}},nested:{TaskType:{values:{DP_POLY_PATH_OPTIMIZER:0,DP_ST_SPEED_OPTIMIZER:1,QP_SPLINE_PATH_OPTIMIZER:2,QP_SPLINE_ST_SPEED_OPTIMIZER:3,PATH_DECIDER:4,SPEED_DECIDER:5,POLY_ST_SPEED_OPTIMIZER:6,NAVI_PATH_DECIDER:7,NAVI_SPEED_DECIDER:8,NAVI_OBSTACLE_DECIDER:9,QP_PIECEWISE_JERK_PATH_OPTIMIZER:10,DECIDER_CREEP:11,DECIDER_RULE_BASED_STOP:12,SIDE_PASS_PATH_DECIDER:13,SIDE_PASS_SAFETY:14,PROCEED_WITH_CAUTION_SPEED:15,DECIDER_RSS:16}}}},ScenarioLaneFollowConfig:{fields:{}},ScenarioSidePassConfig:{fields:{sidePassExitDistance:{type:\"double\",id:1,options:{default:10}},approachObstacleMaxStopSpeed:{type:\"double\",id:2,options:{default:1e-5}},approachObstacleMinStopDistance:{type:\"double\",id:3,options:{default:4}},blockObstacleMinSpeed:{type:\"double\",id:4,options:{default:.1}}}},ScenarioStopSignUnprotectedConfig:{fields:{startStopSignScenarioDistance:{type:\"double\",id:1,options:{default:5}},watchVehicleMaxValidStopDistance:{type:\"double\",id:2,options:{default:5}},maxValidStopDistance:{type:\"double\",id:3,options:{default:3.5}},maxAdcStopSpeed:{type:\"double\",id:4,options:{default:.3}},stopDuration:{type:\"float\",id:5,options:{default:1}},minPassSDistance:{type:\"double\",id:6,options:{default:3}},waitTimeout:{type:\"float\",id:7,options:{default:8}}}},ScenarioTrafficLightRightTurnUnprotectedConfig:{fields:{startTrafficLightScenarioTimer:{type:\"uint32\",id:1,options:{default:20}},maxValidStopDistance:{type:\"double\",id:2,options:{default:3.5}},maxAdcStopSpeed:{type:\"double\",id:3,options:{default:.3}},minPassSDistance:{type:\"double\",id:4,options:{default:3}}}},ScenarioConfig:{oneofs:{scenarioConfig:{oneof:[\"laneFollowConfig\",\"sidePassConfig\",\"stopSignUnprotectedConfig\",\"trafficLightRightTurnUnprotectedConfig\"]}},fields:{scenarioType:{type:\"ScenarioType\",id:1},laneFollowConfig:{type:\"ScenarioLaneFollowConfig\",id:2},sidePassConfig:{type:\"ScenarioSidePassConfig\",id:3},stopSignUnprotectedConfig:{type:\"ScenarioStopSignUnprotectedConfig\",id:4},trafficLightRightTurnUnprotectedConfig:{type:\"ScenarioTrafficLightRightTurnUnprotectedConfig\",id:5},stageType:{rule:\"repeated\",type:\"StageType\",id:6,options:{packed:!1}},stageConfig:{rule:\"repeated\",type:\"StageConfig\",id:7}},nested:{ScenarioType:{values:{LANE_FOLLOW:0,CHANGE_LANE:1,SIDE_PASS:2,APPROACH:3,STOP_SIGN_PROTECTED:4,STOP_SIGN_UNPROTECTED:5,TRAFFIC_LIGHT_LEFT_TURN_PROTECTED:6,TRAFFIC_LIGHT_LEFT_TURN_UNPROTECTED:7,TRAFFIC_LIGHT_RIGHT_TURN_PROTECTED:8,TRAFFIC_LIGHT_RIGHT_TURN_UNPROTECTED:9,TRAFFIC_LIGHT_GO_THROUGH:10}},StageType:{values:{NO_STAGE:0,LANE_FOLLOW_DEFAULT_STAGE:1,STOP_SIGN_UNPROTECTED_PRE_STOP:100,STOP_SIGN_UNPROTECTED_STOP:101,STOP_SIGN_UNPROTECTED_CREEP:102,STOP_SIGN_UNPROTECTED_INTERSECTION_CRUISE:103,SIDE_PASS_APPROACH_OBSTACLE:200,SIDE_PASS_GENERATE_PATH:201,SIDE_PASS_STOP_ON_WAITPOINT:202,SIDE_PASS_DETECT_SAFETY:203,SIDE_PASS_PASS_OBSTACLE:204,SIDE_PASS_BACKUP:205,TRAFFIC_LIGHT_RIGHT_TURN_UNPROTECTED_STOP:300,TRAFFIC_LIGHT_RIGHT_TURN_UNPROTECTED_CREEP:301,TRAFFIC_LIGHT_RIGHT_TURN_UNPROTECTED_INTERSECTION_CRUISE:302}},StageConfig:{fields:{stageType:{type:\"StageType\",id:1},enabled:{type:\"bool\",id:2,options:{default:!0}},taskType:{rule:\"repeated\",type:\"TaskConfig.TaskType\",id:3,options:{packed:!1}},taskConfig:{rule:\"repeated\",type:\"TaskConfig\",id:4}}}}},PlannerPublicRoadConfig:{fields:{scenarioType:{rule:\"repeated\",type:\"ScenarioConfig.ScenarioType\",id:1,options:{packed:!1}}}},PlannerNaviConfig:{fields:{task:{rule:\"repeated\",type:\"TaskConfig.TaskType\",id:1,options:{packed:!1}},naviPathDeciderConfig:{type:\"NaviPathDeciderConfig\",id:2},naviSpeedDeciderConfig:{type:\"NaviSpeedDeciderConfig\",id:3},naviObstacleDeciderConfig:{type:\"NaviObstacleDeciderConfig\",id:4}}},PlannerType:{values:{RTK:0,PUBLIC_ROAD:1,OPEN_SPACE:2,NAVI:3,LATTICE:4}},RtkPlanningConfig:{fields:{plannerType:{type:\"PlannerType\",id:1}}},StandardPlanningConfig:{fields:{plannerType:{rule:\"repeated\",type:\"PlannerType\",id:1,options:{packed:!1}},plannerPublicRoadConfig:{type:\"PlannerPublicRoadConfig\",id:2}}},NavigationPlanningConfig:{fields:{plannerType:{rule:\"repeated\",type:\"PlannerType\",id:1,options:{packed:!1}},plannerNaviConfig:{type:\"PlannerNaviConfig\",id:4}}},OpenSpacePlanningConfig:{fields:{plannerType:{rule:\"repeated\",type:\"PlannerType\",id:1,options:{packed:!1}},plannerOpenSpaceConfig:{type:\"PlannerOpenSpaceConfig\",id:2}}},PlanningConfig:{oneofs:{planningConfig:{oneof:[\"rtkPlanningConfig\",\"standardPlanningConfig\",\"navigationPlanningConfig\",\"openSpacePlanningConfig\"]}},fields:{rtkPlanningConfig:{type:\"RtkPlanningConfig\",id:1},standardPlanningConfig:{type:\"StandardPlanningConfig\",id:2},navigationPlanningConfig:{type:\"NavigationPlanningConfig\",id:3},openSpacePlanningConfig:{type:\"OpenSpacePlanningConfig\",id:4},defaultTaskConfig:{rule:\"repeated\",type:\"TaskConfig\",id:5}}},StatsGroup:{fields:{max:{type:\"double\",id:1},min:{type:\"double\",id:2,options:{default:1e10}},sum:{type:\"double\",id:3},avg:{type:\"double\",id:4},num:{type:\"int32\",id:5}}},PlanningStats:{fields:{totalPathLength:{type:\"StatsGroup\",id:1},totalPathTime:{type:\"StatsGroup\",id:2},v:{type:\"StatsGroup\",id:3},a:{type:\"StatsGroup\",id:4},kappa:{type:\"StatsGroup\",id:5},dkappa:{type:\"StatsGroup\",id:6}}},ChangeLaneStatus:{fields:{status:{type:\"Status\",id:1},pathId:{type:\"string\",id:2},timestamp:{type:\"double\",id:3}},nested:{Status:{values:{IN_CHANGE_LANE:1,CHANGE_LANE_FAILED:2,CHANGE_LANE_SUCCESS:3}}}},StopTimer:{fields:{obstacleId:{type:\"string\",id:1},stopTime:{type:\"double\",id:2}}},CrosswalkStatus:{fields:{crosswalkId:{type:\"string\",id:1},stopTimers:{rule:\"repeated\",type:\"StopTimer\",id:2}}},PullOverStatus:{fields:{inPullOver:{type:\"bool\",id:1,options:{default:!1}},status:{type:\"Status\",id:2},inlaneDestPoint:{type:\"apollo.common.PointENU\",id:3},startPoint:{type:\"apollo.common.PointENU\",id:4},stopPoint:{type:\"apollo.common.PointENU\",id:5},stopPointHeading:{type:\"double\",id:6},reason:{type:\"Reason\",id:7},statusSetTime:{type:\"double\",id:8}},nested:{Reason:{values:{DESTINATION:1}},Status:{values:{UNKNOWN:1,IN_OPERATION:2,DONE:3,DISABLED:4}}}},ReroutingStatus:{fields:{lastReroutingTime:{type:\"double\",id:1},needRerouting:{type:\"bool\",id:2,options:{default:!1}},routingRequest:{type:\"routing.RoutingRequest\",id:3}}},RightOfWayStatus:{fields:{junction:{keyType:\"string\",type:\"bool\",id:1}}},SidePassStatus:{fields:{status:{type:\"Status\",id:1},waitStartTime:{type:\"double\",id:2},passObstacleId:{type:\"string\",id:3},passSide:{type:\"apollo.planning.ObjectSidePass.Type\",id:4}},nested:{Status:{values:{UNKNOWN:0,DRIVE:1,WAIT:2,SIDEPASS:3}}}},StopSignStatus:{fields:{stopSignId:{type:\"string\",id:1},status:{type:\"Status\",id:2},stopStartTime:{type:\"double\",id:3},laneWatchVehicles:{rule:\"repeated\",type:\"LaneWatchVehicles\",id:4}},nested:{Status:{values:{UNKNOWN:0,DRIVE:1,STOP:2,WAIT:3,CREEP:4,STOP_DONE:5}},LaneWatchVehicles:{fields:{laneId:{type:\"string\",id:1},watchVehicles:{rule:\"repeated\",type:\"string\",id:2}}}}},DestinationStatus:{fields:{hasPassedDestination:{type:\"bool\",id:1,options:{default:!1}}}},PlanningStatus:{fields:{changeLane:{type:\"ChangeLaneStatus\",id:1},crosswalk:{type:\"CrosswalkStatus\",id:2},engageAdvice:{type:\"apollo.common.EngageAdvice\",id:3},rerouting:{type:\"ReroutingStatus\",id:4},rightOfWay:{type:\"RightOfWayStatus\",id:5},sidePass:{type:\"SidePassStatus\",id:6},stopSign:{type:\"StopSignStatus\",id:7},destination:{type:\"DestinationStatus\",id:8},pullOver:{type:\"PullOverStatus\",id:9}}},PolyStSpeedConfig:{fields:{totalPathLength:{type:\"double\",id:1},totalTime:{type:\"double\",id:2},preferredAccel:{type:\"double\",id:3},preferredDecel:{type:\"double\",id:4},maxAccel:{type:\"double\",id:5},minDecel:{type:\"double\",id:6},speedLimitBuffer:{type:\"double\",id:7},speedWeight:{type:\"double\",id:8},jerkWeight:{type:\"double\",id:9},obstacleWeight:{type:\"double\",id:10},unblockingObstacleCost:{type:\"double\",id:11},stBoundaryConfig:{type:\"apollo.planning.StBoundaryConfig\",id:12}}},PolyVTSpeedConfig:{fields:{totalTime:{type:\"double\",id:1,options:{default:0}},totalS:{type:\"double\",id:2,options:{default:0}},numTLayers:{type:\"int32\",id:3},onlineNumVLayers:{type:\"int32\",id:4},matrixDimS:{type:\"int32\",id:5},onlineMaxAcc:{type:\"double\",id:6},onlineMaxDec:{type:\"double\",id:7},onlineMaxSpeed:{type:\"double\",id:8},offlineNumVLayers:{type:\"int32\",id:9},offlineMaxAcc:{type:\"double\",id:10},offlineMaxDec:{type:\"double\",id:11},offlineMaxSpeed:{type:\"double\",id:12},numEvaluatedPoints:{type:\"int32\",id:13},samplingUnitV:{type:\"double\",id:14},maxSamplingUnitV:{type:\"double\",id:15},stBoundaryConfig:{type:\"apollo.planning.StBoundaryConfig\",id:16}}},ProceedWithCautionSpeedConfig:{fields:{maxDistance:{type:\"double\",id:1,options:{default:5}}}},QpPiecewiseJerkPathConfig:{fields:{pathResolution:{type:\"double\",id:1,options:{default:1}},qpDeltaS:{type:\"double\",id:2,options:{default:1}},minLookAheadTime:{type:\"double\",id:3,options:{default:6}},minLookAheadDistance:{type:\"double\",id:4,options:{default:60}},lateralBuffer:{type:\"double\",id:5,options:{default:.2}},pathOutputResolution:{type:\"double\",id:6,options:{default:.1}},lWeight:{type:\"double\",id:7,options:{default:1}},dlWeight:{type:\"double\",id:8,options:{default:100}},ddlWeight:{type:\"double\",id:9,options:{default:500}},dddlWeight:{type:\"double\",id:10,options:{default:1e3}},guidingLineWeight:{type:\"double\",id:11,options:{default:1}}}},QuadraticProgrammingProblem:{fields:{paramSize:{type:\"int32\",id:1},quadraticMatrix:{type:\"QPMatrix\",id:2},bias:{rule:\"repeated\",type:\"double\",id:3,options:{packed:!1}},equalityMatrix:{type:\"QPMatrix\",id:4},equalityValue:{rule:\"repeated\",type:\"double\",id:5,options:{packed:!1}},inequalityMatrix:{type:\"QPMatrix\",id:6},inequalityValue:{rule:\"repeated\",type:\"double\",id:7,options:{packed:!1}},inputMarker:{rule:\"repeated\",type:\"double\",id:8,options:{packed:!1}},optimalParam:{rule:\"repeated\",type:\"double\",id:9,options:{packed:!1}}}},QPMatrix:{fields:{rowSize:{type:\"int32\",id:1},colSize:{type:\"int32\",id:2},element:{rule:\"repeated\",type:\"double\",id:3,options:{packed:!1}}}},QuadraticProgrammingProblemSet:{fields:{problem:{rule:\"repeated\",type:\"QuadraticProgrammingProblem\",id:1}}},QpSplinePathConfig:{fields:{splineOrder:{type:\"uint32\",id:1,options:{default:6}},maxSplineLength:{type:\"double\",id:2,options:{default:15}},maxConstraintInterval:{type:\"double\",id:3,options:{default:15}},timeResolution:{type:\"double\",id:4,options:{default:.1}},regularizationWeight:{type:\"double\",id:5,options:{default:.001}},firstSplineWeightFactor:{type:\"double\",id:6,options:{default:10}},derivativeWeight:{type:\"double\",id:7,options:{default:0}},secondDerivativeWeight:{type:\"double\",id:8,options:{default:0}},thirdDerivativeWeight:{type:\"double\",id:9,options:{default:100}},referenceLineWeight:{type:\"double\",id:10,options:{default:0}},numOutput:{type:\"uint32\",id:11,options:{default:100}},crossLaneLateralExtension:{type:\"double\",id:12,options:{default:1.2}},crossLaneLongitudinalExtension:{type:\"double\",id:13,options:{default:50}},historyPathWeight:{type:\"double\",id:14,options:{default:0}},laneChangeMidL:{type:\"double\",id:15,options:{default:.6}},pointConstraintSPosition:{type:\"double\",id:16,options:{default:110}},laneChangeLateralShift:{type:\"double\",id:17,options:{default:1}},uturnSpeedLimit:{type:\"double\",id:18,options:{default:5}}}},QpSplineConfig:{fields:{numberOfDiscreteGraphT:{type:\"uint32\",id:1},splineOrder:{type:\"uint32\",id:2},speedKernelWeight:{type:\"double\",id:3},accelKernelWeight:{type:\"double\",id:4},jerkKernelWeight:{type:\"double\",id:5},followWeight:{type:\"double\",id:6},stopWeight:{type:\"double\",id:7},cruiseWeight:{type:\"double\",id:8},regularizationWeight:{type:\"double\",id:9,options:{default:.1}},followDragDistance:{type:\"double\",id:10},dpStReferenceWeight:{type:\"double\",id:11},initJerkKernelWeight:{type:\"double\",id:12},yieldWeight:{type:\"double\",id:13},yieldDragDistance:{type:\"double\",id:14}}},QpPiecewiseConfig:{fields:{numberOfEvaluatedGraphT:{type:\"uint32\",id:1},accelKernelWeight:{type:\"double\",id:2},jerkKernelWeight:{type:\"double\",id:3},followWeight:{type:\"double\",id:4},stopWeight:{type:\"double\",id:5},cruiseWeight:{type:\"double\",id:6},regularizationWeight:{type:\"double\",id:7,options:{default:.1}},followDragDistance:{type:\"double\",id:8}}},QpStSpeedConfig:{fields:{totalPathLength:{type:\"double\",id:1,options:{default:200}},totalTime:{type:\"double\",id:2,options:{default:6}},preferredMaxAcceleration:{type:\"double\",id:4,options:{default:1.2}},preferredMinDeceleration:{type:\"double\",id:5,options:{default:-1.8}},maxAcceleration:{type:\"double\",id:6,options:{default:2}},minDeceleration:{type:\"double\",id:7,options:{default:-4.5}},qpSplineConfig:{type:\"QpSplineConfig\",id:8},qpPiecewiseConfig:{type:\"QpPiecewiseConfig\",id:9},stBoundaryConfig:{type:\"apollo.planning.StBoundaryConfig\",id:10}}},QpSplineSmootherConfig:{fields:{splineOrder:{type:\"uint32\",id:1,options:{default:5}},maxSplineLength:{type:\"double\",id:2,options:{default:25}},regularizationWeight:{type:\"double\",id:3,options:{default:.1}},secondDerivativeWeight:{type:\"double\",id:4,options:{default:0}},thirdDerivativeWeight:{type:\"double\",id:5,options:{default:100}}}},SpiralSmootherConfig:{fields:{maxDeviation:{type:\"double\",id:1,options:{default:.1}},piecewiseLength:{type:\"double\",id:2,options:{default:10}},maxIteration:{type:\"int32\",id:3,options:{default:1e3}},optTol:{type:\"double\",id:4,options:{default:1e-8}},optAcceptableTol:{type:\"double\",id:5,options:{default:1e-6}},optAcceptableIteration:{type:\"int32\",id:6,options:{default:15}},optWeightCurveLength:{type:\"double\",id:7,options:{default:0}},optWeightKappa:{type:\"double\",id:8,options:{default:1.5}},optWeightDkappa:{type:\"double\",id:9,options:{default:1}},optWeightD2kappa:{type:\"double\",id:10,options:{default:0}}}},CosThetaSmootherConfig:{fields:{maxPointDeviation:{type:\"double\",id:1,options:{default:5}},numOfIteration:{type:\"int32\",id:2,options:{default:1e4}},weightCosIncludedAngle:{type:\"double\",id:3,options:{default:1e4}},acceptableTol:{type:\"double\",id:4,options:{default:.1}},relax:{type:\"double\",id:5,options:{default:.2}},reoptQpBound:{type:\"double\",id:6,options:{default:.05}}}},ReferenceLineSmootherConfig:{oneofs:{SmootherConfig:{oneof:[\"qpSpline\",\"spiral\",\"cosTheta\"]}},fields:{maxConstraintInterval:{type:\"double\",id:1,options:{default:5}},longitudinalBoundaryBound:{type:\"double\",id:2,options:{default:1}},lateralBoundaryBound:{type:\"double\",id:3,options:{default:.1}},numOfTotalPoints:{type:\"uint32\",id:4,options:{default:500}},curbShift:{type:\"double\",id:5,options:{default:.2}},drivingSide:{type:\"DrivingSide\",id:6,options:{default:\"RIGHT\"}},wideLaneThresholdFactor:{type:\"double\",id:7,options:{default:2}},wideLaneShiftRemainFactor:{type:\"double\",id:8,options:{default:.5}},resolution:{type:\"double\",id:9,options:{default:.02}},qpSpline:{type:\"QpSplineSmootherConfig\",id:20},spiral:{type:\"SpiralSmootherConfig\",id:21},cosTheta:{type:\"CosThetaSmootherConfig\",id:22}},nested:{DrivingSide:{values:{LEFT:1,RIGHT:2}}}},SidePassPathDeciderConfig:{fields:{totalPathLength:{type:\"double\",id:1},pathResolution:{type:\"double\",id:2},maxDddl:{type:\"double\",id:3},lWeight:{type:\"double\",id:4},dlWeight:{type:\"double\",id:5},ddlWeight:{type:\"double\",id:6},dddlWeight:{type:\"double\",id:7},guidingLineWeight:{type:\"double\",id:8}}},SLBoundary:{fields:{startS:{type:\"double\",id:1},endS:{type:\"double\",id:2},startL:{type:\"double\",id:3},endL:{type:\"double\",id:4}}},SpiralCurveConfig:{fields:{simpsonSize:{type:\"int32\",id:1,options:{default:9}},newtonRaphsonTol:{type:\"double\",id:2,options:{default:.01}},newtonRaphsonMaxIter:{type:\"int32\",id:3,options:{default:20}}}},StBoundaryConfig:{fields:{boundaryBuffer:{type:\"double\",id:1,options:{default:.1}},highSpeedCentricAccelerationLimit:{type:\"double\",id:2,options:{default:1.2}},lowSpeedCentricAccelerationLimit:{type:\"double\",id:3,options:{default:1.4}},highSpeedThreshold:{type:\"double\",id:4,options:{default:20}},lowSpeedThreshold:{type:\"double\",id:5,options:{default:7}},minimalKappa:{type:\"double\",id:6,options:{default:1e-5}},pointExtension:{type:\"double\",id:7,options:{default:1}},lowestSpeed:{type:\"double\",id:8,options:{default:2.5}},numPointsToAvgKappa:{type:\"uint32\",id:9,options:{default:4}},staticObsNudgeSpeedRatio:{type:\"double\",id:10},dynamicObsNudgeSpeedRatio:{type:\"double\",id:11},centriJerkSpeedCoeff:{type:\"double\",id:12}}},BacksideVehicleConfig:{fields:{backsideLaneWidth:{type:\"double\",id:1,options:{default:4}}}},ChangeLaneConfig:{fields:{minOvertakeDistance:{type:\"double\",id:1,options:{default:10}},minOvertakeTime:{type:\"double\",id:2,options:{default:2}},enableGuardObstacle:{type:\"bool\",id:3,options:{default:!1}},guardDistance:{type:\"double\",id:4,options:{default:100}},minGuardSpeed:{type:\"double\",id:5,options:{default:1}}}},CreepConfig:{fields:{enabled:{type:\"bool\",id:1},creepDistanceToStopLine:{type:\"double\",id:2,options:{default:1}},stopDistance:{type:\"double\",id:3,options:{default:.5}},speedLimit:{type:\"double\",id:4,options:{default:1}},maxValidStopDistance:{type:\"double\",id:5,options:{default:.3}},minBoundaryT:{type:\"double\",id:6,options:{default:6}},minBoundaryS:{type:\"double\",id:7,options:{default:3}}}},CrosswalkConfig:{fields:{stopDistance:{type:\"double\",id:1,options:{default:1}},maxStopDeceleration:{type:\"double\",id:2,options:{default:4}},minPassSDistance:{type:\"double\",id:3,options:{default:1}},maxStopSpeed:{type:\"double\",id:4,options:{default:.3}},maxValidStopDistance:{type:\"double\",id:5,options:{default:3}},expandSDistance:{type:\"double\",id:6,options:{default:2}},stopStrickLDistance:{type:\"double\",id:7,options:{default:4}},stopLooseLDistance:{type:\"double\",id:8,options:{default:5}},stopTimeout:{type:\"double\",id:9,options:{default:10}}}},DestinationConfig:{fields:{enablePullOver:{type:\"bool\",id:1,options:{default:!1}},stopDistance:{type:\"double\",id:2,options:{default:.5}},pullOverPlanDistance:{type:\"double\",id:3,options:{default:35}}}},KeepClearConfig:{fields:{enableKeepClearZone:{type:\"bool\",id:1,options:{default:!0}},enableJunction:{type:\"bool\",id:2,options:{default:!0}},minPassSDistance:{type:\"double\",id:3,options:{default:2}}}},PullOverConfig:{fields:{stopDistance:{type:\"double\",id:1,options:{default:.5}},maxStopSpeed:{type:\"double\",id:2,options:{default:.3}},maxValidStopDistance:{type:\"double\",id:3,options:{default:3}},maxStopDeceleration:{type:\"double\",id:4,options:{default:2.5}},minPassSDistance:{type:\"double\",id:5,options:{default:1}},bufferToBoundary:{type:\"double\",id:6,options:{default:.5}},planDistance:{type:\"double\",id:7,options:{default:35}},operationLength:{type:\"double\",id:8,options:{default:30}},maxCheckDistance:{type:\"double\",id:9,options:{default:60}},maxFailureCount:{type:\"uint32\",id:10,options:{default:10}}}},ReferenceLineEndConfig:{fields:{stopDistance:{type:\"double\",id:1,options:{default:.5}},minReferenceLineRemainLength:{type:\"double\",id:2,options:{default:50}}}},ReroutingConfig:{fields:{cooldownTime:{type:\"double\",id:1,options:{default:3}},prepareReroutingTime:{type:\"double\",id:2,options:{default:2}}}},SignalLightConfig:{fields:{stopDistance:{type:\"double\",id:1,options:{default:1}},maxStopDeceleration:{type:\"double\",id:2,options:{default:4}},minPassSDistance:{type:\"double\",id:3,options:{default:4}},maxStopDeaccelerationYellowLight:{type:\"double\",id:4,options:{default:3}},signalExpireTimeSec:{type:\"double\",id:5,options:{default:5}},righTurnCreep:{type:\"CreepConfig\",id:6}}},StopSignConfig:{fields:{stopDistance:{type:\"double\",id:1,options:{default:1}},minPassSDistance:{type:\"double\",id:2,options:{default:1}},maxStopSpeed:{type:\"double\",id:3,options:{default:.3}},maxValidStopDistance:{type:\"double\",id:4,options:{default:3}},stopDuration:{type:\"double\",id:5,options:{default:1}},watchVehicleMaxValidStopSpeed:{type:\"double\",id:6,options:{default:.5}},watchVehicleMaxValidStopDistance:{type:\"double\",id:7,options:{default:5}},waitTimeout:{type:\"double\",id:8,options:{default:8}},creep:{type:\"CreepConfig\",id:9}}},TrafficRuleConfig:{oneofs:{config:{oneof:[\"backsideVehicle\",\"changeLane\",\"crosswalk\",\"destination\",\"keepClear\",\"pullOver\",\"referenceLineEnd\",\"rerouting\",\"signalLight\",\"stopSign\"]}},fields:{ruleId:{type:\"RuleId\",id:1},enabled:{type:\"bool\",id:2},backsideVehicle:{type:\"BacksideVehicleConfig\",id:3},changeLane:{type:\"ChangeLaneConfig\",id:4},crosswalk:{type:\"CrosswalkConfig\",id:5},destination:{type:\"DestinationConfig\",id:6},keepClear:{type:\"KeepClearConfig\",id:7},pullOver:{type:\"PullOverConfig\",id:8},referenceLineEnd:{type:\"ReferenceLineEndConfig\",id:9},rerouting:{type:\"ReroutingConfig\",id:10},signalLight:{type:\"SignalLightConfig\",id:11},stopSign:{type:\"StopSignConfig\",id:12}},nested:{RuleId:{values:{BACKSIDE_VEHICLE:1,CHANGE_LANE:2,CROSSWALK:3,DESTINATION:4,KEEP_CLEAR:5,PULL_OVER:6,REFERENCE_LINE_END:7,REROUTING:8,SIGNAL_LIGHT:9,STOP_SIGN:10}}}},TrafficRuleConfigs:{fields:{config:{rule:\"repeated\",type:\"TrafficRuleConfig\",id:1}}},WaypointSamplerConfig:{fields:{samplePointsNumEachLevel:{type:\"uint32\",id:1,options:{default:9}},stepLengthMax:{type:\"double\",id:2,options:{default:15}},stepLengthMin:{type:\"double\",id:3,options:{default:8}},lateralSampleOffset:{type:\"double\",id:4,options:{default:.5}},lateralAdjustCoeff:{type:\"double\",id:5,options:{default:.5}},sidepassDistance:{type:\"double\",id:6},navigatorSampleNumEachLevel:{type:\"uint32\",id:7}}}}},planning_internal:{nested:{Debug:{fields:{planningData:{type:\"PlanningData\",id:2}}},SpeedPlan:{fields:{name:{type:\"string\",id:1},speedPoint:{rule:\"repeated\",type:\"apollo.common.SpeedPoint\",id:2}}},StGraphBoundaryDebug:{fields:{name:{type:\"string\",id:1},point:{rule:\"repeated\",type:\"apollo.common.SpeedPoint\",id:2},type:{type:\"StBoundaryType\",id:3}},nested:{StBoundaryType:{values:{ST_BOUNDARY_TYPE_UNKNOWN:1,ST_BOUNDARY_TYPE_STOP:2,ST_BOUNDARY_TYPE_FOLLOW:3,ST_BOUNDARY_TYPE_YIELD:4,ST_BOUNDARY_TYPE_OVERTAKE:5,ST_BOUNDARY_TYPE_KEEP_CLEAR:6}}}},SLFrameDebug:{fields:{name:{type:\"string\",id:1},sampledS:{rule:\"repeated\",type:\"double\",id:2,options:{packed:!1}},staticObstacleLowerBound:{rule:\"repeated\",type:\"double\",id:3,options:{packed:!1}},dynamicObstacleLowerBound:{rule:\"repeated\",type:\"double\",id:4,options:{packed:!1}},staticObstacleUpperBound:{rule:\"repeated\",type:\"double\",id:5,options:{packed:!1}},dynamicObstacleUpperBound:{rule:\"repeated\",type:\"double\",id:6,options:{packed:!1}},mapLowerBound:{rule:\"repeated\",type:\"double\",id:7,options:{packed:!1}},mapUpperBound:{rule:\"repeated\",type:\"double\",id:8,options:{packed:!1}},slPath:{rule:\"repeated\",type:\"apollo.common.SLPoint\",id:9},aggregatedBoundaryS:{rule:\"repeated\",type:\"double\",id:10,options:{packed:!1}},aggregatedBoundaryLow:{rule:\"repeated\",type:\"double\",id:11,options:{packed:!1}},aggregatedBoundaryHigh:{rule:\"repeated\",type:\"double\",id:12,options:{packed:!1}}}},STGraphDebug:{fields:{name:{type:\"string\",id:1},boundary:{rule:\"repeated\",type:\"StGraphBoundaryDebug\",id:2},speedLimit:{rule:\"repeated\",type:\"apollo.common.SpeedPoint\",id:3},speedProfile:{rule:\"repeated\",type:\"apollo.common.SpeedPoint\",id:4},speedConstraint:{type:\"STGraphSpeedConstraint\",id:5},kernelCruiseRef:{type:\"STGraphKernelCuiseRef\",id:6},kernelFollowRef:{type:\"STGraphKernelFollowRef\",id:7}},nested:{STGraphSpeedConstraint:{fields:{t:{rule:\"repeated\",type:\"double\",id:1,options:{packed:!1}},lowerBound:{rule:\"repeated\",type:\"double\",id:2,options:{packed:!1}},upperBound:{rule:\"repeated\",type:\"double\",id:3,options:{packed:!1}}}},STGraphKernelCuiseRef:{fields:{t:{rule:\"repeated\",type:\"double\",id:1,options:{packed:!1}},cruiseLineS:{rule:\"repeated\",type:\"double\",id:2,options:{packed:!1}}}},STGraphKernelFollowRef:{fields:{t:{rule:\"repeated\",type:\"double\",id:1,options:{packed:!1}},followLineS:{rule:\"repeated\",type:\"double\",id:2,options:{packed:!1}}}}}},SignalLightDebug:{fields:{adcSpeed:{type:\"double\",id:1},adcFrontS:{type:\"double\",id:2},signal:{rule:\"repeated\",type:\"SignalDebug\",id:3}},nested:{SignalDebug:{fields:{lightId:{type:\"string\",id:1},color:{type:\"apollo.perception.TrafficLight.Color\",id:2},lightStopS:{type:\"double\",id:3},adcStopDeacceleration:{type:\"double\",id:4},isStopWallCreated:{type:\"bool\",id:5}}}}},DecisionTag:{fields:{deciderTag:{type:\"string\",id:1},decision:{type:\"apollo.planning.ObjectDecisionType\",id:2}}},ObstacleDebug:{fields:{id:{type:\"string\",id:1},slBoundary:{type:\"apollo.planning.SLBoundary\",id:2},decisionTag:{rule:\"repeated\",type:\"DecisionTag\",id:3},verticesXCoords:{rule:\"repeated\",type:\"double\",id:4,options:{packed:!1}},verticesYCoords:{rule:\"repeated\",type:\"double\",id:5,options:{packed:!1}}}},ReferenceLineDebug:{fields:{id:{type:\"string\",id:1},length:{type:\"double\",id:2},cost:{type:\"double\",id:3},isChangeLanePath:{type:\"bool\",id:4},isDrivable:{type:\"bool\",id:5},isProtected:{type:\"bool\",id:6}}},SampleLayerDebug:{fields:{slPoint:{rule:\"repeated\",type:\"apollo.common.SLPoint\",id:1}}},DpPolyGraphDebug:{fields:{sampleLayer:{rule:\"repeated\",type:\"SampleLayerDebug\",id:1},minCostPoint:{rule:\"repeated\",type:\"apollo.common.SLPoint\",id:2}}},ScenarioDebug:{fields:{scenarioType:{type:\"apollo.planning.ScenarioConfig.ScenarioType\",id:1},stageType:{type:\"apollo.planning.ScenarioConfig.StageType\",id:2}}},Trajectories:{fields:{trajectory:{rule:\"repeated\",type:\"apollo.common.Trajectory\",id:1}}},OpenSpaceDebug:{fields:{trajectories:{type:\"apollo.planning_internal.Trajectories\",id:1},warmStartTrajectory:{type:\"apollo.common.VehicleMotion\",id:2},smoothedTrajectory:{type:\"apollo.common.VehicleMotion\",id:3},warmStartDualLambda:{rule:\"repeated\",type:\"double\",id:4,options:{packed:!1}},warmStartDualMiu:{rule:\"repeated\",type:\"double\",id:5,options:{packed:!1}},optimizedDualLambda:{rule:\"repeated\",type:\"double\",id:6,options:{packed:!1}},optimizedDualMiu:{rule:\"repeated\",type:\"double\",id:7,options:{packed:!1}},xyBoundary:{rule:\"repeated\",type:\"double\",id:8,options:{packed:!1}},obstacles:{rule:\"repeated\",type:\"apollo.planning_internal.ObstacleDebug\",id:9}}},PlanningData:{fields:{adcPosition:{type:\"apollo.localization.LocalizationEstimate\",id:7},chassis:{type:\"apollo.canbus.Chassis\",id:8},routing:{type:\"apollo.routing.RoutingResponse\",id:9},initPoint:{type:\"apollo.common.TrajectoryPoint\",id:10},path:{rule:\"repeated\",type:\"apollo.common.Path\",id:6},speedPlan:{rule:\"repeated\",type:\"SpeedPlan\",id:13},stGraph:{rule:\"repeated\",type:\"STGraphDebug\",id:14},slFrame:{rule:\"repeated\",type:\"SLFrameDebug\",id:15},predictionHeader:{type:\"apollo.common.Header\",id:16},signalLight:{type:\"SignalLightDebug\",id:17},obstacle:{rule:\"repeated\",type:\"ObstacleDebug\",id:18},referenceLine:{rule:\"repeated\",type:\"ReferenceLineDebug\",id:19},dpPolyGraph:{type:\"DpPolyGraphDebug\",id:20},latticeStImage:{type:\"LatticeStTraining\",id:21},relativeMap:{type:\"apollo.relative_map.MapMsg\",id:22},autoTuningTrainingData:{type:\"AutoTuningTrainingData\",id:23},frontClearDistance:{type:\"double\",id:24},chart:{rule:\"repeated\",type:\"apollo.dreamview.Chart\",id:25},scenario:{type:\"ScenarioDebug\",id:26},openSpace:{type:\"OpenSpaceDebug\",id:27}}},LatticeStPixel:{fields:{s:{type:\"int32\",id:1},t:{type:\"int32\",id:2},r:{type:\"uint32\",id:3},g:{type:\"uint32\",id:4},b:{type:\"uint32\",id:5}}},LatticeStTraining:{fields:{pixel:{rule:\"repeated\",type:\"LatticeStPixel\",id:1},timestamp:{type:\"double\",id:2},annotation:{type:\"string\",id:3},numSGrids:{type:\"uint32\",id:4},numTGrids:{type:\"uint32\",id:5},sResolution:{type:\"double\",id:6},tResolution:{type:\"double\",id:7}}},CostComponents:{fields:{costComponent:{rule:\"repeated\",type:\"double\",id:1,options:{packed:!1}}}},AutoTuningTrainingData:{fields:{teacherComponent:{type:\"CostComponents\",id:1},studentComponent:{type:\"CostComponents\",id:2}}},CloudReferenceLineRequest:{fields:{laneSegment:{rule:\"repeated\",type:\"apollo.routing.LaneSegment\",id:1}}},CloudReferenceLineRoutingRequest:{fields:{routing:{type:\"apollo.routing.RoutingResponse\",id:1}}},CloudReferenceLineResponse:{fields:{segment:{rule:\"repeated\",type:\"apollo.common.Path\",id:1}}}}},perception:{nested:{TrafficLightBox:{fields:{x:{type:\"int32\",id:1},y:{type:\"int32\",id:2},width:{type:\"int32\",id:3},height:{type:\"int32\",id:4},color:{type:\"TrafficLight.Color\",id:5},selected:{type:\"bool\",id:6},cameraName:{type:\"string\",id:7}}},TrafficLightDebug:{fields:{cropbox:{type:\"TrafficLightBox\",id:1},box:{rule:\"repeated\",type:\"TrafficLightBox\",id:2},signalNum:{type:\"int32\",id:3},validPos:{type:\"int32\",id:4},tsDiffPos:{type:\"double\",id:5},tsDiffSys:{type:\"double\",id:6},projectError:{type:\"int32\",id:7},distanceToStopLine:{type:\"double\",id:8},cameraId:{type:\"int32\",id:9,options:{deprecated:!0}},cropRoi:{rule:\"repeated\",type:\"TrafficLightBox\",id:10},projectedRoi:{rule:\"repeated\",type:\"TrafficLightBox\",id:11},rectifiedRoi:{rule:\"repeated\",type:\"TrafficLightBox\",id:12},debugRoi:{rule:\"repeated\",type:\"TrafficLightBox\",id:13}}},TrafficLight:{fields:{color:{type:\"Color\",id:1},id:{type:\"string\",id:2},confidence:{type:\"double\",id:3,options:{default:1}},trackingTime:{type:\"double\",id:4},blink:{type:\"bool\",id:5},remainingTime:{type:\"double\",id:6}},nested:{Color:{values:{UNKNOWN:0,RED:1,YELLOW:2,GREEN:3,BLACK:4}}}},TrafficLightDetection:{fields:{header:{type:\"apollo.common.Header\",id:2},trafficLight:{rule:\"repeated\",type:\"TrafficLight\",id:1},trafficLightDebug:{type:\"TrafficLightDebug\",id:3},containLights:{type:\"bool\",id:4},cameraId:{type:\"CameraID\",id:5}},nested:{CameraID:{values:{CAMERA_FRONT_LONG:0,CAMERA_FRONT_NARROW:1,CAMERA_FRONT_SHORT:2,CAMERA_FRONT_WIDE:3}}}},BBox2D:{fields:{xmin:{type:\"double\",id:1},ymin:{type:\"double\",id:2},xmax:{type:\"double\",id:3},ymax:{type:\"double\",id:4}}},LightStatus:{fields:{brakeVisible:{type:\"double\",id:1},brakeSwitchOn:{type:\"double\",id:2},leftTurnVisible:{type:\"double\",id:3},leftTurnSwitchOn:{type:\"double\",id:4},rightTurnVisible:{type:\"double\",id:5},rightTurnSwitchOn:{type:\"double\",id:6}}},SensorMeasurement:{fields:{sensorId:{type:\"string\",id:1},id:{type:\"int32\",id:2},position:{type:\"common.Point3D\",id:3},theta:{type:\"double\",id:4},length:{type:\"double\",id:5},width:{type:\"double\",id:6},height:{type:\"double\",id:7},velocity:{type:\"common.Point3D\",id:8},type:{type:\"PerceptionObstacle.Type\",id:9},subType:{type:\"PerceptionObstacle.SubType\",id:10},timestamp:{type:\"double\",id:11},box:{type:\"BBox2D\",id:12}}},PerceptionObstacle:{fields:{id:{type:\"int32\",id:1},position:{type:\"common.Point3D\",id:2},theta:{type:\"double\",id:3},velocity:{type:\"common.Point3D\",id:4},length:{type:\"double\",id:5},width:{type:\"double\",id:6},height:{type:\"double\",id:7},polygonPoint:{rule:\"repeated\",type:\"common.Point3D\",id:8},trackingTime:{type:\"double\",id:9},type:{type:\"Type\",id:10},timestamp:{type:\"double\",id:11},pointCloud:{rule:\"repeated\",type:\"double\",id:12},confidence:{type:\"double\",id:13,options:{deprecated:!0}},confidenceType:{type:\"ConfidenceType\",id:14,options:{deprecated:!0}},drops:{rule:\"repeated\",type:\"common.Point3D\",id:15,options:{deprecated:!0}},acceleration:{type:\"common.Point3D\",id:16},anchorPoint:{type:\"common.Point3D\",id:17},bbox2d:{type:\"BBox2D\",id:18},subType:{type:\"SubType\",id:19},measurements:{rule:\"repeated\",type:\"SensorMeasurement\",id:20},heightAboveGround:{type:\"double\",id:21,options:{default:null}},positionCovariance:{rule:\"repeated\",type:\"double\",id:22},velocityCovariance:{rule:\"repeated\",type:\"double\",id:23},accelerationCovariance:{rule:\"repeated\",type:\"double\",id:24},lightStatus:{type:\"LightStatus\",id:25}},nested:{Type:{values:{UNKNOWN:0,UNKNOWN_MOVABLE:1,UNKNOWN_UNMOVABLE:2,PEDESTRIAN:3,BICYCLE:4,VEHICLE:5}},ConfidenceType:{values:{CONFIDENCE_UNKNOWN:0,CONFIDENCE_CNN:1,CONFIDENCE_RADAR:2}},SubType:{values:{ST_UNKNOWN:0,ST_UNKNOWN_MOVABLE:1,ST_UNKNOWN_UNMOVABLE:2,ST_CAR:3,ST_VAN:4,ST_TRUCK:5,ST_BUS:6,ST_CYCLIST:7,ST_MOTORCYCLIST:8,ST_TRICYCLIST:9,ST_PEDESTRIAN:10,ST_TRAFFICCONE:11}}}},LaneMarker:{fields:{laneType:{type:\"apollo.hdmap.LaneBoundaryType.Type\",id:1},quality:{type:\"double\",id:2},modelDegree:{type:\"int32\",id:3},c0Position:{type:\"double\",id:4},c1HeadingAngle:{type:\"double\",id:5},c2Curvature:{type:\"double\",id:6},c3CurvatureDerivative:{type:\"double\",id:7},viewRange:{type:\"double\",id:8},longitudeStart:{type:\"double\",id:9},longitudeEnd:{type:\"double\",id:10}}},LaneMarkers:{fields:{leftLaneMarker:{type:\"LaneMarker\",id:1},rightLaneMarker:{type:\"LaneMarker\",id:2},nextLeftLaneMarker:{rule:\"repeated\",type:\"LaneMarker\",id:3},nextRightLaneMarker:{rule:\"repeated\",type:\"LaneMarker\",id:4}}},CIPVInfo:{fields:{cipvId:{type:\"int32\",id:1},potentialCipvId:{rule:\"repeated\",type:\"int32\",id:2,options:{packed:!1}}}},PerceptionObstacles:{fields:{perceptionObstacle:{rule:\"repeated\",type:\"PerceptionObstacle\",id:1},header:{type:\"common.Header\",id:2},errorCode:{type:\"common.ErrorCode\",id:3,options:{default:\"OK\"}},laneMarker:{type:\"LaneMarkers\",id:4},cipvInfo:{type:\"CIPVInfo\",id:5}}}}},routing:{nested:{LaneWaypoint:{fields:{id:{type:\"string\",id:1},s:{type:\"double\",id:2},pose:{type:\"apollo.common.PointENU\",id:3}}},LaneSegment:{fields:{id:{type:\"string\",id:1},startS:{type:\"double\",id:2},endS:{type:\"double\",id:3}}},RoutingRequest:{fields:{header:{type:\"apollo.common.Header\",id:1},waypoint:{rule:\"repeated\",type:\"LaneWaypoint\",id:2},blacklistedLane:{rule:\"repeated\",type:\"LaneSegment\",id:3},blacklistedRoad:{rule:\"repeated\",type:\"string\",id:4},broadcast:{type:\"bool\",id:5,options:{default:!0}},parkingSpace:{type:\"apollo.hdmap.ParkingSpace\",id:6}}},Measurement:{fields:{distance:{type:\"double\",id:1}}},ChangeLaneType:{values:{FORWARD:0,LEFT:1,RIGHT:2}},Passage:{fields:{segment:{rule:\"repeated\",type:\"LaneSegment\",id:1},canExit:{type:\"bool\",id:2},changeLaneType:{type:\"ChangeLaneType\",id:3,options:{default:\"FORWARD\"}}}},RoadSegment:{fields:{id:{type:\"string\",id:1},passage:{rule:\"repeated\",type:\"Passage\",id:2}}},RoutingResponse:{fields:{header:{type:\"apollo.common.Header\",id:1},road:{rule:\"repeated\",type:\"RoadSegment\",id:2},measurement:{type:\"Measurement\",id:3},routingRequest:{type:\"RoutingRequest\",id:4},mapVersion:{type:\"bytes\",id:5},status:{type:\"apollo.common.StatusPb\",id:6}}}}},hdmap:{nested:{Projection:{fields:{proj:{type:\"string\",id:1}}},Header:{fields:{version:{type:\"bytes\",id:1},date:{type:\"bytes\",id:2},projection:{type:\"Projection\",id:3},district:{type:\"bytes\",id:4},generation:{type:\"bytes\",id:5},revMajor:{type:\"bytes\",id:6},revMinor:{type:\"bytes\",id:7},left:{type:\"double\",id:8},top:{type:\"double\",id:9},right:{type:\"double\",id:10},bottom:{type:\"double\",id:11},vendor:{type:\"bytes\",id:12}}},Map:{fields:{header:{type:\"Header\",id:1},crosswalk:{rule:\"repeated\",type:\"Crosswalk\",id:2},junction:{rule:\"repeated\",type:\"Junction\",id:3},lane:{rule:\"repeated\",type:\"Lane\",id:4},stopSign:{rule:\"repeated\",type:\"StopSign\",id:5},signal:{rule:\"repeated\",type:\"Signal\",id:6},yield:{rule:\"repeated\",type:\"YieldSign\",id:7},overlap:{rule:\"repeated\",type:\"Overlap\",id:8},clearArea:{rule:\"repeated\",type:\"ClearArea\",id:9},speedBump:{rule:\"repeated\",type:\"SpeedBump\",id:10},road:{rule:\"repeated\",type:\"Road\",id:11},parkingSpace:{rule:\"repeated\",type:\"ParkingSpace\",id:12},pncJunction:{rule:\"repeated\",type:\"PNCJunction\",id:13}}},ClearArea:{fields:{id:{type:\"Id\",id:1},overlapId:{rule:\"repeated\",type:\"Id\",id:2},polygon:{type:\"Polygon\",id:3}}},Crosswalk:{fields:{id:{type:\"Id\",id:1},polygon:{type:\"Polygon\",id:2},overlapId:{rule:\"repeated\",type:\"Id\",id:3}}},Polygon:{fields:{point:{rule:\"repeated\",type:\"apollo.common.PointENU\",id:1}}},LineSegment:{fields:{point:{rule:\"repeated\",type:\"apollo.common.PointENU\",id:1}}},CurveSegment:{oneofs:{curveType:{oneof:[\"lineSegment\"]}},fields:{lineSegment:{type:\"LineSegment\",id:1},s:{type:\"double\",id:6},startPosition:{type:\"apollo.common.PointENU\",id:7},heading:{type:\"double\",id:8},length:{type:\"double\",id:9}}},Curve:{fields:{segment:{rule:\"repeated\",type:\"CurveSegment\",id:1}}},Id:{fields:{id:{type:\"string\",id:1}}},Junction:{fields:{id:{type:\"Id\",id:1},polygon:{type:\"Polygon\",id:2},overlapId:{rule:\"repeated\",type:\"Id\",id:3}}},LaneBoundaryType:{fields:{s:{type:\"double\",id:1},types:{rule:\"repeated\",type:\"Type\",id:2,options:{packed:!1}}},nested:{Type:{values:{UNKNOWN:0,DOTTED_YELLOW:1,DOTTED_WHITE:2,SOLID_YELLOW:3,SOLID_WHITE:4,DOUBLE_YELLOW:5,CURB:6}}}},LaneBoundary:{fields:{curve:{type:\"Curve\",id:1},length:{type:\"double\",id:2},virtual:{type:\"bool\",id:3},boundaryType:{rule:\"repeated\",type:\"LaneBoundaryType\",id:4}}},LaneSampleAssociation:{fields:{s:{type:\"double\",id:1},width:{type:\"double\",id:2}}},Lane:{fields:{id:{type:\"Id\",id:1},centralCurve:{type:\"Curve\",id:2},leftBoundary:{type:\"LaneBoundary\",id:3},rightBoundary:{type:\"LaneBoundary\",id:4},length:{type:\"double\",id:5},speedLimit:{type:\"double\",id:6},overlapId:{rule:\"repeated\",type:\"Id\",id:7},predecessorId:{rule:\"repeated\",type:\"Id\",id:8},successorId:{rule:\"repeated\",type:\"Id\",id:9},leftNeighborForwardLaneId:{rule:\"repeated\",type:\"Id\",id:10},rightNeighborForwardLaneId:{rule:\"repeated\",type:\"Id\",id:11},type:{type:\"LaneType\",id:12},turn:{type:\"LaneTurn\",id:13},leftNeighborReverseLaneId:{rule:\"repeated\",type:\"Id\",id:14},rightNeighborReverseLaneId:{rule:\"repeated\",type:\"Id\",id:15},junctionId:{type:\"Id\",id:16},leftSample:{rule:\"repeated\",type:\"LaneSampleAssociation\",id:17},rightSample:{rule:\"repeated\",type:\"LaneSampleAssociation\",id:18},direction:{type:\"LaneDirection\",id:19},leftRoadSample:{rule:\"repeated\",type:\"LaneSampleAssociation\",id:20},rightRoadSample:{rule:\"repeated\",type:\"LaneSampleAssociation\",id:21},selfReverseLaneId:{rule:\"repeated\",type:\"Id\",id:22}},nested:{LaneType:{values:{NONE:1,CITY_DRIVING:2,BIKING:3,SIDEWALK:4,PARKING:5,SHOULDER:6}},LaneTurn:{values:{NO_TURN:1,LEFT_TURN:2,RIGHT_TURN:3,U_TURN:4}},LaneDirection:{values:{FORWARD:1,BACKWARD:2,BIDIRECTION:3}}}},LaneOverlapInfo:{fields:{startS:{type:\"double\",id:1},endS:{type:\"double\",id:2},isMerge:{type:\"bool\",id:3},regionOverlapId:{type:\"Id\",id:4}}},SignalOverlapInfo:{fields:{}},StopSignOverlapInfo:{fields:{}},CrosswalkOverlapInfo:{fields:{regionOverlapId:{type:\"Id\",id:1}}},JunctionOverlapInfo:{fields:{}},YieldOverlapInfo:{fields:{}},ClearAreaOverlapInfo:{fields:{}},SpeedBumpOverlapInfo:{fields:{}},ParkingSpaceOverlapInfo:{fields:{}},PNCJunctionOverlapInfo:{fields:{}},RegionOverlapInfo:{fields:{id:{type:\"Id\",id:1},polygon:{rule:\"repeated\",type:\"Polygon\",id:2}}},ObjectOverlapInfo:{oneofs:{overlapInfo:{oneof:[\"laneOverlapInfo\",\"signalOverlapInfo\",\"stopSignOverlapInfo\",\"crosswalkOverlapInfo\",\"junctionOverlapInfo\",\"yieldSignOverlapInfo\",\"clearAreaOverlapInfo\",\"speedBumpOverlapInfo\",\"parkingSpaceOverlapInfo\",\"pncJunctionOverlapInfo\"]}},fields:{id:{type:\"Id\",id:1},laneOverlapInfo:{type:\"LaneOverlapInfo\",id:3},signalOverlapInfo:{type:\"SignalOverlapInfo\",id:4},stopSignOverlapInfo:{type:\"StopSignOverlapInfo\",id:5},crosswalkOverlapInfo:{type:\"CrosswalkOverlapInfo\",id:6},junctionOverlapInfo:{type:\"JunctionOverlapInfo\",id:7},yieldSignOverlapInfo:{type:\"YieldOverlapInfo\",id:8},clearAreaOverlapInfo:{type:\"ClearAreaOverlapInfo\",id:9},speedBumpOverlapInfo:{type:\"SpeedBumpOverlapInfo\",id:10},parkingSpaceOverlapInfo:{type:\"ParkingSpaceOverlapInfo\",id:11},pncJunctionOverlapInfo:{type:\"PNCJunctionOverlapInfo\",id:12}}},Overlap:{fields:{id:{type:\"Id\",id:1},object:{rule:\"repeated\",type:\"ObjectOverlapInfo\",id:2},regionOverlap:{rule:\"repeated\",type:\"RegionOverlapInfo\",id:3}}},ParkingSpace:{fields:{id:{type:\"Id\",id:1},polygon:{type:\"Polygon\",id:2},overlapId:{rule:\"repeated\",type:\"Id\",id:3},heading:{type:\"double\",id:4}}},ParkingLot:{fields:{id:{type:\"Id\",id:1},polygon:{type:\"Polygon\",id:2},overlapId:{rule:\"repeated\",type:\"Id\",id:3}}},PNCJunction:{fields:{id:{type:\"Id\",id:1},polygon:{type:\"Polygon\",id:2},overlapId:{rule:\"repeated\",type:\"Id\",id:3}}},BoundaryEdge:{fields:{curve:{type:\"Curve\",id:1},type:{type:\"Type\",id:2}},nested:{Type:{values:{UNKNOWN:0,NORMAL:1,LEFT_BOUNDARY:2,RIGHT_BOUNDARY:3}}}},BoundaryPolygon:{fields:{edge:{rule:\"repeated\",type:\"BoundaryEdge\",id:1}}},RoadBoundary:{fields:{outerPolygon:{type:\"BoundaryPolygon\",id:1},hole:{rule:\"repeated\",type:\"BoundaryPolygon\",id:2}}},RoadROIBoundary:{fields:{id:{type:\"Id\",id:1},roadBoundaries:{rule:\"repeated\",type:\"RoadBoundary\",id:2}}},RoadSection:{fields:{id:{type:\"Id\",id:1},laneId:{rule:\"repeated\",type:\"Id\",id:2},boundary:{type:\"RoadBoundary\",id:3}}},Road:{fields:{id:{type:\"Id\",id:1},section:{rule:\"repeated\",type:\"RoadSection\",id:2},junctionId:{type:\"Id\",id:3}}},Subsignal:{fields:{id:{type:\"Id\",id:1},type:{type:\"Type\",id:2},location:{type:\"apollo.common.PointENU\",id:3}},nested:{Type:{values:{UNKNOWN:1,CIRCLE:2,ARROW_LEFT:3,ARROW_FORWARD:4,ARROW_RIGHT:5,ARROW_LEFT_AND_FORWARD:6,ARROW_RIGHT_AND_FORWARD:7,ARROW_U_TURN:8}}}},Signal:{fields:{id:{type:\"Id\",id:1},boundary:{type:\"Polygon\",id:2},subsignal:{rule:\"repeated\",type:\"Subsignal\",id:3},overlapId:{rule:\"repeated\",type:\"Id\",id:4},type:{type:\"Type\",id:5},stopLine:{rule:\"repeated\",type:\"Curve\",id:6}},nested:{Type:{values:{UNKNOWN:1,MIX_2_HORIZONTAL:2,MIX_2_VERTICAL:3,MIX_3_HORIZONTAL:4,MIX_3_VERTICAL:5,SINGLE:6}}}},SpeedBump:{fields:{id:{type:\"Id\",id:1},overlapId:{rule:\"repeated\",type:\"Id\",id:2},position:{rule:\"repeated\",type:\"Curve\",id:3}}},SpeedControl:{fields:{name:{type:\"string\",id:1},polygon:{type:\"apollo.hdmap.Polygon\",id:2},speedLimit:{type:\"double\",id:3}}},SpeedControls:{fields:{speedControl:{rule:\"repeated\",type:\"SpeedControl\",id:1}}},StopSign:{fields:{id:{type:\"Id\",id:1},stopLine:{rule:\"repeated\",type:\"Curve\",id:2},overlapId:{rule:\"repeated\",type:\"Id\",id:3},type:{type:\"StopType\",id:4}},nested:{StopType:{values:{UNKNOWN:0,ONE_WAY:1,TWO_WAY:2,THREE_WAY:3,FOUR_WAY:4,ALL_WAY:5}}}},YieldSign:{fields:{id:{type:\"Id\",id:1},stopLine:{rule:\"repeated\",type:\"Curve\",id:2},overlapId:{rule:\"repeated\",type:\"Id\",id:3}}}}},relative_map:{nested:{NavigationPath:{fields:{path:{type:\"apollo.common.Path\",id:1},pathPriority:{type:\"uint32\",id:2}}},NavigationInfo:{fields:{header:{type:\"apollo.common.Header\",id:1},navigationPath:{rule:\"repeated\",type:\"NavigationPath\",id:2}}},MapMsg:{fields:{header:{type:\"apollo.common.Header\",id:1},hdmap:{type:\"apollo.hdmap.Map\",id:2},navigationPath:{keyType:\"string\",type:\"NavigationPath\",id:3},laneMarker:{type:\"apollo.perception.LaneMarkers\",id:4},localization:{type:\"apollo.localization.LocalizationEstimate\",id:5}}},MapGenerationParam:{fields:{defaultLeftWidth:{type:\"double\",id:1,options:{default:1.75}},defaultRightWidth:{type:\"double\",id:2,options:{default:1.75}},defaultSpeedLimit:{type:\"double\",id:3,options:{default:29.0576}}}},NavigationLaneConfig:{fields:{minLaneMarkerQuality:{type:\"double\",id:1,options:{default:.5}},laneSource:{type:\"LaneSource\",id:2}},nested:{LaneSource:{values:{PERCEPTION:1,OFFLINE_GENERATED:2}}}},RelativeMapConfig:{fields:{mapParam:{type:\"MapGenerationParam\",id:1},navigationLane:{type:\"NavigationLaneConfig\",id:2}}}}}}}}}},function(e,t){},function(e,t){},function(e,t){}]);\n\n\n// WEBPACK FOOTER //\n// app.bundle.js"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sourceRoot":""} \ No newline at end of file +{"version":3,"file":"app.bundle.js","sources":["webpack:///app.bundle.js"],"sourcesContent":["!function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,i,o){for(var a,s,l=0,u=[];l6?l-6:0),c=6;c>\",s=s||r,null==i[r]){if(t){var n=null===i[r]?\"null\":\"undefined\";return new Error(\"The \"+a+\" `\"+s+\"` is marked as required in `\"+o+\"`, but its value is `\"+n+\"`.\")}return null}return e.apply(void 0,[i,r,o,a,s].concat(u))})}var i=t.bind(null,!1);return i.isRequired=t.bind(null,!0),i}function r(e,t){return\"symbol\"===e||(\"Symbol\"===t[\"@@toStringTag\"]||\"function\"==typeof Symbol&&t instanceof Symbol)}function o(e){var t=void 0===e?\"undefined\":T(e);return Array.isArray(e)?\"array\":e instanceof RegExp?\"object\":r(t,e)?\"symbol\":t}function a(e){var t=o(e);if(\"object\"===t){if(e instanceof Date)return\"date\";if(e instanceof RegExp)return\"regexp\"}return t}function s(e,t){return i(function(i,r,s,l,u){return n.i(w.untracked)(function(){if(e&&o(i[r])===t.toLowerCase())return null;var n=void 0;switch(t){case\"Array\":n=w.isObservableArray;break;case\"Object\":n=w.isObservableObject;break;case\"Map\":n=w.isObservableMap;break;default:throw new Error(\"Unexpected mobxType: \"+t)}var l=i[r];if(!n(l)){var c=a(l),d=e?\" or javascript `\"+t.toLowerCase()+\"`\":\"\";return new Error(\"Invalid prop `\"+u+\"` of type `\"+c+\"` supplied to `\"+s+\"`, expected `mobx.Observable\"+t+\"`\"+d+\".\")}return null})})}function l(e,t){return i(function(i,r,o,a,l){for(var u=arguments.length,c=Array(u>5?u-5:0),d=5;d2&&void 0!==arguments[2]&&arguments[2],i=e[t],r=ie[t],o=i?!0===n?function(){r.apply(this,arguments),i.apply(this,arguments)}:function(){i.apply(this,arguments),r.apply(this,arguments)}:r;e[t]=o}function y(e,t){if(b(e,t))return!0;if(\"object\"!==(void 0===e?\"undefined\":T(e))||null===e||\"object\"!==(void 0===t?\"undefined\":T(t))||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var r=0;r\",i=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID||this._reactInternalFiber&&this._reactInternalFiber._debugID,r=!1,o=!1;e.call(this,\"props\"),e.call(this,\"state\");var a=this.render.bind(this),s=null,l=!1,u=function(){return s=new w.Reaction(n+\"#\"+i+\".render()\",function(){if(!l&&(l=!0,\"function\"==typeof t.componentWillReact&&t.componentWillReact(),!0!==t.__$mobxIsUnmounted)){var e=!0;try{o=!0,r||M.Component.prototype.forceUpdate.call(t),e=!1}finally{o=!1,e&&s.dispose()}}}),s.reactComponent=t,c.$mobx=s,t.render=c,c()},c=function(){l=!1;var e=void 0,n=void 0;if(s.track(function(){J&&(t.__$mobRenderStart=Date.now());try{n=w.extras.allowStateChanges(!1,a)}catch(t){e=t}J&&(t.__$mobRenderEnd=Date.now())}),e)throw ne.emit(e),e;return n};this.render=u}},componentWillUnmount:function(){if(!0!==Q&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0,J)){var e=f(this);e&&ee&&ee.delete(e),te.emit({event:\"destroy\",component:this,node:e})}},componentDidMount:function(){J&&p(this)},componentDidUpdate:function(){J&&p(this)},shouldComponentUpdate:function(e,t){return Q&&console.warn(\"[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side.\"),this.state!==t||!y(this.props,e)}},re=_(function(e){var t=e.children,n=e.inject,i=e.render,r=t||i;if(void 0===r)return null;if(!n)return r();var o=h(n)(r);return S.a.createElement(o,null)});re.displayName=\"Observer\";var oe=function(e,t,n,i,r){var o=\"children\"===t?\"render\":\"children\";if(\"function\"==typeof e[t]&&\"function\"==typeof e[o])return new Error(\"Invalid prop,do not use children and render in the same time in`\"+n);if(\"function\"!=typeof e[t]&&\"function\"!=typeof e[o])return new Error(\"Invalid prop `\"+r+\"` of type `\"+T(e[t])+\"` supplied to `\"+n+\"`, expected `function`.\")};re.propTypes={render:oe,children:oe};var ae,se,le={children:!0,key:!0,ref:!0},ue=(se=ae=function(e){function t(){return k(this,t),P(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return C(t,e),O(t,[{key:\"render\",value:function(){return M.Children.only(this.props.children)}},{key:\"getChildContext\",value:function(){var e={},t=this.context.mobxStores;if(t)for(var n in t)e[n]=t[n];for(var i in this.props)le[i]||\"suppressChangedStoreWarning\"===i||(e[i]=this.props[i]);return{mobxStores:e}}},{key:\"componentWillReceiveProps\",value:function(e){if(Object.keys(e).length!==Object.keys(this.props).length&&console.warn(\"MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children\"),!e.suppressChangedStoreWarning)for(var t in e)le[t]||this.props[t]===e[t]||console.warn(\"MobX Provider: Provided store '\"+t+\"' has changed. Please avoid replacing stores as the change might not propagate to all children\")}}]),t}(M.Component),ae.contextTypes={mobxStores:Y},ae.childContextTypes={mobxStores:Y.isRequired},se);if(!M.Component)throw new Error(\"mobx-react requires React to be available\");if(!w.extras)throw new Error(\"mobx-react requires mobx to be available\");\"function\"==typeof E.unstable_batchedUpdates&&w.extras.setReactionScheduler(E.unstable_batchedUpdates);var ce=function(e){return ne.on(e)};if(\"object\"===(\"undefined\"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?\"undefined\":T(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var de={spy:w.spy,extras:w.extras},he={renderReporter:te,componentByNodeRegistery:ee,trackComponents:m};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(he,de)}},function(e,t,n){\"use strict\";var i=n(6);e.exports={_set:function(e,t){return i.merge(this[e]||(this[e]={}),t)}}},function(e,t){var n=e.exports={version:\"2.5.7\"};\"number\"==typeof __e&&(__e=n)},function(e,t,n){\"use strict\";var i=n(7),r=n(74);t.a=function(e){return Math.abs(e)<=i.e?e:e-n.i(r.a)(e)*i.f}},function(e,t,n){\"use strict\";function i(){}function r(e,t){this.x=e||0,this.y=t||0}function o(e,t,n,i,a,s,l,u,c,d){Object.defineProperty(this,\"id\",{value:ps++}),this.uuid=fs.generateUUID(),this.name=\"\",this.image=void 0!==e?e:o.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==t?t:o.DEFAULT_MAPPING,this.wrapS=void 0!==n?n:la,this.wrapT=void 0!==i?i:la,this.magFilter=void 0!==a?a:fa,this.minFilter=void 0!==s?s:ma,this.anisotropy=void 0!==c?c:1,this.format=void 0!==l?l:Pa,this.type=void 0!==u?u:ga,this.offset=new r(0,0),this.repeat=new r(1,1),this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=void 0!==d?d:is,this.version=0,this.onUpdate=null}function a(e,t,n,i){this.x=e||0,this.y=t||0,this.z=n||0,this.w=void 0!==i?i:1}function s(e,t,n){this.uuid=fs.generateUUID(),this.width=e,this.height=t,this.scissor=new a(0,0,e,t),this.scissorTest=!1,this.viewport=new a(0,0,e,t),n=n||{},void 0===n.minFilter&&(n.minFilter=fa),this.texture=new o(void 0,void 0,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.depthBuffer=void 0===n.depthBuffer||n.depthBuffer,this.stencilBuffer=void 0===n.stencilBuffer||n.stencilBuffer,this.depthTexture=void 0!==n.depthTexture?n.depthTexture:null}function l(e,t,n){s.call(this,e,t,n),this.activeCubeFace=0,this.activeMipMapLevel=0}function u(e,t,n,i){this._x=e||0,this._y=t||0,this._z=n||0,this._w=void 0!==i?i:1}function c(e,t,n){this.x=e||0,this.y=t||0,this.z=n||0}function d(){this.elements=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),arguments.length>0&&console.error(\"THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.\")}function h(e,t,n,i,r,a,s,l,u,c){e=void 0!==e?e:[],t=void 0!==t?t:ea,o.call(this,e,t,n,i,r,a,s,l,u,c),this.flipY=!1}function f(){this.seq=[],this.map={}}function p(e,t,n){var i=e[0];if(i<=0||i>0)return e;var r=t*n,o=vs[r];if(void 0===o&&(o=new Float32Array(r),vs[r]=o),0!==t){i.toArray(o,0);for(var a=1,s=0;a!==t;++a)s+=n,e[a].toArray(o,s)}return o}function m(e,t){var n=ys[t];void 0===n&&(n=new Int32Array(t),ys[t]=n);for(var i=0;i!==t;++i)n[i]=e.allocTextureUnit();return n}function g(e,t){e.uniform1f(this.addr,t)}function v(e,t){e.uniform1i(this.addr,t)}function y(e,t){void 0===t.x?e.uniform2fv(this.addr,t):e.uniform2f(this.addr,t.x,t.y)}function b(e,t){void 0!==t.x?e.uniform3f(this.addr,t.x,t.y,t.z):void 0!==t.r?e.uniform3f(this.addr,t.r,t.g,t.b):e.uniform3fv(this.addr,t)}function _(e,t){void 0===t.x?e.uniform4fv(this.addr,t):e.uniform4f(this.addr,t.x,t.y,t.z,t.w)}function x(e,t){e.uniformMatrix2fv(this.addr,!1,t.elements||t)}function w(e,t){e.uniformMatrix3fv(this.addr,!1,t.elements||t)}function M(e,t){e.uniformMatrix4fv(this.addr,!1,t.elements||t)}function S(e,t,n){var i=n.allocTextureUnit();e.uniform1i(this.addr,i),n.setTexture2D(t||ms,i)}function E(e,t,n){var i=n.allocTextureUnit();e.uniform1i(this.addr,i),n.setTextureCube(t||gs,i)}function T(e,t){e.uniform2iv(this.addr,t)}function k(e,t){e.uniform3iv(this.addr,t)}function O(e,t){e.uniform4iv(this.addr,t)}function C(e){switch(e){case 5126:return g;case 35664:return y;case 35665:return b;case 35666:return _;case 35674:return x;case 35675:return w;case 35676:return M;case 35678:return S;case 35680:return E;case 5124:case 35670:return v;case 35667:case 35671:return T;case 35668:case 35672:return k;case 35669:case 35673:return O}}function P(e,t){e.uniform1fv(this.addr,t)}function A(e,t){e.uniform1iv(this.addr,t)}function R(e,t){e.uniform2fv(this.addr,p(t,this.size,2))}function L(e,t){e.uniform3fv(this.addr,p(t,this.size,3))}function I(e,t){e.uniform4fv(this.addr,p(t,this.size,4))}function D(e,t){e.uniformMatrix2fv(this.addr,!1,p(t,this.size,4))}function N(e,t){e.uniformMatrix3fv(this.addr,!1,p(t,this.size,9))}function B(e,t){e.uniformMatrix4fv(this.addr,!1,p(t,this.size,16))}function z(e,t,n){var i=t.length,r=m(n,i);e.uniform1iv(this.addr,r);for(var o=0;o!==i;++o)n.setTexture2D(t[o]||ms,r[o])}function F(e,t,n){var i=t.length,r=m(n,i);e.uniform1iv(this.addr,r);for(var o=0;o!==i;++o)n.setTextureCube(t[o]||gs,r[o])}function j(e){switch(e){case 5126:return P;case 35664:return R;case 35665:return L;case 35666:return I;case 35674:return D;case 35675:return N;case 35676:return B;case 35678:return z;case 35680:return F;case 5124:case 35670:return A;case 35667:case 35671:return T;case 35668:case 35672:return k;case 35669:case 35673:return O}}function U(e,t,n){this.id=e,this.addr=n,this.setValue=C(t.type)}function W(e,t,n){this.id=e,this.addr=n,this.size=t.size,this.setValue=j(t.type)}function G(e){this.id=e,f.call(this)}function V(e,t){e.seq.push(t),e.map[t.id]=t}function H(e,t,n){var i=e.name,r=i.length;for(bs.lastIndex=0;;){var o=bs.exec(i),a=bs.lastIndex,s=o[1],l=\"]\"===o[2],u=o[3];if(l&&(s|=0),void 0===u||\"[\"===u&&a+2===r){V(n,void 0===u?new U(s,e,t):new W(s,e,t));break}var c=n.map,d=c[s];void 0===d&&(d=new G(s),V(n,d)),n=d}}function q(e,t,n){f.call(this),this.renderer=n;for(var i=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),r=0;r.001&&A.scale>.001&&(M.x=A.x,M.y=A.y,M.z=A.z,x=A.size*A.scale/g.w,w.x=x*y,w.y=x,p.uniform3f(d.screenPosition,M.x,M.y,M.z),p.uniform2f(d.scale,w.x,w.y),p.uniform1f(d.rotation,A.rotation),p.uniform1f(d.opacity,A.opacity),p.uniform3f(d.color,A.color.r,A.color.g,A.color.b),m.setBlending(A.blending,A.blendEquation,A.blendSrc,A.blendDst),e.setTexture2D(A.texture,1),p.drawElements(p.TRIANGLES,6,p.UNSIGNED_SHORT,0))}}}m.enable(p.CULL_FACE),m.enable(p.DEPTH_TEST),m.setDepthWrite(!0),e.resetGLState()}}}function J(e,t){function n(){var e=new Float32Array([-.5,-.5,0,0,.5,-.5,1,0,.5,.5,1,1,-.5,.5,0,1]),t=new Uint16Array([0,1,2,0,2,3]);a=p.createBuffer(),s=p.createBuffer(),p.bindBuffer(p.ARRAY_BUFFER,a),p.bufferData(p.ARRAY_BUFFER,e,p.STATIC_DRAW),p.bindBuffer(p.ELEMENT_ARRAY_BUFFER,s),p.bufferData(p.ELEMENT_ARRAY_BUFFER,t,p.STATIC_DRAW),l=i(),d={position:p.getAttribLocation(l,\"position\"),uv:p.getAttribLocation(l,\"uv\")},h={uvOffset:p.getUniformLocation(l,\"uvOffset\"),uvScale:p.getUniformLocation(l,\"uvScale\"),rotation:p.getUniformLocation(l,\"rotation\"),scale:p.getUniformLocation(l,\"scale\"),color:p.getUniformLocation(l,\"color\"),map:p.getUniformLocation(l,\"map\"),opacity:p.getUniformLocation(l,\"opacity\"),modelViewMatrix:p.getUniformLocation(l,\"modelViewMatrix\"),projectionMatrix:p.getUniformLocation(l,\"projectionMatrix\"),fogType:p.getUniformLocation(l,\"fogType\"),fogDensity:p.getUniformLocation(l,\"fogDensity\"),fogNear:p.getUniformLocation(l,\"fogNear\"),fogFar:p.getUniformLocation(l,\"fogFar\"),fogColor:p.getUniformLocation(l,\"fogColor\"),alphaTest:p.getUniformLocation(l,\"alphaTest\")};var n=document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\");n.width=8,n.height=8;var r=n.getContext(\"2d\");r.fillStyle=\"white\",r.fillRect(0,0,8,8),f=new o(n),f.needsUpdate=!0}function i(){var t=p.createProgram(),n=p.createShader(p.VERTEX_SHADER),i=p.createShader(p.FRAGMENT_SHADER);return p.shaderSource(n,[\"precision \"+e.getPrecision()+\" float;\",\"uniform mat4 modelViewMatrix;\",\"uniform mat4 projectionMatrix;\",\"uniform float rotation;\",\"uniform vec2 scale;\",\"uniform vec2 uvOffset;\",\"uniform vec2 uvScale;\",\"attribute vec2 position;\",\"attribute vec2 uv;\",\"varying vec2 vUV;\",\"void main() {\",\"vUV = uvOffset + uv * uvScale;\",\"vec2 alignedPosition = position * scale;\",\"vec2 rotatedPosition;\",\"rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\",\"rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\",\"vec4 finalPosition;\",\"finalPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\",\"finalPosition.xy += rotatedPosition;\",\"finalPosition = projectionMatrix * finalPosition;\",\"gl_Position = finalPosition;\",\"}\"].join(\"\\n\")),p.shaderSource(i,[\"precision \"+e.getPrecision()+\" float;\",\"uniform vec3 color;\",\"uniform sampler2D map;\",\"uniform float opacity;\",\"uniform int fogType;\",\"uniform vec3 fogColor;\",\"uniform float fogDensity;\",\"uniform float fogNear;\",\"uniform float fogFar;\",\"uniform float alphaTest;\",\"varying vec2 vUV;\",\"void main() {\",\"vec4 texture = texture2D( map, vUV );\",\"if ( texture.a < alphaTest ) discard;\",\"gl_FragColor = vec4( color * texture.xyz, texture.a * opacity );\",\"if ( fogType > 0 ) {\",\"float depth = gl_FragCoord.z / gl_FragCoord.w;\",\"float fogFactor = 0.0;\",\"if ( fogType == 1 ) {\",\"fogFactor = smoothstep( fogNear, fogFar, depth );\",\"} else {\",\"const float LOG2 = 1.442695;\",\"fogFactor = exp2( - fogDensity * fogDensity * depth * depth * LOG2 );\",\"fogFactor = 1.0 - clamp( fogFactor, 0.0, 1.0 );\",\"}\",\"gl_FragColor = mix( gl_FragColor, vec4( fogColor, gl_FragColor.w ), fogFactor );\",\"}\",\"}\"].join(\"\\n\")),p.compileShader(n),p.compileShader(i),p.attachShader(t,n),p.attachShader(t,i),p.linkProgram(t),t}function r(e,t){return e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.z!==t.z?t.z-e.z:t.id-e.id}var a,s,l,d,h,f,p=e.context,m=e.state,g=new c,v=new u,y=new c;this.render=function(i,o){if(0!==t.length){void 0===l&&n(),p.useProgram(l),m.initAttributes(),m.enableAttribute(d.position),m.enableAttribute(d.uv),m.disableUnusedAttributes(),m.disable(p.CULL_FACE),m.enable(p.BLEND),p.bindBuffer(p.ARRAY_BUFFER,a),p.vertexAttribPointer(d.position,2,p.FLOAT,!1,16,0),p.vertexAttribPointer(d.uv,2,p.FLOAT,!1,16,8),p.bindBuffer(p.ELEMENT_ARRAY_BUFFER,s),p.uniformMatrix4fv(h.projectionMatrix,!1,o.projectionMatrix.elements),m.activeTexture(p.TEXTURE0),p.uniform1i(h.map,0);var u=0,c=0,b=i.fog;b?(p.uniform3f(h.fogColor,b.color.r,b.color.g,b.color.b),b.isFog?(p.uniform1f(h.fogNear,b.near),p.uniform1f(h.fogFar,b.far),p.uniform1i(h.fogType,1),u=1,c=1):b.isFogExp2&&(p.uniform1f(h.fogDensity,b.density),p.uniform1i(h.fogType,2),u=2,c=2)):(p.uniform1i(h.fogType,0),u=0,c=0);for(var _=0,x=t.length;_0&&console.error(\"THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.\")}function re(e,t){this.normal=void 0!==e?e:new c(1,0,0),this.constant=void 0!==t?t:0}function oe(e,t,n,i,r,o){this.planes=[void 0!==e?e:new re,void 0!==t?t:new re,void 0!==n?n:new re,void 0!==i?i:new re,void 0!==r?r:new re,void 0!==o?o:new re]}function ae(e,t,n,i){function o(t,n,i,r){var o=t.geometry,a=null,s=S,l=t.customDepthMaterial;if(i&&(s=E,l=t.customDistanceMaterial),l)a=l;else{var u=!1;n.morphTargets&&(o&&o.isBufferGeometry?u=o.morphAttributes&&o.morphAttributes.position&&o.morphAttributes.position.length>0:o&&o.isGeometry&&(u=o.morphTargets&&o.morphTargets.length>0));var c=t.isSkinnedMesh&&n.skinning,d=0;u&&(d|=x),c&&(d|=w),a=s[d]}if(e.localClippingEnabled&&!0===n.clipShadows&&0!==n.clippingPlanes.length){var h=a.uuid,f=n.uuid,p=T[h];void 0===p&&(p={},T[h]=p);var m=p[f];void 0===m&&(m=a.clone(),p[f]=m),a=m}a.visible=n.visible,a.wireframe=n.wireframe;var g=n.side;return z.renderSingleSided&&g==lo&&(g=ao),z.renderReverseSided&&(g===ao?g=so:g===so&&(g=ao)),a.side=g,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,i&&void 0!==a.uniforms.lightPos&&a.uniforms.lightPos.value.copy(r),a}function l(e,t,n){if(!1!==e.visible){if(0!=(e.layers.mask&t.layers.mask)&&(e.isMesh||e.isLine||e.isPoints)&&e.castShadow&&(!1===e.frustumCulled||!0===f.intersectsObject(e))){!0===e.material.visible&&(e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld),_.push(e))}for(var i=e.children,r=0,o=i.length;rn&&(n=e[t]);return n}function ke(){return ks++}function Oe(){Object.defineProperty(this,\"id\",{value:ke()}),this.uuid=fs.generateUUID(),this.name=\"\",this.type=\"Geometry\",this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingBox=null,this.boundingSphere=null,this.elementsNeedUpdate=!1,this.verticesNeedUpdate=!1,this.uvsNeedUpdate=!1,this.normalsNeedUpdate=!1,this.colorsNeedUpdate=!1,this.lineDistancesNeedUpdate=!1,this.groupsNeedUpdate=!1}function Ce(){Object.defineProperty(this,\"id\",{value:ke()}),this.uuid=fs.generateUUID(),this.name=\"\",this.type=\"BufferGeometry\",this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0}}function Pe(e,t){ce.call(this),this.type=\"Mesh\",this.geometry=void 0!==e?e:new Ce,this.material=void 0!==t?t:new pe({color:16777215*Math.random()}),this.drawMode=es,this.updateMorphTargets()}function Ae(e,t,n,i,r,o){Oe.call(this),this.type=\"BoxGeometry\",this.parameters={width:e,height:t,depth:n,widthSegments:i,heightSegments:r,depthSegments:o},this.fromBufferGeometry(new Re(e,t,n,i,r,o)),this.mergeVertices()}function Re(e,t,n,i,r,o){function a(e,t,n,i,r,o,a,m,g,v,y){var b,_,x=o/g,w=a/v,M=o/2,S=a/2,E=m/2,T=g+1,k=v+1,O=0,C=0,P=new c;for(_=0;_0?1:-1,d.push(P.x,P.y,P.z),h.push(b/g),h.push(1-_/v),O+=1}}for(_=0;_\");return Qe(n)}var n=/#include +<([\\w\\d.]+)>/g;return e.replace(n,t)}function $e(e){function t(e,t,n,i){for(var r=\"\",o=parseInt(t);o0?e.gammaFactor:1,g=Ye(o,i,e.extensions),v=Xe(a),y=r.createProgram();n.isRawShaderMaterial?(f=[v,\"\\n\"].filter(Ze).join(\"\\n\"),p=[g,v,\"\\n\"].filter(Ze).join(\"\\n\")):(f=[\"precision \"+i.precision+\" float;\",\"precision \"+i.precision+\" int;\",\"#define SHADER_NAME \"+n.__webglShader.name,v,i.supportsVertexTextures?\"#define VERTEX_TEXTURES\":\"\",\"#define GAMMA_FACTOR \"+m,\"#define MAX_BONES \"+i.maxBones,i.useFog&&i.fog?\"#define USE_FOG\":\"\",i.useFog&&i.fogExp?\"#define FOG_EXP2\":\"\",i.map?\"#define USE_MAP\":\"\",i.envMap?\"#define USE_ENVMAP\":\"\",i.envMap?\"#define \"+d:\"\",i.lightMap?\"#define USE_LIGHTMAP\":\"\",i.aoMap?\"#define USE_AOMAP\":\"\",i.emissiveMap?\"#define USE_EMISSIVEMAP\":\"\",i.bumpMap?\"#define USE_BUMPMAP\":\"\",i.normalMap?\"#define USE_NORMALMAP\":\"\",i.displacementMap&&i.supportsVertexTextures?\"#define USE_DISPLACEMENTMAP\":\"\",i.specularMap?\"#define USE_SPECULARMAP\":\"\",i.roughnessMap?\"#define USE_ROUGHNESSMAP\":\"\",i.metalnessMap?\"#define USE_METALNESSMAP\":\"\",i.alphaMap?\"#define USE_ALPHAMAP\":\"\",i.vertexColors?\"#define USE_COLOR\":\"\",i.flatShading?\"#define FLAT_SHADED\":\"\",i.skinning?\"#define USE_SKINNING\":\"\",i.useVertexTexture?\"#define BONE_TEXTURE\":\"\",i.morphTargets?\"#define USE_MORPHTARGETS\":\"\",i.morphNormals&&!1===i.flatShading?\"#define USE_MORPHNORMALS\":\"\",i.doubleSided?\"#define DOUBLE_SIDED\":\"\",i.flipSided?\"#define FLIP_SIDED\":\"\",\"#define NUM_CLIPPING_PLANES \"+i.numClippingPlanes,i.shadowMapEnabled?\"#define USE_SHADOWMAP\":\"\",i.shadowMapEnabled?\"#define \"+u:\"\",i.sizeAttenuation?\"#define USE_SIZEATTENUATION\":\"\",i.logarithmicDepthBuffer?\"#define USE_LOGDEPTHBUF\":\"\",i.logarithmicDepthBuffer&&e.extensions.get(\"EXT_frag_depth\")?\"#define USE_LOGDEPTHBUF_EXT\":\"\",\"uniform mat4 modelMatrix;\",\"uniform mat4 modelViewMatrix;\",\"uniform mat4 projectionMatrix;\",\"uniform mat4 viewMatrix;\",\"uniform mat3 normalMatrix;\",\"uniform vec3 cameraPosition;\",\"attribute vec3 position;\",\"attribute vec3 normal;\",\"attribute vec2 uv;\",\"#ifdef USE_COLOR\",\"\\tattribute vec3 color;\",\"#endif\",\"#ifdef USE_MORPHTARGETS\",\"\\tattribute vec3 morphTarget0;\",\"\\tattribute vec3 morphTarget1;\",\"\\tattribute vec3 morphTarget2;\",\"\\tattribute vec3 morphTarget3;\",\"\\t#ifdef USE_MORPHNORMALS\",\"\\t\\tattribute vec3 morphNormal0;\",\"\\t\\tattribute vec3 morphNormal1;\",\"\\t\\tattribute vec3 morphNormal2;\",\"\\t\\tattribute vec3 morphNormal3;\",\"\\t#else\",\"\\t\\tattribute vec3 morphTarget4;\",\"\\t\\tattribute vec3 morphTarget5;\",\"\\t\\tattribute vec3 morphTarget6;\",\"\\t\\tattribute vec3 morphTarget7;\",\"\\t#endif\",\"#endif\",\"#ifdef USE_SKINNING\",\"\\tattribute vec4 skinIndex;\",\"\\tattribute vec4 skinWeight;\",\"#endif\",\"\\n\"].filter(Ze).join(\"\\n\"),p=[g,\"precision \"+i.precision+\" float;\",\"precision \"+i.precision+\" int;\",\"#define SHADER_NAME \"+n.__webglShader.name,v,i.alphaTest?\"#define ALPHATEST \"+i.alphaTest:\"\",\"#define GAMMA_FACTOR \"+m,i.useFog&&i.fog?\"#define USE_FOG\":\"\",i.useFog&&i.fogExp?\"#define FOG_EXP2\":\"\",i.map?\"#define USE_MAP\":\"\",i.envMap?\"#define USE_ENVMAP\":\"\",i.envMap?\"#define \"+c:\"\",i.envMap?\"#define \"+d:\"\",i.envMap?\"#define \"+h:\"\",i.lightMap?\"#define USE_LIGHTMAP\":\"\",i.aoMap?\"#define USE_AOMAP\":\"\",i.emissiveMap?\"#define USE_EMISSIVEMAP\":\"\",i.bumpMap?\"#define USE_BUMPMAP\":\"\",i.normalMap?\"#define USE_NORMALMAP\":\"\",i.specularMap?\"#define USE_SPECULARMAP\":\"\",i.roughnessMap?\"#define USE_ROUGHNESSMAP\":\"\",i.metalnessMap?\"#define USE_METALNESSMAP\":\"\",i.alphaMap?\"#define USE_ALPHAMAP\":\"\",i.vertexColors?\"#define USE_COLOR\":\"\",i.gradientMap?\"#define USE_GRADIENTMAP\":\"\",i.flatShading?\"#define FLAT_SHADED\":\"\",i.doubleSided?\"#define DOUBLE_SIDED\":\"\",i.flipSided?\"#define FLIP_SIDED\":\"\",\"#define NUM_CLIPPING_PLANES \"+i.numClippingPlanes,\"#define UNION_CLIPPING_PLANES \"+(i.numClippingPlanes-i.numClipIntersection),i.shadowMapEnabled?\"#define USE_SHADOWMAP\":\"\",i.shadowMapEnabled?\"#define \"+u:\"\",i.premultipliedAlpha?\"#define PREMULTIPLIED_ALPHA\":\"\",i.physicallyCorrectLights?\"#define PHYSICALLY_CORRECT_LIGHTS\":\"\",i.logarithmicDepthBuffer?\"#define USE_LOGDEPTHBUF\":\"\",i.logarithmicDepthBuffer&&e.extensions.get(\"EXT_frag_depth\")?\"#define USE_LOGDEPTHBUF_EXT\":\"\",i.envMap&&e.extensions.get(\"EXT_shader_texture_lod\")?\"#define TEXTURE_LOD_EXT\":\"\",\"uniform mat4 viewMatrix;\",\"uniform vec3 cameraPosition;\",i.toneMapping!==Xo?\"#define TONE_MAPPING\":\"\",i.toneMapping!==Xo?xs.tonemapping_pars_fragment:\"\",i.toneMapping!==Xo?qe(\"toneMapping\",i.toneMapping):\"\",i.outputEncoding||i.mapEncoding||i.envMapEncoding||i.emissiveMapEncoding?xs.encodings_pars_fragment:\"\",i.mapEncoding?Ve(\"mapTexelToLinear\",i.mapEncoding):\"\",i.envMapEncoding?Ve(\"envMapTexelToLinear\",i.envMapEncoding):\"\",i.emissiveMapEncoding?Ve(\"emissiveMapTexelToLinear\",i.emissiveMapEncoding):\"\",i.outputEncoding?He(\"linearToOutputTexel\",i.outputEncoding):\"\",i.depthPacking?\"#define DEPTH_PACKING \"+n.depthPacking:\"\",\"\\n\"].filter(Ze).join(\"\\n\")),s=Qe(s,i),s=Je(s,i),l=Qe(l,i),l=Je(l,i),n.isShaderMaterial||(s=$e(s),l=$e(l));var b=f+s,_=p+l,x=We(r,r.VERTEX_SHADER,b),w=We(r,r.FRAGMENT_SHADER,_);r.attachShader(y,x),r.attachShader(y,w),void 0!==n.index0AttributeName?r.bindAttribLocation(y,0,n.index0AttributeName):!0===i.morphTargets&&r.bindAttribLocation(y,0,\"position\"),r.linkProgram(y);var M=r.getProgramInfoLog(y),S=r.getShaderInfoLog(x),E=r.getShaderInfoLog(w),T=!0,k=!0;!1===r.getProgramParameter(y,r.LINK_STATUS)?(T=!1,console.error(\"THREE.WebGLProgram: shader error: \",r.getError(),\"gl.VALIDATE_STATUS\",r.getProgramParameter(y,r.VALIDATE_STATUS),\"gl.getProgramInfoLog\",M,S,E)):\"\"!==M?console.warn(\"THREE.WebGLProgram: gl.getProgramInfoLog()\",M):\"\"!==S&&\"\"!==E||(k=!1),k&&(this.diagnostics={runnable:T,material:n,programLog:M,vertexShader:{log:S,prefix:f},fragmentShader:{log:E,prefix:p}}),r.deleteShader(x),r.deleteShader(w);var O;this.getUniforms=function(){return void 0===O&&(O=new q(r,y,e)),O};var C;return this.getAttributes=function(){return void 0===C&&(C=Ke(r,y)),C},this.destroy=function(){r.deleteProgram(y),this.program=void 0},Object.defineProperties(this,{uniforms:{get:function(){return console.warn(\"THREE.WebGLProgram: .uniforms is now .getUniforms().\"),this.getUniforms()}},attributes:{get:function(){return console.warn(\"THREE.WebGLProgram: .attributes is now .getAttributes().\"),this.getAttributes()}}}),this.id=Os++,this.code=t,this.usedTimes=1,this.program=y,this.vertexShader=x,this.fragmentShader=w,this}function tt(e,t){function n(e){if(t.floatVertexTextures&&e&&e.skeleton&&e.skeleton.useVertexTexture)return 1024;var n=t.maxVertexUniforms,i=Math.floor((n-20)/4),r=i;return void 0!==e&&e&&e.isSkinnedMesh&&(r=Math.min(e.skeleton.bones.length,r))0,shadowMapType:e.shadowMap.type,toneMapping:e.toneMapping,physicallyCorrectLights:e.physicallyCorrectLights,premultipliedAlpha:r.premultipliedAlpha,alphaTest:r.alphaTest,doubleSided:r.side===lo,flipSided:r.side===so,depthPacking:void 0!==r.depthPacking&&r.depthPacking}},this.getProgramCode=function(e,t){var n=[];if(t.shaderID?n.push(t.shaderID):(n.push(e.fragmentShader),n.push(e.vertexShader)),void 0!==e.defines)for(var i in e.defines)n.push(i),n.push(e.defines[i]);for(var r=0;r65535?we:_e)(o,1);return r(p,e.ELEMENT_ARRAY_BUFFER),i.wireframe=p,p}var c=new nt(e,t,n);return{getAttributeBuffer:s,getAttributeProperties:l,getWireframeAttribute:u,update:i}}function rt(e,t,n,i,r,o,a){function s(e,t){if(e.width>t||e.height>t){var n=t/Math.max(e.width,e.height),i=document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\");i.width=Math.floor(e.width*n),i.height=Math.floor(e.height*n);return i.getContext(\"2d\").drawImage(e,0,0,e.width,e.height,0,0,i.width,i.height),console.warn(\"THREE.WebGLRenderer: image is too big (\"+e.width+\"x\"+e.height+\"). Resized to \"+i.width+\"x\"+i.height,e),i}return e}function l(e){return fs.isPowerOfTwo(e.width)&&fs.isPowerOfTwo(e.height)}function u(e){if(e instanceof HTMLImageElement||e instanceof HTMLCanvasElement){var t=document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\");t.width=fs.nearestPowerOfTwo(e.width),t.height=fs.nearestPowerOfTwo(e.height);return t.getContext(\"2d\").drawImage(e,0,0,t.width,t.height),console.warn(\"THREE.WebGLRenderer: image is not power of two (\"+e.width+\"x\"+e.height+\"). Resized to \"+t.width+\"x\"+t.height,e),t}return e}function c(e){return e.wrapS!==la||e.wrapT!==la||e.minFilter!==ca&&e.minFilter!==fa}function d(t){return t===ca||t===da||t===ha?e.NEAREST:e.LINEAR}function h(e){var t=e.target;t.removeEventListener(\"dispose\",h),p(t),k.textures--}function f(e){var t=e.target;t.removeEventListener(\"dispose\",f),m(t),k.textures--}function p(t){var n=i.get(t);if(t.image&&n.__image__webglTextureCube)e.deleteTexture(n.__image__webglTextureCube);else{if(void 0===n.__webglInit)return;e.deleteTexture(n.__webglTexture)}i.delete(t)}function m(t){var n=i.get(t),r=i.get(t.texture);if(t){if(void 0!==r.__webglTexture&&e.deleteTexture(r.__webglTexture),t.depthTexture&&t.depthTexture.dispose(),t.isWebGLRenderTargetCube)for(var o=0;o<6;o++)e.deleteFramebuffer(n.__webglFramebuffer[o]),n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer[o]);else e.deleteFramebuffer(n.__webglFramebuffer),n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer);i.delete(t.texture),i.delete(t)}}function g(t,r){var o=i.get(t);if(t.version>0&&o.__version!==t.version){var a=t.image;if(void 0===a)console.warn(\"THREE.WebGLRenderer: Texture marked for update but image is undefined\",t);else{if(!1!==a.complete)return void _(o,t,r);console.warn(\"THREE.WebGLRenderer: Texture marked for update but image is incomplete\",t)}}n.activeTexture(e.TEXTURE0+r),n.bindTexture(e.TEXTURE_2D,o.__webglTexture)}function v(t,a){var u=i.get(t);if(6===t.image.length)if(t.version>0&&u.__version!==t.version){u.__image__webglTextureCube||(t.addEventListener(\"dispose\",h),u.__image__webglTextureCube=e.createTexture(),k.textures++),n.activeTexture(e.TEXTURE0+a),n.bindTexture(e.TEXTURE_CUBE_MAP,u.__image__webglTextureCube),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t.flipY);for(var c=t&&t.isCompressedTexture,d=t.image[0]&&t.image[0].isDataTexture,f=[],p=0;p<6;p++)f[p]=c||d?d?t.image[p].image:t.image[p]:s(t.image[p],r.maxCubemapSize);var m=f[0],g=l(m),v=o(t.format),y=o(t.type);b(e.TEXTURE_CUBE_MAP,t,g);for(var p=0;p<6;p++)if(c)for(var _,x=f[p].mipmaps,w=0,M=x.length;w-1?n.compressedTexImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+p,w,v,_.width,_.height,0,_.data):console.warn(\"THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()\"):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+p,w,v,_.width,_.height,0,v,y,_.data);else d?n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+p,0,v,f[p].width,f[p].height,0,v,y,f[p].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+p,0,v,v,y,f[p]);t.generateMipmaps&&g&&e.generateMipmap(e.TEXTURE_CUBE_MAP),u.__version=t.version,t.onUpdate&&t.onUpdate(t)}else n.activeTexture(e.TEXTURE0+a),n.bindTexture(e.TEXTURE_CUBE_MAP,u.__image__webglTextureCube)}function y(t,r){n.activeTexture(e.TEXTURE0+r),n.bindTexture(e.TEXTURE_CUBE_MAP,i.get(t).__webglTexture)}function b(n,a,s){var l;if(s?(e.texParameteri(n,e.TEXTURE_WRAP_S,o(a.wrapS)),e.texParameteri(n,e.TEXTURE_WRAP_T,o(a.wrapT)),e.texParameteri(n,e.TEXTURE_MAG_FILTER,o(a.magFilter)),e.texParameteri(n,e.TEXTURE_MIN_FILTER,o(a.minFilter))):(e.texParameteri(n,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(n,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),a.wrapS===la&&a.wrapT===la||console.warn(\"THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping.\",a),e.texParameteri(n,e.TEXTURE_MAG_FILTER,d(a.magFilter)),e.texParameteri(n,e.TEXTURE_MIN_FILTER,d(a.minFilter)),a.minFilter!==ca&&a.minFilter!==fa&&console.warn(\"THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.\",a)),l=t.get(\"EXT_texture_filter_anisotropic\")){if(a.type===wa&&null===t.get(\"OES_texture_float_linear\"))return;if(a.type===Ma&&null===t.get(\"OES_texture_half_float_linear\"))return;(a.anisotropy>1||i.get(a).__currentAnisotropy)&&(e.texParameterf(n,l.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,r.getMaxAnisotropy())),i.get(a).__currentAnisotropy=a.anisotropy)}}function _(t,i,a){void 0===t.__webglInit&&(t.__webglInit=!0,i.addEventListener(\"dispose\",h),t.__webglTexture=e.createTexture(),k.textures++),n.activeTexture(e.TEXTURE0+a),n.bindTexture(e.TEXTURE_2D,t.__webglTexture),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,i.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,i.unpackAlignment);var d=s(i.image,r.maxTextureSize);c(i)&&!1===l(d)&&(d=u(d));var f=l(d),p=o(i.format),m=o(i.type);b(e.TEXTURE_2D,i,f);var g,v=i.mipmaps;if(i.isDepthTexture){var y=e.DEPTH_COMPONENT;if(i.type===wa){if(!O)throw new Error(\"Float Depth Texture only supported in WebGL2.0\");y=e.DEPTH_COMPONENT32F}else O&&(y=e.DEPTH_COMPONENT16);i.format===Ia&&y===e.DEPTH_COMPONENT&&i.type!==ba&&i.type!==xa&&(console.warn(\"THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture.\"),i.type=ba,m=o(i.type)),i.format===Da&&(y=e.DEPTH_STENCIL,i.type!==ka&&(console.warn(\"THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture.\"),i.type=ka,m=o(i.type))),n.texImage2D(e.TEXTURE_2D,0,y,d.width,d.height,0,p,m,null)}else if(i.isDataTexture)if(v.length>0&&f){for(var _=0,x=v.length;_-1?n.compressedTexImage2D(e.TEXTURE_2D,_,p,g.width,g.height,0,g.data):console.warn(\"THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()\"):n.texImage2D(e.TEXTURE_2D,_,p,g.width,g.height,0,p,m,g.data);else if(v.length>0&&f){for(var _=0,x=v.length;_=1,ce=null,de={},he=new a,fe=new a,pe={};return pe[e.TEXTURE_2D]=s(e.TEXTURE_2D,e.TEXTURE_2D,1),pe[e.TEXTURE_CUBE_MAP]=s(e.TEXTURE_CUBE_MAP,e.TEXTURE_CUBE_MAP_POSITIVE_X,6),{buffers:{color:z,depth:F,stencil:j},init:l,initAttributes:u,enableAttribute:c,enableAttributeAndDivisor:d,disableUnusedAttributes:h,enable:f,disable:p,getCompressedTextureFormats:m,setBlending:g,setColorWrite:v,setDepthTest:y,setDepthWrite:b,setDepthFunc:_,setStencilTest:x,setStencilWrite:w,setStencilFunc:M,setStencilOp:S,setFlipSided:E,setCullFace:T,setLineWidth:k,setPolygonOffset:O,getScissorTest:C,setScissorTest:P,activeTexture:A,bindTexture:R,compressedTexImage2D:L,texImage2D:I,scissor:D,viewport:N,reset:B}}function st(e,t,n){function i(){if(void 0!==o)return o;var n=t.get(\"EXT_texture_filter_anisotropic\");return o=null!==n?e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0}function r(t){if(\"highp\"===t){if(e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).precision>0&&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\"}var o,a=void 0!==n.precision?n.precision:\"highp\",s=r(a);s!==a&&(console.warn(\"THREE.WebGLRenderer:\",a,\"not supported, using\",s,\"instead.\"),a=s);var l=!0===n.logarithmicDepthBuffer&&!!t.get(\"EXT_frag_depth\"),u=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),c=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),d=e.getParameter(e.MAX_TEXTURE_SIZE),h=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),f=e.getParameter(e.MAX_VERTEX_ATTRIBS),p=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),m=e.getParameter(e.MAX_VARYING_VECTORS),g=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),v=c>0,y=!!t.get(\"OES_texture_float\");return{getMaxAnisotropy:i,getMaxPrecision:r,precision:a,logarithmicDepthBuffer:l,maxTextures:u,maxVertexTextures:c,maxTextureSize:d,maxCubemapSize:h,maxAttributes:f,maxVertexUniforms:p,maxVaryings:m,maxFragmentUniforms:g,vertexTextures:v,floatFragmentTextures:y,floatVertexTextures:v&&y}}function lt(e){var t={};return{get:function(n){if(void 0!==t[n])return t[n];var i;switch(n){case\"WEBGL_depth_texture\":i=e.getExtension(\"WEBGL_depth_texture\")||e.getExtension(\"MOZ_WEBGL_depth_texture\")||e.getExtension(\"WEBKIT_WEBGL_depth_texture\");break;case\"EXT_texture_filter_anisotropic\":i=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\":i=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\":i=e.getExtension(\"WEBGL_compressed_texture_pvrtc\")||e.getExtension(\"WEBKIT_WEBGL_compressed_texture_pvrtc\");break;case\"WEBGL_compressed_texture_etc1\":i=e.getExtension(\"WEBGL_compressed_texture_etc1\");break;default:i=e.getExtension(n)}return null===i&&console.warn(\"THREE.WebGLRenderer: \"+n+\" extension not supported.\"),t[n]=i,i}}}function ut(){function e(){u.value!==i&&(u.value=i,u.needsUpdate=r>0),n.numPlanes=r,n.numIntersection=0}function t(e,t,i,r){var o=null!==e?e.length:0,a=null;if(0!==o){if(a=u.value,!0!==r||null===a){var c=i+4*o,d=t.matrixWorldInverse;l.getNormalMatrix(d),(null===a||a.length=0){var c=o[l];if(void 0!==c){var d=c.normalized,h=c.itemSize,f=dt.getAttributeProperties(c),p=f.__webglBuffer,m=f.type,g=f.bytesPerElement;if(c.isInterleavedBufferAttribute){var v=c.data,y=v.stride,b=c.offset;v&&v.isInstancedInterleavedBuffer?(et.enableAttributeAndDivisor(u,v.meshPerAttribute,r),void 0===n.maxInstancedCount&&(n.maxInstancedCount=v.meshPerAttribute*v.count)):et.enableAttribute(u),Ze.bindBuffer(Ze.ARRAY_BUFFER,p),Ze.vertexAttribPointer(u,h,m,d,y*g,(i*y+b)*g)}else c.isInstancedBufferAttribute?(et.enableAttributeAndDivisor(u,c.meshPerAttribute,r),void 0===n.maxInstancedCount&&(n.maxInstancedCount=c.meshPerAttribute*c.count)):et.enableAttribute(u),Ze.bindBuffer(Ze.ARRAY_BUFFER,p),Ze.vertexAttribPointer(u,h,m,d,0,i*h*g)}else if(void 0!==s){var _=s[l];if(void 0!==_)switch(_.length){case 2:Ze.vertexAttrib2fv(u,_);break;case 3:Ze.vertexAttrib3fv(u,_);break;case 4:Ze.vertexAttrib4fv(u,_);break;default:Ze.vertexAttrib1fv(u,_)}}}}et.disableUnusedAttributes()}function h(e,t){return Math.abs(t[0])-Math.abs(e[0])}function f(e,t){return e.object.renderOrder!==t.object.renderOrder?e.object.renderOrder-t.object.renderOrder:e.material.program&&t.material.program&&e.material.program!==t.material.program?e.material.program.id-t.material.program.id:e.material.id!==t.material.id?e.material.id-t.material.id:e.z!==t.z?e.z-t.z:e.id-t.id}function p(e,t){return e.object.renderOrder!==t.object.renderOrder?e.object.renderOrder-t.object.renderOrder:e.z!==t.z?t.z-e.z:e.id-t.id}function m(e,t,n,i,r){var o,a;n.transparent?(o=ie,a=++re):(o=ee,a=++te);var s=o[a];void 0!==s?(s.id=e.id,s.object=e,s.geometry=t,s.material=n,s.z=He.z,s.group=r):(s={id:e.id,object:e,geometry:t,material:n,z:He.z,group:r},o.push(s))}function g(e){var t=e.geometry;return null===t.boundingSphere&&t.computeBoundingSphere(),Ge.copy(t.boundingSphere).applyMatrix4(e.matrixWorld),y(Ge)}function v(e){return Ge.center.set(0,0,0),Ge.radius=.7071067811865476,Ge.applyMatrix4(e.matrixWorld),y(Ge)}function y(e){if(!Le.intersectsSphere(e))return!1;var t=De.numPlanes;if(0===t)return!0;var n=ce.clippingPlanes,i=e.center,r=-e.radius,o=0;do{if(n[o].distanceToPoint(i)=0&&e.numSupportedMorphTargets++}if(e.morphNormals){e.numSupportedMorphNormals=0;for(var h=0;h=0&&e.numSupportedMorphNormals++}var f=i.__webglShader.uniforms;(e.isShaderMaterial||e.isRawShaderMaterial)&&!0!==e.clipping||(i.numClippingPlanes=De.numPlanes,i.numIntersection=De.numIntersection,f.clippingPlanes=De.uniform),i.fog=t,i.lightsHash=Xe.hash,e.lights&&(f.ambientLightColor.value=Xe.ambient,f.directionalLights.value=Xe.directional,f.spotLights.value=Xe.spot,f.rectAreaLights.value=Xe.rectArea,f.pointLights.value=Xe.point,f.hemisphereLights.value=Xe.hemi,f.directionalShadowMap.value=Xe.directionalShadowMap,f.directionalShadowMatrix.value=Xe.directionalShadowMatrix,f.spotShadowMap.value=Xe.spotShadowMap,f.spotShadowMatrix.value=Xe.spotShadowMatrix,f.pointShadowMap.value=Xe.pointShadowMap,f.pointShadowMatrix.value=Xe.pointShadowMatrix);var p=i.program.getUniforms(),m=q.seqWithValue(p.seq,f);i.uniformsList=m}function w(e){e.side===lo?et.disable(Ze.CULL_FACE):et.enable(Ze.CULL_FACE),et.setFlipSided(e.side===so),!0===e.transparent?et.setBlending(e.blending,e.blendEquation,e.blendSrc,e.blendDst,e.blendEquationAlpha,e.blendSrcAlpha,e.blendDstAlpha,e.premultipliedAlpha):et.setBlending(mo),et.setDepthFunc(e.depthFunc),et.setDepthTest(e.depthTest),et.setDepthWrite(e.depthWrite),et.setColorWrite(e.colorWrite),et.setPolygonOffset(e.polygonOffset,e.polygonOffsetFactor,e.polygonOffsetUnits)}function M(e,t,n,i){xe=0;var r=nt.get(n);if(Ue&&(We||e!==ve)){var o=e===ve&&n.id===me;De.setState(n.clippingPlanes,n.clipIntersection,n.clipShadows,e,r,o)}!1===n.needsUpdate&&(void 0===r.program?n.needsUpdate=!0:n.fog&&r.fog!==t?n.needsUpdate=!0:n.lights&&r.lightsHash!==Xe.hash?n.needsUpdate=!0:void 0===r.numClippingPlanes||r.numClippingPlanes===De.numPlanes&&r.numIntersection===De.numIntersection||(n.needsUpdate=!0)),n.needsUpdate&&(x(n,t,i),n.needsUpdate=!1);var a=!1,s=!1,l=!1,u=r.program,c=u.getUniforms(),d=r.__webglShader.uniforms;if(u.id!==de&&(Ze.useProgram(u.program),de=u.id,a=!0,s=!0,l=!0),n.id!==me&&(me=n.id,s=!0),a||e!==ve){if(c.set(Ze,e,\"projectionMatrix\"),$e.logarithmicDepthBuffer&&c.setValue(Ze,\"logDepthBufFC\",2/(Math.log(e.far+1)/Math.LN2)),e!==ve&&(ve=e,s=!0,l=!0),n.isShaderMaterial||n.isMeshPhongMaterial||n.isMeshStandardMaterial||n.envMap){var h=c.map.cameraPosition;void 0!==h&&h.setValue(Ze,He.setFromMatrixPosition(e.matrixWorld))}(n.isMeshPhongMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial||n.skinning)&&c.setValue(Ze,\"viewMatrix\",e.matrixWorldInverse),c.set(Ze,ce,\"toneMappingExposure\"),c.set(Ze,ce,\"toneMappingWhitePoint\")}if(n.skinning){c.setOptional(Ze,i,\"bindMatrix\"),c.setOptional(Ze,i,\"bindMatrixInverse\");var f=i.skeleton;f&&($e.floatVertexTextures&&f.useVertexTexture?(c.set(Ze,f,\"boneTexture\"),c.set(Ze,f,\"boneTextureWidth\"),c.set(Ze,f,\"boneTextureHeight\")):c.setOptional(Ze,f,\"boneMatrices\"))}return s&&(n.lights&&D(d,l),t&&n.fog&&O(d,t),(n.isMeshBasicMaterial||n.isMeshLambertMaterial||n.isMeshPhongMaterial||n.isMeshStandardMaterial||n.isMeshNormalMaterial||n.isMeshDepthMaterial)&&S(d,n),n.isLineBasicMaterial?E(d,n):n.isLineDashedMaterial?(E(d,n),T(d,n)):n.isPointsMaterial?k(d,n):n.isMeshLambertMaterial?C(d,n):n.isMeshToonMaterial?A(d,n):n.isMeshPhongMaterial?P(d,n):n.isMeshPhysicalMaterial?L(d,n):n.isMeshStandardMaterial?R(d,n):n.isMeshDepthMaterial?n.displacementMap&&(d.displacementMap.value=n.displacementMap,d.displacementScale.value=n.displacementScale,d.displacementBias.value=n.displacementBias):n.isMeshNormalMaterial&&I(d,n),void 0!==d.ltcMat&&(d.ltcMat.value=THREE.UniformsLib.LTC_MAT_TEXTURE),void 0!==d.ltcMag&&(d.ltcMag.value=THREE.UniformsLib.LTC_MAG_TEXTURE),q.upload(Ze,r.uniformsList,d,ce)),c.set(Ze,i,\"modelViewMatrix\"),c.set(Ze,i,\"normalMatrix\"),c.setValue(Ze,\"modelMatrix\",i.matrixWorld),u}function S(e,t){e.opacity.value=t.opacity,e.diffuse.value=t.color,t.emissive&&e.emissive.value.copy(t.emissive).multiplyScalar(t.emissiveIntensity),e.map.value=t.map,e.specularMap.value=t.specularMap,e.alphaMap.value=t.alphaMap,t.lightMap&&(e.lightMap.value=t.lightMap,e.lightMapIntensity.value=t.lightMapIntensity),t.aoMap&&(e.aoMap.value=t.aoMap,e.aoMapIntensity.value=t.aoMapIntensity);var n;if(t.map?n=t.map:t.specularMap?n=t.specularMap:t.displacementMap?n=t.displacementMap:t.normalMap?n=t.normalMap:t.bumpMap?n=t.bumpMap:t.roughnessMap?n=t.roughnessMap:t.metalnessMap?n=t.metalnessMap:t.alphaMap?n=t.alphaMap:t.emissiveMap&&(n=t.emissiveMap),void 0!==n){n.isWebGLRenderTarget&&(n=n.texture);var i=n.offset,r=n.repeat;e.offsetRepeat.value.set(i.x,i.y,r.x,r.y)}e.envMap.value=t.envMap,e.flipEnvMap.value=t.envMap&&t.envMap.isCubeTexture?-1:1,e.reflectivity.value=t.reflectivity,e.refractionRatio.value=t.refractionRatio}function E(e,t){e.diffuse.value=t.color,e.opacity.value=t.opacity}function T(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function k(e,t){if(e.diffuse.value=t.color,e.opacity.value=t.opacity,e.size.value=t.size*Te,e.scale.value=.5*Ee,e.map.value=t.map,null!==t.map){var n=t.map.offset,i=t.map.repeat;e.offsetRepeat.value.set(n.x,n.y,i.x,i.y)}}function O(e,t){e.fogColor.value=t.color,t.isFog?(e.fogNear.value=t.near,e.fogFar.value=t.far):t.isFogExp2&&(e.fogDensity.value=t.density)}function C(e,t){t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap)}function P(e,t){e.specular.value=t.specular,e.shininess.value=Math.max(t.shininess,1e-4),t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale)),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}function A(e,t){P(e,t),t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function R(e,t){e.roughness.value=t.roughness,e.metalness.value=t.metalness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap),t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap),t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale)),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}function L(e,t){e.clearCoat.value=t.clearCoat,e.clearCoatRoughness.value=t.clearCoatRoughness,R(e,t)}function I(e,t){t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale)),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}function D(e,t){e.ambientLightColor.needsUpdate=t,e.directionalLights.needsUpdate=t,e.pointLights.needsUpdate=t,e.spotLights.needsUpdate=t,e.rectAreaLights.needsUpdate=t,e.hemisphereLights.needsUpdate=t}function N(e){for(var t=0,n=0,i=e.length;n=$e.maxTextures&&console.warn(\"WebGLRenderer: trying to use \"+e+\" texture units while this GPU supports only \"+$e.maxTextures),xe+=1,e}function F(e){var t;if(e===sa)return Ze.REPEAT;if(e===la)return Ze.CLAMP_TO_EDGE;if(e===ua)return Ze.MIRRORED_REPEAT;if(e===ca)return Ze.NEAREST;if(e===da)return Ze.NEAREST_MIPMAP_NEAREST;if(e===ha)return Ze.NEAREST_MIPMAP_LINEAR;if(e===fa)return Ze.LINEAR;if(e===pa)return Ze.LINEAR_MIPMAP_NEAREST;if(e===ma)return Ze.LINEAR_MIPMAP_LINEAR;if(e===ga)return Ze.UNSIGNED_BYTE;if(e===Sa)return Ze.UNSIGNED_SHORT_4_4_4_4;if(e===Ea)return Ze.UNSIGNED_SHORT_5_5_5_1;if(e===Ta)return Ze.UNSIGNED_SHORT_5_6_5;if(e===va)return Ze.BYTE;if(e===ya)return Ze.SHORT;if(e===ba)return Ze.UNSIGNED_SHORT;if(e===_a)return Ze.INT;if(e===xa)return Ze.UNSIGNED_INT;if(e===wa)return Ze.FLOAT;if(e===Ma&&null!==(t=Qe.get(\"OES_texture_half_float\")))return t.HALF_FLOAT_OES;if(e===Oa)return Ze.ALPHA;if(e===Ca)return Ze.RGB;if(e===Pa)return Ze.RGBA;if(e===Aa)return Ze.LUMINANCE;if(e===Ra)return Ze.LUMINANCE_ALPHA;if(e===Ia)return Ze.DEPTH_COMPONENT;if(e===Da)return Ze.DEPTH_STENCIL;if(e===xo)return Ze.FUNC_ADD;if(e===wo)return Ze.FUNC_SUBTRACT;if(e===Mo)return Ze.FUNC_REVERSE_SUBTRACT;if(e===To)return Ze.ZERO;if(e===ko)return Ze.ONE;if(e===Oo)return Ze.SRC_COLOR;if(e===Co)return Ze.ONE_MINUS_SRC_COLOR;if(e===Po)return Ze.SRC_ALPHA;if(e===Ao)return Ze.ONE_MINUS_SRC_ALPHA;if(e===Ro)return Ze.DST_ALPHA;if(e===Lo)return Ze.ONE_MINUS_DST_ALPHA;if(e===Io)return Ze.DST_COLOR;if(e===Do)return Ze.ONE_MINUS_DST_COLOR;if(e===No)return Ze.SRC_ALPHA_SATURATE;if((e===Na||e===Ba||e===za||e===Fa)&&null!==(t=Qe.get(\"WEBGL_compressed_texture_s3tc\"))){if(e===Na)return t.COMPRESSED_RGB_S3TC_DXT1_EXT;if(e===Ba)return t.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(e===za)return t.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(e===Fa)return t.COMPRESSED_RGBA_S3TC_DXT5_EXT}if((e===ja||e===Ua||e===Wa||e===Ga)&&null!==(t=Qe.get(\"WEBGL_compressed_texture_pvrtc\"))){if(e===ja)return t.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(e===Ua)return t.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(e===Wa)return t.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(e===Ga)return t.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(e===Va&&null!==(t=Qe.get(\"WEBGL_compressed_texture_etc1\")))return t.COMPRESSED_RGB_ETC1_WEBGL;if((e===So||e===Eo)&&null!==(t=Qe.get(\"EXT_blend_minmax\"))){if(e===So)return t.MIN_EXT;if(e===Eo)return t.MAX_EXT}return e===ka&&null!==(t=Qe.get(\"WEBGL_depth_texture\"))?t.UNSIGNED_INT_24_8_WEBGL:0}console.log(\"THREE.WebGLRenderer\",Kr),e=e||{};var j=void 0!==e.canvas?e.canvas:document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\"),U=void 0!==e.context?e.context:null,W=void 0!==e.alpha&&e.alpha,G=void 0===e.depth||e.depth,V=void 0===e.stencil||e.stencil,H=void 0!==e.antialias&&e.antialias,X=void 0===e.premultipliedAlpha||e.premultipliedAlpha,K=void 0!==e.preserveDrawingBuffer&&e.preserveDrawingBuffer,Q=[],ee=[],te=-1,ie=[],re=-1,se=new Float32Array(8),le=[],ue=[];this.domElement=j,this.context=null,this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.gammaInput=!1,this.gammaOutput=!1,this.physicallyCorrectLights=!1,this.toneMapping=Ko,this.toneMappingExposure=1,this.toneMappingWhitePoint=1,this.maxMorphTargets=8,this.maxMorphNormals=4;var ce=this,de=null,he=null,fe=null,me=-1,ge=\"\",ve=null,ye=new a,be=null,_e=new a,xe=0,we=new Y(0),Me=0,Se=j.width,Ee=j.height,Te=1,ke=new a(0,0,Se,Ee),Oe=!1,Ae=new a(0,0,Se,Ee),Le=new oe,De=new ut,Ue=!1,We=!1,Ge=new ne,Ve=new d,He=new c,qe=new d,Ye=new d,Xe={hash:\"\",ambient:[0,0,0],directional:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],point:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],shadows:[]},Ke={calls:0,vertices:0,faces:0,points:0};this.info={render:Ke,memory:{geometries:0,textures:0},programs:null};var Ze;try{var Je={alpha:W,depth:G,stencil:V,antialias:H,premultipliedAlpha:X,preserveDrawingBuffer:K};if(null===(Ze=U||j.getContext(\"webgl\",Je)||j.getContext(\"experimental-webgl\",Je)))throw null!==j.getContext(\"webgl\")?\"Error creating WebGL context with your selected attributes.\":\"Error creating WebGL context.\";void 0===Ze.getShaderPrecisionFormat&&(Ze.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}}),j.addEventListener(\"webglcontextlost\",r,!1)}catch(e){console.error(\"THREE.WebGLRenderer: \"+e)}var Qe=new lt(Ze);Qe.get(\"WEBGL_depth_texture\"),Qe.get(\"OES_texture_float\"),Qe.get(\"OES_texture_float_linear\"),Qe.get(\"OES_texture_half_float\"),Qe.get(\"OES_texture_half_float_linear\"),Qe.get(\"OES_standard_derivatives\"),Qe.get(\"ANGLE_instanced_arrays\"),Qe.get(\"OES_element_index_uint\")&&(Ce.MaxIndex=4294967296);var $e=new st(Ze,Qe,e),et=new at(Ze,Qe,F),nt=new ot,ct=new rt(Ze,Qe,et,nt,$e,F,this.info),dt=new it(Ze,nt,this.info),ht=new tt(this,$e),ft=new je;this.info.programs=ht.programs;var pt,mt,gt,vt,yt=new Fe(Ze,Qe,Ke),bt=new ze(Ze,Qe,Ke);n(),this.context=Ze,this.capabilities=$e,this.extensions=Qe,this.properties=nt,this.state=et;var _t=new ae(this,Xe,dt,$e);this.shadowMap=_t;var xt=new J(this,le),wt=new Z(this,ue);this.getContext=function(){return Ze},this.getContextAttributes=function(){return Ze.getContextAttributes()},this.forceContextLoss=function(){Qe.get(\"WEBGL_lose_context\").loseContext()},this.getMaxAnisotropy=function(){return $e.getMaxAnisotropy()},this.getPrecision=function(){return $e.precision},this.getPixelRatio=function(){return Te},this.setPixelRatio=function(e){void 0!==e&&(Te=e,this.setSize(Ae.z,Ae.w,!1))},this.getSize=function(){return{width:Se,height:Ee}},this.setSize=function(e,t,n){Se=e,Ee=t,j.width=e*Te,j.height=t*Te,!1!==n&&(j.style.width=e+\"px\",j.style.height=t+\"px\"),this.setViewport(0,0,e,t)},this.setViewport=function(e,t,n,i){et.viewport(Ae.set(e,t,n,i))},this.setScissor=function(e,t,n,i){et.scissor(ke.set(e,t,n,i))},this.setScissorTest=function(e){et.setScissorTest(Oe=e)},this.getClearColor=function(){return we},this.setClearColor=function(e,t){we.set(e),Me=void 0!==t?t:1,et.buffers.color.setClear(we.r,we.g,we.b,Me,X)},this.getClearAlpha=function(){return Me},this.setClearAlpha=function(e){Me=e,et.buffers.color.setClear(we.r,we.g,we.b,Me,X)},this.clear=function(e,t,n){var i=0;(void 0===e||e)&&(i|=Ze.COLOR_BUFFER_BIT),(void 0===t||t)&&(i|=Ze.DEPTH_BUFFER_BIT),(void 0===n||n)&&(i|=Ze.STENCIL_BUFFER_BIT),Ze.clear(i)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.clearTarget=function(e,t,n,i){this.setRenderTarget(e),this.clear(t,n,i)},this.resetGLState=i,this.dispose=function(){ie=[],re=-1,ee=[],te=-1,j.removeEventListener(\"webglcontextlost\",r,!1)},this.renderBufferImmediate=function(e,t,n){et.initAttributes();var i=nt.get(e);e.hasPositions&&!i.position&&(i.position=Ze.createBuffer()),e.hasNormals&&!i.normal&&(i.normal=Ze.createBuffer()),e.hasUvs&&!i.uv&&(i.uv=Ze.createBuffer()),e.hasColors&&!i.color&&(i.color=Ze.createBuffer());var r=t.getAttributes();if(e.hasPositions&&(Ze.bindBuffer(Ze.ARRAY_BUFFER,i.position),Ze.bufferData(Ze.ARRAY_BUFFER,e.positionArray,Ze.DYNAMIC_DRAW),et.enableAttribute(r.position),Ze.vertexAttribPointer(r.position,3,Ze.FLOAT,!1,0,0)),e.hasNormals){if(Ze.bindBuffer(Ze.ARRAY_BUFFER,i.normal),!n.isMeshPhongMaterial&&!n.isMeshStandardMaterial&&!n.isMeshNormalMaterial&&n.shading===uo)for(var o=0,a=3*e.count;o8&&(f.length=8);for(var v=i.morphAttributes,p=0,m=f.length;p0&&S.renderInstances(i,P,R):S.render(P,R)}},this.render=function(e,t,n,i){if(void 0!==t&&!0!==t.isCamera)return void console.error(\"THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.\");ge=\"\",me=-1,ve=null,!0===e.autoUpdate&&e.updateMatrixWorld(),null===t.parent&&t.updateMatrixWorld(),t.matrixWorldInverse.getInverse(t.matrixWorld),Ve.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),Le.setFromMatrix(Ve),Q.length=0,te=-1,re=-1,le.length=0,ue.length=0,We=this.localClippingEnabled,Ue=De.init(this.clippingPlanes,We,t),b(e,t),ee.length=te+1,ie.length=re+1,!0===ce.sortObjects&&(ee.sort(f),ie.sort(p)),Ue&&De.beginShadows(),N(Q),_t.render(e,t),B(Q,t),Ue&&De.endShadows(),Ke.calls=0,Ke.vertices=0,Ke.faces=0,Ke.points=0,void 0===n&&(n=null),this.setRenderTarget(n);var r=e.background;if(null===r?et.buffers.color.setClear(we.r,we.g,we.b,Me,X):r&&r.isColor&&(et.buffers.color.setClear(r.r,r.g,r.b,1,X),i=!0),(this.autoClear||i)&&this.clear(this.autoClearColor,this.autoClearDepth,this.autoClearStencil),r&&r.isCubeTexture?(void 0===gt&&(gt=new Ne,vt=new Pe(new Re(5,5,5),new $({uniforms:Ss.cube.uniforms,vertexShader:Ss.cube.vertexShader,fragmentShader:Ss.cube.fragmentShader,side:so,depthTest:!1,depthWrite:!1,fog:!1}))),gt.projectionMatrix.copy(t.projectionMatrix),gt.matrixWorld.extractRotation(t.matrixWorld),gt.matrixWorldInverse.getInverse(gt.matrixWorld),vt.material.uniforms.tCube.value=r,vt.modelViewMatrix.multiplyMatrices(gt.matrixWorldInverse,vt.matrixWorld),dt.update(vt),ce.renderBufferDirect(gt,null,vt.geometry,vt.material,vt,null)):r&&r.isTexture&&(void 0===pt&&(pt=new Be(-1,1,1,-1,0,1),mt=new Pe(new Ie(2,2),new pe({depthTest:!1,depthWrite:!1,fog:!1}))),mt.material.map=r,dt.update(mt),ce.renderBufferDirect(pt,null,mt.geometry,mt.material,mt,null)),e.overrideMaterial){var o=e.overrideMaterial;_(ee,e,t,o),_(ie,e,t,o)}else et.setBlending(mo),_(ee,e,t),_(ie,e,t);xt.render(e,t),wt.render(e,t,_e),n&&ct.updateRenderTargetMipmap(n),et.setDepthTest(!0),et.setDepthWrite(!0),et.setColorWrite(!0)},this.setFaceCulling=function(e,t){et.setCullFace(e),et.setFlipSided(t===to)},this.allocTextureUnit=z,this.setTexture2D=function(){var e=!1;return function(t,n){t&&t.isWebGLRenderTarget&&(e||(console.warn(\"THREE.WebGLRenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead.\"),e=!0),t=t.texture),ct.setTexture2D(t,n)}}(),this.setTexture=function(){var e=!1;return function(t,n){e||(console.warn(\"THREE.WebGLRenderer: .setTexture is deprecated, use setTexture2D instead.\"),e=!0),ct.setTexture2D(t,n)}}(),this.setTextureCube=function(){var e=!1;return function(t,n){t&&t.isWebGLRenderTargetCube&&(e||(console.warn(\"THREE.WebGLRenderer.setTextureCube: don't use cube render targets as textures. Use their .texture property instead.\"),e=!0),t=t.texture),t&&t.isCubeTexture||Array.isArray(t.image)&&6===t.image.length?ct.setTextureCube(t,n):ct.setTextureCubeDynamic(t,n)}}(),this.getCurrentRenderTarget=function(){return he},this.setRenderTarget=function(e){he=e,e&&void 0===nt.get(e).__webglFramebuffer&&ct.setupRenderTarget(e);var t,n=e&&e.isWebGLRenderTargetCube;if(e){var i=nt.get(e);t=n?i.__webglFramebuffer[e.activeCubeFace]:i.__webglFramebuffer,ye.copy(e.scissor),be=e.scissorTest,_e.copy(e.viewport)}else t=null,ye.copy(ke).multiplyScalar(Te),be=Oe,_e.copy(Ae).multiplyScalar(Te);if(fe!==t&&(Ze.bindFramebuffer(Ze.FRAMEBUFFER,t),fe=t),et.scissor(ye),et.setScissorTest(be),et.viewport(_e),n){var r=nt.get(e.texture);Ze.framebufferTexture2D(Ze.FRAMEBUFFER,Ze.COLOR_ATTACHMENT0,Ze.TEXTURE_CUBE_MAP_POSITIVE_X+e.activeCubeFace,r.__webglTexture,e.activeMipMapLevel)}},this.readRenderTargetPixels=function(e,t,n,i,r,o){if(!1===(e&&e.isWebGLRenderTarget))return void console.error(\"THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.\");var a=nt.get(e).__webglFramebuffer;if(a){var s=!1;a!==fe&&(Ze.bindFramebuffer(Ze.FRAMEBUFFER,a),s=!0);try{var l=e.texture,u=l.format,c=l.type;if(u!==Pa&&F(u)!==Ze.getParameter(Ze.IMPLEMENTATION_COLOR_READ_FORMAT))return void console.error(\"THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.\");if(!(c===ga||F(c)===Ze.getParameter(Ze.IMPLEMENTATION_COLOR_READ_TYPE)||c===wa&&(Qe.get(\"OES_texture_float\")||Qe.get(\"WEBGL_color_buffer_float\"))||c===Ma&&Qe.get(\"EXT_color_buffer_half_float\")))return void console.error(\"THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.\");Ze.checkFramebufferStatus(Ze.FRAMEBUFFER)===Ze.FRAMEBUFFER_COMPLETE?t>=0&&t<=e.width-i&&n>=0&&n<=e.height-r&&Ze.readPixels(t,n,i,r,F(u),F(c),o):console.error(\"THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.\")}finally{s&&Ze.bindFramebuffer(Ze.FRAMEBUFFER,fe)}}}}function dt(e,t){this.name=\"\",this.color=new Y(e),this.density=void 0!==t?t:25e-5}function ht(e,t,n){this.name=\"\",this.color=new Y(e),this.near=void 0!==t?t:1,this.far=void 0!==n?n:1e3}function ft(){ce.call(this),this.type=\"Scene\",this.background=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0}function pt(e,t,n,i,r){ce.call(this),this.lensFlares=[],this.positionScreen=new c,this.customUpdateCallback=void 0,void 0!==e&&this.add(e,t,n,i,r)}function mt(e){Q.call(this),this.type=\"SpriteMaterial\",this.color=new Y(16777215),this.map=null,this.rotation=0,this.fog=!1,this.lights=!1,this.setValues(e)}function gt(e){ce.call(this),this.type=\"Sprite\",this.material=void 0!==e?e:new mt}function vt(){ce.call(this),this.type=\"LOD\",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}})}function yt(e,t,n){if(this.useVertexTexture=void 0===n||n,this.identityMatrix=new d,e=e||[],this.bones=e.slice(0),this.useVertexTexture){var i=Math.sqrt(4*this.bones.length);i=fs.nextPowerOfTwo(Math.ceil(i)),i=Math.max(i,4),this.boneTextureWidth=i,this.boneTextureHeight=i,this.boneMatrices=new Float32Array(this.boneTextureWidth*this.boneTextureHeight*4),this.boneTexture=new X(this.boneMatrices,this.boneTextureWidth,this.boneTextureHeight,Pa,wa)}else this.boneMatrices=new Float32Array(16*this.bones.length);if(void 0===t)this.calculateInverses();else if(this.bones.length===t.length)this.boneInverses=t.slice(0);else{console.warn(\"THREE.Skeleton bonInverses is the wrong length.\"),this.boneInverses=[];for(var r=0,o=this.bones.length;r=e.HAVE_CURRENT_DATA&&(d.needsUpdate=!0)}o.call(this,e,t,n,i,r,a,s,l,u),this.generateMipmaps=!1;var d=this;c()}function Ot(e,t,n,i,r,a,s,l,u,c,d,h){o.call(this,null,a,s,l,u,c,i,r,d,h),this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}function Ct(e,t,n,i,r,a,s,l,u){o.call(this,e,t,n,i,r,a,s,l,u),this.needsUpdate=!0}function Pt(e,t,n,i,r,a,s,l,u,c){if((c=void 0!==c?c:Ia)!==Ia&&c!==Da)throw new Error(\"DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat\");void 0===n&&c===Ia&&(n=ba),void 0===n&&c===Da&&(n=ka),o.call(this,null,i,r,a,s,l,c,n,u),this.image={width:e,height:t},this.magFilter=void 0!==s?s:ca,this.minFilter=void 0!==l?l:ca,this.flipY=!1,this.generateMipmaps=!1}function At(e){function t(e,t){return e-t}Ce.call(this),this.type=\"WireframeGeometry\";var n,i,r,o,a,s,l,u,d=[],h=[0,0],f={},p=[\"a\",\"b\",\"c\"];if(e&&e.isGeometry){var m=e.faces;for(n=0,r=m.length;n.9&&o<.1&&(t<.2&&(m[e+0]+=1),n<.2&&(m[e+2]+=1),i<.2&&(m[e+4]+=1))}}function s(e){p.push(e.x,e.y,e.z)}function l(t,n){var i=3*t;n.x=e[i+0],n.y=e[i+1],n.z=e[i+2]}function u(){for(var e=new c,t=new c,n=new c,i=new c,o=new r,a=new r,s=new r,l=0,u=0;l0)&&m.push(w,M,E),(l!==n-1||u0&&u(!0),t>0&&u(!1)),this.setIndex(h),this.addAttribute(\"position\",new Me(f,3)),this.addAttribute(\"normal\",new Me(p,3)),this.addAttribute(\"uv\",new Me(m,2))}function cn(e,t,n,i,r,o,a){ln.call(this,0,e,t,n,i,r,o,a),this.type=\"ConeGeometry\",this.parameters={radius:e,height:t,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:o,thetaLength:a}}function dn(e,t,n,i,r,o,a){un.call(this,0,e,t,n,i,r,o,a),this.type=\"ConeBufferGeometry\",this.parameters={radius:e,height:t,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:o,thetaLength:a}}function hn(e,t,n,i){Oe.call(this),this.type=\"CircleGeometry\",this.parameters={radius:e,segments:t,thetaStart:n,thetaLength:i},this.fromBufferGeometry(new fn(e,t,n,i))}function fn(e,t,n,i){Ce.call(this),this.type=\"CircleBufferGeometry\",this.parameters={radius:e,segments:t,thetaStart:n,thetaLength:i},e=e||50,t=void 0!==t?Math.max(3,t):8,n=void 0!==n?n:0,i=void 0!==i?i:2*Math.PI;var o,a,s=[],l=[],u=[],d=[],h=new c,f=new r;for(l.push(0,0,0),u.push(0,0,1),d.push(.5,.5),a=0,o=3;a<=t;a++,o+=3){var p=n+a/t*i;h.x=e*Math.cos(p),h.y=e*Math.sin(p),l.push(h.x,h.y,h.z),u.push(0,0,1),f.x=(l[o]/e+1)/2,f.y=(l[o+1]/e+1)/2,d.push(f.x,f.y)}for(o=1;o<=t;o++)s.push(o,o+1,0);this.setIndex(s),this.addAttribute(\"position\",new Me(l,3)),this.addAttribute(\"normal\",new Me(u,3)),this.addAttribute(\"uv\",new Me(d,2))}function pn(){$.call(this,{uniforms:_s.merge([Ms.lights,{opacity:{value:1}}]),vertexShader:xs.shadow_vert,fragmentShader:xs.shadow_frag}),this.lights=!0,this.transparent=!0,Object.defineProperties(this,{opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(e){this.uniforms.opacity.value=e}}})}function mn(e){$.call(this,e),this.type=\"RawShaderMaterial\"}function gn(e){this.uuid=fs.generateUUID(),this.type=\"MultiMaterial\",this.materials=Array.isArray(e)?e:[],this.visible=!0}function vn(e){Q.call(this),this.defines={STANDARD:\"\"},this.type=\"MeshStandardMaterial\",this.color=new Y(16777215),this.roughness=.5,this.metalness=.5,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Y(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=\"round\",this.wireframeLinejoin=\"round\",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(e)}function yn(e){vn.call(this),this.defines={PHYSICAL:\"\"},this.type=\"MeshPhysicalMaterial\",this.reflectivity=.5,this.clearCoat=0,this.clearCoatRoughness=0,this.setValues(e)}function bn(e){Q.call(this),this.type=\"MeshPhongMaterial\",this.color=new Y(16777215),this.specular=new Y(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Y(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Ho,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=\"round\",this.wireframeLinejoin=\"round\",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(e)}function _n(e){bn.call(this),this.defines={TOON:\"\"},this.type=\"MeshToonMaterial\",this.gradientMap=null,this.setValues(e)}function xn(e){Q.call(this,e),this.type=\"MeshNormalMaterial\",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(e)}function wn(e){Q.call(this),this.type=\"MeshLambertMaterial\",this.color=new Y(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Y(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Ho,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=\"round\",this.wireframeLinejoin=\"round\",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(e)}function Mn(e){Q.call(this),this.type=\"LineDashedMaterial\",this.color=new Y(16777215),this.linewidth=1,this.scale=1,this.dashSize=3,this.gapSize=1,this.lights=!1,this.setValues(e)}function Sn(e,t,n){var i=this,r=!1,o=0,a=0;this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(e){a++,!1===r&&void 0!==i.onStart&&i.onStart(e,o,a),r=!0},this.itemEnd=function(e){o++,void 0!==i.onProgress&&i.onProgress(e,o,a),o===a&&(r=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(e){void 0!==i.onError&&i.onError(e)}}function En(e){this.manager=void 0!==e?e:Ls}function Tn(e){this.manager=void 0!==e?e:Ls,this._parser=null}function kn(e){this.manager=void 0!==e?e:Ls,this._parser=null}function On(e){this.manager=void 0!==e?e:Ls}function Cn(e){this.manager=void 0!==e?e:Ls}function Pn(e){this.manager=void 0!==e?e:Ls}function An(e,t){ce.call(this),this.type=\"Light\",this.color=new Y(e),this.intensity=void 0!==t?t:1,this.receiveShadow=void 0}function Rn(e,t,n){An.call(this,e,n),this.type=\"HemisphereLight\",this.castShadow=void 0,this.position.copy(ce.DefaultUp),this.updateMatrix(),this.groundColor=new Y(t)}function Ln(e){this.camera=e,this.bias=0,this.radius=1,this.mapSize=new r(512,512),this.map=null,this.matrix=new d}function In(){Ln.call(this,new Ne(50,1,.5,500))}function Dn(e,t,n,i,r,o){An.call(this,e,t),this.type=\"SpotLight\",this.position.copy(ce.DefaultUp),this.updateMatrix(),this.target=new ce,Object.defineProperty(this,\"power\",{get:function(){return this.intensity*Math.PI},set:function(e){this.intensity=e/Math.PI}}),this.distance=void 0!==n?n:0,this.angle=void 0!==i?i:Math.PI/3,this.penumbra=void 0!==r?r:0,this.decay=void 0!==o?o:1,this.shadow=new In}function Nn(e,t,n,i){An.call(this,e,t),this.type=\"PointLight\",Object.defineProperty(this,\"power\",{get:function(){return 4*this.intensity*Math.PI},set:function(e){this.intensity=e/(4*Math.PI)}}),this.distance=void 0!==n?n:0,this.decay=void 0!==i?i:1,this.shadow=new Ln(new Ne(90,1,.5,500))}function Bn(){Ln.call(this,new Be(-5,5,5,-5,.5,500))}function zn(e,t){An.call(this,e,t),this.type=\"DirectionalLight\",this.position.copy(ce.DefaultUp),this.updateMatrix(),this.target=new ce,this.shadow=new Bn}function Fn(e,t){An.call(this,e,t),this.type=\"AmbientLight\",this.castShadow=void 0}function jn(e,t,n,i){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new t.constructor(n),this.sampleValues=t,this.valueSize=n}function Un(e,t,n,i){jn.call(this,e,t,n,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0}function Wn(e,t,n,i){jn.call(this,e,t,n,i)}function Gn(e,t,n,i){jn.call(this,e,t,n,i)}function Vn(e,t,n,i){if(void 0===e)throw new Error(\"track name is undefined\");if(void 0===t||0===t.length)throw new Error(\"no keyframes in track named \"+e);this.name=e,this.times=Is.convertArray(t,this.TimeBufferType),this.values=Is.convertArray(n,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation),this.validate(),this.optimize()}function Hn(e,t,n,i){Vn.call(this,e,t,n,i)}function qn(e,t,n,i){jn.call(this,e,t,n,i)}function Yn(e,t,n,i){Vn.call(this,e,t,n,i)}function Xn(e,t,n,i){Vn.call(this,e,t,n,i)}function Kn(e,t,n,i){Vn.call(this,e,t,n,i)}function Zn(e,t,n){Vn.call(this,e,t,n)}function Jn(e,t,n,i){Vn.call(this,e,t,n,i)}function Qn(e,t,n,i){Vn.apply(this,arguments)}function $n(e,t,n){this.name=e,this.tracks=n,this.duration=void 0!==t?t:-1,this.uuid=fs.generateUUID(),this.duration<0&&this.resetDuration(),this.optimize()}function ei(e){this.manager=void 0!==e?e:Ls,this.textures={}}function ti(e){this.manager=void 0!==e?e:Ls}function ni(){this.onLoadStart=function(){},this.onLoadProgress=function(){},this.onLoadComplete=function(){}}function ii(e){\"boolean\"==typeof e&&(console.warn(\"THREE.JSONLoader: showStatus parameter has been removed from constructor.\"),e=void 0),this.manager=void 0!==e?e:Ls,this.withCredentials=!1}function ri(e){this.manager=void 0!==e?e:Ls,this.texturePath=\"\"}function oi(e,t,n,i,r){var o=.5*(i-t),a=.5*(r-n),s=e*e;return(2*n-2*i+o+a)*(e*s)+(-3*n+3*i-2*o-a)*s+o*e+n}function ai(e,t){var n=1-e;return n*n*t}function si(e,t){return 2*(1-e)*e*t}function li(e,t){return e*e*t}function ui(e,t,n,i){return ai(e,t)+si(e,n)+li(e,i)}function ci(e,t){var n=1-e;return n*n*n*t}function di(e,t){var n=1-e;return 3*n*n*e*t}function hi(e,t){return 3*(1-e)*e*e*t}function fi(e,t){return e*e*e*t}function pi(e,t,n,i,r){return ci(e,t)+di(e,n)+hi(e,i)+fi(e,r)}function mi(){}function gi(e,t){this.v1=e,this.v2=t}function vi(){this.curves=[],this.autoClose=!1}function yi(e,t,n,i,r,o,a,s){this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=i,this.aStartAngle=r,this.aEndAngle=o,this.aClockwise=a,this.aRotation=s||0}function bi(e){this.points=void 0===e?[]:e}function _i(e,t,n,i){this.v0=e,this.v1=t,this.v2=n,this.v3=i}function xi(e,t,n){this.v0=e,this.v1=t,this.v2=n}function wi(e){vi.call(this),this.currentPoint=new r,e&&this.fromPoints(e)}function Mi(){wi.apply(this,arguments),this.holes=[]}function Si(){this.subPaths=[],this.currentPath=null}function Ei(e){this.data=e}function Ti(e){this.manager=void 0!==e?e:Ls}function ki(e){this.manager=void 0!==e?e:Ls}function Oi(e,t,n,i){An.call(this,e,t),this.type=\"RectAreaLight\",this.position.set(0,1,0),this.updateMatrix(),this.width=void 0!==n?n:10,this.height=void 0!==i?i:10}function Ci(){this.type=\"StereoCamera\",this.aspect=1,this.eyeSep=.064,this.cameraL=new Ne,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Ne,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1}function Pi(e,t,n){ce.call(this),this.type=\"CubeCamera\";var i=new Ne(90,1,e,t);i.up.set(0,-1,0),i.lookAt(new c(1,0,0)),this.add(i);var r=new Ne(90,1,e,t);r.up.set(0,-1,0),r.lookAt(new c(-1,0,0)),this.add(r);var o=new Ne(90,1,e,t);o.up.set(0,0,1),o.lookAt(new c(0,1,0)),this.add(o);var a=new Ne(90,1,e,t);a.up.set(0,0,-1),a.lookAt(new c(0,-1,0)),this.add(a);var s=new Ne(90,1,e,t);s.up.set(0,-1,0),s.lookAt(new c(0,0,1)),this.add(s);var u=new Ne(90,1,e,t);u.up.set(0,-1,0),u.lookAt(new c(0,0,-1)),this.add(u);var d={format:Ca,magFilter:fa,minFilter:fa};this.renderTarget=new l(n,n,d),this.updateCubeMap=function(e,t){null===this.parent&&this.updateMatrixWorld();var n=this.renderTarget,l=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,n.activeCubeFace=0,e.render(t,i,n),n.activeCubeFace=1,e.render(t,r,n),n.activeCubeFace=2,e.render(t,o,n),n.activeCubeFace=3,e.render(t,a,n),n.activeCubeFace=4,e.render(t,s,n),n.texture.generateMipmaps=l,n.activeCubeFace=5,e.render(t,u,n),e.setRenderTarget(null)}}function Ai(){ce.call(this),this.type=\"AudioListener\",this.context=zs.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null}function Ri(e){ce.call(this),this.type=\"Audio\",this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.loop=!1,this.startTime=0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.sourceType=\"empty\",this.filters=[]}function Li(e){Ri.call(this,e),this.panner=this.context.createPanner(),this.panner.connect(this.gain)}function Ii(e,t){this.analyser=e.context.createAnalyser(),this.analyser.fftSize=void 0!==t?t:2048,this.data=new Uint8Array(this.analyser.frequencyBinCount),e.getOutput().connect(this.analyser)}function Di(e,t,n){this.binding=e,this.valueSize=n;var i,r=Float64Array;switch(t){case\"quaternion\":i=this._slerp;break;case\"string\":case\"bool\":r=Array,i=this._select;break;default:i=this._lerp}this.buffer=new r(4*n),this._mixBufferRegion=i,this.cumulativeWeight=0,this.useCount=0,this.referenceCount=0}function Ni(e,t,n){this.path=t,this.parsedPath=n||Ni.parseTrackName(t),this.node=Ni.findNode(e,this.parsedPath.nodeName)||e,this.rootNode=e}function Bi(e){this.uuid=fs.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var t={};this._indicesByUUID=t;for(var n=0,i=arguments.length;n!==i;++n)t[arguments[n].uuid]=n;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};var r=this;this.stats={objects:{get total(){return r._objects.length},get inUse(){return this.total-r.nCachedObjects_}},get bindingsPerObject(){return r._bindings.length}}}function zi(e,t,n){this._mixer=e,this._clip=t,this._localRoot=n||null;for(var i=t.tracks,r=i.length,o=new Array(r),a={endingStart:Ja,endingEnd:Ja},s=0;s!==r;++s){var l=i[s].createInterpolant(null);o[s]=l,l.settings=a}this._interpolantSettings=a,this._interpolants=o,this._propertyBindings=new Array(r),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=qa,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}function Fi(e){this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}function ji(e){\"string\"==typeof e&&(console.warn(\"THREE.Uniform: Type parameter is no longer needed.\"),e=arguments[1]),this.value=e}function Ui(){Ce.call(this),this.type=\"InstancedBufferGeometry\",this.maxInstancedCount=void 0}function Wi(e,t,n,i){this.uuid=fs.generateUUID(),this.data=e,this.itemSize=t,this.offset=n,this.normalized=!0===i}function Gi(e,t){this.uuid=fs.generateUUID(),this.array=e,this.stride=t,this.count=void 0!==e?e.length/t:0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.onUploadCallback=function(){},this.version=0}function Vi(e,t,n){Gi.call(this,e,t),this.meshPerAttribute=n||1}function Hi(e,t,n){me.call(this,e,t),this.meshPerAttribute=n||1}function qi(e,t,n,i){this.ray=new se(e,t),this.near=n||0,this.far=i||1/0,this.params={Mesh:{},Line:{},LOD:{},Points:{threshold:1},Sprite:{}},Object.defineProperties(this.params,{PointCloud:{get:function(){return console.warn(\"THREE.Raycaster: params.PointCloud has been renamed to params.Points.\"),this.Points}}})}function Yi(e,t){return e.distance-t.distance}function Xi(e,t,n,i){if(!1!==e.visible&&(e.raycast(t,n),!0===i))for(var r=e.children,o=0,a=r.length;o0?1:+e}),void 0===Function.prototype.name&&Object.defineProperty(Function.prototype,\"name\",{get:function(){return this.toString().match(/^\\s*function\\s*([^\\(\\s]*)/)[1]}}),void 0===Object.assign&&function(){Object.assign=function(e){if(void 0===e||null===e)throw new TypeError(\"Cannot convert undefined or null to object\");for(var t=Object(e),n=1;n>=4,n[r]=t[19===r?3&e|8:e]);return n.join(\"\")}}(),clamp:function(e,t,n){return Math.max(t,Math.min(n,e))},euclideanModulo:function(e,t){return(e%t+t)%t},mapLinear:function(e,t,n,i,r){return i+(e-t)*(r-i)/(n-t)},lerp:function(e,t,n){return(1-n)*e+n*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())},degToRad:function(e){return e*fs.DEG2RAD},radToDeg:function(e){return e*fs.RAD2DEG},isPowerOfTwo:function(e){return 0==(e&e-1)&&0!==e},nearestPowerOfTwo:function(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))},nextPowerOfTwo:function(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e}};r.prototype={constructor:r,isVector2:!0,get width(){return this.x},set width(e){this.x=e},get height(){return this.y},set height(e){this.y=e},set:function(e,t){return this.x=e,this.y=t,this},setScalar:function(e){return this.x=e,this.y=e,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setComponent:function(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:function(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error(\"index is out of range: \"+e)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(e){return this.x=e.x,this.y=e.y,this},add:function(e,t){return void 0!==t?(console.warn(\"THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead.\"),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this)},addScalar:function(e){return this.x+=e,this.y+=e,this},addVectors:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this},addScaledVector:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this},sub:function(e,t){return void 0!==t?(console.warn(\"THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.\"),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this)},subScalar:function(e){return this.x-=e,this.y-=e,this},subVectors:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this},multiply:function(e){return this.x*=e.x,this.y*=e.y,this},multiplyScalar:function(e){return isFinite(e)?(this.x*=e,this.y*=e):(this.x=0,this.y=0),this},divide:function(e){return this.x/=e.x,this.y/=e.y,this},divideScalar:function(e){return this.multiplyScalar(1/e)},min:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this},max:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this},clamp:function(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:function(){var e,t;return function(n,i){return void 0===e&&(e=new r,t=new r),e.set(n,n),t.set(i,i),this.clamp(e,t)}}(),clampLength:function(e,t){var n=this.length();return this.multiplyScalar(Math.max(e,Math.min(t,n))/n)},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(e){return this.x*e.x+this.y*e.y},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length())},angle:function(){var e=Math.atan2(this.y,this.x);return e<0&&(e+=2*Math.PI),e},distanceTo:function(e){return Math.sqrt(this.distanceToSquared(e))},distanceToSquared:function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},distanceToManhattan:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)},setLength:function(e){return this.multiplyScalar(e/this.length())},lerp:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this},lerpVectors:function(e,t,n){return this.subVectors(t,e).multiplyScalar(n).add(e)},equals:function(e){return e.x===this.x&&e.y===this.y},fromArray:function(e,t){return void 0===t&&(t=0),this.x=e[t],this.y=e[t+1],this},toArray:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this.x,e[t+1]=this.y,e},fromBufferAttribute:function(e,t,n){return void 0!==n&&console.warn(\"THREE.Vector2: offset has been removed from .fromBufferAttribute().\"),this.x=e.getX(t),this.y=e.getY(t),this},rotateAround:function(e,t){var n=Math.cos(t),i=Math.sin(t),r=this.x-e.x,o=this.y-e.y;return this.x=r*n-o*i+e.x,this.y=r*i+o*n+e.y,this}};var ps=0;o.DEFAULT_IMAGE=void 0,o.DEFAULT_MAPPING=$o,o.prototype={constructor:o,isTexture:!0,set needsUpdate(e){!0===e&&this.version++},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.image=e.image,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.encoding=e.encoding,this},toJSON:function(e){if(void 0!==e.textures[this.uuid])return e.textures[this.uuid];var t={metadata:{version:4.4,type:\"Texture\",generator:\"Texture.toJSON\"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],wrap:[this.wrapS,this.wrapT],minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY};if(void 0!==this.image){var n=this.image;void 0===n.uuid&&(n.uuid=fs.generateUUID()),void 0===e.images[n.uuid]&&(e.images[n.uuid]={uuid:n.uuid,url:function(e){var t;return void 0!==e.toDataURL?t=e:(t=document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\"),t.width=e.width,t.height=e.height,t.getContext(\"2d\").drawImage(e,0,0,e.width,e.height)),t.width>2048||t.height>2048?t.toDataURL(\"image/jpeg\",.6):t.toDataURL(\"image/png\")}(n)}),t.image=n.uuid}return e.textures[this.uuid]=t,t},dispose:function(){this.dispatchEvent({type:\"dispose\"})},transformUv:function(e){if(this.mapping===$o){if(e.multiply(this.repeat),e.add(this.offset),e.x<0||e.x>1)switch(this.wrapS){case sa:e.x=e.x-Math.floor(e.x);break;case la:e.x=e.x<0?0:1;break;case ua: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 sa:e.y=e.y-Math.floor(e.y);break;case la:e.y=e.y<0?0:1;break;case ua:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}this.flipY&&(e.y=1-e.y)}}},Object.assign(o.prototype,i.prototype),a.prototype={constructor:a,isVector4:!0,set:function(e,t,n,i){return this.x=e,this.y=t,this.z=n,this.w=i,this},setScalar:function(e){return this.x=e,this.y=e,this.z=e,this.w=e,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setZ:function(e){return this.z=e,this},setW:function(e){return this.w=e,this},setComponent:function(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:function(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:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(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:function(e,t){return void 0!==t?(console.warn(\"THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead.\"),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this)},addScalar:function(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this},addVectors:function(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:function(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:function(e,t){return void 0!==t?(console.warn(\"THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.\"),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this)},subScalar:function(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this},subVectors:function(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},multiplyScalar:function(e){return isFinite(e)?(this.x*=e,this.y*=e,this.z*=e,this.w*=e):(this.x=0,this.y=0,this.z=0,this.w=0),this},applyMatrix4:function(e){var t=this.x,n=this.y,i=this.z,r=this.w,o=e.elements;return this.x=o[0]*t+o[4]*n+o[8]*i+o[12]*r,this.y=o[1]*t+o[5]*n+o[9]*i+o[13]*r,this.z=o[2]*t+o[6]*n+o[10]*i+o[14]*r,this.w=o[3]*t+o[7]*n+o[11]*i+o[15]*r,this},divideScalar:function(e){return this.multiplyScalar(1/e)},setAxisAngleFromQuaternion:function(e){this.w=2*Math.acos(e.w);var 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:function(e){var t,n,i,r,o=e.elements,a=o[0],s=o[4],l=o[8],u=o[1],c=o[5],d=o[9],h=o[2],f=o[6],p=o[10];if(Math.abs(s-u)<.01&&Math.abs(l-h)<.01&&Math.abs(d-f)<.01){if(Math.abs(s+u)<.1&&Math.abs(l+h)<.1&&Math.abs(d+f)<.1&&Math.abs(a+c+p-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;var m=(a+1)/2,g=(c+1)/2,v=(p+1)/2,y=(s+u)/4,b=(l+h)/4,_=(d+f)/4;return m>g&&m>v?m<.01?(n=0,i=.707106781,r=.707106781):(n=Math.sqrt(m),i=y/n,r=b/n):g>v?g<.01?(n=.707106781,i=0,r=.707106781):(i=Math.sqrt(g),n=y/i,r=_/i):v<.01?(n=.707106781,i=.707106781,r=0):(r=Math.sqrt(v),n=b/r,i=_/r),this.set(n,i,r,t),this}var x=Math.sqrt((f-d)*(f-d)+(l-h)*(l-h)+(u-s)*(u-s));return Math.abs(x)<.001&&(x=1),this.x=(f-d)/x,this.y=(l-h)/x,this.z=(u-s)/x,this.w=Math.acos((a+c+p-1)/2),this},min:function(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.w=Math.min(this.w,e.w),this},max:function(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.w=Math.max(this.w,e.w),this},clamp:function(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.w=Math.max(e.w,Math.min(t.w,this.w)),this},clampScalar:function(){var e,t;return function(n,i){return void 0===e&&(e=new a,t=new a),e.set(n,n,n,n),t.set(i,i,i,i),this.clamp(e,t)}}(),floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},dot:function(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)},normalize:function(){return this.divideScalar(this.length())},setLength:function(e){return this.multiplyScalar(e/this.length())},lerp:function(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.w+=(e.w-this.w)*t,this},lerpVectors:function(e,t,n){return this.subVectors(t,e).multiplyScalar(n).add(e)},equals:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w},fromArray:function(e,t){return void 0===t&&(t=0),this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this},toArray:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e},fromBufferAttribute:function(e,t,n){return void 0!==n&&console.warn(\"THREE.Vector4: offset has been removed from .fromBufferAttribute().\"),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}},s.prototype={constructor:s,isWebGLRenderTarget:!0,setSize:function(e,t){this.width===e&&this.height===t||(this.width=e,this.height=t,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.width=e.width,this.height=e.height,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.depthTexture=e.depthTexture,this},dispose:function(){this.dispatchEvent({type:\"dispose\"})}},Object.assign(s.prototype,i.prototype),l.prototype=Object.create(s.prototype),l.prototype.constructor=l,l.prototype.isWebGLRenderTargetCube=!0,u.prototype={constructor:u,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:function(e,t,n,i){return this._x=e,this._y=t,this._z=n,this._w=i,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._w)},copy:function(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this.onChangeCallback(),this},setFromEuler:function(e,t){if(!1===(e&&e.isEuler))throw new Error(\"THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.\");var n=Math.cos(e._x/2),i=Math.cos(e._y/2),r=Math.cos(e._z/2),o=Math.sin(e._x/2),a=Math.sin(e._y/2),s=Math.sin(e._z/2),l=e.order;return\"XYZ\"===l?(this._x=o*i*r+n*a*s,this._y=n*a*r-o*i*s,this._z=n*i*s+o*a*r,this._w=n*i*r-o*a*s):\"YXZ\"===l?(this._x=o*i*r+n*a*s,this._y=n*a*r-o*i*s,this._z=n*i*s-o*a*r,this._w=n*i*r+o*a*s):\"ZXY\"===l?(this._x=o*i*r-n*a*s,this._y=n*a*r+o*i*s,this._z=n*i*s+o*a*r,this._w=n*i*r-o*a*s):\"ZYX\"===l?(this._x=o*i*r-n*a*s,this._y=n*a*r+o*i*s,this._z=n*i*s-o*a*r,this._w=n*i*r+o*a*s):\"YZX\"===l?(this._x=o*i*r+n*a*s,this._y=n*a*r+o*i*s,this._z=n*i*s-o*a*r,this._w=n*i*r-o*a*s):\"XZY\"===l&&(this._x=o*i*r-n*a*s,this._y=n*a*r-o*i*s,this._z=n*i*s+o*a*r,this._w=n*i*r+o*a*s),!1!==t&&this.onChangeCallback(),this},setFromAxisAngle:function(e,t){var n=t/2,i=Math.sin(n);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(n),this.onChangeCallback(),this},setFromRotationMatrix:function(e){var t,n=e.elements,i=n[0],r=n[4],o=n[8],a=n[1],s=n[5],l=n[9],u=n[2],c=n[6],d=n[10],h=i+s+d;return h>0?(t=.5/Math.sqrt(h+1),this._w=.25/t,this._x=(c-l)*t,this._y=(o-u)*t,this._z=(a-r)*t):i>s&&i>d?(t=2*Math.sqrt(1+i-s-d),this._w=(c-l)/t,this._x=.25*t,this._y=(r+a)/t,this._z=(o+u)/t):s>d?(t=2*Math.sqrt(1+s-i-d),this._w=(o-u)/t,this._x=(r+a)/t,this._y=.25*t,this._z=(l+c)/t):(t=2*Math.sqrt(1+d-i-s),this._w=(a-r)/t,this._x=(o+u)/t,this._y=(l+c)/t,this._z=.25*t),this.onChangeCallback(),this},setFromUnitVectors:function(){var e,t;return function(n,i){return void 0===e&&(e=new c),t=n.dot(i)+1,t<1e-6?(t=0,Math.abs(n.x)>Math.abs(n.z)?e.set(-n.y,n.x,0):e.set(0,-n.z,n.y)):e.crossVectors(n,i),this._x=e.x,this._y=e.y,this._z=e.z,this._w=t,this.normalize()}}(),inverse:function(){return this.conjugate().normalize()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this.onChangeCallback(),this},dot:function(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var 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:function(e,t){return void 0!==t?(console.warn(\"THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead.\"),this.multiplyQuaternions(e,t)):this.multiplyQuaternions(this,e)},premultiply:function(e){return this.multiplyQuaternions(e,this)},multiplyQuaternions:function(e,t){var n=e._x,i=e._y,r=e._z,o=e._w,a=t._x,s=t._y,l=t._z,u=t._w;return this._x=n*u+o*a+i*l-r*s,this._y=i*u+o*s+r*a-n*l,this._z=r*u+o*l+n*s-i*a,this._w=o*u-n*a-i*s-r*l,this.onChangeCallback(),this},slerp:function(e,t){if(0===t)return this;if(1===t)return this.copy(e);var n=this._x,i=this._y,r=this._z,o=this._w,a=o*e._w+n*e._x+i*e._y+r*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=n,this._y=i,this._z=r,this;var s=Math.sqrt(1-a*a);if(Math.abs(s)<.001)return this._w=.5*(o+this._w),this._x=.5*(n+this._x),this._y=.5*(i+this._y),this._z=.5*(r+this._z),this;var l=Math.atan2(s,a),u=Math.sin((1-t)*l)/s,c=Math.sin(t*l)/s;return this._w=o*u+this._w*c,this._x=n*u+this._x*c,this._y=i*u+this._y*c,this._z=r*u+this._z*c,this.onChangeCallback(),this},equals:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w},fromArray:function(e,t){return void 0===t&&(t=0),this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this.onChangeCallback(),this},toArray:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e},onChange:function(e){return this.onChangeCallback=e,this},onChangeCallback:function(){}},Object.assign(u,{slerp:function(e,t,n,i){return n.copy(e).slerp(t,i)},slerpFlat:function(e,t,n,i,r,o,a){var s=n[i+0],l=n[i+1],u=n[i+2],c=n[i+3],d=r[o+0],h=r[o+1],f=r[o+2],p=r[o+3];if(c!==p||s!==d||l!==h||u!==f){var m=1-a,g=s*d+l*h+u*f+c*p,v=g>=0?1:-1,y=1-g*g;if(y>Number.EPSILON){var b=Math.sqrt(y),_=Math.atan2(b,g*v);m=Math.sin(m*_)/b,a=Math.sin(a*_)/b}var x=a*v;if(s=s*m+d*x,l=l*m+h*x,u=u*m+f*x,c=c*m+p*x,m===1-a){var w=1/Math.sqrt(s*s+l*l+u*u+c*c);s*=w,l*=w,u*=w,c*=w}}e[t]=s,e[t+1]=l,e[t+2]=u,e[t+3]=c}}),c.prototype={constructor:c,isVector3:!0,set:function(e,t,n){return this.x=e,this.y=t,this.z=n,this},setScalar:function(e){return this.x=e,this.y=e,this.z=e,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setZ:function(e){return this.z=e,this},setComponent:function(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:function(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:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this},add:function(e,t){return void 0!==t?(console.warn(\"THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead.\"),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this)},addScalar:function(e){return this.x+=e,this.y+=e,this.z+=e,this},addVectors:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this},addScaledVector:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this},sub:function(e,t){return void 0!==t?(console.warn(\"THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.\"),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this)},subScalar:function(e){return this.x-=e,this.y-=e,this.z-=e,this},subVectors:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this},multiply:function(e,t){return void 0!==t?(console.warn(\"THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead.\"),this.multiplyVectors(e,t)):(this.x*=e.x,this.y*=e.y,this.z*=e.z,this)},multiplyScalar:function(e){return isFinite(e)?(this.x*=e,this.y*=e,this.z*=e):(this.x=0,this.y=0,this.z=0),this},multiplyVectors:function(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this},applyEuler:function(){var e;return function(t){return!1===(t&&t.isEuler)&&console.error(\"THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order.\"),void 0===e&&(e=new u),this.applyQuaternion(e.setFromEuler(t))}}(),applyAxisAngle:function(){var e;return function(t,n){return void 0===e&&(e=new u),this.applyQuaternion(e.setFromAxisAngle(t,n))}}(),applyMatrix3:function(e){var t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6]*i,this.y=r[1]*t+r[4]*n+r[7]*i,this.z=r[2]*t+r[5]*n+r[8]*i,this},applyMatrix4:function(e){var t=this.x,n=this.y,i=this.z,r=e.elements;this.x=r[0]*t+r[4]*n+r[8]*i+r[12],this.y=r[1]*t+r[5]*n+r[9]*i+r[13],this.z=r[2]*t+r[6]*n+r[10]*i+r[14];var o=r[3]*t+r[7]*n+r[11]*i+r[15];return this.divideScalar(o)},applyQuaternion:function(e){var t=this.x,n=this.y,i=this.z,r=e.x,o=e.y,a=e.z,s=e.w,l=s*t+o*i-a*n,u=s*n+a*t-r*i,c=s*i+r*n-o*t,d=-r*t-o*n-a*i;return this.x=l*s+d*-r+u*-a-c*-o,this.y=u*s+d*-o+c*-r-l*-a,this.z=c*s+d*-a+l*-o-u*-r,this},project:function(){var e;return function(t){return void 0===e&&(e=new d),e.multiplyMatrices(t.projectionMatrix,e.getInverse(t.matrixWorld)),this.applyMatrix4(e)}}(),unproject:function(){var e;return function(t){return void 0===e&&(e=new d),e.multiplyMatrices(t.matrixWorld,e.getInverse(t.projectionMatrix)),this.applyMatrix4(e)}}(),transformDirection:function(e){var t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[4]*n+r[8]*i,this.y=r[1]*t+r[5]*n+r[9]*i,this.z=r[2]*t+r[6]*n+r[10]*i,this.normalize()},divide:function(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this},divideScalar:function(e){return this.multiplyScalar(1/e)},min:function(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:function(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:function(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:function(){var e,t;return function(n,i){return void 0===e&&(e=new c,t=new c),e.set(n,n,n),t.set(i,i,i),this.clamp(e,t)}}(),clampLength:function(e,t){var n=this.length();return this.multiplyScalar(Math.max(e,Math.min(t,n))/n)},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},dot:function(e){return this.x*e.x+this.y*e.y+this.z*e.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length())},setLength:function(e){return this.multiplyScalar(e/this.length())},lerp:function(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:function(e,t,n){return this.subVectors(t,e).multiplyScalar(n).add(e)},cross:function(e,t){if(void 0!==t)return console.warn(\"THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead.\"),this.crossVectors(e,t);var n=this.x,i=this.y,r=this.z;return this.x=i*e.z-r*e.y,this.y=r*e.x-n*e.z,this.z=n*e.y-i*e.x,this},crossVectors:function(e,t){var n=e.x,i=e.y,r=e.z,o=t.x,a=t.y,s=t.z;return this.x=i*s-r*a,this.y=r*o-n*s,this.z=n*a-i*o,this},projectOnVector:function(e){var t=e.dot(this)/e.lengthSq();return this.copy(e).multiplyScalar(t)},projectOnPlane:function(){var e;return function(t){return void 0===e&&(e=new c),e.copy(this).projectOnVector(t),this.sub(e)}}(),reflect:function(){var e;return function(t){return void 0===e&&(e=new c),this.sub(e.copy(t).multiplyScalar(2*this.dot(t)))}}(),angleTo:function(e){var t=this.dot(e)/Math.sqrt(this.lengthSq()*e.lengthSq());return Math.acos(fs.clamp(t,-1,1))},distanceTo:function(e){return Math.sqrt(this.distanceToSquared(e))},distanceToSquared:function(e){var t=this.x-e.x,n=this.y-e.y,i=this.z-e.z;return t*t+n*n+i*i},distanceToManhattan:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)},setFromSpherical:function(e){var t=Math.sin(e.phi)*e.radius;return this.x=t*Math.sin(e.theta),this.y=Math.cos(e.phi)*e.radius,this.z=t*Math.cos(e.theta),this},setFromCylindrical:function(e){return this.x=e.radius*Math.sin(e.theta),this.y=e.y,this.z=e.radius*Math.cos(e.theta),this},setFromMatrixPosition:function(e){return this.setFromMatrixColumn(e,3)},setFromMatrixScale:function(e){var t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=i,this},setFromMatrixColumn:function(e,t){if(\"number\"==typeof e){console.warn(\"THREE.Vector3: setFromMatrixColumn now expects ( matrix, index ).\");var n=e;e=t,t=n}return this.fromArray(e.elements,4*t)},equals:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z},fromArray:function(e,t){return void 0===t&&(t=0),this.x=e[t],this.y=e[t+1],this.z=e[t+2],this},toArray:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e},fromBufferAttribute:function(e,t,n){return void 0!==n&&console.warn(\"THREE.Vector3: offset has been removed from .fromBufferAttribute().\"),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}},d.prototype={constructor:d,isMatrix4:!0,set:function(e,t,n,i,r,o,a,s,l,u,c,d,h,f,p,m){var g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=i,g[1]=r,g[5]=o,g[9]=a,g[13]=s,g[2]=l,g[6]=u,g[10]=c,g[14]=d,g[3]=h,g[7]=f,g[11]=p,g[15]=m,this},identity:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this},clone:function(){return(new d).fromArray(this.elements)},copy:function(e){return this.elements.set(e.elements),this},copyPosition:function(e){var t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this},extractBasis:function(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this},makeBasis:function(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:function(){var e;return function(t){void 0===e&&(e=new c);var n=this.elements,i=t.elements,r=1/e.setFromMatrixColumn(t,0).length(),o=1/e.setFromMatrixColumn(t,1).length(),a=1/e.setFromMatrixColumn(t,2).length();return n[0]=i[0]*r,n[1]=i[1]*r,n[2]=i[2]*r,n[4]=i[4]*o,n[5]=i[5]*o,n[6]=i[6]*o,n[8]=i[8]*a,n[9]=i[9]*a,n[10]=i[10]*a,this}}(),makeRotationFromEuler:function(e){!1===(e&&e.isEuler)&&console.error(\"THREE.Matrix: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.\");var t=this.elements,n=e.x,i=e.y,r=e.z,o=Math.cos(n),a=Math.sin(n),s=Math.cos(i),l=Math.sin(i),u=Math.cos(r),c=Math.sin(r);if(\"XYZ\"===e.order){var d=o*u,h=o*c,f=a*u,p=a*c;t[0]=s*u,t[4]=-s*c,t[8]=l,t[1]=h+f*l,t[5]=d-p*l,t[9]=-a*s,t[2]=p-d*l,t[6]=f+h*l,t[10]=o*s}else if(\"YXZ\"===e.order){var m=s*u,g=s*c,v=l*u,y=l*c;t[0]=m+y*a,t[4]=v*a-g,t[8]=o*l,t[1]=o*c,t[5]=o*u,t[9]=-a,t[2]=g*a-v,t[6]=y+m*a,t[10]=o*s}else if(\"ZXY\"===e.order){var m=s*u,g=s*c,v=l*u,y=l*c;t[0]=m-y*a,t[4]=-o*c,t[8]=v+g*a,t[1]=g+v*a,t[5]=o*u,t[9]=y-m*a,t[2]=-o*l,t[6]=a,t[10]=o*s}else if(\"ZYX\"===e.order){var d=o*u,h=o*c,f=a*u,p=a*c;t[0]=s*u,t[4]=f*l-h,t[8]=d*l+p,t[1]=s*c,t[5]=p*l+d,t[9]=h*l-f,t[2]=-l,t[6]=a*s,t[10]=o*s}else if(\"YZX\"===e.order){var b=o*s,_=o*l,x=a*s,w=a*l;t[0]=s*u,t[4]=w-b*c,t[8]=x*c+_,t[1]=c,t[5]=o*u,t[9]=-a*u,t[2]=-l*u,t[6]=_*c+x,t[10]=b-w*c}else if(\"XZY\"===e.order){var b=o*s,_=o*l,x=a*s,w=a*l;t[0]=s*u,t[4]=-c,t[8]=l*u,t[1]=b*c+w,t[5]=o*u,t[9]=_*c-x,t[2]=x*c-_,t[6]=a*u,t[10]=w*c+b}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},makeRotationFromQuaternion:function(e){var t=this.elements,n=e.x,i=e.y,r=e.z,o=e.w,a=n+n,s=i+i,l=r+r,u=n*a,c=n*s,d=n*l,h=i*s,f=i*l,p=r*l,m=o*a,g=o*s,v=o*l;return t[0]=1-(h+p),t[4]=c-v,t[8]=d+g,t[1]=c+v,t[5]=1-(u+p),t[9]=f-m,t[2]=d-g,t[6]=f+m,t[10]=1-(u+h),t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},lookAt:function(){var e,t,n;return function(i,r,o){void 0===e&&(e=new c,t=new c,n=new c);var a=this.elements;return n.subVectors(i,r).normalize(),0===n.lengthSq()&&(n.z=1),e.crossVectors(o,n).normalize(),0===e.lengthSq()&&(n.z+=1e-4,e.crossVectors(o,n).normalize()),t.crossVectors(n,e),a[0]=e.x,a[4]=t.x,a[8]=n.x,a[1]=e.y,a[5]=t.y,a[9]=n.y,a[2]=e.z,a[6]=t.z,a[10]=n.z,this}}(),multiply:function(e,t){return void 0!==t?(console.warn(\"THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead.\"),this.multiplyMatrices(e,t)):this.multiplyMatrices(this,e)},premultiply:function(e){return this.multiplyMatrices(e,this)},multiplyMatrices:function(e,t){var n=e.elements,i=t.elements,r=this.elements,o=n[0],a=n[4],s=n[8],l=n[12],u=n[1],c=n[5],d=n[9],h=n[13],f=n[2],p=n[6],m=n[10],g=n[14],v=n[3],y=n[7],b=n[11],_=n[15],x=i[0],w=i[4],M=i[8],S=i[12],E=i[1],T=i[5],k=i[9],O=i[13],C=i[2],P=i[6],A=i[10],R=i[14],L=i[3],I=i[7],D=i[11],N=i[15];return r[0]=o*x+a*E+s*C+l*L,r[4]=o*w+a*T+s*P+l*I,r[8]=o*M+a*k+s*A+l*D,r[12]=o*S+a*O+s*R+l*N,r[1]=u*x+c*E+d*C+h*L,r[5]=u*w+c*T+d*P+h*I,r[9]=u*M+c*k+d*A+h*D,r[13]=u*S+c*O+d*R+h*N,r[2]=f*x+p*E+m*C+g*L,r[6]=f*w+p*T+m*P+g*I,r[10]=f*M+p*k+m*A+g*D,r[14]=f*S+p*O+m*R+g*N,r[3]=v*x+y*E+b*C+_*L,r[7]=v*w+y*T+b*P+_*I,r[11]=v*M+y*k+b*A+_*D,r[15]=v*S+y*O+b*R+_*N,this},multiplyToArray:function(e,t,n){var i=this.elements;return this.multiplyMatrices(e,t),n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],n[9]=i[9],n[10]=i[10],n[11]=i[11],n[12]=i[12],n[13]=i[13],n[14]=i[14],n[15]=i[15],this},multiplyScalar:function(e){var 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},applyToBufferAttribute:function(){var e;return function(t){void 0===e&&(e=new c);for(var n=0,i=t.count;n 0.0 ) {\\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\\n\\t\\t\\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\\n\\t\\t\\tfloat maxDistanceCutoffFactor = pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\\n\\t\\t\\treturn distanceFalloff * maxDistanceCutoffFactor;\\n#else\\n\\t\\t\\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\\n#endif\\n\\t\\t}\\n\\t\\treturn 1.0;\\n}\\nvec3 BRDF_Diffuse_Lambert( const in vec3 diffuseColor ) {\\n\\treturn RECIPROCAL_PI * diffuseColor;\\n}\\nvec3 F_Schlick( const in vec3 specularColor, const in float dotLH ) {\\n\\tfloat fresnel = exp2( ( -5.55473 * dotLH - 6.98316 ) * dotLH );\\n\\treturn ( 1.0 - specularColor ) * fresnel + specularColor;\\n}\\nfloat G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {\\n\\tfloat a2 = pow2( alpha );\\n\\tfloat gl = dotNL + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\\n\\tfloat gv = dotNV + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\\n\\treturn 1.0 / ( gl * gv );\\n}\\nfloat G_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}\\nvec3 BRDF_Specular_GGX( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float roughness ) {\\n\\tfloat alpha = pow2( roughness );\\n\\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\\n\\tfloat dotNL = saturate( dot( geometry.normal, incidentLight.direction ) );\\n\\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\\n\\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\\n\\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\\n\\tvec3 F = F_Schlick( specularColor, dotLH );\\n\\tfloat G = G_GGX_SmithCorrelated( alpha, dotNL, dotNV );\\n\\tfloat D = D_GGX( alpha, dotNH );\\n\\treturn F * ( G * D );\\n}\\nvec2 ltcTextureCoords( const in GeometricContext geometry, 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\\tvec3 N = geometry.normal;\\n\\tvec3 V = geometry.viewDir;\\n\\tvec3 P = geometry.position;\\n\\tfloat theta = acos( dot( N, V ) );\\n\\tvec2 uv = vec2(\\n\\t\\tsqrt( saturate( roughness ) ),\\n\\t\\tsaturate( theta / ( 0.5 * PI ) ) );\\n\\tuv = uv * LUT_SCALE + LUT_BIAS;\\n\\treturn uv;\\n}\\nvoid clipQuadToHorizon( inout vec3 L[5], out int n ) {\\n\\tint config = 0;\\n\\tif ( L[0].z > 0.0 ) config += 1;\\n\\tif ( L[1].z > 0.0 ) config += 2;\\n\\tif ( L[2].z > 0.0 ) config += 4;\\n\\tif ( L[3].z > 0.0 ) config += 8;\\n\\tn = 0;\\n\\tif ( config == 0 ) {\\n\\t} else if ( config == 1 ) {\\n\\t\\tn = 3;\\n\\t\\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\\n\\t\\tL[2] = -L[3].z * L[0] + L[0].z * L[3];\\n\\t} else if ( config == 2 ) {\\n\\t\\tn = 3;\\n\\t\\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\\n\\t\\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\\n\\t} else if ( config == 3 ) {\\n\\t\\tn = 4;\\n\\t\\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\\n\\t\\tL[3] = -L[3].z * L[0] + L[0].z * L[3];\\n\\t} else if ( config == 4 ) {\\n\\t\\tn = 3;\\n\\t\\tL[0] = -L[3].z * L[2] + L[2].z * L[3];\\n\\t\\tL[1] = -L[1].z * L[2] + L[2].z * L[1];\\n\\t} else if ( config == 5 ) {\\n\\t\\tn = 0;\\n\\t} else if ( config == 6 ) {\\n\\t\\tn = 4;\\n\\t\\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\\n\\t\\tL[3] = -L[3].z * L[2] + L[2].z * L[3];\\n\\t} else if ( config == 7 ) {\\n\\t\\tn = 5;\\n\\t\\tL[4] = -L[3].z * L[0] + L[0].z * L[3];\\n\\t\\tL[3] = -L[3].z * L[2] + L[2].z * L[3];\\n\\t} else if ( config == 8 ) {\\n\\t\\tn = 3;\\n\\t\\tL[0] = -L[0].z * L[3] + L[3].z * L[0];\\n\\t\\tL[1] = -L[2].z * L[3] + L[3].z * L[2];\\n\\t\\tL[2] = L[3];\\n\\t} else if ( config == 9 ) {\\n\\t\\tn = 4;\\n\\t\\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\\n\\t\\tL[2] = -L[2].z * L[3] + L[3].z * L[2];\\n\\t} else if ( config == 10 ) {\\n\\t\\tn = 0;\\n\\t} else if ( config == 11 ) {\\n\\t\\tn = 5;\\n\\t\\tL[4] = L[3];\\n\\t\\tL[3] = -L[2].z * L[3] + L[3].z * L[2];\\n\\t\\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\\n\\t} else if ( config == 12 ) {\\n\\t\\tn = 4;\\n\\t\\tL[1] = -L[1].z * L[2] + L[2].z * L[1];\\n\\t\\tL[0] = -L[0].z * L[3] + L[3].z * L[0];\\n\\t} else if ( config == 13 ) {\\n\\t\\tn = 5;\\n\\t\\tL[4] = L[3];\\n\\t\\tL[3] = L[2];\\n\\t\\tL[2] = -L[1].z * L[2] + L[2].z * L[1];\\n\\t\\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\\n\\t} else if ( config == 14 ) {\\n\\t\\tn = 5;\\n\\t\\tL[4] = -L[0].z * L[3] + L[3].z * L[0];\\n\\t\\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\\n\\t} else if ( config == 15 ) {\\n\\t\\tn = 4;\\n\\t}\\n\\tif ( n == 3 )\\n\\t\\tL[3] = L[0];\\n\\tif ( n == 4 )\\n\\t\\tL[4] = L[0];\\n}\\nfloat integrateLtcBrdfOverRectEdge( vec3 v1, vec3 v2 ) {\\n\\tfloat cosTheta = dot( v1, v2 );\\n\\tfloat theta = acos( cosTheta );\\n\\tfloat res = cross( v1, v2 ).z * ( ( theta > 0.001 ) ? theta / sin( theta ) : 1.0 );\\n\\treturn res;\\n}\\nvoid initRectPoints( const in vec3 pos, const in vec3 halfWidth, const in vec3 halfHeight, out vec3 rectPoints[4] ) {\\n\\trectPoints[0] = pos - halfWidth - halfHeight;\\n\\trectPoints[1] = pos + halfWidth - halfHeight;\\n\\trectPoints[2] = pos + halfWidth + halfHeight;\\n\\trectPoints[3] = pos - halfWidth + halfHeight;\\n}\\nvec3 integrateLtcBrdfOverRect( const in GeometricContext geometry, const in mat3 brdfMat, const in vec3 rectPoints[4] ) {\\n\\tvec3 N = geometry.normal;\\n\\tvec3 V = geometry.viewDir;\\n\\tvec3 P = geometry.position;\\n\\tvec3 T1, T2;\\n\\tT1 = normalize(V - N * dot( V, N ));\\n\\tT2 = - cross( N, T1 );\\n\\tmat3 brdfWrtSurface = brdfMat * transpose( mat3( T1, T2, N ) );\\n\\tvec3 clippedRect[5];\\n\\tclippedRect[0] = brdfWrtSurface * ( rectPoints[0] - P );\\n\\tclippedRect[1] = brdfWrtSurface * ( rectPoints[1] - P );\\n\\tclippedRect[2] = brdfWrtSurface * ( rectPoints[2] - P );\\n\\tclippedRect[3] = brdfWrtSurface * ( rectPoints[3] - P );\\n\\tint n;\\n\\tclipQuadToHorizon(clippedRect, n);\\n\\tif ( n == 0 )\\n\\t\\treturn vec3( 0, 0, 0 );\\n\\tclippedRect[0] = normalize( clippedRect[0] );\\n\\tclippedRect[1] = normalize( clippedRect[1] );\\n\\tclippedRect[2] = normalize( clippedRect[2] );\\n\\tclippedRect[3] = normalize( clippedRect[3] );\\n\\tclippedRect[4] = normalize( clippedRect[4] );\\n\\tfloat sum = 0.0;\\n\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[0], clippedRect[1] );\\n\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[1], clippedRect[2] );\\n\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[2], clippedRect[3] );\\n\\tif (n >= 4)\\n\\t\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[3], clippedRect[4] );\\n\\tif (n == 5)\\n\\t\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[4], clippedRect[0] );\\n\\tsum = max( 0.0, sum );\\n\\tvec3 Lo_i = vec3( sum, sum, sum );\\n\\treturn Lo_i;\\n}\\nvec3 Rect_Area_Light_Specular_Reflectance(\\n\\t\\tconst in GeometricContext geometry,\\n\\t\\tconst in vec3 lightPos, const in vec3 lightHalfWidth, const in vec3 lightHalfHeight,\\n\\t\\tconst in float roughness,\\n\\t\\tconst in sampler2D ltcMat, const in sampler2D ltcMag ) {\\n\\tvec3 rectPoints[4];\\n\\tinitRectPoints( lightPos, lightHalfWidth, lightHalfHeight, rectPoints );\\n\\tvec2 uv = ltcTextureCoords( geometry, roughness );\\n\\tvec4 brdfLtcApproxParams, t;\\n\\tbrdfLtcApproxParams = texture2D( ltcMat, uv );\\n\\tt = texture2D( ltcMat, uv );\\n\\tfloat brdfLtcScalar = texture2D( ltcMag, uv ).a;\\n\\tmat3 brdfLtcApproxMat = mat3(\\n\\t\\tvec3( 1, 0, t.y ),\\n\\t\\tvec3( 0, t.z, 0 ),\\n\\t\\tvec3( t.w, 0, t.x )\\n\\t);\\n\\tvec3 specularReflectance = integrateLtcBrdfOverRect( geometry, brdfLtcApproxMat, rectPoints );\\n\\tspecularReflectance *= brdfLtcScalar;\\n\\treturn specularReflectance;\\n}\\nvec3 Rect_Area_Light_Diffuse_Reflectance(\\n\\t\\tconst in GeometricContext geometry,\\n\\t\\tconst in vec3 lightPos, const in vec3 lightHalfWidth, const in vec3 lightHalfHeight ) {\\n\\tvec3 rectPoints[4];\\n\\tinitRectPoints( lightPos, lightHalfWidth, lightHalfHeight, rectPoints );\\n\\tmat3 diffuseBrdfMat = mat3(1);\\n\\tvec3 diffuseReflectance = integrateLtcBrdfOverRect( geometry, diffuseBrdfMat, rectPoints );\\n\\treturn diffuseReflectance;\\n}\\nvec3 BRDF_Specular_GGX_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness ) {\\n\\tfloat dotNV = saturate( dot( geometry.normal, geometry.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 AB = vec2( -1.04, 1.04 ) * a004 + r.zw;\\n\\treturn specularColor * AB.x + AB.y;\\n}\\nfloat G_BlinnPhong_Implicit( ) {\\n\\treturn 0.25;\\n}\\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\\n\\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\\n}\\nvec3 BRDF_Specular_BlinnPhong( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float shininess ) {\\n\\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\\n\\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\\n\\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\\n\\tvec3 F = F_Schlick( specularColor, dotLH );\\n\\tfloat G = G_BlinnPhong_Implicit( );\\n\\tfloat D = D_BlinnPhong( shininess, dotNH );\\n\\treturn F * ( G * D );\\n}\\nfloat GGXRoughnessToBlinnExponent( const in float ggxRoughness ) {\\n\\treturn ( 2.0 / pow2( ggxRoughness + 0.0001 ) - 2.0 );\\n}\\nfloat BlinnExponentToGGXRoughness( const in float blinnExponent ) {\\n\\treturn sqrt( 2.0 / ( blinnExponent + 2.0 ) );\\n}\\n\",bumpmap_pars_fragment:\"#ifdef USE_BUMPMAP\\n\\tuniform sampler2D bumpMap;\\n\\tuniform float bumpScale;\\n\\tvec2 dHdxy_fwd() {\\n\\t\\tvec2 dSTdx = dFdx( vUv );\\n\\t\\tvec2 dSTdy = dFdy( vUv );\\n\\t\\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\\n\\t\\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\\n\\t\\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\\n\\t\\treturn vec2( dBx, dBy );\\n\\t}\\n\\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy ) {\\n\\t\\tvec3 vSigmaX = dFdx( surf_pos );\\n\\t\\tvec3 vSigmaY = dFdy( surf_pos );\\n\\t\\tvec3 vN = surf_norm;\\n\\t\\tvec3 R1 = cross( vSigmaY, vN );\\n\\t\\tvec3 R2 = cross( vN, vSigmaX );\\n\\t\\tfloat fDet = dot( vSigmaX, R1 );\\n\\t\\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\\n\\t\\treturn normalize( abs( fDet ) * surf_norm - vGrad );\\n\\t}\\n#endif\\n\",clipping_planes_fragment:\"#if NUM_CLIPPING_PLANES > 0\\n\\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; ++ i ) {\\n\\t\\tvec4 plane = clippingPlanes[ i ];\\n\\t\\tif ( dot( vViewPosition, plane.xyz ) > plane.w ) discard;\\n\\t}\\n\\t\\t\\n\\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\\n\\t\\tbool clipped = true;\\n\\t\\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; ++ i ) {\\n\\t\\t\\tvec4 plane = clippingPlanes[ i ];\\n\\t\\t\\tclipped = ( dot( vViewPosition, plane.xyz ) > plane.w ) && clipped;\\n\\t\\t}\\n\\t\\tif ( clipped ) discard;\\n\\t\\n\\t#endif\\n#endif\\n\",clipping_planes_pars_fragment:\"#if NUM_CLIPPING_PLANES > 0\\n\\t#if ! defined( PHYSICAL ) && ! defined( PHONG )\\n\\t\\tvarying vec3 vViewPosition;\\n\\t#endif\\n\\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\\n#endif\\n\",clipping_planes_pars_vertex:\"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG )\\n\\tvarying vec3 vViewPosition;\\n#endif\\n\",clipping_planes_vertex:\"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG )\\n\\tvViewPosition = - mvPosition.xyz;\\n#endif\\n\",color_fragment:\"#ifdef USE_COLOR\\n\\tdiffuseColor.rgb *= vColor;\\n#endif\",color_pars_fragment:\"#ifdef USE_COLOR\\n\\tvarying vec3 vColor;\\n#endif\\n\",color_pars_vertex:\"#ifdef USE_COLOR\\n\\tvarying vec3 vColor;\\n#endif\",color_vertex:\"#ifdef USE_COLOR\\n\\tvColor.xyz = color.xyz;\\n#endif\",common:\"#define PI 3.14159265359\\n#define PI2 6.28318530718\\n#define PI_HALF 1.5707963267949\\n#define RECIPROCAL_PI 0.31830988618\\n#define RECIPROCAL_PI2 0.15915494\\n#define LOG2 1.442695\\n#define EPSILON 1e-6\\n#define saturate(a) clamp( a, 0.0, 1.0 )\\n#define whiteCompliment(a) ( 1.0 - saturate( a ) )\\nfloat pow2( const in float 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 average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\\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}\\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};\\nstruct GeometricContext {\\n\\tvec3 position;\\n\\tvec3 normal;\\n\\tvec3 viewDir;\\n};\\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}\\nvec3 projectOnPlane(in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\\n\\tfloat distance = dot( planeNormal, point - pointOnPlane );\\n\\treturn - distance * planeNormal + point;\\n}\\nfloat sideOfPlane( in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\\n\\treturn sign( dot( point - pointOnPlane, planeNormal ) );\\n}\\nvec3 linePlaneIntersect( in vec3 pointOnLine, in vec3 lineDirection, in vec3 pointOnPlane, in vec3 planeNormal ) {\\n\\treturn lineDirection * ( dot( planeNormal, pointOnPlane - pointOnLine ) / dot( planeNormal, lineDirection ) ) + pointOnLine;\\n}\\nmat3 transpose( const in mat3 v ) {\\n\\tmat3 tmp;\\n\\ttmp[0] = vec3(v[0].x, v[1].x, v[2].x);\\n\\ttmp[1] = vec3(v[0].y, v[1].y, v[2].y);\\n\\ttmp[2] = vec3(v[0].z, v[1].z, v[2].z);\\n\\treturn tmp;\\n}\\n\",cube_uv_reflection_fragment:\"#ifdef ENVMAP_TYPE_CUBE_UV\\n#define cubeUV_textureSize (1024.0)\\nint getFaceFromDirection(vec3 direction) {\\n\\tvec3 absDirection = abs(direction);\\n\\tint face = -1;\\n\\tif( absDirection.x > absDirection.z ) {\\n\\t\\tif(absDirection.x > absDirection.y )\\n\\t\\t\\tface = direction.x > 0.0 ? 0 : 3;\\n\\t\\telse\\n\\t\\t\\tface = direction.y > 0.0 ? 1 : 4;\\n\\t}\\n\\telse {\\n\\t\\tif(absDirection.z > absDirection.y )\\n\\t\\t\\tface = direction.z > 0.0 ? 2 : 5;\\n\\t\\telse\\n\\t\\t\\tface = direction.y > 0.0 ? 1 : 4;\\n\\t}\\n\\treturn face;\\n}\\n#define cubeUV_maxLods1 (log2(cubeUV_textureSize*0.25) - 1.0)\\n#define cubeUV_rangeClamp (exp2((6.0 - 1.0) * 2.0))\\nvec2 MipLevelInfo( vec3 vec, float roughnessLevel, float roughness ) {\\n\\tfloat scale = exp2(cubeUV_maxLods1 - roughnessLevel);\\n\\tfloat dxRoughness = dFdx(roughness);\\n\\tfloat dyRoughness = dFdy(roughness);\\n\\tvec3 dx = dFdx( vec * scale * dxRoughness );\\n\\tvec3 dy = dFdy( vec * scale * dyRoughness );\\n\\tfloat d = max( dot( dx, dx ), dot( dy, dy ) );\\n\\td = clamp(d, 1.0, cubeUV_rangeClamp);\\n\\tfloat mipLevel = 0.5 * log2(d);\\n\\treturn vec2(floor(mipLevel), fract(mipLevel));\\n}\\n#define cubeUV_maxLods2 (log2(cubeUV_textureSize*0.25) - 2.0)\\n#define cubeUV_rcpTextureSize (1.0 / cubeUV_textureSize)\\nvec2 getCubeUV(vec3 direction, float roughnessLevel, float mipLevel) {\\n\\tmipLevel = roughnessLevel > cubeUV_maxLods2 - 3.0 ? 0.0 : mipLevel;\\n\\tfloat a = 16.0 * cubeUV_rcpTextureSize;\\n\\tvec2 exp2_packed = exp2( vec2( roughnessLevel, mipLevel ) );\\n\\tvec2 rcp_exp2_packed = vec2( 1.0 ) / exp2_packed;\\n\\tfloat powScale = exp2_packed.x * exp2_packed.y;\\n\\tfloat scale = rcp_exp2_packed.x * rcp_exp2_packed.y * 0.25;\\n\\tfloat mipOffset = 0.75*(1.0 - rcp_exp2_packed.y) * rcp_exp2_packed.x;\\n\\tbool bRes = mipLevel == 0.0;\\n\\tscale = bRes && (scale < a) ? a : scale;\\n\\tvec3 r;\\n\\tvec2 offset;\\n\\tint face = getFaceFromDirection(direction);\\n\\tfloat rcpPowScale = 1.0 / powScale;\\n\\tif( face == 0) {\\n\\t\\tr = vec3(direction.x, -direction.z, direction.y);\\n\\t\\toffset = vec2(0.0+mipOffset,0.75 * rcpPowScale);\\n\\t\\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\\n\\t}\\n\\telse if( face == 1) {\\n\\t\\tr = vec3(direction.y, direction.x, direction.z);\\n\\t\\toffset = vec2(scale+mipOffset, 0.75 * rcpPowScale);\\n\\t\\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\\n\\t}\\n\\telse if( face == 2) {\\n\\t\\tr = vec3(direction.z, direction.x, direction.y);\\n\\t\\toffset = vec2(2.0*scale+mipOffset, 0.75 * rcpPowScale);\\n\\t\\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\\n\\t}\\n\\telse if( face == 3) {\\n\\t\\tr = vec3(direction.x, direction.z, direction.y);\\n\\t\\toffset = vec2(0.0+mipOffset,0.5 * rcpPowScale);\\n\\t\\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\\n\\t}\\n\\telse if( face == 4) {\\n\\t\\tr = vec3(direction.y, direction.x, -direction.z);\\n\\t\\toffset = vec2(scale+mipOffset, 0.5 * rcpPowScale);\\n\\t\\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\\n\\t}\\n\\telse {\\n\\t\\tr = vec3(direction.z, -direction.x, direction.y);\\n\\t\\toffset = vec2(2.0*scale+mipOffset, 0.5 * rcpPowScale);\\n\\t\\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\\n\\t}\\n\\tr = normalize(r);\\n\\tfloat texelOffset = 0.5 * cubeUV_rcpTextureSize;\\n\\tvec2 s = ( r.yz / abs( r.x ) + vec2( 1.0 ) ) * 0.5;\\n\\tvec2 base = offset + vec2( texelOffset );\\n\\treturn base + s * ( scale - 2.0 * texelOffset );\\n}\\n#define cubeUV_maxLods3 (log2(cubeUV_textureSize*0.25) - 3.0)\\nvec4 textureCubeUV(vec3 reflectedDirection, float roughness ) {\\n\\tfloat roughnessVal = roughness* cubeUV_maxLods3;\\n\\tfloat r1 = floor(roughnessVal);\\n\\tfloat r2 = r1 + 1.0;\\n\\tfloat t = fract(roughnessVal);\\n\\tvec2 mipInfo = MipLevelInfo(reflectedDirection, r1, roughness);\\n\\tfloat s = mipInfo.y;\\n\\tfloat level0 = mipInfo.x;\\n\\tfloat level1 = level0 + 1.0;\\n\\tlevel1 = level1 > 5.0 ? 5.0 : level1;\\n\\tlevel0 += min( floor( s + 0.5 ), 5.0 );\\n\\tvec2 uv_10 = getCubeUV(reflectedDirection, r1, level0);\\n\\tvec4 color10 = envMapTexelToLinear(texture2D(envMap, uv_10));\\n\\tvec2 uv_20 = getCubeUV(reflectedDirection, r2, level0);\\n\\tvec4 color20 = envMapTexelToLinear(texture2D(envMap, uv_20));\\n\\tvec4 result = mix(color10, color20, t);\\n\\treturn vec4(result.rgb, 1.0);\\n}\\n#endif\\n\",defaultnormal_vertex:\"#ifdef FLIP_SIDED\\n\\tobjectNormal = -objectNormal;\\n#endif\\nvec3 transformedNormal = normalMatrix * objectNormal;\\n\",displacementmap_pars_vertex:\"#ifdef USE_DISPLACEMENTMAP\\n\\tuniform sampler2D displacementMap;\\n\\tuniform float displacementScale;\\n\\tuniform float displacementBias;\\n#endif\\n\",displacementmap_vertex:\"#ifdef USE_DISPLACEMENTMAP\\n\\ttransformed += normal * ( texture2D( displacementMap, uv ).x * displacementScale + displacementBias );\\n#endif\\n\",emissivemap_fragment:\"#ifdef USE_EMISSIVEMAP\\n\\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\\n\\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\\n\\ttotalEmissiveRadiance *= emissiveColor.rgb;\\n#endif\\n\",emissivemap_pars_fragment:\"#ifdef USE_EMISSIVEMAP\\n\\tuniform sampler2D emissiveMap;\\n#endif\\n\",encodings_fragment:\" gl_FragColor = linearToOutputTexel( gl_FragColor );\\n\",encodings_pars_fragment:\"\\nvec4 LinearToLinear( in vec4 value ) {\\n\\treturn value;\\n}\\nvec4 GammaToLinear( in vec4 value, in float gammaFactor ) {\\n\\treturn vec4( pow( value.xyz, vec3( gammaFactor ) ), value.w );\\n}\\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\\n\\treturn vec4( pow( value.xyz, vec3( 1.0 / gammaFactor ) ), value.w );\\n}\\nvec4 sRGBToLinear( in vec4 value ) {\\n\\treturn vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.w );\\n}\\nvec4 LinearTosRGB( 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.w );\\n}\\nvec4 RGBEToLinear( in vec4 value ) {\\n\\treturn vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );\\n}\\nvec4 LinearToRGBE( in vec4 value ) {\\n\\tfloat maxComponent = max( max( value.r, value.g ), value.b );\\n\\tfloat fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );\\n\\treturn vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );\\n}\\nvec4 RGBMToLinear( in vec4 value, in float maxRange ) {\\n\\treturn vec4( value.xyz * value.w * maxRange, 1.0 );\\n}\\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\\n\\tfloat maxRGB = max( value.x, max( value.g, value.b ) );\\n\\tfloat M = clamp( maxRGB / maxRange, 0.0, 1.0 );\\n\\tM = ceil( M * 255.0 ) / 255.0;\\n\\treturn vec4( value.rgb / ( M * maxRange ), M );\\n}\\nvec4 RGBDToLinear( in vec4 value, in float maxRange ) {\\n\\treturn vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );\\n}\\nvec4 LinearToRGBD( in vec4 value, in float maxRange ) {\\n\\tfloat maxRGB = max( value.x, max( value.g, value.b ) );\\n\\tfloat D = max( maxRange / maxRGB, 1.0 );\\n\\tD = min( floor( D ) / 255.0, 1.0 );\\n\\treturn vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );\\n}\\nconst mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );\\nvec4 LinearToLogLuv( in vec4 value ) {\\n\\tvec3 Xp_Y_XYZp = value.rgb * cLogLuvM;\\n\\tXp_Y_XYZp = max(Xp_Y_XYZp, vec3(1e-6, 1e-6, 1e-6));\\n\\tvec4 vResult;\\n\\tvResult.xy = Xp_Y_XYZp.xy / Xp_Y_XYZp.z;\\n\\tfloat Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;\\n\\tvResult.w = fract(Le);\\n\\tvResult.z = (Le - (floor(vResult.w*255.0))/255.0)/255.0;\\n\\treturn vResult;\\n}\\nconst mat3 cLogLuvInverseM = mat3( 6.0014, -2.7008, -1.7996, -1.3320, 3.1029, -5.7721, 0.3008, -1.0882, 5.6268 );\\nvec4 LogLuvToLinear( in vec4 value ) {\\n\\tfloat Le = value.z * 255.0 + value.w;\\n\\tvec3 Xp_Y_XYZp;\\n\\tXp_Y_XYZp.y = exp2((Le - 127.0) / 2.0);\\n\\tXp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;\\n\\tXp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;\\n\\tvec3 vRGB = Xp_Y_XYZp.rgb * cLogLuvInverseM;\\n\\treturn vec4( max(vRGB, 0.0), 1.0 );\\n}\\n\",envmap_fragment:\"#ifdef USE_ENVMAP\\n\\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\\n\\t\\tvec3 cameraToVertex = normalize( vWorldPosition - cameraPosition );\\n\\t\\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\\n\\t\\t#ifdef ENVMAP_MODE_REFLECTION\\n\\t\\t\\tvec3 reflectVec = reflect( cameraToVertex, worldNormal );\\n\\t\\t#else\\n\\t\\t\\tvec3 reflectVec = refract( cameraToVertex, 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, flipNormal * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\\n\\t#elif defined( ENVMAP_TYPE_EQUIREC )\\n\\t\\tvec2 sampleUV;\\n\\t\\tsampleUV.y = saturate( flipNormal * reflectVec.y * 0.5 + 0.5 );\\n\\t\\tsampleUV.x = atan( flipNormal * reflectVec.z, flipNormal * reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\\n\\t\\tvec4 envColor = texture2D( envMap, sampleUV );\\n\\t#elif defined( ENVMAP_TYPE_SPHERE )\\n\\t\\tvec3 reflectView = flipNormal * normalize( ( viewMatrix * vec4( reflectVec, 0.0 ) ).xyz + vec3( 0.0, 0.0, 1.0 ) );\\n\\t\\tvec4 envColor = texture2D( envMap, reflectView.xy * 0.5 + 0.5 );\\n\\t#else\\n\\t\\tvec4 envColor = vec4( 0.0 );\\n\\t#endif\\n\\tenvColor = envMapTexelToLinear( envColor );\\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\\n\",envmap_pars_fragment:\"#if defined( USE_ENVMAP ) || defined( PHYSICAL )\\n\\tuniform float reflectivity;\\n\\tuniform float envMapIntensity;\\n#endif\\n#ifdef USE_ENVMAP\\n\\t#if ! defined( PHYSICAL ) && ( defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) )\\n\\t\\tvarying vec3 vWorldPosition;\\n\\t#endif\\n\\t#ifdef ENVMAP_TYPE_CUBE\\n\\t\\tuniform samplerCube envMap;\\n\\t#else\\n\\t\\tuniform sampler2D envMap;\\n\\t#endif\\n\\tuniform float flipEnvMap;\\n\\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( PHYSICAL )\\n\\t\\tuniform float refractionRatio;\\n\\t#else\\n\\t\\tvarying vec3 vReflect;\\n\\t#endif\\n#endif\\n\",envmap_pars_vertex:\"#ifdef USE_ENVMAP\\n\\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\\n\\t\\tvarying vec3 vWorldPosition;\\n\\t#else\\n\\t\\tvarying vec3 vReflect;\\n\\t\\tuniform float refractionRatio;\\n\\t#endif\\n#endif\\n\",envmap_vertex:\"#ifdef USE_ENVMAP\\n\\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\\n\\t\\tvWorldPosition = worldPosition.xyz;\\n\\t#else\\n\\t\\tvec3 cameraToVertex = normalize( worldPosition.xyz - cameraPosition );\\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\\n\",fog_vertex:\"\\n#ifdef USE_FOG\\nfogDepth = -mvPosition.z;\\n#endif\",fog_pars_vertex:\"#ifdef USE_FOG\\n varying float fogDepth;\\n#endif\\n\",fog_fragment:\"#ifdef USE_FOG\\n\\t#ifdef FOG_EXP2\\n\\t\\tfloat fogFactor = whiteCompliment( exp2( - fogDensity * fogDensity * fogDepth * fogDepth * LOG2 ) );\\n\\t#else\\n\\t\\tfloat fogFactor = smoothstep( fogNear, fogFar, fogDepth );\\n\\t#endif\\n\\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\\n#endif\\n\",fog_pars_fragment:\"#ifdef USE_FOG\\n\\tuniform vec3 fogColor;\\n\\tvarying float fogDepth;\\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\\n\",gradientmap_pars_fragment:\"#ifdef TOON\\n\\tuniform sampler2D gradientMap;\\n\\tvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\\n\\t\\tfloat dotNL = dot( normal, lightDirection );\\n\\t\\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\\n\\t\\t#ifdef USE_GRADIENTMAP\\n\\t\\t\\treturn texture2D( gradientMap, coord ).rgb;\\n\\t\\t#else\\n\\t\\t\\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\\n\\t\\t#endif\\n\\t}\\n#endif\\n\",lightmap_fragment:\"#ifdef USE_LIGHTMAP\\n\\treflectedLight.indirectDiffuse += PI * texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\\n#endif\\n\",lightmap_pars_fragment:\"#ifdef USE_LIGHTMAP\\n\\tuniform sampler2D lightMap;\\n\\tuniform float lightMapIntensity;\\n#endif\",lights_lambert_vertex:\"vec3 diffuse = vec3( 1.0 );\\nGeometricContext geometry;\\ngeometry.position = mvPosition.xyz;\\ngeometry.normal = normalize( transformedNormal );\\ngeometry.viewDir = normalize( -mvPosition.xyz );\\nGeometricContext backGeometry;\\nbackGeometry.position = geometry.position;\\nbackGeometry.normal = -geometry.normal;\\nbackGeometry.viewDir = geometry.viewDir;\\nvLightFront = vec3( 0.0 );\\n#ifdef DOUBLE_SIDED\\n\\tvLightBack = vec3( 0.0 );\\n#endif\\nIncidentLight directLight;\\nfloat dotNL;\\nvec3 directLightColor_Diffuse;\\n#if NUM_POINT_LIGHTS > 0\\n\\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\\n\\t\\tgetPointDirectLightIrradiance( pointLights[ i ], geometry, directLight );\\n\\t\\tdotNL = dot( geometry.normal, directLight.direction );\\n\\t\\tdirectLightColor_Diffuse = PI * directLight.color;\\n\\t\\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\\n\\t\\t#ifdef DOUBLE_SIDED\\n\\t\\t\\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\\n\\t\\t#endif\\n\\t}\\n#endif\\n#if NUM_SPOT_LIGHTS > 0\\n\\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\\n\\t\\tgetSpotDirectLightIrradiance( spotLights[ i ], geometry, directLight );\\n\\t\\tdotNL = dot( geometry.normal, directLight.direction );\\n\\t\\tdirectLightColor_Diffuse = PI * directLight.color;\\n\\t\\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\\n\\t\\t#ifdef DOUBLE_SIDED\\n\\t\\t\\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\\n\\t\\t#endif\\n\\t}\\n#endif\\n#if NUM_DIR_LIGHTS > 0\\n\\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\\n\\t\\tgetDirectionalDirectLightIrradiance( directionalLights[ i ], geometry, directLight );\\n\\t\\tdotNL = dot( geometry.normal, directLight.direction );\\n\\t\\tdirectLightColor_Diffuse = PI * directLight.color;\\n\\t\\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\\n\\t\\t#ifdef DOUBLE_SIDED\\n\\t\\t\\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\\n\\t\\t#endif\\n\\t}\\n#endif\\n#if NUM_HEMI_LIGHTS > 0\\n\\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\\n\\t\\tvLightFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\\n\\t\\t#ifdef DOUBLE_SIDED\\n\\t\\t\\tvLightBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );\\n\\t\\t#endif\\n\\t}\\n#endif\\n\",lights_pars:\"uniform vec3 ambientLightColor;\\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\\n\\tvec3 irradiance = ambientLightColor;\\n\\t#ifndef PHYSICALLY_CORRECT_LIGHTS\\n\\t\\tirradiance *= PI;\\n\\t#endif\\n\\treturn irradiance;\\n}\\n#if NUM_DIR_LIGHTS > 0\\n\\tstruct DirectionalLight {\\n\\t\\tvec3 direction;\\n\\t\\tvec3 color;\\n\\t\\tint shadow;\\n\\t\\tfloat shadowBias;\\n\\t\\tfloat shadowRadius;\\n\\t\\tvec2 shadowMapSize;\\n\\t};\\n\\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\\n\\tvoid getDirectionalDirectLightIrradiance( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight directLight ) {\\n\\t\\tdirectLight.color = directionalLight.color;\\n\\t\\tdirectLight.direction = directionalLight.direction;\\n\\t\\tdirectLight.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\\tint shadow;\\n\\t\\tfloat shadowBias;\\n\\t\\tfloat shadowRadius;\\n\\t\\tvec2 shadowMapSize;\\n\\t};\\n\\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\\n\\tvoid getPointDirectLightIrradiance( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight directLight ) {\\n\\t\\tvec3 lVector = pointLight.position - geometry.position;\\n\\t\\tdirectLight.direction = normalize( lVector );\\n\\t\\tfloat lightDistance = length( lVector );\\n\\t\\tdirectLight.color = pointLight.color;\\n\\t\\tdirectLight.color *= punctualLightIntensityToIrradianceFactor( lightDistance, pointLight.distance, pointLight.decay );\\n\\t\\tdirectLight.visible = ( directLight.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\\tint shadow;\\n\\t\\tfloat shadowBias;\\n\\t\\tfloat shadowRadius;\\n\\t\\tvec2 shadowMapSize;\\n\\t};\\n\\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\\n\\tvoid getSpotDirectLightIrradiance( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight directLight ) {\\n\\t\\tvec3 lVector = spotLight.position - geometry.position;\\n\\t\\tdirectLight.direction = normalize( lVector );\\n\\t\\tfloat lightDistance = length( lVector );\\n\\t\\tfloat angleCos = dot( directLight.direction, spotLight.direction );\\n\\t\\tif ( angleCos > spotLight.coneCos ) {\\n\\t\\t\\tfloat spotEffect = smoothstep( spotLight.coneCos, spotLight.penumbraCos, angleCos );\\n\\t\\t\\tdirectLight.color = spotLight.color;\\n\\t\\t\\tdirectLight.color *= spotEffect * punctualLightIntensityToIrradianceFactor( lightDistance, spotLight.distance, spotLight.decay );\\n\\t\\t\\tdirectLight.visible = true;\\n\\t\\t} else {\\n\\t\\t\\tdirectLight.color = vec3( 0.0 );\\n\\t\\t\\tdirectLight.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 ltcMat;\\tuniform sampler2D ltcMag;\\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 GeometricContext geometry ) {\\n\\t\\tfloat dotNL = dot( geometry.normal, hemiLight.direction );\\n\\t\\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\\n\\t\\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\\n\\t\\t#ifndef PHYSICALLY_CORRECT_LIGHTS\\n\\t\\t\\tirradiance *= PI;\\n\\t\\t#endif\\n\\t\\treturn irradiance;\\n\\t}\\n#endif\\n#if defined( USE_ENVMAP ) && defined( PHYSICAL )\\n\\tvec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {\\n\\t\\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\\n\\t\\t#ifdef ENVMAP_TYPE_CUBE\\n\\t\\t\\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\\n\\t\\t\\t#ifdef TEXTURE_LOD_EXT\\n\\t\\t\\t\\tvec4 envMapColor = textureCubeLodEXT( envMap, queryVec, float( maxMIPLevel ) );\\n\\t\\t\\t#else\\n\\t\\t\\t\\tvec4 envMapColor = textureCube( envMap, queryVec, float( maxMIPLevel ) );\\n\\t\\t\\t#endif\\n\\t\\t\\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\\n\\t\\t#elif defined( ENVMAP_TYPE_CUBE_UV )\\n\\t\\t\\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\\n\\t\\t\\tvec4 envMapColor = textureCubeUV( queryVec, 1.0 );\\n\\t\\t#else\\n\\t\\t\\tvec4 envMapColor = vec4( 0.0 );\\n\\t\\t#endif\\n\\t\\treturn PI * envMapColor.rgb * envMapIntensity;\\n\\t}\\n\\tfloat getSpecularMIPLevel( const in float blinnShininessExponent, const in int maxMIPLevel ) {\\n\\t\\tfloat maxMIPLevelScalar = float( maxMIPLevel );\\n\\t\\tfloat desiredMIPLevel = maxMIPLevelScalar - 0.79248 - 0.5 * log2( pow2( blinnShininessExponent ) + 1.0 );\\n\\t\\treturn clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );\\n\\t}\\n\\tvec3 getLightProbeIndirectRadiance( const in GeometricContext geometry, const in float blinnShininessExponent, const in int maxMIPLevel ) {\\n\\t\\t#ifdef ENVMAP_MODE_REFLECTION\\n\\t\\t\\tvec3 reflectVec = reflect( -geometry.viewDir, geometry.normal );\\n\\t\\t#else\\n\\t\\t\\tvec3 reflectVec = refract( -geometry.viewDir, geometry.normal, refractionRatio );\\n\\t\\t#endif\\n\\t\\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\\n\\t\\tfloat specularMIPLevel = getSpecularMIPLevel( blinnShininessExponent, maxMIPLevel );\\n\\t\\t#ifdef ENVMAP_TYPE_CUBE\\n\\t\\t\\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\\n\\t\\t\\t#ifdef TEXTURE_LOD_EXT\\n\\t\\t\\t\\tvec4 envMapColor = textureCubeLodEXT( envMap, queryReflectVec, specularMIPLevel );\\n\\t\\t\\t#else\\n\\t\\t\\t\\tvec4 envMapColor = textureCube( envMap, queryReflectVec, specularMIPLevel );\\n\\t\\t\\t#endif\\n\\t\\t\\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\\n\\t\\t#elif defined( ENVMAP_TYPE_CUBE_UV )\\n\\t\\t\\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\\n\\t\\t\\tvec4 envMapColor = textureCubeUV(queryReflectVec, BlinnExponentToGGXRoughness(blinnShininessExponent));\\n\\t\\t#elif defined( ENVMAP_TYPE_EQUIREC )\\n\\t\\t\\tvec2 sampleUV;\\n\\t\\t\\tsampleUV.y = saturate( reflectVec.y * 0.5 + 0.5 );\\n\\t\\t\\tsampleUV.x = atan( reflectVec.z, reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\\n\\t\\t\\t#ifdef TEXTURE_LOD_EXT\\n\\t\\t\\t\\tvec4 envMapColor = texture2DLodEXT( envMap, sampleUV, specularMIPLevel );\\n\\t\\t\\t#else\\n\\t\\t\\t\\tvec4 envMapColor = texture2D( envMap, sampleUV, specularMIPLevel );\\n\\t\\t\\t#endif\\n\\t\\t\\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\\n\\t\\t#elif defined( ENVMAP_TYPE_SPHERE )\\n\\t\\t\\tvec3 reflectView = normalize( ( viewMatrix * vec4( reflectVec, 0.0 ) ).xyz + vec3( 0.0,0.0,1.0 ) );\\n\\t\\t\\t#ifdef TEXTURE_LOD_EXT\\n\\t\\t\\t\\tvec4 envMapColor = texture2DLodEXT( envMap, reflectView.xy * 0.5 + 0.5, specularMIPLevel );\\n\\t\\t\\t#else\\n\\t\\t\\t\\tvec4 envMapColor = texture2D( envMap, reflectView.xy * 0.5 + 0.5, specularMIPLevel );\\n\\t\\t\\t#endif\\n\\t\\t\\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\\n\\t\\t#endif\\n\\t\\treturn envMapColor.rgb * envMapIntensity;\\n\\t}\\n#endif\\n\",lights_phong_fragment:\"BlinnPhongMaterial material;\\nmaterial.diffuseColor = diffuseColor.rgb;\\nmaterial.specularColor = specular;\\nmaterial.specularShininess = shininess;\\nmaterial.specularStrength = specularStrength;\\n\",lights_phong_pars_fragment:\"varying vec3 vViewPosition;\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\nstruct BlinnPhongMaterial {\\n\\tvec3\\tdiffuseColor;\\n\\tvec3\\tspecularColor;\\n\\tfloat\\tspecularShininess;\\n\\tfloat\\tspecularStrength;\\n};\\n#if NUM_RECT_AREA_LIGHTS > 0\\n\\tvoid RE_Direct_RectArea_BlinnPhong( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\\n\\t\\tvec3 matDiffColor = material.diffuseColor;\\n\\t\\tvec3 matSpecColor = material.specularColor;\\n\\t\\tvec3 lightColor = rectAreaLight.color;\\n\\t\\tfloat roughness = BlinnExponentToGGXRoughness( material.specularShininess );\\n\\t\\tvec3 spec = Rect_Area_Light_Specular_Reflectance(\\n\\t\\t\\t\\tgeometry,\\n\\t\\t\\t\\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight,\\n\\t\\t\\t\\troughness,\\n\\t\\t\\t\\tltcMat, ltcMag );\\n\\t\\tvec3 diff = Rect_Area_Light_Diffuse_Reflectance(\\n\\t\\t\\t\\tgeometry,\\n\\t\\t\\t\\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight );\\n\\t\\treflectedLight.directSpecular += lightColor * matSpecColor * spec / PI2;\\n\\t\\treflectedLight.directDiffuse += lightColor * matDiffColor * diff / PI2;\\n\\t}\\n#endif\\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\\n\\t#ifdef TOON\\n\\t\\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\\n\\t#else\\n\\t\\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\\n\\t\\tvec3 irradiance = dotNL * directLight.color;\\n\\t#endif\\n\\t#ifndef PHYSICALLY_CORRECT_LIGHTS\\n\\t\\tirradiance *= PI;\\n\\t#endif\\n\\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\\n\\treflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, material.specularColor, material.specularShininess ) * material.specularStrength;\\n}\\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\\n\\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\\n}\\n#define RE_Direct\\t\\t\\t\\tRE_Direct_BlinnPhong\\n#define RE_Direct_RectArea\\t\\tRE_Direct_RectArea_BlinnPhong\\n#define RE_IndirectDiffuse\\t\\tRE_IndirectDiffuse_BlinnPhong\\n#define Material_LightProbeLOD( material )\\t(0)\\n\",lights_physical_fragment:\"PhysicalMaterial material;\\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\\nmaterial.specularRoughness = clamp( roughnessFactor, 0.04, 1.0 );\\n#ifdef STANDARD\\n\\tmaterial.specularColor = mix( vec3( DEFAULT_SPECULAR_COEFFICIENT ), diffuseColor.rgb, metalnessFactor );\\n#else\\n\\tmaterial.specularColor = mix( vec3( MAXIMUM_SPECULAR_COEFFICIENT * pow2( reflectivity ) ), diffuseColor.rgb, metalnessFactor );\\n\\tmaterial.clearCoat = saturate( clearCoat );\\tmaterial.clearCoatRoughness = clamp( clearCoatRoughness, 0.04, 1.0 );\\n#endif\\n\",lights_physical_pars_fragment:\"struct PhysicalMaterial {\\n\\tvec3\\tdiffuseColor;\\n\\tfloat\\tspecularRoughness;\\n\\tvec3\\tspecularColor;\\n\\t#ifndef STANDARD\\n\\t\\tfloat clearCoat;\\n\\t\\tfloat clearCoatRoughness;\\n\\t#endif\\n};\\n#define MAXIMUM_SPECULAR_COEFFICIENT 0.16\\n#define DEFAULT_SPECULAR_COEFFICIENT 0.04\\nfloat clearCoatDHRApprox( const in float roughness, const in float dotNL ) {\\n\\treturn DEFAULT_SPECULAR_COEFFICIENT + ( 1.0 - DEFAULT_SPECULAR_COEFFICIENT ) * ( pow( 1.0 - dotNL, 5.0 ) * pow( 1.0 - roughness, 2.0 ) );\\n}\\n#if NUM_RECT_AREA_LIGHTS > 0\\n\\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\\n\\t\\tvec3 matDiffColor = material.diffuseColor;\\n\\t\\tvec3 matSpecColor = material.specularColor;\\n\\t\\tvec3 lightColor = rectAreaLight.color;\\n\\t\\tfloat roughness = material.specularRoughness;\\n\\t\\tvec3 spec = Rect_Area_Light_Specular_Reflectance(\\n\\t\\t\\t\\tgeometry,\\n\\t\\t\\t\\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight,\\n\\t\\t\\t\\troughness,\\n\\t\\t\\t\\tltcMat, ltcMag );\\n\\t\\tvec3 diff = Rect_Area_Light_Diffuse_Reflectance(\\n\\t\\t\\t\\tgeometry,\\n\\t\\t\\t\\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight );\\n\\t\\treflectedLight.directSpecular += lightColor * matSpecColor * spec;\\n\\t\\treflectedLight.directDiffuse += lightColor * matDiffColor * diff;\\n\\t}\\n#endif\\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\\n\\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\\n\\tvec3 irradiance = dotNL * directLight.color;\\n\\t#ifndef PHYSICALLY_CORRECT_LIGHTS\\n\\t\\tirradiance *= PI;\\n\\t#endif\\n\\t#ifndef STANDARD\\n\\t\\tfloat clearCoatDHR = material.clearCoat * clearCoatDHRApprox( material.clearCoatRoughness, dotNL );\\n\\t#else\\n\\t\\tfloat clearCoatDHR = 0.0;\\n\\t#endif\\n\\treflectedLight.directSpecular += ( 1.0 - clearCoatDHR ) * irradiance * BRDF_Specular_GGX( directLight, geometry, material.specularColor, material.specularRoughness );\\n\\treflectedLight.directDiffuse += ( 1.0 - clearCoatDHR ) * irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\\n\\t#ifndef STANDARD\\n\\t\\treflectedLight.directSpecular += irradiance * material.clearCoat * BRDF_Specular_GGX( directLight, geometry, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearCoatRoughness );\\n\\t#endif\\n}\\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\\n\\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\\n}\\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 clearCoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\\n\\t#ifndef STANDARD\\n\\t\\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\\n\\t\\tfloat dotNL = dotNV;\\n\\t\\tfloat clearCoatDHR = material.clearCoat * clearCoatDHRApprox( material.clearCoatRoughness, dotNL );\\n\\t#else\\n\\t\\tfloat clearCoatDHR = 0.0;\\n\\t#endif\\n\\treflectedLight.indirectSpecular += ( 1.0 - clearCoatDHR ) * radiance * BRDF_Specular_GGX_Environment( geometry, material.specularColor, material.specularRoughness );\\n\\t#ifndef STANDARD\\n\\t\\treflectedLight.indirectSpecular += clearCoatRadiance * material.clearCoat * BRDF_Specular_GGX_Environment( geometry, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearCoatRoughness );\\n\\t#endif\\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\\n#define Material_BlinnShininessExponent( material ) GGXRoughnessToBlinnExponent( material.specularRoughness )\\n#define Material_ClearCoat_BlinnShininessExponent( material ) GGXRoughnessToBlinnExponent( material.clearCoatRoughness )\\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}\\n\",lights_template:\"\\nGeometricContext geometry;\\ngeometry.position = - vViewPosition;\\ngeometry.normal = normal;\\ngeometry.viewDir = normalize( vViewPosition );\\nIncidentLight directLight;\\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\\n\\tPointLight pointLight;\\n\\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\\n\\t\\tpointLight = pointLights[ i ];\\n\\t\\tgetPointDirectLightIrradiance( pointLight, geometry, directLight );\\n\\t\\t#ifdef USE_SHADOWMAP\\n\\t\\tdirectLight.color *= all( bvec2( pointLight.shadow, directLight.visible ) ) ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ] ) : 1.0;\\n\\t\\t#endif\\n\\t\\tRE_Direct( directLight, geometry, material, reflectedLight );\\n\\t}\\n#endif\\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\\n\\tSpotLight spotLight;\\n\\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\\n\\t\\tspotLight = spotLights[ i ];\\n\\t\\tgetSpotDirectLightIrradiance( spotLight, geometry, directLight );\\n\\t\\t#ifdef USE_SHADOWMAP\\n\\t\\tdirectLight.color *= all( bvec2( spotLight.shadow, directLight.visible ) ) ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\\n\\t\\t#endif\\n\\t\\tRE_Direct( directLight, geometry, material, reflectedLight );\\n\\t}\\n#endif\\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\\n\\tDirectionalLight directionalLight;\\n\\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\\n\\t\\tdirectionalLight = directionalLights[ i ];\\n\\t\\tgetDirectionalDirectLightIrradiance( directionalLight, geometry, directLight );\\n\\t\\t#ifdef USE_SHADOWMAP\\n\\t\\tdirectLight.color *= all( bvec2( directionalLight.shadow, directLight.visible ) ) ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\\n\\t\\t#endif\\n\\t\\tRE_Direct( directLight, geometry, material, reflectedLight );\\n\\t}\\n#endif\\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\\n\\tRectAreaLight rectAreaLight;\\n\\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\\n\\t\\trectAreaLight = rectAreaLights[ i ];\\n\\t\\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\\n\\t}\\n#endif\\n#if defined( RE_IndirectDiffuse )\\n\\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\\n\\t#ifdef USE_LIGHTMAP\\n\\t\\tvec3 lightMapIrradiance = texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\\n\\t\\t#ifndef PHYSICALLY_CORRECT_LIGHTS\\n\\t\\t\\tlightMapIrradiance *= PI;\\n\\t\\t#endif\\n\\t\\tirradiance += lightMapIrradiance;\\n\\t#endif\\n\\t#if ( NUM_HEMI_LIGHTS > 0 )\\n\\t\\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\\n\\t\\t\\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\\n\\t\\t}\\n\\t#endif\\n\\t#if defined( USE_ENVMAP ) && defined( PHYSICAL ) && defined( ENVMAP_TYPE_CUBE_UV )\\n\\t\\tirradiance += getLightProbeIndirectIrradiance( geometry, 8 );\\n\\t#endif\\n\\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\\n#endif\\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\\n\\tvec3 radiance = getLightProbeIndirectRadiance( geometry, Material_BlinnShininessExponent( material ), 8 );\\n\\t#ifndef STANDARD\\n\\t\\tvec3 clearCoatRadiance = getLightProbeIndirectRadiance( geometry, Material_ClearCoat_BlinnShininessExponent( material ), 8 );\\n\\t#else\\n\\t\\tvec3 clearCoatRadiance = vec3( 0.0 );\\n\\t#endif\\n\\tRE_IndirectSpecular( radiance, clearCoatRadiance, geometry, material, reflectedLight );\\n#endif\\n\",logdepthbuf_fragment:\"#if defined(USE_LOGDEPTHBUF) && defined(USE_LOGDEPTHBUF_EXT)\\n\\tgl_FragDepthEXT = log2(vFragDepth) * logDepthBufFC * 0.5;\\n#endif\",logdepthbuf_pars_fragment:\"#ifdef USE_LOGDEPTHBUF\\n\\tuniform float logDepthBufFC;\\n\\t#ifdef USE_LOGDEPTHBUF_EXT\\n\\t\\tvarying float vFragDepth;\\n\\t#endif\\n#endif\\n\",logdepthbuf_pars_vertex:\"#ifdef USE_LOGDEPTHBUF\\n\\t#ifdef USE_LOGDEPTHBUF_EXT\\n\\t\\tvarying float vFragDepth;\\n\\t#endif\\n\\tuniform float logDepthBufFC;\\n#endif\",logdepthbuf_vertex:\"#ifdef USE_LOGDEPTHBUF\\n\\tgl_Position.z = log2(max( EPSILON, gl_Position.w + 1.0 )) * logDepthBufFC;\\n\\t#ifdef USE_LOGDEPTHBUF_EXT\\n\\t\\tvFragDepth = 1.0 + gl_Position.w;\\n\\t#else\\n\\t\\tgl_Position.z = (gl_Position.z - 1.0) * gl_Position.w;\\n\\t#endif\\n#endif\\n\",map_fragment:\"#ifdef USE_MAP\\n\\tvec4 texelColor = texture2D( map, vUv );\\n\\ttexelColor = mapTexelToLinear( texelColor );\\n\\tdiffuseColor *= texelColor;\\n#endif\\n\",map_pars_fragment:\"#ifdef USE_MAP\\n\\tuniform sampler2D map;\\n#endif\\n\",map_particle_fragment:\"#ifdef USE_MAP\\n\\tvec4 mapTexel = texture2D( map, vec2( gl_PointCoord.x, 1.0 - gl_PointCoord.y ) * offsetRepeat.zw + offsetRepeat.xy );\\n\\tdiffuseColor *= mapTexelToLinear( mapTexel );\\n#endif\\n\",map_particle_pars_fragment:\"#ifdef USE_MAP\\n\\tuniform vec4 offsetRepeat;\\n\\tuniform sampler2D map;\\n#endif\\n\",metalnessmap_fragment:\"float metalnessFactor = metalness;\\n#ifdef USE_METALNESSMAP\\n\\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\\n\\tmetalnessFactor *= texelMetalness.r;\\n#endif\\n\",metalnessmap_pars_fragment:\"#ifdef USE_METALNESSMAP\\n\\tuniform sampler2D metalnessMap;\\n#endif\",morphnormal_vertex:\"#ifdef USE_MORPHNORMALS\\n\\tobjectNormal += ( morphNormal0 - normal ) * morphTargetInfluences[ 0 ];\\n\\tobjectNormal += ( morphNormal1 - normal ) * morphTargetInfluences[ 1 ];\\n\\tobjectNormal += ( morphNormal2 - normal ) * morphTargetInfluences[ 2 ];\\n\\tobjectNormal += ( morphNormal3 - normal ) * morphTargetInfluences[ 3 ];\\n#endif\\n\",morphtarget_pars_vertex:\"#ifdef USE_MORPHTARGETS\\n\\t#ifndef USE_MORPHNORMALS\\n\\tuniform float morphTargetInfluences[ 8 ];\\n\\t#else\\n\\tuniform float morphTargetInfluences[ 4 ];\\n\\t#endif\\n#endif\",morphtarget_vertex:\"#ifdef USE_MORPHTARGETS\\n\\ttransformed += ( morphTarget0 - position ) * morphTargetInfluences[ 0 ];\\n\\ttransformed += ( morphTarget1 - position ) * morphTargetInfluences[ 1 ];\\n\\ttransformed += ( morphTarget2 - position ) * morphTargetInfluences[ 2 ];\\n\\ttransformed += ( morphTarget3 - position ) * morphTargetInfluences[ 3 ];\\n\\t#ifndef USE_MORPHNORMALS\\n\\ttransformed += ( morphTarget4 - position ) * morphTargetInfluences[ 4 ];\\n\\ttransformed += ( morphTarget5 - position ) * morphTargetInfluences[ 5 ];\\n\\ttransformed += ( morphTarget6 - position ) * morphTargetInfluences[ 6 ];\\n\\ttransformed += ( morphTarget7 - position ) * morphTargetInfluences[ 7 ];\\n\\t#endif\\n#endif\\n\",normal_flip:\"#ifdef DOUBLE_SIDED\\n\\tfloat flipNormal = ( float( gl_FrontFacing ) * 2.0 - 1.0 );\\n#else\\n\\tfloat flipNormal = 1.0;\\n#endif\\n\",normal_fragment:\"#ifdef FLAT_SHADED\\n\\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\\n\\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\\n\\tvec3 normal = normalize( cross( fdx, fdy ) );\\n#else\\n\\tvec3 normal = normalize( vNormal ) * flipNormal;\\n#endif\\n#ifdef USE_NORMALMAP\\n\\tnormal = perturbNormal2Arb( -vViewPosition, normal );\\n#elif defined( USE_BUMPMAP )\\n\\tnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd() );\\n#endif\\n\",normalmap_pars_fragment:\"#ifdef USE_NORMALMAP\\n\\tuniform sampler2D normalMap;\\n\\tuniform vec2 normalScale;\\n\\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm ) {\\n\\t\\tvec3 q0 = dFdx( eye_pos.xyz );\\n\\t\\tvec3 q1 = dFdy( eye_pos.xyz );\\n\\t\\tvec2 st0 = dFdx( vUv.st );\\n\\t\\tvec2 st1 = dFdy( vUv.st );\\n\\t\\tvec3 S = normalize( q0 * st1.t - q1 * st0.t );\\n\\t\\tvec3 T = normalize( -q0 * st1.s + q1 * st0.s );\\n\\t\\tvec3 N = normalize( surf_norm );\\n\\t\\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\\n\\t\\tmapN.xy = normalScale * mapN.xy;\\n\\t\\tmat3 tsn = mat3( S, T, N );\\n\\t\\treturn normalize( tsn * mapN );\\n\\t}\\n#endif\\n\",packing:\"vec3 packNormalToRGB( const in vec3 normal ) {\\n\\treturn normalize( normal ) * 0.5 + 0.5;\\n}\\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\\n\\treturn 1.0 - 2.0 * rgb.xyz;\\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}\\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 linearClipZ, const in float near, const in float far ) {\\n\\treturn linearClipZ * ( 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 invClipZ, const in float near, const in float far ) {\\n\\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\\n}\\n\",premultiplied_alpha_fragment:\"#ifdef PREMULTIPLIED_ALPHA\\n\\tgl_FragColor.rgb *= gl_FragColor.a;\\n#endif\\n\",project_vertex:\"#ifdef USE_SKINNING\\n\\tvec4 mvPosition = modelViewMatrix * skinned;\\n#else\\n\\tvec4 mvPosition = modelViewMatrix * vec4( transformed, 1.0 );\\n#endif\\ngl_Position = projectionMatrix * mvPosition;\\n\",roughnessmap_fragment:\"float roughnessFactor = roughness;\\n#ifdef USE_ROUGHNESSMAP\\n\\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\\n\\troughnessFactor *= texelRoughness.r;\\n#endif\\n\",roughnessmap_pars_fragment:\"#ifdef USE_ROUGHNESSMAP\\n\\tuniform sampler2D roughnessMap;\\n#endif\",shadowmap_pars_fragment:\"#ifdef USE_SHADOWMAP\\n\\t#if NUM_DIR_LIGHTS > 0\\n\\t\\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHTS ];\\n\\t\\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHTS ];\\n\\t#endif\\n\\t#if NUM_SPOT_LIGHTS > 0\\n\\t\\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHTS ];\\n\\t\\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHTS ];\\n\\t#endif\\n\\t#if NUM_POINT_LIGHTS > 0\\n\\t\\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHTS ];\\n\\t\\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHTS ];\\n\\t#endif\\n\\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\\n\\t\\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\\n\\t}\\n\\tfloat texture2DShadowLerp( sampler2D depths, vec2 size, vec2 uv, float compare ) {\\n\\t\\tconst vec2 offset = vec2( 0.0, 1.0 );\\n\\t\\tvec2 texelSize = vec2( 1.0 ) / size;\\n\\t\\tvec2 centroidUV = floor( uv * size + 0.5 ) / size;\\n\\t\\tfloat lb = texture2DCompare( depths, centroidUV + texelSize * offset.xx, compare );\\n\\t\\tfloat lt = texture2DCompare( depths, centroidUV + texelSize * offset.xy, compare );\\n\\t\\tfloat rb = texture2DCompare( depths, centroidUV + texelSize * offset.yx, compare );\\n\\t\\tfloat rt = texture2DCompare( depths, centroidUV + texelSize * offset.yy, compare );\\n\\t\\tvec2 f = fract( uv * size + 0.5 );\\n\\t\\tfloat a = mix( lb, lt, f.y );\\n\\t\\tfloat b = mix( rb, rt, f.y );\\n\\t\\tfloat c = mix( a, b, f.x );\\n\\t\\treturn c;\\n\\t}\\n\\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\\n\\t\\tshadowCoord.xyz /= shadowCoord.w;\\n\\t\\tshadowCoord.z += shadowBias;\\n\\t\\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\\n\\t\\tbool inFrustum = all( inFrustumVec );\\n\\t\\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\\n\\t\\tbool frustumTest = all( frustumTestVec );\\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\\treturn (\\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( dx0, 0.0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, shadowCoord.xy, 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( 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 / 9.0 );\\n\\t\\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\\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\\treturn (\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy, shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\\n\\t\\t\\t\\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\\n\\t\\t\\t) * ( 1.0 / 9.0 );\\n\\t\\t#else\\n\\t\\t\\treturn texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\\n\\t\\t#endif\\n\\t\\t}\\n\\t\\treturn 1.0;\\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 ) {\\n\\t\\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\\n\\t\\tvec3 lightToPosition = shadowCoord.xyz;\\n\\t\\tvec3 bd3D = normalize( lightToPosition );\\n\\t\\tfloat dp = ( length( lightToPosition ) - shadowBias ) / 1000.0;\\n\\t\\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT )\\n\\t\\t\\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\\n\\t\\t\\treturn (\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\\n\\t\\t\\t\\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\\n\\t\\t\\t) * ( 1.0 / 9.0 );\\n\\t\\t#else\\n\\t\\t\\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\\n\\t\\t#endif\\n\\t}\\n#endif\\n\",shadowmap_pars_vertex:\"#ifdef USE_SHADOWMAP\\n\\t#if NUM_DIR_LIGHTS > 0\\n\\t\\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHTS ];\\n\\t\\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHTS ];\\n\\t#endif\\n\\t#if NUM_SPOT_LIGHTS > 0\\n\\t\\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHTS ];\\n\\t\\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHTS ];\\n\\t#endif\\n\\t#if NUM_POINT_LIGHTS > 0\\n\\t\\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHTS ];\\n\\t\\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHTS ];\\n\\t#endif\\n#endif\\n\",shadowmap_vertex:\"#ifdef USE_SHADOWMAP\\n\\t#if NUM_DIR_LIGHTS > 0\\n\\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\\n\\t\\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * worldPosition;\\n\\t}\\n\\t#endif\\n\\t#if NUM_SPOT_LIGHTS > 0\\n\\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\\n\\t\\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * worldPosition;\\n\\t}\\n\\t#endif\\n\\t#if NUM_POINT_LIGHTS > 0\\n\\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\\n\\t\\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * worldPosition;\\n\\t}\\n\\t#endif\\n#endif\\n\",shadowmask_pars_fragment:\"float getShadowMask() {\\n\\tfloat shadow = 1.0;\\n\\t#ifdef USE_SHADOWMAP\\n\\t#if NUM_DIR_LIGHTS > 0\\n\\tDirectionalLight directionalLight;\\n\\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\\n\\t\\tdirectionalLight = directionalLights[ i ];\\n\\t\\tshadow *= bool( directionalLight.shadow ) ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\\n\\t}\\n\\t#endif\\n\\t#if NUM_SPOT_LIGHTS > 0\\n\\tSpotLight spotLight;\\n\\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\\n\\t\\tspotLight = spotLights[ i ];\\n\\t\\tshadow *= bool( spotLight.shadow ) ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\\n\\t}\\n\\t#endif\\n\\t#if NUM_POINT_LIGHTS > 0\\n\\tPointLight pointLight;\\n\\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\\n\\t\\tpointLight = pointLights[ i ];\\n\\t\\tshadow *= bool( pointLight.shadow ) ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ] ) : 1.0;\\n\\t}\\n\\t#endif\\n\\t#endif\\n\\treturn shadow;\\n}\\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\\t#ifdef BONE_TEXTURE\\n\\t\\tuniform sampler2D boneTexture;\\n\\t\\tuniform int boneTextureWidth;\\n\\t\\tuniform int boneTextureHeight;\\n\\t\\tmat4 getBoneMatrix( const in float i ) {\\n\\t\\t\\tfloat j = i * 4.0;\\n\\t\\t\\tfloat x = mod( j, float( boneTextureWidth ) );\\n\\t\\t\\tfloat y = floor( j / float( boneTextureWidth ) );\\n\\t\\t\\tfloat dx = 1.0 / float( boneTextureWidth );\\n\\t\\t\\tfloat dy = 1.0 / float( boneTextureHeight );\\n\\t\\t\\ty = dy * ( y + 0.5 );\\n\\t\\t\\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\\n\\t\\t\\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\\n\\t\\t\\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\\n\\t\\t\\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\\n\\t\\t\\tmat4 bone = mat4( v1, v2, v3, v4 );\\n\\t\\t\\treturn bone;\\n\\t\\t}\\n\\t#else\\n\\t\\tuniform mat4 boneMatrices[ MAX_BONES ];\\n\\t\\tmat4 getBoneMatrix( const in float i ) {\\n\\t\\t\\tmat4 bone = boneMatrices[ int(i) ];\\n\\t\\t\\treturn bone;\\n\\t\\t}\\n\\t#endif\\n#endif\\n\",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\\tskinned = bindMatrixInverse * skinned;\\n#endif\\n\",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#endif\\n\",specularmap_fragment:\"float specularStrength;\\n#ifdef USE_SPECULARMAP\\n\\tvec4 texelSpecular = texture2D( specularMap, vUv );\\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 gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\\n#endif\\n\",tonemapping_pars_fragment:\"#define saturate(a) clamp( a, 0.0, 1.0 )\\nuniform float toneMappingExposure;\\nuniform float toneMappingWhitePoint;\\nvec3 LinearToneMapping( vec3 color ) {\\n\\treturn toneMappingExposure * color;\\n}\\nvec3 ReinhardToneMapping( vec3 color ) {\\n\\tcolor *= toneMappingExposure;\\n\\treturn saturate( color / ( vec3( 1.0 ) + color ) );\\n}\\n#define Uncharted2Helper( x ) max( ( ( x * ( 0.15 * x + 0.10 * 0.50 ) + 0.20 * 0.02 ) / ( x * ( 0.15 * x + 0.50 ) + 0.20 * 0.30 ) ) - 0.02 / 0.30, vec3( 0.0 ) )\\nvec3 Uncharted2ToneMapping( vec3 color ) {\\n\\tcolor *= toneMappingExposure;\\n\\treturn saturate( Uncharted2Helper( color ) / Uncharted2Helper( vec3( toneMappingWhitePoint ) ) );\\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}\\n\",uv_pars_fragment:\"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\\n\\tvarying vec2 vUv;\\n#endif\",uv_pars_vertex:\"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\\n\\tvarying vec2 vUv;\\n\\tuniform vec4 offsetRepeat;\\n#endif\\n\",uv_vertex:\"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\\n\\tvUv = uv * offsetRepeat.zw + offsetRepeat.xy;\\n#endif\",uv2_pars_fragment:\"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\\n\\tvarying vec2 vUv2;\\n#endif\",uv2_pars_vertex:\"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\\n\\tattribute vec2 uv2;\\n\\tvarying vec2 vUv2;\\n#endif\",uv2_vertex:\"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\\n\\tvUv2 = uv2;\\n#endif\",worldpos_vertex:\"#if defined( USE_ENVMAP ) || defined( PHONG ) || defined( PHYSICAL ) || defined( LAMBERT ) || defined ( USE_SHADOWMAP )\\n\\t#ifdef USE_SKINNING\\n\\t\\tvec4 worldPosition = modelMatrix * skinned;\\n\\t#else\\n\\t\\tvec4 worldPosition = modelMatrix * vec4( transformed, 1.0 );\\n\\t#endif\\n#endif\\n\",cube_frag:\"uniform samplerCube tCube;\\nuniform float tFlip;\\nuniform float opacity;\\nvarying vec3 vWorldPosition;\\n#include \\nvoid main() {\\n\\tgl_FragColor = textureCube( tCube, vec3( tFlip * vWorldPosition.x, vWorldPosition.yz ) );\\n\\tgl_FragColor.a *= opacity;\\n}\\n\",cube_vert:\"varying vec3 vWorldPosition;\\n#include \\nvoid main() {\\n\\tvWorldPosition = transformDirection( position, modelMatrix );\\n\\t#include \\n\\t#include \\n}\\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 \\nvoid main() {\\n\\t#include \\n\\tvec4 diffuseColor = vec4( 1.0 );\\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#if DEPTH_PACKING == 3200\\n\\t\\tgl_FragColor = vec4( vec3( gl_FragCoord.z ), opacity );\\n\\t#elif DEPTH_PACKING == 3201\\n\\t\\tgl_FragColor = packDepthToRGBA( gl_FragCoord.z );\\n\\t#endif\\n}\\n\",depth_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}\\n\",distanceRGBA_frag:\"uniform vec3 lightPos;\\nvarying vec4 vWorldPosition;\\n#include \\n#include \\n#include \\nvoid main () {\\n\\t#include \\n\\tgl_FragColor = packDepthToRGBA( length( vWorldPosition.xyz - lightPos.xyz ) / 1000.0 );\\n}\\n\",distanceRGBA_vert:\"varying vec4 vWorldPosition;\\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\\tvWorldPosition = worldPosition;\\n}\\n\",equirect_frag:\"uniform sampler2D tEquirect;\\nuniform float tFlip;\\nvarying vec3 vWorldPosition;\\n#include \\nvoid main() {\\n\\tvec3 direction = normalize( vWorldPosition );\\n\\tvec2 sampleUV;\\n\\tsampleUV.y = saturate( tFlip * direction.y * -0.5 + 0.5 );\\n\\tsampleUV.x = atan( direction.z, direction.x ) * RECIPROCAL_PI2 + 0.5;\\n\\tgl_FragColor = texture2D( tEquirect, sampleUV );\\n}\\n\",equirect_vert:\"varying vec3 vWorldPosition;\\n#include \\nvoid main() {\\n\\tvWorldPosition = transformDirection( position, modelMatrix );\\n\\t#include \\n\\t#include \\n}\\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 \\nvoid main() {\\n\\t#include \\n\\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\\n\\t\\tdiscard;\\n\\t}\\n\\tvec3 outgoingLight = vec3( 0.0 );\\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\t#include \\n\\t#include \\n\\toutgoingLight = diffuseColor.rgb;\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",linedashed_vert:\"uniform float scale;\\nattribute float lineDistance;\\nvarying float vLineDistance;\\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\tvLineDistance = scale * lineDistance;\\n\\tvec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\\n\\tgl_Position = projectionMatrix * mvPosition;\\n\\t#include \\n\\t#include \\n\\t#include \\n}\\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 \\nvoid main() {\\n\\t#include \\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\\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\\n\\t#ifdef USE_LIGHTMAP\\n\\t\\treflectedLight.indirectDiffuse += texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\\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\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\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#ifdef USE_ENVMAP\\n\\t#include \\n\\t#include \\n\\t#include \\n\\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}\\n\",meshlambert_frag:\"uniform vec3 diffuse;\\nuniform vec3 emissive;\\nuniform float opacity;\\nvarying vec3 vLightFront;\\n#ifdef DOUBLE_SIDED\\n\\tvarying vec3 vLightBack;\\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 \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\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\\treflectedLight.indirectDiffuse = getAmbientLightIrradiance( ambientLightColor );\\n\\t#include \\n\\treflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb );\\n\\t#ifdef DOUBLE_SIDED\\n\\t\\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\\n\\t#else\\n\\t\\treflectedLight.directDiffuse = vLightFront;\\n\\t#endif\\n\\treflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask();\\n\\t#include \\n\\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\\n\\t#include \\n\\t#include \\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshlambert_vert:\"#define LAMBERT\\nvarying vec3 vLightFront;\\n#ifdef DOUBLE_SIDED\\n\\tvarying vec3 vLightBack;\\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 \\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}\\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 \\nvoid main() {\\n\\t#include \\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\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\\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\\n\\t#include \\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshphong_vert:\"#define PHONG\\nvarying vec3 vViewPosition;\\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 \\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#ifndef FLAT_SHADED\\n\\tvNormal = normalize( transformedNormal );\\n#endif\\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}\\n\",meshphysical_frag:\"#define PHYSICAL\\nuniform vec3 diffuse;\\nuniform vec3 emissive;\\nuniform float roughness;\\nuniform float metalness;\\nuniform float opacity;\\n#ifndef STANDARD\\n\\tuniform float clearCoat;\\n\\tuniform float clearCoatRoughness;\\n#endif\\nvarying vec3 vViewPosition;\\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 \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\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 + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshphysical_vert:\"#define PHYSICAL\\nvarying vec3 vViewPosition;\\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 \\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#ifndef FLAT_SHADED\\n\\tvNormal = normalize( transformedNormal );\\n#endif\\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}\\n\",normal_frag:\"#define NORMAL\\nuniform float opacity;\\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\\n\\tvarying vec3 vViewPosition;\\n#endif\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\\n}\\n\",normal_vert:\"#define NORMAL\\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\\n\\tvarying vec3 vViewPosition;\\n#endif\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\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#ifndef FLAT_SHADED\\n\\tvNormal = normalize( transformedNormal );\\n#endif\\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 )\\n\\tvViewPosition = - mvPosition.xyz;\\n#endif\\n}\\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\\t#include \\n\\tvec3 outgoingLight = vec3( 0.0 );\\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\toutgoingLight = diffuseColor.rgb;\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",points_vert:\"uniform float size;\\nuniform float scale;\\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#ifdef USE_SIZEATTENUATION\\n\\t\\tgl_PointSize = size * ( scale / - mvPosition.z );\\n\\t#else\\n\\t\\tgl_PointSize = size;\\n\\t#endif\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",shadow_frag:\"uniform float opacity;\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\tgl_FragColor = vec4( 0.0, 0.0, 0.0, opacity * ( 1.0 - getShadowMask() ) );\\n}\\n\",shadow_vert:\"#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\"};Y.prototype={constructor:Y,isColor:!0,r:1,g:1,b:1,set:function(e){return e&&e.isColor?this.copy(e):\"number\"==typeof e?this.setHex(e):\"string\"==typeof e&&this.setStyle(e),this},setScalar:function(e){return this.r=e,this.g=e,this.b=e,this},setHex:function(e){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,this},setRGB:function(e,t,n){return this.r=e,this.g=t,this.b=n,this},setHSL:function(){function e(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}return function(t,n,i){if(t=fs.euclideanModulo(t,1),n=fs.clamp(n,0,1),i=fs.clamp(i,0,1),0===n)this.r=this.g=this.b=i;else{var r=i<=.5?i*(1+n):i+n-i*n,o=2*i-r;this.r=e(o,r,t+1/3),this.g=e(o,r,t),this.b=e(o,r,t-1/3)}return this}}(),setStyle:function(e){function t(t){void 0!==t&&parseFloat(t)<1&&console.warn(\"THREE.Color: Alpha component of \"+e+\" will be ignored.\")}var n;if(n=/^((?:rgb|hsl)a?)\\(\\s*([^\\)]*)\\)/.exec(e)){var i,r=n[1],o=n[2];switch(r){case\"rgb\":case\"rgba\":if(i=/^(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*(,\\s*([0-9]*\\.?[0-9]+)\\s*)?$/.exec(o))return this.r=Math.min(255,parseInt(i[1],10))/255,this.g=Math.min(255,parseInt(i[2],10))/255,this.b=Math.min(255,parseInt(i[3],10))/255,t(i[5]),this;if(i=/^(\\d+)\\%\\s*,\\s*(\\d+)\\%\\s*,\\s*(\\d+)\\%\\s*(,\\s*([0-9]*\\.?[0-9]+)\\s*)?$/.exec(o))return this.r=Math.min(100,parseInt(i[1],10))/100,this.g=Math.min(100,parseInt(i[2],10))/100,this.b=Math.min(100,parseInt(i[3],10))/100,t(i[5]),this;break;case\"hsl\":case\"hsla\":if(i=/^([0-9]*\\.?[0-9]+)\\s*,\\s*(\\d+)\\%\\s*,\\s*(\\d+)\\%\\s*(,\\s*([0-9]*\\.?[0-9]+)\\s*)?$/.exec(o)){var a=parseFloat(i[1])/360,s=parseInt(i[2],10)/100,l=parseInt(i[3],10)/100;return t(i[5]),this.setHSL(a,s,l)}}}else if(n=/^\\#([A-Fa-f0-9]+)$/.exec(e)){var u=n[1],c=u.length;if(3===c)return this.r=parseInt(u.charAt(0)+u.charAt(0),16)/255,this.g=parseInt(u.charAt(1)+u.charAt(1),16)/255,this.b=parseInt(u.charAt(2)+u.charAt(2),16)/255,this;if(6===c)return this.r=parseInt(u.charAt(0)+u.charAt(1),16)/255,this.g=parseInt(u.charAt(2)+u.charAt(3),16)/255,this.b=parseInt(u.charAt(4)+u.charAt(5),16)/255,this}if(e&&e.length>0){var u=ws[e];void 0!==u?this.setHex(u):console.warn(\"THREE.Color: Unknown color \"+e)}return this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(e){return this.r=e.r,this.g=e.g,this.b=e.b,this},copyGammaToLinear:function(e,t){return void 0===t&&(t=2),this.r=Math.pow(e.r,t),this.g=Math.pow(e.g,t),this.b=Math.pow(e.b,t),this},copyLinearToGamma:function(e,t){void 0===t&&(t=2);var n=t>0?1/t:1;return this.r=Math.pow(e.r,n),this.g=Math.pow(e.g,n),this.b=Math.pow(e.b,n),this},convertGammaToLinear:function(){var e=this.r,t=this.g,n=this.b;return this.r=e*e,this.g=t*t,this.b=n*n,this},convertLinearToGamma:function(){return this.r=Math.sqrt(this.r),this.g=Math.sqrt(this.g),this.b=Math.sqrt(this.b),this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return(\"000000\"+this.getHex().toString(16)).slice(-6)},getHSL:function(e){var t,n,i=e||{h:0,s:0,l:0},r=this.r,o=this.g,a=this.b,s=Math.max(r,o,a),l=Math.min(r,o,a),u=(l+s)/2;if(l===s)t=0,n=0;else{var c=s-l;switch(n=u<=.5?c/(s+l):c/(2-s-l),s){case r:t=(o-a)/c+(othis.max.x||e.ythis.max.y)},containsBox:function(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:function(e,t){return(t||new r).set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(e){return!(e.max.xthis.max.x||e.max.ythis.max.y)},clampPoint:function(e,t){return(t||new r).copy(e).clamp(this.min,this.max)},distanceToPoint:function(){var e=new r;return function(t){return e.copy(t).clamp(this.min,this.max).sub(t).length()}}(),intersect:function(e){return this.min.max(e.min),this.max.min(e.max),this},union:function(e){return this.min.min(e.min),this.max.max(e.max),this},translate:function(e){return this.min.add(e),this.max.add(e),this},equals:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}};var Es=0;Q.prototype={constructor:Q,isMaterial:!0,get needsUpdate(){return this._needsUpdate},set needsUpdate(e){!0===e&&this.update(),this._needsUpdate=e},setValues:function(e){if(void 0!==e)for(var t in e){var n=e[t];if(void 0!==n){var i=this[t];void 0!==i?i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[t]=\"overdraw\"===t?Number(n):n:console.warn(\"THREE.\"+this.type+\": '\"+t+\"' is not a property of this material.\")}else console.warn(\"THREE.Material: '\"+t+\"' parameter is undefined.\")}},toJSON:function(e){function t(e){var t=[];for(var n in e){var i=e[n];delete i.metadata,t.push(i)}return t}var n=void 0===e;n&&(e={textures:{},images:{}});var i={metadata:{version:4.4,type:\"Material\",generator:\"Material.toJSON\"}};if(i.uuid=this.uuid,i.type=this.type,\"\"!==this.name&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),void 0!==this.roughness&&(i.roughness=this.roughness),void 0!==this.metalness&&(i.metalness=this.metalness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),void 0!==this.shininess&&(i.shininess=this.shininess),void 0!==this.clearCoat&&(i.clearCoat=this.clearCoat),void 0!==this.clearCoatRoughness&&(i.clearCoatRoughness=this.clearCoatRoughness),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,i.reflectivity=this.reflectivity),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.size&&(i.size=this.size),void 0!==this.sizeAttenuation&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==go&&(i.blending=this.blending),this.shading!==co&&(i.shading=this.shading),this.side!==ao&&(i.side=this.side),this.vertexColors!==ho&&(i.vertexColors=this.vertexColors),this.opacity<1&&(i.opacity=this.opacity),!0===this.transparent&&(i.transparent=this.transparent),i.depthFunc=this.depthFunc,i.depthTest=this.depthTest,i.depthWrite=this.depthWrite,this.alphaTest>0&&(i.alphaTest=this.alphaTest),!0===this.premultipliedAlpha&&(i.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(i.wireframe=this.wireframe),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),\"round\"!==this.wireframeLinecap&&(i.wireframeLinecap=this.wireframeLinecap),\"round\"!==this.wireframeLinejoin&&(i.wireframeLinejoin=this.wireframeLinejoin),i.skinning=this.skinning,i.morphTargets=this.morphTargets,n){var r=t(e.textures),o=t(e.images);r.length>0&&(i.textures=r),o.length>0&&(i.images=o)}return i},clone:function(){return(new this.constructor).copy(this)},copy:function(e){this.name=e.name,this.fog=e.fog,this.lights=e.lights,this.blending=e.blending,this.side=e.side,this.shading=e.shading,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.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.alphaTest=e.alphaTest,this.premultipliedAlpha=e.premultipliedAlpha,this.overdraw=e.overdraw,this.visible=e.visible,this.clipShadows=e.clipShadows,this.clipIntersection=e.clipIntersection;var t=e.clippingPlanes,n=null;if(null!==t){var i=t.length;n=new Array(i);for(var r=0;r!==i;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this},update:function(){this.dispatchEvent({type:\"update\"})},dispose:function(){this.dispatchEvent({type:\"dispose\"})}},Object.assign(Q.prototype,i.prototype),$.prototype=Object.create(Q.prototype),$.prototype.constructor=$,$.prototype.isShaderMaterial=!0,$.prototype.copy=function(e){return Q.prototype.copy.call(this,e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=_s.clone(e.uniforms),this.defines=e.defines,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.lights=e.lights,this.clipping=e.clipping,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.morphNormals=e.morphNormals,this.extensions=e.extensions,this},$.prototype.toJSON=function(e){var t=Q.prototype.toJSON.call(this,e);return t.uniforms=this.uniforms,t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t},ee.prototype=Object.create(Q.prototype),ee.prototype.constructor=ee,ee.prototype.isMeshDepthMaterial=!0,ee.prototype.copy=function(e){return Q.prototype.copy.call(this,e),this.depthPacking=e.depthPacking,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this},te.prototype={constructor:te,isBox3:!0,set:function(e,t){return this.min.copy(e),this.max.copy(t),this},setFromArray:function(e){for(var t=1/0,n=1/0,i=1/0,r=-1/0,o=-1/0,a=-1/0,s=0,l=e.length;sr&&(r=u),c>o&&(o=c),d>a&&(a=d)}return this.min.set(t,n,i),this.max.set(r,o,a),this},setFromBufferAttribute:function(e){for(var t=1/0,n=1/0,i=1/0,r=-1/0,o=-1/0,a=-1/0,s=0,l=e.count;sr&&(r=u),c>o&&(o=c),d>a&&(a=d)}return this.min.set(t,n,i),this.max.set(r,o,a),this},setFromPoints:function(e){this.makeEmpty();for(var t=0,n=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)},containsBox:function(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:function(e,t){return(t||new c).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:function(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)},intersectsSphere:function(){var e;return function(t){return void 0===e&&(e=new c),this.clampPoint(t.center,e),e.distanceToSquared(t.center)<=t.radius*t.radius}}(),intersectsPlane:function(e){var 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},clampPoint:function(e,t){return(t||new c).copy(e).clamp(this.min,this.max)},distanceToPoint:function(){var e=new c;return function(t){return e.copy(t).clamp(this.min,this.max).sub(t).length()}}(),getBoundingSphere:function(){var e=new c;return function(t){var n=t||new ne;return this.getCenter(n.center),n.radius=.5*this.getSize(e).length(),n}}(),intersect:function(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this},union:function(e){return this.min.min(e.min),this.max.max(e.max),this},applyMatrix4:function(){var e=[new c,new c,new c,new c,new c,new c,new c,new c];return function(t){return this.isEmpty()?this:(e[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),e[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),e[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),e[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),e[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),e[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),e[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),e[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(e),this)}}(),translate:function(e){return this.min.add(e),this.max.add(e),this},equals:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}},ne.prototype={constructor:ne,set:function(e,t){return this.center.copy(e),this.radius=t,this},setFromPoints:function(){var e;return function(t,n){void 0===e&&(e=new te);var i=this.center;void 0!==n?i.copy(n):e.setFromPoints(t).getCenter(i);for(var r=0,o=0,a=t.length;othis.radius*this.radius&&(i.sub(this.center).normalize(),i.multiplyScalar(this.radius).add(this.center)),i},getBoundingBox:function(e){var t=e||new te;return t.set(this.center,this.center),t.expandByScalar(this.radius),t},applyMatrix4:function(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this},translate:function(e){return this.center.add(e),this},equals:function(e){return e.center.equals(this.center)&&e.radius===this.radius}},ie.prototype={constructor:ie,isMatrix3:!0,set:function(e,t,n,i,r,o,a,s,l){var u=this.elements;return u[0]=e,u[1]=i,u[2]=a,u[3]=t,u[4]=r,u[5]=s,u[6]=n,u[7]=o,u[8]=l,this},identity:function(){return this.set(1,0,0,0,1,0,0,0,1),this},clone:function(){return(new this.constructor).fromArray(this.elements)},copy:function(e){var t=e.elements;return this.set(t[0],t[3],t[6],t[1],t[4],t[7],t[2],t[5],t[8]),this},setFromMatrix4:function(e){var 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},applyToBufferAttribute:function(){var e;return function(t){void 0===e&&(e=new c);for(var n=0,i=t.count;n1))return i.copy(r).multiplyScalar(a).add(t.start)}else if(0===this.distanceToPoint(t.start))return i.copy(t.start)}}(),intersectsLine:function(e){var t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0},intersectsBox:function(e){return e.intersectsPlane(this)},intersectsSphere:function(e){return e.intersectsPlane(this)},coplanarPoint:function(e){return(e||new c).copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(){var e=new c,t=new ie;return function(n,i){var r=this.coplanarPoint(e).applyMatrix4(n),o=i||t.getNormalMatrix(n),a=this.normal.applyMatrix3(o).normalize();return this.constant=-r.dot(a),this}}(),translate:function(e){return this.constant=this.constant-e.dot(this.normal),this},equals:function(e){return e.normal.equals(this.normal)&&e.constant===this.constant}},oe.prototype={constructor:oe,set:function(e,t,n,i,r,o){var a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(n),a[3].copy(i),a[4].copy(r),a[5].copy(o),this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){for(var t=this.planes,n=0;n<6;n++)t[n].copy(e.planes[n]);return this},setFromMatrix:function(e){var t=this.planes,n=e.elements,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],u=n[6],c=n[7],d=n[8],h=n[9],f=n[10],p=n[11],m=n[12],g=n[13],v=n[14],y=n[15];return t[0].setComponents(a-i,c-s,p-d,y-m).normalize(),t[1].setComponents(a+i,c+s,p+d,y+m).normalize(),t[2].setComponents(a+r,c+l,p+h,y+g).normalize(),t[3].setComponents(a-r,c-l,p-h,y-g).normalize(),t[4].setComponents(a-o,c-u,p-f,y-v).normalize(),t[5].setComponents(a+o,c+u,p+f,y+v).normalize(),this},intersectsObject:function(){var e=new ne;return function(t){var n=t.geometry;return null===n.boundingSphere&&n.computeBoundingSphere(),e.copy(n.boundingSphere).applyMatrix4(t.matrixWorld),this.intersectsSphere(e)}}(),intersectsSprite:function(){var e=new ne;return function(t){return e.center.set(0,0,0),e.radius=.7071067811865476,e.applyMatrix4(t.matrixWorld),this.intersectsSphere(e)}}(),intersectsSphere:function(e){for(var t=this.planes,n=e.center,i=-e.radius,r=0;r<6;r++){if(t[r].distanceToPoint(n)0?n.min.x:n.max.x,t.x=o.normal.x>0?n.max.x:n.min.x,e.y=o.normal.y>0?n.min.y:n.max.y,t.y=o.normal.y>0?n.max.y:n.min.y,e.z=o.normal.z>0?n.min.z:n.max.z,t.z=o.normal.z>0?n.max.z:n.min.z;var a=o.distanceToPoint(e),s=o.distanceToPoint(t);if(a<0&&s<0)return!1}return!0}}(),containsPoint:function(e){for(var t=this.planes,n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}},se.prototype={constructor:se,set:function(e,t){return this.origin.copy(e),this.direction.copy(t),this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this},at:function(e,t){return(t||new c).copy(this.direction).multiplyScalar(e).add(this.origin)},lookAt:function(e){return this.direction.copy(e).sub(this.origin).normalize(),this},recast:function(){var e=new c;return function(t){return this.origin.copy(this.at(t,e)),this}}(),closestPointToPoint:function(e,t){var n=t||new c;n.subVectors(e,this.origin);var i=n.dot(this.direction);return i<0?n.copy(this.origin):n.copy(this.direction).multiplyScalar(i).add(this.origin)},distanceToPoint:function(e){return Math.sqrt(this.distanceSqToPoint(e))},distanceSqToPoint:function(){var e=new c;return function(t){var n=e.subVectors(t,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(t):(e.copy(this.direction).multiplyScalar(n).add(this.origin),e.distanceToSquared(t))}}(),distanceSqToSegment:function(){var e=new c,t=new c,n=new c;return function(i,r,o,a){e.copy(i).add(r).multiplyScalar(.5),t.copy(r).sub(i).normalize(),n.copy(this.origin).sub(e);var s,l,u,c,d=.5*i.distanceTo(r),h=-this.direction.dot(t),f=n.dot(this.direction),p=-n.dot(t),m=n.lengthSq(),g=Math.abs(1-h*h);if(g>0)if(s=h*p-f,l=h*f-p,c=d*g,s>=0)if(l>=-c)if(l<=c){var v=1/g;s*=v,l*=v,u=s*(s+h*l+2*f)+l*(h*s+l+2*p)+m}else l=d,s=Math.max(0,-(h*l+f)),u=-s*s+l*(l+2*p)+m;else l=-d,s=Math.max(0,-(h*l+f)),u=-s*s+l*(l+2*p)+m;else l<=-c?(s=Math.max(0,-(-h*d+f)),l=s>0?-d:Math.min(Math.max(-d,-p),d),u=-s*s+l*(l+2*p)+m):l<=c?(s=0,l=Math.min(Math.max(-d,-p),d),u=l*(l+2*p)+m):(s=Math.max(0,-(h*d+f)),l=s>0?d:Math.min(Math.max(-d,-p),d),u=-s*s+l*(l+2*p)+m);else l=h>0?-d:d,s=Math.max(0,-(h*l+f)),u=-s*s+l*(l+2*p)+m;return o&&o.copy(this.direction).multiplyScalar(s).add(this.origin),a&&a.copy(t).multiplyScalar(l).add(e),u}}(),intersectSphere:function(){var e=new c;return function(t,n){e.subVectors(t.center,this.origin);var i=e.dot(this.direction),r=e.dot(e)-i*i,o=t.radius*t.radius;if(r>o)return null;var a=Math.sqrt(o-r),s=i-a,l=i+a;return s<0&&l<0?null:s<0?this.at(l,n):this.at(s,n)}}(),intersectsSphere:function(e){return this.distanceToPoint(e.center)<=e.radius},distanceToPlane:function(e){var t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;var n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null},intersectPlane:function(e,t){var n=this.distanceToPlane(e);return null===n?null:this.at(n,t)},intersectsPlane:function(e){var t=e.distanceToPoint(this.origin);return 0===t||e.normal.dot(this.direction)*t<0},intersectBox:function(e,t){var n,i,r,o,a,s,l=1/this.direction.x,u=1/this.direction.y,c=1/this.direction.z,d=this.origin;return l>=0?(n=(e.min.x-d.x)*l,i=(e.max.x-d.x)*l):(n=(e.max.x-d.x)*l,i=(e.min.x-d.x)*l),u>=0?(r=(e.min.y-d.y)*u,o=(e.max.y-d.y)*u):(r=(e.max.y-d.y)*u,o=(e.min.y-d.y)*u),n>o||r>i?null:((r>n||n!==n)&&(n=r),(o=0?(a=(e.min.z-d.z)*c,s=(e.max.z-d.z)*c):(a=(e.max.z-d.z)*c,s=(e.min.z-d.z)*c),n>s||a>i?null:((a>n||n!==n)&&(n=a),(s=0?n:i,t)))},intersectsBox:function(){var e=new c;return function(t){return null!==this.intersectBox(t,e)}}(),intersectTriangle:function(){var e=new c,t=new c,n=new c,i=new c;return function(r,o,a,s,l){t.subVectors(o,r),n.subVectors(a,r),i.crossVectors(t,n);var u,c=this.direction.dot(i);if(c>0){if(s)return null;u=1}else{if(!(c<0))return null;u=-1,c=-c}e.subVectors(this.origin,r);var d=u*this.direction.dot(n.crossVectors(e,n));if(d<0)return null;var h=u*this.direction.dot(t.cross(e));if(h<0)return null;if(d+h>c)return null;var f=-u*e.dot(i);return f<0?null:this.at(f/c,l)}}(),applyMatrix4:function(e){return this.direction.add(this.origin).applyMatrix4(e),this.origin.applyMatrix4(e),this.direction.sub(this.origin),this.direction.normalize(),this},equals:function(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}},le.RotationOrders=[\"XYZ\",\"YZX\",\"ZXY\",\"XZY\",\"YXZ\",\"ZYX\"],le.DefaultOrder=\"XYZ\",le.prototype={constructor:le,isEuler:!0,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:function(e,t,n,i){return this._x=e,this._y=t,this._z=n,this._order=i||this._order,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._order)},copy:function(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this.onChangeCallback(),this},setFromRotationMatrix:function(e,t,n){var i=fs.clamp,r=e.elements,o=r[0],a=r[4],s=r[8],l=r[1],u=r[5],c=r[9],d=r[2],h=r[6],f=r[10];return t=t||this._order,\"XYZ\"===t?(this._y=Math.asin(i(s,-1,1)),Math.abs(s)<.99999?(this._x=Math.atan2(-c,f),this._z=Math.atan2(-a,o)):(this._x=Math.atan2(h,u),this._z=0)):\"YXZ\"===t?(this._x=Math.asin(-i(c,-1,1)),Math.abs(c)<.99999?(this._y=Math.atan2(s,f),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-d,o),this._z=0)):\"ZXY\"===t?(this._x=Math.asin(i(h,-1,1)),Math.abs(h)<.99999?(this._y=Math.atan2(-d,f),this._z=Math.atan2(-a,u)):(this._y=0,this._z=Math.atan2(l,o))):\"ZYX\"===t?(this._y=Math.asin(-i(d,-1,1)),Math.abs(d)<.99999?(this._x=Math.atan2(h,f),this._z=Math.atan2(l,o)):(this._x=0,this._z=Math.atan2(-a,u))):\"YZX\"===t?(this._z=Math.asin(i(l,-1,1)),Math.abs(l)<.99999?(this._x=Math.atan2(-c,u),this._y=Math.atan2(-d,o)):(this._x=0,this._y=Math.atan2(s,f))):\"XZY\"===t?(this._z=Math.asin(-i(a,-1,1)),Math.abs(a)<.99999?(this._x=Math.atan2(h,u),this._y=Math.atan2(s,o)):(this._x=Math.atan2(-c,f),this._y=0)):console.warn(\"THREE.Euler: .setFromRotationMatrix() given unsupported order: \"+t),this._order=t,!1!==n&&this.onChangeCallback(),this},setFromQuaternion:function(){var e;return function(t,n,i){return void 0===e&&(e=new d),e.makeRotationFromQuaternion(t),this.setFromRotationMatrix(e,n,i)}}(),setFromVector3:function(e,t){return this.set(e.x,e.y,e.z,t||this._order)},reorder:function(){var e=new u;return function(t){return e.setFromEuler(this),this.setFromQuaternion(e,t)}}(),equals:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order},fromArray:function(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:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e},toVector3:function(e){return e?e.set(this._x,this._y,this._z):new c(this._x,this._y,this._z)},onChange:function(e){return this.onChangeCallback=e,this},onChangeCallback:function(){}},ue.prototype={constructor:ue,set:function(e){this.mask=1<1){for(var t=0;t1)for(var t=0;t0){r.children=[];for(var o=0;o0&&(i.geometries=a),s.length>0&&(i.materials=s),l.length>0&&(i.textures=l),u.length>0&&(i.images=u)}return i.object=r,i},clone:function(e){return(new this.constructor).copy(this,e)},copy:function(e,t){if(void 0===t&&(t=!0),this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),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.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.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(var n=0;n0?o.multiplyScalar(1/Math.sqrt(a)):o.set(0,0,0)}}(),he.barycoordFromPoint=function(){var e=new c,t=new c,n=new c;return function(i,r,o,a,s){e.subVectors(a,r),t.subVectors(o,r),n.subVectors(i,r);var l=e.dot(e),u=e.dot(t),d=e.dot(n),h=t.dot(t),f=t.dot(n),p=l*h-u*u,m=s||new c;if(0===p)return m.set(-2,-1,-1);var g=1/p,v=(h*d-u*f)*g,y=(l*f-u*d)*g;return m.set(1-v-y,y,v)}}(),he.containsPoint=function(){var e=new c;return function(t,n,i,r){var o=he.barycoordFromPoint(t,n,i,r,e);return o.x>=0&&o.y>=0&&o.x+o.y<=1}}(),he.prototype={constructor:he,set:function(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this},setFromPointsAndIndices:function(e,t,n,i){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[i]),this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this},area:function(){var e=new c,t=new c;return function(){return e.subVectors(this.c,this.b),t.subVectors(this.a,this.b),.5*e.cross(t).length()}}(),midpoint:function(e){return(e||new c).addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},normal:function(e){return he.normal(this.a,this.b,this.c,e)},plane:function(e){return(e||new re).setFromCoplanarPoints(this.a,this.b,this.c)},barycoordFromPoint:function(e,t){return he.barycoordFromPoint(e,this.a,this.b,this.c,t)},containsPoint:function(e){return he.containsPoint(e,this.a,this.b,this.c)},closestPointToPoint:function(){var e,t,n,i;return function(r,o){void 0===e&&(e=new re,t=[new de,new de,new de],n=new c,i=new c);var a=o||new c,s=1/0;if(e.setFromCoplanarPoints(this.a,this.b,this.c),e.projectPoint(r,n),!0===this.containsPoint(n))a.copy(n);else{t[0].set(this.a,this.b),t[1].set(this.b,this.c),t[2].set(this.c,this.a);for(var l=0;l0,s=o[1]&&o[1].length>0,l=e.morphTargets,u=l.length;if(u>0){t=[];for(var c=0;c0){d=[];for(var c=0;c0)for(var m=0;m0&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var e,t,n;for(this.computeFaceNormals(),e=0,t=this.faces.length;e0&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var e,t,n,i,r;for(n=0,i=this.faces.length;n0&&(e+=t[n].distanceTo(t[n-1])),this.lineDistances[n]=e},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new te),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new ne),this.boundingSphere.setFromPoints(this.vertices)},merge:function(e,t,n){if(!1===(e&&e.isGeometry))return void console.error(\"THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.\",e);var i,r=this.vertices.length,o=this.vertices,a=e.vertices,s=this.faces,l=e.faces,u=this.faceVertexUvs[0],c=e.faceVertexUvs[0],d=this.colors,h=e.colors;void 0===n&&(n=0),void 0!==t&&(i=(new ie).getNormalMatrix(t));for(var f=0,p=a.length;f=0;n--){var p=h[n];for(this.faces.splice(p,1),a=0,s=this.faceVertexUvs.length;a0,_=v.vertexNormals.length>0,x=1!==v.color.r||1!==v.color.g||1!==v.color.b,w=v.vertexColors.length>0,M=0;if(M=e(M,0,0),M=e(M,1,!0),M=e(M,2,!1),M=e(M,3,y),M=e(M,4,b),M=e(M,5,_),M=e(M,6,x),M=e(M,7,w),c.push(M),c.push(v.a,v.b,v.c),c.push(v.materialIndex),y){var S=this.faceVertexUvs[0][l];c.push(i(S[0]),i(S[1]),i(S[2]))}if(b&&c.push(t(v.normal)),_){var E=v.vertexNormals;c.push(t(E[0]),t(E[1]),t(E[2]))}if(x&&c.push(n(v.color)),w){var T=v.vertexColors;c.push(n(T[0]),n(T[1]),n(T[2]))}}return r.data={},r.data.vertices=s,r.data.normals=d,f.length>0&&(r.data.colors=f),m.length>0&&(r.data.uvs=[m]),r.data.faces=c,r},clone:function(){return(new Oe).copy(this)},copy:function(e){var t,n,i,r,o,a;this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingBox=null,this.boundingSphere=null,this.name=e.name;var s=e.vertices;for(t=0,n=s.length;t65535?we:_e)(e,1):this.index=e},addAttribute:function(e,t){return!1===(t&&t.isBufferAttribute)&&!1===(t&&t.isInterleavedBufferAttribute)?(console.warn(\"THREE.BufferGeometry: .addAttribute() now expects ( name, attribute ).\"),void this.addAttribute(e,new me(arguments[1],arguments[2]))):\"index\"===e?(console.warn(\"THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute.\"),void this.setIndex(t)):(this.attributes[e]=t,this)},getAttribute:function(e){return this.attributes[e]},removeAttribute:function(e){return delete this.attributes[e],this},addGroup:function(e,t,n){this.groups.push({start:e,count:t,materialIndex:void 0!==n?n:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(e,t){this.drawRange.start=e,this.drawRange.count=t},applyMatrix:function(e){var t=this.attributes.position;void 0!==t&&(e.applyToBufferAttribute(t),t.needsUpdate=!0);var n=this.attributes.normal;if(void 0!==n){(new ie).getNormalMatrix(e).applyToBufferAttribute(n),n.needsUpdate=!0}return null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},rotateX:function(){var e;return function(t){return void 0===e&&(e=new d),e.makeRotationX(t),this.applyMatrix(e),this}}(),rotateY:function(){var e;return function(t){return void 0===e&&(e=new d),e.makeRotationY(t),this.applyMatrix(e),this}}(),rotateZ:function(){var e;return function(t){return void 0===e&&(e=new d),e.makeRotationZ(t),this.applyMatrix(e),this}}(),translate:function(){var e;return function(t,n,i){return void 0===e&&(e=new d),e.makeTranslation(t,n,i),this.applyMatrix(e),this}}(),scale:function(){var e;return function(t,n,i){return void 0===e&&(e=new d),e.makeScale(t,n,i),this.applyMatrix(e),this}}(),lookAt:function(){var e;return function(t){void 0===e&&(e=new ce),e.lookAt(t),e.updateMatrix(),this.applyMatrix(e.matrix)}}(),center:function(){this.computeBoundingBox();var e=this.boundingBox.getCenter().negate();return this.translate(e.x,e.y,e.z),e},setFromObject:function(e){var t=e.geometry;if(e.isPoints||e.isLine){var n=new Me(3*t.vertices.length,3),i=new Me(3*t.colors.length,3);if(this.addAttribute(\"position\",n.copyVector3sArray(t.vertices)),this.addAttribute(\"color\",i.copyColorsArray(t.colors)),t.lineDistances&&t.lineDistances.length===t.vertices.length){var r=new Me(t.lineDistances.length,1);this.addAttribute(\"lineDistance\",r.copyArray(t.lineDistances))}null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone())}else e.isMesh&&t&&t.isGeometry&&this.fromGeometry(t);return this},updateFromObject:function(e){var t=e.geometry;if(e.isMesh){var n=t.__directGeometry;if(!0===t.elementsNeedUpdate&&(n=void 0,t.elementsNeedUpdate=!1),void 0===n)return this.fromGeometry(t);n.verticesNeedUpdate=t.verticesNeedUpdate,n.normalsNeedUpdate=t.normalsNeedUpdate,n.colorsNeedUpdate=t.colorsNeedUpdate,n.uvsNeedUpdate=t.uvsNeedUpdate,n.groupsNeedUpdate=t.groupsNeedUpdate,t.verticesNeedUpdate=!1,t.normalsNeedUpdate=!1,t.colorsNeedUpdate=!1,t.uvsNeedUpdate=!1,t.groupsNeedUpdate=!1,t=n}var i;return!0===t.verticesNeedUpdate&&(i=this.attributes.position,void 0!==i&&(i.copyVector3sArray(t.vertices),i.needsUpdate=!0),t.verticesNeedUpdate=!1),!0===t.normalsNeedUpdate&&(i=this.attributes.normal,void 0!==i&&(i.copyVector3sArray(t.normals),i.needsUpdate=!0),t.normalsNeedUpdate=!1),!0===t.colorsNeedUpdate&&(i=this.attributes.color,void 0!==i&&(i.copyColorsArray(t.colors),i.needsUpdate=!0),t.colorsNeedUpdate=!1),t.uvsNeedUpdate&&(i=this.attributes.uv,void 0!==i&&(i.copyVector2sArray(t.uvs),i.needsUpdate=!0),t.uvsNeedUpdate=!1),t.lineDistancesNeedUpdate&&(i=this.attributes.lineDistance,void 0!==i&&(i.copyArray(t.lineDistances),i.needsUpdate=!0),t.lineDistancesNeedUpdate=!1),t.groupsNeedUpdate&&(t.computeGroups(e.geometry),this.groups=t.groups,t.groupsNeedUpdate=!1),this},fromGeometry:function(e){return e.__directGeometry=(new Ee).fromGeometry(e),this.fromDirectGeometry(e.__directGeometry)},fromDirectGeometry:function(e){var t=new Float32Array(3*e.vertices.length);if(this.addAttribute(\"position\",new me(t,3).copyVector3sArray(e.vertices)),e.normals.length>0){var n=new Float32Array(3*e.normals.length);this.addAttribute(\"normal\",new me(n,3).copyVector3sArray(e.normals))}if(e.colors.length>0){var i=new Float32Array(3*e.colors.length);this.addAttribute(\"color\",new me(i,3).copyColorsArray(e.colors))}if(e.uvs.length>0){var r=new Float32Array(2*e.uvs.length);this.addAttribute(\"uv\",new me(r,2).copyVector2sArray(e.uvs))}if(e.uvs2.length>0){var o=new Float32Array(2*e.uvs2.length);this.addAttribute(\"uv2\",new me(o,2).copyVector2sArray(e.uvs2))}if(e.indices.length>0){var a=Te(e.indices)>65535?Uint32Array:Uint16Array,s=new a(3*e.indices.length);this.setIndex(new me(s,1).copyIndicesArray(e.indices))}this.groups=e.groups;for(var l in e.morphTargets){for(var u=[],c=e.morphTargets[l],d=0,h=c.length;d0){var m=new Me(4*e.skinIndices.length,4);this.addAttribute(\"skinIndex\",m.copyVector4sArray(e.skinIndices))}if(e.skinWeights.length>0){var g=new Me(4*e.skinWeights.length,4);this.addAttribute(\"skinWeight\",g.copyVector4sArray(e.skinWeights))}return null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone()),this},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new te);var e=this.attributes.position;void 0!==e?this.boundingBox.setFromBufferAttribute(e):this.boundingBox.makeEmpty(),(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The \"position\" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){var e=new te,t=new c;return function(){null===this.boundingSphere&&(this.boundingSphere=new ne);var n=this.attributes.position;if(n){var i=this.boundingSphere.center;e.setFromBufferAttribute(n),e.getCenter(i);for(var r=0,o=0,a=n.count;o0&&(e.data.groups=JSON.parse(JSON.stringify(s)));var l=this.boundingSphere;return null!==l&&(e.data.boundingSphere={center:l.center.toArray(),radius:l.radius}),e},clone:function(){return(new Ce).copy(this)},copy:function(e){var t,n,i;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.name=e.name;var r=e.index;null!==r&&this.setIndex(r.clone());var o=e.attributes;for(t in o){var a=o[t];this.addAttribute(t,a.clone())}var s=e.morphAttributes;for(t in s){var l=[],u=s[t];for(n=0,i=u.length;n0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var t=0,n=e.length;tt.far?null:{distance:l,point:_.clone(),object:e}}function n(n,i,r,o,a,c,d,h){s.fromBufferAttribute(o,c),l.fromBufferAttribute(o,d),u.fromBufferAttribute(o,h);var f=t(n,i,r,s,l,u,b);return f&&(a&&(m.fromBufferAttribute(a,c),g.fromBufferAttribute(a,d),v.fromBufferAttribute(a,h),f.uv=e(b,s,l,u,m,g,v)),f.face=new fe(c,d,h,he.normal(s,l,u)),f.faceIndex=c),f}var i=new d,o=new se,a=new ne,s=new c,l=new c,u=new c,h=new c,f=new c,p=new c,m=new r,g=new r,v=new r,y=new c,b=new c,_=new c;return function(r,c){var d=this.geometry,y=this.material,_=this.matrixWorld;if(void 0!==y&&(null===d.boundingSphere&&d.computeBoundingSphere(),a.copy(d.boundingSphere),a.applyMatrix4(_),!1!==r.ray.intersectsSphere(a)&&(i.getInverse(_),o.copy(r.ray).applyMatrix4(i),null===d.boundingBox||!1!==o.intersectsBox(d.boundingBox)))){var x;if(d.isBufferGeometry){var w,M,S,E,T,k=d.index,O=d.attributes.position,C=d.attributes.uv;if(null!==k)for(E=0,T=k.count;E0&&(L=z);for(var F=0,j=B.length;Fthis.scale.x*this.scale.y/4||n.push({distance:Math.sqrt(i),point:this.position,face:null,object:this})}}(),clone:function(){return new this.constructor(this.material).copy(this)}}),vt.prototype=Object.assign(Object.create(ce.prototype),{constructor:vt,copy:function(e){ce.prototype.copy.call(this,e,!1);for(var t=e.levels,n=0,i=t.length;n1){e.setFromMatrixPosition(n.matrixWorld),t.setFromMatrixPosition(this.matrixWorld);var r=e.distanceTo(t);i[0].object.visible=!0;for(var o=1,a=i.length;o=i[o].distance;o++)i[o-1].object.visible=!1,i[o].object.visible=!0;for(;oa)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:h.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}else for(var b=0,_=v.length/3-1;b<_;b+=p){u.fromArray(v,3*b),d.fromArray(v,3*b+3);var M=t.distanceSqToSegment(u,d,f,h);if(!(M>a)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:h.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}}else if(s.isGeometry)for(var E=s.vertices,T=E.length,b=0;ba)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:h.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Mt.prototype=Object.assign(Object.create(wt.prototype),{constructor:Mt,isLineSegments:!0}),St.prototype=Object.create(Q.prototype),St.prototype.constructor=St,St.prototype.isPointsMaterial=!0,St.prototype.copy=function(e){return Q.prototype.copy.call(this,e),this.color.copy(e.color),this.map=e.map,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this},Et.prototype=Object.assign(Object.create(ce.prototype),{constructor:Et,isPoints:!0,raycast:function(){var e=new d,t=new se,n=new ne;return function(i,r){function o(e,n){var o=t.distanceSqToPoint(e);if(oi.far)return;r.push({distance:u,distanceToRay:Math.sqrt(o),point:s.clone(),index:n,face:null,object:a})}}var a=this,s=this.geometry,l=this.matrixWorld,u=i.params.Points.threshold;if(null===s.boundingSphere&&s.computeBoundingSphere(),n.copy(s.boundingSphere),n.applyMatrix4(l),!1!==i.ray.intersectsSphere(n)){e.getInverse(l),t.copy(i.ray).applyMatrix4(e);var d=u/((this.scale.x+this.scale.y+this.scale.z)/3),h=d*d,f=new c;if(s.isBufferGeometry){var p=s.index,m=s.attributes,g=m.position.array;if(null!==p)for(var v=p.array,y=0,b=v.length;y=-Number.EPSILON&&O>=-Number.EPSILON&&k>=-Number.EPSILON))return!1;return!0}return function(t,n){var i=t.length;if(i<3)return null;var r,o,a,s=[],l=[],u=[];if(Cs.area(t)>0)for(o=0;o2;){if(d--<=0)return console.warn(\"THREE.ShapeUtils: Unable to triangulate polygon! in triangulate()\"),n?u:s;if(r=o,c<=r&&(r=0),o=r+1,c<=o&&(o=0),a=o+1,c<=a&&(a=0),e(t,r,o,a,c,l)){var h,f,p,m,g;for(h=l[r],f=l[o],p=l[a],s.push([t[h],t[f],t[p]]),u.push([l[r],l[o],l[a]]),m=o,g=o+1;g2&&e[t-1].equals(e[0])&&e.pop()}function i(e,t,n){return e.x!==t.x?e.xNumber.EPSILON){var p;if(h>0){if(f<0||f>h)return[];if((p=u*c-l*d)<0||p>h)return[]}else{if(f>0||f0||pE?[]:_===E?o?[]:[y]:x<=E?[y,b]:[y,M]}function o(e,t,n,i){var r=t.x-e.x,o=t.y-e.y,a=n.x-e.x,s=n.y-e.y,l=i.x-e.x,u=i.y-e.y,c=r*s-o*a,d=r*u-o*l;if(Math.abs(c)>Number.EPSILON){var h=l*s-u*a;return c>0?d>=0&&h>=0:d>=0||h>=0}return d>0}n(e),t.forEach(n);for(var a,s,l,u,c,d,h={},f=e.concat(),p=0,m=t.length;p0;){if(--x<0){console.log(\"Infinite Loop! Holes left:\"+g.length+\", Probably Hole outside Shape!\");break}for(a=_;ai&&(a=0);var s=o(m[e],m[r],m[a],n[t]);if(!s)return!1;var l=n.length-1,u=t-1;u<0&&(u=l);var c=t+1;return c>l&&(c=0),!!(s=o(n[t],n[u],n[c],m[e]))}(a,w)&&!function(e,t){var n,i,o;for(n=0;n0)return!0;return!1}(s,l)&&!function(e,n){var i,o,a,s,l;for(i=0;i0)return!0;return!1}(s,l)){i=w,g.splice(y,1),d=m.slice(0,a+1),h=m.slice(a),f=n.slice(i),p=n.slice(0,i+1),m=d.concat(f).concat(p).concat(h),_=a;break}if(i>=0)break;v[c]=!0}if(i>=0)break}}return m}(e,t),v=Cs.triangulate(g,!1);for(a=0,s=v.length;aNumber.EPSILON){var f=Math.sqrt(d),p=Math.sqrt(u*u+c*c),m=t.x-l/f,g=t.y+s/f,v=n.x-c/p,y=n.y+u/p,b=((v-m)*c-(y-g)*u)/(s*c-l*u);i=m+s*b-e.x,o=g+l*b-e.y;var _=i*i+o*o;if(_<=2)return new r(i,o);a=Math.sqrt(_/2)}else{var x=!1;s>Number.EPSILON?u>Number.EPSILON&&(x=!0):s<-Number.EPSILON?u<-Number.EPSILON&&(x=!0):Math.sign(l)===Math.sign(c)&&(x=!0),x?(i=-l,o=s,a=Math.sqrt(d)):(i=s,o=l,a=Math.sqrt(d/2))}return new r(i/a,o/a)}function o(e,t){var n,i;for(H=e.length;--H>=0;){n=H,i=H-1,i<0&&(i=e.length-1);var r=0,o=x+2*y;for(r=0;r=0;N--){for(z=N/y,F=g*Math.cos(z*Math.PI/2),B=v*Math.sin(z*Math.PI/2),H=0,q=D.length;H0||0===e.search(/^data\\:image\\/jpeg/);r.format=i?Ca:Pa,r.image=n,r.needsUpdate=!0,void 0!==t&&t(r)},n,i),r},setCrossOrigin:function(e){return this.crossOrigin=e,this},setPath:function(e){return this.path=e,this}}),An.prototype=Object.assign(Object.create(ce.prototype),{constructor:An,isLight:!0,copy:function(e){return ce.prototype.copy.call(this,e),this.color.copy(e.color),this.intensity=e.intensity,this},toJSON:function(e){var t=ce.prototype.toJSON.call(this,e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,void 0!==this.groundColor&&(t.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(t.object.distance=this.distance),void 0!==this.angle&&(t.object.angle=this.angle),void 0!==this.decay&&(t.object.decay=this.decay),void 0!==this.penumbra&&(t.object.penumbra=this.penumbra),void 0!==this.shadow&&(t.object.shadow=this.shadow.toJSON()),t}}),Rn.prototype=Object.assign(Object.create(An.prototype),{constructor:Rn,isHemisphereLight:!0,copy:function(e){return An.prototype.copy.call(this,e),this.groundColor.copy(e.groundColor),this}}),Object.assign(Ln.prototype,{copy:function(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){var e={};return 0!==this.bias&&(e.bias=this.bias),1!==this.radius&&(e.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}),In.prototype=Object.assign(Object.create(Ln.prototype),{constructor:In,isSpotLightShadow:!0,update:function(e){var t=2*fs.RAD2DEG*e.angle,n=this.mapSize.width/this.mapSize.height,i=e.distance||500,r=this.camera;t===r.fov&&n===r.aspect&&i===r.far||(r.fov=t,r.aspect=n,r.far=i,r.updateProjectionMatrix())}}),Dn.prototype=Object.assign(Object.create(An.prototype),{constructor:Dn,isSpotLight:!0,copy:function(e){return An.prototype.copy.call(this,e),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}),Nn.prototype=Object.assign(Object.create(An.prototype),{constructor:Nn,isPointLight:!0,copy:function(e){return An.prototype.copy.call(this,e),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}),Bn.prototype=Object.assign(Object.create(Ln.prototype),{constructor:Bn}),zn.prototype=Object.assign(Object.create(An.prototype),{constructor:zn,isDirectionalLight:!0,copy:function(e){return An.prototype.copy.call(this,e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}),Fn.prototype=Object.assign(Object.create(An.prototype),{constructor:Fn,isAmbientLight:!0});var Is={arraySlice:function(e,t,n){return Is.isTypedArray(e)?new e.constructor(e.subarray(t,n)):e.slice(t,n)},convertArray:function(e,t,n){return!e||!n&&e.constructor===t?e:\"number\"==typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)},isTypedArray:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},getKeyframeOrder:function(e){function t(t,n){return e[t]-e[n]}for(var n=e.length,i=new Array(n),r=0;r!==n;++r)i[r]=r;return i.sort(t),i},sortedArray:function(e,t,n){for(var i=e.length,r=new e.constructor(i),o=0,a=0;a!==i;++o)for(var s=n[o]*t,l=0;l!==t;++l)r[a++]=e[s+l];return r},flattenJSON:function(e,t,n,i){for(var r=1,o=e[0];void 0!==o&&void 0===o[i];)o=e[r++];if(void 0!==o){var a=o[i];if(void 0!==a)if(Array.isArray(a))do{a=o[i],void 0!==a&&(t.push(o.time),n.push.apply(n,a)),o=e[r++]}while(void 0!==o);else if(void 0!==a.toArray)do{a=o[i],void 0!==a&&(t.push(o.time),a.toArray(n,n.length)),o=e[r++]}while(void 0!==o);else do{a=o[i],void 0!==a&&(t.push(o.time),n.push(a)),o=e[r++]}while(void 0!==o)}}};jn.prototype={constructor:jn,evaluate:function(e){var t=this.parameterPositions,n=this._cachedIndex,i=t[n],r=t[n-1];e:{t:{var o;n:{i:if(!(e=r)break e;var s=t[1];e=r)break t}o=n,n=0}}for(;n>>1;et;)--o;if(++o,0!==r||o!==i){r>=o&&(o=Math.max(o,1),r=o-1);var a=this.getValueSize();this.times=Is.arraySlice(n,r,o),this.values=Is.arraySlice(this.values,r*a,o*a)}return this},validate:function(){var e=!0,t=this.getValueSize();t-Math.floor(t)!=0&&(console.error(\"invalid value size in track\",this),e=!1);var n=this.times,i=this.values,r=n.length;0===r&&(console.error(\"track is empty\",this),e=!1);for(var o=null,a=0;a!==r;a++){var s=n[a];if(\"number\"==typeof s&&isNaN(s)){console.error(\"time is not a valid number\",this,a,s),e=!1;break}if(null!==o&&o>s){console.error(\"out of order keys\",this,a,s,o),e=!1;break}o=s}if(void 0!==i&&Is.isTypedArray(i))for(var a=0,l=i.length;a!==l;++a){var u=i[a];if(isNaN(u)){console.error(\"value is not a valid number\",this,a,u),e=!1;break}}return e},optimize:function(){for(var e=this.times,t=this.values,n=this.getValueSize(),i=this.getInterpolation()===Za,r=1,o=e.length-1,a=1;a0){e[r]=e[o];for(var p=o*n,m=r*n,h=0;h!==n;++h)t[m+h]=t[p+h];++r}return r!==e.length&&(this.times=Is.arraySlice(e,0,r),this.values=Is.arraySlice(t,0,r*n)),this}},Hn.prototype=Object.assign(Object.create(Ds),{constructor:Hn,ValueTypeName:\"vector\"}),qn.prototype=Object.assign(Object.create(jn.prototype),{constructor:qn,interpolate_:function(e,t,n,i){for(var r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=e*a,l=(n-t)/(i-t),c=s+a;s!==c;s+=4)u.slerpFlat(r,0,o,s-a,o,s,l);return r}}),Yn.prototype=Object.assign(Object.create(Ds),{constructor:Yn,ValueTypeName:\"quaternion\",DefaultInterpolation:Ka,InterpolantFactoryMethodLinear:function(e){return new qn(this.times,this.values,this.getValueSize(),e)},InterpolantFactoryMethodSmooth:void 0}),Xn.prototype=Object.assign(Object.create(Ds),{constructor:Xn,ValueTypeName:\"number\"}),Kn.prototype=Object.assign(Object.create(Ds),{constructor:Kn,ValueTypeName:\"string\",ValueBufferType:Array,DefaultInterpolation:Xa,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Zn.prototype=Object.assign(Object.create(Ds),{constructor:Zn,ValueTypeName:\"bool\",ValueBufferType:Array,DefaultInterpolation:Xa,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Jn.prototype=Object.assign(Object.create(Ds),{constructor:Jn,ValueTypeName:\"color\"}),Qn.prototype=Ds,Ds.constructor=Qn,Object.assign(Qn,{parse:function(e){if(void 0===e.type)throw new Error(\"track type undefined, can not parse\");var t=Qn._getTrackTypeForValueTypeName(e.type);if(void 0===e.times){var n=[],i=[];Is.flattenJSON(e.keys,n,i,\"value\"),e.times=n,e.values=i}return void 0!==t.parse?t.parse(e):new t(e.name,e.times,e.values,e.interpolation)},toJSON:function(e){var t,n=e.constructor;if(void 0!==n.toJSON)t=n.toJSON(e);else{t={name:e.name,times:Is.convertArray(e.times,Array),values:Is.convertArray(e.values,Array)};var i=e.getInterpolation();i!==e.DefaultInterpolation&&(t.interpolation=i)}return t.type=e.ValueTypeName,t},_getTrackTypeForValueTypeName:function(e){switch(e.toLowerCase()){case\"scalar\":case\"double\":case\"float\":case\"number\":case\"integer\":return Xn;case\"vector\":case\"vector2\":case\"vector3\":case\"vector4\":return Hn;case\"color\":return Jn;case\"quaternion\":return Yn;case\"bool\":case\"boolean\":return Zn;case\"string\":return Kn}throw new Error(\"Unsupported typeName: \"+e)}}),$n.prototype={constructor:$n,resetDuration:function(){for(var e=this.tracks,t=0,n=0,i=e.length;n!==i;++n){var r=this.tracks[n];t=Math.max(t,r.times[r.times.length-1])}this.duration=t},trim:function(){for(var e=0;e1){var u=l[1],c=i[u];c||(i[u]=c=[]),c.push(s)}}var d=[];for(var u in i)d.push($n.CreateFromMorphTargetSequence(u,i[u],t,n));return d},parseAnimation:function(e,t){if(!e)return console.error(\" no animation in JSONLoader data\"),null;for(var n=function(e,t,n,i,r){if(0!==n.length){var o=[],a=[];Is.flattenJSON(n,o,a,i),0!==o.length&&r.push(new e(t,o,a))}},i=[],r=e.name||\"default\",o=e.length||-1,a=e.fps||30,s=e.hierarchy||[],l=0;l1?e.skinWeights[i+1]:0,l=t>2?e.skinWeights[i+2]:0,u=t>3?e.skinWeights[i+3]:0;n.skinWeights.push(new a(o,s,l,u))}if(e.skinIndices)for(var i=0,r=e.skinIndices.length;i1?e.skinIndices[i+1]:0,h=t>2?e.skinIndices[i+2]:0,f=t>3?e.skinIndices[i+3]:0;n.skinIndices.push(new a(c,d,h,f))}n.bones=e.bones,n.bones&&n.bones.length>0&&(n.skinWeights.length!==n.skinIndices.length||n.skinIndices.length!==n.vertices.length)&&console.warn(\"When skinning, number of vertices (\"+n.vertices.length+\"), skinIndices (\"+n.skinIndices.length+\"), and skinWeights (\"+n.skinWeights.length+\") should match.\")}(),function(t){if(void 0!==e.morphTargets)for(var i=0,r=e.morphTargets.length;i0){console.warn('THREE.JSONLoader: \"morphColors\" no longer supported. Using them as face colors.');for(var d=n.faces,h=e.morphColors[0].colors,i=0,r=d.length;i0&&(n.animations=t)}(),n.computeFaceNormals(),n.computeBoundingSphere(),void 0===e.materials||0===e.materials.length)return{geometry:n};var o=ni.prototype.initMaterials(e.materials,t,this.crossOrigin);return{geometry:n,materials:o}}}),Object.assign(ri.prototype,{load:function(e,t,n,i){\"\"===this.texturePath&&(this.texturePath=e.substring(0,e.lastIndexOf(\"/\")+1));var r=this;new En(r.manager).load(e,function(n){var o=null;try{o=JSON.parse(n)}catch(t){return void 0!==i&&i(t),void console.error(\"THREE:ObjectLoader: Can't parse \"+e+\".\",t.message)}var a=o.metadata;if(void 0===a||void 0===a.type||\"geometry\"===a.type.toLowerCase())return void console.error(\"THREE.ObjectLoader: Can't load \"+e+\". Use THREE.JSONLoader instead.\");r.parse(o,t)},n,i)},setTexturePath:function(e){this.texturePath=e},setCrossOrigin:function(e){this.crossOrigin=e},parse:function(e,t){var n=this.parseGeometries(e.geometries),i=this.parseImages(e.images,function(){void 0!==t&&t(a)}),r=this.parseTextures(e.textures,i),o=this.parseMaterials(e.materials,r),a=this.parseObject(e.object,n,o);return e.animations&&(a.animations=this.parseAnimations(e.animations)),void 0!==e.images&&0!==e.images.length||void 0!==t&&t(a),a},parseGeometries:function(e){var t={};if(void 0!==e)for(var n=new ii,i=new ti,r=0,o=e.length;r0){var r=new Sn(t),o=new On(r);o.setCrossOrigin(this.crossOrigin);for(var a=0,s=e.length;a0?new _t(s,l):new Pe(s,l);break;case\"LOD\":a=new vt;break;case\"Line\":a=new wt(r(t.geometry),o(t.material),t.mode);break;case\"LineSegments\":a=new Mt(r(t.geometry),o(t.material));break;case\"PointCloud\":case\"Points\":a=new Et(r(t.geometry),o(t.material));break;case\"Sprite\":a=new gt(o(t.material));break;case\"Group\":a=new Tt;break;case\"SkinnedMesh\":console.warn(\"THREE.ObjectLoader.parseObject() does not support SkinnedMesh type. Instantiates Object3D instead.\");default:a=new ce}if(a.uuid=t.uuid,void 0!==t.name&&(a.name=t.name),void 0!==t.matrix?(e.fromArray(t.matrix),e.decompose(a.position,a.quaternion,a.scale)):(void 0!==t.position&&a.position.fromArray(t.position),void 0!==t.rotation&&a.rotation.fromArray(t.rotation),void 0!==t.quaternion&&a.quaternion.fromArray(t.quaternion),void 0!==t.scale&&a.scale.fromArray(t.scale)),void 0!==t.castShadow&&(a.castShadow=t.castShadow),void 0!==t.receiveShadow&&(a.receiveShadow=t.receiveShadow),t.shadow&&(void 0!==t.shadow.bias&&(a.shadow.bias=t.shadow.bias),void 0!==t.shadow.radius&&(a.shadow.radius=t.shadow.radius),void 0!==t.shadow.mapSize&&a.shadow.mapSize.fromArray(t.shadow.mapSize),void 0!==t.shadow.camera&&(a.shadow.camera=this.parseObject(t.shadow.camera))),void 0!==t.visible&&(a.visible=t.visible),void 0!==t.userData&&(a.userData=t.userData),void 0!==t.children)for(var u in t.children)a.add(this.parseObject(t.children[u],n,i));if(\"LOD\"===t.type)for(var c=t.levels,d=0;d0)){l=r;break}l=r-1}if(r=l,i[r]===n){var u=r/(o-1);return u}var c=i[r],d=i[r+1],h=d-c,f=(n-c)/h,u=(r+f)/(o-1);return u},getTangent:function(e){var t=e-1e-4,n=e+1e-4;t<0&&(t=0),n>1&&(n=1);var i=this.getPoint(t);return this.getPoint(n).clone().sub(i).normalize()},getTangentAt:function(e){var t=this.getUtoTmapping(e);return this.getTangent(t)},computeFrenetFrames:function(e,t){var n,i,r,o=new c,a=[],s=[],l=[],u=new c,h=new d;for(n=0;n<=e;n++)i=n/e,a[n]=this.getTangentAt(i),a[n].normalize();s[0]=new c,l[0]=new c;var f=Number.MAX_VALUE,p=Math.abs(a[0].x),m=Math.abs(a[0].y),g=Math.abs(a[0].z);for(p<=f&&(f=p,o.set(1,0,0)),m<=f&&(f=m,o.set(0,1,0)),g<=f&&o.set(0,0,1),u.crossVectors(a[0],o).normalize(),s[0].crossVectors(a[0],u),l[0].crossVectors(a[0],s[0]),n=1;n<=e;n++)s[n]=s[n-1].clone(),l[n]=l[n-1].clone(),u.crossVectors(a[n-1],a[n]),u.length()>Number.EPSILON&&(u.normalize(),r=Math.acos(fs.clamp(a[n-1].dot(a[n]),-1,1)),s[n].applyMatrix4(h.makeRotationAxis(u,r))),l[n].crossVectors(a[n],s[n]);if(!0===t)for(r=Math.acos(fs.clamp(s[0].dot(s[e]),-1,1)),r/=e,a[0].dot(u.crossVectors(s[0],s[e]))>0&&(r=-r),n=1;n<=e;n++)s[n].applyMatrix4(h.makeRotationAxis(a[n],r*n)),l[n].crossVectors(a[n],s[n]);return{tangents:a,normals:s,binormals:l}}},gi.prototype=Object.create(mi.prototype),gi.prototype.constructor=gi,gi.prototype.isLineCurve=!0,gi.prototype.getPoint=function(e){if(1===e)return this.v2.clone();var t=this.v2.clone().sub(this.v1);return t.multiplyScalar(e).add(this.v1),t},gi.prototype.getPointAt=function(e){return this.getPoint(e)},gi.prototype.getTangent=function(e){return this.v2.clone().sub(this.v1).normalize()},vi.prototype=Object.assign(Object.create(mi.prototype),{constructor:vi,add:function(e){this.curves.push(e)},closePath:function(){var e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);e.equals(t)||this.curves.push(new gi(t,e))},getPoint:function(e){for(var t=e*this.getLength(),n=this.getCurveLengths(),i=0;i=t){var r=n[i]-t,o=this.curves[i],a=o.getLength(),s=0===a?0:1-r/a;return o.getPointAt(s)}i++}return null},getLength:function(){var e=this.getCurveLengths();return e[e.length-1]},updateArcLengths:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var e=[],t=0,n=0,i=this.curves.length;n1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n},createPointsGeometry:function(e){var t=this.getPoints(e);return this.createGeometry(t)},createSpacedPointsGeometry:function(e){var t=this.getSpacedPoints(e);return this.createGeometry(t)},createGeometry:function(e){for(var t=new Oe,n=0,i=e.length;nt;)n-=t;nt.length-2?t.length-1:i+1],u=t[i>t.length-3?t.length-1:i+2];return new r(oi(o,a.x,s.x,l.x,u.x),oi(o,a.y,s.y,l.y,u.y))},_i.prototype=Object.create(mi.prototype),_i.prototype.constructor=_i,_i.prototype.getPoint=function(e){var t=this.v0,n=this.v1,i=this.v2,o=this.v3;return new r(pi(e,t.x,n.x,i.x,o.x),pi(e,t.y,n.y,i.y,o.y))},xi.prototype=Object.create(mi.prototype),xi.prototype.constructor=xi,xi.prototype.getPoint=function(e){var t=this.v0,n=this.v1,i=this.v2;return new r(ui(e,t.x,n.x,i.x),ui(e,t.y,n.y,i.y))};var Ns=Object.assign(Object.create(vi.prototype),{fromPoints:function(e){this.moveTo(e[0].x,e[0].y);for(var t=1,n=e.length;t0){var u=l.getPoint(0);u.equals(this.currentPoint)||this.lineTo(u.x,u.y)}this.curves.push(l);var c=l.getPoint(1);this.currentPoint.copy(c)}});wi.prototype=Ns,Ns.constructor=wi,Mi.prototype=Object.assign(Object.create(Ns),{constructor:Mi,getPointsHoles:function(e){for(var t=[],n=0,i=this.holes.length;n1){for(var v=!1,y=[],b=0,_=h.length;b<_;b++)d[b]=[];for(var b=0,_=h.length;b<_;b++)for(var x=f[b],w=0;wNumber.EPSILON){if(u<0&&(a=t[o],l=-l,s=t[r],u=-u),e.ys.y)continue;if(e.y===a.y){if(e.x===a.x)return!0}else{var c=u*(e.x-a.x)-l*(e.y-a.y);if(0===c)return!0;if(c<0)continue;i=!i}}else{if(e.y!==a.y)continue;if(s.x<=e.x&&e.x<=a.x||a.x<=e.x&&e.x<=s.x)return!0}}return i})(M.p,h[E].p)&&(b!==E&&y.push({froms:b,tos:E,hole:w}),S?(S=!1,d[E].push(M)):v=!0);S&&d[b].push(M)}y.length>0&&(v||(f=d))}for(var T,m=0,k=h.length;m0){this.source.connect(this.filters[0]);for(var e=1,t=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(var e=1,t=this.filters.length;e=.5)for(var o=0;o!==r;++o)e[t+o]=e[n+o]},_slerp:function(e,t,n,i,r){u.slerpFlat(e,t,e,t,e,n,i)},_lerp:function(e,t,n,i,r){for(var o=1-i,a=0;a!==r;++a){var s=t+a;e[s]=e[s]*o+e[n+a]*i}}},Ni.prototype={constructor:Ni,getValue:function(e,t){this.bind(),this.getValue(e,t)},setValue:function(e,t){this.bind(),this.setValue(e,t)},bind:function(){var e=this.node,t=this.parsedPath,n=t.objectName,i=t.propertyName,r=t.propertyIndex;if(e||(e=Ni.findNode(this.rootNode,t.nodeName)||this.rootNode,this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!e)return void console.error(\" trying to update node for track: \"+this.path+\" but it wasn't found.\");if(n){var o=t.objectIndex;switch(n){case\"materials\":if(!e.material)return void console.error(\" can not bind to material as node does not have a material\",this);if(!e.material.materials)return void console.error(\" can not bind to material.materials as node.material does not have a materials array\",this);e=e.material.materials;break;case\"bones\":if(!e.skeleton)return void console.error(\" can not bind to bones as node does not have a skeleton\",this);e=e.skeleton.bones;for(var a=0;a=n){var d=n++,h=t[d];i[h.uuid]=c,t[c]=h,i[u]=d,t[d]=l;for(var f=0,p=o;f!==p;++f){var m=r[f],g=m[d],v=m[c];m[c]=g,m[d]=v}}}this.nCachedObjects_=n},uncache:function(e){for(var t=this._objects,n=t.length,i=this.nCachedObjects_,r=this._indicesByUUID,o=this._bindings,a=o.length,s=0,l=arguments.length;s!==l;++s){var u=arguments[s],c=u.uuid,d=r[c];if(void 0!==d)if(delete r[c],d0)for(var l=this._interpolants,u=this._propertyBindings,c=0,d=l.length;c!==d;++c)l[c].evaluate(a),u[c].accumulate(i,s)},_updateWeight:function(e){var t=0;if(this.enabled){t=this.weight;var n=this._weightInterpolant;if(null!==n){var i=n.evaluate(e)[0];t*=i,e>n.parameterPositions[1]&&(this.stopFading(),0===i&&(this.enabled=!1))}}return this._effectiveWeight=t,t},_updateTimeScale:function(e){var t=0;if(!this.paused){t=this.timeScale;var n=this._timeScaleInterpolant;if(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:function(e){var t=this.time+e;if(0===e)return t;var n=this._clip.duration,i=this.loop,r=this._loopCount;if(i===Ha){-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(t>=n)t=n;else{if(!(t<0))break e;t=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this._mixer.dispatchEvent({type:\"finished\",action:this,direction:e<0?-1:1})}}else{var o=i===Ya;if(-1===r&&(e>=0?(r=0,this._setEndings(!0,0===this.repetitions,o)):this._setEndings(0===this.repetitions,!0,o)),t>=n||t<0){var a=Math.floor(t/n);t-=n*a,r+=Math.abs(a);var s=this.repetitions-r;if(s<0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,t=e>0?n:0,this._mixer.dispatchEvent({type:\"finished\",action:this,direction:e>0?1:-1});else{if(0===s){var l=e<0;this._setEndings(l,!l,o)}else this._setEndings(!1,!1,o);this._loopCount=r,this._mixer.dispatchEvent({type:\"loop\",action:this,loopDelta:a})}}if(o&&1==(1&r))return this.time=t,n-t}return this.time=t,t},_setEndings:function(e,t,n){var i=this._interpolantSettings;n?(i.endingStart=Qa,i.endingEnd=Qa):(i.endingStart=e?this.zeroSlopeAtStart?Qa:Ja:$a,i.endingEnd=t?this.zeroSlopeAtEnd?Qa:Ja:$a)},_scheduleFading:function(e,t,n){var i=this._mixer,r=i.time,o=this._weightInterpolant;null===o&&(o=i._lendControlInterpolant(),this._weightInterpolant=o);var a=o.parameterPositions,s=o.sampleValues;return a[0]=r,s[0]=t,a[1]=r+e,s[1]=n,this}},Fi.prototype={constructor:Fi,clipAction:function(e,t){var n=t||this._root,i=n.uuid,r=\"string\"==typeof e?$n.findByName(n,e):e,o=null!==r?r.uuid:e,a=this._actionsByClip[o],s=null;if(void 0!==a){var l=a.actionByRoot[i];if(void 0!==l)return l;s=a.knownActions[0],null===r&&(r=s._clip)}if(null===r)return null;var u=new zi(this,r,t);return this._bindAction(u,s),this._addInactiveAction(u,o,i),u},existingAction:function(e,t){var n=t||this._root,i=n.uuid,r=\"string\"==typeof e?$n.findByName(n,e):e,o=r?r.uuid:e,a=this._actionsByClip[o];return void 0!==a?a.actionByRoot[i]||null:null},stopAllAction:function(){var e=this._actions,t=this._nActiveActions,n=this._bindings,i=this._nActiveBindings;this._nActiveActions=0,this._nActiveBindings=0;for(var r=0;r!==t;++r)e[r].reset();for(var r=0;r!==i;++r)n[r].useCount=0;return this},update:function(e){e*=this.timeScale;for(var t=this._actions,n=this._nActiveActions,i=this.time+=e,r=Math.sign(e),o=this._accuIndex^=1,a=0;a!==n;++a){var s=t[a];s.enabled&&s._update(i,e,r,o)}for(var l=this._bindings,u=this._nActiveBindings,a=0;a!==u;++a)l[a].apply(o);return this},getRoot:function(){return this._root},uncacheClip:function(e){var t=this._actions,n=e.uuid,i=this._actionsByClip,r=i[n];if(void 0!==r){for(var o=r.knownActions,a=0,s=o.length;a!==s;++a){var l=o[a];this._deactivateAction(l);var u=l._cacheIndex,c=t[t.length-1];l._cacheIndex=null,l._byClipCacheIndex=null,c._cacheIndex=u,t[u]=c,t.pop(),this._removeInactiveBindingsForAction(l)}delete i[n]}},uncacheRoot:function(e){var t=e.uuid,n=this._actionsByClip;for(var i in n){var r=n[i].actionByRoot,o=r[t];void 0!==o&&(this._deactivateAction(o),this._removeInactiveAction(o))}var a=this._bindingsByRootAndName,s=a[t];if(void 0!==s)for(var l in s){var u=s[l];u.restoreOriginalState(),this._removeInactiveBinding(u)}},uncacheAction:function(e,t){var n=this.existingAction(e,t);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}},Object.assign(Fi.prototype,{_bindAction:function(e,t){var n=e._localRoot||this._root,i=e._clip.tracks,r=i.length,o=e._propertyBindings,a=e._interpolants,s=n.uuid,l=this._bindingsByRootAndName,u=l[s];void 0===u&&(u={},l[s]=u);for(var c=0;c!==r;++c){var d=i[c],h=d.name,f=u[h];if(void 0!==f)o[c]=f;else{if(void 0!==(f=o[c])){null===f._cacheIndex&&(++f.referenceCount,this._addInactiveBinding(f,s,h));continue}var p=t&&t._propertyBindings[c].binding.parsedPath;f=new Di(Ni.create(n,h,p),d.ValueTypeName,d.getValueSize()),++f.referenceCount,this._addInactiveBinding(f,s,h),o[c]=f}a[c].resultBuffer=f.buffer}},_activateAction:function(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){var t=(e._localRoot||this._root).uuid,n=e._clip.uuid,i=this._actionsByClip[n];this._bindAction(e,i&&i.knownActions[0]),this._addInactiveAction(e,n,t)}for(var r=e._propertyBindings,o=0,a=r.length;o!==a;++o){var s=r[o];0==s.useCount++&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(e)}},_deactivateAction:function(e){if(this._isActiveAction(e)){for(var t=e._propertyBindings,n=0,i=t.length;n!==i;++n){var r=t[n];0==--r.useCount&&(r.restoreOriginalState(),this._takeBackBinding(r))}this._takeBackAction(e)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var 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:function(e){var t=e._cacheIndex;return null!==t&&t1){var u=l[1];i[u]||(i[u]={start:1/0,end:-1/0});var c=i[u];oc.end&&(c.end=o),t||(t=u)}}for(var u in i){var c=i[u];this.createAnimation(u,c.start,c.end,e)}this.firstAnimation=t},Qi.prototype.setAnimationDirectionForward=function(e){var t=this.animationsMap[e];t&&(t.direction=1,t.directionBackwards=!1)},Qi.prototype.setAnimationDirectionBackward=function(e){var t=this.animationsMap[e];t&&(t.direction=-1,t.directionBackwards=!0)},Qi.prototype.setAnimationFPS=function(e,t){var n=this.animationsMap[e];n&&(n.fps=t,n.duration=(n.end-n.start)/n.fps)},Qi.prototype.setAnimationDuration=function(e,t){var n=this.animationsMap[e];n&&(n.duration=t,n.fps=(n.end-n.start)/n.duration)},Qi.prototype.setAnimationWeight=function(e,t){var n=this.animationsMap[e];n&&(n.weight=t)},Qi.prototype.setAnimationTime=function(e,t){var n=this.animationsMap[e];n&&(n.time=t)},Qi.prototype.getAnimationTime=function(e){var t=0,n=this.animationsMap[e];return n&&(t=n.time),t},Qi.prototype.getAnimationDuration=function(e){var t=-1,n=this.animationsMap[e];return n&&(t=n.duration),t},Qi.prototype.playAnimation=function(e){var t=this.animationsMap[e];t?(t.time=0,t.active=!0):console.warn(\"THREE.MorphBlendMesh: animation[\"+e+\"] undefined in .playAnimation()\")},Qi.prototype.stopAnimation=function(e){var t=this.animationsMap[e];t&&(t.active=!1)},Qi.prototype.update=function(e){for(var t=0,n=this.animationsList.length;ti.duration||i.time<0)&&(i.direction*=-1,i.time>i.duration&&(i.time=i.duration,i.directionBackwards=!0),i.time<0&&(i.time=0,i.directionBackwards=!1)):(i.time=i.time%i.duration,i.time<0&&(i.time+=i.duration));var o=i.start+fs.clamp(Math.floor(i.time/r),0,i.length-1),a=i.weight;o!==i.currentFrame&&(this.morphTargetInfluences[i.lastFrame]=0,this.morphTargetInfluences[i.currentFrame]=1*a,this.morphTargetInfluences[o]=0,i.lastFrame=i.currentFrame,i.currentFrame=o);var s=i.time%r/r;i.directionBackwards&&(s=1-s),i.currentFrame!==i.lastFrame?(this.morphTargetInfluences[i.currentFrame]=s*a,this.morphTargetInfluences[i.lastFrame]=(1-s)*a):this.morphTargetInfluences[i.currentFrame]=a}}},$i.prototype=Object.create(ce.prototype),$i.prototype.constructor=$i,$i.prototype.isImmediateRenderObject=!0,er.prototype=Object.create(Mt.prototype),er.prototype.constructor=er,er.prototype.update=function(){var e=new c,t=new c,n=new ie;return function(){var i=[\"a\",\"b\",\"c\"];this.object.updateMatrixWorld(!0),n.getNormalMatrix(this.object.matrixWorld);var r=this.object.matrixWorld,o=this.geometry.attributes.position,a=this.object.geometry;if(a&&a.isGeometry)for(var s=a.vertices,l=a.faces,u=0,c=0,d=l.length;c.99999?this.quaternion.set(0,0,0,1):n.y<-.99999?this.quaternion.set(1,0,0,0):(t.set(n.z,0,-n.x).normalize(),e=Math.acos(n.y),this.quaternion.setFromAxisAngle(t,e))}}(),hr.prototype.setLength=function(e,t,n){void 0===t&&(t=.2*e),void 0===n&&(n=.2*t),this.line.scale.set(1,Math.max(0,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),this.cone.position.y=e,this.cone.updateMatrix()},hr.prototype.setColor=function(e){this.line.material.color.copy(e),this.cone.material.color.copy(e)},fr.prototype=Object.create(Mt.prototype),fr.prototype.constructor=fr;var Us=new c,Ws=new pr,Gs=new pr,Vs=new pr;mr.prototype=Object.create(mi.prototype),mr.prototype.constructor=mr,mr.prototype.getPoint=function(e){var t=this.points,n=t.length;n<2&&console.log(\"duh, you need at least 2 points\");var i=(n-(this.closed?0:1))*e,r=Math.floor(i),o=i-r;this.closed?r+=r>0?0:(Math.floor(Math.abs(r)/t.length)+1)*t.length:0===o&&r===n-1&&(r=n-2,o=1);var a,s,l,u;if(this.closed||r>0?a=t[(r-1)%n]:(Us.subVectors(t[0],t[1]).add(t[0]),a=Us),s=t[r%n],l=t[(r+1)%n],this.closed||r+20&&this.options.customizedToggles.clear(),this.monitor.update(e),this.trafficSignal.update(e),this.hmi.update(e),this.options.showPNCMonitor&&(this.planningData.update(e),this.controlData.update(e,this.hmi.vehicleParam),this.latency.update(e))}},{key:\"enableHMIButtonsOnly\",get:function(){return!this.isInitialized}}]),t}(),s=o(a.prototype,\"timestamp\",[I.observable],{enumerable:!0,initializer:function(){return 0}}),l=o(a.prototype,\"worldTimestamp\",[I.observable],{enumerable:!0,initializer:function(){return 0}}),u=o(a.prototype,\"sceneDimension\",[I.observable],{enumerable:!0,initializer:function(){return{width:window.innerWidth,height:window.innerHeight,widthRatio:1}}}),c=o(a.prototype,\"dimension\",[I.observable],{enumerable:!0,initializer:function(){return{width:window.innerWidth,height:window.innerHeight}}}),d=o(a.prototype,\"isInitialized\",[I.observable],{enumerable:!0,initializer:function(){return!1}}),h=o(a.prototype,\"hmi\",[I.observable],{enumerable:!0,initializer:function(){return new N.default}}),f=o(a.prototype,\"planningData\",[I.observable],{enumerable:!0,initializer:function(){return new X.default}}),p=o(a.prototype,\"controlData\",[I.observable],{enumerable:!0,initializer:function(){return new z.default}}),m=o(a.prototype,\"latency\",[I.observable],{enumerable:!0,initializer:function(){return new j.default}}),g=o(a.prototype,\"playback\",[I.observable],{enumerable:!0,initializer:function(){return null}}),v=o(a.prototype,\"trafficSignal\",[I.observable],{enumerable:!0,initializer:function(){return new $.default}}),y=o(a.prototype,\"meters\",[I.observable],{enumerable:!0,initializer:function(){return new W.default}}),b=o(a.prototype,\"monitor\",[I.observable],{enumerable:!0,initializer:function(){return new V.default}}),_=o(a.prototype,\"options\",[I.observable],{enumerable:!0,initializer:function(){return new q.default}}),x=o(a.prototype,\"routeEditingManager\",[I.observable],{enumerable:!0,initializer:function(){return new J.default}}),w=o(a.prototype,\"geolocation\",[I.observable],{enumerable:!0,initializer:function(){return{}}}),M=o(a.prototype,\"moduleDelay\",[I.observable],{enumerable:!0,initializer:function(){return I.observable.map()}}),S=o(a.prototype,\"newDisengagementReminder\",[I.observable],{enumerable:!0,initializer:function(){return!1}}),E=o(a.prototype,\"offlineViewErrorMsg\",[I.observable],{enumerable:!0,initializer:function(){return null}}),o(a.prototype,\"enableHMIButtonsOnly\",[I.computed],(0,C.default)(a.prototype,\"enableHMIButtonsOnly\"),a.prototype),o(a.prototype,\"updateTimestamp\",[I.action],(0,C.default)(a.prototype,\"updateTimestamp\"),a.prototype),o(a.prototype,\"updateWidthInPercentage\",[I.action],(0,C.default)(a.prototype,\"updateWidthInPercentage\"),a.prototype),o(a.prototype,\"setInitializationStatus\",[I.action],(0,C.default)(a.prototype,\"setInitializationStatus\"),a.prototype),o(a.prototype,\"updatePlanning\",[I.action],(0,C.default)(a.prototype,\"updatePlanning\"),a.prototype),o(a.prototype,\"setGeolocation\",[I.action],(0,C.default)(a.prototype,\"setGeolocation\"),a.prototype),o(a.prototype,\"enablePNCMonitor\",[I.action],(0,C.default)(a.prototype,\"enablePNCMonitor\"),a.prototype),o(a.prototype,\"disablePNCMonitor\",[I.action],(0,C.default)(a.prototype,\"disablePNCMonitor\"),a.prototype),o(a.prototype,\"setOfflineViewErrorMsg\",[I.action],(0,C.default)(a.prototype,\"setOfflineViewErrorMsg\"),a.prototype),o(a.prototype,\"updateModuleDelay\",[I.action],(0,C.default)(a.prototype,\"updateModuleDelay\"),a.prototype),a),te=new ee;(0,I.autorun)(function(){te.updateDimension()});PARAMETERS.debug.autoMonitorMessage&&setInterval(function(){var e=[{level:\"FATAL\",message:\"There is a fatal hardware issue detected. It might be due to an incorrect power management setup. Please see the logs for details.\"},{level:\"WARN\",message:\"The warning indicator on the instrument panel is on. This is usually due to a failure in engine.\"},{level:\"ERROR\",message:\"Invalid coordinates received from the localization module.\"},{level:\"INFO\",message:\"Monitor module has started and is succesfully initialized.\"}][Math.floor(4*Math.random())];te.monitor.insert(e.level,e.message,Date.now())},1e4);t.default=te}).call(t,n(141)(e))},function(e,t,n){var i=n(17),r=n(10),o=n(33),a=n(41),s=n(46),l=function(e,t,n){var u,c,d,h=e&l.F,f=e&l.G,p=e&l.S,m=e&l.P,g=e&l.B,v=e&l.W,y=f?r:r[t]||(r[t]={}),b=y.prototype,_=f?i:p?i[t]:(i[t]||{}).prototype;f&&(n=t);for(u in n)(c=!h&&_&&void 0!==_[u])&&s(y,u)||(d=c?_[u]:n[u],y[u]=f&&\"function\"!=typeof _[u]?n[u]:g&&c?o(d,i):v&&_[u]==d?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&\"function\"==typeof d?o(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[u]=d,e&l.R&&b&&!b[u]&&a(b,u,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){\"use strict\";var i,r,o=e.exports=n(36),a=n(205);o.codegen=n(305),o.fetch=n(307),o.path=n(309),o.fs=o.inquire(\"fs\"),o.toArray=function(e){if(e){for(var t=Object.keys(e),n=new Array(t.length),i=0;i-1}function h(e,t,n){for(var i=-1,r=null==e?0:e.length;++i-1;);return n}function B(e,t){for(var n=e.length;n--&&w(t,e[n],0)>-1;);return n}function z(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}function F(e){return\"\\\\\"+En[e]}function j(e,t){return null==e?ne:e[t]}function U(e){return gn.test(e)}function W(e){return vn.test(e)}function G(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function V(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function H(e,t){return function(n){return e(t(n))}}function q(e,t){for(var n=-1,i=e.length,r=0,o=[];++n>>1,Be=[[\"ary\",xe],[\"bind\",pe],[\"bindKey\",me],[\"curry\",ve],[\"curryRight\",ye],[\"flip\",Me],[\"partial\",be],[\"partialRight\",_e],[\"rearg\",we]],ze=\"[object Arguments]\",Fe=\"[object Array]\",je=\"[object AsyncFunction]\",Ue=\"[object Boolean]\",We=\"[object Date]\",Ge=\"[object DOMException]\",Ve=\"[object Error]\",He=\"[object Function]\",qe=\"[object GeneratorFunction]\",Ye=\"[object Map]\",Xe=\"[object Number]\",Ke=\"[object Null]\",Ze=\"[object Object]\",Je=\"[object Proxy]\",Qe=\"[object RegExp]\",$e=\"[object Set]\",et=\"[object String]\",tt=\"[object Symbol]\",nt=\"[object Undefined]\",it=\"[object WeakMap]\",rt=\"[object WeakSet]\",ot=\"[object ArrayBuffer]\",at=\"[object DataView]\",st=\"[object Float32Array]\",lt=\"[object Float64Array]\",ut=\"[object Int8Array]\",ct=\"[object Int16Array]\",dt=\"[object Int32Array]\",ht=\"[object Uint8Array]\",ft=\"[object Uint8ClampedArray]\",pt=\"[object Uint16Array]\",mt=\"[object Uint32Array]\",gt=/\\b__p \\+= '';/g,vt=/\\b(__p \\+=) '' \\+/g,yt=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,bt=/&(?:amp|lt|gt|quot|#39);/g,_t=/[&<>\"']/g,xt=RegExp(bt.source),wt=RegExp(_t.source),Mt=/<%-([\\s\\S]+?)%>/g,St=/<%([\\s\\S]+?)%>/g,Et=/<%=([\\s\\S]+?)%>/g,Tt=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,kt=/^\\w*$/,Ot=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,Ct=/[\\\\^$.*+?()[\\]{}|]/g,Pt=RegExp(Ct.source),At=/^\\s+|\\s+$/g,Rt=/^\\s+/,Lt=/\\s+$/,It=/\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,Dt=/\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,Nt=/,? & /,Bt=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g,zt=/\\\\(\\\\)?/g,Ft=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,jt=/\\w*$/,Ut=/^[-+]0x[0-9a-f]+$/i,Wt=/^0b[01]+$/i,Gt=/^\\[object .+?Constructor\\]$/,Vt=/^0o[0-7]+$/i,Ht=/^(?:0|[1-9]\\d*)$/,qt=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,Yt=/($^)/,Xt=/['\\n\\r\\u2028\\u2029\\\\]/g,Kt=\"\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\",Zt=\"\\\\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\",Jt=\"[\"+Zt+\"]\",Qt=\"[\"+Kt+\"]\",$t=\"[a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff]\",en=\"[^\\\\ud800-\\\\udfff\"+Zt+\"\\\\d+\\\\u2700-\\\\u27bfa-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xffA-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]\",tn=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",nn=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",rn=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",on=\"[A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]\",an=\"(?:\"+$t+\"|\"+en+\")\",sn=\"(?:[\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff]|\\\\ud83c[\\\\udffb-\\\\udfff])?\",ln=\"(?:\\\\u200d(?:\"+[\"[^\\\\ud800-\\\\udfff]\",nn,rn].join(\"|\")+\")[\\\\ufe0e\\\\ufe0f]?\"+sn+\")*\",un=\"[\\\\ufe0e\\\\ufe0f]?\"+sn+ln,cn=\"(?:\"+[\"[\\\\u2700-\\\\u27bf]\",nn,rn].join(\"|\")+\")\"+un,dn=\"(?:\"+[\"[^\\\\ud800-\\\\udfff]\"+Qt+\"?\",Qt,nn,rn,\"[\\\\ud800-\\\\udfff]\"].join(\"|\")+\")\",hn=RegExp(\"['’]\",\"g\"),fn=RegExp(Qt,\"g\"),pn=RegExp(tn+\"(?=\"+tn+\")|\"+dn+un,\"g\"),mn=RegExp([on+\"?\"+$t+\"+(?:['’](?:d|ll|m|re|s|t|ve))?(?=\"+[Jt,on,\"$\"].join(\"|\")+\")\",\"(?:[A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]|[^\\\\ud800-\\\\udfff\\\\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\\\\d+\\\\u2700-\\\\u27bfa-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xffA-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=\"+[Jt,on+an,\"$\"].join(\"|\")+\")\",on+\"?\"+an+\"+(?:['’](?:d|ll|m|re|s|t|ve))?\",on+\"+(?:['’](?:D|LL|M|RE|S|T|VE))?\",\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",\"\\\\d+\",cn].join(\"|\"),\"g\"),gn=RegExp(\"[\\\\u200d\\\\ud800-\\\\udfff\"+Kt+\"\\\\ufe0e\\\\ufe0f]\"),vn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yn=[\"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\"],bn=-1,_n={};_n[st]=_n[lt]=_n[ut]=_n[ct]=_n[dt]=_n[ht]=_n[ft]=_n[pt]=_n[mt]=!0,_n[ze]=_n[Fe]=_n[ot]=_n[Ue]=_n[at]=_n[We]=_n[Ve]=_n[He]=_n[Ye]=_n[Xe]=_n[Ze]=_n[Qe]=_n[$e]=_n[et]=_n[it]=!1;var xn={};xn[ze]=xn[Fe]=xn[ot]=xn[at]=xn[Ue]=xn[We]=xn[st]=xn[lt]=xn[ut]=xn[ct]=xn[dt]=xn[Ye]=xn[Xe]=xn[Ze]=xn[Qe]=xn[$e]=xn[et]=xn[tt]=xn[ht]=xn[ft]=xn[pt]=xn[mt]=!0,xn[Ve]=xn[He]=xn[it]=!1;var wn={\"À\":\"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\"},Mn={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\"},Sn={\"&\":\"&\",\"<\":\"<\",\">\":\">\",\""\":'\"',\"'\":\"'\"},En={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},Tn=parseFloat,kn=parseInt,On=\"object\"==typeof e&&e&&e.Object===Object&&e,Cn=\"object\"==typeof self&&self&&self.Object===Object&&self,Pn=On||Cn||Function(\"return this\")(),An=\"object\"==typeof t&&t&&!t.nodeType&&t,Rn=An&&\"object\"==typeof i&&i&&!i.nodeType&&i,Ln=Rn&&Rn.exports===An,In=Ln&&On.process,Dn=function(){try{var e=Rn&&Rn.require&&Rn.require(\"util\").types;return e||In&&In.binding&&In.binding(\"util\")}catch(e){}}(),Nn=Dn&&Dn.isArrayBuffer,Bn=Dn&&Dn.isDate,zn=Dn&&Dn.isMap,Fn=Dn&&Dn.isRegExp,jn=Dn&&Dn.isSet,Un=Dn&&Dn.isTypedArray,Wn=T(\"length\"),Gn=k(wn),Vn=k(Mn),Hn=k(Sn),qn=function e(t){function n(e){if(tl(e)&&!hh(e)&&!(e instanceof y)){if(e instanceof r)return e;if(hc.call(e,\"__wrapped__\"))return Qo(e)}return new r(e)}function i(){}function r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=ne}function y(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ie,this.__views__=[]}function k(){var e=new y(this.__wrapped__);return e.__actions__=Rr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Rr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Rr(this.__views__),e}function K(){if(this.__filtered__){var e=new y(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function $(){var e=this.__wrapped__.value(),t=this.__dir__,n=hh(e),i=t<0,r=n?e.length:0,o=wo(0,r,this.__views__),a=o.start,s=o.end,l=s-a,u=i?s:a-1,c=this.__iteratees__,d=c.length,h=0,f=Wc(l,this.__takeCount__);if(!n||!i&&r==l&&f==l)return mr(e,this.__actions__);var p=[];e:for(;l--&&h-1}function on(e,t){var n=this.__data__,i=Yn(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function an(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ei(e,t,n,i,r,o){var a,l=t&ue,u=t&ce,c=t&de;if(n&&(a=r?n(e,i,r,o):n(e)),a!==ne)return a;if(!el(e))return e;var d=hh(e);if(d){if(a=Eo(e),!l)return Rr(e,a)}else{var h=wd(e),f=h==He||h==qe;if(ph(e))return wr(e,l);if(h==Ze||h==ze||f&&!r){if(a=u||f?{}:To(e),!l)return u?Dr(e,Zn(a,e)):Ir(e,Kn(a,e))}else{if(!xn[h])return r?e:{};a=ko(e,h,l)}}o||(o=new vn);var p=o.get(e);if(p)return p;if(o.set(e,a),yh(e))return e.forEach(function(i){a.add(ei(i,t,n,i,e,o))}),a;if(gh(e))return e.forEach(function(i,r){a.set(r,ei(i,t,n,r,e,o))}),a;var m=c?u?po:fo:u?Bl:Nl,g=d?ne:m(e);return s(g||e,function(i,r){g&&(r=i,i=e[r]),Wn(a,r,ei(i,t,n,r,e,o))}),a}function ti(e){var t=Nl(e);return function(n){return ni(n,e,t)}}function ni(e,t,n){var i=n.length;if(null==e)return!i;for(e=ic(e);i--;){var r=n[i],o=t[r],a=e[r];if(a===ne&&!(r in e)||!o(a))return!1}return!0}function ii(e,t,n){if(\"function\"!=typeof e)throw new ac(oe);return Ed(function(){e.apply(ne,n)},t)}function ri(e,t,n,i){var r=-1,o=d,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=f(t,L(n))),i?(o=h,a=!1):t.length>=ie&&(o=D,a=!1,t=new pn(t));e:for(;++rr?0:r+n),i=i===ne||i>r?r:yl(i),i<0&&(i+=r),i=n>i?0:bl(i);n0&&n(s)?t>1?ui(s,t-1,n,i,r):p(r,s):i||(r[r.length]=s)}return r}function ci(e,t){return e&&hd(e,t,Nl)}function di(e,t){return e&&fd(e,t,Nl)}function hi(e,t){return c(t,function(t){return Js(e[t])})}function fi(e,t){t=_r(t,e);for(var n=0,i=t.length;null!=e&&nt}function vi(e,t){return null!=e&&hc.call(e,t)}function yi(e,t){return null!=e&&t in ic(e)}function bi(e,t,n){return e>=Wc(t,n)&&e=120&&c.length>=120)?new pn(a&&c):ne}c=e[0];var p=-1,m=s[0];e:for(;++p-1;)s!==e&&Tc.call(s,l,1),Tc.call(e,l,1);return e}function Ki(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;Po(r)?Tc.call(e,r,1):hr(e,r)}}return e}function Zi(e,t){return e+Dc(Hc()*(t-e+1))}function Ji(e,t,n,i){for(var r=-1,o=Uc(Ic((t-e)/(n||1)),0),a=Qu(o);o--;)a[i?o:++r]=e,e+=n;return a}function Qi(e,t){var n=\"\";if(!e||t<1||t>Ae)return n;do{t%2&&(n+=e),(t=Dc(t/2))&&(e+=e)}while(t);return n}function $i(e,t){return Td(Wo(e,t,Tu),e+\"\")}function er(e){return An(Kl(e))}function tr(e,t){var n=Kl(e);return Xo(n,$n(t,0,n.length))}function nr(e,t,n,i){if(!el(e))return e;t=_r(t,e);for(var r=-1,o=t.length,a=o-1,s=e;null!=s&&++rr?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Qu(r);++i>>1,a=e[o];null!==a&&!hl(a)&&(n?a<=t:a=ie){var u=t?null:yd(e);if(u)return Y(u);a=!1,r=D,l=new pn}else l=t?[]:s;e:for(;++i=i?e:rr(e,t,n)}function wr(e,t){if(t)return e.slice();var n=e.length,i=wc?wc(n):new e.constructor(n);return e.copy(i),i}function Mr(e){var t=new e.constructor(e.byteLength);return new xc(t).set(new xc(e)),t}function Sr(e,t){var n=t?Mr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Er(e){var t=new e.constructor(e.source,jt.exec(e));return t.lastIndex=e.lastIndex,t}function Tr(e){return sd?ic(sd.call(e)):{}}function kr(e,t){var n=t?Mr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Or(e,t){if(e!==t){var n=e!==ne,i=null===e,r=e===e,o=hl(e),a=t!==ne,s=null===t,l=t===t,u=hl(t);if(!s&&!u&&!o&&e>t||o&&a&&l&&!s&&!u||i&&a&&l||!n&&l||!r)return 1;if(!i&&!o&&!u&&e=s)return l;return l*(\"desc\"==n[i]?-1:1)}}return e.index-t.index}function Pr(e,t,n,i){for(var r=-1,o=e.length,a=n.length,s=-1,l=t.length,u=Uc(o-a,0),c=Qu(l+u),d=!i;++s1?n[r-1]:ne,a=r>2?n[2]:ne;for(o=e.length>3&&\"function\"==typeof o?(r--,o):ne,a&&Ao(n[0],n[1],a)&&(o=r<3?ne:o,r=1),t=ic(t);++i-1?r[o?t[a]:a]:ne}}function qr(e){return ho(function(t){var n=t.length,i=n,o=r.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if(\"function\"!=typeof a)throw new ac(oe);if(o&&!s&&\"wrapper\"==mo(a))var s=new r([],!0)}for(i=s?i:n;++i1&&y.reverse(),d&&ls))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var c=-1,d=!0,h=n&fe?new pn:ne;for(o.set(e,t),o.set(t,e);++c1?\"& \":\"\")+t[i],t=t.join(n>2?\", \":\" \"),e.replace(It,\"{\\n/* [wrapped with \"+t+\"] */\\n\")}function Co(e){return hh(e)||dh(e)||!!(kc&&e&&e[kc])}function Po(e,t){var n=typeof e;return!!(t=null==t?Ae:t)&&(\"number\"==n||\"symbol\"!=n&&Ht.test(e))&&e>-1&&e%1==0&&e0){if(++t>=Te)return arguments[0]}else t=0;return e.apply(ne,arguments)}}function Xo(e,t){var n=-1,i=e.length,r=i-1;for(t=t===ne?i:t;++n=this.__values__.length;return{done:e,value:e?ne:this.__values__[this.__index__++]}}function Qa(){return this}function $a(e){for(var t,n=this;n instanceof i;){var r=Qo(n);r.__index__=0,r.__values__=ne,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function es(){var e=this.__wrapped__;if(e instanceof y){var t=e;return this.__actions__.length&&(t=new y(this)),t=t.reverse(),t.__actions__.push({func:Xa,args:[Sa],thisArg:ne}),new r(t,this.__chain__)}return this.thru(Sa)}function ts(){return mr(this.__wrapped__,this.__actions__)}function ns(e,t,n){var i=hh(e)?u:oi;return n&&Ao(e,t,n)&&(t=ne),i(e,vo(t,3))}function is(e,t){return(hh(e)?c:li)(e,vo(t,3))}function rs(e,t){return ui(cs(e,t),1)}function os(e,t){return ui(cs(e,t),Pe)}function as(e,t,n){return n=n===ne?1:yl(n),ui(cs(e,t),n)}function ss(e,t){return(hh(e)?s:cd)(e,vo(t,3))}function ls(e,t){return(hh(e)?l:dd)(e,vo(t,3))}function us(e,t,n,i){e=Ws(e)?e:Kl(e),n=n&&!i?yl(n):0;var r=e.length;return n<0&&(n=Uc(r+n,0)),dl(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&w(e,t,n)>-1}function cs(e,t){return(hh(e)?f:zi)(e,vo(t,3))}function ds(e,t,n,i){return null==e?[]:(hh(t)||(t=null==t?[]:[t]),n=i?ne:n,hh(n)||(n=null==n?[]:[n]),Vi(e,t,n))}function hs(e,t,n){var i=hh(e)?m:O,r=arguments.length<3;return i(e,vo(t,4),n,r,cd)}function fs(e,t,n){var i=hh(e)?g:O,r=arguments.length<3;return i(e,vo(t,4),n,r,dd)}function ps(e,t){return(hh(e)?c:li)(e,Os(vo(t,3)))}function ms(e){return(hh(e)?An:er)(e)}function gs(e,t,n){return t=(n?Ao(e,t,n):t===ne)?1:yl(t),(hh(e)?Rn:tr)(e,t)}function vs(e){return(hh(e)?In:ir)(e)}function ys(e){if(null==e)return 0;if(Ws(e))return dl(e)?J(e):e.length;var t=wd(e);return t==Ye||t==$e?e.size:Di(e).length}function bs(e,t,n){var i=hh(e)?v:or;return n&&Ao(e,t,n)&&(t=ne),i(e,vo(t,3))}function _s(e,t){if(\"function\"!=typeof t)throw new ac(oe);return e=yl(e),function(){if(--e<1)return t.apply(this,arguments)}}function xs(e,t,n){return t=n?ne:t,t=e&&null==t?e.length:t,ro(e,xe,ne,ne,ne,ne,t)}function ws(e,t){var n;if(\"function\"!=typeof t)throw new ac(oe);return e=yl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=ne),n}}function Ms(e,t,n){t=n?ne:t;var i=ro(e,ve,ne,ne,ne,ne,ne,t);return i.placeholder=Ms.placeholder,i}function Ss(e,t,n){t=n?ne:t;var i=ro(e,ye,ne,ne,ne,ne,ne,t);return i.placeholder=Ss.placeholder,i}function Es(e,t,n){function i(t){var n=h,i=f;return h=f=ne,y=t,m=e.apply(i,n)}function r(e){return y=e,g=Ed(s,t),b?i(e):m}function o(e){var n=e-v,i=e-y,r=t-n;return _?Wc(r,p-i):r}function a(e){var n=e-v,i=e-y;return v===ne||n>=t||n<0||_&&i>=p}function s(){var e=eh();if(a(e))return l(e);g=Ed(s,o(e))}function l(e){return g=ne,x&&h?i(e):(h=f=ne,m)}function u(){g!==ne&&vd(g),y=0,h=v=f=g=ne}function c(){return g===ne?m:l(eh())}function d(){var e=eh(),n=a(e);if(h=arguments,f=this,v=e,n){if(g===ne)return r(v);if(_)return g=Ed(s,t),i(v)}return g===ne&&(g=Ed(s,t)),m}var h,f,p,m,g,v,y=0,b=!1,_=!1,x=!0;if(\"function\"!=typeof e)throw new ac(oe);return t=_l(t)||0,el(n)&&(b=!!n.leading,_=\"maxWait\"in n,p=_?Uc(_l(n.maxWait)||0,t):p,x=\"trailing\"in n?!!n.trailing:x),d.cancel=u,d.flush=c,d}function Ts(e){return ro(e,Me)}function ks(e,t){if(\"function\"!=typeof e||null!=t&&\"function\"!=typeof t)throw new ac(oe);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(ks.Cache||an),n}function Os(e){if(\"function\"!=typeof e)throw new ac(oe);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)}}function Cs(e){return ws(2,e)}function Ps(e,t){if(\"function\"!=typeof e)throw new ac(oe);return t=t===ne?t:yl(t),$i(e,t)}function As(e,t){if(\"function\"!=typeof e)throw new ac(oe);return t=null==t?0:Uc(yl(t),0),$i(function(n){var i=n[t],r=xr(n,0,t);return i&&p(r,i),o(e,this,r)})}function Rs(e,t,n){var i=!0,r=!0;if(\"function\"!=typeof e)throw new ac(oe);return el(n)&&(i=\"leading\"in n?!!n.leading:i,r=\"trailing\"in n?!!n.trailing:r),Es(e,t,{leading:i,maxWait:t,trailing:r})}function Ls(e){return xs(e,1)}function Is(e,t){return ah(br(t),e)}function Ds(){if(!arguments.length)return[];var e=arguments[0];return hh(e)?e:[e]}function Ns(e){return ei(e,de)}function Bs(e,t){return t=\"function\"==typeof t?t:ne,ei(e,de,t)}function zs(e){return ei(e,ue|de)}function Fs(e,t){return t=\"function\"==typeof t?t:ne,ei(e,ue|de,t)}function js(e,t){return null==t||ni(e,t,Nl(t))}function Us(e,t){return e===t||e!==e&&t!==t}function Ws(e){return null!=e&&$s(e.length)&&!Js(e)}function Gs(e){return tl(e)&&Ws(e)}function Vs(e){return!0===e||!1===e||tl(e)&&mi(e)==Ue}function Hs(e){return tl(e)&&1===e.nodeType&&!ul(e)}function qs(e){if(null==e)return!0;if(Ws(e)&&(hh(e)||\"string\"==typeof e||\"function\"==typeof e.splice||ph(e)||bh(e)||dh(e)))return!e.length;var t=wd(e);if(t==Ye||t==$e)return!e.size;if(No(e))return!Di(e).length;for(var n in e)if(hc.call(e,n))return!1;return!0}function Ys(e,t){return Ti(e,t)}function Xs(e,t,n){n=\"function\"==typeof n?n:ne;var i=n?n(e,t):ne;return i===ne?Ti(e,t,ne,n):!!i}function Ks(e){if(!tl(e))return!1;var t=mi(e);return t==Ve||t==Ge||\"string\"==typeof e.message&&\"string\"==typeof e.name&&!ul(e)}function Zs(e){return\"number\"==typeof e&&zc(e)}function Js(e){if(!el(e))return!1;var t=mi(e);return t==He||t==qe||t==je||t==Je}function Qs(e){return\"number\"==typeof e&&e==yl(e)}function $s(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=Ae}function el(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)}function tl(e){return null!=e&&\"object\"==typeof e}function nl(e,t){return e===t||Ci(e,t,bo(t))}function il(e,t,n){return n=\"function\"==typeof n?n:ne,Ci(e,t,bo(t),n)}function rl(e){return ll(e)&&e!=+e}function ol(e){if(Md(e))throw new ec(re);return Pi(e)}function al(e){return null===e}function sl(e){return null==e}function ll(e){return\"number\"==typeof e||tl(e)&&mi(e)==Xe}function ul(e){if(!tl(e)||mi(e)!=Ze)return!1;var t=Mc(e);if(null===t)return!0;var n=hc.call(t,\"constructor\")&&t.constructor;return\"function\"==typeof n&&n instanceof n&&dc.call(n)==gc}function cl(e){return Qs(e)&&e>=-Ae&&e<=Ae}function dl(e){return\"string\"==typeof e||!hh(e)&&tl(e)&&mi(e)==et}function hl(e){return\"symbol\"==typeof e||tl(e)&&mi(e)==tt}function fl(e){return e===ne}function pl(e){return tl(e)&&wd(e)==it}function ml(e){return tl(e)&&mi(e)==rt}function gl(e){if(!e)return[];if(Ws(e))return dl(e)?Q(e):Rr(e);if(Oc&&e[Oc])return G(e[Oc]());var t=wd(e);return(t==Ye?V:t==$e?Y:Kl)(e)}function vl(e){if(!e)return 0===e?e:0;if((e=_l(e))===Pe||e===-Pe){return(e<0?-1:1)*Re}return e===e?e:0}function yl(e){var t=vl(e),n=t%1;return t===t?n?t-n:t:0}function bl(e){return e?$n(yl(e),0,Ie):0}function _l(e){if(\"number\"==typeof e)return e;if(hl(e))return Le;if(el(e)){var t=\"function\"==typeof e.valueOf?e.valueOf():e;e=el(t)?t+\"\":t}if(\"string\"!=typeof e)return 0===e?e:+e;e=e.replace(At,\"\");var n=Wt.test(e);return n||Vt.test(e)?kn(e.slice(2),n?2:8):Ut.test(e)?Le:+e}function xl(e){return Lr(e,Bl(e))}function wl(e){return e?$n(yl(e),-Ae,Ae):0===e?e:0}function Ml(e){return null==e?\"\":cr(e)}function Sl(e,t){var n=ud(e);return null==t?n:Kn(n,t)}function El(e,t){return _(e,vo(t,3),ci)}function Tl(e,t){return _(e,vo(t,3),di)}function kl(e,t){return null==e?e:hd(e,vo(t,3),Bl)}function Ol(e,t){return null==e?e:fd(e,vo(t,3),Bl)}function Cl(e,t){return e&&ci(e,vo(t,3))}function Pl(e,t){return e&&di(e,vo(t,3))}function Al(e){return null==e?[]:hi(e,Nl(e))}function Rl(e){return null==e?[]:hi(e,Bl(e))}function Ll(e,t,n){var i=null==e?ne:fi(e,t);return i===ne?n:i}function Il(e,t){return null!=e&&So(e,t,vi)}function Dl(e,t){return null!=e&&So(e,t,yi)}function Nl(e){return Ws(e)?Cn(e):Di(e)}function Bl(e){return Ws(e)?Cn(e,!0):Ni(e)}function zl(e,t){var n={};return t=vo(t,3),ci(e,function(e,i,r){Jn(n,t(e,i,r),e)}),n}function Fl(e,t){var n={};return t=vo(t,3),ci(e,function(e,i,r){Jn(n,i,t(e,i,r))}),n}function jl(e,t){return Ul(e,Os(vo(t)))}function Ul(e,t){if(null==e)return{};var n=f(po(e),function(e){return[e]});return t=vo(t),qi(e,n,function(e,n){return t(e,n[0])})}function Wl(e,t,n){t=_r(t,e);var i=-1,r=t.length;for(r||(r=1,e=ne);++it){var i=e;e=t,t=i}if(n||e%1||t%1){var r=Hc();return Wc(e+r*(t-e+Tn(\"1e-\"+((r+\"\").length-1))),t)}return Zi(e,t)}function eu(e){return Hh(Ml(e).toLowerCase())}function tu(e){return(e=Ml(e))&&e.replace(qt,Gn).replace(fn,\"\")}function nu(e,t,n){e=Ml(e),t=cr(t);var i=e.length;n=n===ne?i:$n(yl(n),0,i);var r=n;return(n-=t.length)>=0&&e.slice(n,r)==t}function iu(e){return e=Ml(e),e&&wt.test(e)?e.replace(_t,Vn):e}function ru(e){return e=Ml(e),e&&Pt.test(e)?e.replace(Ct,\"\\\\$&\"):e}function ou(e,t,n){e=Ml(e),t=yl(t);var i=t?J(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Jr(Dc(r),n)+e+Jr(Ic(r),n)}function au(e,t,n){e=Ml(e),t=yl(t);var i=t?J(e):0;return t&&i>>0)?(e=Ml(e),e&&(\"string\"==typeof t||null!=t&&!vh(t))&&!(t=cr(t))&&U(e)?xr(Q(e),0,n):e.split(t,n)):[]}function hu(e,t,n){return e=Ml(e),n=null==n?0:$n(yl(n),0,e.length),t=cr(t),e.slice(n,n+t.length)==t}function fu(e,t,i){var r=n.templateSettings;i&&Ao(e,t,i)&&(t=ne),e=Ml(e),t=Sh({},t,r,oo);var o,a,s=Sh({},t.imports,r.imports,oo),l=Nl(s),u=I(s,l),c=0,d=t.interpolate||Yt,h=\"__p += '\",f=rc((t.escape||Yt).source+\"|\"+d.source+\"|\"+(d===Et?Ft:Yt).source+\"|\"+(t.evaluate||Yt).source+\"|$\",\"g\"),p=\"//# sourceURL=\"+(\"sourceURL\"in t?t.sourceURL:\"lodash.templateSources[\"+ ++bn+\"]\")+\"\\n\";e.replace(f,function(t,n,i,r,s,l){return i||(i=r),h+=e.slice(c,l).replace(Xt,F),n&&(o=!0,h+=\"' +\\n__e(\"+n+\") +\\n'\"),s&&(a=!0,h+=\"';\\n\"+s+\";\\n__p += '\"),i&&(h+=\"' +\\n((__t = (\"+i+\")) == null ? '' : __t) +\\n'\"),c=l+t.length,t}),h+=\"';\\n\";var m=t.variable;m||(h=\"with (obj) {\\n\"+h+\"\\n}\\n\"),h=(a?h.replace(gt,\"\"):h).replace(vt,\"$1\").replace(yt,\"$1;\"),h=\"function(\"+(m||\"obj\")+\") {\\n\"+(m?\"\":\"obj || (obj = {});\\n\")+\"var __t, __p = ''\"+(o?\", __e = _.escape\":\"\")+(a?\", __j = Array.prototype.join;\\nfunction print() { __p += __j.call(arguments, '') }\\n\":\";\\n\")+h+\"return __p\\n}\";var g=qh(function(){return tc(l,p+\"return \"+h).apply(ne,u)});if(g.source=h,Ks(g))throw g;return g}function pu(e){return Ml(e).toLowerCase()}function mu(e){return Ml(e).toUpperCase()}function gu(e,t,n){if((e=Ml(e))&&(n||t===ne))return e.replace(At,\"\");if(!e||!(t=cr(t)))return e;var i=Q(e),r=Q(t);return xr(i,N(i,r),B(i,r)+1).join(\"\")}function vu(e,t,n){if((e=Ml(e))&&(n||t===ne))return e.replace(Lt,\"\");if(!e||!(t=cr(t)))return e;var i=Q(e);return xr(i,0,B(i,Q(t))+1).join(\"\")}function yu(e,t,n){if((e=Ml(e))&&(n||t===ne))return e.replace(Rt,\"\");if(!e||!(t=cr(t)))return e;var i=Q(e);return xr(i,N(i,Q(t))).join(\"\")}function bu(e,t){var n=Se,i=Ee;if(el(t)){var r=\"separator\"in t?t.separator:r;n=\"length\"in t?yl(t.length):n,i=\"omission\"in t?cr(t.omission):i}e=Ml(e);var o=e.length;if(U(e)){var a=Q(e);o=a.length}if(n>=o)return e;var s=n-J(i);if(s<1)return i;var l=a?xr(a,0,s).join(\"\"):e.slice(0,s);if(r===ne)return l+i;if(a&&(s+=l.length-s),vh(r)){if(e.slice(s).search(r)){var u,c=l;for(r.global||(r=rc(r.source,Ml(jt.exec(r))+\"g\")),r.lastIndex=0;u=r.exec(c);)var d=u.index;l=l.slice(0,d===ne?s:d)}}else if(e.indexOf(cr(r),s)!=s){var h=l.lastIndexOf(r);h>-1&&(l=l.slice(0,h))}return l+i}function _u(e){return e=Ml(e),e&&xt.test(e)?e.replace(bt,Hn):e}function xu(e,t,n){return e=Ml(e),t=n?ne:t,t===ne?W(e)?te(e):b(e):e.match(t)||[]}function wu(e){var t=null==e?0:e.length,n=vo();return e=t?f(e,function(e){if(\"function\"!=typeof e[1])throw new ac(oe);return[n(e[0]),e[1]]}):[],$i(function(n){for(var i=-1;++iAe)return[];var n=Ie,i=Wc(e,Ie);t=vo(t),e-=Ie;for(var r=A(i,t);++n1?e[t-1]:ne;return n=\"function\"==typeof n?(e.pop(),n):ne,Ga(e,n)}),Hd=ho(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return Qn(t,e)};return!(t>1||this.__actions__.length)&&i instanceof y&&Po(n)?(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:Xa,args:[o],thisArg:ne}),new r(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(ne),e})):this.thru(o)}),qd=Nr(function(e,t,n){hc.call(e,n)?++e[n]:Jn(e,n,1)}),Yd=Hr(sa),Xd=Hr(la),Kd=Nr(function(e,t,n){hc.call(e,n)?e[n].push(t):Jn(e,n,[t])}),Zd=$i(function(e,t,n){var i=-1,r=\"function\"==typeof t,a=Ws(e)?Qu(e.length):[];return cd(e,function(e){a[++i]=r?o(t,e,n):wi(e,t,n)}),a}),Jd=Nr(function(e,t,n){Jn(e,n,t)}),Qd=Nr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),$d=$i(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ao(e,t[0],t[1])?t=[]:n>2&&Ao(t[0],t[1],t[2])&&(t=[t[0]]),Vi(e,ui(t,1),[])}),eh=Rc||function(){return Pn.Date.now()},th=$i(function(e,t,n){var i=pe;if(n.length){var r=q(n,go(th));i|=be}return ro(e,i,t,n,r)}),nh=$i(function(e,t,n){var i=pe|me;if(n.length){var r=q(n,go(nh));i|=be}return ro(t,i,e,n,r)}),ih=$i(function(e,t){return ii(e,1,t)}),rh=$i(function(e,t,n){return ii(e,_l(t)||0,n)});ks.Cache=an;var oh=gd(function(e,t){t=1==t.length&&hh(t[0])?f(t[0],L(vo())):f(ui(t,1),L(vo()));var n=t.length;return $i(function(i){for(var r=-1,a=Wc(i.length,n);++r=t}),dh=Mi(function(){return arguments}())?Mi:function(e){return tl(e)&&hc.call(e,\"callee\")&&!Ec.call(e,\"callee\")},hh=Qu.isArray,fh=Nn?L(Nn):Si,ph=Bc||Bu,mh=Bn?L(Bn):Ei,gh=zn?L(zn):Oi,vh=Fn?L(Fn):Ai,yh=jn?L(jn):Ri,bh=Un?L(Un):Li,_h=eo(Bi),xh=eo(function(e,t){return e<=t}),wh=Br(function(e,t){if(No(t)||Ws(t))return void Lr(t,Nl(t),e);for(var n in t)hc.call(t,n)&&Wn(e,n,t[n])}),Mh=Br(function(e,t){Lr(t,Bl(t),e)}),Sh=Br(function(e,t,n,i){Lr(t,Bl(t),e,i)}),Eh=Br(function(e,t,n,i){Lr(t,Nl(t),e,i)}),Th=ho(Qn),kh=$i(function(e,t){e=ic(e);var n=-1,i=t.length,r=i>2?t[2]:ne;for(r&&Ao(t[0],t[1],r)&&(i=1);++n1),t}),Lr(e,po(e),n),i&&(n=ei(n,ue|ce|de,so));for(var r=t.length;r--;)hr(n,t[r]);return n}),Dh=ho(function(e,t){return null==e?{}:Hi(e,t)}),Nh=io(Nl),Bh=io(Bl),zh=Wr(function(e,t,n){return t=t.toLowerCase(),e+(n?eu(t):t)}),Fh=Wr(function(e,t,n){return e+(n?\"-\":\"\")+t.toLowerCase()}),jh=Wr(function(e,t,n){return e+(n?\" \":\"\")+t.toLowerCase()}),Uh=Ur(\"toLowerCase\"),Wh=Wr(function(e,t,n){return e+(n?\"_\":\"\")+t.toLowerCase()}),Gh=Wr(function(e,t,n){return e+(n?\" \":\"\")+Hh(t)}),Vh=Wr(function(e,t,n){return e+(n?\" \":\"\")+t.toUpperCase()}),Hh=Ur(\"toUpperCase\"),qh=$i(function(e,t){try{return o(e,ne,t)}catch(e){return Ks(e)?e:new ec(e)}}),Yh=ho(function(e,t){return s(t,function(t){t=Ko(t),Jn(e,t,th(e[t],e))}),e}),Xh=qr(),Kh=qr(!0),Zh=$i(function(e,t){return function(n){return wi(n,e,t)}}),Jh=$i(function(e,t){return function(n){return wi(e,n,t)}}),Qh=Zr(f),$h=Zr(u),ef=Zr(v),tf=$r(),nf=$r(!0),rf=Kr(function(e,t){return e+t},0),of=no(\"ceil\"),af=Kr(function(e,t){return e/t},1),sf=no(\"floor\"),lf=Kr(function(e,t){return e*t},1),uf=no(\"round\"),cf=Kr(function(e,t){return e-t},0);return n.after=_s,n.ary=xs,n.assign=wh,n.assignIn=Mh,n.assignInWith=Sh,n.assignWith=Eh,n.at=Th,n.before=ws,n.bind=th,n.bindAll=Yh,n.bindKey=nh,n.castArray=Ds,n.chain=qa,n.chunk=$o,n.compact=ea,n.concat=ta,n.cond=wu,n.conforms=Mu,n.constant=Su,n.countBy=qd,n.create=Sl,n.curry=Ms,n.curryRight=Ss,n.debounce=Es,n.defaults=kh,n.defaultsDeep=Oh,n.defer=ih,n.delay=rh,n.difference=Od,n.differenceBy=Cd,n.differenceWith=Pd,n.drop=na,n.dropRight=ia,n.dropRightWhile=ra,n.dropWhile=oa,n.fill=aa,n.filter=is,n.flatMap=rs,n.flatMapDeep=os,n.flatMapDepth=as,n.flatten=ua,n.flattenDeep=ca,n.flattenDepth=da,n.flip=Ts,n.flow=Xh,n.flowRight=Kh,n.fromPairs=ha,n.functions=Al,n.functionsIn=Rl,n.groupBy=Kd,n.initial=ma,n.intersection=Ad,n.intersectionBy=Rd,n.intersectionWith=Ld,n.invert=Ch,n.invertBy=Ph,n.invokeMap=Zd,n.iteratee=ku,n.keyBy=Jd,n.keys=Nl,n.keysIn=Bl,n.map=cs,n.mapKeys=zl,n.mapValues=Fl,n.matches=Ou,n.matchesProperty=Cu,n.memoize=ks,n.merge=Rh,n.mergeWith=Lh,n.method=Zh,n.methodOf=Jh,n.mixin=Pu,n.negate=Os,n.nthArg=Lu,n.omit=Ih,n.omitBy=jl,n.once=Cs,n.orderBy=ds,n.over=Qh,n.overArgs=oh,n.overEvery=$h,n.overSome=ef,n.partial=ah,n.partialRight=sh,n.partition=Qd,n.pick=Dh,n.pickBy=Ul,n.property=Iu,n.propertyOf=Du,n.pull=Id,n.pullAll=_a,n.pullAllBy=xa,n.pullAllWith=wa,n.pullAt=Dd,n.range=tf,n.rangeRight=nf,n.rearg=lh,n.reject=ps,n.remove=Ma,n.rest=Ps,n.reverse=Sa,n.sampleSize=gs,n.set=Gl,n.setWith=Vl,n.shuffle=vs,n.slice=Ea,n.sortBy=$d,n.sortedUniq=Ra,n.sortedUniqBy=La,n.split=du,n.spread=As,n.tail=Ia,n.take=Da,n.takeRight=Na,n.takeRightWhile=Ba,n.takeWhile=za,n.tap=Ya,n.throttle=Rs,n.thru=Xa,n.toArray=gl,n.toPairs=Nh,n.toPairsIn=Bh,n.toPath=Wu,n.toPlainObject=xl,n.transform=Hl,n.unary=Ls,n.union=Nd,n.unionBy=Bd,n.unionWith=zd,n.uniq=Fa,n.uniqBy=ja,n.uniqWith=Ua,n.unset=ql,n.unzip=Wa,n.unzipWith=Ga,n.update=Yl,n.updateWith=Xl,n.values=Kl,n.valuesIn=Zl,n.without=Fd,n.words=xu,n.wrap=Is,n.xor=jd,n.xorBy=Ud,n.xorWith=Wd,n.zip=Gd,n.zipObject=Va,n.zipObjectDeep=Ha,n.zipWith=Vd,n.entries=Nh,n.entriesIn=Bh,n.extend=Mh,n.extendWith=Sh,Pu(n,n),n.add=rf,n.attempt=qh,n.camelCase=zh,n.capitalize=eu,n.ceil=of,n.clamp=Jl,n.clone=Ns,n.cloneDeep=zs,n.cloneDeepWith=Fs,n.cloneWith=Bs,n.conformsTo=js,n.deburr=tu,n.defaultTo=Eu,n.divide=af,n.endsWith=nu,n.eq=Us,n.escape=iu,n.escapeRegExp=ru,n.every=ns,n.find=Yd,n.findIndex=sa,n.findKey=El,n.findLast=Xd,n.findLastIndex=la,n.findLastKey=Tl,n.floor=sf,n.forEach=ss,n.forEachRight=ls,n.forIn=kl,n.forInRight=Ol,n.forOwn=Cl,n.forOwnRight=Pl,n.get=Ll,n.gt=uh,n.gte=ch,n.has=Il,n.hasIn=Dl,n.head=fa,n.identity=Tu,n.includes=us,n.indexOf=pa,n.inRange=Ql,n.invoke=Ah,n.isArguments=dh,n.isArray=hh,n.isArrayBuffer=fh,n.isArrayLike=Ws,n.isArrayLikeObject=Gs,n.isBoolean=Vs,n.isBuffer=ph,n.isDate=mh,n.isElement=Hs,n.isEmpty=qs,n.isEqual=Ys,n.isEqualWith=Xs,n.isError=Ks,n.isFinite=Zs,n.isFunction=Js,n.isInteger=Qs,n.isLength=$s,n.isMap=gh,n.isMatch=nl,n.isMatchWith=il,n.isNaN=rl,n.isNative=ol,n.isNil=sl,n.isNull=al,n.isNumber=ll,n.isObject=el,n.isObjectLike=tl,n.isPlainObject=ul,n.isRegExp=vh,n.isSafeInteger=cl,n.isSet=yh,n.isString=dl,n.isSymbol=hl,n.isTypedArray=bh,n.isUndefined=fl,n.isWeakMap=pl,n.isWeakSet=ml,n.join=ga,n.kebabCase=Fh,n.last=va,n.lastIndexOf=ya,n.lowerCase=jh,n.lowerFirst=Uh,n.lt=_h,n.lte=xh,n.max=Vu,n.maxBy=Hu,n.mean=qu,n.meanBy=Yu,n.min=Xu,n.minBy=Ku,n.stubArray=Nu,n.stubFalse=Bu,n.stubObject=zu,n.stubString=Fu,n.stubTrue=ju,n.multiply=lf,n.nth=ba,n.noConflict=Au,n.noop=Ru,n.now=eh,n.pad=ou,n.padEnd=au,n.padStart=su,n.parseInt=lu,n.random=$l,n.reduce=hs,n.reduceRight=fs,n.repeat=uu,n.replace=cu,n.result=Wl,n.round=uf,n.runInContext=e,n.sample=ms,n.size=ys,n.snakeCase=Wh,n.some=bs,n.sortedIndex=Ta,n.sortedIndexBy=ka,n.sortedIndexOf=Oa,n.sortedLastIndex=Ca,n.sortedLastIndexBy=Pa,n.sortedLastIndexOf=Aa,n.startCase=Gh,n.startsWith=hu,n.subtract=cf,n.sum=Zu,n.sumBy=Ju,n.template=fu,n.times=Uu,n.toFinite=vl,n.toInteger=yl,n.toLength=bl,n.toLower=pu,n.toNumber=_l,n.toSafeInteger=wl,n.toString=Ml,n.toUpper=mu,n.trim=gu,n.trimEnd=vu,n.trimStart=yu,n.truncate=bu,n.unescape=_u,n.uniqueId=Gu,n.upperCase=Vh,n.upperFirst=Hh,n.each=ss,n.eachRight=ls,n.first=fa,Pu(n,function(){var e={};return ci(n,function(t,i){hc.call(n.prototype,i)||(e[i]=t)}),e}(),{chain:!1}),n.VERSION=\"4.17.11\",s([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],function(e){n[e].placeholder=n}),s([\"drop\",\"take\"],function(e,t){y.prototype[e]=function(n){n=n===ne?1:Uc(yl(n),0);var i=this.__filtered__&&!t?new y(this):this.clone();return i.__filtered__?i.__takeCount__=Wc(n,i.__takeCount__):i.__views__.push({size:Wc(n,Ie),type:e+(i.__dir__<0?\"Right\":\"\")}),i},y.prototype[e+\"Right\"]=function(t){return this.reverse()[e](t).reverse()}}),s([\"filter\",\"map\",\"takeWhile\"],function(e,t){var n=t+1,i=n==Oe||3==n;y.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:vo(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}}),s([\"head\",\"last\"],function(e,t){var n=\"take\"+(t?\"Right\":\"\");y.prototype[e]=function(){return this[n](1).value()[0]}}),s([\"initial\",\"tail\"],function(e,t){var n=\"drop\"+(t?\"\":\"Right\");y.prototype[e]=function(){return this.__filtered__?new y(this):this[n](1)}}),y.prototype.compact=function(){return this.filter(Tu)},y.prototype.find=function(e){return this.filter(e).head()},y.prototype.findLast=function(e){return this.reverse().find(e)},y.prototype.invokeMap=$i(function(e,t){return\"function\"==typeof e?new y(this):this.map(function(n){return wi(n,e,t)})}),y.prototype.reject=function(e){return this.filter(Os(vo(e)))},y.prototype.slice=function(e,t){e=yl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==ne&&(t=yl(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},y.prototype.toArray=function(){return this.take(Ie)},ci(y.prototype,function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=n[o?\"take\"+(\"last\"==t?\"Right\":\"\"):t],s=o||/^find/.test(t);a&&(n.prototype[t]=function(){var t=this.__wrapped__,l=o?[1]:arguments,u=t instanceof y,c=l[0],d=u||hh(t),h=function(e){var t=a.apply(n,p([e],l));return o&&f?t[0]:t};d&&i&&\"function\"==typeof c&&1!=c.length&&(u=d=!1);var f=this.__chain__,m=!!this.__actions__.length,g=s&&!f,v=u&&!m;if(!s&&d){t=v?t:new y(this);var b=e.apply(t,l);return b.__actions__.push({func:Xa,args:[h],thisArg:ne}),new r(b,f)}return g&&v?e.apply(this,l):(b=this.thru(h),g?o?b.value()[0]:b.value():b)})}),s([\"pop\",\"push\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(e){var t=sc[e],i=/^(?:push|sort|unshift)$/.test(e)?\"tap\":\"thru\",r=/^(?:pop|shift)$/.test(e);n.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var n=this.value();return t.apply(hh(n)?n:[],e)}return this[i](function(n){return t.apply(hh(n)?n:[],e)})}}),ci(y.prototype,function(e,t){var i=n[t];if(i){var r=i.name+\"\";(ed[r]||(ed[r]=[])).push({name:t,func:i})}}),ed[Yr(ne,me).name]=[{name:\"wrapper\",func:ne}],y.prototype.clone=k,y.prototype.reverse=K,y.prototype.value=$,n.prototype.at=Hd,n.prototype.chain=Ka,n.prototype.commit=Za,n.prototype.next=Ja,n.prototype.plant=$a,n.prototype.reverse=es,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=ts,n.prototype.first=n.prototype.head,Oc&&(n.prototype[Oc]=Qa),n}();Pn._=qn,(r=function(){return qn}.call(t,n,t,i))!==ne&&(i.exports=r)}).call(this)}).call(t,n(28),n(141)(e))},function(e,t,n){e.exports={default:n(375),__esModule:!0}},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e){function i(e,t){function n(){this.constructor=e}tn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function r(e){return e.interceptors&&e.interceptors.length>0}function o(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),Ce(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function a(e,t){var n=Tt();try{var i=e.interceptors;if(i)for(var r=0,o=i.length;r0}function l(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),Ce(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function u(e,t){var n=Tt(),i=e.changeListeners;if(i){i=i.slice();for(var r=0,o=i.length;r=this.length,value:t0,\"actions should have valid names, got: '\"+e+\"'\");var n=function(){return S(e,t,this,arguments)};return n.originalFn=t,n.isMobxAction=!0,n}function S(e,t,n,i){var r=E(e,t,n,i);try{return t.apply(n,i)}finally{T(r)}}function E(e,t,n,i){var r=c()&&!!e,o=0;if(r){o=Date.now();var a=i&&i.length||0,s=new Array(a);if(a>0)for(var l=0;l\",r=\"function\"==typeof e?e:t,o=\"function\"==typeof e?t:n;return ke(\"function\"==typeof r,w(\"m002\")),ke(0===r.length,w(\"m003\")),ke(\"string\"==typeof i&&i.length>0,\"actions should have valid names, got: '\"+i+\"'\"),S(i,r,o,void 0)}function z(e){return\"function\"==typeof e&&!0===e.isMobxAction}function F(e,t,n){var i=function(){return S(t,n,e,arguments)};i.isMobxAction=!0,Ne(e,t,i)}function j(e,t){return U(e,t)}function U(e,t,n,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var r=typeof e;return(\"function\"===r||\"object\"===r||\"object\"==typeof t)&&W(e,t,n,i)}function W(e,t,n,i){e=G(e),t=G(t);var r=wn.call(e);if(r!==wn.call(t))return!1;switch(r){case\"[object RegExp]\":case\"[object String]\":return\"\"+e==\"\"+t;case\"[object Number]\":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case\"[object Date]\":case\"[object Boolean]\":return+e==+t;case\"[object Symbol]\":return\"undefined\"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t)}var o=\"[object Array]\"===r;if(!o){if(\"object\"!=typeof e||\"object\"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(\"function\"==typeof a&&a instanceof a&&\"function\"==typeof s&&s instanceof s)&&\"constructor\"in e&&\"constructor\"in t)return!1}n=n||[],i=i||[];for(var l=n.length;l--;)if(n[l]===e)return i[l]===t;if(n.push(e),i.push(t),o){if((l=e.length)!==t.length)return!1;for(;l--;)if(!U(e[l],t[l],n,i))return!1}else{var u,c=Object.keys(e);if(l=c.length,Object.keys(t).length!==l)return!1;for(;l--;)if(u=c[l],!V(t,u)||!U(e[u],t[u],n,i))return!1}return n.pop(),i.pop(),!0}function G(e){return x(e)?e.peek():Fn(e)?e.entries():Ge(e)?He(e.entries()):e}function V(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function H(e,t){return e===t}function q(e,t){return j(e,t)}function Y(e,t){return Ue(e,t)||H(e,t)}function X(e,t,n){function i(){o(s)}var r,o,a;\"string\"==typeof e?(r=e,o=t,a=n):(r=e.name||\"Autorun@\"+Ee(),o=e,a=t),ke(\"function\"==typeof o,w(\"m004\")),ke(!1===z(o),w(\"m005\")),a&&(o=o.bind(a));var s=new ei(r,function(){this.track(i)});return s.schedule(),s.getDisposer()}function K(e,t,n,i){var r,o,a,s;return\"string\"==typeof e?(r=e,o=t,a=n,s=i):(r=\"When@\"+Ee(),o=e,a=t,s=n),X(r,function(e){if(o.call(s)){e.dispose();var t=Tt();a.call(s),kt(t)}})}function Z(e,t,n,i){function r(){a(c)}var o,a,s,l;\"string\"==typeof e?(o=e,a=t,s=n,l=i):(o=e.name||\"AutorunAsync@\"+Ee(),a=e,s=t,l=n),ke(!1===z(a),w(\"m006\")),void 0===s&&(s=1),l&&(a=a.bind(l));var u=!1,c=new ei(o,function(){u||(u=!0,setTimeout(function(){u=!1,c.isDisposed||c.track(r)},s))});return c.schedule(),c.getDisposer()}function J(e,t,n){function i(){if(!u.isDisposed){var n=!1;u.track(function(){var t=e(u);n=a||!l(o,t),o=t}),a&&r.fireImmediately&&t(o,u),a||!0!==n||t(o,u),a&&(a=!1)}}arguments.length>3&&Te(w(\"m007\")),me(e)&&Te(w(\"m008\"));var r;r=\"object\"==typeof n?n:{},r.name=r.name||e.name||t.name||\"Reaction@\"+Ee(),r.fireImmediately=!0===n||!0===r.fireImmediately,r.delay=r.delay||0,r.compareStructural=r.compareStructural||r.struct||!1,t=xn(r.name,r.context?t.bind(r.context):t),r.context&&(e=e.bind(r.context));var o,a=!0,s=!1,l=r.equals?r.equals:r.compareStructural||r.struct?Mn.structural:Mn.default,u=new ei(r.name,function(){a||r.delay<1?i():s||(s=!0,setTimeout(function(){s=!1,i()},r.delay))});return u.schedule(),u.getDisposer()}function Q(e,t){if(se(e)&&e.hasOwnProperty(\"$mobx\"))return e.$mobx;ke(Object.isExtensible(e),w(\"m035\")),Le(e)||(t=(e.constructor.name||\"ObservableObject\")+\"@\"+Ee()),t||(t=\"ObservableObject@\"+Ee());var n=new Tn(e,t);return Be(e,\"$mobx\",n),n}function $(e,t,n,i){if(e.values[t]&&!En(e.values[t]))return ke(\"value\"in n,\"The property \"+t+\" in \"+e.name+\" is already observable, cannot redefine it as computed property\"),void(e.target[t]=n.value);if(\"value\"in n)if(me(n.value)){var r=n.value;ee(e,t,r.initialValue,r.enhancer)}else z(n.value)&&!0===n.value.autoBind?F(e.target,t,n.value.originalFn):En(n.value)?ne(e,t,n.value):ee(e,t,n.value,i);else te(e,t,n.get,n.set,Mn.default,!0)}function ee(e,t,n,i){if(Fe(e.target,t),r(e)){var o=a(e,{object:e.target,name:t,type:\"add\",newValue:n});if(!o)return;n=o.newValue}n=(e.values[t]=new gn(n,i,e.name+\".\"+t,!1)).value,Object.defineProperty(e.target,t,ie(t)),ae(e,e.target,t,n)}function te(e,t,n,i,r,o){o&&Fe(e.target,t),e.values[t]=new Sn(n,e.target,r,e.name+\".\"+t,i),o&&Object.defineProperty(e.target,t,re(t))}function ne(e,t,n){var i=e.name+\".\"+t;n.name=i,n.scope||(n.scope=e.target),e.values[t]=n,Object.defineProperty(e.target,t,re(t))}function ie(e){return kn[e]||(kn[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[e].get()},set:function(t){oe(this,e,t)}})}function re(e){return On[e]||(On[e]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[e].get()},set:function(t){return this.$mobx.values[e].set(t)}})}function oe(e,t,n){var i=e.$mobx,o=i.values[t];if(r(i)){var l=a(i,{type:\"update\",object:e,name:t,newValue:n});if(!l)return;n=l.newValue}if((n=o.prepareNewValue(n))!==mn){var d=s(i),p=c(),l=d||p?{type:\"update\",object:e,oldValue:o.value,name:t,newValue:n}:null;p&&h(l),o.setNewValue(n),d&&u(i,l),p&&f()}}function ae(e,t,n,i){var r=s(e),o=c(),a=r||o?{type:\"add\",object:t,name:n,newValue:i}:null;o&&h(a),r&&u(e,a),o&&f()}function se(e){return!!Re(e)&&(I(e),Cn(e.$mobx))}function le(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(x(e)||Fn(e))throw new Error(w(\"m019\"));if(se(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return se(e)||!!e.$mobx||on(e)||ii(e)||En(e)}function ue(e){return ke(!!e,\":(\"),R(function(t,n,i,r,o){Fe(t,n),ke(!o||!o.get,w(\"m022\")),ee(Q(t,void 0),n,i,e)},function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()},function(e,t){oe(this,e,t)},!0,!1)}function ce(e){for(var t=[],n=1;n=2,w(\"m014\")),ke(\"object\"==typeof e,w(\"m015\")),ke(!Fn(e),w(\"m016\")),n.forEach(function(e){ke(\"object\"==typeof e,w(\"m017\")),ke(!le(e),w(\"m018\"))});for(var i=Q(e),r={},o=n.length-1;o>=0;o--){var a=n[o];for(var s in a)if(!0!==r[s]&&De(a,s)){if(r[s]=!0,e===a&&!ze(e,s))continue;var l=Object.getOwnPropertyDescriptor(a,s);$(i,s,l,t)}}return e}function fe(e){if(void 0===e&&(e=void 0),\"string\"==typeof arguments[1])return Pn.apply(null,arguments);if(ke(arguments.length<=1,w(\"m021\")),ke(!me(e),w(\"m020\")),le(e))return e;var t=ve(e,void 0,void 0);return t!==e?t:Nn.box(e)}function pe(e){Te(\"Expected one or two arguments to observable.\"+e+\". Did you accidentally try to use observable.\"+e+\" as decorator?\")}function me(e){return\"object\"==typeof e&&null!==e&&!0===e.isMobxModifierDescriptor}function ge(e,t){return ke(!me(t),\"Modifiers cannot be nested\"),{isMobxModifierDescriptor:!0,initialValue:t,enhancer:e}}function ve(e,t,n){return me(e)&&Te(\"You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it\"),le(e)?e:Array.isArray(e)?Nn.array(e,n):Le(e)?Nn.object(e,n):Ge(e)?Nn.map(e,n):e}function ye(e,t,n){return me(e)&&Te(\"You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it\"),void 0===e||null===e?e:se(e)||x(e)||Fn(e)?e:Array.isArray(e)?Nn.shallowArray(e,n):Le(e)?Nn.shallowObject(e,n):Ge(e)?Nn.shallowMap(e,n):Te(\"The shallow modifier / decorator can only used in combination with arrays, objects and maps\")}function be(e){return e}function _e(e,t,n){if(j(e,t))return t;if(le(e))return e;if(Array.isArray(e))return new hn(e,_e,n);if(Ge(e))return new zn(e,_e,n);if(Le(e)){var i={};return Q(i,n),he(i,_e,[e]),i}return e}function xe(e,t,n){return j(e,t)?t:e}function we(e,t){void 0===t&&(t=void 0),ct();try{return e.apply(t)}finally{dt()}}function Me(e){return Oe(\"`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead\"),Nn.map(e)}function Se(){return\"undefined\"!=typeof window?window:e}function Ee(){return++qn.mobxGuid}function Te(e,t){throw ke(!1,e,t),\"X\"}function ke(e,t,n){if(!e)throw new Error(\"[mobx] Invariant failed: \"+t+(n?\" in '\"+n+\"'\":\"\"))}function Oe(e){return-1===Un.indexOf(e)&&(Un.push(e),console.error(\"[mobx] Deprecated: \"+e),!0)}function Ce(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}function Pe(e){var t=[];return e.forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),t}function Ae(e,t,n){return void 0===t&&(t=100),void 0===n&&(n=\" - \"),e?e.slice(0,t).join(n)+(e.length>t?\" (... and \"+(e.length-t)+\"more)\":\"\"):\"\"}function Re(e){return null!==e&&\"object\"==typeof e}function Le(e){if(null===e||\"object\"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function Ie(){for(var e=arguments[0],t=1,n=arguments.length;t0&&(t.dependencies=Pe(e.observing).map(nt)),t}function it(e,t){return rt(Qe(e,t))}function rt(e){var t={name:e.name};return ot(e)&&(t.observers=at(e).map(rt)),t}function ot(e){return e.observers&&e.observers.length>0}function at(e){return e.observers}function st(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function lt(e,t){if(1===e.observers.length)e.observers.length=0,ut(e);else{var n=e.observers,i=e.observersIndexes,r=n.pop();if(r!==t){var o=i[t.__mapid]||0;o?i[r.__mapid]=o:delete i[r.__mapid],n[o]=r}delete i[t.__mapid]}}function ut(e){e.isPendingUnobservation||(e.isPendingUnobservation=!0,qn.pendingUnobservations.push(e))}function ct(){qn.inBatch++}function dt(){if(0==--qn.inBatch){Dt();for(var e=qn.pendingUnobservations,t=0;t=1e3)return void t.push(\"(and many more)\");t.push(\"\"+new Array(n).join(\"\\t\")+e.name),e.dependencies&&e.dependencies.forEach(function(e){return vt(e,t,n+1)})}function yt(e){return e instanceof $n}function bt(e){switch(e.dependenciesState){case Jn.UP_TO_DATE:return!1;case Jn.NOT_TRACKING:case Jn.STALE:return!0;case Jn.POSSIBLY_STALE:for(var t=Tt(),n=e.observing,i=n.length,r=0;r0;qn.computationDepth>0&&t&&Te(w(\"m031\")+e.name),!qn.allowStateChanges&&t&&Te(w(qn.strictMode?\"m030a\":\"m030b\")+e.name)}function wt(e,t,n){Ot(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++qn.runId;var i=qn.trackingDerivation;qn.trackingDerivation=e;var r;try{r=t.call(n)}catch(e){r=new $n(e)}return qn.trackingDerivation=i,Mt(e),r}function Mt(e){for(var t=e.observing,n=e.observing=e.newObserving,i=Jn.UP_TO_DATE,r=0,o=e.unboundDepsCount,a=0;ai&&(i=s.dependenciesState)}for(n.length=r,e.newObserving=null,o=t.length;o--;){var s=t[o];0===s.diffValue&<(s,e),s.diffValue=0}for(;r--;){var s=n[r];1===s.diffValue&&(s.diffValue=0,st(s,e))}i!==Jn.UP_TO_DATE&&(e.dependenciesState=i,e.onBecomeStale())}function St(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)lt(t[n],e);e.dependenciesState=Jn.NOT_TRACKING}function Et(e){var t=Tt(),n=e();return kt(t),n}function Tt(){var e=qn.trackingDerivation;return qn.trackingDerivation=null,e}function kt(e){qn.trackingDerivation=e}function Ot(e){if(e.dependenciesState!==Jn.UP_TO_DATE){e.dependenciesState=Jn.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=Jn.UP_TO_DATE}}function Ct(e){return console.log(e),e}function Pt(e,t){return Oe(\"`whyRun` is deprecated in favor of `trace`\"),e=Rt(arguments),e?En(e)||ii(e)?Ct(e.whyRun()):Te(w(\"m025\")):Ct(w(\"m024\"))}function At(){for(var e=[],t=0;t=0&&qn.globalReactionErrorHandlers.splice(t,1)}}function Dt(){qn.inBatch>0||qn.isRunningReactions||ni(Nt)}function Nt(){qn.isRunningReactions=!0;for(var e=qn.pendingReactions,t=0;e.length>0;){++t===ti&&(console.error(\"Reaction doesn't converge to a stable state after \"+ti+\" iterations. Probably there is a cycle in the reactive function: \"+e[0]),e.splice(0));for(var n=e.splice(0),i=0,r=n.length;it){for(var n=new Array(e-t),i=0;i0&&e+t+1>un&&_(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var i=this;xt(this.atom);var o=this.values.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:void 0===t||null===t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=[]),r(this)){var s=a(this,{object:this.array,type:\"splice\",index:e,removedCount:t,added:n});if(!s)return jn;t=s.removedCount,n=s.added}n=n.map(function(e){return i.enhancer(e,void 0)});var l=n.length-t;this.updateArrayLength(o,l);var u=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,u),this.dehanceValues(u)},e.prototype.spliceItemsIntoValues=function(e,t,n){if(n.length<1e4)return(r=this.values).splice.apply(r,[e,t].concat(n));var i=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),i;var r},e.prototype.notifyArrayChildUpdate=function(e,t,n){var i=!this.owned&&c(),r=s(this),o=r||i?{object:this.array,type:\"update\",index:e,newValue:t,oldValue:n}:null;i&&h(o),this.atom.reportChanged(),r&&u(this,o),i&&f()},e.prototype.notifyArraySplice=function(e,t,n){var i=!this.owned&&c(),r=s(this),o=r||i?{object:this.array,type:\"splice\",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;i&&h(o),this.atom.reportChanged(),r&&u(this,o),i&&f()},e}(),hn=function(e){function t(t,n,i,r){void 0===i&&(i=\"ObservableArray@\"+Ee()),void 0===r&&(r=!1);var o=e.call(this)||this,a=new dn(i,n,o,r);return Be(o,\"$mobx\",a),t&&t.length&&o.spliceWithArray(0,0,t),ln&&Object.defineProperty(a.array,\"0\",fn),o}return i(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error(\"[mobx.array] Index out of bounds: \"+e+\" is negative\");var t=this.$mobx.values.length;if(e>=t)throw new Error(\"[mobx.array] Index out of bounds: \"+e+\" is not smaller than \"+t)}if(n.call(this,e),n.call(this,t),e!==t){var i,r=this.$mobx.values;i=e\";Ne(e,t,xn(o,n))},function(e){return this[e]},function(){ke(!1,w(\"m001\"))},!1,!0),_n=R(function(e,t,n){F(e,t,n)},function(e){return this[e]},function(){ke(!1,w(\"m001\"))},!1,!1),xn=function(e,t,n,i){return 1===arguments.length&&\"function\"==typeof e?M(e.name||\"\",e):2===arguments.length&&\"function\"==typeof t?M(e,t):1===arguments.length&&\"string\"==typeof e?N(e):N(t).apply(null,arguments)};xn.bound=function(e,t,n){if(\"function\"==typeof e){var i=M(\"\",e);return i.autoBind=!0,i}return _n.apply(null,arguments)};var wn=Object.prototype.toString,Mn={identity:H,structural:q,default:Y},Sn=function(){function e(e,t,n,i,r){this.derivation=e,this.scope=t,this.equals=n,this.dependenciesState=Jn.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Jn.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid=\"#\"+Ee(),this.value=new $n(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Qn.NONE,this.name=i||\"ComputedValue@\"+Ee(),r&&(this.setter=M(i+\"-setter\",r))}return e.prototype.onBecomeStale=function(){mt(this)},e.prototype.onBecomeUnobserved=function(){St(this),this.value=void 0},e.prototype.get=function(){ke(!this.isComputing,\"Cycle detected in computation \"+this.name,this.derivation),0===qn.inBatch?(ct(),bt(this)&&(this.isTracing!==Qn.NONE&&console.log(\"[mobx.trace] '\"+this.name+\"' is being read outside a reactive context and doing a full recompute\"),this.value=this.computeValue(!1)),dt()):(ht(this),bt(this)&&this.trackAndCompute()&&pt(this));var e=this.value;if(yt(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(yt(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){ke(!this.isRunningSetter,\"The setter of computed value '\"+this.name+\"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?\"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else ke(!1,\"[ComputedValue '\"+this.name+\"'] It is not possible to assign a new value to a computed value.\")},e.prototype.trackAndCompute=function(){c()&&d({object:this.scope,type:\"compute\",fn:this.derivation});var e=this.value,t=this.dependenciesState===Jn.NOT_TRACKING,n=this.value=this.computeValue(!0);return t||yt(e)||yt(n)||!this.equals(e,n)},e.prototype.computeValue=function(e){this.isComputing=!0,qn.computationDepth++;var t;if(e)t=wt(this,this.derivation,this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new $n(e)}return qn.computationDepth--,this.isComputing=!1,t},e.prototype.observe=function(e,t){var n=this,i=!0,r=void 0;return X(function(){var o=n.get();if(!i||t){var a=Tt();e({type:\"update\",object:n,newValue:o,oldValue:r}),kt(a)}i=!1,r=o})},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+\"[\"+this.derivation.toString()+\"]\"},e.prototype.valueOf=function(){return Ye(this.get())},e.prototype.whyRun=function(){var e=Boolean(qn.trackingDerivation),t=Pe(this.isComputing?this.newObserving:this.observing).map(function(e){return e.name}),n=Pe(at(this).map(function(e){return e.name}));return\"\\nWhyRun? computation '\"+this.name+\"':\\n * Running because: \"+(e?\"[active] the value of this computation is needed by a reaction\":this.isComputing?\"[get] The value of this computed was requested outside a reaction\":\"[idle] not running at the moment\")+\"\\n\"+(this.dependenciesState===Jn.NOT_TRACKING?w(\"m032\"):\" * This computation will re-run if any of the following observables changes:\\n \"+Ae(t)+\"\\n \"+(this.isComputing&&e?\" (... or any observable accessed during the remainder of the current run)\":\"\")+\"\\n \"+w(\"m038\")+\"\\n\\n * If the outcome of this computation changes, the following observers will be re-run:\\n \"+Ae(n)+\"\\n\")},e}();Sn.prototype[qe()]=Sn.prototype.valueOf;var En=je(\"ComputedValue\",Sn),Tn=function(){function e(e,t){this.target=e,this.name=t,this.values={},this.changeListeners=null,this.interceptors=null}return e.prototype.observe=function(e,t){return ke(!0!==t,\"`observe` doesn't support the fire immediately property for observable objects.\"),l(this,e)},e.prototype.intercept=function(e){return o(this,e)},e}(),kn={},On={},Cn=je(\"ObservableObjectAdministration\",Tn),Pn=ue(ve),An=ue(ye),Rn=ue(be),Ln=ue(_e),In=ue(xe),Dn={box:function(e,t){return arguments.length>2&&pe(\"box\"),new gn(e,ve,t)},shallowBox:function(e,t){return arguments.length>2&&pe(\"shallowBox\"),new gn(e,be,t)},array:function(e,t){return arguments.length>2&&pe(\"array\"),new hn(e,ve,t)},shallowArray:function(e,t){return arguments.length>2&&pe(\"shallowArray\"),new hn(e,be,t)},map:function(e,t){return arguments.length>2&&pe(\"map\"),new zn(e,ve,t)},shallowMap:function(e,t){return arguments.length>2&&pe(\"shallowMap\"),new zn(e,be,t)},object:function(e,t){arguments.length>2&&pe(\"object\");var n={};return Q(n,t),ce(n,e),n},shallowObject:function(e,t){arguments.length>2&&pe(\"shallowObject\");var n={};return Q(n,t),de(n,e),n},ref:function(){return arguments.length<2?ge(be,arguments[0]):Rn.apply(null,arguments)},shallow:function(){return arguments.length<2?ge(ye,arguments[0]):An.apply(null,arguments)},deep:function(){return arguments.length<2?ge(ve,arguments[0]):Pn.apply(null,arguments)},struct:function(){return arguments.length<2?ge(_e,arguments[0]):Ln.apply(null,arguments)}},Nn=fe;Object.keys(Dn).forEach(function(e){return Nn[e]=Dn[e]}),Nn.deep.struct=Nn.struct,Nn.ref.struct=function(){return arguments.length<2?ge(xe,arguments[0]):In.apply(null,arguments)};var Bn={},zn=function(){function e(e,t,n){void 0===t&&(t=ve),void 0===n&&(n=\"ObservableMap@\"+Ee()),this.enhancer=t,this.name=n,this.$mobx=Bn,this._data=Object.create(null),this._hasMap=Object.create(null),this._keys=new hn(void 0,be,this.name+\".keys()\",!0),this.interceptors=null,this.changeListeners=null,this.dehancer=void 0,this.merge(e)}return e.prototype._has=function(e){return void 0!==this._data[e]},e.prototype.has=function(e){return!!this.isValidKey(e)&&(e=\"\"+e,this._hasMap[e]?this._hasMap[e].get():this._updateHasMapEntry(e,!1).get())},e.prototype.set=function(e,t){this.assertValidKey(e),e=\"\"+e;var n=this._has(e);if(r(this)){var i=a(this,{type:n?\"update\":\"add\",object:this,newValue:t,name:e});if(!i)return this;t=i.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(this.assertValidKey(e),e=\"\"+e,r(this)){var n=a(this,{type:\"delete\",object:this,name:e});if(!n)return!1}if(this._has(e)){var i=c(),o=s(this),n=o||i?{type:\"delete\",object:this,oldValue:this._data[e].value,name:e}:null;return i&&h(n),we(function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data[e].setNewValue(void 0),t._data[e]=void 0}),o&&u(this,n),i&&f(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap[e];return n?n.setNewValue(t):n=this._hasMap[e]=new gn(t,be,this.name+\".\"+e+\"?\",!1),n},e.prototype._updateValue=function(e,t){var n=this._data[e];if((t=n.prepareNewValue(t))!==mn){var i=c(),r=s(this),o=r||i?{type:\"update\",object:this,oldValue:n.value,name:e,newValue:t}:null;i&&h(o),n.setNewValue(t),r&&u(this,o),i&&f()}},e.prototype._addValue=function(e,t){var n=this;we(function(){var i=n._data[e]=new gn(t,n.enhancer,n.name+\".\"+e,!1);t=i.value,n._updateHasMapEntry(e,!0),n._keys.push(e)});var i=c(),r=s(this),o=r||i?{type:\"add\",object:this,name:e,newValue:t}:null;i&&h(o),r&&u(this,o),i&&f()},e.prototype.get=function(e){return e=\"\"+e,this.has(e)?this.dehanceValue(this._data[e].get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return g(this._keys.slice())},e.prototype.values=function(){return g(this._keys.map(this.get,this))},e.prototype.entries=function(){var e=this;return g(this._keys.map(function(t){return[t,e.get(t)]}))},e.prototype.forEach=function(e,t){var n=this;this.keys().forEach(function(i){return e.call(t,n.get(i),i,n)})},e.prototype.merge=function(e){var t=this;return Fn(e)&&(e=e.toJS()),we(function(){Le(e)?Object.keys(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=e[0],i=e[1];return t.set(n,i)}):Ge(e)?e.forEach(function(e,n){return t.set(n,e)}):null!==e&&void 0!==e&&Te(\"Cannot initialize map from \"+e)}),this},e.prototype.clear=function(){var e=this;we(function(){Et(function(){e.keys().forEach(e.delete,e)})})},e.prototype.replace=function(e){var t=this;return we(function(){var n=Ve(e);t.keys().filter(function(e){return-1===n.indexOf(e)}).forEach(function(e){return t.delete(e)}),t.merge(e)}),this},Object.defineProperty(e.prototype,\"size\",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toJS=function(){var e=this,t={};return this.keys().forEach(function(n){return t[n]=e.get(n)}),t},e.prototype.toJSON=function(){return this.toJS()},e.prototype.isValidKey=function(e){return null!==e&&void 0!==e&&(\"string\"==typeof e||\"number\"==typeof e||\"boolean\"==typeof e)},e.prototype.assertValidKey=function(e){if(!this.isValidKey(e))throw new Error(\"[mobx.map] Invalid key: '\"+e+\"', only strings, numbers and booleans are accepted as key in observable maps.\")},e.prototype.toString=function(){var e=this;return this.name+\"[{ \"+this.keys().map(function(t){return t+\": \"+e.get(t)}).join(\", \")+\" }]\"},e.prototype.observe=function(e,t){return ke(!0!==t,w(\"m033\")),l(this,e)},e.prototype.intercept=function(e){return o(this,e)},e}();v(zn.prototype,function(){return this.entries()});var Fn=je(\"ObservableMap\",zn),jn=[];Object.freeze(jn);var Un=[],Wn=function(){},Gn=Object.prototype.hasOwnProperty,Vn=[\"mobxGuid\",\"resetId\",\"spyListeners\",\"strictMode\",\"runId\"],Hn=function(){function e(){this.version=5,this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[],this.globalReactionErrorHandlers=[]}return e}(),qn=new Hn,Yn=!1,Xn=!1,Kn=!1,Zn=Se();Zn.__mobxInstanceCount?(Zn.__mobxInstanceCount++,setTimeout(function(){Yn||Xn||Kn||(Kn=!0,console.warn(\"[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details.\"))},1)):Zn.__mobxInstanceCount=1;var Jn;!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\"}(Jn||(Jn={}));var Qn;!function(e){e[e.NONE=0]=\"NONE\",e[e.LOG=1]=\"LOG\",e[e.BREAK=2]=\"BREAK\"}(Qn||(Qn={}));var $n=function(){function e(e){this.cause=e}return e}(),ei=function(){function e(e,t){void 0===e&&(e=\"Reaction@\"+Ee()),this.name=e,this.onInvalidate=t,this.observing=[],this.newObserving=[],this.dependenciesState=Jn.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid=\"#\"+Ee(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Qn.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,qn.pendingReactions.push(this),Dt())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(ct(),this._isScheduled=!1,bt(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&c()&&d({object:this,type:\"scheduled-reaction\"})),dt())},e.prototype.track=function(e){ct();var t,n=c();n&&(t=Date.now(),h({object:this,type:\"reaction\",fn:e})),this._isRunning=!0;var i=wt(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&St(this),yt(i)&&this.reportExceptionInDerivation(i.cause),n&&f({time:Date.now()-t}),dt()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)return void this.errorHandler(e,this);var n=\"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '\"+this,i=w(\"m037\");console.error(n||i,e),c()&&d({type:\"error\",message:n,error:e,object:this}),qn.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(ct(),St(this),dt()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e.onError=Lt,e},e.prototype.toString=function(){return\"Reaction[\"+this.name+\"]\"},e.prototype.whyRun=function(){var e=Pe(this._isRunning?this.newObserving:this.observing).map(function(e){return e.name});return\"\\nWhyRun? reaction '\"+this.name+\"':\\n * Status: [\"+(this.isDisposed?\"stopped\":this._isRunning?\"running\":this.isScheduled()?\"scheduled\":\"idle\")+\"]\\n * This reaction will re-run if any of the following observables changes:\\n \"+Ae(e)+\"\\n \"+(this._isRunning?\" (... or any observable accessed during the remainder of the current run)\":\"\")+\"\\n\\t\"+w(\"m038\")+\"\\n\"},e.prototype.trace=function(e){void 0===e&&(e=!1),At(this,e)},e}(),ti=100,ni=function(e){return e()},ii=je(\"Reaction\",ei),ri=Wt(Mn.default),oi=Wt(Mn.structural),ai=function(e,t,n){if(\"string\"==typeof t)return ri.apply(null,arguments);ke(\"function\"==typeof e,w(\"m011\")),ke(arguments.length<3,w(\"m012\"));var i=\"object\"==typeof t?t:{};i.setter=\"function\"==typeof t?t:i.setter;var r=i.equals?i.equals:i.compareStructural||i.struct?Mn.structural:Mn.default;return new Sn(e,i.context,r,i.name||e.name||\"\",i.setter)};ai.struct=oi,ai.equals=Wt;var si={allowStateChanges:C,deepEqual:j,getAtom:Qe,getDebugName:et,getDependencyTree:tt,getAdministration:$e,getGlobalState:Ze,getObserverTree:it,interceptReads:en,isComputingDerivation:_t,isSpyEnabled:c,onReactionError:It,reserveArrayBuffer:_,resetGlobalState:Je,isolateGlobalState:Xe,shareGlobalState:Ke,spyReport:d,spyReportEnd:f,spyReportStart:h,setReactionScheduler:Bt},li={Reaction:ei,untracked:Et,Atom:rn,BaseAtom:nn,useStrict:k,isStrictModeEnabled:O,spy:p,comparer:Mn,asReference:zt,asFlat:jt,asStructure:Ft,asMap:Ut,isModifierDescriptor:me,isObservableObject:se,isBoxedObservable:vn,isObservableArray:x,ObservableMap:zn,isObservableMap:Fn,map:Me,transaction:we,observable:Nn,computed:ai,isObservable:le,isComputed:Gt,extendObservable:ce,extendShallowObservable:de,observe:Vt,intercept:Yt,autorun:X,autorunAsync:Z,when:K,reaction:J,action:xn,isAction:z,runInAction:B,expr:Zt,toJS:Jt,createTransformer:Qt,whyRun:Pt,isArrayLike:We,extras:si},ui=!1;for(var ci in li)!function(e){var t=li[e];Object.defineProperty(li,e,{get:function(){return ui||(ui=!0,console.warn(\"Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in mobx@4.0.0\\nUse `import * as mobx from 'mobx'` instead\")),t}})}(ci);\"object\"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:p,extras:si}),t.default=li}.call(t,n(28))},function(e,t,n){e.exports={default:n(376),__esModule:!0}},function(e,t){e.exports=function(e){return\"object\"==typeof e?null!==e:\"function\"==typeof e}},function(e,t,n){var i=n(30),r=n(163),o=n(118),a=Object.defineProperty;t.f=n(31)?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(e,t,n)}catch(e){}if(\"get\"in n||\"set\"in n)throw TypeError(\"Accessors not supported!\");return\"value\"in n&&(e[t]=n.value),e}},function(e,t){\"function\"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){e.exports=n(546)()},function(e,t){var n;n=function(){return this}();try{n=n||Function(\"return this\")()||(0,eval)(\"this\")}catch(e){\"object\"==typeof window&&(n=window)}e.exports=n},function(e,t,n){\"use strict\";function i(e,t,n,i){var o,a,s,l,u,c,d,h,f,p=Object.keys(n);for(o=0,a=p.length;o0)},o.Buffer=function(){try{var e=o.inquire(\"buffer\").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(e){return\"number\"==typeof e?o.Buffer?o._Buffer_allocUnsafe(e):new o.Array(e):o.Buffer?o._Buffer_from(e):\"undefined\"==typeof Uint8Array?e:new Uint8Array(e)},o.Array=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire(\"long\"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\\\x00-\\\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(e){return e?o.LongBits.from(e).toHash():o.LongBits.zeroHash},o.longFromHash=function(e,t){var n=o.LongBits.fromHash(e);return o.Long?o.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},o.merge=i,o.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},o.newError=r,o.ProtocolError=r(\"ProtocolError\"),o.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},o.oneOfSetter=function(e){return function(t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2];this.coordinates.isInitialized()&&!n||this.coordinates.initialize(e,t)}},{key:\"updateDimension\",value:function(e,t){this.camera.aspect=e/t,this.camera.updateProjectionMatrix(),this.renderer.setSize(e,t),this.dimension.width=e,this.dimension.height=t}},{key:\"enableOrbitControls\",value:function(){var e=this.adc.mesh.position;this.controls.enabled=!0,this.controls.enableRotate=!1,this.controls.reset(),this.controls.minDistance=20,this.controls.maxDistance=1e3,this.controls.target.set(e.x,e.y,0),this.camera.position.set(e.x,e.y,50),\"FLU\"===this.coordinates.systemName?this.camera.up.set(1,0,0):this.camera.up.set(0,1,0),this.camera.lookAt(e.x,e.y,0)}},{key:\"adjustCamera\",value:function(e,t){if(!this.routingEditor.isInEditingMode()){switch(this.camera.fov=PARAMETERS.camera[t].fov,this.camera.near=PARAMETERS.camera[t].near,this.camera.far=PARAMETERS.camera[t].far,t){case\"Default\":var n=this.viewDistance*Math.cos(e.rotation.y)*Math.cos(this.viewAngle),i=this.viewDistance*Math.sin(e.rotation.y)*Math.cos(this.viewAngle),r=this.viewDistance*Math.sin(this.viewAngle);this.camera.position.x=e.position.x-n,this.camera.position.y=e.position.y-i,this.camera.position.z=e.position.z+r,this.camera.up.set(0,0,1),this.camera.lookAt({x:e.position.x+2*n,y:e.position.y+2*i,z:0}),this.controls.enabled=!1;break;case\"Near\":n=.5*this.viewDistance*Math.cos(e.rotation.y)*Math.cos(this.viewAngle),i=.5*this.viewDistance*Math.sin(e.rotation.y)*Math.cos(this.viewAngle),r=.5*this.viewDistance*Math.sin(this.viewAngle),this.camera.position.x=e.position.x-n,this.camera.position.y=e.position.y-i,this.camera.position.z=e.position.z+r,this.camera.up.set(0,0,1),this.camera.lookAt({x:e.position.x+2*n,y:e.position.y+2*i,z:0}),this.controls.enabled=!1;break;case\"Overhead\":i=.5*this.viewDistance*Math.sin(e.rotation.y)*Math.cos(this.viewAngle),r=2*this.viewDistance*Math.sin(this.viewAngle),this.camera.position.x=e.position.x,this.camera.position.y=e.position.y+i,this.camera.position.z=2*(e.position.z+r),\"FLU\"===this.coordinates.systemName?this.camera.up.set(1,0,0):this.camera.up.set(0,1,0),this.camera.lookAt({x:e.position.x,y:e.position.y+i,z:0}),this.controls.enabled=!1;break;case\"Map\":this.controls.enabled||this.enableOrbitControls()}this.camera.updateProjectionMatrix()}}},{key:\"enableRouteEditing\",value:function(){this.enableOrbitControls(),this.routingEditor.enableEditingMode(this.camera,this.adc),document.getElementById(this.canvasId).addEventListener(\"mousedown\",this.onMouseDownHandler,!1)}},{key:\"disableRouteEditing\",value:function(){this.routingEditor.disableEditingMode(this.scene),document.getElementById(this.canvasId).removeEventListener(\"mousedown\",this.onMouseDownHandler,!1)}},{key:\"addDefaultEndPoint\",value:function(e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1]&&this.map.removeAllElements(this.scene),this.map.appendMapData(e,this.coordinates,this.scene)}},{key:\"updatePointCloud\",value:function(e){this.coordinates.isInitialized()&&this.adc.mesh&&this.pointCloud.update(e,this.adc.mesh)}},{key:\"updateMapIndex\",value:function(e,t,n){this.routingEditor.isInEditingMode()&&PARAMETERS.routingEditor.radiusOfMapRequest!==n||this.map.updateIndex(e,t,this.scene)}},{key:\"isMobileDevice\",value:function(){return navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)}},{key:\"getGeolocation\",value:function(e){if(this.coordinates.isInitialized()){var t=e.currentTarget.getBoundingClientRect(),n=new u.Vector3((e.clientX-t.left)/this.dimension.width*2-1,-(e.clientY-t.top)/this.dimension.height*2+1,0);n.unproject(this.camera);var i=n.sub(this.camera.position).normalize(),r=-this.camera.position.z/i.z,o=this.camera.position.clone().add(i.multiplyScalar(r));return this.coordinates.applyOffset(o,!0)}}},{key:\"getMouseOverLanes\",value:function(e){var t=e.currentTarget.getBoundingClientRect(),n=new u.Vector3((e.clientX-t.left)/this.dimension.width*2-1,-(e.clientY-t.top)/this.dimension.height*2+1,0),i=new u.Raycaster;i.setFromCamera(n,this.camera);var r=this.map.data.lane.reduce(function(e,t){return e.concat(t.drewObjects)},[]);return i.intersectObjects(r).map(function(e){return e.object.name})}}]),e}()),j=new F;t.default=j},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(t){var n=t*w;e.position.z+=n}}function o(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=new g.MeshBasicMaterial({map:E.load(e),transparent:!0,depthWrite:!1}),s=new g.Mesh(new g.PlaneGeometry(t,n),a);return s.material.side=g.DoubleSide,s.position.set(i,r,o),s.overdraw=!0,s}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16711680,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],l=new g.Path,u=l.createGeometry(e);u.computeLineDistances();var c=new g.LineDashedMaterial({color:t,dashSize:i,linewidth:n,gapSize:o}),d=new g.Line(u,c);return r(d,a),d.matrixAutoUpdate=s,s||d.updateMatrix(),d}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,i=new g.CircleGeometry(e,n);return new g.Mesh(i,t)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16777215,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=M(e.map(function(e){return[e.x,e.y]})),s=new g.ShaderMaterial(S({side:g.DoubleSide,diffuse:n,thickness:t,opacity:i,transparent:!0})),l=new g.Mesh(a,s);return r(l,o),l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16711680,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,l=new g.Path,u=l.createGeometry(e),c=new g.LineBasicMaterial({color:t,linewidth:n,transparent:a,opacity:s}),d=new g.Line(u,c);return r(d,i),d.matrixAutoUpdate=o,!1===o&&d.updateMatrix(),d}function c(e,t,n){var i=new g.CubeGeometry(e.x,e.y,e.z),r=new g.MeshBasicMaterial({color:t}),o=new g.Mesh(i,r),a=new g.BoxHelper(o);return a.material.linewidth=n,a}function d(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.01,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.02,o=new g.CubeGeometry(e.x,e.y,e.z);o=new g.EdgesGeometry(o),o=(new g.Geometry).fromBufferGeometry(o),o.computeLineDistances();var a=new g.LineDashedMaterial({color:t,linewidth:n,dashSize:i,gapSize:r});return new g.LineSegments(o,a)}function h(e,t,n,i,r){var o=new g.Vector3(0,e,0);return u([new g.Vector3(0,0,0),o,new g.Vector3(i/2,e-n,0),o,new g.Vector3(-i/2,e-n,0)],r,t,1)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new g.Shape;if(t){n.moveTo(e[0].x,e[0].y);for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:new g.MeshBasicMaterial({color:16711680}),n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=f(e,n),s=new g.Mesh(a,t);return r(s,i),s.matrixAutoUpdate=o,!1===o&&s.updateMatrix(),s}Object.defineProperty(t,\"__esModule\",{value:!0}),t.addOffsetZ=r,t.drawImage=o,t.drawDashedLineFromPoints=a,t.drawCircle=s,t.drawThickBandFromPoints=l,t.drawSegmentsFromPoints=u,t.drawBox=c,t.drawDashedBox=d,t.drawArrow=h,t.getShapeGeometryFromPoints=f,t.drawShapeFromPoints=p;var m=n(12),g=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(m),v=n(599),y=i(v),b=n(600),_=i(b),x=n(20),w=.04,M=(0,y.default)(g),S=(0,_.default)(g),E=new g.TextureLoader},function(e,t,n){\"use strict\";var i=n(9),r=n(6),o=n(58);e.exports={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=r.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?r.merge({},[i.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var n=this;n.defaults.hasOwnProperty(e)&&(n.defaults[e]=r.extend(n.defaults[e],t))},addScalesToLayout:function(e){r.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,o.addBox(e,t)})}}},function(e,t,n){\"use strict\";e.exports={},e.exports.Arc=n(343),e.exports.Line=n(344),e.exports.Point=n(345),e.exports.Rectangle=n(346)},function(e,t,n){var i=n(25),r=n(66);e.exports=n(31)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(107),r=n(104);e.exports=function(e){return i(r(e))}},function(e,t,n){\"use strict\";function i(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e.constructor===Array&&e.length>0)for(;t1&&void 0!==arguments[1]&&arguments[1],n=new Date(e),i=n.getHours(),r=n.getMinutes(),o=n.getSeconds();i=i<10?\"0\"+i:i,r=r<10?\"0\"+r:r,o=o<10?\"0\"+o:o;var a=i+\":\"+r+\":\"+o;if(t){var s=n.getMilliseconds();s<10?s=\"00\"+s:s<100&&(s=\"0\"+s),a+=\":\"+s}return a}function s(e,t){if(!e||!t)return[];for(var n=e.positionX,i=e.positionY,r=e.heading,o=t.c0Position,a=t.c1HeadingAngle,s=t.c2Curvature,l=t.c3CurvatureDerivative,c=t.viewRange,d=[l,s,a,o],h=[],f=0;f=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){\"use strict\";t.a=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)}},function(e,t,n){\"use strict\";t.a=function(e,t,n){var i=e*t;return n/Math.sqrt(1-i*i)}},function(e,t,n){\"use strict\";function i(e,t,n,i,o,a,c){if(l.isObject(i)?(c=o,a=i,i=o=void 0):l.isObject(o)&&(c=a,a=o,o=void 0),r.call(this,e,a),!l.isInteger(t)||t<0)throw TypeError(\"id must be a non-negative integer\");if(!l.isString(n))throw TypeError(\"type must be a string\");if(void 0!==i&&!u.test(i=i.toString().toLowerCase()))throw TypeError(\"rule must be a string rule\");if(void 0!==o&&!l.isString(o))throw TypeError(\"extend must be a string\");this.rule=i&&\"optional\"!==i?i:void 0,this.type=n,this.id=t,this.extend=o||void 0,this.required=\"required\"===i,this.optional=!this.required,this.repeated=\"repeated\"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!l.Long&&void 0!==s.long[n],this.bytes=\"bytes\"===n,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=c}e.exports=i;var r=n(57);((i.prototype=Object.create(r.prototype)).constructor=i).className=\"Field\";var o,a=n(35),s=n(76),l=n(16),u=/^required|optional|repeated$/;i.fromJSON=function(e,t){return new i(e,t.id,t.type,t.rule,t.extend,t.options,t.comment)},Object.defineProperty(i.prototype,\"packed\",{get:function(){return null===this._packed&&(this._packed=!1!==this.getOption(\"packed\")),this._packed}}),i.prototype.setOption=function(e,t,n){return\"packed\"===e&&(this._packed=null),r.prototype.setOption.call(this,e,t,n)},i.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return l.toObject([\"rule\",\"optional\"!==this.rule&&this.rule||void 0,\"type\",this.type,\"id\",this.id,\"extend\",this.extend,\"options\",this.options,\"comment\",t?this.comment:void 0])},i.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])&&(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof a&&\"string\"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof a)||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=l.Long.fromNumber(this.typeDefault,\"u\"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&\"string\"==typeof this.typeDefault){var e;l.base64.test(this.typeDefault)?l.base64.decode(this.typeDefault,e=l.newBuffer(l.base64.length(this.typeDefault)),0):l.utf8.write(this.typeDefault,e=l.newBuffer(l.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=l.emptyObject:this.repeated?this.defaultValue=l.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),r.prototype.resolve.call(this)},i.d=function(e,t,n,r){return\"function\"==typeof t?t=l.decorateType(t).name:t&&\"object\"==typeof t&&(t=l.decorateEnum(t).name),function(o,a){l.decorateType(o.constructor).add(new i(a,e,t,n,{default:r}))}},i._configure=function(e){o=e}},function(e,t,n){\"use strict\";function i(e,t){if(!o.isString(e))throw TypeError(\"name must be a string\");if(t&&!o.isObject(t))throw TypeError(\"options must be an object\");this.options=t,this.name=e,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}e.exports=i,i.className=\"ReflectionObject\";var r,o=n(16);Object.defineProperties(i.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(\".\")}}}),i.prototype.toJSON=function(){throw Error()},i.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof r&&t._handleAdd(this)},i.prototype.onRemove=function(e){var t=e.root;t instanceof r&&t._handleRemove(this),this.parent=null,this.resolved=!1},i.prototype.resolve=function(){return this.resolved?this:(this.root instanceof r&&(this.resolved=!0),this)},i.prototype.getOption=function(e){if(this.options)return this.options[e]},i.prototype.setOption=function(e,t,n){return n&&this.options&&void 0!==this.options[e]||((this.options||(this.options={}))[e]=t),this},i.prototype.setOptions=function(e,t){if(e)for(var n=Object.keys(e),i=0;ih&&se.maxHeight){s--;break}s++,d=l*u}e.labelRotation=s},afterCalculateTickRotation:function(){c.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){c.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=i(e._ticks),r=e.options,l=r.ticks,u=r.scaleLabel,d=r.gridLines,h=r.display,f=e.isHorizontal(),p=a(l),m=r.gridLines.tickMarkLength;if(t.width=f?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:h&&d.drawTicks?m:0,t.height=f?h&&d.drawTicks?m:0:e.maxHeight,u.display&&h){var g=s(u),v=c.options.toPadding(u.padding),y=g+v.height;f?t.height+=y:t.width+=y}if(l.display&&h){var b=c.longestText(e.ctx,p.font,n,e.longestTextCache),_=c.numberOfLabelLines(n),x=.5*p.size,w=e.options.ticks.padding;if(f){e.longestLabelWidth=b;var M=c.toRadians(e.labelRotation),S=Math.cos(M),E=Math.sin(M),T=E*b+p.size*_+x*(_-1)+x;t.height=Math.min(e.maxHeight,t.height+T+w),e.ctx.font=p.font;var k=o(e.ctx,n[0],p.font),O=o(e.ctx,n[n.length-1],p.font);0!==e.labelRotation?(e.paddingLeft=\"bottom\"===r.position?S*k+3:S*x+3,e.paddingRight=\"bottom\"===r.position?S*x+3:S*O+3):(e.paddingLeft=k/2+3,e.paddingRight=O/2+3)}else l.mirror?b=0:b+=w+x,t.width=Math.min(e.maxWidth,t.width+b),e.paddingTop=p.size/2,e.paddingBottom=p.size/2}e.handleMargins(),e.width=t.width,e.height=t.height},handleMargins:function(){var e=this;e.margins&&(e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0),e.paddingTop=Math.max(e.paddingTop-e.margins.top,0),e.paddingRight=Math.max(e.paddingRight-e.margins.right,0),e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0))},afterFit:function(){c.callback(this.options.afterFit,[this])},isHorizontal:function(){return\"top\"===this.options.position||\"bottom\"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(c.isNullOrUndef(e))return NaN;if(\"number\"==typeof e&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},getLabelForIndex:c.noop,getPixelForValue:c.noop,getValueForPixel:c.noop,getPixelForTick:function(e){var t=this,n=t.options.offset;if(t.isHorizontal()){var i=t.width-(t.paddingLeft+t.paddingRight),r=i/Math.max(t._ticks.length-(n?0:1),1),o=r*e+t.paddingLeft;n&&(o+=r/2);var a=t.left+Math.round(o);return a+=t.isFullWidth()?t.margins.left:0}var s=t.height-(t.paddingTop+t.paddingBottom);return t.top+e*(s/(t._ticks.length-1))},getPixelForDecimal:function(e){var t=this;if(t.isHorizontal()){var n=t.width-(t.paddingLeft+t.paddingRight),i=n*e+t.paddingLeft,r=t.left+Math.round(i);return r+=t.isFullWidth()?t.margins.left:0}return t.top+e*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,n=e.max;return e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0},_autoSkip:function(e){var t,n,i,r,o,a=this,s=a.isHorizontal(),l=a.options.ticks.minor,u=e.length,d=c.toRadians(a.labelRotation),h=Math.cos(d),f=a.longestLabelWidth*h,p=[];for(l.maxTicksLimit&&(o=l.maxTicksLimit),s&&(t=!1,(f+l.autoSkipPadding)*u>a.width-(a.paddingLeft+a.paddingRight)&&(t=1+Math.floor((f+l.autoSkipPadding)*u/(a.width-(a.paddingLeft+a.paddingRight)))),o&&u>o&&(t=Math.max(t,Math.floor(u/o)))),n=0;n1&&n%t>0||n%t==0&&n+t>=u,r&&n!==u-1&&delete i.label,p.push(i);return p},draw:function(e){var t=this,n=t.options;if(n.display){var i=t.ctx,o=l.global,u=n.ticks.minor,d=n.ticks.major||u,h=n.gridLines,f=n.scaleLabel,p=0!==t.labelRotation,m=t.isHorizontal(),g=u.autoSkip?t._autoSkip(t.getTicks()):t.getTicks(),v=c.valueOrDefault(u.fontColor,o.defaultFontColor),y=a(u),b=c.valueOrDefault(d.fontColor,o.defaultFontColor),_=a(d),x=h.drawTicks?h.tickMarkLength:0,w=c.valueOrDefault(f.fontColor,o.defaultFontColor),M=a(f),S=c.options.toPadding(f.padding),E=c.toRadians(t.labelRotation),T=[],k=t.options.gridLines.lineWidth,O=\"right\"===n.position?t.left:t.right-k-x,C=\"right\"===n.position?t.left+x:t.right,P=\"bottom\"===n.position?t.top+k:t.bottom-x-k,A=\"bottom\"===n.position?t.top+k+x:t.bottom+k;if(c.each(g,function(i,a){if(!c.isNullOrUndef(i.label)){var s,l,d,f,v=i.label;a===t.zeroLineIndex&&n.offset===h.offsetGridLines?(s=h.zeroLineWidth,l=h.zeroLineColor,d=h.zeroLineBorderDash,f=h.zeroLineBorderDashOffset):(s=c.valueAtIndexOrDefault(h.lineWidth,a),l=c.valueAtIndexOrDefault(h.color,a),d=c.valueOrDefault(h.borderDash,o.borderDash),f=c.valueOrDefault(h.borderDashOffset,o.borderDashOffset));var y,b,_,w,M,S,R,L,I,D,N=\"middle\",B=\"middle\",z=u.padding;if(m){var F=x+z;\"bottom\"===n.position?(B=p?\"middle\":\"top\",N=p?\"right\":\"center\",D=t.top+F):(B=p?\"middle\":\"bottom\",N=p?\"left\":\"center\",D=t.bottom-F);var j=r(t,a,h.offsetGridLines&&g.length>1);j1);G3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var o=i.log10(Math.abs(r)),a=\"\";if(0!==e){if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var s=i.log10(Math.abs(e));a=e.toExponential(Math.floor(s)-Math.floor(o))}else{var l=-1*Math.floor(o);l=Math.max(Math.min(l,20),0),a=e.toFixed(l)}}else a=\"0\";return a},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(i.log10(e)));return 0===e?\"0\":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():\"\"}}}},function(e,t){e.exports=function(e){if(\"function\"!=typeof e)throw TypeError(e+\" is not a function!\");return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(33),r=n(166),o=n(164),a=n(30),s=n(84),l=n(121),u={},c={},t=e.exports=function(e,t,n,d,h){var f,p,m,g,v=h?function(){return e}:l(e),y=i(n,d,t?2:1),b=0;if(\"function\"!=typeof v)throw TypeError(e+\" is not iterable!\");if(o(v)){for(f=s(e.length);f>b;b++)if((g=t?y(a(p=e[b])[0],p[1]):y(e[b]))===u||g===c)return g}else for(m=v.call(e);!(p=m.next()).done;)if((g=r(m,y,p.value,t))===u||g===c)return g};t.BREAK=u,t.RETURN=c},function(e,t){e.exports=!0},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(25).f,r=n(46),o=n(18)(\"toStringTag\");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},function(e,t,n){n(412);for(var i=n(17),r=n(41),o=n(50),a=n(18)(\"toStringTag\"),s=\"CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList\".split(\",\"),l=0;l=t)return!0;return!1},r.isReservedName=function(e,t){if(e)for(var n=0;n0;){var i=e.shift();if(n.nested&&n.nested[i]){if(!((n=n.nested[i])instanceof r))throw Error(\"path conflicts with non-namespace objects\")}else n.add(n=new r(i))}return t&&n.addJSON(t),n},r.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t-1)return i}else if(i instanceof r&&(i=i.lookup(e.slice(1),t,!0)))return i}else for(var o=0;o=i())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+i().toString(16)+\" bytes\");return 0|e}function m(e){return+e!=e&&(e=0),o.alloc(+e)}function g(e,t){if(o.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 i=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return n;case\"utf8\":case\"utf-8\":case void 0:return V(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*n;case\"hex\":return n>>>1;case\"base64\":return Y(e).length;default:if(i)return V(e).length;t=(\"\"+t).toLowerCase(),i=!0}}function v(e,t,n){var i=!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,n<=t)return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return R(this,t,n);case\"utf8\":case\"utf-8\":return O(this,t,n);case\"ascii\":return P(this,t,n);case\"latin1\":case\"binary\":return A(this,t,n);case\"base64\":return k(this,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return L(this,t,n);default:if(i)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),i=!0}}function y(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function b(e,t,n,i,r){if(0===e.length)return-1;if(\"string\"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if(\"string\"==typeof t&&(t=o.from(t,i)),o.isBuffer(t))return 0===t.length?-1:_(e,t,n,i,r);if(\"number\"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&\"function\"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,i,r);throw new TypeError(\"val must be string, number or Buffer\")}function _(e,t,n,i,r){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}var u;if(r){var c=-1;for(u=n;us&&(n=s-l),u=n;u>=0;u--){for(var d=!0,h=0;hr&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError(\"Invalid hex string\");i>o/2&&(i=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(r+s<=n){var l,u,c,d;switch(s){case 1:o<128&&(a=o);break;case 2:l=e[r+1],128==(192&l)&&(d=(31&o)<<6|63&l)>127&&(a=d);break;case 3:l=e[r+1],u=e[r+2],128==(192&l)&&128==(192&u)&&(d=(15&o)<<12|(63&l)<<6|63&u)>2047&&(d<55296||d>57343)&&(a=d);break;case 4:l=e[r+1],u=e[r+2],c=e[r+3],128==(192&l)&&128==(192&u)&&128==(192&c)&&(d=(15&o)<<18|(63&l)<<12|(63&u)<<6|63&c)>65535&&d<1114112&&(a=d)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|1023&a),i.push(a),r+=s}return C(i)}function C(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var n=\"\",i=0;ii)&&(n=i);for(var r=\"\",o=t;on)throw new RangeError(\"Trying to access beyond buffer length\")}function D(e,t,n,i,r,a){if(!o.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError(\"Index out of range\")}function N(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r>>8*(i?r:1-r)}function B(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r>>8*(i?r:3-r)&255}function z(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"Index out of range\")}function F(e,t,n,i,r){return r||z(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),J.write(e,t,n,i,23,4),n+4}function j(e,t,n,i,r){return r||z(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),J.write(e,t,n,i,52,8),n+8}function U(e){if(e=W(e).replace(ee,\"\"),e.length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}function W(e){return e.trim?e.trim():e.replace(/^\\s+|\\s+$/g,\"\")}function G(e){return e<16?\"0\"+e.toString(16):e.toString(16)}function V(e,t){t=t||1/0;for(var n,i=e.length,r=null,o=[],a=0;a55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){for(var t=[],n=0;n>8,r=n%256,o.push(r),o.push(i);return o}function Y(e){return Z.toByteArray(U(e))}function X(e,t,n,i){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}function K(e){return e!==e}/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\nvar Z=n(322),J=n(456),Q=n(188);t.Buffer=o,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&\"function\"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=i(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,n){return a(null,e,t,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,\"undefined\"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,n){return l(null,e,t,n)},o.allocUnsafe=function(e){return u(null,e)},o.allocUnsafeSlow=function(e){return u(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError(\"Arguments must be Buffers\");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,a=Math.min(n,i);r0&&(e=this.toString(\"hex\",0,n).match(/.{2}/g).join(\" \"),this.length>n&&(e+=\" ... \")),\"\"},o.prototype.compare=function(e,t,n,i,r){if(!o.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===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError(\"out of range index\");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,r>>>=0,this===e)return 0;for(var a=r-i,s=n-t,l=Math.min(a,s),u=this.slice(i,r),c=e.slice(t,n),d=0;dr)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");i||(i=\"utf8\");for(var o=!1;;)switch(i){case\"hex\":return x(this,e,t,n);case\"utf8\":case\"utf-8\":return w(this,e,t,n);case\"ascii\":return M(this,e,t,n);case\"latin1\":case\"binary\":return S(this,e,t,n);case\"base64\":return E(this,e,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return T(this,e,t,n);default:if(o)throw new TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;o.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(r*=256);)i+=this[e+--t]*r;return i},o.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var i=this[e],r=1,o=0;++o=r&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),J.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),J.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),J.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),J.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){D(this,e,t,n,Math.pow(2,8*n)-1,0)}var r=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+r]=e/o&255;return t+n},o.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},o.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError(\"sourceStart out of bounds\");if(i<0)throw new RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t=0;--r)e[r+t]=this[r+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var a;if(\"number\"==typeof e)for(a=t;a=0;o--)t.call(n,e[o],o);else for(o=0;odocument.F=Object<\\/script>\"),e.close(),l=e.F;i--;)delete l.prototype[o[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=i(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:r(n,t)}},function(e,t,n){var i=n(117),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return\"Symbol(\".concat(void 0===e?\"\":e,\")_\",(++n+i).toString(36))}},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return\"function\"==typeof e}function r(e){return\"number\"==typeof e}function o(e){return\"object\"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!r(e)||e<0||isNaN(e))throw TypeError(\"n must be a positive number\");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,r,s,l,u;if(this._events||(this._events={}),\"error\"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified \"error\" event. ('+t+\")\");throw c.context=t,c}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),u=n.slice(),r=u.length,l=0;l0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error(\"(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.\",this._events[e].length),\"function\"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError(\"listener must be a function\");var r=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError(\"listener must be a function\");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit(\"removeListener\",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit(\"removeListener\",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)\"removeListener\"!==t&&this.removeAllListeners(t);return this.removeAllListeners(\"removeListener\"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){\"use strict\";(function(t){function n(e,n,i,r){if(\"function\"!=typeof e)throw new TypeError('\"callback\" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,i)});case 4:return t.nextTick(function(){e.call(null,n,i,r)});default:for(o=new Array(s-1),a=0;a1)for(var n=1;n0?1:-1,h=Math.tan(s)*d,f=d*c.x,p=h*c.y,m=Math.atan2(p,f),g=a.data[0],v=g.tooltipPosition();e.ctx.font=x.default.helpers.fontString(20,\"normal\",\"Helvetica Neue\"),e.ctx.translate(v.x,v.y),e.ctx.rotate(-m),e.ctx.fillText(\"►\",0,0),e.ctx.restore()}})}}),x.default.defaults.global.defaultFontColor=\"#FFFFFF\";var S={color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0,showText:!0,cubicInterpolationMode:\"monotone\",lineTension:0},E=function(e){function t(){return(0,c.default)(this,t),(0,p.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:\"initializeCanvas\",value:function(e,t){this.name2idx={};var n={title:{display:e&&e.length>0,text:e},legend:{display:t.legend.display},tooltips:{enable:!0,mode:\"nearest\",intersect:!1}};if(t.axes){n.scales||(n.scales={});for(var i in t.axes){var r=i+\"Axes\",o=t.axes[i],a={id:i+\"-axis-0\",scaleLabel:{display:!M.default.isEmpty(o.labelString),labelString:o.labelString},ticks:{min:o.min,max:o.max,minRotation:0,maxRotation:0},gridLines:{color:\"rgba(153, 153, 153, 0.5)\",zeroLineColor:\"rgba(153, 153, 153, 0.7)\"}};n.scales[r]||(n.scales[r]=[]),n.scales[r].push(a)}}var s=this.canvasElement.getContext(\"2d\");this.chart=new x.default(s,{type:\"scatter\",options:n})}},{key:\"updateData\",value:function(e,t,n,i){var r=t.substring(0,5);if(void 0===this.chart.data.datasets[e]){var o={label:r,showText:n.showLabel,text:t,backgroundColor:n.color,borderColor:n.color,data:i};for(var a in n)o[a]=n[a];this.chart.data.datasets.push(o)}else this.chart.data.datasets[e].text=t,this.chart.data.datasets[e].data=i}},{key:\"updateChart\",value:function(e){if(e.data&&e.properties){var t=e.data;for(var n in e.properties.cars){void 0===this.name2idx[n]&&(this.name2idx[n]=this.chart.data.datasets.length);var i=this.name2idx[n],r=M.default.get(t,\"cars[\"+n+\"]\",{}),o=M.default.get(e,\"properties.cars[\"+n+\"]\",{});o.specialMarker=\"car\",o.borderWidth=0,o.pointRadius=0,this.updateData(i,n,o,[r])}for(var s in e.properties.lines){void 0===this.name2idx[s]&&(this.name2idx[s]=this.chart.data.datasets.length);var l=this.name2idx[s],u=M.default.get(e,\"properties.lines[\"+s+\"]\",{}),c=M.default.get(t,\"lines[\"+s+\"]\",[]);this.updateData(l,s,u,c)}var d=(0,a.default)(this.name2idx).length;if(t.polygons)for(var h in t.polygons){var f=M.default.get(t,\"polygons[\"+h+\"]\");if(f){var p=M.default.get(e,\"properties.polygons[\"+h+\"]\",S);this.updateData(d,h,p,f),d++}}this.chart.data.datasets.splice(d,this.chart.data.datasets.length-d),this.chart.update(0)}}},{key:\"componentDidMount\",value:function(){var e=this.props,t=e.title,n=e.options;this.initializeCanvas(t,n),this.updateChart(this.props)}},{key:\"componentWillUnmount\",value:function(){this.chart.destroy()}},{key:\"componentWillReceiveProps\",value:function(e){this.updateChart(e)}},{key:\"render\",value:function(){var e=this,t=this.props;t.title,t.options,t.properties,t.data;return y.default.createElement(\"div\",{className:\"scatter-graph\"},y.default.createElement(\"canvas\",{ref:function(t){e.canvasElement=t}}))}}]),t}(y.default.Component);t.default=E,t.generateScatterGraph=r},function(e,t,n){\"use strict\";e.exports=function(){return new Worker(n.p+\"worker.bundle.js\")}},function(e,t){e.exports={Aacute:\"Á\",aacute:\"á\",Abreve:\"Ă\",abreve:\"ă\",ac:\"∾\",acd:\"∿\",acE:\"∾̳\",Acirc:\"Â\",acirc:\"â\",acute:\"´\",Acy:\"А\",acy:\"а\",AElig:\"Æ\",aelig:\"æ\",af:\"⁡\",Afr:\"𝔄\",afr:\"𝔞\",Agrave:\"À\",agrave:\"à\",alefsym:\"ℵ\",aleph:\"ℵ\",Alpha:\"Α\",alpha:\"α\",Amacr:\"Ā\",amacr:\"ā\",amalg:\"⨿\",amp:\"&\",AMP:\"&\",andand:\"⩕\",And:\"⩓\",and:\"∧\",andd:\"⩜\",andslope:\"⩘\",andv:\"⩚\",ang:\"∠\",ange:\"⦤\",angle:\"∠\",angmsdaa:\"⦨\",angmsdab:\"⦩\",angmsdac:\"⦪\",angmsdad:\"⦫\",angmsdae:\"⦬\",angmsdaf:\"⦭\",angmsdag:\"⦮\",angmsdah:\"⦯\",angmsd:\"∡\",angrt:\"∟\",angrtvb:\"⊾\",angrtvbd:\"⦝\",angsph:\"∢\",angst:\"Å\",angzarr:\"⍼\",Aogon:\"Ą\",aogon:\"ą\",Aopf:\"𝔸\",aopf:\"𝕒\",apacir:\"⩯\",ap:\"≈\",apE:\"⩰\",ape:\"≊\",apid:\"≋\",apos:\"'\",ApplyFunction:\"⁡\",approx:\"≈\",approxeq:\"≊\",Aring:\"Å\",aring:\"å\",Ascr:\"𝒜\",ascr:\"𝒶\",Assign:\"≔\",ast:\"*\",asymp:\"≈\",asympeq:\"≍\",Atilde:\"Ã\",atilde:\"ã\",Auml:\"Ä\",auml:\"ä\",awconint:\"∳\",awint:\"⨑\",backcong:\"≌\",backepsilon:\"϶\",backprime:\"‵\",backsim:\"∽\",backsimeq:\"⋍\",Backslash:\"∖\",Barv:\"⫧\",barvee:\"⊽\",barwed:\"⌅\",Barwed:\"⌆\",barwedge:\"⌅\",bbrk:\"⎵\",bbrktbrk:\"⎶\",bcong:\"≌\",Bcy:\"Б\",bcy:\"б\",bdquo:\"„\",becaus:\"∵\",because:\"∵\",Because:\"∵\",bemptyv:\"⦰\",bepsi:\"϶\",bernou:\"ℬ\",Bernoullis:\"ℬ\",Beta:\"Β\",beta:\"β\",beth:\"ℶ\",between:\"≬\",Bfr:\"𝔅\",bfr:\"𝔟\",bigcap:\"⋂\",bigcirc:\"◯\",bigcup:\"⋃\",bigodot:\"⨀\",bigoplus:\"⨁\",bigotimes:\"⨂\",bigsqcup:\"⨆\",bigstar:\"★\",bigtriangledown:\"▽\",bigtriangleup:\"△\",biguplus:\"⨄\",bigvee:\"⋁\",bigwedge:\"⋀\",bkarow:\"⤍\",blacklozenge:\"⧫\",blacksquare:\"▪\",blacktriangle:\"▴\",blacktriangledown:\"▾\",blacktriangleleft:\"◂\",blacktriangleright:\"▸\",blank:\"␣\",blk12:\"▒\",blk14:\"░\",blk34:\"▓\",block:\"█\",bne:\"=⃥\",bnequiv:\"≡⃥\",bNot:\"⫭\",bnot:\"⌐\",Bopf:\"𝔹\",bopf:\"𝕓\",bot:\"⊥\",bottom:\"⊥\",bowtie:\"⋈\",boxbox:\"⧉\",boxdl:\"┐\",boxdL:\"╕\",boxDl:\"╖\",boxDL:\"╗\",boxdr:\"┌\",boxdR:\"╒\",boxDr:\"╓\",boxDR:\"╔\",boxh:\"─\",boxH:\"═\",boxhd:\"┬\",boxHd:\"╤\",boxhD:\"╥\",boxHD:\"╦\",boxhu:\"┴\",boxHu:\"╧\",boxhU:\"╨\",boxHU:\"╩\",boxminus:\"⊟\",boxplus:\"⊞\",boxtimes:\"⊠\",boxul:\"┘\",boxuL:\"╛\",boxUl:\"╜\",boxUL:\"╝\",boxur:\"└\",boxuR:\"╘\",boxUr:\"╙\",boxUR:\"╚\",boxv:\"│\",boxV:\"║\",boxvh:\"┼\",boxvH:\"╪\",boxVh:\"╫\",boxVH:\"╬\",boxvl:\"┤\",boxvL:\"╡\",boxVl:\"╢\",boxVL:\"╣\",boxvr:\"├\",boxvR:\"╞\",boxVr:\"╟\",boxVR:\"╠\",bprime:\"‵\",breve:\"˘\",Breve:\"˘\",brvbar:\"¦\",bscr:\"𝒷\",Bscr:\"ℬ\",bsemi:\"⁏\",bsim:\"∽\",bsime:\"⋍\",bsolb:\"⧅\",bsol:\"\\\\\",bsolhsub:\"⟈\",bull:\"•\",bullet:\"•\",bump:\"≎\",bumpE:\"⪮\",bumpe:\"≏\",Bumpeq:\"≎\",bumpeq:\"≏\",Cacute:\"Ć\",cacute:\"ć\",capand:\"⩄\",capbrcup:\"⩉\",capcap:\"⩋\",cap:\"∩\",Cap:\"⋒\",capcup:\"⩇\",capdot:\"⩀\",CapitalDifferentialD:\"ⅅ\",caps:\"∩︀\",caret:\"⁁\",caron:\"ˇ\",Cayleys:\"ℭ\",ccaps:\"⩍\",Ccaron:\"Č\",ccaron:\"č\",Ccedil:\"Ç\",ccedil:\"ç\",Ccirc:\"Ĉ\",ccirc:\"ĉ\",Cconint:\"∰\",ccups:\"⩌\",ccupssm:\"⩐\",Cdot:\"Ċ\",cdot:\"ċ\",cedil:\"¸\",Cedilla:\"¸\",cemptyv:\"⦲\",cent:\"¢\",centerdot:\"·\",CenterDot:\"·\",cfr:\"𝔠\",Cfr:\"ℭ\",CHcy:\"Ч\",chcy:\"ч\",check:\"✓\",checkmark:\"✓\",Chi:\"Χ\",chi:\"χ\",circ:\"ˆ\",circeq:\"≗\",circlearrowleft:\"↺\",circlearrowright:\"↻\",circledast:\"⊛\",circledcirc:\"⊚\",circleddash:\"⊝\",CircleDot:\"⊙\",circledR:\"®\",circledS:\"Ⓢ\",CircleMinus:\"⊖\",CirclePlus:\"⊕\",CircleTimes:\"⊗\",cir:\"○\",cirE:\"⧃\",cire:\"≗\",cirfnint:\"⨐\",cirmid:\"⫯\",cirscir:\"⧂\",ClockwiseContourIntegral:\"∲\",CloseCurlyDoubleQuote:\"”\",CloseCurlyQuote:\"’\",clubs:\"♣\",clubsuit:\"♣\",colon:\":\",Colon:\"∷\",Colone:\"⩴\",colone:\"≔\",coloneq:\"≔\",comma:\",\",commat:\"@\",comp:\"∁\",compfn:\"∘\",complement:\"∁\",complexes:\"ℂ\",cong:\"≅\",congdot:\"⩭\",Congruent:\"≡\",conint:\"∮\",Conint:\"∯\",ContourIntegral:\"∮\",copf:\"𝕔\",Copf:\"ℂ\",coprod:\"∐\",Coproduct:\"∐\",copy:\"©\",COPY:\"©\",copysr:\"℗\",CounterClockwiseContourIntegral:\"∳\",crarr:\"↵\",cross:\"✗\",Cross:\"⨯\",Cscr:\"𝒞\",cscr:\"𝒸\",csub:\"⫏\",csube:\"⫑\",csup:\"⫐\",csupe:\"⫒\",ctdot:\"⋯\",cudarrl:\"⤸\",cudarrr:\"⤵\",cuepr:\"⋞\",cuesc:\"⋟\",cularr:\"↶\",cularrp:\"⤽\",cupbrcap:\"⩈\",cupcap:\"⩆\",CupCap:\"≍\",cup:\"∪\",Cup:\"⋓\",cupcup:\"⩊\",cupdot:\"⊍\",cupor:\"⩅\",cups:\"∪︀\",curarr:\"↷\",curarrm:\"⤼\",curlyeqprec:\"⋞\",curlyeqsucc:\"⋟\",curlyvee:\"⋎\",curlywedge:\"⋏\",curren:\"¤\",curvearrowleft:\"↶\",curvearrowright:\"↷\",cuvee:\"⋎\",cuwed:\"⋏\",cwconint:\"∲\",cwint:\"∱\",cylcty:\"⌭\",dagger:\"†\",Dagger:\"‡\",daleth:\"ℸ\",darr:\"↓\",Darr:\"↡\",dArr:\"⇓\",dash:\"‐\",Dashv:\"⫤\",dashv:\"⊣\",dbkarow:\"⤏\",dblac:\"˝\",Dcaron:\"Ď\",dcaron:\"ď\",Dcy:\"Д\",dcy:\"д\",ddagger:\"‡\",ddarr:\"⇊\",DD:\"ⅅ\",dd:\"ⅆ\",DDotrahd:\"⤑\",ddotseq:\"⩷\",deg:\"°\",Del:\"∇\",Delta:\"Δ\",delta:\"δ\",demptyv:\"⦱\",dfisht:\"⥿\",Dfr:\"𝔇\",dfr:\"𝔡\",dHar:\"⥥\",dharl:\"⇃\",dharr:\"⇂\",DiacriticalAcute:\"´\",DiacriticalDot:\"˙\",DiacriticalDoubleAcute:\"˝\",DiacriticalGrave:\"`\",DiacriticalTilde:\"˜\",diam:\"⋄\",diamond:\"⋄\",Diamond:\"⋄\",diamondsuit:\"♦\",diams:\"♦\",die:\"¨\",DifferentialD:\"ⅆ\",digamma:\"ϝ\",disin:\"⋲\",div:\"÷\",divide:\"÷\",divideontimes:\"⋇\",divonx:\"⋇\",DJcy:\"Ђ\",djcy:\"ђ\",dlcorn:\"⌞\",dlcrop:\"⌍\",dollar:\"$\",Dopf:\"𝔻\",dopf:\"𝕕\",Dot:\"¨\",dot:\"˙\",DotDot:\"⃜\",doteq:\"≐\",doteqdot:\"≑\",DotEqual:\"≐\",dotminus:\"∸\",dotplus:\"∔\",dotsquare:\"⊡\",doublebarwedge:\"⌆\",DoubleContourIntegral:\"∯\",DoubleDot:\"¨\",DoubleDownArrow:\"⇓\",DoubleLeftArrow:\"⇐\",DoubleLeftRightArrow:\"⇔\",DoubleLeftTee:\"⫤\",DoubleLongLeftArrow:\"⟸\",DoubleLongLeftRightArrow:\"⟺\",DoubleLongRightArrow:\"⟹\",DoubleRightArrow:\"⇒\",DoubleRightTee:\"⊨\",DoubleUpArrow:\"⇑\",DoubleUpDownArrow:\"⇕\",DoubleVerticalBar:\"∥\",DownArrowBar:\"⤓\",downarrow:\"↓\",DownArrow:\"↓\",Downarrow:\"⇓\",DownArrowUpArrow:\"⇵\",DownBreve:\"̑\",downdownarrows:\"⇊\",downharpoonleft:\"⇃\",downharpoonright:\"⇂\",DownLeftRightVector:\"⥐\",DownLeftTeeVector:\"⥞\",DownLeftVectorBar:\"⥖\",DownLeftVector:\"↽\",DownRightTeeVector:\"⥟\",DownRightVectorBar:\"⥗\",DownRightVector:\"⇁\",DownTeeArrow:\"↧\",DownTee:\"⊤\",drbkarow:\"⤐\",drcorn:\"⌟\",drcrop:\"⌌\",Dscr:\"𝒟\",dscr:\"𝒹\",DScy:\"Ѕ\",dscy:\"ѕ\",dsol:\"⧶\",Dstrok:\"Đ\",dstrok:\"đ\",dtdot:\"⋱\",dtri:\"▿\",dtrif:\"▾\",duarr:\"⇵\",duhar:\"⥯\",dwangle:\"⦦\",DZcy:\"Џ\",dzcy:\"џ\",dzigrarr:\"⟿\",Eacute:\"É\",eacute:\"é\",easter:\"⩮\",Ecaron:\"Ě\",ecaron:\"ě\",Ecirc:\"Ê\",ecirc:\"ê\",ecir:\"≖\",ecolon:\"≕\",Ecy:\"Э\",ecy:\"э\",eDDot:\"⩷\",Edot:\"Ė\",edot:\"ė\",eDot:\"≑\",ee:\"ⅇ\",efDot:\"≒\",Efr:\"𝔈\",efr:\"𝔢\",eg:\"⪚\",Egrave:\"È\",egrave:\"è\",egs:\"⪖\",egsdot:\"⪘\",el:\"⪙\",Element:\"∈\",elinters:\"⏧\",ell:\"ℓ\",els:\"⪕\",elsdot:\"⪗\",Emacr:\"Ē\",emacr:\"ē\",empty:\"∅\",emptyset:\"∅\",EmptySmallSquare:\"◻\",emptyv:\"∅\",EmptyVerySmallSquare:\"▫\",emsp13:\" \",emsp14:\" \",emsp:\" \",ENG:\"Ŋ\",eng:\"ŋ\",ensp:\" \",Eogon:\"Ę\",eogon:\"ę\",Eopf:\"𝔼\",eopf:\"𝕖\",epar:\"⋕\",eparsl:\"⧣\",eplus:\"⩱\",epsi:\"ε\",Epsilon:\"Ε\",epsilon:\"ε\",epsiv:\"ϵ\",eqcirc:\"≖\",eqcolon:\"≕\",eqsim:\"≂\",eqslantgtr:\"⪖\",eqslantless:\"⪕\",Equal:\"⩵\",equals:\"=\",EqualTilde:\"≂\",equest:\"≟\",Equilibrium:\"⇌\",equiv:\"≡\",equivDD:\"⩸\",eqvparsl:\"⧥\",erarr:\"⥱\",erDot:\"≓\",escr:\"ℯ\",Escr:\"ℰ\",esdot:\"≐\",Esim:\"⩳\",esim:\"≂\",Eta:\"Η\",eta:\"η\",ETH:\"Ð\",eth:\"ð\",Euml:\"Ë\",euml:\"ë\",euro:\"€\",excl:\"!\",exist:\"∃\",Exists:\"∃\",expectation:\"ℰ\",exponentiale:\"ⅇ\",ExponentialE:\"ⅇ\",fallingdotseq:\"≒\",Fcy:\"Ф\",fcy:\"ф\",female:\"♀\",ffilig:\"ffi\",fflig:\"ff\",ffllig:\"ffl\",Ffr:\"𝔉\",ffr:\"𝔣\",filig:\"fi\",FilledSmallSquare:\"◼\",FilledVerySmallSquare:\"▪\",fjlig:\"fj\",flat:\"♭\",fllig:\"fl\",fltns:\"▱\",fnof:\"ƒ\",Fopf:\"𝔽\",fopf:\"𝕗\",forall:\"∀\",ForAll:\"∀\",fork:\"⋔\",forkv:\"⫙\",Fouriertrf:\"ℱ\",fpartint:\"⨍\",frac12:\"½\",frac13:\"⅓\",frac14:\"¼\",frac15:\"⅕\",frac16:\"⅙\",frac18:\"⅛\",frac23:\"⅔\",frac25:\"⅖\",frac34:\"¾\",frac35:\"⅗\",frac38:\"⅜\",frac45:\"⅘\",frac56:\"⅚\",frac58:\"⅝\",frac78:\"⅞\",frasl:\"⁄\",frown:\"⌢\",fscr:\"𝒻\",Fscr:\"ℱ\",gacute:\"ǵ\",Gamma:\"Γ\",gamma:\"γ\",Gammad:\"Ϝ\",gammad:\"ϝ\",gap:\"⪆\",Gbreve:\"Ğ\",gbreve:\"ğ\",Gcedil:\"Ģ\",Gcirc:\"Ĝ\",gcirc:\"ĝ\",Gcy:\"Г\",gcy:\"г\",Gdot:\"Ġ\",gdot:\"ġ\",ge:\"≥\",gE:\"≧\",gEl:\"⪌\",gel:\"⋛\",geq:\"≥\",geqq:\"≧\",geqslant:\"⩾\",gescc:\"⪩\",ges:\"⩾\",gesdot:\"⪀\",gesdoto:\"⪂\",gesdotol:\"⪄\",gesl:\"⋛︀\",gesles:\"⪔\",Gfr:\"𝔊\",gfr:\"𝔤\",gg:\"≫\",Gg:\"⋙\",ggg:\"⋙\",gimel:\"ℷ\",GJcy:\"Ѓ\",gjcy:\"ѓ\",gla:\"⪥\",gl:\"≷\",glE:\"⪒\",glj:\"⪤\",gnap:\"⪊\",gnapprox:\"⪊\",gne:\"⪈\",gnE:\"≩\",gneq:\"⪈\",gneqq:\"≩\",gnsim:\"⋧\",Gopf:\"𝔾\",gopf:\"𝕘\",grave:\"`\",GreaterEqual:\"≥\",GreaterEqualLess:\"⋛\",GreaterFullEqual:\"≧\",GreaterGreater:\"⪢\",GreaterLess:\"≷\",GreaterSlantEqual:\"⩾\",GreaterTilde:\"≳\",Gscr:\"𝒢\",gscr:\"ℊ\",gsim:\"≳\",gsime:\"⪎\",gsiml:\"⪐\",gtcc:\"⪧\",gtcir:\"⩺\",gt:\">\",GT:\">\",Gt:\"≫\",gtdot:\"⋗\",gtlPar:\"⦕\",gtquest:\"⩼\",gtrapprox:\"⪆\",gtrarr:\"⥸\",gtrdot:\"⋗\",gtreqless:\"⋛\",gtreqqless:\"⪌\",gtrless:\"≷\",gtrsim:\"≳\",gvertneqq:\"≩︀\",gvnE:\"≩︀\",Hacek:\"ˇ\",hairsp:\" \",half:\"½\",hamilt:\"ℋ\",HARDcy:\"Ъ\",hardcy:\"ъ\",harrcir:\"⥈\",harr:\"↔\",hArr:\"⇔\",harrw:\"↭\",Hat:\"^\",hbar:\"ℏ\",Hcirc:\"Ĥ\",hcirc:\"ĥ\",hearts:\"♥\",heartsuit:\"♥\",hellip:\"…\",hercon:\"⊹\",hfr:\"𝔥\",Hfr:\"ℌ\",HilbertSpace:\"ℋ\",hksearow:\"⤥\",hkswarow:\"⤦\",hoarr:\"⇿\",homtht:\"∻\",hookleftarrow:\"↩\",hookrightarrow:\"↪\",hopf:\"𝕙\",Hopf:\"ℍ\",horbar:\"―\",HorizontalLine:\"─\",hscr:\"𝒽\",Hscr:\"ℋ\",hslash:\"ℏ\",Hstrok:\"Ħ\",hstrok:\"ħ\",HumpDownHump:\"≎\",HumpEqual:\"≏\",hybull:\"⁃\",hyphen:\"‐\",Iacute:\"Í\",iacute:\"í\",ic:\"⁣\",Icirc:\"Î\",icirc:\"î\",Icy:\"И\",icy:\"и\",Idot:\"İ\",IEcy:\"Е\",iecy:\"е\",iexcl:\"¡\",iff:\"⇔\",ifr:\"𝔦\",Ifr:\"ℑ\",Igrave:\"Ì\",igrave:\"ì\",ii:\"ⅈ\",iiiint:\"⨌\",iiint:\"∭\",iinfin:\"⧜\",iiota:\"℩\",IJlig:\"IJ\",ijlig:\"ij\",Imacr:\"Ī\",imacr:\"ī\",image:\"ℑ\",ImaginaryI:\"ⅈ\",imagline:\"ℐ\",imagpart:\"ℑ\",imath:\"ı\",Im:\"ℑ\",imof:\"⊷\",imped:\"Ƶ\",Implies:\"⇒\",incare:\"℅\",in:\"∈\",infin:\"∞\",infintie:\"⧝\",inodot:\"ı\",intcal:\"⊺\",int:\"∫\",Int:\"∬\",integers:\"ℤ\",Integral:\"∫\",intercal:\"⊺\",Intersection:\"⋂\",intlarhk:\"⨗\",intprod:\"⨼\",InvisibleComma:\"⁣\",InvisibleTimes:\"⁢\",IOcy:\"Ё\",iocy:\"ё\",Iogon:\"Į\",iogon:\"į\",Iopf:\"𝕀\",iopf:\"𝕚\",Iota:\"Ι\",iota:\"ι\",iprod:\"⨼\",iquest:\"¿\",iscr:\"𝒾\",Iscr:\"ℐ\",isin:\"∈\",isindot:\"⋵\",isinE:\"⋹\",isins:\"⋴\",isinsv:\"⋳\",isinv:\"∈\",it:\"⁢\",Itilde:\"Ĩ\",itilde:\"ĩ\",Iukcy:\"І\",iukcy:\"і\",Iuml:\"Ï\",iuml:\"ï\",Jcirc:\"Ĵ\",jcirc:\"ĵ\",Jcy:\"Й\",jcy:\"й\",Jfr:\"𝔍\",jfr:\"𝔧\",jmath:\"ȷ\",Jopf:\"𝕁\",jopf:\"𝕛\",Jscr:\"𝒥\",jscr:\"𝒿\",Jsercy:\"Ј\",jsercy:\"ј\",Jukcy:\"Є\",jukcy:\"є\",Kappa:\"Κ\",kappa:\"κ\",kappav:\"ϰ\",Kcedil:\"Ķ\",kcedil:\"ķ\",Kcy:\"К\",kcy:\"к\",Kfr:\"𝔎\",kfr:\"𝔨\",kgreen:\"ĸ\",KHcy:\"Х\",khcy:\"х\",KJcy:\"Ќ\",kjcy:\"ќ\",Kopf:\"𝕂\",kopf:\"𝕜\",Kscr:\"𝒦\",kscr:\"𝓀\",lAarr:\"⇚\",Lacute:\"Ĺ\",lacute:\"ĺ\",laemptyv:\"⦴\",lagran:\"ℒ\",Lambda:\"Λ\",lambda:\"λ\",lang:\"⟨\",Lang:\"⟪\",langd:\"⦑\",langle:\"⟨\",lap:\"⪅\",Laplacetrf:\"ℒ\",laquo:\"«\",larrb:\"⇤\",larrbfs:\"⤟\",larr:\"←\",Larr:\"↞\",lArr:\"⇐\",larrfs:\"⤝\",larrhk:\"↩\",larrlp:\"↫\",larrpl:\"⤹\",larrsim:\"⥳\",larrtl:\"↢\",latail:\"⤙\",lAtail:\"⤛\",lat:\"⪫\",late:\"⪭\",lates:\"⪭︀\",lbarr:\"⤌\",lBarr:\"⤎\",lbbrk:\"❲\",lbrace:\"{\",lbrack:\"[\",lbrke:\"⦋\",lbrksld:\"⦏\",lbrkslu:\"⦍\",Lcaron:\"Ľ\",lcaron:\"ľ\",Lcedil:\"Ļ\",lcedil:\"ļ\",lceil:\"⌈\",lcub:\"{\",Lcy:\"Л\",lcy:\"л\",ldca:\"⤶\",ldquo:\"“\",ldquor:\"„\",ldrdhar:\"⥧\",ldrushar:\"⥋\",ldsh:\"↲\",le:\"≤\",lE:\"≦\",LeftAngleBracket:\"⟨\",LeftArrowBar:\"⇤\",leftarrow:\"←\",LeftArrow:\"←\",Leftarrow:\"⇐\",LeftArrowRightArrow:\"⇆\",leftarrowtail:\"↢\",LeftCeiling:\"⌈\",LeftDoubleBracket:\"⟦\",LeftDownTeeVector:\"⥡\",LeftDownVectorBar:\"⥙\",LeftDownVector:\"⇃\",LeftFloor:\"⌊\",leftharpoondown:\"↽\",leftharpoonup:\"↼\",leftleftarrows:\"⇇\",leftrightarrow:\"↔\",LeftRightArrow:\"↔\",Leftrightarrow:\"⇔\",leftrightarrows:\"⇆\",leftrightharpoons:\"⇋\",leftrightsquigarrow:\"↭\",LeftRightVector:\"⥎\",LeftTeeArrow:\"↤\",LeftTee:\"⊣\",LeftTeeVector:\"⥚\",leftthreetimes:\"⋋\",LeftTriangleBar:\"⧏\",LeftTriangle:\"⊲\",LeftTriangleEqual:\"⊴\",LeftUpDownVector:\"⥑\",LeftUpTeeVector:\"⥠\",LeftUpVectorBar:\"⥘\",LeftUpVector:\"↿\",LeftVectorBar:\"⥒\",LeftVector:\"↼\",lEg:\"⪋\",leg:\"⋚\",leq:\"≤\",leqq:\"≦\",leqslant:\"⩽\",lescc:\"⪨\",les:\"⩽\",lesdot:\"⩿\",lesdoto:\"⪁\",lesdotor:\"⪃\",lesg:\"⋚︀\",lesges:\"⪓\",lessapprox:\"⪅\",lessdot:\"⋖\",lesseqgtr:\"⋚\",lesseqqgtr:\"⪋\",LessEqualGreater:\"⋚\",LessFullEqual:\"≦\",LessGreater:\"≶\",lessgtr:\"≶\",LessLess:\"⪡\",lesssim:\"≲\",LessSlantEqual:\"⩽\",LessTilde:\"≲\",lfisht:\"⥼\",lfloor:\"⌊\",Lfr:\"𝔏\",lfr:\"𝔩\",lg:\"≶\",lgE:\"⪑\",lHar:\"⥢\",lhard:\"↽\",lharu:\"↼\",lharul:\"⥪\",lhblk:\"▄\",LJcy:\"Љ\",ljcy:\"љ\",llarr:\"⇇\",ll:\"≪\",Ll:\"⋘\",llcorner:\"⌞\",Lleftarrow:\"⇚\",llhard:\"⥫\",lltri:\"◺\",Lmidot:\"Ŀ\",lmidot:\"ŀ\",lmoustache:\"⎰\",lmoust:\"⎰\",lnap:\"⪉\",lnapprox:\"⪉\",lne:\"⪇\",lnE:\"≨\",lneq:\"⪇\",lneqq:\"≨\",lnsim:\"⋦\",loang:\"⟬\",loarr:\"⇽\",lobrk:\"⟦\",longleftarrow:\"⟵\",LongLeftArrow:\"⟵\",Longleftarrow:\"⟸\",longleftrightarrow:\"⟷\",LongLeftRightArrow:\"⟷\",Longleftrightarrow:\"⟺\",longmapsto:\"⟼\",longrightarrow:\"⟶\",LongRightArrow:\"⟶\",Longrightarrow:\"⟹\",looparrowleft:\"↫\",looparrowright:\"↬\",lopar:\"⦅\",Lopf:\"𝕃\",lopf:\"𝕝\",loplus:\"⨭\",lotimes:\"⨴\",lowast:\"∗\",lowbar:\"_\",LowerLeftArrow:\"↙\",LowerRightArrow:\"↘\",loz:\"◊\",lozenge:\"◊\",lozf:\"⧫\",lpar:\"(\",lparlt:\"⦓\",lrarr:\"⇆\",lrcorner:\"⌟\",lrhar:\"⇋\",lrhard:\"⥭\",lrm:\"‎\",lrtri:\"⊿\",lsaquo:\"‹\",lscr:\"𝓁\",Lscr:\"ℒ\",lsh:\"↰\",Lsh:\"↰\",lsim:\"≲\",lsime:\"⪍\",lsimg:\"⪏\",lsqb:\"[\",lsquo:\"‘\",lsquor:\"‚\",Lstrok:\"Ł\",lstrok:\"ł\",ltcc:\"⪦\",ltcir:\"⩹\",lt:\"<\",LT:\"<\",Lt:\"≪\",ltdot:\"⋖\",lthree:\"⋋\",ltimes:\"⋉\",ltlarr:\"⥶\",ltquest:\"⩻\",ltri:\"◃\",ltrie:\"⊴\",ltrif:\"◂\",ltrPar:\"⦖\",lurdshar:\"⥊\",luruhar:\"⥦\",lvertneqq:\"≨︀\",lvnE:\"≨︀\",macr:\"¯\",male:\"♂\",malt:\"✠\",maltese:\"✠\",Map:\"⤅\",map:\"↦\",mapsto:\"↦\",mapstodown:\"↧\",mapstoleft:\"↤\",mapstoup:\"↥\",marker:\"▮\",mcomma:\"⨩\",Mcy:\"М\",mcy:\"м\",mdash:\"—\",mDDot:\"∺\",measuredangle:\"∡\",MediumSpace:\" \",Mellintrf:\"ℳ\",Mfr:\"𝔐\",mfr:\"𝔪\",mho:\"℧\",micro:\"µ\",midast:\"*\",midcir:\"⫰\",mid:\"∣\",middot:\"·\",minusb:\"⊟\",minus:\"−\",minusd:\"∸\",minusdu:\"⨪\",MinusPlus:\"∓\",mlcp:\"⫛\",mldr:\"…\",mnplus:\"∓\",models:\"⊧\",Mopf:\"𝕄\",mopf:\"𝕞\",mp:\"∓\",mscr:\"𝓂\",Mscr:\"ℳ\",mstpos:\"∾\",Mu:\"Μ\",mu:\"μ\",multimap:\"⊸\",mumap:\"⊸\",nabla:\"∇\",Nacute:\"Ń\",nacute:\"ń\",nang:\"∠⃒\",nap:\"≉\",napE:\"⩰̸\",napid:\"≋̸\",napos:\"ʼn\",napprox:\"≉\",natural:\"♮\",naturals:\"ℕ\",natur:\"♮\",nbsp:\" \",nbump:\"≎̸\",nbumpe:\"≏̸\",ncap:\"⩃\",Ncaron:\"Ň\",ncaron:\"ň\",Ncedil:\"Ņ\",ncedil:\"ņ\",ncong:\"≇\",ncongdot:\"⩭̸\",ncup:\"⩂\",Ncy:\"Н\",ncy:\"н\",ndash:\"–\",nearhk:\"⤤\",nearr:\"↗\",neArr:\"⇗\",nearrow:\"↗\",ne:\"≠\",nedot:\"≐̸\",NegativeMediumSpace:\"​\",NegativeThickSpace:\"​\",NegativeThinSpace:\"​\",NegativeVeryThinSpace:\"​\",nequiv:\"≢\",nesear:\"⤨\",nesim:\"≂̸\",NestedGreaterGreater:\"≫\",NestedLessLess:\"≪\",NewLine:\"\\n\",nexist:\"∄\",nexists:\"∄\",Nfr:\"𝔑\",nfr:\"𝔫\",ngE:\"≧̸\",nge:\"≱\",ngeq:\"≱\",ngeqq:\"≧̸\",ngeqslant:\"⩾̸\",nges:\"⩾̸\",nGg:\"⋙̸\",ngsim:\"≵\",nGt:\"≫⃒\",ngt:\"≯\",ngtr:\"≯\",nGtv:\"≫̸\",nharr:\"↮\",nhArr:\"⇎\",nhpar:\"⫲\",ni:\"∋\",nis:\"⋼\",nisd:\"⋺\",niv:\"∋\",NJcy:\"Њ\",njcy:\"њ\",nlarr:\"↚\",nlArr:\"⇍\",nldr:\"‥\",nlE:\"≦̸\",nle:\"≰\",nleftarrow:\"↚\",nLeftarrow:\"⇍\",nleftrightarrow:\"↮\",nLeftrightarrow:\"⇎\",nleq:\"≰\",nleqq:\"≦̸\",nleqslant:\"⩽̸\",nles:\"⩽̸\",nless:\"≮\",nLl:\"⋘̸\",nlsim:\"≴\",nLt:\"≪⃒\",nlt:\"≮\",nltri:\"⋪\",nltrie:\"⋬\",nLtv:\"≪̸\",nmid:\"∤\",NoBreak:\"⁠\",NonBreakingSpace:\" \",nopf:\"𝕟\",Nopf:\"ℕ\",Not:\"⫬\",not:\"¬\",NotCongruent:\"≢\",NotCupCap:\"≭\",NotDoubleVerticalBar:\"∦\",NotElement:\"∉\",NotEqual:\"≠\",NotEqualTilde:\"≂̸\",NotExists:\"∄\",NotGreater:\"≯\",NotGreaterEqual:\"≱\",NotGreaterFullEqual:\"≧̸\",NotGreaterGreater:\"≫̸\",NotGreaterLess:\"≹\",NotGreaterSlantEqual:\"⩾̸\",NotGreaterTilde:\"≵\",NotHumpDownHump:\"≎̸\",NotHumpEqual:\"≏̸\",notin:\"∉\",notindot:\"⋵̸\",notinE:\"⋹̸\",notinva:\"∉\",notinvb:\"⋷\",notinvc:\"⋶\",NotLeftTriangleBar:\"⧏̸\",NotLeftTriangle:\"⋪\",NotLeftTriangleEqual:\"⋬\",NotLess:\"≮\",NotLessEqual:\"≰\",NotLessGreater:\"≸\",NotLessLess:\"≪̸\",NotLessSlantEqual:\"⩽̸\",NotLessTilde:\"≴\",NotNestedGreaterGreater:\"⪢̸\",NotNestedLessLess:\"⪡̸\",notni:\"∌\",notniva:\"∌\",notnivb:\"⋾\",notnivc:\"⋽\",NotPrecedes:\"⊀\",NotPrecedesEqual:\"⪯̸\",NotPrecedesSlantEqual:\"⋠\",NotReverseElement:\"∌\",NotRightTriangleBar:\"⧐̸\",NotRightTriangle:\"⋫\",NotRightTriangleEqual:\"⋭\",NotSquareSubset:\"⊏̸\",NotSquareSubsetEqual:\"⋢\",NotSquareSuperset:\"⊐̸\",NotSquareSupersetEqual:\"⋣\",NotSubset:\"⊂⃒\",NotSubsetEqual:\"⊈\",NotSucceeds:\"⊁\",NotSucceedsEqual:\"⪰̸\",NotSucceedsSlantEqual:\"⋡\",NotSucceedsTilde:\"≿̸\",NotSuperset:\"⊃⃒\",NotSupersetEqual:\"⊉\",NotTilde:\"≁\",NotTildeEqual:\"≄\",NotTildeFullEqual:\"≇\",NotTildeTilde:\"≉\",NotVerticalBar:\"∤\",nparallel:\"∦\",npar:\"∦\",nparsl:\"⫽⃥\",npart:\"∂̸\",npolint:\"⨔\",npr:\"⊀\",nprcue:\"⋠\",nprec:\"⊀\",npreceq:\"⪯̸\",npre:\"⪯̸\",nrarrc:\"⤳̸\",nrarr:\"↛\",nrArr:\"⇏\",nrarrw:\"↝̸\",nrightarrow:\"↛\",nRightarrow:\"⇏\",nrtri:\"⋫\",nrtrie:\"⋭\",nsc:\"⊁\",nsccue:\"⋡\",nsce:\"⪰̸\",Nscr:\"𝒩\",nscr:\"𝓃\",nshortmid:\"∤\",nshortparallel:\"∦\",nsim:\"≁\",nsime:\"≄\",nsimeq:\"≄\",nsmid:\"∤\",nspar:\"∦\",nsqsube:\"⋢\",nsqsupe:\"⋣\",nsub:\"⊄\",nsubE:\"⫅̸\",nsube:\"⊈\",nsubset:\"⊂⃒\",nsubseteq:\"⊈\",nsubseteqq:\"⫅̸\",nsucc:\"⊁\",nsucceq:\"⪰̸\",nsup:\"⊅\",nsupE:\"⫆̸\",nsupe:\"⊉\",nsupset:\"⊃⃒\",nsupseteq:\"⊉\",nsupseteqq:\"⫆̸\",ntgl:\"≹\",Ntilde:\"Ñ\",ntilde:\"ñ\",ntlg:\"≸\",ntriangleleft:\"⋪\",ntrianglelefteq:\"⋬\",ntriangleright:\"⋫\",ntrianglerighteq:\"⋭\",Nu:\"Ν\",nu:\"ν\",num:\"#\",numero:\"№\",numsp:\" \",nvap:\"≍⃒\",nvdash:\"⊬\",nvDash:\"⊭\",nVdash:\"⊮\",nVDash:\"⊯\",nvge:\"≥⃒\",nvgt:\">⃒\",nvHarr:\"⤄\",nvinfin:\"⧞\",nvlArr:\"⤂\",nvle:\"≤⃒\",nvlt:\"<⃒\",nvltrie:\"⊴⃒\",nvrArr:\"⤃\",nvrtrie:\"⊵⃒\",nvsim:\"∼⃒\",nwarhk:\"⤣\",nwarr:\"↖\",nwArr:\"⇖\",nwarrow:\"↖\",nwnear:\"⤧\",Oacute:\"Ó\",oacute:\"ó\",oast:\"⊛\",Ocirc:\"Ô\",ocirc:\"ô\",ocir:\"⊚\",Ocy:\"О\",ocy:\"о\",odash:\"⊝\",Odblac:\"Ő\",odblac:\"ő\",odiv:\"⨸\",odot:\"⊙\",odsold:\"⦼\",OElig:\"Œ\",oelig:\"œ\",ofcir:\"⦿\",Ofr:\"𝔒\",ofr:\"𝔬\",ogon:\"˛\",Ograve:\"Ò\",ograve:\"ò\",ogt:\"⧁\",ohbar:\"⦵\",ohm:\"Ω\",oint:\"∮\",olarr:\"↺\",olcir:\"⦾\",olcross:\"⦻\",oline:\"‾\",olt:\"⧀\",Omacr:\"Ō\",omacr:\"ō\",Omega:\"Ω\",omega:\"ω\",Omicron:\"Ο\",omicron:\"ο\",omid:\"⦶\",ominus:\"⊖\",Oopf:\"𝕆\",oopf:\"𝕠\",opar:\"⦷\",OpenCurlyDoubleQuote:\"“\",OpenCurlyQuote:\"‘\",operp:\"⦹\",oplus:\"⊕\",orarr:\"↻\",Or:\"⩔\",or:\"∨\",ord:\"⩝\",order:\"ℴ\",orderof:\"ℴ\",ordf:\"ª\",ordm:\"º\",origof:\"⊶\",oror:\"⩖\",orslope:\"⩗\",orv:\"⩛\",oS:\"Ⓢ\",Oscr:\"𝒪\",oscr:\"ℴ\",Oslash:\"Ø\",oslash:\"ø\",osol:\"⊘\",Otilde:\"Õ\",otilde:\"õ\",otimesas:\"⨶\",Otimes:\"⨷\",otimes:\"⊗\",Ouml:\"Ö\",ouml:\"ö\",ovbar:\"⌽\",OverBar:\"‾\",OverBrace:\"⏞\",OverBracket:\"⎴\",OverParenthesis:\"⏜\",para:\"¶\",parallel:\"∥\",par:\"∥\",parsim:\"⫳\",parsl:\"⫽\",part:\"∂\",PartialD:\"∂\",Pcy:\"П\",pcy:\"п\",percnt:\"%\",period:\".\",permil:\"‰\",perp:\"⊥\",pertenk:\"‱\",Pfr:\"𝔓\",pfr:\"𝔭\",Phi:\"Φ\",phi:\"φ\",phiv:\"ϕ\",phmmat:\"ℳ\",phone:\"☎\",Pi:\"Π\",pi:\"π\",pitchfork:\"⋔\",piv:\"ϖ\",planck:\"ℏ\",planckh:\"ℎ\",plankv:\"ℏ\",plusacir:\"⨣\",plusb:\"⊞\",pluscir:\"⨢\",plus:\"+\",plusdo:\"∔\",plusdu:\"⨥\",pluse:\"⩲\",PlusMinus:\"±\",plusmn:\"±\",plussim:\"⨦\",plustwo:\"⨧\",pm:\"±\",Poincareplane:\"ℌ\",pointint:\"⨕\",popf:\"𝕡\",Popf:\"ℙ\",pound:\"£\",prap:\"⪷\",Pr:\"⪻\",pr:\"≺\",prcue:\"≼\",precapprox:\"⪷\",prec:\"≺\",preccurlyeq:\"≼\",Precedes:\"≺\",PrecedesEqual:\"⪯\",PrecedesSlantEqual:\"≼\",PrecedesTilde:\"≾\",preceq:\"⪯\",precnapprox:\"⪹\",precneqq:\"⪵\",precnsim:\"⋨\",pre:\"⪯\",prE:\"⪳\",precsim:\"≾\",prime:\"′\",Prime:\"″\",primes:\"ℙ\",prnap:\"⪹\",prnE:\"⪵\",prnsim:\"⋨\",prod:\"∏\",Product:\"∏\",profalar:\"⌮\",profline:\"⌒\",profsurf:\"⌓\",prop:\"∝\",Proportional:\"∝\",Proportion:\"∷\",propto:\"∝\",prsim:\"≾\",prurel:\"⊰\",Pscr:\"𝒫\",pscr:\"𝓅\",Psi:\"Ψ\",psi:\"ψ\",puncsp:\" \",Qfr:\"𝔔\",qfr:\"𝔮\",qint:\"⨌\",qopf:\"𝕢\",Qopf:\"ℚ\",qprime:\"⁗\",Qscr:\"𝒬\",qscr:\"𝓆\",quaternions:\"ℍ\",quatint:\"⨖\",quest:\"?\",questeq:\"≟\",quot:'\"',QUOT:'\"',rAarr:\"⇛\",race:\"∽̱\",Racute:\"Ŕ\",racute:\"ŕ\",radic:\"√\",raemptyv:\"⦳\",rang:\"⟩\",Rang:\"⟫\",rangd:\"⦒\",range:\"⦥\",rangle:\"⟩\",raquo:\"»\",rarrap:\"⥵\",rarrb:\"⇥\",rarrbfs:\"⤠\",rarrc:\"⤳\",rarr:\"→\",Rarr:\"↠\",rArr:\"⇒\",rarrfs:\"⤞\",rarrhk:\"↪\",rarrlp:\"↬\",rarrpl:\"⥅\",rarrsim:\"⥴\",Rarrtl:\"⤖\",rarrtl:\"↣\",rarrw:\"↝\",ratail:\"⤚\",rAtail:\"⤜\",ratio:\"∶\",rationals:\"ℚ\",rbarr:\"⤍\",rBarr:\"⤏\",RBarr:\"⤐\",rbbrk:\"❳\",rbrace:\"}\",rbrack:\"]\",rbrke:\"⦌\",rbrksld:\"⦎\",rbrkslu:\"⦐\",Rcaron:\"Ř\",rcaron:\"ř\",Rcedil:\"Ŗ\",rcedil:\"ŗ\",rceil:\"⌉\",rcub:\"}\",Rcy:\"Р\",rcy:\"р\",rdca:\"⤷\",rdldhar:\"⥩\",rdquo:\"”\",rdquor:\"”\",rdsh:\"↳\",real:\"ℜ\",realine:\"ℛ\",realpart:\"ℜ\",reals:\"ℝ\",Re:\"ℜ\",rect:\"▭\",reg:\"®\",REG:\"®\",ReverseElement:\"∋\",ReverseEquilibrium:\"⇋\",ReverseUpEquilibrium:\"⥯\",rfisht:\"⥽\",rfloor:\"⌋\",rfr:\"𝔯\",Rfr:\"ℜ\",rHar:\"⥤\",rhard:\"⇁\",rharu:\"⇀\",rharul:\"⥬\",Rho:\"Ρ\",rho:\"ρ\",rhov:\"ϱ\",RightAngleBracket:\"⟩\",RightArrowBar:\"⇥\",rightarrow:\"→\",RightArrow:\"→\",Rightarrow:\"⇒\",RightArrowLeftArrow:\"⇄\",rightarrowtail:\"↣\",RightCeiling:\"⌉\",RightDoubleBracket:\"⟧\",RightDownTeeVector:\"⥝\",RightDownVectorBar:\"⥕\",RightDownVector:\"⇂\",RightFloor:\"⌋\",rightharpoondown:\"⇁\",rightharpoonup:\"⇀\",rightleftarrows:\"⇄\",rightleftharpoons:\"⇌\",rightrightarrows:\"⇉\",rightsquigarrow:\"↝\",RightTeeArrow:\"↦\",RightTee:\"⊢\",RightTeeVector:\"⥛\",rightthreetimes:\"⋌\",RightTriangleBar:\"⧐\",RightTriangle:\"⊳\",RightTriangleEqual:\"⊵\",RightUpDownVector:\"⥏\",RightUpTeeVector:\"⥜\",RightUpVectorBar:\"⥔\",RightUpVector:\"↾\",RightVectorBar:\"⥓\",RightVector:\"⇀\",ring:\"˚\",risingdotseq:\"≓\",rlarr:\"⇄\",rlhar:\"⇌\",rlm:\"‏\",rmoustache:\"⎱\",rmoust:\"⎱\",rnmid:\"⫮\",roang:\"⟭\",roarr:\"⇾\",robrk:\"⟧\",ropar:\"⦆\",ropf:\"𝕣\",Ropf:\"ℝ\",roplus:\"⨮\",rotimes:\"⨵\",RoundImplies:\"⥰\",rpar:\")\",rpargt:\"⦔\",rppolint:\"⨒\",rrarr:\"⇉\",Rrightarrow:\"⇛\",rsaquo:\"›\",rscr:\"𝓇\",Rscr:\"ℛ\",rsh:\"↱\",Rsh:\"↱\",rsqb:\"]\",rsquo:\"’\",rsquor:\"’\",rthree:\"⋌\",rtimes:\"⋊\",rtri:\"▹\",rtrie:\"⊵\",rtrif:\"▸\",rtriltri:\"⧎\",RuleDelayed:\"⧴\",ruluhar:\"⥨\",rx:\"℞\",Sacute:\"Ś\",sacute:\"ś\",sbquo:\"‚\",scap:\"⪸\",Scaron:\"Š\",scaron:\"š\",Sc:\"⪼\",sc:\"≻\",sccue:\"≽\",sce:\"⪰\",scE:\"⪴\",Scedil:\"Ş\",scedil:\"ş\",Scirc:\"Ŝ\",scirc:\"ŝ\",scnap:\"⪺\",scnE:\"⪶\",scnsim:\"⋩\",scpolint:\"⨓\",scsim:\"≿\",Scy:\"С\",scy:\"с\",sdotb:\"⊡\",sdot:\"⋅\",sdote:\"⩦\",searhk:\"⤥\",searr:\"↘\",seArr:\"⇘\",searrow:\"↘\",sect:\"§\",semi:\";\",seswar:\"⤩\",setminus:\"∖\",setmn:\"∖\",sext:\"✶\",Sfr:\"𝔖\",sfr:\"𝔰\",sfrown:\"⌢\",sharp:\"♯\",SHCHcy:\"Щ\",shchcy:\"щ\",SHcy:\"Ш\",shcy:\"ш\",ShortDownArrow:\"↓\",ShortLeftArrow:\"←\",shortmid:\"∣\",shortparallel:\"∥\",ShortRightArrow:\"→\",ShortUpArrow:\"↑\",shy:\"­\",Sigma:\"Σ\",sigma:\"σ\",sigmaf:\"ς\",sigmav:\"ς\",sim:\"∼\",simdot:\"⩪\",sime:\"≃\",simeq:\"≃\",simg:\"⪞\",simgE:\"⪠\",siml:\"⪝\",simlE:\"⪟\",simne:\"≆\",simplus:\"⨤\",simrarr:\"⥲\",slarr:\"←\",SmallCircle:\"∘\",smallsetminus:\"∖\",smashp:\"⨳\",smeparsl:\"⧤\",smid:\"∣\",smile:\"⌣\",smt:\"⪪\",smte:\"⪬\",smtes:\"⪬︀\",SOFTcy:\"Ь\",softcy:\"ь\",solbar:\"⌿\",solb:\"⧄\",sol:\"/\",Sopf:\"𝕊\",sopf:\"𝕤\",spades:\"♠\",spadesuit:\"♠\",spar:\"∥\",sqcap:\"⊓\",sqcaps:\"⊓︀\",sqcup:\"⊔\",sqcups:\"⊔︀\",Sqrt:\"√\",sqsub:\"⊏\",sqsube:\"⊑\",sqsubset:\"⊏\",sqsubseteq:\"⊑\",sqsup:\"⊐\",sqsupe:\"⊒\",sqsupset:\"⊐\",sqsupseteq:\"⊒\",square:\"□\",Square:\"□\",SquareIntersection:\"⊓\",SquareSubset:\"⊏\",SquareSubsetEqual:\"⊑\",SquareSuperset:\"⊐\",SquareSupersetEqual:\"⊒\",SquareUnion:\"⊔\",squarf:\"▪\",squ:\"□\",squf:\"▪\",srarr:\"→\",Sscr:\"𝒮\",sscr:\"𝓈\",ssetmn:\"∖\",ssmile:\"⌣\",sstarf:\"⋆\",Star:\"⋆\",star:\"☆\",starf:\"★\",straightepsilon:\"ϵ\",straightphi:\"ϕ\",strns:\"¯\",sub:\"⊂\",Sub:\"⋐\",subdot:\"⪽\",subE:\"⫅\",sube:\"⊆\",subedot:\"⫃\",submult:\"⫁\",subnE:\"⫋\",subne:\"⊊\",subplus:\"⪿\",subrarr:\"⥹\",subset:\"⊂\",Subset:\"⋐\",subseteq:\"⊆\",subseteqq:\"⫅\",SubsetEqual:\"⊆\",subsetneq:\"⊊\",subsetneqq:\"⫋\",subsim:\"⫇\",subsub:\"⫕\",subsup:\"⫓\",succapprox:\"⪸\",succ:\"≻\",succcurlyeq:\"≽\",Succeeds:\"≻\",SucceedsEqual:\"⪰\",SucceedsSlantEqual:\"≽\",SucceedsTilde:\"≿\",succeq:\"⪰\",succnapprox:\"⪺\",succneqq:\"⪶\",succnsim:\"⋩\",succsim:\"≿\",SuchThat:\"∋\",sum:\"∑\",Sum:\"∑\",sung:\"♪\",sup1:\"¹\",sup2:\"²\",sup3:\"³\",sup:\"⊃\",Sup:\"⋑\",supdot:\"⪾\",supdsub:\"⫘\",supE:\"⫆\",supe:\"⊇\",supedot:\"⫄\",Superset:\"⊃\",SupersetEqual:\"⊇\",suphsol:\"⟉\",suphsub:\"⫗\",suplarr:\"⥻\",supmult:\"⫂\",supnE:\"⫌\",supne:\"⊋\",supplus:\"⫀\",supset:\"⊃\",Supset:\"⋑\",supseteq:\"⊇\",supseteqq:\"⫆\",supsetneq:\"⊋\",supsetneqq:\"⫌\",supsim:\"⫈\",supsub:\"⫔\",supsup:\"⫖\",swarhk:\"⤦\",swarr:\"↙\",swArr:\"⇙\",swarrow:\"↙\",swnwar:\"⤪\",szlig:\"ß\",Tab:\"\\t\",target:\"⌖\",Tau:\"Τ\",tau:\"τ\",tbrk:\"⎴\",Tcaron:\"Ť\",tcaron:\"ť\",Tcedil:\"Ţ\",tcedil:\"ţ\",Tcy:\"Т\",tcy:\"т\",tdot:\"⃛\",telrec:\"⌕\",Tfr:\"𝔗\",tfr:\"𝔱\",there4:\"∴\",therefore:\"∴\",Therefore:\"∴\",Theta:\"Θ\",theta:\"θ\",thetasym:\"ϑ\",thetav:\"ϑ\",thickapprox:\"≈\",thicksim:\"∼\",ThickSpace:\"  \",ThinSpace:\" \",thinsp:\" \",thkap:\"≈\",thksim:\"∼\",THORN:\"Þ\",thorn:\"þ\",tilde:\"˜\",Tilde:\"∼\",TildeEqual:\"≃\",TildeFullEqual:\"≅\",TildeTilde:\"≈\",timesbar:\"⨱\",timesb:\"⊠\",times:\"×\",timesd:\"⨰\",tint:\"∭\",toea:\"⤨\",topbot:\"⌶\",topcir:\"⫱\",top:\"⊤\",Topf:\"𝕋\",topf:\"𝕥\",topfork:\"⫚\",tosa:\"⤩\",tprime:\"‴\",trade:\"™\",TRADE:\"™\",triangle:\"▵\",triangledown:\"▿\",triangleleft:\"◃\",trianglelefteq:\"⊴\",triangleq:\"≜\",triangleright:\"▹\",trianglerighteq:\"⊵\",tridot:\"◬\",trie:\"≜\",triminus:\"⨺\",TripleDot:\"⃛\",triplus:\"⨹\",trisb:\"⧍\",tritime:\"⨻\",trpezium:\"⏢\",Tscr:\"𝒯\",tscr:\"𝓉\",TScy:\"Ц\",tscy:\"ц\",TSHcy:\"Ћ\",tshcy:\"ћ\",Tstrok:\"Ŧ\",tstrok:\"ŧ\",twixt:\"≬\",twoheadleftarrow:\"↞\",twoheadrightarrow:\"↠\",Uacute:\"Ú\",uacute:\"ú\",uarr:\"↑\",Uarr:\"↟\",uArr:\"⇑\",Uarrocir:\"⥉\",Ubrcy:\"Ў\",ubrcy:\"ў\",Ubreve:\"Ŭ\",ubreve:\"ŭ\",Ucirc:\"Û\",ucirc:\"û\",Ucy:\"У\",ucy:\"у\",udarr:\"⇅\",Udblac:\"Ű\",udblac:\"ű\",udhar:\"⥮\",ufisht:\"⥾\",Ufr:\"𝔘\",ufr:\"𝔲\",Ugrave:\"Ù\",ugrave:\"ù\",uHar:\"⥣\",uharl:\"↿\",uharr:\"↾\",uhblk:\"▀\",ulcorn:\"⌜\",ulcorner:\"⌜\",ulcrop:\"⌏\",ultri:\"◸\",Umacr:\"Ū\",umacr:\"ū\",uml:\"¨\",UnderBar:\"_\",UnderBrace:\"⏟\",UnderBracket:\"⎵\",UnderParenthesis:\"⏝\",Union:\"⋃\",UnionPlus:\"⊎\",Uogon:\"Ų\",uogon:\"ų\",Uopf:\"𝕌\",uopf:\"𝕦\",UpArrowBar:\"⤒\",uparrow:\"↑\",UpArrow:\"↑\",Uparrow:\"⇑\",UpArrowDownArrow:\"⇅\",updownarrow:\"↕\",UpDownArrow:\"↕\",Updownarrow:\"⇕\",UpEquilibrium:\"⥮\",upharpoonleft:\"↿\",upharpoonright:\"↾\",uplus:\"⊎\",UpperLeftArrow:\"↖\",UpperRightArrow:\"↗\",upsi:\"υ\",Upsi:\"ϒ\",upsih:\"ϒ\",Upsilon:\"Υ\",upsilon:\"υ\",UpTeeArrow:\"↥\",UpTee:\"⊥\",upuparrows:\"⇈\",urcorn:\"⌝\",urcorner:\"⌝\",urcrop:\"⌎\",Uring:\"Ů\",uring:\"ů\",urtri:\"◹\",Uscr:\"𝒰\",uscr:\"𝓊\",utdot:\"⋰\",Utilde:\"Ũ\",utilde:\"ũ\",utri:\"▵\",utrif:\"▴\",uuarr:\"⇈\",Uuml:\"Ü\",uuml:\"ü\",uwangle:\"⦧\",vangrt:\"⦜\",varepsilon:\"ϵ\",varkappa:\"ϰ\",varnothing:\"∅\",varphi:\"ϕ\",varpi:\"ϖ\",varpropto:\"∝\",varr:\"↕\",vArr:\"⇕\",varrho:\"ϱ\",varsigma:\"ς\",varsubsetneq:\"⊊︀\",varsubsetneqq:\"⫋︀\",varsupsetneq:\"⊋︀\",varsupsetneqq:\"⫌︀\",vartheta:\"ϑ\",vartriangleleft:\"⊲\",vartriangleright:\"⊳\",vBar:\"⫨\",Vbar:\"⫫\",vBarv:\"⫩\",Vcy:\"В\",vcy:\"в\",vdash:\"⊢\",vDash:\"⊨\",Vdash:\"⊩\",VDash:\"⊫\",Vdashl:\"⫦\",veebar:\"⊻\",vee:\"∨\",Vee:\"⋁\",veeeq:\"≚\",vellip:\"⋮\",verbar:\"|\",Verbar:\"‖\",vert:\"|\",Vert:\"‖\",VerticalBar:\"∣\",VerticalLine:\"|\",VerticalSeparator:\"❘\",VerticalTilde:\"≀\",VeryThinSpace:\" \",Vfr:\"𝔙\",vfr:\"𝔳\",vltri:\"⊲\",vnsub:\"⊂⃒\",vnsup:\"⊃⃒\",Vopf:\"𝕍\",vopf:\"𝕧\",vprop:\"∝\",vrtri:\"⊳\",Vscr:\"𝒱\",vscr:\"𝓋\",vsubnE:\"⫋︀\",vsubne:\"⊊︀\",vsupnE:\"⫌︀\",vsupne:\"⊋︀\",Vvdash:\"⊪\",vzigzag:\"⦚\",Wcirc:\"Ŵ\",wcirc:\"ŵ\",wedbar:\"⩟\",wedge:\"∧\",Wedge:\"⋀\",wedgeq:\"≙\",weierp:\"℘\",Wfr:\"𝔚\",wfr:\"𝔴\",Wopf:\"𝕎\",wopf:\"𝕨\",wp:\"℘\",wr:\"≀\",wreath:\"≀\",Wscr:\"𝒲\",wscr:\"𝓌\",xcap:\"⋂\",xcirc:\"◯\",xcup:\"⋃\",xdtri:\"▽\",Xfr:\"𝔛\",xfr:\"𝔵\",xharr:\"⟷\",xhArr:\"⟺\",Xi:\"Ξ\",xi:\"ξ\",xlarr:\"⟵\",xlArr:\"⟸\",xmap:\"⟼\",xnis:\"⋻\",xodot:\"⨀\",Xopf:\"𝕏\",xopf:\"𝕩\",xoplus:\"⨁\",xotime:\"⨂\",xrarr:\"⟶\",xrArr:\"⟹\",Xscr:\"𝒳\",xscr:\"𝓍\",xsqcup:\"⨆\",xuplus:\"⨄\",xutri:\"△\",xvee:\"⋁\",xwedge:\"⋀\",Yacute:\"Ý\",yacute:\"ý\",YAcy:\"Я\",yacy:\"я\",Ycirc:\"Ŷ\",ycirc:\"ŷ\",Ycy:\"Ы\",ycy:\"ы\",yen:\"¥\",Yfr:\"𝔜\",yfr:\"𝔶\",YIcy:\"Ї\",yicy:\"ї\",Yopf:\"𝕐\",yopf:\"𝕪\",Yscr:\"𝒴\",yscr:\"𝓎\",YUcy:\"Ю\",yucy:\"ю\",yuml:\"ÿ\",Yuml:\"Ÿ\",Zacute:\"Ź\",zacute:\"ź\",Zcaron:\"Ž\",zcaron:\"ž\",Zcy:\"З\",zcy:\"з\",Zdot:\"Ż\",zdot:\"ż\",zeetrf:\"ℨ\",ZeroWidthSpace:\"​\",Zeta:\"Ζ\",zeta:\"ζ\",zfr:\"𝔷\",Zfr:\"ℨ\",ZHcy:\"Ж\",zhcy:\"ж\",zigrarr:\"⇝\",zopf:\"𝕫\",Zopf:\"ℤ\",Zscr:\"𝒵\",zscr:\"𝓏\",zwj:\"‍\",zwnj:\"‌\"}},function(e,t){e.exports={amp:\"&\",apos:\"'\",gt:\">\",lt:\"<\",quot:'\"'}},function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+\": incorrect invocation!\");return e}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError(\"Can't call method on \"+e);return e}},function(e,t,n){var i=n(24),r=n(17).document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},function(e,t){e.exports=\"constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf\".split(\",\")},function(e,t,n){var i=n(62);e.exports=Object(\"z\").propertyIsEnumerable(0)?Object:function(e){return\"String\"==i(e)?e.split(\"\"):Object(e)}},function(e,t,n){\"use strict\";var i=n(64),r=n(15),o=n(174),a=n(41),s=n(50),l=n(397),u=n(67),c=n(170),d=n(18)(\"iterator\"),h=!([].keys&&\"next\"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,m,g,v){l(n,t,p);var y,b,_,x=function(e){if(!h&&e in E)return E[e];switch(e){case\"keys\":case\"values\":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+\" Iterator\",M=\"values\"==m,S=!1,E=e.prototype,T=E[d]||E[\"@@iterator\"]||m&&E[m],k=T||x(m),O=m?M?x(\"entries\"):k:void 0,C=\"Array\"==t?E.entries||T:T;if(C&&(_=c(C.call(new e)))!==Object.prototype&&_.next&&(u(_,w,!0),i||\"function\"==typeof _[d]||a(_,d,f)),M&&T&&\"values\"!==T.name&&(S=!0,k=function(){return T.call(this)}),i&&!v||!h&&!S&&E[d]||a(E,d,k),s[t]=k,s[w]=f,m)if(y={values:M?k:x(\"values\"),keys:g?k:x(\"keys\"),entries:O},v)for(b in y)b in E||o(E,b,y[b]);else r(r.P+r.F*(h||S),t,y);return y}},function(e,t,n){var i=n(85)(\"meta\"),r=n(24),o=n(46),a=n(25).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(45)(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,i,{value:{i:\"O\"+ ++s,w:{}}})},d=function(e,t){if(!r(e))return\"symbol\"==typeof e?e:(\"string\"==typeof e?\"S\":\"P\")+e;if(!o(e,i)){if(!l(e))return\"F\";if(!t)return\"E\";c(e)}return e[i].i},h=function(e,t){if(!o(e,i)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[i].w},f=function(e){return u&&p.NEED&&l(e)&&!o(e,i)&&c(e),e},p=e.exports={KEY:i,NEED:!1,fastKey:d,getWeak:h,onFreeze:f}},function(e,t,n){\"use strict\";function i(e){var t,n;this.promise=new e(function(e,i){if(void 0!==t||void 0!==n)throw TypeError(\"Bad Promise constructor\");t=e,n=i}),this.resolve=r(t),this.reject=r(n)}var r=n(61);e.exports.f=function(e){return new i(e)}},function(e,t,n){var i=n(65),r=n(66),o=n(42),a=n(118),s=n(46),l=n(163),u=Object.getOwnPropertyDescriptor;t.f=n(31)?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(15),r=n(10),o=n(45);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),i(i.S+i.F*o(function(){n(1)}),\"Object\",a)}},function(e,t,n){var i=n(41);e.exports=function(e,t,n){for(var r in t)n&&e[r]?e[r]=t[r]:i(e,r,t[r]);return e}},function(e,t,n){var i=n(116)(\"keys\"),r=n(85);e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){var i=n(10),r=n(17),o=r[\"__core-js_shared__\"]||(r[\"__core-js_shared__\"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})(\"versions\",[]).push({version:i.version,mode:n(64)?\"pure\":\"global\",copyright:\"© 2018 Denis Pushkarev (zloirock.ru)\"})},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(24);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&\"function\"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if(\"function\"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&\"function\"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError(\"Can't convert object to primitive value\")}},function(e,t,n){var i=n(17),r=n(10),o=n(64),a=n(120),s=n(25).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});\"_\"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(18)},function(e,t,n){var i=n(82),r=n(18)(\"iterator\"),o=n(50);e.exports=n(10).getIteratorMethod=function(e){if(void 0!=e)return e[r]||e[\"@@iterator\"]||o[i(e)]}},function(e,t){},function(e,t){function n(e,t){var n=e[1]||\"\",r=e[3];if(!r)return n;if(t&&\"function\"==typeof btoa){var o=i(r);return[n].concat(r.sources.map(function(e){return\"/*# sourceURL=\"+r.sourceRoot+e+\" */\"})).concat([o]).join(\"\\n\")}return[n].join(\"\\n\")}function i(e){return\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+\" */\"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var i=n(t,e);return t[2]?\"@media \"+t[2]+\"{\"+i+\"}\":i}).join(\"\")},t.i=function(e,n){\"string\"==typeof e&&(e=[[null,e,\"\"]]);for(var i={},r=0;r>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var i=t.length-1;if(i=0?(r>0&&(e.lastNeed=r-1),r):--i=0?(r>0&&(e.lastNeed=r-2),r):--i=0?(r>0&&(2===r?r=0:e.lastNeed=r-3),r):0)}function l(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,\"�\";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,\"�\";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,\"�\"}}function u(e){var t=this.lastTotal-this.lastNeed,n=l(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(\"utf8\",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString(\"utf8\",t,i)}function d(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+\"�\":t}function h(e,t){if((e.length-t)%2==0){var n=e.toString(\"utf16le\",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(\"utf16le\",t,e.length-1)}function f(e){var t=e&&e.length?this.write(e):\"\";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(\"utf16le\",0,n)}return t}function p(e,t){var n=(e.length-t)%3;return 0===n?e.toString(\"base64\",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(\"base64\",t,e.length-n))}function m(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+this.lastChar.toString(\"base64\",0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):\"\"}var y=n(98).Buffer,b=y.isEncoding||function(e){switch((e=\"\"+e)&&e.toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":case\"raw\":return!0;default:return!1}};t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return\"\";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return\"\";n=this.lastNeed,this.lastNeed=0}else n=0;return n1e-7?(n=e*t,(1-e*e)*(t/(1-n*n)-.5/e*Math.log((1-n)/(1+n)))):2*t}},function(e,t,n){\"use strict\";function i(e){if(e)for(var t=Object.keys(e),n=0;n-1&&this.oneof.splice(t,1),e.partOf=null,this},i.prototype.onAdd=function(e){o.prototype.onAdd.call(this,e);for(var t=this,n=0;n \"+e.len)}function r(e){this.buf=e,this.pos=0,this.len=e.length}function o(){var e=new c(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw i(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw i(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error(\"invalid varint encoding\")}function a(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function s(){if(this.pos+8>this.len)throw i(this,8);return new c(a(this.buf,this.pos+=4),a(this.buf,this.pos+=4))}e.exports=r;var l,u=n(36),c=u.LongBits,d=u.utf8,h=\"undefined\"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new r(e);throw Error(\"illegal buffer\")}:function(e){if(Array.isArray(e))return new r(e);throw Error(\"illegal buffer\")};r.create=u.Buffer?function(e){return(r.create=function(e){return u.Buffer.isBuffer(e)?new l(e):h(e)})(e)}:h,r.prototype._slice=u.Array.prototype.subarray||u.Array.prototype.slice,r.prototype.uint32=function(){var e=4294967295;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return e;if((this.pos+=5)>this.len)throw this.pos=this.len,i(this,10);return e}}(),r.prototype.int32=function(){return 0|this.uint32()},r.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},r.prototype.bool=function(){return 0!==this.uint32()},r.prototype.fixed32=function(){if(this.pos+4>this.len)throw i(this,4);return a(this.buf,this.pos+=4)},r.prototype.sfixed32=function(){if(this.pos+4>this.len)throw i(this,4);return 0|a(this.buf,this.pos+=4)},r.prototype.float=function(){if(this.pos+4>this.len)throw i(this,4);var e=u.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},r.prototype.double=function(){if(this.pos+8>this.len)throw i(this,4);var e=u.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},r.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw i(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},r.prototype.string=function(){var e=this.bytes();return d.read(e,0,e.length)},r.prototype.skip=function(e){if(\"number\"==typeof e){if(this.pos+e>this.len)throw i(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw i(this)}while(128&this.buf[this.pos++]);return this},r.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error(\"invalid wire type \"+e+\" at offset \"+this.pos)}return this},r._configure=function(e){l=e;var t=u.Long?\"toLong\":\"toNumber\";u.merge(r.prototype,{int64:function(){return o.call(this)[t](!1)},uint64:function(){return o.call(this)[t](!0)},sint64:function(){return o.call(this).zzDecode()[t](!1)},fixed64:function(){return s.call(this)[t](!0)},sfixed64:function(){return s.call(this)[t](!1)}})}},function(e,t,n){\"use strict\";function i(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function r(){}function o(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function a(){this.len=0,this.head=new i(r,0,0),this.tail=this.head,this.states=null}function s(e,t,n){t[n]=255&e}function l(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e}function u(e,t){this.len=e,this.next=void 0,this.val=t}function c(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function d(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}e.exports=a;var h,f=n(36),p=f.LongBits,m=f.base64,g=f.utf8;a.create=f.Buffer?function(){return(a.create=function(){return new h})()}:function(){return new a},a.alloc=function(e){return new f.Array(e)},f.Array!==Array&&(a.alloc=f.pool(a.alloc,f.Array.prototype.subarray)),a.prototype._push=function(e,t,n){return this.tail=this.tail.next=new i(e,t,n),this.len+=t,this},u.prototype=Object.create(i.prototype),u.prototype.fn=l,a.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new u((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},a.prototype.int32=function(e){return e<0?this._push(c,10,p.fromNumber(e)):this.uint32(e)},a.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},a.prototype.uint64=function(e){var t=p.from(e);return this._push(c,t.length(),t)},a.prototype.int64=a.prototype.uint64,a.prototype.sint64=function(e){var t=p.from(e).zzEncode();return this._push(c,t.length(),t)},a.prototype.bool=function(e){return this._push(s,1,e?1:0)},a.prototype.fixed32=function(e){return this._push(d,4,e>>>0)},a.prototype.sfixed32=a.prototype.fixed32,a.prototype.fixed64=function(e){var t=p.from(e);return this._push(d,4,t.lo)._push(d,4,t.hi)},a.prototype.sfixed64=a.prototype.fixed64,a.prototype.float=function(e){return this._push(f.float.writeFloatLE,4,e)},a.prototype.double=function(e){return this._push(f.float.writeDoubleLE,8,e)};var v=f.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var i=0;i>>0;if(!t)return this._push(s,1,0);if(f.isString(e)){var n=a.alloc(t=m.length(e));m.decode(e,n,0),e=n}return this.uint32(t)._push(v,t,e)},a.prototype.string=function(e){var t=g.length(e);return t?this.uint32(t)._push(g.write,t,e):this._push(s,1,0)},a.prototype.fork=function(){return this.states=new o(this),this.head=this.tail=new i(r,0,0),this.len=0,this},a.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new i(r,0,0),this.len=0),this},a.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},a.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},a._configure=function(e){h=e}},function(e,t,n){\"use strict\";function i(e){for(var t=1;t-1?i:O.nextTick;c.WritableState=u;var A=n(69);A.inherits=n(26);var R={deprecate:n(602)},L=n(219),I=n(98).Buffer,D=r.Uint8Array||function(){},N=n(218);A.inherits(c,L),u.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(u.prototype,\"buffer\",{get:R.deprecate(function(){return this.getBuffer()},\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch(e){}}();var B;\"function\"==typeof Symbol&&Symbol.hasInstance&&\"function\"==typeof Function.prototype[Symbol.hasInstance]?(B=Function.prototype[Symbol.hasInstance],Object.defineProperty(c,Symbol.hasInstance,{value:function(e){return!!B.call(this,e)||this===c&&(e&&e._writableState instanceof u)}})):B=function(e){return e instanceof this},c.prototype.pipe=function(){this.emit(\"error\",new Error(\"Cannot pipe, not readable\"))},c.prototype.write=function(e,t,n){var i=this._writableState,r=!1,o=!i.objectMode&&s(e);return o&&!I.isBuffer(e)&&(e=a(e)),\"function\"==typeof t&&(n=t,t=null),o?t=\"buffer\":t||(t=i.defaultEncoding),\"function\"!=typeof n&&(n=l),i.ended?d(this,n):(o||h(this,i,e,n))&&(i.pendingcb++,r=p(this,i,o,e,t,n)),r},c.prototype.cork=function(){this._writableState.corked++},c.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||x(this,e))},c.prototype.setDefaultEncoding=function(e){if(\"string\"==typeof e&&(e=e.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((e+\"\").toLowerCase())>-1))throw new TypeError(\"Unknown encoding: \"+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(c.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),c.prototype._write=function(e,t,n){n(new Error(\"_write() is not implemented\"))},c.prototype._writev=null,c.prototype.end=function(e,t,n){var i=this._writableState;\"function\"==typeof e?(n=e,e=null,t=null):\"function\"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||T(this,i,n)},Object.defineProperty(c.prototype,\"destroyed\",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),c.prototype.destroy=N.destroy,c.prototype._undestroy=N.undestroy,c.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,n(88),n(601).setImmediate,n(28))},function(e,t,n){t=e.exports=n(216),t.Stream=t,t.Readable=t,t.Writable=n(137),t.Duplex=n(47),t.Transform=n(217),t.PassThrough=n(582)},function(e,t,n){function i(e,t){for(var n=0;n=0&&b.splice(t,1)}function s(e){var t=document.createElement(\"style\");return e.attrs.type=\"text/css\",u(t,e.attrs),o(e,t),t}function l(e){var t=document.createElement(\"link\");return e.attrs.type=\"text/css\",e.attrs.rel=\"stylesheet\",u(t,e.attrs),o(e,t),t}function u(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function c(e,t){var n,i,r,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var u=y++;n=v||(v=s(t)),i=d.bind(null,n,u,!1),r=d.bind(null,n,u,!0)}else e.sourceMap&&\"function\"==typeof URL&&\"function\"==typeof URL.createObjectURL&&\"function\"==typeof URL.revokeObjectURL&&\"function\"==typeof Blob&&\"function\"==typeof btoa?(n=l(t),i=f.bind(null,n,t),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),i=h.bind(null,n),r=function(){a(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}function d(e,t,n,i){var r=n?\"\":i.css;if(e.styleSheet)e.styleSheet.cssText=x(t,r);else{var o=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function h(e,t){var n=t.css,i=t.media;if(i&&e.setAttribute(\"media\",i),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function f(e,t,n){var i=n.css,r=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||o)&&(i=_(i)),r&&(i+=\"\\n/*# sourceMappingURL=data:application/json;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+\" */\");var a=new Blob([i],{type:\"text/css\"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var p={},m=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),g=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e.call(this,n)),t[n]}}(function(e){return document.querySelector(e)}),v=null,y=0,b=[],_=n(598);e.exports=function(e,t){if(\"undefined\"!=typeof DEBUG&&DEBUG&&\"object\"!=typeof document)throw new Error(\"The style-loader cannot be used in a non-browser environment\");t=t||{},t.attrs=\"object\"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=m()),t.insertInto||(t.insertInto=\"head\"),t.insertAt||(t.insertAt=\"bottom\");var n=r(e,t);return i(n,t),function(e){for(var o=[],a=0;an.length)for(;this.routingPaths.length>n.length;)this.mapAdapter.removePolyline(this.routingPaths[this.routingPaths.length-1]),this.routingPaths.pop();this.routingPaths.forEach(function(e,i){t.mapAdapter.updatePolyline(e,n[i])})}}},{key:\"requestRoute\",value:function(e,t,n,i){var r=this;if(e&&t&&n&&i){var o=\"http://navi-env.axty8vi3ic.us-west-2.elasticbeanstalk.com/dreamview/navigation?origin=\"+e+\",\"+t+\"&destination=\"+n+\",\"+i+\"&heading=0\";fetch(encodeURI(o),{method:\"GET\",mode:\"cors\"}).then(function(e){return e.arrayBuffer()}).then(function(e){if(!e.byteLength)return void alert(\"No navigation info received.\");r.WS.publishNavigationInfo(e)}).catch(function(e){console.error(\"Failed to retrieve navigation data:\",e)})}}},{key:\"sendRoutingRequest\",value:function(){if(this.routingRequestPoints){var e=this.routingRequestPoints.length>1?this.routingRequestPoints[0]:this.mapAdapter.getMarkerPosition(this.vehicleMarker),t=this.routingRequestPoints[this.routingRequestPoints.length-1];return this.routingRequestPoints=[],this.requestRoute(e.lat,e.lng,t.lat,t.lng),!0}return alert(\"Please select a route\"),!1}},{key:\"addDefaultEndPoint\",value:function(e){var t=this;e.forEach(function(e){var n=t.mapAdapter.applyCoordinateOffset((0,c.UTMToWGS84)(e.x,e.y)),i=(0,o.default)(n,2),r=i[0],a=i[1];t.routingRequestPoints.push({lat:a,lng:r})})}}]),e}(),f=new h;t.default=f},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=t.CameraVideo=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=t.CameraVideo=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"render\",value:function(){return m.default.createElement(\"div\",{className:\"camera-video\"},m.default.createElement(\"img\",{src:\"/image\"}))}}]),t}(m.default.Component),v=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"render\",value:function(){return m.default.createElement(\"div\",{className:\"card camera\"},m.default.createElement(\"div\",{className:\"card-header\"},m.default.createElement(\"span\",null,\"Camera Sensor\")),m.default.createElement(\"div\",{className:\"card-content-column\"},m.default.createElement(g,null)))}}]),t}(m.default.Component);t.default=v},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=n(13),v=i(g),y=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.id,n=e.title,i=e.isChecked,r=e.onClick,o=e.disabled,a=e.extraClasses;return m.default.createElement(\"ul\",{className:(0,v.default)({disabled:o},a)},m.default.createElement(\"li\",{id:t,onClick:function(){o||r()}},m.default.createElement(\"div\",{className:\"switch\"},m.default.createElement(\"input\",{type:\"checkbox\",className:\"toggle-switch\",name:t,checked:i,disabled:o,readOnly:!0}),m.default.createElement(\"label\",{className:\"toggle-switch-label\",htmlFor:t})),m.default.createElement(\"span\",null,n)))}}]),t}(m.default.Component);t.default=y},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.setElementRef=function(e){n.elementRef=e},n.handleKeyPress=n.handleKeyPress.bind(n),n}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"componentDidMount\",value:function(){this.props.autoFocus&&this.elementRef&&this.elementRef.focus()}},{key:\"handleKeyPress\",value:function(e){\"Enter\"===e.key&&(e.preventDefault(),this.props.onClick())}},{key:\"render\",value:function(){var e=this.props,t=e.id,n=e.title,i=(e.options,e.onClick),r=e.checked,o=e.extraClasses;e.autoFocus;return m.default.createElement(\"ul\",{className:o,tabIndex:\"0\",ref:this.setElementRef,onKeyPress:this.handleKeyPress,onClick:i},m.default.createElement(\"li\",null,m.default.createElement(\"input\",{type:\"radio\",name:t,checked:r,readOnly:!0}),m.default.createElement(\"label\",{className:\"radio-selector-label\",htmlFor:n}),m.default.createElement(\"span\",null,n)))}}]),t}(m.default.Component);t.default=g},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=t.ObstacleColorMapping=t.DEFAULT_COLOR=void 0;var r=n(313),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(12),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(c),h=n(20),f=i(h),p=n(14),m=i(p),g=n(282),v=i(g),y=n(43),b=n(38),_=n(221),x=i(_),w=t.DEFAULT_COLOR=16711932,M=t.ObstacleColorMapping={PEDESTRIAN:16771584,BICYCLE:56555,VEHICLE:65340,VIRTUAL:8388608,CIPV:16750950},S=function(){function e(){(0,s.default)(this,e),this.textRender=new v.default,this.arrows=[],this.ids=[],this.solidCubes=[],this.dashedCubes=[],this.extrusionSolidFaces=[],this.extrusionDashedFaces=[],this.laneMarkers=[],this.icons=[]}return(0,u.default)(e,[{key:\"update\",value:function(e,t,n){this.updateObjects(e,t,n),this.updateLaneMarkers(e,t,n)}},{key:\"updateObjects\",value:function(e,t,n){f.default.isEmpty(this.ids)||(this.ids.forEach(function(e){e.children.forEach(function(e){return e.visible=!1}),n.remove(e)}),this.ids=[]),this.textRender.reset();var i=e.object;if(f.default.isEmpty(i))return(0,y.hideArrayObjects)(this.arrows),(0,y.hideArrayObjects)(this.solidCubes),(0,y.hideArrayObjects)(this.dashedCubes),(0,y.hideArrayObjects)(this.extrusionSolidFaces),(0,y.hideArrayObjects)(this.extrusionDashedFaces),void(0,y.hideArrayObjects)(this.icons);for(var r=t.applyOffset({x:e.autoDrivingCar.positionX,y:e.autoDrivingCar.positionY}),a=0,s=0,l=0,u=0,c=0;c.5){var v=this.updateArrow(p,h.speedHeading,g,a++,n),b=1+(0,o.default)(h.speed);v.scale.set(b,b,b),v.visible=!0}if(m.default.options.showObstaclesHeading){var _=this.updateArrow(p,h.heading,16777215,a++,n);_.scale.set(1,1,1),_.visible=!0}this.updateTexts(r,h,p,n);var x=h.confidence;x=Math.max(0,x),x=Math.min(1,x);var S=h.polygonPoint;if(void 0!==S&&S.length>0?(this.updatePolygon(S,h.height,g,t,x,l,n),l+=S.length):h.length&&h.width&&h.height&&this.updateCube(h.length,h.width,h.height,p,h.heading,g,x,s++,n),h.yieldedObstacle){var E={x:p.x,y:p.y,z:p.z+h.height+.5};this.updateIcon(E,e.autoDrivingCar.heading,u,n),u++}}}(0,y.hideArrayObjects)(this.arrows,a),(0,y.hideArrayObjects)(this.solidCubes,s),(0,y.hideArrayObjects)(this.dashedCubes,s),(0,y.hideArrayObjects)(this.extrusionSolidFaces,l),(0,y.hideArrayObjects)(this.extrusionDashedFaces,l),(0,y.hideArrayObjects)(this.icons,u)}},{key:\"updateArrow\",value:function(e,t,n,i,r){var o=this.getArrow(i,r);return(0,y.copyProperty)(o.position,e),o.material.color.setHex(n),o.rotation.set(0,0,-(Math.PI/2-t)),o}},{key:\"updateTexts\",value:function(e,t,n,i){var r={x:n.x,y:n.y,z:t.height||3},o=0;if(m.default.options.showObstaclesInfo){var a=e.distanceTo(n).toFixed(1),s=t.speed.toFixed(1);this.drawTexts(\"(\"+a+\"m, \"+s+\"m/s)\",r,i),o++}if(m.default.options.showObstaclesId){var l={x:r.x,y:r.y+.7*o,z:r.z+1*o};this.drawTexts(t.id,l,i),o++}if(m.default.options.showPredictionPriority){var u=t.obstaclePriority;if(u&&\"NORMAL\"!==u){var c={x:r.x,y:r.y+.7*o,z:r.z+1*o};this.drawTexts(u,c,i)}}}},{key:\"updatePolygon\",value:function(e,t,n,i,r,o,a){for(var s=0;s0){var u=this.getCube(s,l,!0);u.position.set(i.x,i.y,i.z+n*(a-1)/2),u.scale.set(e,t,n*a),u.material.color.setHex(o),u.rotation.set(0,0,r),u.visible=!0}if(a<1){var c=this.getCube(s,l,!1);c.position.set(i.x,i.y,i.z+n*a/2),c.scale.set(e,t,n*(1-a)),c.material.color.setHex(o),c.rotation.set(0,0,r),c.visible=!0}}},{key:\"updateIcon\",value:function(e,t,n,i){var r=this.getIcon(n,i);(0,y.copyProperty)(r.position,e),r.rotation.set(Math.PI/2,t-Math.PI/2,0),r.visible=!0}},{key:\"getArrow\",value:function(e,t){if(e2&&void 0!==arguments[2])||arguments[2],i=n?this.extrusionSolidFaces:this.extrusionDashedFaces;if(e2&&void 0!==arguments[2])||arguments[2],i=n?this.solidCubes:this.dashedCubes;if(e\",GT:\">\",Iacute:\"Í\",iacute:\"í\",Icirc:\"Î\",icirc:\"î\",iexcl:\"¡\",Igrave:\"Ì\",igrave:\"ì\",iquest:\"¿\",Iuml:\"Ï\",iuml:\"ï\",laquo:\"«\",lt:\"<\",LT:\"<\",macr:\"¯\",micro:\"µ\",middot:\"·\",nbsp:\" \",not:\"¬\",Ntilde:\"Ñ\",ntilde:\"ñ\",Oacute:\"Ó\",oacute:\"ó\",Ocirc:\"Ô\",ocirc:\"ô\",Ograve:\"Ò\",ograve:\"ò\",ordf:\"ª\",ordm:\"º\",Oslash:\"Ø\",oslash:\"ø\",Otilde:\"Õ\",otilde:\"õ\",Ouml:\"Ö\",ouml:\"ö\",para:\"¶\",plusmn:\"±\",pound:\"£\",quot:'\"',QUOT:'\"',raquo:\"»\",reg:\"®\",REG:\"®\",sect:\"§\",shy:\"­\",sup1:\"¹\",sup2:\"²\",sup3:\"³\",szlig:\"ß\",THORN:\"Þ\",thorn:\"þ\",times:\"×\",Uacute:\"Ú\",uacute:\"ú\",Ucirc:\"Û\",ucirc:\"û\",Ugrave:\"Ù\",ugrave:\"ù\",uml:\"¨\",Uuml:\"Ü\",uuml:\"ü\",Yacute:\"Ý\",yacute:\"ý\",yen:\"¥\",yuml:\"ÿ\"}},function(e,t,n){\"use strict\";function i(e,t){for(var n=new Array(arguments.length-1),i=0,r=2,o=!0;r1&&(n=Math.floor(e.dropFrames),e.dropFrames=e.dropFrames%1),e.advance(1+n);var i=Date.now();e.dropFrames+=(i-t)/e.frameDuration,e.animations.length>0&&e.requestAnimationFrame()},advance:function(e){for(var t,n,i=this.animations,o=0;o=t.numSteps?(r.callback(t.onAnimationComplete,[t],n),n.animating=!1,i.splice(o,1)):++o}}},function(e,t,n){\"use strict\";function i(e,t){return e.native?{x:e.x,y:e.y}:u.getRelativePosition(e,t)}function r(e,t){var n,i,r,o,a,s=e.data.datasets;for(i=0,o=s.length;i0&&(u=e.getDatasetMeta(u[0]._datasetIndex).data),u},\"x-axis\":function(e,t){return l(e,t,{intersect:!1})},point:function(e,t){return o(e,i(t,e))},nearest:function(e,t,n){var r=i(t,e);n.axis=n.axis||\"xy\";var o=s(n.axis),l=a(e,r,n.intersect,o);return l.length>1&&l.sort(function(e,t){var n=e.getArea(),i=t.getArea(),r=n-i;return 0===r&&(r=e._datasetIndex-t._datasetIndex),r}),l.slice(0,1)},x:function(e,t,n){var o=i(t,e),a=[],s=!1;return r(e,function(e){e.inXRange(o.x)&&a.push(e),e.inRange(o.x,o.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a},y:function(e,t,n){var o=i(t,e),a=[],s=!1;return r(e,function(e){e.inYRange(o.y)&&a.push(e),e.inRange(o.x,o.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a}}}},function(e,t,n){\"use strict\";var i=n(9),r=n(6);i._set(\"global\",{plugins:{}}),e.exports={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var i,r,o,a,s,l=this.descriptors(e),u=l.length;for(i=0;i-1?e.split(\"\\n\"):e}function a(e){var t=e._xScale,n=e._yScale||e._scale,i=e._index,r=e._datasetIndex;return{xLabel:t?t.getLabelForIndex(i,r):\"\",yLabel:n?n.getLabelForIndex(i,r):\"\",index:i,datasetIndex:r,x:e._model.x,y:e._model.y}}function s(e){var t=h.global,n=p.valueOrDefault;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:n(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:n(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:n(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:n(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:n(e.titleFontStyle,t.defaultFontStyle),titleFontSize:n(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:n(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:n(e.footerFontStyle,t.defaultFontStyle),footerFontSize:n(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function l(e,t){var n=e._chart.ctx,i=2*t.yPadding,r=0,o=t.body,a=o.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);a+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,u=t.titleFontSize,c=t.bodyFontSize,d=t.footerFontSize;i+=s*u,i+=s?(s-1)*t.titleSpacing:0,i+=s?t.titleMarginBottom:0,i+=a*c,i+=a?(a-1)*t.bodySpacing:0,i+=l?t.footerMarginTop:0,i+=l*d,i+=l?(l-1)*t.footerSpacing:0;var h=0,f=function(e){r=Math.max(r,n.measureText(e).width+h)};return n.font=p.fontString(u,t._titleFontStyle,t._titleFontFamily),p.each(t.title,f),n.font=p.fontString(c,t._bodyFontStyle,t._bodyFontFamily),p.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?c+2:0,p.each(o,function(e){p.each(e.before,f),p.each(e.lines,f),p.each(e.after,f)}),h=0,n.font=p.fontString(d,t._footerFontStyle,t._footerFontFamily),p.each(t.footer,f),r+=2*t.xPadding,{width:r,height:i}}function u(e,t){var n=e._model,i=e._chart,r=e._chart.chartArea,o=\"center\",a=\"center\";n.yi.height-t.height&&(a=\"bottom\");var s,l,u,c,d,h=(r.left+r.right)/2,f=(r.top+r.bottom)/2;\"center\"===a?(s=function(e){return e<=h},l=function(e){return e>h}):(s=function(e){return e<=t.width/2},l=function(e){return e>=i.width-t.width/2}),u=function(e){return e+t.width+n.caretSize+n.caretPadding>i.width},c=function(e){return e-t.width-n.caretSize-n.caretPadding<0},d=function(e){return e<=f?\"top\":\"bottom\"},s(n.x)?(o=\"left\",u(n.x)&&(o=\"center\",a=d(n.y))):l(n.x)&&(o=\"right\",c(n.x)&&(o=\"center\",a=d(n.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:o,yAlign:p.yAlign?p.yAlign:a}}function c(e,t,n,i){var r=e.x,o=e.y,a=e.caretSize,s=e.caretPadding,l=e.cornerRadius,u=n.xAlign,c=n.yAlign,d=a+s,h=l+s;return\"right\"===u?r-=t.width:\"center\"===u&&(r-=t.width/2,r+t.width>i.width&&(r=i.width-t.width),r<0&&(r=0)),\"top\"===c?o+=d:o-=\"bottom\"===c?t.height+d:t.height/2,\"center\"===c?\"left\"===u?r+=d:\"right\"===u&&(r-=d):\"left\"===u?r-=h:\"right\"===u&&(r+=h),{x:r,y:o}}function d(e){return r([],o(e))}var h=n(9),f=n(29),p=n(6);h._set(\"global\",{tooltips:{enabled:!0,custom:null,mode:\"nearest\",position:\"average\",intersect:!0,backgroundColor:\"rgba(0,0,0,0.8)\",titleFontStyle:\"bold\",titleSpacing:2,titleMarginBottom:6,titleFontColor:\"#fff\",titleAlign:\"left\",bodySpacing:2,bodyFontColor:\"#fff\",bodyAlign:\"left\",footerFontStyle:\"bold\",footerSpacing:2,footerMarginTop:6,footerFontColor:\"#fff\",footerAlign:\"left\",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:\"#fff\",displayColors:!0,borderColor:\"rgba(0,0,0,0)\",borderWidth:0,callbacks:{beforeTitle:p.noop,title:function(e,t){var n=\"\",i=t.labels,r=i?i.length:0;if(e.length>0){var o=e[0];o.xLabel?n=o.xLabel:r>0&&o.index0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},i={x:t.x,y:t.y},r=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(this.drawBackground(i,t,e,n,r),i.x+=t.xPadding,i.y+=t.yPadding,this.drawTitle(i,t,e,r),this.drawBody(i,t,e,r),this.drawFooter(i,t,e,r))}},handleEvent:function(e){var t=this,n=t._options,i=!1;return t._lastActive=t._lastActive||[],\"mouseout\"===e.type?t._active=[]:t._active=t._chart.getElementsAtEventForMode(e,n.mode,n),i=!p.arrayEquals(t._active,t._lastActive),i&&(t._lastActive=t._active,(n.enabled||n.custom)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0),t.pivot())),i}})).positioners=m},function(e,t,n){\"use strict\";var i=n(6),r=n(350),o=n(351),a=o._enabled?o:r;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},a)},function(e,t,n){var i=n(364),r=n(362),o=function(e){if(e instanceof o)return e;if(!(this instanceof o))return new o(e);this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var t;\"string\"==typeof e?(t=r.getRgba(e),t?this.setValues(\"rgb\",t):(t=r.getHsla(e))?this.setValues(\"hsl\",t):(t=r.getHwb(e))&&this.setValues(\"hwb\",t)):\"object\"==typeof e&&(t=e,void 0!==t.r||void 0!==t.red?this.setValues(\"rgb\",t):void 0!==t.l||void 0!==t.lightness?this.setValues(\"hsl\",t):void 0!==t.v||void 0!==t.value?this.setValues(\"hsv\",t):void 0!==t.w||void 0!==t.whiteness?this.setValues(\"hwb\",t):void 0===t.c&&void 0===t.cyan||this.setValues(\"cmyk\",t))};o.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace(\"rgb\",arguments)},hsl:function(){return this.setSpace(\"hsl\",arguments)},hsv:function(){return this.setSpace(\"hsv\",arguments)},hwb:function(){return this.setSpace(\"hwb\",arguments)},cmyk:function(){return this.setSpace(\"cmyk\",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues(\"alpha\",e),this)},red:function(e){return this.setChannel(\"rgb\",0,e)},green:function(e){return this.setChannel(\"rgb\",1,e)},blue:function(e){return this.setChannel(\"rgb\",2,e)},hue:function(e){return e&&(e%=360,e=e<0?360+e:e),this.setChannel(\"hsl\",0,e)},saturation:function(e){return this.setChannel(\"hsl\",1,e)},lightness:function(e){return this.setChannel(\"hsl\",2,e)},saturationv:function(e){return this.setChannel(\"hsv\",1,e)},whiteness:function(e){return this.setChannel(\"hwb\",1,e)},blackness:function(e){return this.setChannel(\"hwb\",2,e)},value:function(e){return this.setChannel(\"hsv\",2,e)},cyan:function(e){return this.setChannel(\"cmyk\",0,e)},magenta:function(e){return this.setChannel(\"cmyk\",1,e)},yellow:function(e){return this.setChannel(\"cmyk\",2,e)},black:function(e){return this.setChannel(\"cmyk\",3,e)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;nn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?\"AAA\":t>=4.5?\"AA\":\"\"},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues(\"rgb\",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues(\"hsl\",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues(\"hsl\",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues(\"hsl\",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues(\"hsl\",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues(\"hwb\",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues(\"hwb\",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues(\"rgb\",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues(\"alpha\",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues(\"alpha\",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues(\"hsl\",t),this},mix:function(e,t){var n=this,i=e,r=void 0===t?.5:t,o=2*r-1,a=n.alpha()-i.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return this.rgb(s*n.red()+l*i.red(),s*n.green()+l*i.green(),s*n.blue()+l*i.blue()).alpha(n.alpha()*r+i.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new o,i=this.values,r=n.values;for(var a in i)i.hasOwnProperty(a)&&(e=i[a],t={}.toString.call(e),\"[object Array]\"===t?r[a]=e.slice(0):\"[object Number]\"===t?r[a]=e:console.error(\"unexpected color value:\",e));return n}},o.prototype.spaces={rgb:[\"red\",\"green\",\"blue\"],hsl:[\"hue\",\"saturation\",\"lightness\"],hsv:[\"hue\",\"saturation\",\"value\"],hwb:[\"hue\",\"whiteness\",\"blackness\"],cmyk:[\"cyan\",\"magenta\",\"yellow\",\"black\"]},o.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},o.prototype.getValues=function(e){for(var t=this.values,n={},i=0;il;)i(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var i=n(30),r=n(24),o=n(110);e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){e.exports=n(41)},function(e,t,n){\"use strict\";var i=n(17),r=n(10),o=n(25),a=n(31),s=n(18)(\"species\");e.exports=function(e){var t=\"function\"==typeof r[e]?r[e]:i[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var i=n(30),r=n(61),o=n(18)(\"species\");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||void 0==(n=i(a)[o])?t:r(n)}},function(e,t,n){var i,r,o,a=n(33),s=n(396),l=n(162),u=n(105),c=n(17),d=c.process,h=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,m=c.Dispatch,g=0,v={},y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){y.call(e.data)};h&&f||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++g]=function(){s(\"function\"==typeof e?e:Function(e),t)},i(g),g},f=function(e){delete v[e]},\"process\"==n(62)(d)?i=function(e){d.nextTick(a(y,e,1))}:m&&m.now?i=function(e){m.now(a(y,e,1))}:p?(r=new p,o=r.port2,r.port1.onmessage=b,i=a(o.postMessage,o,1)):c.addEventListener&&\"function\"==typeof postMessage&&!c.importScripts?(i=function(e){c.postMessage(e+\"\",\"*\")},c.addEventListener(\"message\",b,!1)):i=\"onreadystatechange\"in u(\"script\")?function(e){l.appendChild(u(\"script\")).onreadystatechange=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:h,clear:f}},function(e,t,n){var i=n(24);e.exports=function(e,t){if(!i(e)||e._t!==t)throw TypeError(\"Incompatible receiver, \"+t+\" required!\");return e}},function(e,t,n){\"use strict\";function i(e){return(0,o.default)(e)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(455),o=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=t.default},function(e,t){var n=e.exports={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return r[this.type]||r.element}},i={tagName:\"name\",childNodes:\"children\",parentNode:\"parent\",previousSibling:\"prev\",nextSibling:\"next\",nodeValue:\"data\"},r={element:1,text:3,cdata:4,comment:8};Object.keys(i).forEach(function(e){var t=i[e];Object.defineProperty(n,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},function(e,t,n){function i(e){if(e>=55296&&e<=57343||e>1114111)return\"�\";e in r&&(e=r[e]);var t=\"\";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}var r=n(303);e.exports=i},function(e,t,n){function i(e,t){this._options=t||{},this._cbs=e||{},this._tagname=\"\",this._attribname=\"\",this._attribvalue=\"\",this._attribs=null,this._stack=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames=\"lowerCaseTags\"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames=\"lowerCaseAttributeNames\"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(r=this._options.Tokenizer),this._tokenizer=new r(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}var r=n(183),o={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},a={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:o,input:o,output:o,button:o,datalist:o,textarea:o,option:{option:!0},optgroup:{optgroup:!0}},s={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,path:!0,circle:!0,ellipse:!0,line:!0,rect:!0,use:!0,stop:!0,polyline:!0,polygon:!0},l=/\\s|\\//;n(26)(i,n(86).EventEmitter),i.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},i.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},i.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&e in a)for(var t;(t=this._stack[this._stack.length-1])in a[e];this.onclosetag(t));!this._options.xmlMode&&e in s||this._stack.push(e),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},i.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in s&&this._cbs.onclosetag(this._tagname),this._tagname=\"\"},i.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),!this._stack.length||e in s&&!this._options.xmlMode)this._options.xmlMode||\"br\"!==e&&\"p\"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else\"p\"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},i.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing?this._closeCurrentTag():this.onopentagend()},i.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},i.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},i.prototype.onattribdata=function(e){this._attribvalue+=e},i.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname=\"\",this._attribvalue=\"\"},i.prototype._getInstructionName=function(e){var t=e.search(l),n=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},i.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction(\"!\"+t,\"!\"+e)}},i.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction(\"?\"+t,\"?\"+e)}},i.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},i.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment(\"[CDATA[\"+e+\"]]\")},i.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},i.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},i.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname=\"\",this._attribname=\"\",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},i.prototype.parseComplete=function(e){this.reset(),this.end(e)},i.prototype.write=function(e){this._tokenizer.write(e)},i.prototype.end=function(e){this._tokenizer.end(e)},i.prototype.pause=function(){this._tokenizer.pause()},i.prototype.resume=function(){this._tokenizer.resume()},i.prototype.parseChunk=i.prototype.write,i.prototype.done=i.prototype.end,e.exports=i},function(e,t,n){function i(e){return\" \"===e||\"\\n\"===e||\"\\t\"===e||\"\\f\"===e||\"\\r\"===e}function r(e,t,n){var i=e.toLowerCase();return e===i?function(e){e===i?this._state=t:(this._state=n,this._index--)}:function(r){r===i||r===e?this._state=t:(this._state=n,this._index--)}}function o(e,t){var n=e.toLowerCase();return function(i){i===n||i===e?this._state=t:(this._state=p,this._index--)}}function a(e,t){this._state=h,this._buffer=\"\",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=h,this._special=pe,this._cbs=t,this._running=!0,this._ended=!1,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}e.exports=a;var s=n(181),l=n(101),u=n(148),c=n(102),d=0,h=d++,f=d++,p=d++,m=d++,g=d++,v=d++,y=d++,b=d++,_=d++,x=d++,w=d++,M=d++,S=d++,E=d++,T=d++,k=d++,O=d++,C=d++,P=d++,A=d++,R=d++,L=d++,I=d++,D=d++,N=d++,B=d++,z=d++,F=d++,j=d++,U=d++,W=d++,G=d++,V=d++,H=d++,q=d++,Y=d++,X=d++,K=d++,Z=d++,J=d++,Q=d++,$=d++,ee=d++,te=d++,ne=d++,ie=d++,re=d++,oe=d++,ae=d++,se=d++,le=d++,ue=d++,ce=d++,de=d++,he=d++,fe=0,pe=fe++,me=fe++,ge=fe++;a.prototype._stateText=function(e){\"<\"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=f,this._sectionStart=this._index):this._decodeEntities&&this._special===pe&&\"&\"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=h,this._state=le,this._sectionStart=this._index)},a.prototype._stateBeforeTagName=function(e){\"/\"===e?this._state=g:\"<\"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):\">\"===e||this._special!==pe||i(e)?this._state=h:\"!\"===e?(this._state=T,this._sectionStart=this._index+1):\"?\"===e?(this._state=O,this._sectionStart=this._index+1):(this._state=this._xmlMode||\"s\"!==e&&\"S\"!==e?p:W,this._sectionStart=this._index)},a.prototype._stateInTagName=function(e){(\"/\"===e||\">\"===e||i(e))&&(this._emitToken(\"onopentagname\"),this._state=b,this._index--)},a.prototype._stateBeforeCloseingTagName=function(e){i(e)||(\">\"===e?this._state=h:this._special!==pe?\"s\"===e||\"S\"===e?this._state=G:(this._state=h,this._index--):(this._state=v,this._sectionStart=this._index))},a.prototype._stateInCloseingTagName=function(e){(\">\"===e||i(e))&&(this._emitToken(\"onclosetag\"),this._state=y,this._index--)},a.prototype._stateAfterCloseingTagName=function(e){\">\"===e&&(this._state=h,this._sectionStart=this._index+1)},a.prototype._stateBeforeAttributeName=function(e){\">\"===e?(this._cbs.onopentagend(),this._state=h,this._sectionStart=this._index+1):\"/\"===e?this._state=m:i(e)||(this._state=_,this._sectionStart=this._index)},a.prototype._stateInSelfClosingTag=function(e){\">\"===e?(this._cbs.onselfclosingtag(),this._state=h,this._sectionStart=this._index+1):i(e)||(this._state=b,this._index--)},a.prototype._stateInAttributeName=function(e){(\"=\"===e||\"/\"===e||\">\"===e||i(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=x,this._index--)},a.prototype._stateAfterAttributeName=function(e){\"=\"===e?this._state=w:\"/\"===e||\">\"===e?(this._cbs.onattribend(),this._state=b,this._index--):i(e)||(this._cbs.onattribend(),this._state=_,this._sectionStart=this._index)},a.prototype._stateBeforeAttributeValue=function(e){'\"'===e?(this._state=M,this._sectionStart=this._index+1):\"'\"===e?(this._state=S,this._sectionStart=this._index+1):i(e)||(this._state=E,this._sectionStart=this._index,this._index--)},a.prototype._stateInAttributeValueDoubleQuotes=function(e){'\"'===e?(this._emitToken(\"onattribdata\"),this._cbs.onattribend(),this._state=b):this._decodeEntities&&\"&\"===e&&(this._emitToken(\"onattribdata\"),this._baseState=this._state,this._state=le,this._sectionStart=this._index)},a.prototype._stateInAttributeValueSingleQuotes=function(e){\"'\"===e?(this._emitToken(\"onattribdata\"),this._cbs.onattribend(),this._state=b):this._decodeEntities&&\"&\"===e&&(this._emitToken(\"onattribdata\"),this._baseState=this._state,this._state=le,this._sectionStart=this._index)},a.prototype._stateInAttributeValueNoQuotes=function(e){i(e)||\">\"===e?(this._emitToken(\"onattribdata\"),this._cbs.onattribend(),this._state=b,this._index--):this._decodeEntities&&\"&\"===e&&(this._emitToken(\"onattribdata\"),this._baseState=this._state,this._state=le,this._sectionStart=this._index)},a.prototype._stateBeforeDeclaration=function(e){this._state=\"[\"===e?L:\"-\"===e?C:k},a.prototype._stateInDeclaration=function(e){\">\"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=h,this._sectionStart=this._index+1)},a.prototype._stateInProcessingInstruction=function(e){\">\"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=h,this._sectionStart=this._index+1)},a.prototype._stateBeforeComment=function(e){\"-\"===e?(this._state=P,this._sectionStart=this._index+1):this._state=k},a.prototype._stateInComment=function(e){\"-\"===e&&(this._state=A)},a.prototype._stateAfterComment1=function(e){this._state=\"-\"===e?R:P},a.prototype._stateAfterComment2=function(e){\">\"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=h,this._sectionStart=this._index+1):\"-\"!==e&&(this._state=P)},a.prototype._stateBeforeCdata1=r(\"C\",I,k),a.prototype._stateBeforeCdata2=r(\"D\",D,k),a.prototype._stateBeforeCdata3=r(\"A\",N,k),a.prototype._stateBeforeCdata4=r(\"T\",B,k),a.prototype._stateBeforeCdata5=r(\"A\",z,k),a.prototype._stateBeforeCdata6=function(e){\"[\"===e?(this._state=F,this._sectionStart=this._index+1):(this._state=k,this._index--)},a.prototype._stateInCdata=function(e){\"]\"===e&&(this._state=j)},a.prototype._stateAfterCdata1=function(e,t){return function(n){n===e&&(this._state=t)}}(\"]\",U),a.prototype._stateAfterCdata2=function(e){\">\"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=h,this._sectionStart=this._index+1):\"]\"!==e&&(this._state=F)},a.prototype._stateBeforeSpecial=function(e){\"c\"===e||\"C\"===e?this._state=V:\"t\"===e||\"T\"===e?this._state=ee:(this._state=p,this._index--)},a.prototype._stateBeforeSpecialEnd=function(e){this._special!==me||\"c\"!==e&&\"C\"!==e?this._special!==ge||\"t\"!==e&&\"T\"!==e?this._state=h:this._state=re:this._state=K},a.prototype._stateBeforeScript1=o(\"R\",H),a.prototype._stateBeforeScript2=o(\"I\",q),a.prototype._stateBeforeScript3=o(\"P\",Y),a.prototype._stateBeforeScript4=o(\"T\",X),a.prototype._stateBeforeScript5=function(e){(\"/\"===e||\">\"===e||i(e))&&(this._special=me),this._state=p,this._index--},a.prototype._stateAfterScript1=r(\"R\",Z,h),a.prototype._stateAfterScript2=r(\"I\",J,h),a.prototype._stateAfterScript3=r(\"P\",Q,h),a.prototype._stateAfterScript4=r(\"T\",$,h),a.prototype._stateAfterScript5=function(e){\">\"===e||i(e)?(this._special=pe,this._state=v,this._sectionStart=this._index-6,this._index--):this._state=h},a.prototype._stateBeforeStyle1=o(\"Y\",te),a.prototype._stateBeforeStyle2=o(\"L\",ne),a.prototype._stateBeforeStyle3=o(\"E\",ie),a.prototype._stateBeforeStyle4=function(e){(\"/\"===e||\">\"===e||i(e))&&(this._special=ge),this._state=p,this._index--},a.prototype._stateAfterStyle1=r(\"Y\",oe,h),a.prototype._stateAfterStyle2=r(\"L\",ae,h),a.prototype._stateAfterStyle3=r(\"E\",se,h),a.prototype._stateAfterStyle4=function(e){\">\"===e||i(e)?(this._special=pe,this._state=v,this._sectionStart=this._index-5,this._index--):this._state=h},a.prototype._stateBeforeEntity=r(\"#\",ue,ce),a.prototype._stateBeforeNumericEntity=r(\"X\",he,de),a.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+16&&(t=6);t>=2;){var n=this._buffer.substr(e,t);if(u.hasOwnProperty(n))return this._emitPartial(u[n]),void(this._sectionStart+=t+1);t--}},a.prototype._stateInNamedEntity=function(e){\";\"===e?(this._parseNamedEntityStrict(),this._sectionStart+1\"z\")&&(e<\"A\"||e>\"Z\")&&(e<\"0\"||e>\"9\")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==h?\"=\"!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},a.prototype._decodeNumericEntity=function(e,t){var n=this._sectionStart+e;if(n!==this._index){var i=this._buffer.substring(n,this._index),r=parseInt(i,t);this._emitPartial(s(r)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},a.prototype._stateInNumericEntity=function(e){\";\"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<\"0\"||e>\"9\")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},a.prototype._stateInHexEntity=function(e){\";\"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<\"a\"||e>\"f\")&&(e<\"A\"||e>\"F\")&&(e<\"0\"||e>\"9\")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},a.prototype._cleanup=function(){this._sectionStart<0?(this._buffer=\"\",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===h?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer=\"\",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer=\"\",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},a.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(\".write() after done!\")),this._buffer+=e,this._parse()},a.prototype._parse=function(){for(;this._index=56&&h<64&&f>=3&&f<12&&(d=32),h>=72&&h<84&&(f>=0&&f<9?d=31:f>=9&&f<21?d=33:f>=21&&f<33?d=35:f>=33&&f<42&&(d=37)),t=6*(d-1)-180+3,u=a(t),n=.006739496752268451,i=p/Math.sqrt(1-.00669438*Math.sin(m)*Math.sin(m)),r=Math.tan(m)*Math.tan(m),o=n*Math.cos(m)*Math.cos(m),s=Math.cos(m)*(g-u),l=p*(.9983242984503243*m-.002514607064228144*Math.sin(2*m)+2639046602129982e-21*Math.sin(4*m)-3.418046101696858e-9*Math.sin(6*m));var v=.9996*i*(s+(1-r+o)*s*s*s/6+(5-18*r+r*r+72*o-58*n)*s*s*s*s*s/120)+5e5,y=.9996*(l+i*Math.tan(m)*(s*s/2+(5-r+9*o+4*o*o)*s*s*s*s/24+(61-58*r+r*r+600*o-330*n)*s*s*s*s*s*s/720));return h<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(v),zoneNumber:d,zoneLetter:c(h)}}function u(e){var t=e.northing,n=e.easting,i=e.zoneLetter,r=e.zoneNumber;if(r<0||r>60)return null;var o,a,l,c,d,h,f,p,m,g,v=6378137,y=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),b=n-5e5,_=t;i<\"N\"&&(_-=1e7),p=6*(r-1)-180+3,o=.006739496752268451,f=_/.9996,m=f/6367449.145945056,g=m+(3*y/2-27*y*y*y/32)*Math.sin(2*m)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*m)+151*y*y*y/96*Math.sin(6*m),a=v/Math.sqrt(1-.00669438*Math.sin(g)*Math.sin(g)),l=Math.tan(g)*Math.tan(g),c=o*Math.cos(g)*Math.cos(g),d=.99330562*v/Math.pow(1-.00669438*Math.sin(g)*Math.sin(g),1.5),h=b/(.9996*a);var x=g-a*Math.tan(g)/d*(h*h/2-(5+3*l+10*c-4*c*c-9*o)*h*h*h*h/24+(61+90*l+298*c+45*l*l-252*o-3*c*c)*h*h*h*h*h*h/720);x=s(x);var w=(h-(1+2*l+c)*h*h*h/6+(5-2*c+28*l-3*c*c+8*o+24*l*l)*h*h*h*h*h/120)/Math.cos(g);w=p+s(w);var M;if(e.accuracy){var S=u({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});M={top:S.lat,right:S.lon,bottom:x,left:w}}else M={lat:x,lon:w};return M}function c(e){var t=\"Z\";return 84>=e&&e>=72?t=\"X\":72>e&&e>=64?t=\"W\":64>e&&e>=56?t=\"V\":56>e&&e>=48?t=\"U\":48>e&&e>=40?t=\"T\":40>e&&e>=32?t=\"S\":32>e&&e>=24?t=\"R\":24>e&&e>=16?t=\"Q\":16>e&&e>=8?t=\"P\":8>e&&e>=0?t=\"N\":0>e&&e>=-8?t=\"M\":-8>e&&e>=-16?t=\"L\":-16>e&&e>=-24?t=\"K\":-24>e&&e>=-32?t=\"J\":-32>e&&e>=-40?t=\"H\":-40>e&&e>=-48?t=\"G\":-48>e&&e>=-56?t=\"F\":-56>e&&e>=-64?t=\"E\":-64>e&&e>=-72?t=\"D\":-72>e&&e>=-80&&(t=\"C\"),t}function d(e,t){var n=\"00000\"+e.easting,i=\"00000\"+e.northing;return e.zoneNumber+e.zoneLetter+h(e.easting,e.northing,e.zoneNumber)+n.substr(n.length-5,t)+i.substr(i.length-5,t)}function h(e,t,n){var i=f(n);return p(Math.floor(e/1e5),Math.floor(t/1e5)%20,i)}function f(e){var t=e%b;return 0===t&&(t=b),t}function p(e,t,n){var i=n-1,r=_.charCodeAt(i),o=x.charCodeAt(i),a=r+e-1,s=o+t,l=!1;return a>T&&(a=a-T+w-1,l=!0),(a===M||rM||(a>M||rS||(a>S||rT&&(a=a-T+w-1),s>E?(s=s-E+w-1,l=!0):l=!1,(s===M||oM||(s>M||oS||(s>S||oE&&(s=s-E+w-1),String.fromCharCode(a)+String.fromCharCode(s)}function m(e){if(e&&0===e.length)throw\"MGRSPoint coverting from nothing\";for(var t,n=e.length,i=null,r=\"\",o=0;!/[A-Z]/.test(t=e.charAt(o));){if(o>=2)throw\"MGRSPoint bad conversion from: \"+e;r+=t,o++}var a=parseInt(r,10);if(0===o||o+3>n)throw\"MGRSPoint bad conversion from: \"+e;var s=e.charAt(o++);if(s<=\"A\"||\"B\"===s||\"Y\"===s||s>=\"Z\"||\"I\"===s||\"O\"===s)throw\"MGRSPoint zone letter \"+s+\" not handled: \"+e;i=e.substring(o,o+=2);for(var l=f(a),u=g(i.charAt(0),l),c=v(i.charAt(1),l);c0&&(h=1e5/Math.pow(10,x),p=e.substring(o,o+x),w=parseFloat(p)*h,m=e.substring(o+x),M=parseFloat(m)*h),b=w+u,_=M+c,{easting:b,northing:_,zoneLetter:s,zoneNumber:a,accuracy:h}}function g(e,t){for(var n=_.charCodeAt(t-1),i=1e5,r=!1;n!==e.charCodeAt(0);){if(n++,n===M&&n++,n===S&&n++,n>T){if(r)throw\"Bad character: \"+e;n=w,r=!0}i+=1e5}return i}function v(e,t){if(e>\"V\")throw\"MGRSPoint given invalid Northing \"+e;for(var n=x.charCodeAt(t-1),i=0,r=!1;n!==e.charCodeAt(0);){if(n++,n===M&&n++,n===S&&n++,n>E){if(r)throw\"Bad character: \"+e;n=w,r=!0}i+=1e5}return i}function y(e){var t;switch(e){case\"C\":t=11e5;break;case\"D\":t=2e6;break;case\"E\":t=28e5;break;case\"F\":t=37e5;break;case\"G\":t=46e5;break;case\"H\":t=55e5;break;case\"J\":t=64e5;break;case\"K\":t=73e5;break;case\"L\":t=82e5;break;case\"M\":t=91e5;break;case\"N\":t=0;break;case\"P\":t=8e5;break;case\"Q\":t=17e5;break;case\"R\":t=26e5;break;case\"S\":t=35e5;break;case\"T\":t=44e5;break;case\"U\":t=53e5;break;case\"V\":t=62e5;break;case\"W\":t=7e6;break;case\"X\":t=79e5;break;default:t=-1}if(t>=0)return t;throw\"Invalid zone letter: \"+e}t.c=i,t.b=o;var b=6,_=\"AJSAJS\",x=\"AFAFAF\",w=65,M=73,S=79,E=86,T=90;t.a={forward:i,inverse:r,toPoint:o}},function(e,t,n){\"use strict\";t.a=function(e,t){e=Math.abs(e),t=Math.abs(t);var n=Math.max(e,t),i=Math.min(e,t)/(n||1);return n*Math.sqrt(1+Math.pow(i,2))}},function(e,t,n){\"use strict\";var i=.01068115234375;t.a=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*i))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*i)));var n=e*e;return t[2]=n*(.46875-e*(.013020833333333334+.007120768229166667*e)),n*=e,t[3]=n*(.3645833333333333-.005696614583333333*e),t[4]=n*e*.3076171875,t}},function(e,t,n){\"use strict\";var i=n(130),r=n(7);t.a=function(e,t,o){for(var a=1/(1-t),s=e,l=20;l;--l){var u=Math.sin(s),c=1-t*u*u;if(c=(n.i(i.a)(s,u,Math.cos(s),o)-e)*(c*Math.sqrt(c))*a,s-=c,Math.abs(c)2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t}},function(e,t,n){\"use strict\";function i(e){var t=this;if(2===arguments.length){var r=arguments[1];\"string\"==typeof r?\"+\"===r.charAt(0)?i[e]=n.i(o.a)(arguments[1]):i[e]=n.i(a.a)(arguments[1]):i[e]=r}else if(1===arguments.length){if(Array.isArray(e))return e.map(function(e){Array.isArray(e)?i.apply(t,e):i(e)});if(\"string\"==typeof e){if(e in i)return i[e]}else\"EPSG\"in e?i[\"EPSG:\"+e.EPSG]=e:\"ESRI\"in e?i[\"ESRI:\"+e.ESRI]=e:\"IAU2000\"in e?i[\"IAU2000:\"+e.IAU2000]=e:console.log(e);return}}var r=n(512),o=n(196),a=n(220);n.i(r.a)(i),t.a=i},function(e,t,n){\"use strict\";var i=n(7),r=n(504),o=n(505),a=n(96);t.a=function(e){var t,s,l,u={},c=e.split(\"+\").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var n=t.split(\"=\");return n.push(!0),e[n[0].toLowerCase()]=n[1],e},{}),d={proj:\"projName\",datum:\"datumCode\",rf:function(e){u.rf=parseFloat(e)},lat_0:function(e){u.lat0=e*i.d},lat_1:function(e){u.lat1=e*i.d},lat_2:function(e){u.lat2=e*i.d},lat_ts:function(e){u.lat_ts=e*i.d},lon_0:function(e){u.long0=e*i.d},lon_1:function(e){u.long1=e*i.d},lon_2:function(e){u.long2=e*i.d},alpha:function(e){u.alpha=parseFloat(e)*i.d},lonc:function(e){u.longc=e*i.d},x_0:function(e){u.x0=parseFloat(e)},y_0:function(e){u.y0=parseFloat(e)},k_0:function(e){u.k0=parseFloat(e)},k:function(e){u.k0=parseFloat(e)},a:function(e){u.a=parseFloat(e)},b:function(e){u.b=parseFloat(e)},r_a:function(){u.R_A=!0},zone:function(e){u.zone=parseInt(e,10)},south:function(){u.utmSouth=!0},towgs84:function(e){u.datum_params=e.split(\",\").map(function(e){return parseFloat(e)})},to_meter:function(e){u.to_meter=parseFloat(e)},units:function(e){u.units=e;var t=n.i(a.a)(o.a,e);t&&(u.to_meter=t.to_meter)},from_greenwich:function(e){u.from_greenwich=e*i.d},pm:function(e){var t=n.i(a.a)(r.a,e);u.from_greenwich=(t||parseFloat(e))*i.d},nadgrids:function(e){\"@null\"===e?u.datumCode=\"none\":u.nadgrids=e},axis:function(e){var t=\"ewnsud\";3===e.length&&-1!==t.indexOf(e.substr(0,1))&&-1!==t.indexOf(e.substr(1,1))&&-1!==t.indexOf(e.substr(2,1))&&(u.axis=e)}};for(t in c)s=c[t],t in d?(l=d[t],\"function\"==typeof l?l(s):u[l]=s):u[t]=s;return\"string\"==typeof u.datumCode&&\"WGS84\"!==u.datumCode&&(u.datumCode=u.datumCode.toLowerCase()),u}},function(e,t,n){\"use strict\";function i(){if(void 0===this.es||this.es<=0)throw new Error(\"incorrect elliptical usage\");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),i=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),i*=t,this.cgb[1]=i*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=i*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),i*=t,this.cgb[2]=i*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=i*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),i*=t,this.cgb[3]=i*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=i*(1237/630+t*(t*(-24832/14175)-2.4)),i*=t,this.cgb[4]=i*(4174/315+t*(-144838/6237)),this.cbg[4]=i*(-734/315+t*(109598/31185)),i*=t,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+i*(.25+i*(1/64+i/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=i*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=i*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),i*=t,this.utg[2]=i*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=i*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),i*=t,this.utg[3]=i*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=i*(49561/161280+t*(-179/168+t*(6601661/7257600))),i*=t,this.utg[4]=i*(-4583/161280+t*(108847/3991680)),this.gtu[4]=i*(34729/80640+t*(-3418889/1995840)),i*=t,this.utg[5]=-.03233083094085698*i,this.gtu[5]=.6650675310896665*i;var r=n.i(u.a)(this.cbg,this.lat0);this.Zb=-this.Qn*(r+n.i(c.a)(this.gtu,2*r))}function r(e){var t=n.i(h.a)(e.x-this.long0),i=e.y;i=n.i(u.a)(this.cbg,i);var r=Math.sin(i),o=Math.cos(i),a=Math.sin(t),c=Math.cos(t);i=Math.atan2(r,c*o),t=Math.atan2(a*o,n.i(s.a)(r,o*c)),t=n.i(l.a)(Math.tan(t));var f=n.i(d.a)(this.gtu,2*i,2*t);i+=f[0],t+=f[1];var p,m;return Math.abs(t)<=2.623395162778?(p=this.a*(this.Qn*t)+this.x0,m=this.a*(this.Qn*i+this.Zb)+this.y0):(p=1/0,m=1/0),e.x=p,e.y=m,e}function o(e){var t=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);i=(i-this.Zb)/this.Qn,t/=this.Qn;var r,o;if(Math.abs(t)<=2.623395162778){var l=n.i(d.a)(this.utg,2*i,2*t);i+=l[0],t+=l[1],t=Math.atan(n.i(a.a)(t));var c=Math.sin(i),f=Math.cos(i),p=Math.sin(t),m=Math.cos(t);i=Math.atan2(c*m,n.i(s.a)(p,m*f)),t=Math.atan2(p,m*f),r=n.i(h.a)(t+this.long0),o=n.i(u.a)(this.cgb,i)}else r=1/0,o=1/0;return e.x=r,e.y=o,e}var a=n(193),s=n(190),l=n(494),u=n(498),c=n(495),d=n(496),h=n(11),f=[\"Extended_Transverse_Mercator\",\"Extended Transverse Mercator\",\"etmerc\"];t.a={init:i,forward:r,inverse:o,names:f}},function(e,t,n){\"use strict\";function i(e,t){return(e.datum.datum_type===o.i||e.datum.datum_type===o.j)&&\"WGS84\"!==t.datumCode||(t.datum.datum_type===o.i||t.datum.datum_type===o.j)&&\"WGS84\"!==e.datumCode}function r(e,t,d){var h;return Array.isArray(d)&&(d=n.i(u.a)(d)),n.i(c.a)(d),e.datum&&t.datum&&i(e,t)&&(h=new l.a(\"WGS84\"),d=r(e,h,d),e=h),\"enu\"!==e.axis&&(d=n.i(s.a)(e,!1,d)),\"longlat\"===e.projName?d={x:d.x*o.d,y:d.y*o.d}:(e.to_meter&&(d={x:d.x*e.to_meter,y:d.y*e.to_meter}),d=e.inverse(d)),e.from_greenwich&&(d.x+=e.from_greenwich),d=n.i(a.a)(e.datum,t.datum,d),t.from_greenwich&&(d={x:d.x-t.from_greenwich,y:d.y}),\"longlat\"===t.projName?d={x:d.x*o.a,y:d.y*o.a}:(d=t.forward(d),t.to_meter&&(d={x:d.x/t.to_meter,y:d.y/t.to_meter})),\"enu\"!==t.axis?n.i(s.a)(t,!0,d):d}t.a=r;var o=n(7),a=n(509),s=n(491),l=n(127),u=n(194),c=n(492)},function(e,t,n){\"use strict\";function i(e,t,n,i){if(t.resolvedType)if(t.resolvedType instanceof a){e(\"switch(d%s){\",i);for(var r=t.resolvedType.values,o=Object.keys(r),s=0;s>>0\",i,i);break;case\"int32\":case\"sint32\":case\"sfixed32\":e(\"m%s=d%s|0\",i,i);break;case\"uint64\":l=!0;case\"int64\":case\"sint64\":case\"fixed64\":case\"sfixed64\":e(\"if(util.Long)\")(\"(m%s=util.Long.fromValue(d%s)).unsigned=%j\",i,i,l)('else if(typeof d%s===\"string\")',i)(\"m%s=parseInt(d%s,10)\",i,i)('else if(typeof d%s===\"number\")',i)(\"m%s=d%s\",i,i)('else if(typeof d%s===\"object\")',i)(\"m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)\",i,i,i,l?\"true\":\"\");break;case\"bytes\":e('if(typeof d%s===\"string\")',i)(\"util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)\",i,i,i)(\"else if(d%s.length)\",i)(\"m%s=d%s\",i,i);break;case\"string\":e(\"m%s=String(d%s)\",i,i);break;case\"bool\":e(\"m%s=Boolean(d%s)\",i,i)}}return e}function r(e,t,n,i){if(t.resolvedType)t.resolvedType instanceof a?e(\"d%s=o.enums===String?types[%i].values[m%s]:m%s\",i,n,i,i):e(\"d%s=types[%i].toObject(m%s,o)\",i,n,i);else{var r=!1;switch(t.type){case\"double\":case\"float\":e(\"d%s=o.json&&!isFinite(m%s)?String(m%s):m%s\",i,i,i,i);break;case\"uint64\":r=!0;case\"int64\":case\"sint64\":case\"fixed64\":case\"sfixed64\":e('if(typeof m%s===\"number\")',i)(\"d%s=o.longs===String?String(m%s):m%s\",i,i,i)(\"else\")(\"d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s\",i,i,i,i,r?\"true\":\"\",i);break;case\"bytes\":e(\"d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s\",i,i,i,i,i);break;default:e(\"d%s=m%s\",i,i)}}return e}var o=t,a=n(35),s=n(16);o.fromObject=function(e){var t=e.fieldsArray,n=s.codegen([\"d\"],e.name+\"$fromObject\")(\"if(d instanceof this.ctor)\")(\"return d\");if(!t.length)return n(\"return new this.ctor\");n(\"var m=new this.ctor\");for(var r=0;r>>3){\");for(var n=0;n>>0,(t.id<<3|4)>>>0):e(\"types[%i].encode(%s,w.uint32(%i).fork()).ldelim()\",n,i,(t.id<<3|2)>>>0)}function r(e){for(var t,n,r=s.codegen([\"m\",\"w\"],e.name+\"$encode\")(\"if(!w)\")(\"w=Writer.create()\"),l=e.fieldsArray.slice().sort(s.compareFieldsById),t=0;t>>0,8|a.mapKey[u.keyType],u.keyType),void 0===h?r(\"types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()\",c,n):r(\".uint32(%i).%s(%s[ks[i]]).ldelim()\",16|h,d,n),r(\"}\")(\"}\")):u.repeated?(r(\"if(%s!=null&&%s.length){\",n,n),u.packed&&void 0!==a.packed[d]?r(\"w.uint32(%i).fork()\",(u.id<<3|2)>>>0)(\"for(var i=0;i<%s.length;++i)\",n)(\"w.%s(%s[i])\",d,n)(\"w.ldelim()\"):(r(\"for(var i=0;i<%s.length;++i)\",n),void 0===h?i(r,u,c,n+\"[i]\"):r(\"w.uint32(%i).%s(%s[i])\",(u.id<<3|h)>>>0,d,n)),r(\"}\")):(u.optional&&r(\"if(%s!=null&&m.hasOwnProperty(%j))\",n,u.name),void 0===h?i(r,u,c,n):r(\"w.uint32(%i).%s(%s)\",(u.id<<3|h)>>>0,d,n))}return r(\"return w\")}e.exports=r;var o=n(35),a=n(76),s=n(16)},function(e,t,n){\"use strict\";function i(e,t,n,i,o,s){if(r.call(this,e,t,i,void 0,void 0,o,s),!a.isString(n))throw TypeError(\"keyType must be a string\");this.keyType=n,this.resolvedKeyType=null,this.map=!0}e.exports=i;var r=n(56);((i.prototype=Object.create(r.prototype)).constructor=i).className=\"MapField\";var o=n(76),a=n(16);i.fromJSON=function(e,t){return new i(e,t.id,t.keyType,t.type,t.options,t.comment)},i.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject([\"keyType\",this.keyType,\"type\",this.type,\"id\",this.id,\"extend\",this.extend,\"options\",this.options,\"comment\",t?this.comment:void 0])},i.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error(\"invalid key type: \"+this.keyType);return r.prototype.resolve.call(this)},i.d=function(e,t,n){return\"function\"==typeof n?n=a.decorateType(n).name:n&&\"object\"==typeof n&&(n=a.decorateEnum(n).name),function(r,o){a.decorateType(r.constructor).add(new i(o,e,t,n))}}},function(e,t,n){\"use strict\";function i(e,t,n,i,a,s,l,u){if(o.isObject(a)?(l=a,a=s=void 0):o.isObject(s)&&(l=s,s=void 0),void 0!==t&&!o.isString(t))throw TypeError(\"type must be a string\");if(!o.isString(n))throw TypeError(\"requestType must be a string\");if(!o.isString(i))throw TypeError(\"responseType must be a string\");r.call(this,e,l),this.type=t||\"rpc\",this.requestType=n,this.requestStream=!!a||void 0,this.responseType=i,this.responseStream=!!s||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=u}e.exports=i;var r=n(57);((i.prototype=Object.create(r.prototype)).constructor=i).className=\"Method\";var o=n(16);i.fromJSON=function(e,t){return new i(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment)},i.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject([\"type\",\"rpc\"!==this.type&&this.type||void 0,\"requestType\",this.requestType,\"requestStream\",this.requestStream,\"responseType\",this.responseType,\"responseStream\",this.responseStream,\"options\",this.options,\"comment\",t?this.comment:void 0])},i.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),r.prototype.resolve.call(this))}},function(e,t,n){\"use strict\";function i(e){a.call(this,\"\",e),this.deferred=[],this.files=[]}function r(){}function o(e,t){var n=t.parent.lookup(t.extend);if(n){var i=new c(t.fullName,t.id,t.type,t.rule,void 0,t.options);return i.declaringField=t,t.extensionField=i,n.add(i),!0}return!1}e.exports=i;var a=n(75);((i.prototype=Object.create(a.prototype)).constructor=i).className=\"Root\";var s,l,u,c=n(56),d=n(35),h=n(133),f=n(16);i.fromJSON=function(e,t){return t||(t=new i),e.options&&t.setOptions(e.options),t.addJSON(e.nested)},i.prototype.resolvePath=f.path.resolve,i.prototype.load=function e(t,n,i){function o(e,t){if(i){var n=i;if(i=null,d)throw e;n(e,t)}}function a(e,t){try{if(f.isString(t)&&\"{\"===t.charAt(0)&&(t=JSON.parse(t)),f.isString(t)){l.filename=e;var i,r=l(t,c,n),a=0;if(r.imports)for(;a-1){var r=e.substring(n);r in u&&(e=r)}if(!(c.files.indexOf(e)>-1)){if(c.files.push(e),e in u)return void(d?a(e,u[e]):(++h,setTimeout(function(){--h,a(e,u[e])})));if(d){var s;try{s=f.fs.readFileSync(e).toString(\"utf8\")}catch(e){return void(t||o(e))}a(e,s)}else++h,f.fetch(e,function(n,r){if(--h,i)return n?void(t?h||o(null,c):o(n)):void a(e,r)})}}\"function\"==typeof n&&(i=n,n=void 0);var c=this;if(!i)return f.asPromise(e,c,t,n);var d=i===r,h=0;f.isString(t)&&(t=[t]);for(var p,m=0;m-1&&this.deferred.splice(t,1)}}else if(e instanceof d)p.test(e.name)&&delete e.parent[e.name];else if(e instanceof a){for(var n=0;n0?(\"string\"==typeof t||a.objectMode||Object.getPrototypeOf(t)===B.prototype||(t=r(t)),i?a.endEmitted?e.emit(\"error\",new Error(\"stream.unshift() after end event\")):c(e,a,t,!0):a.ended?e.emit(\"error\",new Error(\"stream.push() after EOF\")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?c(e,a,t,!1):y(e,a)):c(e,a,t,!1))):i||(a.reading=!1)}return h(a)}function c(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(e.emit(\"data\",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&g(e)),y(e,t)}function d(e,t){var n;return o(t)||\"string\"==typeof t||void 0===t||e.objectMode||(n=new TypeError(\"Invalid non-string/buffer chunk\")),n}function h(e){return!e.ended&&(e.needReadable||e.length=q?e=q:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function p(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=f(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function m(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,g(e)}}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(U(\"emitReadable\",t.flowing),t.emittedReadable=!0,t.sync?R.nextTick(v,e):v(e))}function v(e){U(\"emit readable\"),e.emit(\"readable\"),S(e)}function y(e,t){t.readingMore||(t.readingMore=!0,R.nextTick(b,e,t))}function b(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(\"\"):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=T(e,t.buffer,t.decoder),n}function T(e,t,n){var i;return eo.length?o.length:e;if(a===o.length?r+=o:r+=o.slice(0,e),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}function O(e,t){var n=B.allocUnsafe(e),i=t.head,r=1;for(i.data.copy(n),e-=i.data.length;i=i.next;){var o=i.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a));break}++r}return t.length-=r,n}function C(e){var t=e._readableState;if(t.length>0)throw new Error('\"endReadable()\" called on non-empty stream');t.endEmitted||(t.ended=!0,R.nextTick(P,t,e))}function P(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit(\"end\"))}function A(e,t){for(var n=0,i=e.length;n=t.highWaterMark||t.ended))return U(\"read: emitReadable\",t.length,t.ended),0===t.length&&t.ended?C(this):g(this),null;if(0===(e=p(e,t))&&t.ended)return 0===t.length&&C(this),null;var i=t.needReadable;U(\"need readable\",i),(0===t.length||t.length-e0?E(e,t):null,null===r?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&C(this)),null!==r&&this.emit(\"data\",r),r},l.prototype._read=function(e){this.emit(\"error\",new Error(\"_read() is not implemented\"))},l.prototype.pipe=function(e,t){function n(e,t){U(\"onunpipe\"),e===h&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,o())}function r(){U(\"onend\"),e.end()}function o(){U(\"cleanup\"),e.removeListener(\"close\",u),e.removeListener(\"finish\",c),e.removeListener(\"drain\",g),e.removeListener(\"error\",l),e.removeListener(\"unpipe\",n),h.removeListener(\"end\",r),h.removeListener(\"end\",d),h.removeListener(\"data\",s),v=!0,!f.awaitDrain||e._writableState&&!e._writableState.needDrain||g()}function s(t){U(\"ondata\"),y=!1,!1!==e.write(t)||y||((1===f.pipesCount&&f.pipes===e||f.pipesCount>1&&-1!==A(f.pipes,e))&&!v&&(U(\"false write response, pause\",h._readableState.awaitDrain),h._readableState.awaitDrain++,y=!0),h.pause())}function l(t){U(\"onerror\",t),d(),e.removeListener(\"error\",l),0===D(e,\"error\")&&e.emit(\"error\",t)}function u(){e.removeListener(\"finish\",c),d()}function c(){U(\"onfinish\"),e.removeListener(\"close\",u),d()}function d(){U(\"unpipe\"),h.unpipe(e)}var h=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=e;break;case 1:f.pipes=[f.pipes,e];break;default:f.pipes.push(e)}f.pipesCount+=1,U(\"pipe count=%d opts=%j\",f.pipesCount,t);var p=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr,m=p?r:d;f.endEmitted?R.nextTick(m):h.once(\"end\",m),e.on(\"unpipe\",n);var g=_(h);e.on(\"drain\",g);var v=!1,y=!1;return h.on(\"data\",s),a(e,\"error\",l),e.once(\"close\",u),e.once(\"finish\",c),e.emit(\"pipe\",h),f.flowing||(U(\"pipe resume\"),h.resume()),e},l.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(\"unpipe\",this,n),this);if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0?90:-90),e.lat_ts=e.lat1)}var a=n(608),s=n(609),l=.017453292519943295;t.a=function(e){var t=n.i(a.a)(e),i=t.shift(),r=t.shift();t.unshift([\"name\",r]),t.unshift([\"type\",i]);var l={};return n.i(s.a)(t,l),o(l),l}},function(e,t,n){e.exports=n.p+\"assets/3tc9TFA8_5YuxA455U7BMg.png\"},function(e,t,n){e.exports=n.p+\"assets/3WNj6QfIN0cgE7u5icG0Zx.png\"},function(e,t,n){e.exports=n.p+\"assets/ZzXs2hkPaGeWT_N6FgGOx.png\"},function(e,t,n){e.exports=n.p+\"assets/13lPmuYsGizUIj_HGNYM82.png\"},function(e,t){e.exports={1:\"showTasks\",2:\"showModuleController\",3:\"showMenu\",4:\"showRouteEditingBar\",5:\"showDataRecorder\",6:\"enableAudioCapture\",7:\"showPOI\",v:\"cameraAngle\",p:\"showPNCMonitor\"}},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o,a=n(3),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(5),f=i(h),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(214),_=n(560),x=i(_),w=n(236),M=i(w),S=n(237),E=i(S),T=n(238),k=i(T),O=n(245),C=i(O),P=n(256),A=i(P),R=n(231),L=i(R),I=n(143),D=n(225),N=i(D),B=n(19),z=i(B),F=(r=(0,y.inject)(\"store\"))(o=(0,y.observer)(o=function(e){function t(e){(0,u.default)(this,t);var n=(0,f.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return n.handleDrag=n.handleDrag.bind(n),n.handleKeyPress=n.handleKeyPress.bind(n),n.updateDimension=n.props.store.updateDimension.bind(n.props.store),n}return(0,m.default)(t,e),(0,d.default)(t,[{key:\"handleDrag\",value:function(e){this.props.store.options.showPNCMonitor&&this.props.store.updateWidthInPercentage(Math.min(1,e/window.innerWidth))}},{key:\"handleKeyPress\",value:function(e){var t=this.props.store,n=t.options,i=t.enableHMIButtonsOnly,r=t.hmi,o=N.default[e.key];o&&!n.showDataRecorder&&(e.preventDefault(),\"cameraAngle\"===o?n.rotateCameraAngle():n.isSideBarButtonDisabled(o,i,r.inNavigationMode)||this.props.store.handleOptionToggle(o))}},{key:\"componentWillMount\",value:function(){this.props.store.updateDimension()}},{key:\"componentDidMount\",value:function(){z.default.initialize(),B.MAP_WS.initialize(),B.POINT_CLOUD_WS.initialize(),window.addEventListener(\"resize\",this.updateDimension,!1),window.addEventListener(\"keypress\",this.handleKeyPress,!1)}},{key:\"componentWillUnmount\",value:function(){window.removeEventListener(\"resize\",this.updateDimension,!1),window.removeEventListener(\"keypress\",this.handleKeyPress,!1)}},{key:\"render\",value:function(){var e=this.props.store,t=(e.isInitialized,e.dimension),n=(e.sceneDimension,e.options);e.hmi;return v.default.createElement(\"div\",null,v.default.createElement(M.default,null),v.default.createElement(\"div\",{className:\"pane-container\"},v.default.createElement(x.default,{split:\"vertical\",size:t.width,onChange:this.handleDrag,allowResize:n.showPNCMonitor},v.default.createElement(\"div\",{className:\"left-pane\"},v.default.createElement(A.default,null),v.default.createElement(\"div\",{className:\"dreamview-body\"},v.default.createElement(E.default,null),v.default.createElement(k.default,null))),v.default.createElement(\"div\",{className:\"right-pane\"},n.showPNCMonitor&&n.showVideo&&v.default.createElement(\"div\",null,v.default.createElement(b.Tab,null,v.default.createElement(\"span\",null,\"Camera Sensor\")),v.default.createElement(I.CameraVideo,null)),n.showPNCMonitor&&v.default.createElement(C.default,{options:n})))),v.default.createElement(\"div\",{className:\"hidden\"},n.enableAudioCapture&&v.default.createElement(L.default,null)))}}]),t}(v.default.Component))||o)||o;t.default=F},function(e,t,n){var i=n(301);\"string\"==typeof i&&(i=[[e.i,i,\"\"]]);var r={};r.transform=void 0;n(139)(i,r);i.locals&&(e.exports=i.locals)},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=g(p.default.hmi.utmZoneId);return(0,c.default)(m,n,[e,t])}function o(e,t){var n=g(p.default.hmi.utmZoneId);return(0,c.default)(n,m,[e,t])}function a(e,t){return h.transform([e,t],\"WGS84\",\"GCJ02\")}function s(e,t){if(l(e,t))return[e,t];var n=a(e,t);return h.transform(n,\"GCJ02\",\"BD09LL\")}function l(e,t){return e<72.004||e>137.8347||(t<.8293||t>55.8271)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.WGS84ToUTM=r,t.UTMToWGS84=o,t.WGS84ToGCJ02=a,t.WGS84ToBD09LL=s;var u=n(513),c=i(u),d=n(365),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(d),f=n(14),p=i(f),m=\"+proj=longlat +ellps=WGS84\",g=function(e){return\"+proj=utm +zone=\"+e+\" +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs\"}},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(312),o=i(r),a=n(44),s=i(a);t.default=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,l=(0,s.default)(e);!(i=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&l.return&&l.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if((0,o.default)(Object(t)))return e(t,n);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}}()},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}var r=n(48),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=n(2),s=i(a),l=n(8);n(227);var u=n(14),c=i(u),d=n(226),h=i(d);o.render(s.default.createElement(l.Provider,{store:c.default},s.default.createElement(h.default,null)),document.getElementById(\"root\"))},function(e,t,n){\"use strict\";(function(e){function i(e){return e&&e.__esModule?e:{default:e}}function r(t){for(var n=t.length,i=new ArrayBuffer(2*n),r=new Int16Array(i,0),o=0,a=0;a0){var u=a.customizedToggles.keys().map(function(e){var t=S.default.startCase(e);return _.default.createElement(Y,{key:e,id:e,title:t,optionName:e,options:a,isCustomized:!0})});s=s.concat(u)}}else\"radio\"===r&&(s=(0,l.default)(o).map(function(e){var t=o[e];return a.togglesToHide[e]?null:_.default.createElement(T.default,{key:n+\"_\"+e,id:n,onClick:function(){a.selectCamera(t)},checked:a.cameraAngle===t,title:t,options:a})}));return _.default.createElement(\"div\",{className:\"card\"},_.default.createElement(\"div\",{className:\"card-header summary\"},_.default.createElement(\"span\",null,_.default.createElement(\"img\",{src:q[n]}),i)),_.default.createElement(\"div\",{className:\"card-content-column\"},s))}}]),t}(_.default.Component))||o,K=(0,x.observer)(a=function(e){function t(){return(0,h.default)(this,t),(0,g.default)(this,(t.__proto__||(0,c.default)(t)).apply(this,arguments))}return(0,y.default)(t,e),(0,p.default)(t,[{key:\"render\",value:function(){var e=this.props.options,t=(0,l.default)(O.default).map(function(t){var n=O.default[t];return _.default.createElement(X,{key:n.id,tabId:n.id,tabTitle:n.title,tabType:n.type,data:n.data,options:e})});return _.default.createElement(\"div\",{className:\"tool-view-menu\",id:\"layer-menu\"},t)}}]),t}(_.default.Component))||a;t.default=K},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o=n(32),a=i(o),s=n(3),l=i(s),u=n(0),c=i(u),d=n(1),h=i(d),f=n(5),p=i(f),m=n(4),g=i(m),v=n(2),y=i(v),b=n(8),_=n(13),x=(i(_),n(145)),w=i(x),M=(0,b.observer)(r=function(e){function t(){return(0,c.default)(this,t),(0,p.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.routeEditingManager,n=e.options,i=e.inNavigationMode,r=(0,a.default)(t.defaultRoutingEndPoint).map(function(e,r){return y.default.createElement(w.default,{extraClasses:[\"poi-button\"],key:\"poi_\"+e,id:\"poi\",title:e,onClick:function(){t.addDefaultEndPoint(e,i),n.showRouteEditingBar||t.sendRoutingRequest(i),n.showPOI=!1},autoFocus:0===r,checked:!1})});return y.default.createElement(\"div\",{className:\"tool-view-menu\",id:\"poi-list\"},y.default.createElement(\"div\",{className:\"card\"},y.default.createElement(\"div\",{className:\"card-header\"},y.default.createElement(\"span\",null,\"Point of Interest\")),y.default.createElement(\"div\",{className:\"card-content-row\"},r)))}}]),t}(y.default.Component))||r;t.default=M},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=n(13),v=i(g),y=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.type,n=e.label,i=e.iconSrc,r=e.hotkey,o=e.active,a=e.disabled,s=e.extraClasses,l=e.onClick,u=\"sub\"===t,c=r?n+\" (\"+r+\")\":n;return m.default.createElement(\"button\",{onClick:l,disabled:a,\"data-for\":\"sidebar-button\",\"data-tip\":c,className:(0,v.default)({button:!u,\"button-active\":!u&&o,\"sub-button\":u,\"sub-button-active\":u&&o},s)},i&&m.default.createElement(\"img\",{src:i,className:\"icon\"}),m.default.createElement(\"div\",{className:\"label\"},n))}}]),t}(m.default.PureComponent);t.default=y},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o,a=n(320),s=i(a),l=n(153),u=i(l),c=n(3),d=i(c),h=n(0),f=i(h),p=n(1),m=i(p),g=n(5),v=i(g),y=n(4),b=i(y),_=n(2),x=i(_),w=n(8),M=n(574),S=i(M),E=n(20),T=i(E),k=n(255),O=i(k),C=n(225),P=i(C),A=n(19),R=(i(A),n(660)),L=i(R),I=n(658),D=i(I),N=n(657),B=i(N),z=n(659),F=i(z),j=n(656),U=i(j),W={showTasks:L.default,showModuleController:D.default,showMenu:B.default,showRouteEditingBar:F.default,showDataRecorder:U.default},G={showTasks:\"Tasks\",showModuleController:\"Module Controller\",showMenu:\"Layer Menu\",showRouteEditingBar:\"Route Editing\",showDataRecorder:\"Data Recorder\",enableAudioCapture:\"Audio Capture\",showPOI:\"Default Routing\"},V=(r=(0,w.inject)(\"store\"))(o=(0,w.observer)(o=function(e){function t(){return(0,f.default)(this,t),(0,v.default)(this,(t.__proto__||(0,d.default)(t)).apply(this,arguments))}return(0,b.default)(t,e),(0,m.default)(t,[{key:\"render\",value:function(){var e=this,t=this.props.store,n=t.options,i=t.enableHMIButtonsOnly,r=t.hmi,o=T.default.invert(P.default),a={};return[].concat((0,u.default)(n.mainSideBarOptions),(0,u.default)(n.secondarySideBarOptions)).forEach(function(t){a[t]={label:G[t],active:n[t],onClick:function(){e.props.store.handleOptionToggle(t)},disabled:n.isSideBarButtonDisabled(t,i,r.inNavigationMode),hotkey:o[t],iconSrc:W[t]}}),x.default.createElement(\"div\",{className:\"side-bar\"},x.default.createElement(\"div\",{className:\"main-panel\"},x.default.createElement(O.default,(0,s.default)({type:\"main\"},a.showTasks)),x.default.createElement(O.default,(0,s.default)({type:\"main\"},a.showModuleController)),x.default.createElement(O.default,(0,s.default)({type:\"main\"},a.showMenu)),x.default.createElement(O.default,(0,s.default)({type:\"main\"},a.showRouteEditingBar)),x.default.createElement(O.default,(0,s.default)({type:\"main\"},a.showDataRecorder))),x.default.createElement(\"div\",{className:\"sub-button-panel\"},x.default.createElement(O.default,(0,s.default)({type:\"sub\"},a.enableAudioCapture)),x.default.createElement(O.default,(0,s.default)({type:\"sub\"},a.showPOI,{active:!n.showRouteEditingBar&&n.showPOI}))),x.default.createElement(S.default,{id:\"sidebar-button\",place:\"right\",delayShow:500}))}}]),t}(x.default.Component))||o)||o;t.default=V},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o=n(3),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(5),h=i(d),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(260),b=i(y),_=function(e){function t(){return(0,l.default)(this,t),(0,h.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,c.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.label,n=e.percentage,i=e.meterColor,r=e.background;return g.default.createElement(\"div\",{className:\"meter-container\"},g.default.createElement(\"div\",{className:\"meter-label\"},t),g.default.createElement(\"span\",{className:\"meter-head\",style:{borderColor:i}}),g.default.createElement(\"div\",{className:\"meter-background\",style:{backgroundColor:r}},g.default.createElement(\"span\",{style:{backgroundColor:i,width:n+\"%\"}})))}}]),t}(g.default.Component),x=(0,v.observer)(r=function(e){function t(e){(0,l.default)(this,t);var n=(0,h.default)(this,(t.__proto__||(0,a.default)(t)).call(this,e));return n.setting={brake:{label:\"Brake\",meterColor:\"#B43131\",background:\"#382626\"},accelerator:{label:\"Accelerator\",meterColor:\"#006AFF\",background:\"#2D3B50\"}},n}return(0,p.default)(t,e),(0,c.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.throttlePercent,n=e.brakePercent,i=e.speed;return g.default.createElement(\"div\",{className:\"auto-meter\"},g.default.createElement(b.default,{meterPerSecond:i}),g.default.createElement(\"div\",{className:\"brake-panel\"},g.default.createElement(_,{label:this.setting.brake.label,percentage:n,meterColor:this.setting.brake.meterColor,background:this.setting.brake.background})),g.default.createElement(\"div\",{className:\"throttle-panel\"},g.default.createElement(_,{label:this.setting.accelerator.label,percentage:t,meterColor:this.setting.accelerator.meterColor,background:this.setting.accelerator.background})))}}]),t}(g.default.Component))||r;t.default=x},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=n(13),v=i(g),y=n(77),b=i(y),_=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"componentWillUpdate\",value:function(){b.default.cancelAllInQueue()}},{key:\"render\",value:function(){var e=this.props,t=e.drivingMode,n=e.isAutoMode;return b.default.speakOnce(\"Entering to \"+t+\" mode\"),m.default.createElement(\"div\",{className:(0,v.default)({\"driving-mode\":!0,\"auto-mode\":n,\"manual-mode\":!n})},m.default.createElement(\"span\",{className:\"text\"},t))}}]),t}(m.default.PureComponent);t.default=_},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o=n(3),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(5),h=i(d),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(13),b=i(y),_=n(223),x=i(_),w=n(222),M=i(w),S=(0,v.observer)(r=function(e){function t(){return(0,l.default)(this,t),(0,h.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,c.default)(t,[{key:\"render\",value:function(){var e=this.props.monitor;if(!e.hasActiveNotification)return null;if(0===e.items.length)return null;var t=e.items[0],n=\"ERROR\"===t.logLevel||\"FATAL\"===t.logLevel?\"alert\":\"warn\",i=\"alert\"===n?M.default:x.default;return g.default.createElement(\"div\",{className:\"notification-\"+n},g.default.createElement(\"img\",{src:i,className:\"icon\"}),g.default.createElement(\"span\",{className:(0,b.default)(\"text\",n)},t.msg))}}]),t}(g.default.Component))||r;t.default=S},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=[{name:\"km/h\",conversionFromMeterPerSecond:3.6},{name:\"m/s\",conversionFromMeterPerSecond:1},{name:\"mph\",conversionFromMeterPerSecond:2.23694}],v=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.state={unit:0},n.changeUnit=n.changeUnit.bind(n),n}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"changeUnit\",value:function(){this.setState({unit:(this.state.unit+1)%g.length})}},{key:\"render\",value:function(){var e=this.props.meterPerSecond,t=g[this.state.unit],n=t.name,i=Math.round(e*t.conversionFromMeterPerSecond);return m.default.createElement(\"span\",{onClick:this.changeUnit},m.default.createElement(\"span\",{className:\"speed-read\"},i),m.default.createElement(\"span\",{className:\"speed-unit\"},n))}}]),t}(m.default.Component);t.default=v},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g={GREEN:\"rgba(79, 198, 105, 0.8)\",YELLOW:\"rgba(239, 255, 0, 0.8)\",RED:\"rgba(180, 49, 49, 0.8)\",BLACK:\"rgba(30, 30, 30, 0.8)\",UNKNOWN:\"rgba(30, 30, 30, 0.8)\",\"\":null},v=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"render\",value:function(){var e=this.props.colorName,t=g[e],n=e||\"NO SIGNAL\";return m.default.createElement(\"div\",{className:\"traffic-light\"},t&&m.default.createElement(\"svg\",{className:\"symbol\",viewBox:\"0 0 30 30\",height:\"28\",width:\"28\"},m.default.createElement(\"circle\",{cx:\"15\",cy:\"15\",r:\"15\",fill:t})),m.default.createElement(\"div\",{className:\"text\"},n))}}]),t}(m.default.PureComponent);t.default=v},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o=n(3),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(5),h=i(d),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=function(e){function t(){return(0,l.default)(this,t),(0,h.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,c.default)(t,[{key:\"render\",value:function(){var e=this.props.steeringAngle;return g.default.createElement(\"svg\",{className:\"wheel\",viewBox:\"0 0 100 100\",height:\"80\",width:\"80\"},g.default.createElement(\"circle\",{className:\"wheel-background\",cx:\"50\",cy:\"50\",r:\"45\"}),g.default.createElement(\"g\",{className:\"wheel-arm\",transform:\"rotate(\"+e+\" 50 50)\"},g.default.createElement(\"rect\",{x:\"45\",y:\"7\",height:\"10\",width:\"10\"}),g.default.createElement(\"line\",{x1:\"50\",y1:\"50\",x2:\"50\",y2:\"5\"})))}}]),t}(g.default.Component),b=(0,v.observer)(r=function(e){function t(e){(0,l.default)(this,t);var n=(0,h.default)(this,(t.__proto__||(0,a.default)(t)).call(this,e));return n.signalColor={off:\"#30435E\",on:\"#006AFF\"},n}return(0,p.default)(t,e),(0,c.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.steeringPercentage,n=e.steeringAngle,i=e.turnSignal,r=\"LEFT\"===i||\"EMERGENCY\"===i?this.signalColor.on:this.signalColor.off,o=\"RIGHT\"===i||\"EMERGENCY\"===i?this.signalColor.on:this.signalColor.off;return g.default.createElement(\"div\",{className:\"wheel-panel\"},g.default.createElement(\"div\",{className:\"steerangle-read\"},t),g.default.createElement(\"div\",{className:\"steerangle-unit\"},\"%\"),g.default.createElement(\"div\",{className:\"left-arrow\",style:{borderRightColor:r}}),g.default.createElement(y,{steeringAngle:n}),g.default.createElement(\"div\",{className:\"right-arrow\",style:{borderLeftColor:o}}))}}]),t}(g.default.Component))||r;t.default=b},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o=n(3),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(5),h=i(d),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(257),b=i(y),_=n(259),x=i(_),w=n(261),M=i(w),S=n(258),E=i(S),T=n(262),k=i(T),O=(0,v.observer)(r=function(e){function t(){return(0,l.default)(this,t),(0,h.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,c.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.meters,n=e.trafficSignal,i=e.showNotification,r=e.monitor;return g.default.createElement(\"div\",{className:\"status-bar\"},i&&g.default.createElement(x.default,{monitor:r}),g.default.createElement(b.default,{throttlePercent:t.throttlePercent,brakePercent:t.brakePercent,speed:t.speed}),g.default.createElement(k.default,{steeringPercentage:t.steeringPercentage,steeringAngle:t.steeringAngle,turnSignal:t.turnSignal}),g.default.createElement(\"div\",{className:\"traffic-light-and-driving-mode\"},g.default.createElement(M.default,{colorName:n.color}),g.default.createElement(E.default,{drivingMode:t.drivingMode,isAutoMode:t.isAutoMode})))}}]),t}(g.default.Component))||r;t.default=O},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o,a,s=n(3),l=i(s),u=n(0),c=i(u),d=n(1),h=i(d),f=n(5),p=i(f),m=n(4),g=i(m),v=n(2),y=i(v),b=n(8),_=n(13),x=i(_),w=n(223),M=i(w),S=n(222),E=i(S),T=n(43),k=(0,b.observer)(r=function(e){function t(){return(0,c.default)(this,t),(0,p.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.level,n=e.text,i=e.time,r=\"ERROR\"===t||\"FATAL\"===t?\"alert\":\"warn\",o=\"alert\"===r?E.default:M.default;return y.default.createElement(\"li\",{className:\"monitor-item\"},y.default.createElement(\"img\",{src:o,className:\"icon\"}),y.default.createElement(\"span\",{className:(0,x.default)(\"text\",r)},n),y.default.createElement(\"span\",{className:(0,x.default)(\"time\",r)},i))}}]),t}(y.default.Component))||r,O=(o=(0,b.inject)(\"store\"))(a=(0,b.observer)(a=function(e){function t(){return(0,c.default)(this,t),(0,p.default)(this,(t.__proto__||(0,l.default)(t)).apply(this,arguments))}return(0,g.default)(t,e),(0,h.default)(t,[{key:\"render\",value:function(){var e=this.props.store.monitor;return y.default.createElement(\"div\",{className:\"card\",style:{maxWidth:\"50%\"}},y.default.createElement(\"div\",{className:\"card-header\"},y.default.createElement(\"span\",null,\"Console\")),y.default.createElement(\"div\",{className:\"card-content-column\"},y.default.createElement(\"ul\",{className:\"console\"},e.items.map(function(e,t){return y.default.createElement(k,{key:t,text:e.msg,level:e.logLevel,time:(0,T.timestampMsToTimeString)(e.timestampMs)})}))))}}]),t}(y.default.Component))||a)||a;t.default=O},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o,a=n(3),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(5),f=i(h),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(13),_=i(b),x=n(43),w=function(e){function t(){return(0,u.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.time,n=e.warning,i=\"-\"===t?t:(0,x.millisecondsToTime)(0|t);return v.default.createElement(\"div\",{className:(0,_.default)({value:!0,warning:n})},i)}}]),t}(v.default.PureComponent),M=(r=(0,y.inject)(\"store\"))(o=(0,y.observer)(o=function(e){function t(){return(0,u.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:\"render\",value:function(){var e=this.props.store.moduleDelay,t=e.keys().sort().map(function(t){var n=e.get(t),i=n.delay>2e3&&\"TrafficLight\"!==n.name;return v.default.createElement(\"div\",{className:\"delay-item\",key:\"delay_\"+t},v.default.createElement(\"div\",{className:\"name\"},n.name),v.default.createElement(w,{time:n.delay,warning:i}))});return v.default.createElement(\"div\",{className:\"delay card\"},v.default.createElement(\"div\",{className:\"card-header\"},v.default.createElement(\"span\",null,\"Module Delay\")),v.default.createElement(\"div\",{className:\"card-content-column\"},t))}}]),t}(v.default.Component))||o)||o;t.default=M},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o,a=n(3),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(5),f=i(h),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(144),_=i(b),x=n(19),w=i(x),M=(r=(0,y.inject)(\"store\"))(o=(0,y.observer)(o=function(e){function t(){return(0,u.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:\"render\",value:function(){var e=this,t=this.props.store,n=t.options,i=t.enableHMIButtonsOnly,r=i||n.lockTaskPanel;return v.default.createElement(\"div\",{className:\"others card\"},v.default.createElement(\"div\",{className:\"card-header\"},v.default.createElement(\"span\",null,\"Others\")),v.default.createElement(\"div\",{className:\"card-content-column\"},v.default.createElement(\"button\",{disabled:r,onClick:function(){w.default.resetBackend()}},\"Reset Backend Data\"),v.default.createElement(\"button\",{disabled:r,onClick:function(){w.default.dumpMessages()}},\"Dump Message\"),v.default.createElement(_.default,{id:\"showPNCMonitor\",title:\"PNC Monitor\",isChecked:n.showPNCMonitor,disabled:r,onClick:function(){e.props.store.handleOptionToggle(\"showPNCMonitor\")}}),v.default.createElement(_.default,{id:\"toggleSimControl\",title:\"Sim Control\",isChecked:n.enableSimControl,disabled:n.lockTaskPanel,onClick:function(){w.default.toggleSimControl(!n.enableSimControl),e.props.store.handleOptionToggle(\"enableSimControl\")}}),v.default.createElement(_.default,{id:\"showVideo\",title:\"Camera Sensor\",isChecked:n.showVideo,disabled:r,onClick:function(){e.props.store.handleOptionToggle(\"showVideo\")}}),v.default.createElement(_.default,{id:\"panelLock\",title:\"Lock Task Panel\",isChecked:n.lockTaskPanel,disabled:!1,onClick:function(){e.props.store.handleOptionToggle(\"lockTaskPanel\")}})))}}]),t}(v.default.Component))||o)||o;t.default=M},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o,a=n(32),s=i(a),l=n(3),u=i(l),c=n(0),d=i(c),h=n(1),f=i(h),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),_=n(8),x=n(13),w=i(x),M=n(77),S=i(M),E=n(19),T=i(E),k=function(e){function t(){return(0,d.default)(this,t),(0,m.default)(this,(t.__proto__||(0,u.default)(t)).apply(this,arguments))}return(0,v.default)(t,e),(0,f.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.name,n=e.commands,i=e.disabled,r=e.extraCommandClass,o=e.extraButtonClass,a=(0,s.default)(n).map(function(e){return b.default.createElement(\"button\",{className:o,disabled:i,key:e,onClick:n[e]},e)}),l=t?b.default.createElement(\"span\",{className:\"name\"},t+\":\"):null;return b.default.createElement(\"div\",{className:(0,w.default)(\"command-group\",r)},l,a)}}]),t}(b.default.Component),O=(r=(0,_.inject)(\"store\"))(o=(0,_.observer)(o=function(e){function t(e){(0,d.default)(this,t);var n=(0,m.default)(this,(t.__proto__||(0,u.default)(t)).call(this,e));return n.setup={Setup:function(){T.default.executeModeCommand(\"SETUP_MODE\"),S.default.speakOnce(\"Setup\")}},n.reset={\"Reset All\":function(){T.default.executeModeCommand(\"RESET_MODE\"),S.default.speakOnce(\"Reset All\")}},n.auto={\"Start Auto\":function(){T.default.executeModeCommand(\"ENTER_AUTO_MODE\"),S.default.speakOnce(\"Start Auto\")}},n}return(0,v.default)(t,e),(0,f.default)(t,[{key:\"componentWillUpdate\",value:function(){S.default.cancelAllInQueue()}},{key:\"render\",value:function(){var e=this.props.store.hmi,t=this.props.store.options.lockTaskPanel;return b.default.createElement(\"div\",{className:\"card\"},b.default.createElement(\"div\",{className:\"card-header\"},b.default.createElement(\"span\",null,\"Quick Start\")),b.default.createElement(\"div\",{className:\"card-content-column\"},b.default.createElement(k,{disabled:t,commands:this.setup}),b.default.createElement(k,{disabled:t,commands:this.reset}),b.default.createElement(k,{disabled:!e.enableStartAuto||t,commands:this.auto,extraButtonClass:\"start-auto-button\",extraCommandClass:\"start-auto-command\"})))}}]),t}(b.default.Component))||o)||o;t.default=O},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r,o,a=n(3),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(5),f=i(h),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(267),_=i(b),x=n(266),w=i(x),M=n(265),S=i(M),E=n(264),T=i(E),k=n(143),O=i(k),C=(r=(0,y.inject)(\"store\"))(o=(0,y.observer)(o=function(e){function t(){return(0,u.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:\"render\",value:function(){var e=this.props.options;return v.default.createElement(\"div\",{className:\"tasks\"},v.default.createElement(_.default,null),v.default.createElement(w.default,null),v.default.createElement(S.default,null),v.default.createElement(T.default,null),e.showVideo&&!e.showPNCMonitor&&v.default.createElement(O.default,null))}}]),t}(v.default.Component))||o)||o;t.default=C},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(79),o=i(r),a=n(321),s=i(a),l=n(2),u=i(l),c=n(27),d=i(c),h=function(e){var t=e.image,n=e.style,i=e.className,r=((0,s.default)(e,[\"image\",\"style\",\"className\"]),(0,o.default)({},n||{},{backgroundImage:\"url(\"+t+\")\",backgroundSize:\"cover\"})),a=i?i+\" dreamview-image\":\"dreamview-image\";return u.default.createElement(\"div\",{className:a,style:r})};h.propTypes={image:d.default.string.isRequired,style:d.default.object},t.default=h},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h),p=n(2),m=i(p),g=n(13),v=i(g),y=n(37),b=(i(y),n(224)),_=i(b),x=n(642),w=(i(x),function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"render\",value:function(){var e=this.props,t=e.height,n=e.extraClasses,i=e.offlineViewErr,r=\"Please send car initial position and map data.\",o=_.default;return m.default.createElement(\"div\",{className:\"loader\",style:{height:t}},m.default.createElement(\"div\",{className:(0,v.default)(\"img-container\",n)},m.default.createElement(\"img\",{src:o,alt:\"Loader\"}),m.default.createElement(\"div\",{className:i?\"error-message\":\"status-message\"},r)))}}]),t}(m.default.Component));t.default=w},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(3),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(5),d=i(c),h=n(4),f=i(h);n(670);var p=n(2),m=i(p),g=n(48),v=i(g),y=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.setOkButtonRef=function(e){n.okButton=e},n}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"componentDidMount\",value:function(){var e=this;setTimeout(function(){e.okButton&&e.okButton.focus()},0)}},{key:\"componentDidUpdate\",value:function(){this.okButton&&this.okButton.focus()}},{key:\"render\",value:function(){var e=this,t=this.props,n=t.open,i=t.header;return n?m.default.createElement(\"div\",null,m.default.createElement(\"div\",{className:\"modal-background\"}),m.default.createElement(\"div\",{className:\"modal-content\"},m.default.createElement(\"div\",{role:\"dialog\",className:\"modal-dialog\"},i&&m.default.createElement(\"header\",null,m.default.createElement(\"span\",null,this.props.header)),this.props.children),m.default.createElement(\"button\",{ref:this.setOkButtonRef,className:\"ok-button\",onClick:function(){return e.props.onClose()}},\"OK\"))):null}}]),t}(m.default.Component),b=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.rootSelector=document.getElementById(\"root\"),n.container=document.createElement(\"div\"),n}return(0,f.default)(t,e),(0,u.default)(t,[{key:\"componentDidMount\",value:function(){this.rootSelector.appendChild(this.container)}},{key:\"componentWillUnmount\",value:function(){this.rootSelector.removeChild(this.container)}},{key:\"render\",value:function(){return v.default.createPortal(m.default.createElement(y,this.props),this.container)}}]),t}(m.default.Component);t.default=b},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(14),u=i(l),c=n(611),d=i(c),h=n(612),f=i(h),p=n(78),m={adc:{menuOptionName:\"showPositionLocalization\",carMaterial:d.default},planningAdc:{menuOptionName:\"showPlanningCar\",carMaterial:null}},g=function(){function e(t,n){var i=this;(0,o.default)(this,e),this.mesh=null,this.name=t;var r=m[t];if(!r)return void console.error(\"Car properties not found for car:\",t);(0,p.loadObject)(r.carMaterial,f.default,{x:1,y:1,z:1},function(e){i.mesh=e,i.mesh.rotation.x=Math.PI/2,i.mesh.visible=u.default.options[r.menuOptionName],n.add(i.mesh)})}return(0,s.default)(e,[{key:\"update\",value:function(e,t){if(this.mesh&&t&&_.isNumber(t.positionX)&&_.isNumber(t.positionY)){var n=m[this.name].menuOptionName;this.mesh.visible=u.default.options[n];var i=e.applyOffset({x:t.positionX,y:t.positionY});null!==i&&(this.mesh.position.set(i.x,i.y,0),this.mesh.rotation.y=t.heading)}}},{key:\"resizeCarScale\",value:function(e,t,n){this.mesh&&this.mesh.scale.set(e,t,n)}}]),e}();t.default=g},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),c=function(){function e(){(0,o.default)(this,e),this.systemName=\"ENU\",this.offset=null}return(0,s.default)(e,[{key:\"isInitialized\",value:function(){return null!==this.offset}},{key:\"initialize\",value:function(e,t){this.offset={x:e,y:t},console.log(\"Offset is set to x:\"+e+\", y:\"+t)}},{key:\"setSystem\",value:function(e){this.systemName=e}},{key:\"applyOffset\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null===this.offset?(console.error(\"Offset is not set.\"),null):isNaN(this.offset.x)||isNaN(this.offset.y)?(console.error(\"Offset contains NaN!\"),null):isNaN(e.x)||isNaN(e.y)?(console.warn(\"Point contains NaN!\"),null):isNaN(e.z)?new u.Vector2(t?e.x+this.offset.x:e.x-this.offset.x,t?e.y+this.offset.y:e.y-this.offset.y):new u.Vector3(t?e.x+this.offset.x:e.x-this.offset.x,t?e.y+this.offset.y:e.y-this.offset.y,e.z)}},{key:\"applyOffsetToArray\",value:function(e){var t=this;return e.map(function(e){return t.applyOffset(e)})}}]),e}();t.default=c},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(44),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(12),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(c),h=n(14),f=i(h),p=n(629),m=i(p),g=n(633),v=i(g),y=n(631),b=i(y),_=n(221),x=i(_),w=n(632),M=i(w),S=n(623),E=i(S),T=n(626),k=i(T),O=n(624),C=i(O),P=n(627),A=i(P),R=n(625),L=i(R),I=n(628),D=i(I),N=n(621),B=i(N),z=n(635),F=i(z),j=n(634),U=i(j),W=n(637),G=i(W),V=n(638),H=i(V),q=n(639),Y=i(q),X=n(619),K=i(X),Z=n(620),J=i(Z),Q=n(622),$=i(Q),ee=n(630),te=i(ee),ne=n(636),ie=i(ne),re=n(618),oe=i(re),ae=n(617),se=i(ae),le=n(43),ue=n(38),ce=n(20),de={STOP:16724016,FOLLOW:1757281,YIELD:16724215,OVERTAKE:3188223},he={STOP_REASON_HEAD_VEHICLE:D.default,STOP_REASON_DESTINATION:B.default,STOP_REASON_PEDESTRIAN:F.default,STOP_REASON_OBSTACLE:U.default,STOP_REASON_SIGNAL:G.default,STOP_REASON_STOP_SIGN:H.default,STOP_REASON_YIELD_SIGN:Y.default,STOP_REASON_CLEAR_ZONE:K.default,STOP_REASON_CROSSWALK:J.default,STOP_REASON_EMERGENCY:$.default,STOP_REASON_NOT_READY:te.default,STOP_REASON_PULL_OVER:ie.default},fe={LEFT:se.default,RIGHT:oe.default},pe=function(){function e(){(0,s.default)(this,e),this.markers={STOP:[],FOLLOW:[],YIELD:[],OVERTAKE:[]},this.nudges=[],this.mainDecision={STOP:this.getMainStopDecision(),CHANGE_LANE:this.getMainChangeLaneDecision()},this.mainDecisionAddedToScene=!1}return(0,u.default)(e,[{key:\"update\",value:function(e,t,n){this.nudges.forEach(function(e){n.remove(e),e.geometry.dispose(),e.material.dispose()}),this.nudges=[],this.updateMainDecision(e,t,n),this.updateObstacleDecision(e,t,n)}},{key:\"updateMainDecision\",value:function(e,t,n){var i=this,r=e.mainDecision?e.mainDecision:e.mainStop;for(var a in this.mainDecision)this.mainDecision[a].visible=!1;if(f.default.options.showDecisionMain&&!ce.isEmpty(r)){if(!this.mainDecisionAddedToScene){for(var s in this.mainDecision)n.add(this.mainDecision[s]);this.mainDecisionAddedToScene=!0}for(var l in he)this.mainDecision.STOP[l].visible=!1;for(var u in fe)this.mainDecision.CHANGE_LANE[u].visible=!1;var c=t.applyOffset({x:r.positionX,y:r.positionY,z:.2}),d=r.heading,h=!0,p=!1,m=void 0;try{for(var g,v=(0,o.default)(r.decision);!(h=(g=v.next()).done);h=!0)!function(){var e=g.value,n=c,r=d;ce.isNumber(e.positionX)&&ce.isNumber(e.positionY)&&(n=t.applyOffset({x:e.positionX,y:e.positionY,z:.2})),ce.isNumber(e.heading)&&(r=e.heading);var o=ce.attempt(function(){return e.stopReason});!ce.isError(o)&&o&&(i.mainDecision.STOP.position.set(n.x,n.y,n.z),i.mainDecision.STOP.rotation.set(Math.PI/2,r-Math.PI/2,0),i.mainDecision.STOP[o].visible=!0,i.mainDecision.STOP.visible=!0);var a=ce.attempt(function(){return e.changeLaneType});!ce.isError(a)&&a&&(i.mainDecision.CHANGE_LANE.position.set(n.x,n.y,n.z),i.mainDecision.CHANGE_LANE.rotation.set(Math.PI/2,r-Math.PI/2,0),i.mainDecision.CHANGE_LANE[a].visible=!0,i.mainDecision.CHANGE_LANE.visible=!0)}()}catch(e){p=!0,m=e}finally{try{!h&&v.return&&v.return()}finally{if(p)throw m}}}}},{key:\"updateObstacleDecision\",value:function(e,t,n){var i=this,r=e.object;if(f.default.options.showDecisionObstacle&&!ce.isEmpty(r)){for(var o={STOP:0,FOLLOW:0,YIELD:0,OVERTAKE:0},a=0;a=i.markers[u].length?(c=i.getObstacleDecision(u),i.markers[u].push(c),n.add(c)):c=i.markers[u][o[u]];var h=t.applyOffset(new d.Vector3(l.positionX,l.positionY,0));if(null===h)return\"continue\";if(c.position.set(h.x,h.y,.2),c.rotation.set(Math.PI/2,l.heading-Math.PI/2,0),c.visible=!0,o[u]++,\"YIELD\"===u||\"OVERTAKE\"===u){var f=c.connect;f.geometry.vertices[0].set(r[a].positionX-l.positionX,r[a].positionY-l.positionY,0),f.geometry.verticesNeedUpdate=!0,f.geometry.computeLineDistances(),f.geometry.lineDistancesNeedUpdate=!0,f.rotation.set(Math.PI/-2,0,Math.PI/2-l.heading)}}else if(\"NUDGE\"===u){var p=(0,ue.drawShapeFromPoints)(t.applyOffsetToArray(l.polygonPoint),new d.MeshBasicMaterial({color:16744192}),!1,2);i.nudges.push(p),n.add(p)}})(l)}}var u=null;for(u in de)(0,le.hideArrayObjects)(this.markers[u],o[u])}else{var c=null;for(c in de)(0,le.hideArrayObjects)(this.markers[c])}}},{key:\"getMainStopDecision\",value:function(){var e=this.getFence(\"MAIN_STOP\");for(var t in he){var n=(0,ue.drawImage)(he[t],1,1,4.2,3.6,0);e.add(n),e[t]=n}return e.visible=!1,e}},{key:\"getMainChangeLaneDecision\",value:function(){var e=this.getFence(\"MAIN_CHANGE_LANE\");for(var t in fe){var n=(0,ue.drawImage)(fe[t],1,1,1,2.8,0);e.add(n),e[t]=n}return e.visible=!1,e}},{key:\"getObstacleDecision\",value:function(e){var t=this.getFence(e);if(\"YIELD\"===e||\"OVERTAKE\"===e){var n=de[e],i=(0,ue.drawDashedLineFromPoints)([new d.Vector3(1,1,0),new d.Vector3(0,0,0)],n,2,2,1,30);t.add(i),t.connect=i}return t.visible=!1,t}},{key:\"getFence\",value:function(e){var t=null,n=null,i=new d.Object3D;switch(e){case\"STOP\":t=(0,ue.drawImage)(k.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(v.default,1,1,3,3.6,0),i.add(n);break;case\"FOLLOW\":t=(0,ue.drawImage)(C.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(b.default,1,1,3,3.6,0),i.add(n);break;case\"YIELD\":t=(0,ue.drawImage)(A.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(x.default,1,1,3,3.6,0),i.add(n);break;case\"OVERTAKE\":t=(0,ue.drawImage)(L.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(M.default,1,1,3,3.6,0),i.add(n);break;case\"MAIN_STOP\":t=(0,ue.drawImage)(E.default,11.625,3,0,1.5,0),i.add(t),n=(0,ue.drawImage)(m.default,1,1,3,3.6,0),i.add(n)}return i}}]),e}();t.default=pe},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),c=n(14),d=i(c),h=n(38),f=function(){function e(){(0,o.default)(this,e),this.circle=null,this.base=null}return(0,s.default)(e,[{key:\"update\",value:function(e,t,n){if(e.gps&&e.autoDrivingCar){if(!this.circle){var i=new u.MeshBasicMaterial({color:27391,transparent:!1,opacity:.5});this.circle=(0,h.drawCircle)(.2,i),n.add(this.circle)}if(!this.base){var r=d.default.hmi.vehicleParam;this.base=(0,h.drawSegmentsFromPoints)([new u.Vector3(r.frontEdgeToCenter,-r.leftEdgeToCenter,0),new u.Vector3(r.frontEdgeToCenter,r.rightEdgeToCenter,0),new u.Vector3(-r.backEdgeToCenter,r.rightEdgeToCenter,0),new u.Vector3(-r.backEdgeToCenter,-r.leftEdgeToCenter,0),new u.Vector3(r.frontEdgeToCenter,-r.leftEdgeToCenter,0)],27391,2,5),n.add(this.base)}var o=d.default.options.showPositionGps,a=t.applyOffset({x:e.gps.positionX,y:e.gps.positionY,z:0});this.circle.position.set(a.x,a.y,a.z),this.circle.visible=o,this.base.position.set(a.x,a.y,a.z),this.base.rotation.set(0,0,e.gps.heading),this.base.visible=o}}}]),e}();t.default=f},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),c=n(78),d=n(640),h=i(d),f=n(14),p=i(f),m=function(){function e(){var t=this;(0,o.default)(this,e),this.type=\"default\",this.loadedMap=null,this.updateMap=null,this.mesh=null,this.geometry=null,this.initialized=!1,this.inNaviMode=null,(0,c.loadTexture)(h.default,function(e){t.geometry=new u.PlaneGeometry(1,1),t.mesh=new u.Mesh(t.geometry,new u.MeshBasicMaterial({map:e}))})}return(0,s.default)(e,[{key:\"initialize\",value:function(e){return!!this.mesh&&(!(this.loadedMap===this.updateMap&&!this.render(e))&&(this.initialized=!0,!0))}},{key:\"loadGrid\",value:function(e){var t=this;(0,c.loadTexture)(h.default,function(n){console.log(\"using grid as ground image...\"),t.mesh.material.map=n,t.mesh.type=\"grid\",t.render(e)})}},{key:\"update\",value:function(e,t,n){var i=this;if(!0===this.initialized){var r=this.inNaviMode!==p.default.hmi.inNavigationMode;if(this.inNaviMode=p.default.hmi.inNavigationMode,this.inNaviMode?(this.mesh.type=\"grid\",r&&this.loadGrid(t)):this.mesh.type=\"refelction\",\"grid\"===this.mesh.type){var o=e.autoDrivingCar,a=t.applyOffset({x:o.positionX,y:o.positionY});this.mesh.position.set(a.x,a.y,0)}else if(this.loadedMap!==this.updateMap||r){var s=this.titleCaseToSnakeCase(this.updateMap),l=window.location,u=PARAMETERS.server.port,d=l.protocol+\"//\"+l.hostname+\":\"+u,h=d+\"/assets/map_data/\"+s+\"/background.jpg\";(0,c.loadTexture)(h,function(e){console.log(\"updating ground image with \"+s),i.mesh.material.map=e,i.mesh.type=\"reflection\",i.render(t,s)},function(e){i.loadGrid(t)}),this.loadedMap=this.updateMap}}}},{key:\"updateImage\",value:function(e){this.updateMap=e}},{key:\"render\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"defaults\";console.log(\"rendering ground image...\");var n=PARAMETERS.ground[t],i=n.xres,r=n.yres,o=n.mpp,a=n.xorigin,s=n.yorigin,l=e.applyOffset({x:a,y:s});return null===l?(console.warn(\"Cannot find position for ground mesh!\"),!1):(\"defaults\"===t&&(l={x:0,y:0}),this.mesh.position.set(l.x,l.y,0),this.mesh.scale.set(i*o,r*o,1),this.mesh.material.needsUpdate=!0,this.mesh.overdraw=!1,!0)}},{key:\"titleCaseToSnakeCase\",value:function(e){return e.replace(/\\s/g,\"_\").toLowerCase()}}]),e}();t.default=m},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(32),o=i(r),a=n(44),s=i(a),l=n(79),u=i(l),c=n(0),d=i(c),h=n(1),f=i(h),p=n(12),m=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(p),g=n(14),v=i(g),y=n(19),b=n(20),_=i(b),x=n(38),w=n(613),M=i(w),S=n(614),E=i(S),T=n(615),k=i(T),O=n(616),C=i(O),P=n(78),A={YELLOW:14329120,WHITE:13421772,CORAL:16744272,RED:16737894,GREEN:25600,BLUE:3188223,PURE_WHITE:16777215,DEFAULT:12632256},R={x:.006,y:.006,z:.006},L={x:.01,y:.01,z:.01},I=function(){function e(){(0,d.default)(this,e),this.hash=-1,this.data={},this.initialized=!1,this.elementKindsDrawn=\"\"}return(0,f.default)(e,[{key:\"diffMapElements\",value:function(e,t){var n=this,i={},r=!0;for(var o in e){(function(o){if(!n.shouldDrawThisElementKind(o))return\"continue\";i[o]=[];for(var a=e[o],s=t[o],l=0;l=2){var i=Math.atan2(t[n-1].y-t[0].y,t[n-1].x-t[0].x);return 1.5*Math.PI+i}return NaN}},{key:\"getHeadingFromStopLineAndTrafficLightBoundary\",value:function(e){var t=e.boundary.point;if(t.length<3)return console.warn(\"Cannot get three points from boundary, signal_id: \"+e.id.id),this.getHeadingFromStopLine(e);var n=t[0],i=t[1],r=t[2],o=(i.x-n.x)*(r.z-n.z)-(r.x-n.x)*(i.z-n.z),a=(i.y-n.y)*(r.z-n.z)-(r.y-n.y)*(i.z-n.z),s=-o*n.x-a*n.y,l=_.default.get(e,\"stopLine[0].segment[0].lineSegment.point\",\"\"),u=l.length;if(u<2)return console.warn(\"Cannot get any stop line, signal_id: \"+e.id.id),NaN;var c=l[u-1].y-l[0].y,d=l[0].x-l[u-1].x,h=-c*l[0].x-d*l[0].y;if(Math.abs(c*a-o*d)<1e-9)return console.warn(\"The signal orthogonal direction is parallel to the stop line,\",\"signal_id: \"+e.id.id),this.getHeadingFromStopLine(e);var f=(d*s-a*h)/(c*a-o*d),p=0!==d?(-c*f-h)/d:(-o*f-s)/a,m=Math.atan2(-o,a);return(m<0&&p>n.y||m>0&&p.2&&(v-=.7)})}}))}},{key:\"getPredCircle\",value:function(){var e=new u.MeshBasicMaterial({color:16777215,transparent:!1,opacity:.5}),t=(0,f.drawCircle)(.2,e);return this.predCircles.push(t),t}}]),e}();t.default=m},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=(function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e}(l),n(14)),c=i(u),d=n(38),h=(n(20),function(){function e(){(0,o.default)(this,e),this.routePaths=[],this.lastRoutingTime=-1}return(0,s.default)(e,[{key:\"update\",value:function(e,t,n,i){var r=this;this.routePaths.forEach(function(e){e.visible=c.default.options.showRouting}),this.lastRoutingTime!==e&&void 0!==t&&(this.lastRoutingTime=e,this.routePaths.forEach(function(e){i.remove(e),e.material.dispose(),e.geometry.dispose()}),t.forEach(function(e){var t=n.applyOffsetToArray(e.point),o=(0,d.drawThickBandFromPoints)(t,.3,16711680,.6,5);o.visible=c.default.options.showRouting,i.add(o),r.routePaths.push(o)}))}}]),e}());t.default=h},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12);!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e}(l);n(664);var u=n(652),c=i(u),d=n(14),h=(i(d),n(19)),f=i(h),p=n(38),m=function(){function e(){(0,o.default)(this,e),this.routePoints=[],this.parkingSpaceId=null,this.inEditingMode=!1}return(0,s.default)(e,[{key:\"isInEditingMode\",value:function(){return this.inEditingMode}},{key:\"enableEditingMode\",value:function(e,t){this.inEditingMode=!0;e.fov=PARAMETERS.camera.Map.fov,e.near=PARAMETERS.camera.Map.near,e.far=PARAMETERS.camera.Map.far,e.updateProjectionMatrix(),f.default.requestMapElementIdsByRadius(PARAMETERS.routingEditor.radiusOfMapRequest)}},{key:\"disableEditingMode\",value:function(e){this.inEditingMode=!1,this.removeAllRoutePoints(e),this.parkingSpaceId=null}},{key:\"addRoutingPoint\",value:function(e,t,n){var i=t.applyOffset({x:e.x,y:e.y}),r=(0,p.drawImage)(c.default,3.5,3.5,i.x,i.y,.3);this.routePoints.push(r),n.add(r)}},{key:\"setParkingSpaceId\",value:function(e){this.parkingSpaceId=e}},{key:\"removeLastRoutingPoint\",value:function(e){var t=this.routePoints.pop();t&&(e.remove(t),t.geometry&&t.geometry.dispose(),t.material&&t.material.dispose())}},{key:\"removeAllRoutePoints\",value:function(e){this.routePoints.forEach(function(t){e.remove(t),t.geometry&&t.geometry.dispose(),t.material&&t.material.dispose()}),this.routePoints=[]}},{key:\"sendRoutingRequest\",value:function(e,t,n){if(0===this.routePoints.length)return alert(\"Please provide at least an end point.\"),!1;var i=this.routePoints.map(function(e){return e.position.z=0,n.applyOffset(e.position,!0)}),r=i.length>1?i[0]:n.applyOffset(e,!0),o=i.length>1?null:t,a=i[i.length-1],s=i.length>1?i.slice(1,-1):[];return f.default.requestRoute(r,o,s,a,this.parkingSpaceId),!0}}]),e}();t.default=m},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(0),o=i(r),a=n(1),s=i(a),l=n(12),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(l),c=n(20),d={},h=!1,f=new u.FontLoader,p=\"fonts/gentilis_bold.typeface.json\";f.load(p,function(e){d.gentilis_bold=e,h=!0},function(e){console.log(p+e.loaded/e.total*100+\"% loaded\")},function(e){console.log(\"An error happened when loading \"+p)});var m=function(){function e(){(0,o.default)(this,e),this.charMeshes={},this.charPointers={}}return(0,s.default)(e,[{key:\"reset\",value:function(){this.charPointers={}}},{key:\"composeText\",value:function(e){if(!h)return null;for(var t=c.map(e,function(e){return e.charCodeAt(0)-32}),n=new u.Object3D,i=0;i0?this.charMeshes[r][0].clone():this.drawChar3D(e[i]),this.charMeshes[r].push(a));var s=0;switch(e[i]){case\"I\":case\"i\":s=.15;break;case\",\":s=.35;break;case\"/\":s=.15}a.position.set(.43*(i-t.length/2)+s,0,0),this.charPointers[r]++,n.add(a)}return n}},{key:\"drawChar3D\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.gentilis_bold,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.6,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:16771584,o=new u.TextGeometry(e,{font:t,size:n,height:i}),a=new u.MeshBasicMaterial({color:r});return new u.Mesh(o,a)}}]),e}();t.default=m},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=new h.default(e);for(var i in t)n.delete(i);return n}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var o=n(44),a=i(o),s=n(0),l=i(s),u=n(1),c=i(u),d=n(152),h=i(d),f=n(12),p=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(f),m=n(19),g=(i(m),n(78)),v=function(){function e(){(0,l.default)(this,e),this.mesh=!0,this.type=\"tile\",this.hash=-1,this.currentTiles={},this.initialized=!1,this.range=PARAMETERS.ground.defaults.tileRange,this.metadata=null,this.mapId=null,this.mapUrlPrefix=null}return(0,c.default)(e,[{key:\"initialize\",value:function(e,t){this.metadata={tileLength:t.tile*t.mpp,left:t.left,top:t.top,numCols:t.wnum,numRows:t.hnum,mpp:t.mpp,tile:t.tile,imageUrl:t.image_url},this.mapId=t.mapid,this.mapUrlPrefix=this.metadata.imageUrl?this.metadata.imageUrl+\"/\"+this.mapId:e+\"/map/getMapPic\",this.initialized=!0}},{key:\"removeDrewObject\",value:function(e,t){var n=this.currentTiles[e];n&&(t.remove(n),n.geometry&&n.geometry.dispose(),n.material&&n.material.dispose()),delete this.currentTiles[e]}},{key:\"appendTiles\",value:function(e,t,n,i,r){var o=this;if(!(t<0||t>this.metadata.numCols||e<0||e>this.metadata.numRows)){var a=this.metadata.imageUrl?this.mapUrlPrefix+\"/\"+this.metadata.mpp+\"_\"+e+\"_\"+t+\"_\"+this.metadata.tile+\".png\":this.mapUrlPrefix+\"?mapId=\"+this.mapId+\"&i=\"+e+\"&j=\"+t,s=i.applyOffset({x:this.metadata.left+(e+.5)*this.metadata.tileLength,y:this.metadata.top-(t+.5)*this.metadata.tileLength,z:0});(0,g.loadTexture)(a,function(e){var t=new p.Mesh(new p.PlaneGeometry(1,1),new p.MeshBasicMaterial({map:e}));t.position.set(s.x,s.y,s.z),t.scale.set(o.metadata.tileLength,o.metadata.tileLength,1),t.overdraw=!1,o.currentTiles[n]=t,r.add(t)})}}},{key:\"removeExpiredTiles\",value:function(e,t){for(var n in this.currentTiles)e.has(n)||this.removeDrewObject(n,t)}},{key:\"updateIndex\",value:function(e,t,n,i){if(e!==this.hash){this.hash=e,this.removeExpiredTiles(t,i);var o=r(t,this.currentTiles);if(!_.isEmpty(o)||!this.initialized){var s=!0,l=!1,u=void 0;try{for(var c,d=(0,a.default)(o);!(s=(c=d.next()).done);s=!0){var h=c.value;this.currentTiles[h]=null;var f=h.split(\",\"),p=parseInt(f[0]),m=parseInt(f[1]);this.appendTiles(p,m,h,n,i)}}catch(e){l=!0,u=e}finally{try{!s&&d.return&&d.return()}finally{if(l)throw u}}}}}},{key:\"update\",value:function(e,t,n){if(t.isInitialized()&&this.initialized){for(var i=e.autoDrivingCar.positionX,r=e.autoDrivingCar.positionY,o=Math.floor((i-this.metadata.left)/this.metadata.tileLength),a=Math.floor((this.metadata.top-r)/this.metadata.tileLength),s=new h.default,l=\"\",u=o-this.range;u<=o+this.range;u++)for(var c=a-this.range;c<=a+this.range;c++){var d=u+\",\"+c;s.add(d),l+=d}this.updateIndex(l,s,t,n)}}}]),e}();t.default=v},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!e)return[];for(var n=[],i=0;i0){if(Math.abs(n[n.length-1].x-o.x)+Math.abs(n[n.length-1].y-o.y)=PARAMETERS.planning.pathProperties.length&&(console.error(\"No enough property to render the planning path, use a duplicated property instead.\"),u=0);var c=PARAMETERS.planning.pathProperties[u];if(l[e]){var d=r(l[e],n);o.paths[e]=(0,m.drawThickBandFromPoints)(d,s*c.width,c.color,c.opacity,c.zOffset),i.add(o.paths[e])}}else o.paths[e]&&(o.paths[e].visible=!1);u+=1})}}]),e}();t.default=g},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,u.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,(\"value\"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var a,s,l=n(21),u=i(l),c=n(23),d=i(c),h=n(0),f=i(h),p=n(1),m=i(p),g=n(22),v=n(12),y=(a=function(){function e(){(0,f.default)(this,e),r(this,\"lastUpdatedTime\",s,this),this.data=this.initData()}return(0,m.default)(e,[{key:\"updateTime\",value:function(e){this.lastUpdatedTime=e}},{key:\"initData\",value:function(){return{trajectoryGraph:{plan:[],target:[],real:[],autoModeZone:[],steerCurve:[]},pose:{x:null,y:null,heading:null},speedGraph:{plan:[],target:[],real:[],autoModeZone:[]},curvatureGraph:{plan:[],target:[],real:[],autoModeZone:[]},accelerationGraph:{plan:[],target:[],real:[],autoModeZone:[]},stationErrorGraph:{error:[]},headingErrorGraph:{error:[]},lateralErrorGraph:{error:[]}}}},{key:\"updateErrorGraph\",value:function(e,t,n){if(n&&t&&e){var i=e.error.length>0&&t=80;i?e.error=[]:r&&e.error.shift();(0===e.error.length||t!==e.error[e.error.length-1].x)&&e.error.push({x:t,y:n})}}},{key:\"updateSteerCurve\",value:function(e,t,n){var i=t.steeringAngle/n.steerRatio,r=null;r=Math.abs(Math.tan(i))>1e-4?n.length/Math.tan(i):1e5;var o=t.heading,a=Math.abs(r),s=7200/(2*Math.PI*a)*Math.PI/180,l=null,u=null,c=null,d=null;r>=0?(c=Math.PI/2+o,d=o-Math.PI/2,l=0,u=s):(c=o-Math.PI/2,d=Math.PI/2+o,l=-s,u=0);var h=t.positionX+Math.cos(c)*a,f=t.positionY+Math.sin(c)*a,p=new v.EllipseCurve(h,f,a,a,l,u,!1,d);e.steerCurve=p.getPoints(25)}},{key:\"interpolateValueByCurrentTime\",value:function(e,t,n){if(\"timestampSec\"===n)return t;var i=e.map(function(e){return e.timestampSec}),r=e.map(function(e){return e[n]});return new v.LinearInterpolant(i,r,1,[]).evaluate(t)[0]}},{key:\"updateAdcStatusGraph\",value:function(e,t,n,i,r){var o=n.timestampSec,a=e.target.length>0&&o=80;if(a?(e.target=[],e.real=[],e.autoModeZone=[]):s&&(e.target.shift(),e.real.shift(),e.autoModeZone.shift()),0===e.target.length||o!==e.target[e.target.length-1].t){e.plan=t.map(function(e){return{x:e[i],y:e[r]}}),e.target.push({x:this.interpolateValueByCurrentTime(t,o,i),y:this.interpolateValueByCurrentTime(t,o,r),t:o}),e.real.push({x:n[i],y:n[r]});var l=\"DISENGAGE_NONE\"===n.disengageType;e.autoModeZone.push({x:n[i],y:l?n[r]:void 0})}}},{key:\"update\",value:function(e,t){var n=e.planningTrajectory,i=e.autoDrivingCar;if(n&&i&&(this.updateAdcStatusGraph(this.data.speedGraph,n,i,\"timestampSec\",\"speed\"),this.updateAdcStatusGraph(this.data.accelerationGraph,n,i,\"timestampSec\",\"speedAcceleration\"),this.updateAdcStatusGraph(this.data.curvatureGraph,n,i,\"timestampSec\",\"kappa\"),this.updateAdcStatusGraph(this.data.trajectoryGraph,n,i,\"positionX\",\"positionY\"),this.updateSteerCurve(this.data.trajectoryGraph,i,t),this.data.pose.x=i.positionX,this.data.pose.y=i.positionY,this.data.pose.heading=i.heading),e.controlData){var r=e.controlData,o=r.timestampSec;this.updateErrorGraph(this.data.stationErrorGraph,o,r.stationError),this.updateErrorGraph(this.data.lateralErrorGraph,o,r.lateralError),this.updateErrorGraph(this.data.headingErrorGraph,o,r.headingError),this.updateTime(o)}}}]),e}(),s=o(a.prototype,\"lastUpdatedTime\",[g.observable],{enumerable:!0,initializer:function(){return null}}),o(a.prototype,\"updateTime\",[g.action],(0,d.default)(a.prototype,\"updateTime\"),a.prototype),a);t.default=y},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,v.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,(\"value\"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var a,s,l,u,c,d,h,f,p,m,g=n(21),v=i(g),y=n(23),b=i(y),_=n(32),x=i(_),w=n(49),M=i(w),S=n(0),E=i(S),T=n(1),k=i(T),O=n(22),C=n(19),P=i(C),A=n(77),R=i(A),L=n(37),I=i(L),D=(a=function(){function e(){(0,E.default)(this,e),this.modes=[],r(this,\"currentMode\",s,this),this.vehicles=[],r(this,\"currentVehicle\",l,this),this.defaultVehicleSize={height:1.48,width:2.11,length:4.933},this.vehicleParam={frontEdgeToCenter:3.89,backEdgeToCenter:1.04,leftEdgeToCenter:1.055,rightEdgeToCenter:1.055,height:1.48,width:2.11,length:4.933,steerRatio:16},this.maps=[],r(this,\"currentMap\",u,this),r(this,\"moduleStatus\",c,this),r(this,\"componentStatus\",d,this),r(this,\"enableStartAuto\",h,this),this.displayName={},this.utmZoneId=10,r(this,\"dockerImage\",f,this),r(this,\"isCoDriver\",p,this),r(this,\"isMute\",m,this)}return(0,k.default)(e,[{key:\"toggleCoDriverFlag\",value:function(){this.isCoDriver=!this.isCoDriver}},{key:\"toggleMuteFlag\",value:function(){this.isMute=!this.isMute,R.default.setMute(this.isMute)}},{key:\"updateStatus\",value:function(e){if(e.dockerImage&&(this.dockerImage=e.dockerImage),e.utmZoneId&&(this.utmZoneId=e.utmZoneId),e.modes&&(this.modes=e.modes.sort()),e.currentMode&&(this.currentMode=e.currentMode),e.maps&&(this.maps=e.maps.sort()),e.currentMap&&(this.currentMap=e.currentMap),e.vehicles&&(this.vehicles=e.vehicles.sort()),e.currentVehicle&&(this.currentVehicle=e.currentVehicle),e.modules){(0,M.default)((0,x.default)(e.modules).sort())!==(0,M.default)(this.moduleStatus.keys().sort())&&this.moduleStatus.clear();for(var t in e.modules)this.moduleStatus.set(t,e.modules[t])}if(e.monitoredComponents){(0,M.default)((0,x.default)(e.monitoredComponents).sort())!==(0,M.default)(this.componentStatus.keys().sort())&&this.componentStatus.clear();for(var n in e.monitoredComponents)this.componentStatus.set(n,e.monitoredComponents[n])}\"string\"==typeof e.passengerMsg&&R.default.speakRepeatedly(e.passengerMsg)}},{key:\"update\",value:function(e){this.enableStartAuto=\"READY_TO_ENGAGE\"===e.engageAdvice}},{key:\"updateVehicleParam\",value:function(e){this.vehicleParam=e,I.default.adc.resizeCarScale(this.vehicleParam.length/this.defaultVehicleSize.length,this.vehicleParam.width/this.defaultVehicleSize.width,this.vehicleParam.height/this.defaultVehicleSize.height)}},{key:\"toggleModule\",value:function(e){this.moduleStatus.set(e,!this.moduleStatus.get(e));var t=this.moduleStatus.get(e)?\"START_MODULE\":\"STOP_MODULE\";P.default.executeModuleCommand(e,t)}},{key:\"inNavigationMode\",get:function(){return\"Navigation\"===this.currentMode}}]),e}(),s=o(a.prototype,\"currentMode\",[O.observable],{enumerable:!0,initializer:function(){return\"none\"}}),l=o(a.prototype,\"currentVehicle\",[O.observable],{enumerable:!0,initializer:function(){return\"none\"}}),u=o(a.prototype,\"currentMap\",[O.observable],{enumerable:!0,initializer:function(){return\"none\"}}),c=o(a.prototype,\"moduleStatus\",[O.observable],{enumerable:!0,initializer:function(){return O.observable.map()}}),d=o(a.prototype,\"componentStatus\",[O.observable],{enumerable:!0,initializer:function(){return O.observable.map()}}),h=o(a.prototype,\"enableStartAuto\",[O.observable],{enumerable:!0,initializer:function(){return!1}}),f=o(a.prototype,\"dockerImage\",[O.observable],{enumerable:!0,initializer:function(){return\"unknown\"}}),p=o(a.prototype,\"isCoDriver\",[O.observable],{enumerable:!0,initializer:function(){return!1}}),m=o(a.prototype,\"isMute\",[O.observable],{enumerable:!0,initializer:function(){return!1}}),o(a.prototype,\"toggleCoDriverFlag\",[O.action],(0,b.default)(a.prototype,\"toggleCoDriverFlag\"),a.prototype),o(a.prototype,\"toggleMuteFlag\",[O.action],(0,b.default)(a.prototype,\"toggleMuteFlag\"),a.prototype),o(a.prototype,\"updateStatus\",[O.action],(0,b.default)(a.prototype,\"updateStatus\"),a.prototype),o(a.prototype,\"update\",[O.action],(0,b.default)(a.prototype,\"update\"),a.prototype),o(a.prototype,\"toggleModule\",[O.action],(0,b.default)(a.prototype,\"toggleModule\"),a.prototype),o(a.prototype,\"inNavigationMode\",[O.computed],(0,b.default)(a.prototype,\"inNavigationMode\"),a.prototype),a);t.default=D},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,u.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,(\"value\"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var a,s,l=n(21),u=i(l),c=n(23),d=i(c),h=n(0),f=i(h),p=n(1),m=i(p),g=n(22),v=(a=function(){function e(){(0,f.default)(this,e),r(this,\"lastUpdatedTime\",s,this),this.data={}}return(0,m.default)(e,[{key:\"updateTime\",value:function(e){this.lastUpdatedTime=e}},{key:\"updateLatencyGraph\",value:function(e,t){if(t){var n=t.timestampSec,i=this.data[e];if(i.length>0){var r=i[0].x,o=i[i.length-1].x,a=n-r;n300&&i.shift()}0!==i.length&&i[i.length-1].x===n||i.push({x:n,y:t.totalTimeMs})}}},{key:\"update\",value:function(e){if(e.latency){var t=0;for(var n in e.latency)n in this.data||(this.data[n]=[]),this.updateLatencyGraph(n,e.latency[n]),t=Math.max(e.latency[n].timestampSec,t);this.updateTime(t)}}}]),e}(),s=o(a.prototype,\"lastUpdatedTime\",[g.observable],{enumerable:!0,initializer:function(){return 0}}),o(a.prototype,\"updateTime\",[g.action],(0,d.default)(a.prototype,\"updateTime\"),a.prototype),a);t.default=v},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,b.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,(\"value\"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function a(e){return 10*Math.round(e/10)}function s(e){switch(e){case\"DISENGAGE_MANUAL\":return\"MANUAL\";case\"DISENGAGE_NONE\":return\"AUTO\";case\"DISENGAGE_EMERGENCY\":return\"DISENGAGED\";case\"DISENGAGE_AUTO_STEER_ONLY\":return\"AUTO STEER\";case\"DISENGAGE_AUTO_SPEED_ONLY\":return\"AUTO SPEED\";case\"DISENGAGE_CHASSIS_ERROR\":return\"CHASSIS ERROR\";default:return\"UNKNOWN\"}}function l(e){return\"DISENGAGE_NONE\"===e||\"DISENGAGE_AUTO_STEER_ONLY\"===e||\"DISENGAGE_AUTO_SPEED_ONLY\"===e}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var u,c,d,h,f,p,m,g,v,y=n(21),b=i(y),_=n(23),x=i(_),w=n(0),M=i(w),S=n(1),E=i(S),T=n(22),k=(u=function(){function e(){(0,M.default)(this,e),r(this,\"throttlePercent\",c,this),r(this,\"brakePercent\",d,this),r(this,\"speed\",h,this),r(this,\"steeringAngle\",f,this),r(this,\"steeringPercentage\",p,this),r(this,\"drivingMode\",m,this),r(this,\"isAutoMode\",g,this),r(this,\"turnSignal\",v,this)}return(0,E.default)(e,[{key:\"update\",value:function(e){e.autoDrivingCar&&(void 0!==e.autoDrivingCar.throttlePercentage&&(this.throttlePercent=a(e.autoDrivingCar.throttlePercentage)),void 0!==e.autoDrivingCar.brakePercentage&&(this.brakePercent=a(e.autoDrivingCar.brakePercentage)),void 0!==e.autoDrivingCar.speed&&(this.speed=e.autoDrivingCar.speed),void 0===e.autoDrivingCar.steeringPercentage||isNaN(e.autoDrivingCar.steeringPercentage)||(this.steeringPercentage=Math.round(e.autoDrivingCar.steeringPercentage)),void 0===e.autoDrivingCar.steeringAngle||isNaN(e.autoDrivingCar.steeringAngle)||(this.steeringAngle=-Math.round(180*e.autoDrivingCar.steeringAngle/Math.PI)),void 0!==e.autoDrivingCar.disengageType&&(this.drivingMode=s(e.autoDrivingCar.disengageType),this.isAutoMode=l(e.autoDrivingCar.disengageType)),void 0!==e.autoDrivingCar.currentSignal&&(this.turnSignal=e.autoDrivingCar.currentSignal))}}]),e}(),c=o(u.prototype,\"throttlePercent\",[T.observable],{enumerable:!0,initializer:function(){return 0}}),d=o(u.prototype,\"brakePercent\",[T.observable],{enumerable:!0,initializer:function(){return 0}}),h=o(u.prototype,\"speed\",[T.observable],{enumerable:!0,initializer:function(){return 0}}),f=o(u.prototype,\"steeringAngle\",[T.observable],{enumerable:!0,initializer:function(){return 0}}),p=o(u.prototype,\"steeringPercentage\",[T.observable],{enumerable:!0,initializer:function(){return 0}}),m=o(u.prototype,\"drivingMode\",[T.observable],{enumerable:!0,initializer:function(){return\"UNKNOWN\"}}),g=o(u.prototype,\"isAutoMode\",[T.observable],{enumerable:!0,initializer:function(){return!1}}),v=o(u.prototype,\"turnSignal\",[T.observable],{enumerable:!0,initializer:function(){return\"\"}}),o(u.prototype,\"update\",[T.action],(0,x.default)(u.prototype,\"update\"),u.prototype),u);t.default=k},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,c.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,(\"value\"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var a,s,l,u=n(21),c=i(u),d=n(23),h=i(d),f=n(49),p=i(f),m=n(79),g=i(m),v=n(0),y=i(v),b=n(1),_=i(b),x=n(22),w=(a=function(){function e(){(0,y.default)(this,e),r(this,\"hasActiveNotification\",s,this),r(this,\"items\",l,this),this.lastUpdateTimestamp=0,this.refreshTimer=null}return(0,_.default)(e,[{key:\"startRefresh\",value:function(){var e=this;this.clearRefreshTimer(),this.refreshTimer=setInterval(function(){Date.now()-e.lastUpdateTimestamp>6e3&&(e.setHasActiveNotification(!1),e.clearRefreshTimer())},500)}},{key:\"clearRefreshTimer\",value:function(){null!==this.refreshTimer&&(clearInterval(this.refreshTimer),this.refreshTimer=null)}},{key:\"setHasActiveNotification\",value:function(e){this.hasActiveNotification=e}},{key:\"update\",value:function(e){if(e.monitor||e.notification){var t=[];e.notification?t=e.notification.reverse().map(function(e){return(0,g.default)(e.item,{timestampMs:1e3*e.timestampSec})}):e.monitor&&(t=e.monitor.item),this.hasNewNotification(this.items,t)&&(this.hasActiveNotification=!0,this.lastUpdateTimestamp=Date.now(),this.items.replace(t),this.startRefresh())}}},{key:\"hasNewNotification\",value:function(e,t){return(0!==e.length||0!==t.length)&&(0===e.length||0===t.length||(0,p.default)(this.items[0])!==(0,p.default)(t[0]))}},{key:\"insert\",value:function(e,t,n){var i=[];i.push({msg:t,logLevel:e,timestampMs:n});for(var r=0;r10||e<-10?100*e/Math.abs(e):e}},{key:\"extractDataPoints\",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!e)return[];var o=e.map(function(e){return{x:e[t]+r,y:e[n]}});return i&&e.length&&o.push({x:e[0][t],y:e[0][n]}),o}},{key:\"updateSLFrame\",value:function(e){var t=this.data.slGraph,n=e[0].sampledS;t.mapLowerBound=this.generateDataPoints(n,e[0].mapLowerBound,this.transformMapBound),t.mapUpperBound=this.generateDataPoints(n,e[0].mapUpperBound,this.transformMapBound),t.staticObstacleLowerBound=this.generateDataPoints(n,e[0].staticObstacleLowerBound),t.staticObstacleUpperBound=this.generateDataPoints(n,e[0].staticObstacleUpperBound),t.dynamicObstacleLowerBound=this.generateDataPoints(n,e[0].dynamicObstacleLowerBound),t.dynamicObstacleUpperBound=this.generateDataPoints(n,e[0].dynamicObstacleUpperBound),t.pathLine=this.extractDataPoints(e[0].slPath,\"s\",\"l\");var i=e[1].aggregatedBoundaryS;t.aggregatedBoundaryLow=this.generateDataPoints(i,e[1].aggregatedBoundaryLow),t.aggregatedBoundaryHigh=this.generateDataPoints(i,e[1].aggregatedBoundaryHigh)}},{key:\"updateSTGraph\",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=(0,f.default)(e);!(t=(r=o.next()).done);t=!0){var a=r.value;this.data.stGraph[a.name]={obstaclesBoundary:{}};var s=this.data.stGraph[a.name];if(a.boundary){var l=!0,u=!1,c=void 0;try{for(var d,h=(0,f.default)(a.boundary);!(l=(d=h.next()).done);l=!0){var p=d.value,m=p.type.substring(\"ST_BOUNDARY_TYPE_\".length),g=p.name+\"_\"+m;s.obstaclesBoundary[g]=this.extractDataPoints(p.point,\"t\",\"s\",!0)}}catch(e){u=!0,c=e}finally{try{!l&&h.return&&h.return()}finally{if(u)throw c}}}s.curveLine=this.extractDataPoints(a.speedProfile,\"t\",\"s\"),a.kernelCruiseRef&&(s.kernelCruise=this.generateDataPoints(a.kernelCruiseRef.t,a.kernelCruiseRef.cruiseLineS)),a.kernelFollowRef&&(s.kernelFollow=this.generateDataPoints(a.kernelFollowRef.t,a.kernelFollowRef.followLineS))}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}}},{key:\"updateSTSpeedGraph\",value:function(e){var t=this,n=!0,i=!1,r=void 0;try{for(var o,a=(0,f.default)(e);!(n=(o=a.next()).done);n=!0){var s=o.value;this.data.stSpeedGraph[s.name]={};var l=this.data.stSpeedGraph[s.name];l.limit=this.extractDataPoints(s.speedLimit,\"s\",\"v\"),l.planned=this.extractDataPoints(s.speedProfile,\"s\",\"v\"),s.speedConstraint&&function(){var e=s.speedProfile.map(function(e){return e.t}),n=s.speedProfile.map(function(e){return e.s}),i=new b.LinearInterpolant(e,n,1,[]),r=s.speedConstraint.t.map(function(e){return i.evaluate(e)[0]});l.lowerConstraint=t.generateDataPoints(r,s.speedConstraint.lowerBound),l.upperConstraint=t.generateDataPoints(r,s.speedConstraint.upperBound)}()}}catch(e){i=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw r}}}},{key:\"updateSpeed\",value:function(e,t){var n=this.data.speedGraph;if(e){var i=!0,r=!1,o=void 0;try{for(var a,s=(0,f.default)(e);!(i=(a=s.next()).done);i=!0){var l=a.value;n[l.name]=this.extractDataPoints(l.speedPoint,\"t\",\"v\")}}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}}t&&(n.finalSpeed=this.extractDataPoints(t,\"timestampSec\",\"speed\",!1,-this.planningTime))}},{key:\"updateAccelerationGraph\",value:function(e){var t=this.data.accelerationGraph;e&&(t.acceleration=this.extractDataPoints(e,\"timestampSec\",\"speedAcceleration\",!1,-this.planningTime))}},{key:\"updateThetaGraph\",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=(0,f.default)(e);!(t=(r=o.next()).done);t=!0){var a=r.value,s=\"planning_reference_line\"===a.name?\"ReferenceLine\":a.name;this.data.thetaGraph[s]=this.extractDataPoints(a.pathPoint,\"s\",\"theta\")}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}}},{key:\"updateKappaGraph\",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=(0,f.default)(e);!(t=(r=o.next()).done);t=!0){var a=r.value,s=\"planning_reference_line\"===a.name?\"ReferenceLine\":a.name;this.data.kappaGraph[s]=this.extractDataPoints(a.pathPoint,\"s\",\"kappa\")}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}}},{key:\"updateDkappaGraph\",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=(0,f.default)(e);!(t=(r=o.next()).done);t=!0){var a=r.value,s=\"planning_reference_line\"===a.name?\"ReferenceLine\":a.name;this.data.dkappaGraph[s]=this.extractDataPoints(a.pathPoint,\"s\",\"dkappa\")}}catch(e){n=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw i}}}},{key:\"updateDpPolyGraph\",value:function(e){var t=this.data.dpPolyGraph;if(e.sampleLayer){t.sampleLayer=[];var n=!0,i=!1,r=void 0;try{for(var o,a=(0,f.default)(e.sampleLayer);!(n=(o=a.next()).done);n=!0){o.value.slPoint.map(function(e){var n=e.s,i=e.l;t.sampleLayer.push({x:n,y:i})})}}catch(e){i=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw r}}}e.minCostPoint&&(t.minCostPoint=this.extractDataPoints(e.minCostPoint,\"s\",\"l\"))}},{key:\"updateScenario\",value:function(e,t){if(e){var n=this.scenarioHistory.length>0?this.scenarioHistory[this.scenarioHistory.length-1]:{};n.time&&t5&&this.scenarioHistory.shift())}}},{key:\"update\",value:function(e){var t=e.planningData;if(t){var n=e.latency.planning.timestampSec;if(this.planningTime===n)return;if(t.scenario&&this.updateScenario(t.scenario,n),this.chartData=[],this.data=this.initData(),t.chart){var i=!0,r=!1,o=void 0;try{for(var a,s=(0,f.default)(t.chart);!(i=(a=s.next()).done);i=!0){var l=a.value;this.chartData.push((0,_.parseChartDataFromProtoBuf)(l))}}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}}t.slFrame&&t.slFrame.length>=2&&this.updateSLFrame(t.slFrame),t.stGraph&&(this.updateSTGraph(t.stGraph),this.updateSTSpeedGraph(t.stGraph)),t.speedPlan&&e.planningTrajectory&&this.updateSpeed(t.speedPlan,e.planningTrajectory),e.planningTrajectory&&this.updateAccelerationGraph(e.planningTrajectory),t.path&&(this.updateKappaGraph(t.path),this.updateDkappaGraph(t.path),this.updateThetaGraph(t.path)),t.dpPolyGraph&&this.updateDpPolyGraph(t.dpPolyGraph),this.updatePlanningTime(n)}}}]),e}(),s=o(a.prototype,\"planningTime\",[y.observable],{enumerable:!0,initializer:function(){return null}}),o(a.prototype,\"updatePlanningTime\",[y.action],(0,d.default)(a.prototype,\"updatePlanningTime\"),a.prototype),a);t.default=x},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,p.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,(\"value\"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var a,s,l,u,c,d,h,f=n(21),p=i(f),m=n(23),g=i(m),v=n(0),y=i(v),b=n(1),_=i(b),x=n(22);n(671);var w=(a=function(){function e(){(0,y.default)(this,e),this.FPS=10,this.msPerFrame=100,this.recordId=null,this.mapId=null,r(this,\"numFrames\",s,this),r(this,\"requestedFrame\",l,this),r(this,\"retrievedFrame\",u,this),r(this,\"isPlaying\",c,this),r(this,\"isSeeking\",d,this),r(this,\"seekingFrame\",h,this)}return(0,_.default)(e,[{key:\"setMapId\",value:function(e){this.mapId=e}},{key:\"setRecordId\",value:function(e){this.recordId=e}},{key:\"setNumFrames\",value:function(e){this.numFrames=parseInt(e)}},{key:\"setPlayRate\",value:function(e){if(\"number\"==typeof e&&e>0){var t=1/this.FPS*1e3;this.msPerFrame=t/e}}},{key:\"initialized\",value:function(){return this.numFrames&&null!==this.recordId&&null!==this.mapId}},{key:\"hasNext\",value:function(){return this.initialized()&&this.requestedFrame0&&e<=this.numFrames&&(this.seekingFrame=e,this.requestedFrame=e-1,this.isSeeking=!0)}},{key:\"resetFrame\",value:function(){this.requestedFrame=0,this.retrievedFrame=0,this.seekingFrame=1}},{key:\"shouldProcessFrame\",value:function(e){return!(!e||!e.sequenceNum||this.seekingFrame!==e.sequenceNum||!this.isPlaying&&!this.isSeeking)&&(this.retrievedFrame=e.sequenceNum,this.isSeeking=!1,this.seekingFrame++,!0)}},{key:\"currentFrame\",get:function(){return this.retrievedFrame}},{key:\"replayComplete\",get:function(){return this.seekingFrame>this.numFrames}}]),e}(),s=o(a.prototype,\"numFrames\",[x.observable],{enumerable:!0,initializer:function(){return 0}}),l=o(a.prototype,\"requestedFrame\",[x.observable],{enumerable:!0,initializer:function(){return 0}}),u=o(a.prototype,\"retrievedFrame\",[x.observable],{enumerable:!0,initializer:function(){return 0}}),c=o(a.prototype,\"isPlaying\",[x.observable],{enumerable:!0,initializer:function(){return!1}}),d=o(a.prototype,\"isSeeking\",[x.observable],{enumerable:!0,initializer:function(){return!0}}),h=o(a.prototype,\"seekingFrame\",[x.observable],{enumerable:!0,initializer:function(){return 1}}),o(a.prototype,\"next\",[x.action],(0,g.default)(a.prototype,\"next\"),a.prototype),o(a.prototype,\"currentFrame\",[x.computed],(0,g.default)(a.prototype,\"currentFrame\"),a.prototype),o(a.prototype,\"replayComplete\",[x.computed],(0,g.default)(a.prototype,\"replayComplete\"),a.prototype),o(a.prototype,\"setPlayAction\",[x.action],(0,g.default)(a.prototype,\"setPlayAction\"),a.prototype),o(a.prototype,\"seekFrame\",[x.action],(0,g.default)(a.prototype,\"seekFrame\"),a.prototype),o(a.prototype,\"resetFrame\",[x.action],(0,g.default)(a.prototype,\"resetFrame\"),a.prototype),o(a.prototype,\"shouldProcessFrame\",[x.action],(0,g.default)(a.prototype,\"shouldProcessFrame\"),a.prototype),a);t.default=w},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){n&&(0,d.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function o(e,t,n,i,r){var o={};return Object.keys(i).forEach(function(e){o[e]=i[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,(\"value\"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var a,s,l,u,c=n(21),d=i(c),h=n(23),f=i(h),p=n(0),m=i(p),g=n(1),v=i(g),y=n(22),b=n(37),x=i(b),w=n(142),M=i(w),S=(a=function(){function e(){(0,m.default)(this,e),r(this,\"defaultRoutingEndPoint\",s,this),r(this,\"defaultParkingSpaceId\",l,this),r(this,\"currentPOI\",u,this)}return(0,v.default)(e,[{key:\"updateDefaultRoutingEndPoint\",value:function(e){if(void 0!==e.poi){this.defaultRoutingEndPoint={},this.defaultParkingSpaceId={};for(var t=0;t150&&console.log(\"Last sim_world_update took \"+(e.timestamp-this.lastUpdateTimestamp)+\"ms\"),this.lastUpdateTimestamp=e.timestamp,-1!==this.lastSeqNum&&e.world.sequenceNum>this.lastSeqNum+1&&console.debug(\"Last seq: \"+this.lastSeqNum+\". New seq: \"+e.world.sequenceNum+\".\"),this.lastSeqNum=e.world.sequenceNum}},{key:\"startPlayback\",value:function(e){var t=this;clearInterval(this.requestTimer),this.requestTimer=setInterval(function(){if(t.websocket.readyState===t.websocket.OPEN&&d.default.playback.initialized()){if(!d.default.playback.hasNext())return clearInterval(t.requestTimer),void(t.requestTimer=null);t.requestSimulationWorld(d.default.playback.recordId,d.default.playback.next())}},e/2),clearInterval(this.processTimer),this.processTimer=setInterval(function(){if(d.default.playback.initialized()){var e=d.default.playback.seekingFrame;e in t.frameData&&t.processSimWorld(t.frameData[e]),d.default.playback.replayComplete&&(clearInterval(t.processTimer),t.processTimer=null)}},e)}},{key:\"pausePlayback\",value:function(){clearInterval(this.requestTimer),clearInterval(this.processTimer),this.requestTimer=null,this.processTimer=null}},{key:\"requestGroundMeta\",value:function(e){this.websocket.send((0,o.default)({type:\"RetrieveGroundMeta\",mapId:e}))}},{key:\"processSimWorld\",value:function(e){d.default.playback.shouldProcessFrame(e)&&(e.routePath||(e.routePath=this.routingTime2Path[e.routingTime]),d.default.updateTimestamp(e.timestamp),f.default.maybeInitializeOffest(e.autoDrivingCar.positionX,e.autoDrivingCar.positionY),f.default.updateWorld(e),d.default.meters.update(e),d.default.monitor.update(e),d.default.trafficSignal.update(e))}},{key:\"requestFrameCount\",value:function(e){this.websocket.send((0,o.default)({type:\"RetrieveFrameCount\",recordId:e}))}},{key:\"requestSimulationWorld\",value:function(e,t){t in this.frameData?d.default.playback.isSeeking&&this.processSimWorld(this.frameData[t]):this.websocket.send((0,o.default)({type:\"RequestSimulationWorld\",recordId:e,frameId:t}))}},{key:\"requestRoutePath\",value:function(e,t){this.websocket.send((0,o.default)({type:\"requestRoutePath\",recordId:e,frameId:t}))}}]),e}();t.default=p},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(49),o=i(r),a=n(0),s=i(a),l=n(1),u=i(l),c=n(14),d=i(c),h=n(37),f=i(h),p=n(100),m=i(p),g=function(){function e(t){(0,s.default)(this,e),this.serverAddr=t,this.websocket=null,this.worker=new m.default}return(0,u.default)(e,[{key:\"initialize\",value:function(){var e=this;try{this.websocket=new WebSocket(this.serverAddr),this.websocket.binaryType=\"arraybuffer\"}catch(t){return console.error(\"Failed to establish a connection: \"+t),void setTimeout(function(){e.initialize()},1e3)}this.websocket.onmessage=function(t){e.worker.postMessage({source:\"point_cloud\",data:t.data})},this.websocket.onclose=function(t){console.log(\"WebSocket connection closed with code: \"+t.code),e.initialize()},this.worker.onmessage=function(e){\"PointCloudStatus\"===e.data.type?(d.default.setOptionStatus(\"showPointCloud\",e.data.enabled),!1===d.default.options.showPointCloud&&f.default.updatePointCloud({num:[]})):!0===d.default.options.showPointCloud&&void 0!==e.data.num&&f.default.updatePointCloud(e.data)},clearInterval(this.timer),this.timer=setInterval(function(){e.websocket.readyState===e.websocket.OPEN&&!0===d.default.options.showPointCloud&&e.websocket.send((0,o.default)({type:\"RequestPointCloud\"}))},200)}},{key:\"togglePointCloud\",value:function(e){this.websocket.send((0,o.default)({type:\"TogglePointCloud\",enable:e})),!1===d.default.options.showPointCloud&&f.default.updatePointCloud({num:[]})}}]),e}();t.default=g},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(153),o=i(r),a=n(49),s=i(a),l=n(0),u=i(l),c=n(1),d=i(c),h=n(14),f=i(h),p=n(37),m=i(p),g=n(142),v=i(g),y=n(77),b=i(y),_=n(100),x=i(_),w=function(){function e(t){(0,u.default)(this,e),this.serverAddr=t,this.websocket=null,this.simWorldUpdatePeriodMs=100,this.simWorldLastUpdateTimestamp=0,this.mapUpdatePeriodMs=1e3,this.mapLastUpdateTimestamp=0,this.updatePOI=!0,this.routingTime=void 0,this.currentMode=null,this.worker=new x.default}return(0,d.default)(e,[{key:\"initialize\",value:function(){var e=this;try{this.websocket=new WebSocket(this.serverAddr),this.websocket.binaryType=\"arraybuffer\"}catch(t){return console.error(\"Failed to establish a connection: \"+t),void setTimeout(function(){e.initialize()},1e3)}this.websocket.onmessage=function(t){e.worker.postMessage({source:\"realtime\",data:t.data})},this.worker.onmessage=function(t){var n=t.data;switch(n.type){case\"HMIStatus\":f.default.hmi.updateStatus(n.data),m.default.updateGroundImage(f.default.hmi.currentMap);break;case\"VehicleParam\":f.default.hmi.updateVehicleParam(n.data);break;case\"SimControlStatus\":f.default.setOptionStatus(\"enableSimControl\",n.enabled);break;case\"SimWorldUpdate\":e.checkMessage(n);var i=e.currentMode!==f.default.hmi.currentMode;e.currentMode=f.default.hmi.currentMode,f.default.hmi.inNavigationMode?(v.default.isInitialized()&&v.default.update(n),n.autoDrivingCar.positionX=0,n.autoDrivingCar.positionY=0,n.autoDrivingCar.heading=0,m.default.coordinates.setSystem(\"FLU\"),e.mapUpdatePeriodMs=100):(m.default.coordinates.setSystem(\"ENU\"),e.mapUpdatePeriodMs=1e3),f.default.update(n),m.default.maybeInitializeOffest(n.autoDrivingCar.positionX,n.autoDrivingCar.positionY,i),m.default.updateWorld(n),e.updateMapIndex(n),e.routingTime!==n.routingTime&&(e.requestRoutePath(),e.routingTime=n.routingTime);break;case\"MapElementIds\":m.default.updateMapIndex(n.mapHash,n.mapElementIds,n.mapRadius);break;case\"DefaultEndPoint\":f.default.routeEditingManager.updateDefaultRoutingEndPoint(n);break;case\"RoutePath\":m.default.updateRouting(n.routingTime,n.routePath)}},this.websocket.onclose=function(t){console.log(\"WebSocket connection closed, close_code: \"+t.code);var n=(new Date).getTime(),i=n-e.simWorldLastUpdateTimestamp,r=n-f.default.monitor.lastUpdateTimestamp;if(0!==e.simWorldLastUpdateTimestamp&&i>1e4&&r>2e3){var o=\"Connection to the server has been lost.\";f.default.monitor.insert(\"FATAL\",o,n),b.default.getCurrentText()===o&&b.default.isSpeaking()||b.default.speakOnce(o)}e.initialize()},clearInterval(this.timer),this.timer=setInterval(function(){if(e.websocket.readyState===e.websocket.OPEN){e.updatePOI&&(e.requestDefaultRoutingEndPoint(),e.updatePOI=!1);var t=f.default.options.showPNCMonitor;e.websocket.send((0,s.default)({type:\"RequestSimulationWorld\",planning:t}))}},this.simWorldUpdatePeriodMs)}},{key:\"updateMapIndex\",value:function(e){var t=new Date,n=t-this.mapLastUpdateTimestamp;e.mapHash&&n>=this.mapUpdatePeriodMs&&(m.default.updateMapIndex(e.mapHash,e.mapElementIds,e.mapRadius),this.mapLastUpdateTimestamp=t)}},{key:\"checkMessage\",value:function(e){var t=(new Date).getTime(),n=t-this.simWorldLastUpdateTimestamp;0!==this.simWorldLastUpdateTimestamp&&n>200&&console.warn(\"Last sim_world_update took \"+n+\"ms\"),this.secondLastSeqNum===e.sequenceNum&&console.warn(\"Received duplicate simulation_world:\",this.lastSeqNum),this.secondLastSeqNum=this.lastSeqNum,this.lastSeqNum=e.sequenceNum,this.simWorldLastUpdateTimestamp=t}},{key:\"requestMapElementIdsByRadius\",value:function(e){this.websocket.send((0,s.default)({type:\"RetrieveMapElementIdsByRadius\",radius:e}))}},{key:\"requestRoute\",value:function(e,t,n,i,r){var o={type:\"SendRoutingRequest\",start:e,end:i,waypoint:n};r&&(o.parkingSpaceId=r),t&&(o.start.heading=t),this.websocket.send((0,s.default)(o))}},{key:\"requestDefaultRoutingEndPoint\",value:function(){this.websocket.send((0,s.default)({type:\"GetDefaultEndPoint\"}))}},{key:\"resetBackend\",value:function(){this.websocket.send((0,s.default)({type:\"Reset\"}))}},{key:\"dumpMessages\",value:function(){this.websocket.send((0,s.default)({type:\"Dump\"}))}},{key:\"changeSetupMode\",value:function(e){this.websocket.send((0,s.default)({type:\"HMIAction\",action:\"CHANGE_MODE\",value:e}))}},{key:\"changeMap\",value:function(e){this.websocket.send((0,s.default)({type:\"HMIAction\",action:\"CHANGE_MAP\",value:e})),this.updatePOI=!0}},{key:\"changeVehicle\",value:function(e){this.websocket.send((0,s.default)({type:\"HMIAction\",action:\"CHANGE_VEHICLE\",value:e}))}},{key:\"executeModeCommand\",value:function(e){if(![\"SETUP_MODE\",\"RESET_MODE\",\"ENTER_AUTO_MODE\"].includes(e))return void console.error(\"Unknown mode command found:\",e);this.websocket.send((0,s.default)({type:\"HMIAction\",action:e}))}},{key:\"executeModuleCommand\",value:function(e,t){if(![\"START_MODULE\",\"STOP_MODULE\"].includes(t))return void console.error(\"Unknown module command found:\",t);this.websocket.send((0,s.default)({type:\"HMIAction\",action:t,value:e}))}},{key:\"submitDriveEvent\",value:function(e,t,n){this.websocket.send((0,s.default)({type:\"SubmitDriveEvent\",event_time_ms:e,event_msg:t,event_type:n}))}},{key:\"sendAudioPiece\",value:function(e){this.websocket.send((0,s.default)({type:\"HMIAction\",action:\"RECORD_AUDIO\",value:btoa(String.fromCharCode.apply(String,(0,o.default)(e)))}))}},{key:\"toggleSimControl\",value:function(e){this.websocket.send((0,s.default)({type:\"ToggleSimControl\",enable:e}))}},{key:\"requestRoutePath\",value:function(){this.websocket.send((0,s.default)({type:\"RequestRoutePath\"}))}},{key:\"publishNavigationInfo\",value:function(e){this.websocket.send(e)}}]),e}();t.default=w},function(e,t,n){\"use strict\";function i(){return l[u++%l.length]}function r(e,t){return!(!e||!t)&&(e.x===t.x&&e.y===t.y)}function o(e){var t={};for(var n in e){var r=e[n];try{t[n]=JSON.parse(r)}catch(e){console.error(\"Failed to parse chart property \"+n+\":\"+r+\".\",\"Set its value without parsing.\"),t[n]=r}}return t.color||(t.color=i()),t}function a(e,t,n){var i={},a={};return e&&(i.lines={},a.lines={},e.forEach(function(e){var t=e.label;a.lines[t]=o(e.properties),i.lines[t]=e.point})),t&&(i.polygons={},a.polygons={},t.forEach(function(e){var t=e.point.length;if(0!==t){var n=e.label;i.polygons[n]=e.point,r(e.point[0],e.point[t-1])||i.polygons[n].push(e.point[0]),e.properties&&(a.polygons[n]=o(e.properties))}})),n&&(i.cars={},a.cars={},n.forEach(function(e){var t=e.label;a.cars[t]={color:e.color},i.cars[t]={x:e.x,y:e.y,heading:e.heading}})),{data:i,properties:a}}function s(e){var t=\"boolean\"!=typeof e.options.legendDisplay||e.options.legendDisplay,n={legend:{display:t},axes:{x:e.options.x,y:e.options.y}},i=a(e.line,e.polygon,e.car),r=i.properties,o=i.data;return{title:e.title,options:n,properties:r,data:o}}Object.defineProperty(t,\"__esModule\",{value:!0});var l=[\"rgba(241, 113, 112, 0.5)\",\"rgba(254, 208, 114, 0.5)\",\"rgba(162, 212, 113, 0.5)\",\"rgba(113, 226, 208, 0.5)\",\"rgba(113, 208, 255, 0.5)\",\"rgba(179, 164, 238, 0.5)\"],u=0;t.parseChartDataFromProtoBuf=s},function(e,t,n){t=e.exports=n(123)(!1),t.push([e.i,\".modal-background{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.5);z-index:1000}.modal-content{position:fixed;top:35%;left:50%;width:300px;height:130px;transform:translate(-50%,-50%);text-align:center;background-color:rgba(0,0,0,.8);box-shadow:0 0 10px 0 rgba(0,0,0,.75);z-index:1001}.modal-content header{background:#217cba;display:flex;align-items:center;justify-content:space-between;padding:0 2rem;min-height:50px}.modal-content .modal-dialog{position:absolute;top:0;right:0;bottom:50px;left:0;padding:5px}.modal-content .ok-button{position:absolute;bottom:0;transform:translate(-50%,-50%);padding:7px 25px;border:none;background:#006aff;color:#fff;cursor:pointer}.modal-content .ok-button:hover{background:#49a9ee}\",\"\"])},function(e,t,n){t=e.exports=n(123)(!1),t.push([e.i,'body{margin:0;overflow:hidden;background-color:#14171a!important;font:14px Lucida Grande,Helvetica,Arial,sans-serif;color:#fff}body *{font-size:16px}@media (max-height:800px),(max-width:1280px){body *{font-size:14px}}::-webkit-scrollbar{width:4px;height:8px;opacity:.3;background-color:#fff}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);background-color:#555}::-webkit-scrollbar-thumb{opacity:.8;background-color:#30a5ff}::-webkit-scrollbar-thumb:active{background-color:#30a5ff}.header{display:flex;align-items:center;z-index:100;position:relative;top:0;left:0;height:60px;background:#000;color:#fff;text-align:left}@media (max-height:800px),(max-width:1280px){.header{height:55px}}.header .apollo-logo{flex:0 0 auto;top:40px;left:40px;height:40px;width:121px;margin:10px auto 5px 18px}@media (max-height:800px),(max-width:1280px){.header .apollo-logo{top:15px;left:25px;height:25px;width:80px;margin-top:5px}}.header .header-item{flex:0 0 auto;position:relative;margin:5px;border:1px solid #383838}.header .selector select{display:block;border:none;padding:.5em 3em .5em .5em;background:#000;color:#fff;outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.header .selector .arrow{position:absolute;top:0;right:0;width:30px;height:100%;border-left:1px solid #383838;background:#181818;pointer-events:none}.header .selector .arrow:before{position:absolute;top:55%;right:7px;margin-top:-5px;border-top:8px solid #666;border-left:8px solid transparent;border-right:8px solid transparent;content:\"\";pointer-events:none}.header .header-button{min-width:125px;padding:.5em 0;background:#181818;color:#fff;text-align:center}@media (max-height:800px),(max-width:1280px){.header .header-button{min-width:110px}}.header .header-button-active{color:#30a5ff}.pane-container{position:absolute;width:100%;height:calc(100% - 60px)}@media (max-height:800px),(max-width:1280px){.pane-container{height:calc(100% - 55px)}}.pane-container .left-pane{display:flex;flex-flow:row nowrap;align-items:stretch;position:absolute;bottom:0;top:0;width:100%}.pane-container .left-pane .dreamview-body{display:flex;flex-flow:column nowrap;flex:1 1 auto;overflow:hidden}.pane-container .left-pane .dreamview-body .main-view{flex:0 0 auto;position:relative;min-width:600px}.pane-container .right-pane{position:absolute;right:0;width:100%;height:100%;overflow:hidden}.pane-container .right-pane ::-webkit-scrollbar{width:6px}.pane-container .right-pane .react-tabs__tab-list{display:table;width:100%;margin:0;border-bottom:1px solid #000;padding:0}.pane-container .right-pane .react-tabs__tab{display:table-cell;position:relative;border:1px solid transparent;border-bottom:none;padding:6px 12px;background:#1d2226;color:#999;list-style:none;cursor:pointer}.pane-container .right-pane .react-tabs__tab--selected{background:#2a3238;color:#fff}.pane-container .right-pane .react-tabs__tab span{color:#fff}.pane-container .right-pane .react-tabs__tab-panel{display:none}.pane-container .right-pane .react-tabs__tab-panel--selected{display:block}.pane-container .right-pane .pnc-monitor{height:100%;border:1px solid #000;box-sizing:border-box;background-color:#1d2226;overflow:auto}.pane-container .right-pane .pnc-monitor .scatter-graph{margin:0;border:1px #000;border-style:solid none}.pane-container .right-pane .pnc-monitor .scenario-history-container{padding:10px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400}.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-title{margin:5px;border-bottom:1px solid hsla(0,0%,60%,.5);padding-bottom:5px;font-size:12px;font-weight:600;text-align:center}.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-table,.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-table .scenario-history-item{position:relative;width:100%}.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-table .scenario-history-item .text{position:relative;width:30%;padding:2px 4px;color:#999;font-size:12px}.pane-container .right-pane .pnc-monitor .scenario-history-container .scenario-history-table .scenario-history-item .time{text-align:center}.pane-container .SplitPane .Resizer{background:#000;opacity:.2;z-index:1;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}.pane-container .SplitPane .Resizer:hover{-webkit-transition:all 2s ease;transition:all 2s ease}.pane-container .SplitPane .Resizer.vertical{width:11px;margin:0 -5px;border-left:5px solid hsla(0,0%,100%,0);border-right:5px solid hsla(0,0%,100%,0);cursor:col-resize}.pane-container .SplitPane .Resizer.vertical:hover{border-left:5px solid rgba(0,0,0,.5);border-right:5px solid rgba(0,0,0,.5)}.pane-container .SplitPane .Resizer.disabled{cursor:auto}.pane-container .SplitPane .Resizer.disabled:hover{border-color:transparent}.offlineview{display:flex;flex-flow:column nowrap;position:absolute;width:100%;height:100%}.offlineview .main-view{flex:0 0 auto;position:relative}.dreamview-canvas{z-index:1;position:absolute}.dreamview-canvas .geolocation{z-index:10;position:absolute;bottom:10px;right:10px;color:#fff}.hidden{display:none}.tools{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;margin-top:3px;overflow:hidden}.tools .card{flex:1 1 auto;border-right:3px solid #000;padding:15px 10px 25px 20px;background:#1d2226}@media (max-height:800px),(max-width:1280px){.tools .card{padding:15px 5px 15px 15px}}.tools .card .card-header{width:100%;padding-bottom:15px}.tools .card .card-header span{width:200px;border-bottom:1px solid #999;padding:10px 10px 10px 0;font-size:18px}@media (max-height:800px),(max-width:1280px){.tools .card .card-header span{font-size:16px}}.tools .card .card-content-row{display:flex;flex-flow:row wrap;align-content:flex-start;overflow-x:hidden;overflow-y:auto;height:85%}.tools .card .card-content-column{display:flex;flex-flow:column nowrap;overflow-x:hidden;overflow-y:auto;height:89%}.tools ul{flex:0 0 auto;margin:0 2px 0 0;padding-left:0;padding-right:5px;background-color:#1d2226;color:#999;list-style:none;cursor:pointer}.tools ul li{line-height:40px}.tools ul li span{padding-left:20px}.tools ul li:hover{color:#fff;background-color:#2a3238}.tools .switch{display:inline-block;position:relative;width:40px;transform:translate(35%,25%)}.tools .switch .toggle-switch{display:none}.tools .switch .toggle-switch-label{display:block;overflow:hidden;cursor:pointer;height:20px;padding:0;line-height:20px;border:0;background-color:#3f4548;transition:background-color .2s ease-in}.tools .switch .toggle-switch-label:before{content:\"\";display:block;width:16px;margin:2px;background:#a0a0a0;position:absolute;top:0;bottom:0;right:20px;transition:all .2s ease-in}.tools .switch .toggle-switch:checked+.toggle-switch-label{background-color:#0e3d62}.tools .switch .toggle-switch:checked+.toggle-switch-label,.tools .switch .toggle-switch:checked+.toggle-switch-label:before{border-color:#0e3d62}.tools .switch .toggle-switch:checked+.toggle-switch-label:before{right:0;background-color:#30a5ff}.tools .switch .toggle-switch:disabled+.toggle-switch-label,.tools .switch .toggle-switch:disabled+.toggle-switch-label:before{cursor:not-allowed}.tools .tool-view-menu{display:flex;flex-flow:row nowrap;align-items:stretch;flex:2 1 auto;z-index:10!important;margin-right:3px;overflow-y:hidden;overflow-x:auto;background:#1d2226;color:#fff;text-align:left;white-space:nowrap}.tools .tool-view-menu .summary{line-height:50px}@media (max-height:800px),(max-width:1280px){.tools .tool-view-menu .summary{line-height:25px}}.tools .tool-view-menu .summary img{position:relative;width:30px;height:30px;transform:translate(-30%,25%)}@media (max-height:800px),(max-width:1280px){.tools .tool-view-menu .summary img{width:20px;height:20px;transform:translate(-50%,10%)}}.tools .tool-view-menu .summary span{padding-left:10px}.tools .tool-view-menu input[type=radio]{display:none}.tools .tool-view-menu .radio-selector-label{display:inline-block;position:relative;transform:translate(65%,30%);box-sizing:border-box;-webkit-box-sizing:border-box;width:25px;height:25px;margin-right:6px;border-radius:50%;-webkit-border-radius:50%;background-color:#a0a0a0;box-shadow:inset 1px 0 #a0a0a0;border:7px solid #3f4548}.tools .tool-view-menu input[type=radio]:checked+.radio-selector-label{border:7px solid #0e3d62;background-color:#30a5ff}.tools .console{z-index:10;position:relative;min-width:230px;margin:0;border:none;padding:0;overflow:hidden}.tools .console .monitor-item{display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default}.tools .console .monitor-item .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px),(max-width:1280px){.tools .console .monitor-item .icon{height:15px;width:15px}}.tools .console .monitor-item .text{position:relative;width:calc(100% - 80px);padding-left:5px;line-height:150%;font-size:12px;word-wrap:break-word}.tools .console .monitor-item .time{position:absolute;right:5px;font-size:12px}.tools .console .monitor-item .alert{color:#d7466f}.tools .console .monitor-item .warn{color:#a3842d}.tools .poi-button{min-width:310px}@media (max-height:800px),(max-width:1280px){.tools .poi-button{min-width:280px}}.side-bar{display:flex;flex-direction:column;flex:0 0 auto;z-index:100;background:#1d2226;border-right:3px solid #000;overflow-y:auto;overflow-x:hidden}.side-bar .main-panel{margin-bottom:auto}.side-bar .button{display:block;width:90px;border:none;padding:20px 10px;text-align:center;background:#1d2226;color:#fff;opacity:.6;cursor:pointer}@media (max-height:800px),(max-width:1280px){.side-bar .button{width:80px;padding-top:10px}}.side-bar .button .icon{width:40px;height:40px;margin:auto}@media (max-height:800px),(max-width:1280px){.side-bar .button .icon{width:30px;height:30px}}.side-bar .button .label{padding-top:10px}@media (max-height:800px),(max-width:1280px){.side-bar .button .label{padding-top:4px}}.side-bar .button:first-child{padding-top:25px}@media (max-height:800px),(max-width:1280px){.side-bar .button:first-child{padding-top:10px}}.side-bar .button:disabled{color:#414141;cursor:not-allowed}.side-bar .button:disabled .icon{opacity:.2}.side-bar .button-active{background:#2a3238;opacity:1;color:#fff}.side-bar .sub-button{display:block;width:90px;height:80px;border:none;padding:10px;text-align:center;background:#3e4041;color:#999;cursor:pointer}@media (max-height:800px),(max-width:1280px){.side-bar .sub-button{width:80px;height:60px}}.side-bar .sub-button:not(:last-child){border-bottom:1px solid #1d2226}.side-bar .sub-button:disabled{cursor:not-allowed;opacity:.3}.side-bar .sub-button-active{background:#30a5ff;color:#fff}.status-bar{z-index:10;position:absolute;top:0;left:0;width:100%}.status-bar .auto-meter{position:absolute;width:224px;height:112px;top:10px;right:20px;background:rgba(0,0,0,.8)}.status-bar .auto-meter .speed-read{position:absolute;top:27px;left:15px;font-family:Arial;font-weight:lighter;font-size:35px;color:#fff}.status-bar .auto-meter .speed-unit{position:absolute;top:66px;left:17px;color:#fff;font-size:15px}.status-bar .auto-meter .brake-panel{position:absolute;top:21px;right:2px}.status-bar .auto-meter .throttle-panel{position:absolute;top:61px;right:2px}.status-bar .auto-meter .meter-container .meter-label{font-size:13px;color:#fff}.status-bar .auto-meter .meter-container .meter-head{display:inline-block;position:absolute;margin:5px 0 0;border-width:4px;border-style:solid}.status-bar .auto-meter .meter-container .meter-background{position:relative;display:block;height:2px;width:120px;margin:8px}.status-bar .auto-meter .meter-container .meter-background span{position:relative;overflow:hidden;display:block;height:100%}.status-bar .wheel-panel{display:flex;flex-direction:row;justify-content:left;align-items:center;position:absolute;top:128px;right:20px;width:187px;height:92px;padding:10px 22px 10px 15px;background:rgba(0,0,0,.8)}.status-bar .wheel-panel .steerangle-read{font-family:Arial;font-weight:lighter;font-size:35px;color:#fff}.status-bar .wheel-panel .steerangle-unit{padding:20px 10px 0 3px;color:#fff;font-size:13px}.status-bar .wheel-panel .left-arrow{position:absolute;top:45px;right:115px;width:0;height:0;border-style:solid;border-width:12px 15px 12px 0;border-color:transparent}.status-bar .wheel-panel .right-arrow{position:absolute;top:45px;right:15px;width:0;height:0;border-style:solid;border-width:12px 0 12px 15px;border-color:transparent transparent transparent #30435e}.status-bar .wheel-panel .wheel{position:absolute;top:15px;right:33px}.status-bar .wheel-panel .wheel-background{stroke-width:3px;stroke:#006aff}.status-bar .wheel-panel .wheel-arm{stroke-width:3px;stroke:#006aff;fill:#006aff}.status-bar .traffic-light-and-driving-mode{position:absolute;top:246px;right:20px;width:224px;height:35px;font-size:14px}.status-bar .traffic-light-and-driving-mode .traffic-light{position:absolute;width:116px;height:35px;background:rgba(0,0,0,.8)}.status-bar .traffic-light-and-driving-mode .traffic-light .symbol{position:relative;top:4px;left:4px;width:28px;height:28px}.status-bar .traffic-light-and-driving-mode .traffic-light .text{position:absolute;top:10px;right:8px;font-size:14px;color:#fff}.status-bar .traffic-light-and-driving-mode .driving-mode{position:absolute;top:0;right:0;width:105px;height:35px}.status-bar .traffic-light-and-driving-mode .driving-mode .text{position:absolute;top:50%;left:50%;float:right;transform:translate(-50%,-50%);text-align:center;font-size:14px}.status-bar .traffic-light-and-driving-mode .auto-mode{background:linear-gradient(90deg,rgba(17,30,48,.8),rgba(7,42,94,.8));border-right:1px solid #006aff;color:#006aff}.status-bar .traffic-light-and-driving-mode .manual-mode{background:linear-gradient(90deg,rgba(30,17,17,.8),rgba(71,36,36,.8));color:#b43131;border-right:1px solid #b43131}.status-bar .notification-warn{position:absolute;top:10px;right:260px;width:260px;display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default;border:1px solid #a3842d;background-color:rgba(52,39,5,.3)}.status-bar .notification-warn .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px),(max-width:1280px){.status-bar .notification-warn .icon{height:15px;width:15px}}.status-bar .notification-warn .text{position:relative;width:calc(100% - 17px);padding-left:5px;line-height:150%;font-size:12px;word-wrap:break-word}.status-bar .notification-warn .time{position:absolute;right:5px;font-size:12px}.status-bar .notification-warn .alert{color:#d7466f}.status-bar .notification-warn .warn{color:#a3842d}.status-bar .notification-alert{position:absolute;top:10px;right:260px;width:260px;display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default;border:1px solid #d7466f;background-color:rgba(74,5,24,.3)}.status-bar .notification-alert .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px),(max-width:1280px){.status-bar .notification-alert .icon{height:15px;width:15px}}.status-bar .notification-alert .text{position:relative;width:calc(100% - 17px);padding-left:5px;line-height:150%;font-size:12px;word-wrap:break-word}.status-bar .notification-alert .time{position:absolute;right:5px;font-size:12px}.status-bar .notification-alert .alert{color:#d7466f}.status-bar .notification-alert .warn{color:#a3842d}.tasks{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;z-index:10;margin-right:3px;overflow-x:auto;overflow-y:hidden}.tasks .command-group{display:flex;flex-flow:row nowrap;justify-content:flex-start;flex:1 1 0;min-height:45px;min-width:130px}.tasks .command-group .name{width:40px;padding:15px}.tasks .start-auto-command{flex:2 2 0}.tasks .start-auto-command .start-auto-button{max-height:unset}.tasks .others{min-width:200px;max-width:280px}@media (max-height:800px),(max-width:1280px){.tasks .others{min-width:180px;max-width:260px}}.tasks .delay{min-width:265px;line-height:26px}.tasks .delay .delay-item{position:relative;margin:0 10px}.tasks .delay .delay-item .name{display:inline-block;min-width:140px;color:#1c9063}.tasks .delay .delay-item .value{display:inline-block;position:absolute;right:0;min-width:70px;text-align:right}.tasks .delay .delay-item .warning{color:#b43131}.tasks .camera{min-width:265px}.tasks button{flex:1 1 0;margin:5px;border:0;min-width:75px;min-height:40px;max-height:60px;color:#999;border-bottom:2px solid #1c9063;background:linear-gradient(#000,#111f1d);outline:none;cursor:pointer}.tasks button:hover{color:#fff;background:#151e1b}.tasks button:active{background:rgba(35,51,45,.6)}.tasks button:disabled{color:#999;border-color:#555;background:linear-gradient(rgba(0,0,0,.8),rgba(9,17,16,.8));cursor:not-allowed}.tasks .disabled{cursor:not-allowed}.module-controller{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;z-index:10;margin-right:3px;overflow:hidden}.module-controller .controller{min-width:180px}.module-controller .modules-container{flex-flow:column wrap}.module-controller .status-display{display:flex;flex-wrap:nowrap;justify-content:space-around;min-width:250px;padding:5px 20px 5px 5px}.module-controller .status-display:hover{background:#2a3238}.module-controller .status-display .name{padding:10px;min-width:80px}.module-controller .status-display .status{position:relative;width:130px;padding:10px;background:#000;white-space:nowrap}.module-controller .status-display .status .status-icon{position:absolute;right:10px;width:15px;height:15px;background-color:#b43131}.route-editing-bar{z-index:10;position:absolute;top:0;left:0;right:0;min-height:90px;border-bottom:3px solid #000;padding-left:10px;background:#1d2226}@media (max-height:800px),(max-width:1280px){.route-editing-bar{min-height:60px}}.route-editing-bar .editing-panel{display:flex;justify-content:center;align-items:center;overflow:hidden;white-space:nowrap}.route-editing-bar .editing-panel .button{height:90px;border:none;padding:10px 15px;background:#1d2226;outline:none;color:#999}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .button{height:60px;padding:5px 10px}}.route-editing-bar .editing-panel .button img{display:block;top:23px;margin:15px auto}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .button img{top:13px;margin:7px auto}}.route-editing-bar .editing-panel .button span{font-family:PingFangSC-Light;color:#d8d8d8;text-align:center}.route-editing-bar .editing-panel .button:hover{background:#2a3238}.route-editing-bar .editing-panel .active{color:#fff;background:#2a3238}.route-editing-bar .editing-panel .editing-tip{height:90px;width:90px;margin-left:auto;border:none;color:#d8d8d8}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .editing-tip{height:60px;width:60px}}.route-editing-bar .editing-panel .editing-tip p{position:absolute;top:120%;right:15px;width:400px;border-radius:3px;padding:20px;background-color:#fff;color:#999;text-align:left;white-space:pre-wrap}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .editing-tip p{right:5px}}.route-editing-bar .editing-panel .editing-tip p:before{position:absolute;top:-20px;right:13px;content:\"\";border-style:solid;border-width:0 20px 20px;border-color:transparent transparent #fff}@-moz-document url-prefix(){.route-editing-bar .editing-panel .editing-tip p:before{top:-38px}}@media (max-height:800px),(max-width:1280px){.route-editing-bar .editing-panel .editing-tip p:before{right:8px}}.data-recorder table{width:100%;height:100%;min-width:550px}.data-recorder table td,.data-recorder table tr{border:2px solid #1d2226}.data-recorder table td:first-child{width:100px;border:none;box-sizing:border-box;white-space:nowrap}@media (max-height:800px),(max-width:1280px){.data-recorder table td:first-child{width:60px}}.data-recorder table .drive-event-time-row span{position:relative;padding:10px 5px 10px 10px;background:#101315;white-space:nowrap}.data-recorder table .drive-event-time-row span .timestamp-button{position:relative;top:0;right:0;padding:5px 20px;border:5px solid #101315;margin-left:10px;background:#006aff;color:#fff}.data-recorder table .drive-event-time-row span .timestamp-button:hover{background:#49a9ee}.data-recorder table .drive-event-msg-row{width:70%;height:70%}.data-recorder table .drive-event-msg-row textarea{height:100%;width:100%;max-width:500px;color:#fff;border:1px solid #383838;background:#101315;resize:none}.data-recorder table .cancel-button,.data-recorder table .drive-event-type-button,.data-recorder table .submit-button,.data-recorder table .submit-button:active{margin-right:5px;padding:10px 35px;border:none;background:#1d2226;color:#fff;cursor:pointer}.data-recorder table .drive-event-type-button{background:#181818;padding:10px 25px}.data-recorder table .drive-event-type-button-active{color:#30a5ff}.data-recorder table .submit-button{background:#000}.data-recorder table .submit-button:active{background:#383838}.loader{flex:0 0 auto;position:relative;width:100%;height:100%;background-color:#000c17}.loader .img-container{position:relative;top:55%;left:50%;width:40%;transform:translate(-50%,-50%)}.loader .img-container img{width:100%;height:auto}.loader .img-container .status-message{margin-top:10px;font-size:18px;font-size:1.7vw;color:#fff;text-align:center;animation-name:flash;animation-duration:2s;animation-timing-function:linear;animation-iteration-count:infinite;animation-direction:alternate;animation-play-state:running}@keyframes flash{0%{color:#fff}to{color:#000c17}}.loader .offline-loader{width:60%;max-width:650px}.loader .offline-loader .status-message{position:relative;top:-70px;top:-4.5vw;font-size:3vw}.loader .offline-loader .error-message{position:relative;top:-2vw;font-size:1.5vw;color:#b43131;white-space:nowrap;text-align:center}.camera-video{text-align:center}.camera-video img{width:auto;height:auto;max-width:100%;max-height:100%}.dashcam-player{z-index:1;position:absolute;top:0;left:0;color:#fff}.dashcam-player video{max-width:380px;max-height:300px}@media (max-height:800px),(max-width:1280px){.dashcam-player video{max-width:300px;max-height:200px}}.dashcam-player .controls{display:flex;justify-content:flex-end;z-index:10;position:absolute;right:0}.dashcam-player .controls button{width:27px;height:27px;border:none;background-color:#000;opacity:.6;color:#fff}.dashcam-player .controls button img{width:15px}.dashcam-player .controls button:hover{opacity:.9}.dashcam-player .controls .close{font-size:20px}.dashcam-player .controls .syncup{padding-top:.5em}.navigation-view{z-index:20;position:relative}.navigation-view #map_canvas{width:100%;height:100%;background:rgba(0,0,0,.8)}.navigation-view .window-resize-control{position:absolute;bottom:0;right:0;width:30px;height:30px}',\"\"])},function(e,t,n){t=e.exports=n(123)(!1),t.push([e.i,'.playback-controls{z-index:100;position:absolute;width:100%;height:40px;bottom:0;background:#1d2226;font-size:16px;min-width:550px}@media (max-height:800px),(max-width:1280px){.playback-controls{font-size:14px}}.playback-controls .icon{display:inline-block;width:20px;height:20px;padding:10px;cursor:pointer}.playback-controls .icon .play{stroke-linejoin:round;stroke-width:1.5px;stroke:#006aff;fill:#1d2226}.playback-controls .icon .pause,.playback-controls .icon .replay{stroke-linejoin:round;stroke-width:1.5px;stroke:#006aff;fill:#006aff}.playback-controls .icon .replay{top:2px}.playback-controls .icon .exit-fullscreen,.playback-controls .icon .fullscreen{stroke-linejoin:round;stroke-width:10px;stroke:#006aff;fill:#1d2226}.playback-controls .left-controls{display:inline-block;float:left}.playback-controls .right-controls{display:inline-block;float:right}.playback-controls .rate-selector{position:absolute;left:40px}.playback-controls .rate-selector select{display:block;border:none;padding:11px 23px 0 5px;color:#fff;background:#1d2226;outline:none;cursor:pointer;font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.playback-controls .rate-selector .arrow{position:absolute;top:5px;right:0;width:10px;height:100%;pointer-events:none}.playback-controls .rate-selector .arrow:before{position:absolute;top:16px;right:1px;margin-top:-5px;border-top:8px solid #666;border-left:8px solid transparent;border-right:8px solid transparent;content:\"\";pointer-events:none}.playback-controls .time-controls{position:absolute;min-width:300px;height:100%;left:125px;right:50px}.playback-controls .time-controls .rangeslider{position:absolute;top:7px;left:10px;right:115px;margin:10px 0;height:7px;border-radius:10px;background:#2d3b50;-ms-touch-action:none;touch-action:none}.playback-controls .time-controls .rangeslider .rangeslider__fill{display:block;height:100%;border-radius:10px;background-color:#006aff;background:#006aff}.playback-controls .time-controls .rangeslider .rangeslider__handle{display:inline-block;position:absolute;height:16px;width:16px;top:50%;transform:translate3d(-50%,-50%,0);border:1px solid #006aff;border-radius:100%;background:#006aff;cursor:pointer;box-shadow:none}.playback-controls .time-controls .time-display{position:absolute;top:12px;right:0;color:#fff}',\"\"])},function(e,t){e.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},function(e,t,n){\"use strict\";var i=t;i.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&\"=\"===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var r=new Array(64),o=new Array(123),a=0;a<64;)o[r[a]=a<26?a+65:a<52?a+71:a<62?a-4:a-59|43]=a++;i.encode=function(e,t,n){for(var i,o=null,a=[],s=0,l=0;t>2],i=(3&u)<<4,l=1;break;case 1:a[s++]=r[i|u>>4],i=(15&u)<<2,l=2;break;case 2:a[s++]=r[i|u>>6],a[s++]=r[63&u],l=0}s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,a)),s=0)}return l&&(a[s++]=r[i],a[s++]=61,1===l&&(a[s++]=61)),o?(s&&o.push(String.fromCharCode.apply(String,a.slice(0,s))),o.join(\"\")):String.fromCharCode.apply(String,a.slice(0,s))};i.decode=function(e,t,n){for(var i,r=n,a=0,s=0;s1)break;if(void 0===(l=o[l]))throw Error(\"invalid encoding\");switch(a){case 0:i=l,a=1;break;case 1:t[n++]=i<<2|(48&l)>>4,i=l,a=2;break;case 2:t[n++]=(15&i)<<4|(60&l)>>2,i=l,a=3;break;case 3:t[n++]=(3&i)<<6|l,a=0}}if(1===a)throw Error(\"invalid encoding\");return n-r},i.test=function(e){return/^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$/.test(e)}},function(e,t,n){\"use strict\";function i(e,t){function n(e){if(\"string\"!=typeof e){var t=r();if(i.verbose&&console.log(\"codegen: \"+t),t=\"return \"+t,e){for(var a=Object.keys(e),s=new Array(a.length+1),l=new Array(a.length),u=0;u0?0:2147483648,n,i);else if(isNaN(t))e(2143289344,n,i);else if(t>3.4028234663852886e38)e((r<<31|2139095040)>>>0,n,i);else if(t<1.1754943508222875e-38)e((r<<31|Math.round(t/1.401298464324817e-45))>>>0,n,i);else{var o=Math.floor(Math.log(t)/Math.LN2),a=8388607&Math.round(t*Math.pow(2,-o)*8388608);e((r<<31|o+127<<23|a)>>>0,n,i)}}function n(e,t,n){var i=e(t,n),r=2*(i>>31)+1,o=i>>>23&255,a=8388607&i;return 255===o?a?NaN:r*(1/0):0===o?1.401298464324817e-45*r*a:r*Math.pow(2,o-150)*(a+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,o),e.readFloatLE=n.bind(null,a),e.readFloatBE=n.bind(null,s)}(),\"undefined\"!=typeof Float64Array?function(){function t(e,t,n){o[0]=e,t[n]=a[0],t[n+1]=a[1],t[n+2]=a[2],t[n+3]=a[3],t[n+4]=a[4],t[n+5]=a[5],t[n+6]=a[6],t[n+7]=a[7]}function n(e,t,n){o[0]=e,t[n]=a[7],t[n+1]=a[6],t[n+2]=a[5],t[n+3]=a[4],t[n+4]=a[3],t[n+5]=a[2],t[n+6]=a[1],t[n+7]=a[0]}function i(e,t){return a[0]=e[t],a[1]=e[t+1],a[2]=e[t+2],a[3]=e[t+3],a[4]=e[t+4],a[5]=e[t+5],a[6]=e[t+6],a[7]=e[t+7],o[0]}function r(e,t){return a[7]=e[t],a[6]=e[t+1],a[5]=e[t+2],a[4]=e[t+3],a[3]=e[t+4],a[2]=e[t+5],a[1]=e[t+6],a[0]=e[t+7],o[0]}var o=new Float64Array([-0]),a=new Uint8Array(o.buffer),s=128===a[7];e.writeDoubleLE=s?t:n,e.writeDoubleBE=s?n:t,e.readDoubleLE=s?i:r,e.readDoubleBE=s?r:i}():function(){function t(e,t,n,i,r,o){var a=i<0?1:0;if(a&&(i=-i),0===i)e(0,r,o+t),e(1/i>0?0:2147483648,r,o+n);else if(isNaN(i))e(0,r,o+t),e(2146959360,r,o+n);else if(i>1.7976931348623157e308)e(0,r,o+t),e((a<<31|2146435072)>>>0,r,o+n);else{var s;if(i<2.2250738585072014e-308)s=i/5e-324,e(s>>>0,r,o+t),e((a<<31|s/4294967296)>>>0,r,o+n);else{var l=Math.floor(Math.log(i)/Math.LN2);1024===l&&(l=1023),s=i*Math.pow(2,-l),e(4503599627370496*s>>>0,r,o+t),e((a<<31|l+1023<<20|1048576*s&1048575)>>>0,r,o+n)}}}function n(e,t,n,i,r){var o=e(i,r+t),a=e(i,r+n),s=2*(a>>31)+1,l=a>>>20&2047,u=4294967296*(1048575&a)+o;return 2047===l?u?NaN:s*(1/0):0===l?5e-324*s*u:s*Math.pow(2,l-1075)*(u+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,o,4,0),e.readDoubleLE=n.bind(null,a,0,4),e.readDoubleBE=n.bind(null,s,4,0)}(),e}function r(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function o(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function a(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function s(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=i(i)},function(e,t,n){\"use strict\";var i=t,r=i.isAbsolute=function(e){return/^(?:\\/|\\w+:)/.test(e)},o=i.normalize=function(e){e=e.replace(/\\\\/g,\"/\").replace(/\\/{2,}/g,\"/\");var t=e.split(\"/\"),n=r(e),i=\"\";n&&(i=t.shift()+\"/\");for(var o=0;o0&&\"..\"!==t[o-1]?t.splice(--o,2):n?t.splice(o,1):++o:\".\"===t[o]?t.splice(o,1):++o;return i+t.join(\"/\")};i.resolve=function(e,t,n){return n||(t=o(t)),r(t)?t:(n||(e=o(e)),(e=e.replace(/(?:\\/|^)[^\\/]+$/,\"\")).length?o(e+\"/\"+t):t)}},function(e,t,n){\"use strict\";function i(e,t,n){var i=n||8192,r=i>>>1,o=null,a=i;return function(n){if(n<1||n>r)return e(n);a+n>i&&(o=e(i),a=0);var s=t.call(o,a,a+=n);return 7&a&&(a=1+(7|a)),s}}e.exports=i},function(e,t,n){\"use strict\";var i=t;i.length=function(e){for(var t=0,n=0,i=0;i191&&i<224?o[a++]=(31&i)<<6|63&e[t++]:i>239&&i<365?(i=((7&i)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[a++]=55296+(i>>10),o[a++]=56320+(1023&i)):o[a++]=(15&i)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,o)),a=0);return r?(a&&r.push(String.fromCharCode.apply(String,o.slice(0,a))),r.join(\"\")):String.fromCharCode.apply(String,o.slice(0,a))},i.write=function(e,t,n){for(var i,r,o=n,a=0;a>6|192,t[n++]=63&i|128):55296==(64512&i)&&56320==(64512&(r=e.charCodeAt(a+1)))?(i=65536+((1023&i)<<10)+(1023&r),++a,t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128);return n-o}},function(e,t,n){e.exports={default:n(370),__esModule:!0}},function(e,t,n){e.exports={default:n(372),__esModule:!0}},function(e,t,n){e.exports={default:n(374),__esModule:!0}},function(e,t,n){e.exports={default:n(379),__esModule:!0}},function(e,t,n){e.exports={default:n(380),__esModule:!0}},function(e,t,n){e.exports={default:n(381),__esModule:!0}},function(e,t,n){e.exports={default:n(383),__esModule:!0}},function(e,t,n){e.exports={default:n(384),__esModule:!0}},function(e,t,n){\"use strict\";t.__esModule=!0;var i=n(79),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r.default||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}},function(e,t,n){\"use strict\";function i(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 r(e){var t=i(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function o(e,t,n){return 3*(t+n)/4-n}function a(e){for(var t,n=i(e),r=n[0],a=n[1],s=new h(o(e,r,a)),l=0,u=a>0?r-4:r,c=0;c>16&255,s[l++]=t>>8&255,s[l++]=255&t;return 2===a&&(t=d[e.charCodeAt(c)]<<2|d[e.charCodeAt(c+1)]>>4,s[l++]=255&t),1===a&&(t=d[e.charCodeAt(c)]<<10|d[e.charCodeAt(c+1)]<<4|d[e.charCodeAt(c+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t),s}function s(e){return c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}function l(e,t,n){for(var i,r=[],o=t;oa?a:o+16383));return 1===i?(t=e[n-1],r.push(c[t>>2]+c[t<<4&63]+\"==\")):2===i&&(t=(e[n-2]<<8)+e[n-1],r.push(c[t>>10]+c[t>>4&63]+c[t<<2&63]+\"=\")),r.join(\"\")}t.byteLength=r,t.toByteArray=a,t.fromByteArray=u;for(var c=[],d=[],h=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,f=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",p=0,m=f.length;p1&&n[1]||\"\"}function n(t){var n=e.match(t);return n&&n.length>1&&n[2]||\"\"}var r,o=t(/(ipod|iphone|ipad)/i).toLowerCase(),s=/like android/i.test(e),l=!s&&/android/i.test(e),u=/nexus\\s*[0-6]\\s*/i.test(e),c=!u&&/nexus\\s*[0-9]+/i.test(e),d=/CrOS/.test(e),h=/silk/i.test(e),f=/sailfish/i.test(e),p=/tizen/i.test(e),m=/(web|hpw)(o|0)s/i.test(e),g=/windows phone/i.test(e),v=(/SamsungBrowser/i.test(e),!g&&/windows/i.test(e)),y=!o&&!h&&/macintosh/i.test(e),b=!l&&!f&&!p&&!m&&/linux/i.test(e),_=n(/edg([ea]|ios)\\/(\\d+(\\.\\d+)?)/i),x=t(/version\\/(\\d+(\\.\\d+)?)/i),w=/tablet/i.test(e)&&!/tablet pc/i.test(e),M=!w&&/[^-]mobi/i.test(e),S=/xbox/i.test(e);/opera/i.test(e)?r={name:\"Opera\",opera:a,version:x||t(/(?:opera|opr|opios)[\\s\\/](\\d+(\\.\\d+)?)/i)}:/opr\\/|opios/i.test(e)?r={name:\"Opera\",opera:a,version:t(/(?:opr|opios)[\\s\\/](\\d+(\\.\\d+)?)/i)||x}:/SamsungBrowser/i.test(e)?r={name:\"Samsung Internet for Android\",samsungBrowser:a,version:x||t(/(?:SamsungBrowser)[\\s\\/](\\d+(\\.\\d+)?)/i)}:/Whale/i.test(e)?r={name:\"NAVER Whale browser\",whale:a,version:t(/(?:whale)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/MZBrowser/i.test(e)?r={name:\"MZ Browser\",mzbrowser:a,version:t(/(?:MZBrowser)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/coast/i.test(e)?r={name:\"Opera Coast\",coast:a,version:x||t(/(?:coast)[\\s\\/](\\d+(\\.\\d+)?)/i)}:/focus/i.test(e)?r={name:\"Focus\",focus:a,version:t(/(?:focus)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/yabrowser/i.test(e)?r={name:\"Yandex Browser\",yandexbrowser:a,version:x||t(/(?:yabrowser)[\\s\\/](\\d+(\\.\\d+)?)/i)}:/ucbrowser/i.test(e)?r={name:\"UC Browser\",ucbrowser:a,version:t(/(?:ucbrowser)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/mxios/i.test(e)?r={name:\"Maxthon\",maxthon:a,version:t(/(?:mxios)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/epiphany/i.test(e)?r={name:\"Epiphany\",epiphany:a,version:t(/(?:epiphany)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/puffin/i.test(e)?r={name:\"Puffin\",puffin:a,version:t(/(?:puffin)[\\s\\/](\\d+(?:\\.\\d+)?)/i)}:/sleipnir/i.test(e)?r={name:\"Sleipnir\",sleipnir:a,version:t(/(?:sleipnir)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/k-meleon/i.test(e)?r={name:\"K-Meleon\",kMeleon:a,version:t(/(?:k-meleon)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:g?(r={name:\"Windows Phone\",osname:\"Windows Phone\",windowsphone:a},_?(r.msedge=a,r.version=_):(r.msie=a,r.version=t(/iemobile\\/(\\d+(\\.\\d+)?)/i))):/msie|trident/i.test(e)?r={name:\"Internet Explorer\",msie:a,version:t(/(?:msie |rv:)(\\d+(\\.\\d+)?)/i)}:d?r={name:\"Chrome\",osname:\"Chrome OS\",chromeos:a,chromeBook:a,chrome:a,version:t(/(?:chrome|crios|crmo)\\/(\\d+(\\.\\d+)?)/i)}:/edg([ea]|ios)/i.test(e)?r={name:\"Microsoft Edge\",msedge:a,version:_}:/vivaldi/i.test(e)?r={name:\"Vivaldi\",vivaldi:a,version:t(/vivaldi\\/(\\d+(\\.\\d+)?)/i)||x}:f?r={name:\"Sailfish\",osname:\"Sailfish OS\",sailfish:a,version:t(/sailfish\\s?browser\\/(\\d+(\\.\\d+)?)/i)}:/seamonkey\\//i.test(e)?r={name:\"SeaMonkey\",seamonkey:a,version:t(/seamonkey\\/(\\d+(\\.\\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(e)?(r={name:\"Firefox\",firefox:a,version:t(/(?:firefox|iceweasel|fxios)[ \\/](\\d+(\\.\\d+)?)/i)},/\\((mobile|tablet);[^\\)]*rv:[\\d\\.]+\\)/i.test(e)&&(r.firefoxos=a,r.osname=\"Firefox OS\")):h?r={name:\"Amazon Silk\",silk:a,version:t(/silk\\/(\\d+(\\.\\d+)?)/i)}:/phantom/i.test(e)?r={name:\"PhantomJS\",phantom:a,version:t(/phantomjs\\/(\\d+(\\.\\d+)?)/i)}:/slimerjs/i.test(e)?r={name:\"SlimerJS\",slimer:a,version:t(/slimerjs\\/(\\d+(\\.\\d+)?)/i)}:/blackberry|\\bbb\\d+/i.test(e)||/rim\\stablet/i.test(e)?r={name:\"BlackBerry\",osname:\"BlackBerry OS\",blackberry:a,version:x||t(/blackberry[\\d]+\\/(\\d+(\\.\\d+)?)/i)}:m?(r={name:\"WebOS\",osname:\"WebOS\",webos:a,version:x||t(/w(?:eb)?osbrowser\\/(\\d+(\\.\\d+)?)/i)},/touchpad\\//i.test(e)&&(r.touchpad=a)):/bada/i.test(e)?r={name:\"Bada\",osname:\"Bada\",bada:a,version:t(/dolfin\\/(\\d+(\\.\\d+)?)/i)}:p?r={name:\"Tizen\",osname:\"Tizen\",tizen:a,version:t(/(?:tizen\\s?)?browser\\/(\\d+(\\.\\d+)?)/i)||x}:/qupzilla/i.test(e)?r={name:\"QupZilla\",qupzilla:a,version:t(/(?:qupzilla)[\\s\\/](\\d+(?:\\.\\d+)+)/i)||x}:/chromium/i.test(e)?r={name:\"Chromium\",chromium:a,version:t(/(?:chromium)[\\s\\/](\\d+(?:\\.\\d+)?)/i)||x}:/chrome|crios|crmo/i.test(e)?r={name:\"Chrome\",chrome:a,version:t(/(?:chrome|crios|crmo)\\/(\\d+(\\.\\d+)?)/i)}:l?r={name:\"Android\",version:x}:/safari|applewebkit/i.test(e)?(r={name:\"Safari\",safari:a},x&&(r.version=x)):o?(r={name:\"iphone\"==o?\"iPhone\":\"ipad\"==o?\"iPad\":\"iPod\"},x&&(r.version=x)):r=/googlebot/i.test(e)?{name:\"Googlebot\",googlebot:a,version:t(/googlebot\\/(\\d+(\\.\\d+))/i)||x}:{name:t(/^(.*)\\/(.*) /),version:n(/^(.*)\\/(.*) /)},!r.msedge&&/(apple)?webkit/i.test(e)?(/(apple)?webkit\\/537\\.36/i.test(e)?(r.name=r.name||\"Blink\",r.blink=a):(r.name=r.name||\"Webkit\",r.webkit=a),!r.version&&x&&(r.version=x)):!r.opera&&/gecko\\//i.test(e)&&(r.name=r.name||\"Gecko\",r.gecko=a,r.version=r.version||t(/gecko\\/(\\d+(\\.\\d+)?)/i)),r.windowsphone||!l&&!r.silk?!r.windowsphone&&o?(r[o]=a,r.ios=a,r.osname=\"iOS\"):y?(r.mac=a,r.osname=\"macOS\"):S?(r.xbox=a,r.osname=\"Xbox\"):v?(r.windows=a,r.osname=\"Windows\"):b&&(r.linux=a,r.osname=\"Linux\"):(r.android=a,r.osname=\"Android\");var E=\"\";r.windows?E=function(e){switch(e){case\"NT\":return\"NT\";case\"XP\":return\"XP\";case\"NT 5.0\":return\"2000\";case\"NT 5.1\":return\"XP\";case\"NT 5.2\":return\"2003\";case\"NT 6.0\":return\"Vista\";case\"NT 6.1\":return\"7\";case\"NT 6.2\":return\"8\";case\"NT 6.3\":return\"8.1\";case\"NT 10.0\":return\"10\";default:return}}(t(/Windows ((NT|XP)( \\d\\d?.\\d)?)/i)):r.windowsphone?E=t(/windows phone (?:os)?\\s?(\\d+(\\.\\d+)*)/i):r.mac?(E=t(/Mac OS X (\\d+([_\\.\\s]\\d+)*)/i),E=E.replace(/[_\\s]/g,\".\")):o?(E=t(/os (\\d+([_\\s]\\d+)*) like mac os x/i),E=E.replace(/[_\\s]/g,\".\")):l?E=t(/android[ \\/-](\\d+(\\.\\d+)*)/i):r.webos?E=t(/(?:web|hpw)os\\/(\\d+(\\.\\d+)*)/i):r.blackberry?E=t(/rim\\stablet\\sos\\s(\\d+(\\.\\d+)*)/i):r.bada?E=t(/bada\\/(\\d+(\\.\\d+)*)/i):r.tizen&&(E=t(/tizen[\\/\\s](\\d+(\\.\\d+)*)/i)),E&&(r.osversion=E);var T=!r.windows&&E.split(\".\")[0];return w||c||\"ipad\"==o||l&&(3==T||T>=4&&!M)||r.silk?r.tablet=a:(M||\"iphone\"==o||\"ipod\"==o||l||u||r.blackberry||r.webos||r.bada)&&(r.mobile=a),r.msedge||r.msie&&r.version>=10||r.yandexbrowser&&r.version>=15||r.vivaldi&&r.version>=1||r.chrome&&r.version>=20||r.samsungBrowser&&r.version>=4||r.whale&&1===i([r.version,\"1.0\"])||r.mzbrowser&&1===i([r.version,\"6.0\"])||r.focus&&1===i([r.version,\"1.0\"])||r.firefox&&r.version>=20||r.safari&&r.version>=6||r.opera&&r.version>=10||r.ios&&r.osversion&&r.osversion.split(\".\")[0]>=6||r.blackberry&&r.version>=10.1||r.chromium&&r.version>=20?r.a=a:r.msie&&r.version<10||r.chrome&&r.version<20||r.firefox&&r.version<20||r.safari&&r.version<6||r.opera&&r.version<10||r.ios&&r.osversion&&r.osversion.split(\".\")[0]<6||r.chromium&&r.version<20?r.c=a:r.x=a,r}function t(e){return e.split(\".\").length}function n(e,t){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n=0;){if(r[0][i]>r[1][i])return 1;if(r[0][i]!==r[1][i])return-1;if(0===i)return 0}}function r(t,n,r){var o=s;\"string\"==typeof n&&(r=n,n=void 0),void 0===n&&(n=!1),r&&(o=e(r));var a=\"\"+o.version;for(var l in t)if(t.hasOwnProperty(l)&&o[l]){if(\"string\"!=typeof t[l])throw new Error(\"Browser version in the minVersion map should be a string: \"+l+\": \"+String(t));return i([a,t[l]])<0}return n}function o(e,t,n){return!r(e,t,n)}var a=!0,s=e(\"undefined\"!=typeof navigator?navigator.userAgent||\"\":\"\");return s.test=function(e){for(var t=0;t0?Math.min(a,i-n):a,n=i;return a}function r(e,t,n){var i,r,o=n.barThickness,a=t.stackCount,s=t.pixels[e];return l.isNullOrUndef(o)?(i=t.min*n.categoryPercentage,r=n.barPercentage):(i=o*a,r=1),{chunk:i/a,ratio:r,start:s-i/2}}function o(e,t,n){var i,r,o=t.pixels,a=o[e],s=e>0?o[e-1]:null,l=e0&&(e[0].yLabel?n=e[0].yLabel:t.labels.length>0&&e[0].index=0&&r>0)&&(g+=r));return o=d.getPixelForValue(g),a=d.getPixelForValue(g+f),s=(a-o)/2,{size:s,base:o,head:a,center:a+s/2}},calculateBarIndexPixels:function(e,t,n){var i=this,a=n.scale.options,s=\"flex\"===a.barThickness?o(t,n,a):r(t,n,a),u=i.getStackIndex(e,i.getMeta().stack),c=s.start+s.chunk*u+s.chunk/2,d=Math.min(l.valueOrDefault(a.maxBarThickness,1/0),s.chunk*s.ratio);return{base:c-d/2,head:c+d/2,center:c,size:d}},draw:function(){var e=this,t=e.chart,n=e.getValueScale(),i=e.getMeta().data,r=e.getDataset(),o=i.length,a=0;for(l.canvas.clipArea(t.ctx,t.chartArea);a');var n=e.data,i=n.datasets,r=n.labels;if(i.length)for(var o=0;o'),r[o]&&t.push(r[o]),t.push(\"\");return t.push(\"\"),t.join(\"\")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,i){var r=e.getDatasetMeta(0),a=t.datasets[0],s=r.data[i],l=s&&s.custom||{},u=o.valueAtIndexOrDefault,c=e.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(a.backgroundColor,i,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(a.borderColor,i,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(a.borderWidth,i,c.borderWidth),hidden:isNaN(a.data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(e,t){var n,i,r,o=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n=Math.PI?-1:p<-Math.PI?1:0);var m=p+f,g={x:Math.cos(p),y:Math.sin(p)},v={x:Math.cos(m),y:Math.sin(m)},y=p<=0&&m>=0||p<=2*Math.PI&&2*Math.PI<=m,b=p<=.5*Math.PI&&.5*Math.PI<=m||p<=2.5*Math.PI&&2.5*Math.PI<=m,_=p<=-Math.PI&&-Math.PI<=m||p<=Math.PI&&Math.PI<=m,x=p<=.5*-Math.PI&&.5*-Math.PI<=m||p<=1.5*Math.PI&&1.5*Math.PI<=m,w=h/100,M={x:_?-1:Math.min(g.x*(g.x<0?1:w),v.x*(v.x<0?1:w)),y:x?-1:Math.min(g.y*(g.y<0?1:w),v.y*(v.y<0?1:w))},S={x:y?1:Math.max(g.x*(g.x>0?1:w),v.x*(v.x>0?1:w)),y:b?1:Math.max(g.y*(g.y>0?1:w),v.y*(v.y>0?1:w))},E={width:.5*(S.x-M.x),height:.5*(S.y-M.y)};u=Math.min(s/E.width,l/E.height),c={x:-.5*(S.x+M.x),y:-.5*(S.y+M.y)}}n.borderWidth=t.getMaxBorderWidth(d.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(h?n.outerRadius/100*h:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=c.x*n.outerRadius,n.offsetY=c.y*n.outerRadius,d.total=t.calculateTotal(),t.outerRadius=n.outerRadius-n.radiusLength*t.getRingIndex(t.index),t.innerRadius=Math.max(t.outerRadius-n.radiusLength,0),o.each(d.data,function(n,i){t.updateElement(n,i,e)})},updateElement:function(e,t,n){var i=this,r=i.chart,a=r.chartArea,s=r.options,l=s.animation,u=(a.left+a.right)/2,c=(a.top+a.bottom)/2,d=s.rotation,h=s.rotation,f=i.getDataset(),p=n&&l.animateRotate?0:e.hidden?0:i.calculateCircumference(f.data[t])*(s.circumference/(2*Math.PI)),m=n&&l.animateScale?0:i.innerRadius,g=n&&l.animateScale?0:i.outerRadius,v=o.valueAtIndexOrDefault;o.extend(e,{_datasetIndex:i.index,_index:t,_model:{x:u+r.offsetX,y:c+r.offsetY,startAngle:d,endAngle:h,circumference:p,outerRadius:g,innerRadius:m,label:v(f.label,t,r.data.labels[t])}});var y=e._model,b=e.custom||{},_=o.valueAtIndexOrDefault,x=this.chart.options.elements.arc;y.backgroundColor=b.backgroundColor?b.backgroundColor:_(f.backgroundColor,t,x.backgroundColor),y.borderColor=b.borderColor?b.borderColor:_(f.borderColor,t,x.borderColor),y.borderWidth=b.borderWidth?b.borderWidth:_(f.borderWidth,t,x.borderWidth),n&&l.animateRotate||(y.startAngle=0===t?s.rotation:i.getMeta().data[t-1]._model.endAngle,y.endAngle=y.startAngle+y.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),i=0;return o.each(n.data,function(n,r){e=t.data[r],isNaN(e)||n.hidden||(i+=Math.abs(e))}),i},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?2*Math.PI*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){for(var t,n,i=0,r=this.index,o=e.length,a=0;ai?t:i,i=n>i?n:i;return i}})}},function(e,t,n){\"use strict\";var i=n(9),r=n(40),o=n(6);i._set(\"line\",{showLines:!0,spanGaps:!1,hover:{mode:\"label\"},scales:{xAxes:[{type:\"category\",id:\"x-axis-0\"}],yAxes:[{type:\"linear\",id:\"y-axis-0\"}]}}),e.exports=function(e){function t(e,t){return o.valueOrDefault(e.showLine,t.showLines)}e.controllers.line=e.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,update:function(e){var n,i,r,a=this,s=a.getMeta(),l=s.dataset,u=s.data||[],c=a.chart.options,d=c.elements.line,h=a.getScaleForId(s.yAxisID),f=a.getDataset(),p=t(f,c);for(p&&(r=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=h,l._datasetIndex=a.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:c.spanGaps,tension:r.tension?r.tension:o.valueOrDefault(f.lineTension,d.tension),backgroundColor:r.backgroundColor?r.backgroundColor:f.backgroundColor||d.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:f.borderWidth||d.borderWidth,borderColor:r.borderColor?r.borderColor:f.borderColor||d.borderColor,borderCapStyle:r.borderCapStyle?r.borderCapStyle:f.borderCapStyle||d.borderCapStyle,borderDash:r.borderDash?r.borderDash:f.borderDash||d.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:f.borderDashOffset||d.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:f.borderJoinStyle||d.borderJoinStyle,fill:r.fill?r.fill:void 0!==f.fill?f.fill:d.fill,steppedLine:r.steppedLine?r.steppedLine:o.valueOrDefault(f.steppedLine,d.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:o.valueOrDefault(f.cubicInterpolationMode,d.cubicInterpolationMode)},l.pivot()),n=0,i=u.length;n');var n=e.data,i=n.datasets,r=n.labels;if(i.length)for(var o=0;o'),r[o]&&t.push(r[o]),t.push(\"\");return t.push(\"\"),t.join(\"\")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,i){var r=e.getDatasetMeta(0),a=t.datasets[0],s=r.data[i],l=s.custom||{},u=o.valueAtIndexOrDefault,c=e.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(a.backgroundColor,i,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(a.borderColor,i,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(a.borderWidth,i,c.borderWidth),hidden:isNaN(a.data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(e,t){var n,i,r,o=t.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n=0;--n)t.isDatasetVisible(n)&&t.drawDataset(n,e);c.notify(t,\"afterDatasetsDraw\",[e])}},drawDataset:function(e,t){var n=this,i=n.getDatasetMeta(e),r={meta:i,index:e,easingValue:t};!1!==c.notify(n,\"beforeDatasetDraw\",[r])&&(i.controller.draw(t),c.notify(n,\"afterDatasetDraw\",[r]))},_drawTooltip:function(e){var t=this,n=t.tooltip,i={tooltip:n,easingValue:e};!1!==c.notify(t,\"beforeTooltipDraw\",[i])&&(n.draw(),c.notify(t,\"afterTooltipDraw\",[i]))},getElementAtEvent:function(e){return s.modes.single(this,e)},getElementsAtEvent:function(e){return s.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return s.modes[\"x-axis\"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var i=s.modes[t];return\"function\"==typeof i?i(this,e,n):[]},getDatasetAtEvent:function(e){return s.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,n=t.data.datasets[e];n._meta||(n._meta={});var i=n._meta[t.id];return i||(i=n._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t0||(r.forEach(function(t){delete e[t]}),delete e._chartjs)}}var r=[\"push\",\"pop\",\"shift\",\"splice\",\"unshift\"];e.DatasetController=function(e,t){this.initialize(e,t)},i.extend(e.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements()},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.getDataset();null!==t.xAxisID&&t.xAxisID in e.chart.scales||(t.xAxisID=n.xAxisID||e.chart.options.scales.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in e.chart.scales||(t.yAxisID=n.yAxisID||e.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,n=t.dataElementType;return n&&new n({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,n=this,i=n.getMeta(),r=n.getDataset().data||[],o=i.data;for(e=0,t=r.length;ei&&e.insertElements(i,r-i)},insertElements:function(e,t){for(var n=0;n=t[e].length&&t[e].push({}),!t[e][r].type||l.type&&l.type!==t[e][r].type?o.merge(t[e][r],[a.getScaleDefaults(s),l]):o.merge(t[e][r],l)}else o._merger(e,t,n,i)}})},o.where=function(e,t){if(o.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return o.each(e,function(e){t(e)&&n.push(e)}),n},o.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var i=0,r=e.length;i=0;i--){var r=e[i];if(t(r))return r}},o.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},o.almostEquals=function(e,t,n){return Math.abs(e-t)e},o.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},o.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},o.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return e=+e,0===e||isNaN(e)?e:e>0?1:-1},o.log10=Math.log10?function(e){return Math.log10(e)}:function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t},o.toRadians=function(e){return e*(Math.PI/180)},o.toDegrees=function(e){return e*(180/Math.PI)},o.getAngleFromPoint=function(e,t){var n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i),o=Math.atan2(i,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:r}},o.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},o.aliasPixel=function(e){return e%2==0?0:.5},o.splineCurve=function(e,t,n,i){var r=e.skip?t:e,o=t,a=n.skip?t:n,s=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),l=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;var d=i*u,h=i*c;return{previous:{x:o.x-d*(a.x-r.x),y:o.y-d*(a.y-r.y)},next:{x:o.x+h*(a.x-r.x),y:o.y+h*(a.y-r.y)}}},o.EPSILON=Number.EPSILON||1e-14,o.splineCurveMonotone=function(e){var t,n,i,r,a=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),s=a.length;for(t=0;t0?a[t-1]:null,(r=t0?a[t-1]:null,r=t=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},o.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},o.niceNum=function(e,t){var n=Math.floor(o.log10(e)),i=e/Math.pow(10,n);return(t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},o.requestAnimFrame=function(){return\"undefined\"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}}(),o.getRelativePosition=function(e,t){var n,i,r=e.originalEvent||e,a=e.target||e.srcElement,s=a.getBoundingClientRect(),l=r.touches;l&&l.length>0?(n=l[0].clientX,i=l[0].clientY):(n=r.clientX,i=r.clientY);var u=parseFloat(o.getStyle(a,\"padding-left\")),c=parseFloat(o.getStyle(a,\"padding-top\")),d=parseFloat(o.getStyle(a,\"padding-right\")),h=parseFloat(o.getStyle(a,\"padding-bottom\")),f=s.right-s.left-u-d,p=s.bottom-s.top-c-h;return n=Math.round((n-s.left-u)/f*a.width/t.currentDevicePixelRatio),i=Math.round((i-s.top-c)/p*a.height/t.currentDevicePixelRatio),{x:n,y:i}},o.getConstraintWidth=function(e){return n(e,\"max-width\",\"clientWidth\")},o.getConstraintHeight=function(e){return n(e,\"max-height\",\"clientHeight\")},o._calculatePadding=function(e,t,n){return t=o.getStyle(e,t),t.indexOf(\"%\")>-1?n/parseInt(t,10):parseInt(t,10)},o._getParentNode=function(e){var t=e.parentNode;return t&&t.host&&(t=t.host),t},o.getMaximumWidth=function(e){var t=o._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,i=o._calculatePadding(t,\"padding-left\",n),r=o._calculatePadding(t,\"padding-right\",n),a=n-i-r,s=o.getConstraintWidth(e);return isNaN(s)?a:Math.min(a,s)},o.getMaximumHeight=function(e){var t=o._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,i=o._calculatePadding(t,\"padding-top\",n),r=o._calculatePadding(t,\"padding-bottom\",n),a=n-i-r,s=o.getConstraintHeight(e);return isNaN(s)?a:Math.min(a,s)},o.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},o.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||\"undefined\"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=e.canvas,r=e.height,o=e.width;i.height=r*n,i.width=o*n,e.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=r+\"px\",i.style.width=o+\"px\")}},o.fontString=function(e,t,n){return t+\" \"+e+\"px \"+n},o.longestText=function(e,t,n,i){i=i||{};var r=i.data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},a=i.garbageCollect=[],i.font=t),e.font=t;var s=0;o.each(n,function(t){void 0!==t&&null!==t&&!0!==o.isArray(t)?s=o.measureText(e,r,a,s,t):o.isArray(t)&&o.each(t,function(t){void 0===t||null===t||o.isArray(t)||(s=o.measureText(e,r,a,s,t))})});var l=a.length/2;if(l>n.length){for(var u=0;ui&&(i=o),i},o.numberOfLabelLines=function(e){var t=1;return o.each(e,function(e){o.isArray(e)&&e.length>t&&(t=e.length)}),t},o.color=i?function(e){return e instanceof CanvasGradient&&(e=r.global.defaultColor),i(e)}:function(e){return console.error(\"Color.js not found!\"),e},o.getHoverColor=function(e){return e instanceof CanvasPattern?e:o.color(e).saturate(.5).darken(.1).rgbString()}}},function(e,t,n){\"use strict\";n(9)._set(\"global\",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:[\"mousemove\",\"mouseout\",\"click\",\"touchstart\",\"touchmove\"],hover:{onHover:null,mode:\"nearest\",intersect:!0,animationDuration:400},onClick:null,defaultColor:\"rgba(0,0,0,0.1)\",defaultFontColor:\"#666\",defaultFontFamily:\"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",defaultFontSize:12,defaultFontStyle:\"normal\",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var e=function(e,t){return this.construct(e,t),this};return e.Chart=e,e}},function(e,t,n){\"use strict\";var i=n(9),r=n(29),o=n(6);i._set(\"global\",{elements:{arc:{backgroundColor:i.global.defaultColor,borderColor:\"#fff\",borderWidth:2}}}),e.exports=r.extend({inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)l;)r-=2*Math.PI;for(;r=s&&r<=l,c=a>=n.innerRadius&&a<=n.outerRadius;return u&&c}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e=this._chart.ctx,t=this._view,n=t.startAngle,i=t.endAngle;e.beginPath(),e.arc(t.x,t.y,t.outerRadius,n,i),e.arc(t.x,t.y,t.innerRadius,i,n,!0),e.closePath(),e.strokeStyle=t.borderColor,e.lineWidth=t.borderWidth,e.fillStyle=t.backgroundColor,e.fill(),e.lineJoin=\"bevel\",t.borderWidth&&e.stroke()}})},function(e,t,n){\"use strict\";var i=n(9),r=n(29),o=n(6),a=i.global;i._set(\"global\",{elements:{line:{tension:.4,backgroundColor:a.defaultColor,borderWidth:3,borderColor:a.defaultColor,borderCapStyle:\"butt\",borderDash:[],borderDashOffset:0,borderJoinStyle:\"miter\",capBezierPoints:!0,fill:!0}}}),e.exports=r.extend({draw:function(){var e,t,n,i,r=this,s=r._view,l=r._chart.ctx,u=s.spanGaps,c=r._children.slice(),d=a.elements.line,h=-1;for(r._loop&&c.length&&c.push(c[0]),l.save(),l.lineCap=s.borderCapStyle||d.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||d.borderDash),l.lineDashOffset=s.borderDashOffset||d.borderDashOffset,l.lineJoin=s.borderJoinStyle||d.borderJoinStyle,l.lineWidth=s.borderWidth||d.borderWidth,l.strokeStyle=s.borderColor||a.defaultColor,l.beginPath(),h=-1,e=0;e=e.left&&1.01*e.right>=n.x&&n.y>=e.top&&1.01*e.bottom>=n.y)&&(i.strokeStyle=t.borderColor||l,i.lineWidth=s.valueOrDefault(t.borderWidth,o.global.elements.point.borderWidth),i.fillStyle=t.backgroundColor||l,s.canvas.drawPoint(i,r,u,c,d,a))}})},function(e,t,n){\"use strict\";function i(e){return void 0!==e._view.width}function r(e){var t,n,r,o,a=e._view;if(i(e)){var s=a.width/2;t=a.x-s,n=a.x+s,r=Math.min(a.y,a.base),o=Math.max(a.y,a.base)}else{var l=a.height/2;t=Math.min(a.x,a.base),n=Math.max(a.x,a.base),r=a.y-l,o=a.y+l}return{left:t,top:r,right:n,bottom:o}}var o=n(9),a=n(29);o._set(\"global\",{elements:{rectangle:{backgroundColor:o.global.defaultColor,borderColor:o.global.defaultColor,borderSkipped:\"bottom\",borderWidth:0}}}),e.exports=a.extend({draw:function(){function e(e){return v[(b+e)%4]}var t,n,i,r,o,a,s,l=this._chart.ctx,u=this._view,c=u.borderWidth;if(u.horizontal?(t=u.base,n=u.x,i=u.y-u.height/2,r=u.y+u.height/2,o=n>t?1:-1,a=1,s=u.borderSkipped||\"left\"):(t=u.x-u.width/2,n=u.x+u.width/2,i=u.y,r=u.base,o=1,a=r>i?1:-1,s=u.borderSkipped||\"bottom\"),c){var d=Math.min(Math.abs(t-n),Math.abs(i-r));c=c>d?d:c;var h=c/2,f=t+(\"left\"!==s?h*o:0),p=n+(\"right\"!==s?-h*o:0),m=i+(\"top\"!==s?h*a:0),g=r+(\"bottom\"!==s?-h*a:0);f!==p&&(i=m,r=g),m!==g&&(t=f,n=p)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=c;var v=[[t,r],[t,i],[n,i],[n,r]],y=[\"bottom\",\"left\",\"top\",\"right\"],b=y.indexOf(s,0);-1===b&&(b=0);var _=e(0);l.moveTo(_[0],_[1]);for(var x=1;x<4;x++)_=e(x),l.lineTo(_[0],_[1]);l.fill(),c&&l.stroke()},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){var n=!1;if(this._view){var i=r(this);n=e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom}return n},inLabelRange:function(e,t){var n=this;if(!n._view)return!1;var o=r(n);return i(n)?e>=o.left&&e<=o.right:t>=o.top&&t<=o.bottom},inXRange:function(e){var t=r(this);return e>=t.left&&e<=t.right},inYRange:function(e){var t=r(this);return e>=t.top&&e<=t.bottom},getCenterPoint:function(){var e,t,n=this._view;return i(this)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return e.width*Math.abs(e.y-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}})},function(e,t,n){\"use strict\";var i=n(81),t=e.exports={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,i,r,o){if(o){var a=Math.min(o,r/2-1e-7,i/2-1e-7);e.moveTo(t+a,n),e.lineTo(t+i-a,n),e.arcTo(t+i,n,t+i,n+a,a),e.lineTo(t+i,n+r-a),e.arcTo(t+i,n+r,t+i-a,n+r,a),e.lineTo(t+a,n+r),e.arcTo(t,n+r,t,n+r-a,a),e.lineTo(t,n+a),e.arcTo(t,n,t+a,n,a),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,i,r)},drawPoint:function(e,t,n,i,r,o){var a,s,l,u,c,d;if(o=o||0,t&&\"object\"==typeof t&&(\"[object HTMLImageElement]\"===(a=t.toString())||\"[object HTMLCanvasElement]\"===a))return void e.drawImage(t,i-t.width/2,r-t.height/2,t.width,t.height);if(!(isNaN(n)||n<=0)){switch(e.save(),e.translate(i,r),e.rotate(o*Math.PI/180),e.beginPath(),t){default:e.arc(0,0,n,0,2*Math.PI),e.closePath();break;case\"triangle\":s=3*n/Math.sqrt(3),c=s*Math.sqrt(3)/2,e.moveTo(-s/2,c/3),e.lineTo(s/2,c/3),e.lineTo(0,-2*c/3),e.closePath();break;case\"rect\":d=1/Math.SQRT2*n,e.rect(-d,-d,2*d,2*d);break;case\"rectRounded\":var h=n/Math.SQRT2,f=-h,p=-h,m=Math.SQRT2*n;this.roundedRect(e,f,p,m,m,.425*n);break;case\"rectRot\":d=1/Math.SQRT2*n,e.moveTo(-d,0),e.lineTo(0,d),e.lineTo(d,0),e.lineTo(0,-d),e.closePath();break;case\"cross\":e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-n,0),e.lineTo(n,0);break;case\"crossRot\":l=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,e.moveTo(-l,-u),e.lineTo(l,u),e.moveTo(-l,u),e.lineTo(l,-u);break;case\"star\":e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-n,0),e.lineTo(n,0),l=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,e.moveTo(-l,-u),e.lineTo(l,u),e.moveTo(-l,u),e.lineTo(l,-u);break;case\"line\":e.moveTo(-n,0),e.lineTo(n,0);break;case\"dash\":e.moveTo(0,0),e.lineTo(n,0)}e.fill(),e.stroke(),e.restore()}},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,i){return n.steppedLine?(\"after\"===n.steppedLine&&!i||\"after\"!==n.steppedLine&&i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y),void e.lineTo(n.x,n.y)):n.tension?void e.bezierCurveTo(i?t.controlPointPreviousX:t.controlPointNextX,i?t.controlPointPreviousY:t.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):void e.lineTo(n.x,n.y)}};i.clear=t.clear,i.drawRoundedRectangle=function(e){e.beginPath(),t.roundedRect.apply(t,arguments)}},function(e,t,n){\"use strict\";var i=n(81),r={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-r.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*r.easeInBounce(2*e):.5*r.easeOutBounce(2*e-1)+.5}};e.exports={effects:r},i.easingEffects=r},function(e,t,n){\"use strict\";var i=n(81);e.exports={toLineHeight:function(e,t){var n=(\"\"+e).match(/^(normal|(\\d+(?:\\.\\d+)?)(px|em|%)?)$/);if(!n||\"normal\"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case\"px\":return e;case\"%\":e/=100}return t*e},toPadding:function(e){var t,n,r,o;return i.isObject(e)?(t=+e.top||0,n=+e.right||0,r=+e.bottom||0,o=+e.left||0):t=n=r=o=+e||0,{top:t,right:n,bottom:r,left:o,height:t+r,width:o+n}},resolve:function(e,t,n){var r,o,a;for(r=0,o=e.length;r
';var r=t.childNodes[0],a=t.childNodes[1];t._reset=function(){r.scrollLeft=1e6,r.scrollTop=1e6,a.scrollLeft=1e6,a.scrollTop=1e6};var s=function(){t._reset(),e()};return o(r,\"scroll\",s.bind(r,\"expand\")),o(a,\"scroll\",s.bind(a,\"shrink\")),t}function d(e,t){var n=e[v]||(e[v]={}),i=n.renderProxy=function(e){e.animationName===_&&t()};g.each(x,function(t){o(e,t,i)}),n.reflow=!!e.offsetParent,e.classList.add(b)}function h(e){var t=e[v]||{},n=t.renderProxy;n&&(g.each(x,function(t){a(e,t,n)}),delete t.renderProxy),e.classList.remove(b)}function f(e,t,n){var i=e[v]||(e[v]={}),r=i.resizer=c(u(function(){if(i.resizer)return t(s(\"resize\",n))}));d(e,function(){if(i.resizer){var t=e.parentNode;t&&t!==r.parentNode&&t.insertBefore(r,t.firstChild),r._reset()}})}function p(e){var t=e[v]||{},n=t.resizer;delete t.resizer,h(e),n&&n.parentNode&&n.parentNode.removeChild(n)}function m(e,t){var n=e._style||document.createElement(\"style\");e._style||(e._style=n,t=\"/* Chart.js */\\n\"+t,n.setAttribute(\"type\",\"text/css\"),document.getElementsByTagName(\"head\")[0].appendChild(n)),n.appendChild(document.createTextNode(t))}var g=n(6),v=\"$chartjs\",y=\"chartjs-\",b=y+\"render-monitor\",_=y+\"render-animation\",x=[\"animationstart\",\"webkitAnimationStart\"],w={touchstart:\"mousedown\",touchmove:\"mousemove\",touchend:\"mouseup\",pointerenter:\"mouseenter\",pointerdown:\"mousedown\",pointermove:\"mousemove\",pointerup:\"mouseup\",pointerleave:\"mouseout\",pointerout:\"mouseout\"},M=function(){var e=!1;try{var t=Object.defineProperty({},\"passive\",{get:function(){e=!0}});window.addEventListener(\"e\",null,t)}catch(e){}return e}(),S=!!M&&{passive:!0};e.exports={_enabled:\"undefined\"!=typeof window&&\"undefined\"!=typeof document,initialize:function(){var e=\"from{opacity:0.99}to{opacity:1}\";m(this,\"@-webkit-keyframes \"+_+\"{\"+e+\"}@keyframes \"+_+\"{\"+e+\"}.\"+b+\"{-webkit-animation:\"+_+\" 0.001s;animation:\"+_+\" 0.001s;}\")},acquireContext:function(e,t){\"string\"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext(\"2d\");return n&&n.canvas===e?(r(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[v]){var n=t[v].initial;[\"height\",\"width\"].forEach(function(e){var i=n[e];g.isNullOrUndef(i)?t.removeAttribute(e):t.setAttribute(e,i)}),g.each(n.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t[v]}},addEventListener:function(e,t,n){var i=e.canvas;if(\"resize\"===t)return void f(i,n,e);var r=n[v]||(n[v]={});o(i,t,(r.proxies||(r.proxies={}))[e.id+\"_\"+t]=function(t){n(l(t,e))})},removeEventListener:function(e,t,n){var i=e.canvas;if(\"resize\"===t)return void p(i);var r=n[v]||{},o=r.proxies||{},s=o[e.id+\"_\"+t];s&&a(i,t,s)}},g.addEvent=o,g.removeEvent=a},function(e,t,n){\"use strict\";e.exports={},e.exports.filler=n(353),e.exports.legend=n(354),e.exports.title=n(355)},function(e,t,n){\"use strict\";function i(e,t,n){var i,r=e._model||{},o=r.fill;if(void 0===o&&(o=!!r.backgroundColor),!1===o||null===o)return!1;if(!0===o)return\"origin\";if(i=parseFloat(o,10),isFinite(i)&&Math.floor(i)===i)return\"-\"!==o[0]&&\"+\"!==o[0]||(i=t+i),!(i===t||i<0||i>=n)&&i;switch(o){case\"bottom\":return\"start\";case\"top\":return\"end\";case\"zero\":return\"origin\";case\"origin\":case\"start\":case\"end\":return o;default:return!1}}function r(e){var t,n=e.el._model||{},i=e.el._scale||{},r=e.fill,o=null;if(isFinite(r))return null;if(\"start\"===r?o=void 0===n.scaleBottom?i.bottom:n.scaleBottom:\"end\"===r?o=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:i.getBasePosition?o=i.getBasePosition():i.getBasePixel&&(o=i.getBasePixel()),void 0!==o&&null!==o){if(void 0!==o.x&&void 0!==o.y)return o;if(\"number\"==typeof o&&isFinite(o))return t=i.isHorizontal(),{x:t?o:null,y:t?null:o}}return null}function o(e,t,n){var i,r=e[t],o=r.fill,a=[t];if(!n)return o;for(;!1!==o&&-1===a.indexOf(o);){if(!isFinite(o))return o;if(!(i=e[o]))return!1;if(i.visible)return o;a.push(o),o=i.fill}return!1}function a(e){var t=e.fill,n=\"dataset\";return!1===t?null:(isFinite(t)||(n=\"boundary\"),f[n](e))}function s(e){return e&&!e.skip}function l(e,t,n,i,r){var o;if(i&&r){for(e.moveTo(t[0].x,t[0].y),o=1;o0;--o)h.canvas.lineTo(e,n[o],n[o-1],!0)}}function u(e,t,n,i,r,o){var a,u,c,d,h,f,p,m=t.length,g=i.spanGaps,v=[],y=[],b=0,_=0;for(e.beginPath(),a=0,u=m+!!o;a');for(var n=0;n'),e.data.datasets[n].label&&t.push(e.data.datasets[n].label),t.push(\"\");return t.push(\"\"),t.join(\"\")}});var c=a.extend({initialize:function(e){s.extend(this,e),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:u,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:u,beforeSetDimensions:u,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:u,beforeBuildLabels:u,buildLabels:function(){var e=this,t=e.options.labels||{},n=s.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter(function(n){return t.filter(n,e.chart.data)})),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:u,beforeFit:u,fit:function(){var e=this,t=e.options,n=t.labels,r=t.display,a=e.ctx,l=o.global,u=s.valueOrDefault,c=u(n.fontSize,l.defaultFontSize),d=u(n.fontStyle,l.defaultFontStyle),h=u(n.fontFamily,l.defaultFontFamily),f=s.fontString(c,d,h),p=e.legendHitBoxes=[],m=e.minSize,g=e.isHorizontal();if(g?(m.width=e.maxWidth,m.height=r?10:0):(m.width=r?10:0,m.height=e.maxHeight),r)if(a.font=f,g){var v=e.lineWidths=[0],y=e.legendItems.length?c+n.padding:0;a.textAlign=\"left\",a.textBaseline=\"top\",s.each(e.legendItems,function(t,r){var o=i(n,c),s=o+c/2+a.measureText(t.text).width;v[v.length-1]+s+n.padding>=e.width&&(y+=c+n.padding,v[v.length]=e.left),p[r]={left:0,top:0,width:s,height:c},v[v.length-1]+=s+n.padding}),m.height+=y}else{var b=n.padding,_=e.columnWidths=[],x=n.padding,w=0,M=0,S=c+b;s.each(e.legendItems,function(e,t){var r=i(n,c),o=r+c/2+a.measureText(e.text).width;M+S>m.height&&(x+=w+n.padding,_.push(w),w=0,M=0),w=Math.max(w,o),M+=S,p[t]={left:0,top:0,width:o,height:c}}),x+=w,_.push(w),m.width+=x}e.width=m.width,e.height=m.height},afterFit:u,isHorizontal:function(){return\"top\"===this.options.position||\"bottom\"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,r=o.global,a=r.elements.line,l=e.width,u=e.lineWidths;if(t.display){var c,d=e.ctx,h=s.valueOrDefault,f=h(n.fontColor,r.defaultFontColor),p=h(n.fontSize,r.defaultFontSize),m=h(n.fontStyle,r.defaultFontStyle),g=h(n.fontFamily,r.defaultFontFamily),v=s.fontString(p,m,g);d.textAlign=\"left\",d.textBaseline=\"middle\",d.lineWidth=.5,d.strokeStyle=f,d.fillStyle=f,d.font=v;var y=i(n,p),b=e.legendHitBoxes,_=function(e,n,i){if(!(isNaN(y)||y<=0)){d.save(),d.fillStyle=h(i.fillStyle,r.defaultColor),d.lineCap=h(i.lineCap,a.borderCapStyle),d.lineDashOffset=h(i.lineDashOffset,a.borderDashOffset),d.lineJoin=h(i.lineJoin,a.borderJoinStyle),d.lineWidth=h(i.lineWidth,a.borderWidth),d.strokeStyle=h(i.strokeStyle,r.defaultColor);var o=0===h(i.lineWidth,a.borderWidth);if(d.setLineDash&&d.setLineDash(h(i.lineDash,a.borderDash)),t.labels&&t.labels.usePointStyle){var l=p*Math.SQRT2/2,u=l/Math.SQRT2,c=e+u,f=n+u;s.canvas.drawPoint(d,i.pointStyle,l,c,f)}else o||d.strokeRect(e,n,y,p),d.fillRect(e,n,y,p);d.restore()}},x=function(e,t,n,i){var r=p/2,o=y+r+e,a=t+r;d.fillText(n.text,o,a),n.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(o,a),d.lineTo(o+i,a),d.stroke())},w=e.isHorizontal();c=w?{x:e.left+(l-u[0])/2,y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+n.padding,line:0};var M=p+n.padding;s.each(e.legendItems,function(t,i){var r=d.measureText(t.text).width,o=y+p/2+r,a=c.x,s=c.y;w?a+o>=l&&(s=c.y+=M,c.line++,a=c.x=e.left+(l-u[c.line])/2):s+M>e.bottom&&(a=c.x=a+e.columnWidths[c.line]+n.padding,s=c.y=e.top+n.padding,c.line++),_(a,s,t),b[i].left=a,b[i].top=s,x(a,s,t,r),w?c.x+=o+n.padding:c.y+=M})}},handleEvent:function(e){var t=this,n=t.options,i=\"mouseup\"===e.type?\"click\":e.type,r=!1;if(\"mousemove\"===i){if(!n.onHover)return}else{if(\"click\"!==i)return;if(!n.onClick)return}var o=e.x,a=e.y;if(o>=t.left&&o<=t.right&&a>=t.top&&a<=t.bottom)for(var s=t.legendHitBoxes,l=0;l=u.left&&o<=u.left+u.width&&a>=u.top&&a<=u.top+u.height){if(\"click\"===i){n.onClick.call(t,e.native,t.legendItems[l]),r=!0;break}if(\"mousemove\"===i){n.onHover.call(t,e.native,t.legendItems[l]),r=!0;break}}}return r}});e.exports={id:\"legend\",_element:c,beforeInit:function(e){var t=e.options.legend;t&&r(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(s.mergeIf(t,o.global.legend),n?(l.configure(e,n,t),n.options=t):r(e,t)):n&&(l.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}}},function(e,t,n){\"use strict\";function i(e,t){var n=new u({ctx:e.ctx,options:t,chart:e});s.configure(e,n,t),s.addBox(e,n),e.titleBlock=n}var r=n(9),o=n(29),a=n(6),s=n(58),l=a.noop;r._set(\"global\",{title:{display:!1,fontStyle:\"bold\",fullWidth:!0,lineHeight:1.2,padding:10,position:\"top\",text:\"\",weight:2e3}});var u=o.extend({initialize:function(e){var t=this;a.extend(t,e),t.legendHitBoxes=[]},beforeUpdate:l,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:l,beforeSetDimensions:l,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:l,beforeBuildLabels:l,buildLabels:l,afterBuildLabels:l,beforeFit:l,fit:function(){var e=this,t=a.valueOrDefault,n=e.options,i=n.display,o=t(n.fontSize,r.global.defaultFontSize),s=e.minSize,l=a.isArray(n.text)?n.text.length:1,u=a.options.toLineHeight(n.lineHeight,o),c=i?l*u+2*n.padding:0;e.isHorizontal()?(s.width=e.maxWidth,s.height=c):(s.width=c,s.height=e.maxHeight),e.width=s.width,e.height=s.height},afterFit:l,isHorizontal:function(){var e=this.options.position;return\"top\"===e||\"bottom\"===e},draw:function(){var e=this,t=e.ctx,n=a.valueOrDefault,i=e.options,o=r.global;if(i.display){var s,l,u,c=n(i.fontSize,o.defaultFontSize),d=n(i.fontStyle,o.defaultFontStyle),h=n(i.fontFamily,o.defaultFontFamily),f=a.fontString(c,d,h),p=a.options.toLineHeight(i.lineHeight,c),m=p/2+i.padding,g=0,v=e.top,y=e.left,b=e.bottom,_=e.right;t.fillStyle=n(i.fontColor,o.defaultFontColor),t.font=f,e.isHorizontal()?(l=y+(_-y)/2,u=v+m,s=_-y):(l=\"left\"===i.position?y+m:_-m,u=v+(b-v)/2,s=b-v,g=Math.PI*(\"left\"===i.position?-.5:.5)),t.save(),t.translate(l,u),t.rotate(g),t.textAlign=\"center\",t.textBaseline=\"middle\";var x=i.text;if(a.isArray(x))for(var w=0,M=0;Mt.max&&(t.max=i))})});t.min=isFinite(t.min)&&!isNaN(t.min)?t.min:0,t.max=isFinite(t.max)&&!isNaN(t.max)?t.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var e,t=this,n=t.options.ticks;if(t.isHorizontal())e=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(t.width/50));else{var o=r.valueOrDefault(n.fontSize,i.global.defaultFontSize);e=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(t.height/(2*o)))}return e},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this,n=t.start,i=+t.getRightValue(e),r=t.end-n;return t.isHorizontal()?t.left+t.width/r*(i-n):t.bottom-t.height/r*(i-n)},getValueForPixel:function(e){var t=this,n=t.isHorizontal(),i=n?t.width:t.height,r=(n?e-t.left:t.bottom-e)/i;return t.start+(t.end-t.start)*r},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}});o.registerScaleType(\"linear\",n,t)}},function(e,t,n){\"use strict\";function i(e,t){var n,i,o,a=[];if(e.stepSize&&e.stepSize>0)o=e.stepSize;else{var s=r.niceNum(t.max-t.min,!1);o=r.niceNum(s/(e.maxTicks-1),!0),i=e.precision,void 0!==i&&(n=Math.pow(10,i),o=Math.ceil(o*n)/n)}var l=Math.floor(t.min/o)*o,u=Math.ceil(t.max/o)*o;r.isNullOrUndef(e.min)||r.isNullOrUndef(e.max)||!e.stepSize||r.almostWhole((e.max-e.min)/e.stepSize,o/1e3)&&(l=e.min,u=e.max);var c=(u-l)/o;c=r.almostEquals(c,Math.round(c),o/1e3)?Math.round(c):Math.ceil(c),i=1,o<1&&(i=Math.pow(10,1-Math.floor(r.log10(o))),l=Math.round(l*i)/i,u=Math.round(u*i)/i),a.push(void 0!==e.min?e.min:l);for(var d=1;d0&&o>0&&(e.min=0)}var a=void 0!==n.min||void 0!==n.suggestedMin,s=void 0!==n.max||void 0!==n.suggestedMax;void 0!==n.min?e.min=n.min:void 0!==n.suggestedMin&&(null===e.min?e.min=n.suggestedMin:e.min=Math.min(e.min,n.suggestedMin)),void 0!==n.max?e.max=n.max:void 0!==n.suggestedMax&&(null===e.max?e.max=n.suggestedMax:e.max=Math.max(e.max,n.suggestedMax)),a!==s&&e.min>=e.max&&(a?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,n.beginAtZero||e.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var e=this,t=e.options,n=t.ticks,o=e.getTickLimit();o=Math.max(2,o);var a={maxTicks:o,min:n.min,max:n.max,precision:n.precision,stepSize:r.valueOrDefault(n.fixedStepSize,n.stepSize)},s=e.ticks=i(a,e);e.handleDirectionalChanges(),e.max=r.max(s),e.min=r.min(s),n.reverse?(s.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),o.prototype.convertTicksToLabels.call(e)}})}},function(e,t,n){\"use strict\";function i(e,t){var n,i,o=[],a=r.valueOrDefault,s=a(e.min,Math.pow(10,Math.floor(r.log10(t.min)))),l=Math.floor(r.log10(t.max)),u=Math.ceil(t.max/Math.pow(10,l));0===s?(n=Math.floor(r.log10(t.minNotZero)),i=Math.floor(t.minNotZero/Math.pow(10,n)),o.push(s),s=i*Math.pow(10,n)):(n=Math.floor(r.log10(s)),i=Math.floor(s/Math.pow(10,n)));var c=n<0?Math.pow(10,Math.abs(n)):1;do{o.push(s),++i,10===i&&(i=1,++n,c=n>=0?1:c),s=Math.round(i*Math.pow(10,n)*c)/c}while(n0){var n=r.min(e),i=r.max(e);t.min=null===t.min?n:Math.min(t.min,n),t.max=null===t.max?i:Math.max(t.max,i)}})}else r.each(a,function(n,o){var a=i.getDatasetMeta(o);i.isDatasetVisible(o)&&e(a)&&r.each(n.data,function(e,n){var i=+t.getRightValue(e);isNaN(i)||a.data[n].hidden||i<0||(null===t.min?t.min=i:it.max&&(t.max=i),0!==i&&(null===t.minNotZero||i0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(r.log10(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options,n=t.ticks,o=!e.isHorizontal(),a={min:n.min,max:n.max},s=e.ticks=i(a,e);e.max=r.max(s),e.min=r.min(s),n.reverse?(o=!o,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),o&&s.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),o.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){return this.getPixelForValue(this.tickValues[e])},_getFirstTickValue:function(e){var t=Math.floor(r.log10(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},getPixelForValue:function(t){var n,i,o,a,s,l=this,u=l.options.ticks.reverse,c=r.log10,d=l._getFirstTickValue(l.minNotZero),h=0;return t=+l.getRightValue(t),u?(o=l.end,a=l.start,s=-1):(o=l.start,a=l.end,s=1),l.isHorizontal()?(n=l.width,i=u?l.right:l.left):(n=l.height,s*=-1,i=u?l.top:l.bottom),t!==o&&(0===o&&(h=r.getValueOrDefault(l.options.ticks.fontSize,e.defaults.global.defaultFontSize),n-=h,o=d),0!==t&&(h+=n/(c(a)-c(o))*(c(t)-c(o))),i+=s*h),i},getValueForPixel:function(t){var n,i,o,a,s=this,l=s.options.ticks.reverse,u=r.log10,c=s._getFirstTickValue(s.minNotZero);if(l?(i=s.end,o=s.start):(i=s.start,o=s.end),s.isHorizontal()?(n=s.width,a=l?s.right-t:t-s.left):(n=s.height,a=l?t-s.top:s.bottom-t),a!==i){if(0===i){var d=r.getValueOrDefault(s.options.ticks.fontSize,e.defaults.global.defaultFontSize);a-=d,n-=d,i=c}a*=u(o)-u(i),a/=n,a=Math.pow(10,u(i)+a)}return a}});a.registerScaleType(\"logarithmic\",n,t)}},function(e,t,n){\"use strict\";var i=n(9),r=n(6),o=n(39),a=n(60);e.exports=function(e){function t(e){var t=e.options;return t.angleLines.display||t.pointLabels.display?e.chart.data.labels.length:0}function n(e){var t=e.options.pointLabels,n=r.valueOrDefault(t.fontSize,v.defaultFontSize),i=r.valueOrDefault(t.fontStyle,v.defaultFontStyle),o=r.valueOrDefault(t.fontFamily,v.defaultFontFamily);return{size:n,style:i,family:o,font:r.fontString(n,i,o)}}function s(e,t,n){return r.isArray(n)?{w:r.longestText(e,e.font,n),h:n.length*t+1.5*(n.length-1)*t}:{w:e.measureText(n).width,h:t}}function l(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:er?{start:t-n-5,end:t}:{start:t,end:t+n+5}}function u(e){var i,o,a,u=n(e),c=Math.min(e.height/2,e.width/2),d={r:e.width,l:0,t:e.height,b:0},h={};e.ctx.font=u.font,e._pointLabelSizes=[];var f=t(e);for(i=0;id.r&&(d.r=g.end,h.r=p),v.startd.b&&(d.b=v.end,h.b=p)}e.setReductions(c,d,h)}function c(e){var t=Math.min(e.height/2,e.width/2);e.drawingArea=Math.round(t),e.setCenterPoint(0,0,0,0)}function d(e){return 0===e||180===e?\"center\":e<180?\"left\":\"right\"}function h(e,t,n,i){if(r.isArray(t))for(var o=n.y,a=1.5*i,s=0;s270||e<90)&&(n.y-=t.h)}function p(e){var i=e.ctx,o=e.options,a=o.angleLines,s=o.pointLabels;i.lineWidth=a.lineWidth,i.strokeStyle=a.color;var l=e.getDistanceFromCenterForValue(o.ticks.reverse?e.min:e.max),u=n(e);i.textBaseline=\"top\";for(var c=t(e)-1;c>=0;c--){if(a.display){var p=e.getPointPosition(c,l);i.beginPath(),i.moveTo(e.xCenter,e.yCenter),i.lineTo(p.x,p.y),i.stroke(),i.closePath()}if(s.display){var m=e.getPointPosition(c,l+5),g=r.valueAtIndexOrDefault(s.fontColor,c,v.defaultFontColor);i.font=u.font,i.fillStyle=g;var y=e.getIndexAngle(c),b=r.toDegrees(y);i.textAlign=d(b),f(b,e._pointLabelSizes[c],m),h(i,e.pointLabels[c]||\"\",m,u.size)}}}function m(e,n,i,o){var a=e.ctx;if(a.strokeStyle=r.valueAtIndexOrDefault(n.color,o-1),a.lineWidth=r.valueAtIndexOrDefault(n.lineWidth,o-1),e.options.gridLines.circular)a.beginPath(),a.arc(e.xCenter,e.yCenter,i,0,2*Math.PI),a.closePath(),a.stroke();else{var s=t(e);if(0===s)return;a.beginPath();var l=e.getPointPosition(0,i);a.moveTo(l.x,l.y);for(var u=1;u0&&n>0?t:0)},draw:function(){var e=this,t=e.options,n=t.gridLines,i=t.ticks,o=r.valueOrDefault;if(t.display){var a=e.ctx,s=this.getIndexAngle(0),l=o(i.fontSize,v.defaultFontSize),u=o(i.fontStyle,v.defaultFontStyle),c=o(i.fontFamily,v.defaultFontFamily),d=r.fontString(l,u,c);r.each(e.ticks,function(t,r){if(r>0||i.reverse){var u=e.getDistanceFromCenterForValue(e.ticksAsNumbers[r]);if(n.display&&0!==r&&m(e,n,u,r),i.display){var c=o(i.fontColor,v.defaultFontColor);if(a.font=d,a.save(),a.translate(e.xCenter,e.yCenter),a.rotate(s),i.showLabelBackdrop){var h=a.measureText(t).width;a.fillStyle=i.backdropColor,a.fillRect(-h/2-i.backdropPaddingX,-u-l/2-i.backdropPaddingY,h+2*i.backdropPaddingX,l+2*i.backdropPaddingY)}a.textAlign=\"center\",a.textBaseline=\"middle\",a.fillStyle=c,a.fillText(t,0,-u),a.restore()}}}),(t.angleLines.display||t.pointLabels.display)&&p(e)}}});o.registerScaleType(\"radialLinear\",b,y)}},function(e,t,n){\"use strict\";function i(e,t){return e-t}function r(e){var t,n,i,r={},o=[];for(t=0,n=e.length;tt&&s=0&&a<=s;){if(i=a+s>>1,r=e[i-1]||null,o=e[i],!r)return{lo:null,hi:o};if(o[t]n))return{lo:r,hi:o};s=i-1}}return{lo:o,hi:null}}function s(e,t,n,i){var r=a(e,t,n),o=r.lo?r.hi?r.lo:e[e.length-2]:e[0],s=r.lo?r.hi?r.hi:e[e.length-1]:e[1],l=s[t]-o[t],u=l?(n-o[t])/l:0,c=(s[i]-o[i])*u;return o[i]+c}function l(e,t){var n=t.parser,i=t.parser||t.format;return\"function\"==typeof n?n(e):\"string\"==typeof e&&\"string\"==typeof i?y(e,i):(e instanceof y||(e=y(e)),e.isValid()?e:\"function\"==typeof i?i(e):e)}function u(e,t){if(_.isNullOrUndef(e))return null;var n=t.options.time,i=l(t.getRightValue(e),n);return i.isValid()?(n.round&&i.startOf(n.round),i.valueOf()):null}function c(e,t,n,i){var r,o,a,s=t-e,l=E[n],u=l.size,c=l.steps;if(!c)return Math.ceil(s/(i*u));for(r=0,o=c.length;r=T.indexOf(t);r--)if(o=T[r],E[o].common&&a.as(o)>=e.length)return o;return T[t?T.indexOf(t):0]}function f(e){for(var t=T.indexOf(e)+1,n=T.length;t1?t[1]:i,a=t[0],l=(s(e,\"time\",o,\"pos\")-s(e,\"time\",a,\"pos\"))/2),r.time.max||(o=t[t.length-1],a=t.length>1?t[t.length-2]:n,u=(s(e,\"time\",o,\"pos\")-s(e,\"time\",a,\"pos\"))/2)),{left:l,right:u}}function g(e,t){var n,i,r,o,a=[];for(n=0,i=e.length;n=r&&n<=a&&d.push(n);return i.min=r,i.max=a,i._unit=l.unit||h(d,l.minUnit,i.min,i.max),i._majorUnit=f(i._unit),i._table=o(i._timestamps.data,r,a,s.distribution),i._offsets=m(i._table,d,r,a,s),i._labelFormat=v(i._timestamps.data,l),g(d,i._majorUnit)},getLabelForIndex:function(e,t){var n=this,i=n.chart.data,r=n.options.time,o=i.labels&&e=0&&e0?a:1}});w.registerScaleType(\"time\",t,e)}},function(e,t,n){function i(e){if(e){var t=/^#([a-fA-F0-9]{3})$/i,n=/^#([a-fA-F0-9]{6})$/i,i=/^rgba?\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,r=/^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/i,o=/(\\w+)/,a=[0,0,0],s=1,l=e.match(t);if(l){l=l[1];for(var u=0;u.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,[100*(.4124*t+.3576*n+.1805*i),100*(.2126*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]}function u(e){var t,n,i,r=l(e),o=r[0],a=r[1],s=r[2];return o/=95.047,a/=100,s/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,t=116*a-16,n=500*(o-a),i=200*(a-s),[t,n,i]}function c(e){return B(u(e))}function d(e){var t,n,i,r,o,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0==s)return o=255*l,[o,o,o];n=l<.5?l*(1+s):l+s-l*s,t=2*l-n,r=[0,0,0];for(var u=0;u<3;u++)i=a+1/3*-(u-1),i<0&&i++,i>1&&i--,o=6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t,r[u]=255*o;return r}function h(e){var t,n,i=e[0],r=e[1]/100,o=e[2]/100;return 0===o?[0,0,0]:(o*=2,r*=o<=1?o:2-o,n=(o+r)/2,t=2*r/(o+r),[i,100*t,100*n])}function f(e){return o(d(e))}function p(e){return a(d(e))}function m(e){return s(d(e))}function v(e){var t=e[0]/60,n=e[1]/100,i=e[2]/100,r=Math.floor(t)%6,o=t-Math.floor(t),a=255*i*(1-n),s=255*i*(1-n*o),l=255*i*(1-n*(1-o)),i=255*i;switch(r){case 0:return[i,l,a];case 1:return[s,i,a];case 2:return[a,i,l];case 3:return[a,s,i];case 4:return[l,a,i];case 5:return[i,a,s]}}function y(e){var t,n,i=e[0],r=e[1]/100,o=e[2]/100;return n=(2-r)*o,t=r*o,t/=n<=1?n:2-n,t=t||0,n/=2,[i,100*t,100*n]}function _(e){return o(v(e))}function x(e){return a(v(e))}function w(e){return s(v(e))}function M(e){var t,n,i,o,a=e[0]/360,s=e[1]/100,l=e[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),t=Math.floor(6*a),n=1-l,i=6*a-t,0!=(1&t)&&(i=1-i),o=s+i*(n-s),t){default:case 6:case 0:r=n,g=o,b=s;break;case 1:r=o,g=n,b=s;break;case 2:r=s,g=n,b=o;break;case 3:r=s,g=o,b=n;break;case 4:r=o,g=s,b=n;break;case 5:r=n,g=s,b=o}return[255*r,255*g,255*b]}function S(e){return n(M(e))}function E(e){return i(M(e))}function T(e){return a(M(e))}function k(e){return s(M(e))}function O(e){var t,n,i,r=e[0]/100,o=e[1]/100,a=e[2]/100,s=e[3]/100;return t=1-Math.min(1,r*(1-s)+s),n=1-Math.min(1,o*(1-s)+s),i=1-Math.min(1,a*(1-s)+s),[255*t,255*n,255*i]}function C(e){return n(O(e))}function P(e){return i(O(e))}function A(e){return o(O(e))}function R(e){return s(O(e))}function L(e){var t,n,i,r=e[0]/100,o=e[1]/100,a=e[2]/100;return t=3.2406*r+-1.5372*o+-.4986*a,n=-.9689*r+1.8758*o+.0415*a,i=.0557*r+-.204*o+1.057*a,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,t=Math.min(Math.max(0,t),1),n=Math.min(Math.max(0,n),1),i=Math.min(Math.max(0,i),1),[255*t,255*n,255*i]}function I(e){var t,n,i,r=e[0],o=e[1],a=e[2];return r/=95.047,o/=100,a/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,t=116*o-16,n=500*(r-o),i=200*(o-a),[t,n,i]}function D(e){return B(I(e))}function N(e){var t,n,i,r,o=e[0],a=e[1],s=e[2];return o<=8?(n=100*o/903.3,r=n/100*7.787+16/116):(n=100*Math.pow((o+16)/116,3),r=Math.pow(n/100,1/3)),t=t/95.047<=.008856?t=95.047*(a/500+r-16/116)/7.787:95.047*Math.pow(a/500+r,3),i=i/108.883<=.008859?i=108.883*(r-s/200-16/116)/7.787:108.883*Math.pow(r-s/200,3),[t,n,i]}function B(e){var t,n,i,r=e[0],o=e[1],a=e[2];return t=Math.atan2(a,o),n=360*t/2/Math.PI,n<0&&(n+=360),i=Math.sqrt(o*o+a*a),[r,i,n]}function z(e){return L(N(e))}function F(e){var t,n,i,r=e[0],o=e[1],a=e[2];return i=a/360*2*Math.PI,t=o*Math.cos(i),n=o*Math.sin(i),[r,t,n]}function j(e){return N(F(e))}function U(e){return z(F(e))}function W(e){return K[e]}function G(e){return n(W(e))}function V(e){return i(W(e))}function H(e){return o(W(e))}function q(e){return a(W(e))}function Y(e){return u(W(e))}function X(e){return l(W(e))}e.exports={rgb2hsl:n,rgb2hsv:i,rgb2hwb:o,rgb2cmyk:a,rgb2keyword:s,rgb2xyz:l,rgb2lab:u,rgb2lch:c,hsl2rgb:d,hsl2hsv:h,hsl2hwb:f,hsl2cmyk:p,hsl2keyword:m,hsv2rgb:v,hsv2hsl:y,hsv2hwb:_,hsv2cmyk:x,hsv2keyword:w,hwb2rgb:M,hwb2hsl:S,hwb2hsv:E,hwb2cmyk:T,hwb2keyword:k,cmyk2rgb:O,cmyk2hsl:C,cmyk2hsv:P,cmyk2hwb:A,cmyk2keyword:R,keyword2rgb:W,keyword2hsl:G,keyword2hsv:V,keyword2hwb:H,keyword2cmyk:q,keyword2lab:Y,keyword2xyz:X,xyz2rgb:L,xyz2lab:I,xyz2lch:D,lab2xyz:N,lab2rgb:z,lab2lch:B,lch2lab:F,lch2xyz:j,lch2rgb:U};var K={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Z={};for(var J in K)Z[JSON.stringify(K[J])]=J},function(e,t,n){var i=n(363),r=function(){return new u};for(var o in i){r[o+\"Raw\"]=function(e){return function(t){return\"number\"==typeof t&&(t=Array.prototype.slice.call(arguments)),i[e](t)}}(o);var a=/(\\w+)2(\\w+)/.exec(o),s=a[1],l=a[2];r[s]=r[s]||{},r[s][l]=r[o]=function(e){return function(t){\"number\"==typeof t&&(t=Array.prototype.slice.call(arguments));var n=i[e](t);if(\"string\"==typeof n||void 0===n)return n;for(var r=0;r0?l=n:a=n,o>0?u=i:s=i,++c>1e4)break}return[i,n]},gcj02_bd09ll:function(e,t){var n=e,i=t,r=Math.sqrt(n*n+i*i)+2e-5*Math.sin(i*this.x_pi),o=Math.atan2(i,n)+3e-6*Math.cos(n*this.x_pi);return[r*Math.cos(o)+.0065,r*Math.sin(o)+.006]},bd09ll_gcj02:function(e,t){var n=e-.0065,i=t-.006,r=Math.sqrt(n*n+i*i)-2e-5*Math.sin(i*this.x_pi),o=Math.atan2(i,n)-3e-6*Math.cos(n*this.x_pi);return[r*Math.cos(o),r*Math.sin(o)]},outOfChina:function(e,t){return t<72.004||t>137.8347||(e<.8293||e>55.8271)},transformLat:function(e,t){var n=2*e-100+3*t+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*this.PI)+20*Math.sin(2*e*this.PI))/3,n+=2*(20*Math.sin(t*this.PI)+40*Math.sin(t/3*this.PI))/3,n+=2*(160*Math.sin(t/12*this.PI)+320*Math.sin(t*this.PI/30))/3},transformLon:function(e,t){var n=300+e+2*t+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*this.PI)+20*Math.sin(2*e*this.PI))/3,n+=2*(20*Math.sin(e*this.PI)+40*Math.sin(e/3*this.PI))/3,n+=2*(150*Math.sin(e/12*this.PI)+300*Math.sin(e/30*this.PI))/3}},i={crs:{bd09ll:\"+proj=longlat +datum=BD09\",gcj02:\"+proj=longlat +datum=GCJ02\",wgs84:\"+proj=longlat +datum=WGS84 +no_defs\"},transform:function(e,t,n){if(!e)return null;if(!t||!n)throw new Error(\"must provide a valid fromCRS and toCRS.\");if(this._isCoord(e))return this._transformCoordinate(e,t,n);if(this._isArray(e)){for(var i=[],r=0;r2){if(!l(n))throw new TypeError(\"polynomial()::invalid input argument. Options argument must be an object. Value: `\"+n+\"`.\");if(n.hasOwnProperty(\"copy\")&&(m=n.copy,!u(m)))throw new TypeError(\"polynomial()::invalid option. Copy option must be a boolean primitive. Option: `\"+m+\"`.\");if(n.hasOwnProperty(\"accessor\")&&(r=n.accessor,!c(r)))throw new TypeError(\"polynomial()::invalid option. Accessor must be a function. Option: `\"+r+\"`.\")}if(d=t.length,h=m?new Array(d):t,r)for(p=0;pc;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var i=n(33),r=n(107),o=n(52),a=n(84),s=n(390);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,d=6==e,h=5==e||d,f=t||s;return function(t,s,p){for(var m,g,v=o(t),y=r(v),b=i(s,p,3),_=a(y.length),x=0,w=n?f(t,_):l?f(t,0):void 0;_>x;x++)if((h||x in y)&&(m=y[x],g=b(m,x,v),e))if(n)w[x]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:w.push(m)}else if(c)return!1;return d?-1:u||c?c:w}}},function(e,t,n){var i=n(24),r=n(165),o=n(18)(\"species\");e.exports=function(e){var t;return r(e)&&(t=e.constructor,\"function\"!=typeof t||t!==Array&&!r(t.prototype)||(t=void 0),i(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var i=n(389);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){\"use strict\";var i=n(25).f,r=n(83),o=n(114),a=n(33),s=n(103),l=n(63),u=n(108),c=n(168),d=n(175),h=n(31),f=n(109).fastKey,p=n(178),m=h?\"_s\":\"size\",g=function(e,t){var n,i=f(t);if(\"F\"!==i)return e._i[i];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var c=e(function(e,i){s(e,c,t,\"_i\"),e._t=t,e._i=r(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=i&&l(i,n,e[u],e)});return o(c.prototype,{clear:function(){for(var e=p(this,t),n=e._i,i=e._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=p(this,t),i=g(n,e);if(i){var r=i.n,o=i.p;delete n._i[i.i],i.r=!0,o&&(o.n=r),r&&(r.p=o),n._f==i&&(n._f=r),n._l==i&&(n._l=o),n[m]--}return!!i},forEach:function(e){p(this,t);for(var n,i=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(p(this,t),e)}}),h&&i(c.prototype,\"size\",{get:function(){return p(this,t)[m]}}),c},def:function(e,t,n){var i,r,o=g(e,t);return o?o.v=n:(e._l=o={i:r=f(t,!0),k:t,v:n,p:i=e._l,n:void 0,r:!1},e._f||(e._f=o),i&&(i.n=o),e[m]++,\"F\"!==r&&(e._i[r]=o)),e},getEntry:g,setStrong:function(e,t,n){u(e,t,function(e,n){this._t=p(e,t),this._k=n,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?\"keys\"==t?c(0,n.k):\"values\"==t?c(0,n.v):c(0,[n.k,n.v]):(e._t=void 0,c(1))},n?\"entries\":\"values\",!n,!0),d(t)}}},function(e,t,n){var i=n(82),r=n(386);e.exports=function(e){return function(){if(i(this)!=e)throw TypeError(e+\"#toJSON isn't generic\");return r(this)}}},function(e,t,n){\"use strict\";var i=n(17),r=n(15),o=n(109),a=n(45),s=n(41),l=n(114),u=n(63),c=n(103),d=n(24),h=n(67),f=n(25).f,p=n(388)(0),m=n(31);e.exports=function(e,t,n,g,v,y){var b=i[e],_=b,x=v?\"set\":\"add\",w=_&&_.prototype,M={};return m&&\"function\"==typeof _&&(y||w.forEach&&!a(function(){(new _).entries().next()}))?(_=t(function(t,n){c(t,_,e,\"_c\"),t._c=new b,void 0!=n&&u(n,v,t[x],t)}),p(\"add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON\".split(\",\"),function(e){var t=\"add\"==e||\"set\"==e;e in w&&(!y||\"clear\"!=e)&&s(_.prototype,e,function(n,i){if(c(this,_,e),!t&&y&&!d(n))return\"get\"==e&&void 0;var r=this._c[e](0===n?0:n,i);return t?this:r})}),y||f(_.prototype,\"size\",{get:function(){return this._c.size}})):(_=g.getConstructor(t,e,v,x),l(_.prototype,n),o.NEED=!0),h(_,e),M[e]=_,r(r.G+r.W+r.F,M),y||g.setStrong(_,e,v),_}},function(e,t,n){\"use strict\";var i=n(25),r=n(66);e.exports=function(e,t,n){t in e?i.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){var i=n(51),r=n(112),o=n(65);e.exports=function(e){var t=i(e),n=r.f;if(n)for(var a,s=n(e),l=o.f,u=0;s.length>u;)l.call(e,a=s[u++])&&t.push(a);return t}},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){\"use strict\";var i=n(83),r=n(66),o=n(67),a={};n(41)(a,n(18)(\"iterator\"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(a,{next:r(1,n)}),o(e,t+\" Iterator\")}},function(e,t,n){var i=n(17),r=n(177).set,o=i.MutationObserver||i.WebKitMutationObserver,a=i.process,s=i.Promise,l=\"process\"==n(62)(a);e.exports=function(){var e,t,n,u=function(){var i,r;for(l&&(i=a.domain)&&i.exit();e;){r=e.fn,e=e.next;try{r()}catch(i){throw e?n():t=void 0,i}}t=void 0,i&&i.enter()};if(l)n=function(){a.nextTick(u)};else if(!o||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(u)}}else n=function(){r.call(i,u)};else{var d=!0,h=document.createTextNode(\"\");new o(u).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(i){var r={fn:i,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}},function(e,t,n){\"use strict\";var i=n(51),r=n(112),o=n(65),a=n(52),s=n(107),l=Object.assign;e.exports=!l||n(45)(function(){var e={},t={},n=Symbol(),i=\"abcdefghijklmnopqrst\";return e[n]=7,i.split(\"\").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join(\"\")!=i})?function(e,t){for(var n=a(e),l=arguments.length,u=1,c=r.f,d=o.f;l>u;)for(var h,f=s(arguments[u++]),p=c?i(f).concat(c(f)):i(f),m=p.length,g=0;m>g;)d.call(f,h=p[g++])&&(n[h]=f[h]);return n}:l},function(e,t,n){var i=n(25),r=n(30),o=n(51);e.exports=n(31)?Object.defineProperties:function(e,t){r(e);for(var n,a=o(t),s=a.length,l=0;s>l;)i.f(e,n=a[l++],t[n]);return e}},function(e,t,n){var i=n(42),r=n(169).f,o={}.toString,a=\"object\"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&\"[object Window]\"==o.call(e)?s(e):r(i(e))}},function(e,t,n){var i=n(51),r=n(42),o=n(65).f;e.exports=function(e){return function(t){for(var n,a=r(t),s=i(a),l=s.length,u=0,c=[];l>u;)o.call(a,n=s[u++])&&c.push(e?[n,a[n]]:a[n]);return c}}},function(e,t,n){\"use strict\";var i=n(15),r=n(61),o=n(33),a=n(63);e.exports=function(e){i(i.S,e,{from:function(e){var t,n,i,s,l=arguments[1];return r(this),t=void 0!==l,t&&r(l),void 0==e?new this:(n=[],t?(i=0,s=o(l,arguments[2],2),a(e,!1,function(e){n.push(s(e,i++))})):a(e,!1,n.push,n),new this(n))}})}},function(e,t,n){\"use strict\";var i=n(15);e.exports=function(e){i(i.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){var i=n(24),r=n(30),o=function(e,t){if(r(e),!i(t)&&null!==t)throw TypeError(t+\": can't set as prototype!\")};e.exports={set:Object.setPrototypeOf||(\"__proto__\"in{}?function(e,t,i){try{i=n(33)(Function.call,n(111).f(Object.prototype,\"__proto__\").set,2),i(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){var i=n(117),r=n(104);e.exports=function(e){return function(t,n){var o,a,s=String(r(t)),l=i(n),u=s.length;return l<0||l>=u?e?\"\":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},function(e,t,n){var i=n(117),r=Math.max,o=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):o(e,t)}},function(e,t,n){var i=n(17),r=i.navigator;e.exports=r&&r.userAgent||\"\"},function(e,t,n){var i=n(30),r=n(121);e.exports=n(10).getIterator=function(e){var t=r(e);if(\"function\"!=typeof t)throw TypeError(e+\" is not iterable!\");return i(t.call(e))}},function(e,t,n){var i=n(82),r=n(18)(\"iterator\"),o=n(50);e.exports=n(10).isIterable=function(e){var t=Object(e);return void 0!==t[r]||\"@@iterator\"in t||o.hasOwnProperty(i(t))}},function(e,t,n){\"use strict\";var i=n(33),r=n(15),o=n(52),a=n(166),s=n(164),l=n(84),u=n(394),c=n(121);r(r.S+r.F*!n(167)(function(e){Array.from(e)}),\"Array\",{from:function(e){var t,n,r,d,h=o(e),f=\"function\"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,y=c(h);if(g&&(m=i(m,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&s(y))for(t=l(h.length),n=new f(t);t>v;v++)u(n,v,g?m(h[v],v):h[v]);else for(d=y.call(h),n=new f;!(r=d.next()).done;v++)u(n,v,g?a(d,m,[r.value,v],!0):r.value);return n.length=v,n}})},function(e,t,n){\"use strict\";var i=n(385),r=n(168),o=n(50),a=n(42);e.exports=n(108)(Array,\"Array\",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):\"keys\"==t?r(0,n):\"values\"==t?r(0,e[n]):r(0,[n,e[n]])},\"values\"),o.Arguments=o.Array,i(\"keys\"),i(\"values\"),i(\"entries\")},function(e,t,n){var i=n(15);i(i.S,\"Math\",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var i=n(15);i(i.S+i.F,\"Object\",{assign:n(399)})},function(e,t,n){var i=n(15);i(i.S,\"Object\",{create:n(83)})},function(e,t,n){var i=n(15);i(i.S+i.F*!n(31),\"Object\",{defineProperty:n(25).f})},function(e,t,n){var i=n(42),r=n(111).f;n(113)(\"getOwnPropertyDescriptor\",function(){return function(e,t){return r(i(e),t)}})},function(e,t,n){var i=n(52),r=n(170);n(113)(\"getPrototypeOf\",function(){return function(e){return r(i(e))}})},function(e,t,n){var i=n(52),r=n(51);n(113)(\"keys\",function(){return function(e){return r(i(e))}})},function(e,t,n){var i=n(15);i(i.S,\"Object\",{setPrototypeOf:n(405).set})},function(e,t,n){\"use strict\";var i,r,o,a,s=n(64),l=n(17),u=n(33),c=n(82),d=n(15),h=n(24),f=n(61),p=n(103),m=n(63),g=n(176),v=n(177).set,y=n(398)(),b=n(110),_=n(172),x=n(408),w=n(173),M=l.TypeError,S=l.process,E=S&&S.versions,T=E&&E.v8||\"\",k=l.Promise,O=\"process\"==c(S),C=function(){},P=r=b.f,A=!!function(){try{var e=k.resolve(1),t=(e.constructor={})[n(18)(\"species\")]=function(e){e(C,C)};return(O||\"function\"==typeof PromiseRejectionEvent)&&e.then(C)instanceof t&&0!==T.indexOf(\"6.6\")&&-1===x.indexOf(\"Chrome/66\")}catch(e){}}(),R=function(e){var t;return!(!h(e)||\"function\"!=typeof(t=e.then))&&t},L=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var i=e._v,r=1==e._s,o=0;n.length>o;)!function(t){var n,o,a,s=r?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{s?(r||(2==e._h&&N(e),e._h=1),!0===s?n=i:(c&&c.enter(),n=s(i),c&&(c.exit(),a=!0)),n===t.promise?u(M(\"Promise-chain cycle\")):(o=R(n))?o.call(n,l,u):l(n)):u(i)}catch(e){c&&!a&&c.exit(),u(e)}}(n[o++]);e._c=[],e._n=!1,t&&!e._h&&I(e)})}},I=function(e){v.call(l,function(){var t,n,i,r=e._v,o=D(e);if(o&&(t=_(function(){O?S.emit(\"unhandledRejection\",r,e):(n=l.onunhandledrejection)?n({promise:e,reason:r}):(i=l.console)&&i.error&&i.error(\"Unhandled promise rejection\",r)}),e._h=O||D(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},N=function(e){v.call(l,function(){var t;O?S.emit(\"rejectionHandled\",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},B=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),L(t,!0))},z=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw M(\"Promise can't be resolved itself\");(t=R(e))?y(function(){var i={_w:n,_d:!1};try{t.call(e,u(z,i,1),u(B,i,1))}catch(e){B.call(i,e)}}):(n._v=e,n._s=1,L(n,!1))}catch(e){B.call({_w:n,_d:!1},e)}}};A||(k=function(e){p(this,k,\"Promise\",\"_h\"),f(e),i.call(this);try{e(u(z,this,1),u(B,this,1))}catch(e){B.call(this,e)}},i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n(114)(k.prototype,{then:function(e,t){var n=P(g(this,k));return n.ok=\"function\"!=typeof e||e,n.fail=\"function\"==typeof t&&t,n.domain=O?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new i;this.promise=e,this.resolve=u(z,e,1),this.reject=u(B,e,1)},b.f=P=function(e){return e===k||e===a?new o(e):r(e)}),d(d.G+d.W+d.F*!A,{Promise:k}),n(67)(k,\"Promise\"),n(175)(\"Promise\"),a=n(10).Promise,d(d.S+d.F*!A,\"Promise\",{reject:function(e){var t=P(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!A),\"Promise\",{resolve:function(e){return w(s&&this===a?k:this,e)}}),d(d.S+d.F*!(A&&n(167)(function(e){k.all(e).catch(C)})),\"Promise\",{all:function(e){var t=this,n=P(t),i=n.resolve,r=n.reject,o=_(function(){var n=[],o=0,a=1;m(e,!1,function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||i(n))},r)}),--a||i(n)});return o.e&&r(o.v),n.promise},race:function(e){var t=this,n=P(t),i=n.reject,r=_(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},function(e,t,n){\"use strict\";var i=n(391),r=n(178);e.exports=n(393)(\"Set\",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return i.def(r(this,\"Set\"),e=0===e?0:e,e)}},i)},function(e,t,n){\"use strict\";var i=n(17),r=n(46),o=n(31),a=n(15),s=n(174),l=n(109).KEY,u=n(45),c=n(116),d=n(67),h=n(85),f=n(18),p=n(120),m=n(119),g=n(395),v=n(165),y=n(30),b=n(24),_=n(42),x=n(118),w=n(66),M=n(83),S=n(401),E=n(111),T=n(25),k=n(51),O=E.f,C=T.f,P=S.f,A=i.Symbol,R=i.JSON,L=R&&R.stringify,I=f(\"_hidden\"),D=f(\"toPrimitive\"),N={}.propertyIsEnumerable,B=c(\"symbol-registry\"),z=c(\"symbols\"),F=c(\"op-symbols\"),j=Object.prototype,U=\"function\"==typeof A,W=i.QObject,G=!W||!W.prototype||!W.prototype.findChild,V=o&&u(function(){return 7!=M(C({},\"a\",{get:function(){return C(this,\"a\",{value:7}).a}})).a})?function(e,t,n){var i=O(j,t);i&&delete j[t],C(e,t,n),i&&e!==j&&C(j,t,i)}:C,H=function(e){var t=z[e]=M(A.prototype);return t._k=e,t},q=U&&\"symbol\"==typeof A.iterator?function(e){return\"symbol\"==typeof e}:function(e){return e instanceof A},Y=function(e,t,n){return e===j&&Y(F,t,n),y(e),t=x(t,!0),y(n),r(z,t)?(n.enumerable?(r(e,I)&&e[I][t]&&(e[I][t]=!1),n=M(n,{enumerable:w(0,!1)})):(r(e,I)||C(e,I,w(1,{})),e[I][t]=!0),V(e,t,n)):C(e,t,n)},X=function(e,t){y(e);for(var n,i=g(t=_(t)),r=0,o=i.length;o>r;)Y(e,n=i[r++],t[n]);return e},K=function(e,t){return void 0===t?M(e):X(M(e),t)},Z=function(e){var t=N.call(this,e=x(e,!0));return!(this===j&&r(z,e)&&!r(F,e))&&(!(t||!r(this,e)||!r(z,e)||r(this,I)&&this[I][e])||t)},J=function(e,t){if(e=_(e),t=x(t,!0),e!==j||!r(z,t)||r(F,t)){var n=O(e,t);return!n||!r(z,t)||r(e,I)&&e[I][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=P(_(e)),i=[],o=0;n.length>o;)r(z,t=n[o++])||t==I||t==l||i.push(t);return i},$=function(e){for(var t,n=e===j,i=P(n?F:_(e)),o=[],a=0;i.length>a;)!r(z,t=i[a++])||n&&!r(j,t)||o.push(z[t]);return o};U||(A=function(){if(this instanceof A)throw TypeError(\"Symbol is not a constructor!\");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===j&&t.call(F,n),r(this,I)&&r(this[I],e)&&(this[I][e]=!1),V(this,e,w(1,n))};return o&&G&&V(j,e,{configurable:!0,set:t}),H(e)},s(A.prototype,\"toString\",function(){return this._k}),E.f=J,T.f=Y,n(169).f=S.f=Q,n(65).f=Z,n(112).f=$,o&&!n(64)&&s(j,\"propertyIsEnumerable\",Z,!0),p.f=function(e){return H(f(e))}),a(a.G+a.W+a.F*!U,{Symbol:A});for(var ee=\"hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables\".split(\",\"),te=0;ee.length>te;)f(ee[te++]);for(var ne=k(f.store),ie=0;ne.length>ie;)m(ne[ie++]);a(a.S+a.F*!U,\"Symbol\",{for:function(e){return r(B,e+=\"\")?B[e]:B[e]=A(e)},keyFor:function(e){if(!q(e))throw TypeError(e+\" is not a symbol!\");for(var t in B)if(B[t]===e)return t},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!U,\"Object\",{create:K,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:$}),R&&a(a.S+a.F*(!U||u(function(){var e=A();return\"[null]\"!=L([e])||\"{}\"!=L({a:e})||\"{}\"!=L(Object(e))})),\"JSON\",{stringify:function(e){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=t=i[1],(b(t)||void 0!==e)&&!q(e))return v(t)||(t=function(e,t){if(\"function\"==typeof n&&(t=n.call(this,e,t)),!q(t))return t}),i[1]=t,L.apply(R,i)}}),A.prototype[D]||n(41)(A.prototype,D,A.prototype.valueOf),d(A,\"Symbol\"),d(Math,\"Math\",!0),d(i.JSON,\"JSON\",!0)},function(e,t,n){var i=n(15),r=n(402)(!1);i(i.S,\"Object\",{values:function(e){return r(e)}})},function(e,t,n){\"use strict\";var i=n(15),r=n(10),o=n(17),a=n(176),s=n(173);i(i.P+i.R,\"Promise\",{finally:function(e){var t=a(this,r.Promise||o.Promise),n=\"function\"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){\"use strict\";var i=n(15),r=n(110),o=n(172);i(i.S,\"Promise\",{try:function(e){var t=r.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){n(403)(\"Set\")},function(e,t,n){n(404)(\"Set\")},function(e,t,n){var i=n(15);i(i.P+i.R,\"Set\",{toJSON:n(392)(\"Set\")})},function(e,t,n){n(119)(\"asyncIterator\")},function(e,t,n){n(119)(\"observable\")},function(e,t,n){function i(e,t){if(e){var n,i=\"\";for(var r in e)n=e[r],i&&(i+=\" \"),!n&&d[r]?i+=r:i+=r+'=\"'+(t.decodeEntities?c.encodeXML(n):n)+'\"';return i}}function r(e,t){\"svg\"===e.name&&(t={decodeEntities:t.decodeEntities,xmlMode:!0});var n=\"<\"+e.name,r=i(e.attribs,t);return r&&(n+=\" \"+r),!t.xmlMode||e.children&&0!==e.children.length?(n+=\">\",e.children&&(n+=p(e.children,t)),f[e.name]&&!t.xmlMode||(n+=\"\")):n+=\"/>\",n}function o(e){return\"<\"+e.data+\">\"}function a(e,t){var n=e.data||\"\";return!t.decodeEntities||e.parent&&e.parent.name in h||(n=c.encodeXML(n)),n}function s(e){return\"\"}function l(e){return\"\\x3c!--\"+e.data+\"--\\x3e\"}var u=n(433),c=n(436),d={__proto__:null,allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,hidden:!0,ismap:!0,loop:!0,multiple:!0,muted:!0,open:!0,readonly:!0,required:!0,reversed:!0,scoped:!0,seamless:!0,selected:!0,typemustmatch:!0},h={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0},f={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},p=e.exports=function(e,t){Array.isArray(e)||e.cheerio||(e=[e]),t=t||{};for(var n=\"\",i=0;i0&&(r=1/Math.sqrt(r),e[0]=t[0]*r,e[1]=t[1]*r),e}e.exports=n},function(e,t){function n(e,t,n){return e[0]=t,e[1]=n,e}e.exports=n},function(e,t){function n(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}e.exports=n},function(e,t,n){function i(e){this._cbs=e||{},this.events=[]}e.exports=i;var r=n(72).EVENTS;Object.keys(r).forEach(function(e){if(0===r[e])e=\"on\"+e,i.prototype[e]=function(){this.events.push([e]),this._cbs[e]&&this._cbs[e]()};else if(1===r[e])e=\"on\"+e,i.prototype[e]=function(t){this.events.push([e,t]),this._cbs[e]&&this._cbs[e](t)};else{if(2!==r[e])throw Error(\"wrong number of arguments\");e=\"on\"+e,i.prototype[e]=function(t,n){this.events.push([e,t,n]),this._cbs[e]&&this._cbs[e](t,n)}}}),i.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},i.prototype.restart=function(){this._cbs.onreset&&this._cbs.onreset();for(var e=0,t=this.events.length;e-1;){for(t=n=e[r],e[r]=null,i=!0;n;){if(e.indexOf(n)>-1){i=!1,e.splice(r,1);break}n=n.parent}i&&(e[r]=t)}return e};var n={DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16},i=t.compareDocumentPosition=function(e,t){var i,r,o,a,s,l,u=[],c=[];if(e===t)return 0;for(i=e;i;)u.unshift(i),i=i.parent;for(i=t;i;)c.unshift(i),i=i.parent;for(l=0;u[l]===c[l];)l++;return 0===l?n.DISCONNECTED:(r=u[l-1],o=r.children,a=u[l],s=c[l],o.indexOf(a)>o.indexOf(s)?r===t?n.FOLLOWING|n.CONTAINED_BY:n.FOLLOWING:r===e?n.PRECEDING|n.CONTAINS:n.PRECEDING)};t.uniqueSort=function(e){var t,r,o=e.length;for(e=e.slice();--o>-1;)t=e[o],(r=e.indexOf(t))>-1&&r0&&(o=r(e,o,n,i),a=a.concat(o),(i-=o.length)<=0)));s++);return a}function o(e,t){for(var n=0,i=t.length;n0&&(n=a(e,t[i].children)));return n}function s(e,t){for(var n=0,i=t.length;n0&&s(e,t[n].children)))return!0;return!1}function l(e,t){for(var n=[],i=t.slice();i.length;){var r=i.shift();u(r)&&(r.children&&r.children.length>0&&i.unshift.apply(i,r.children),e(r)&&n.push(r))}return n}var u=n(71).isTag;e.exports={filter:i,find:r,findOneChild:o,findOne:a,existsOne:s,findAll:l}},function(e,t,n){function i(e,t){return e.children?e.children.map(function(e){return a(e,t)}).join(\"\"):\"\"}function r(e){return Array.isArray(e)?e.map(r).join(\"\"):s(e)?\"br\"===e.name?\"\\n\":r(e.children):e.type===o.CDATA?r(e.children):e.type===o.Text?e.data:\"\"}var o=n(71),a=n(432),s=o.isTag;e.exports={getInnerHTML:i,getOuterHTML:a,getText:r}},function(e,t){var n=t.getChildren=function(e){return e.children},i=t.getParent=function(e){return e.parent};t.getSiblings=function(e){var t=i(e);return t?n(t):[e]},t.getAttributeValue=function(e,t){return e.attribs&&e.attribs[t]},t.hasAttrib=function(e,t){return!!e.attribs&&hasOwnProperty.call(e.attribs,t)},t.getName=function(e){return e.name}},function(e,t,n){\"use strict\";function i(e){return e in a?a[e]:a[e]=e.replace(r,\"-$&\").toLowerCase().replace(o,\"-ms-\")}var r=/[A-Z]/g,o=/^ms-/,a={};e.exports=i},function(e,t){t.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,l=(1<>1,c=-7,d=n?r-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=i;c>0;a=256*a+e[t+d],d+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=u}return(f?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var a,s,l,u=8*o-r-1,c=(1<>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+d>=1?h/l:h*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+f]=255&s,f+=p,s/=256,r-=8);for(a=a<0;e[n+f]=255&a,f+=p,a/=256,u-=8);e[n+f-p]|=128*m}},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function o(e){var t=e.prefixMap,n=e.plugins,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};return function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e);var i=\"undefined\"!=typeof navigator?navigator.userAgent:void 0;if(this._userAgent=n.userAgent||i,this._keepUnprefixed=n.keepUnprefixed||!1,this._userAgent&&(this._browserInfo=(0,l.default)(this._userAgent)),!this._browserInfo||!this._browserInfo.cssPrefix)return this._useFallback=!0,!1;this.prefixedKeyframes=(0,c.default)(this._browserInfo.browserName,this._browserInfo.browserVersion,this._browserInfo.cssPrefix);var o=this._browserInfo.browserName&&t[this._browserInfo.browserName];if(o){this._requiresPrefix={};for(var a in o)o[a]>=this._browserInfo.browserVersion&&(this._requiresPrefix[a]=!0);this._hasPropsRequiringPrefix=Object.keys(this._requiresPrefix).length>0}else this._useFallback=!0;this._metaData={browserVersion:this._browserInfo.browserVersion,browserName:this._browserInfo.browserName,cssPrefix:this._browserInfo.cssPrefix,jsPrefix:this._browserInfo.jsPrefix,keepUnprefixed:this._keepUnprefixed,requiresPrefix:this._requiresPrefix}}return a(e,[{key:\"prefix\",value:function(e){return this._useFallback?i(e):this._hasPropsRequiringPrefix?this._prefixStyle(e):e}},{key:\"_prefixStyle\",value:function(e){for(var t in e){var i=e[t];if((0,g.default)(i))e[t]=this.prefix(i);else if(Array.isArray(i)){for(var r=[],o=0,a=i.length;o0&&(e[t]=r)}else{var l=(0,y.default)(n,t,i,e,this._metaData);l&&(e[t]=l),this._requiresPrefix.hasOwnProperty(t)&&(e[this._browserInfo.jsPrefix+(0,h.default)(t)]=i,this._keepUnprefixed||delete e[t])}}return e}}],[{key:\"prefixAll\",value:function(e){return i(e)}}]),e}()}Object.defineProperty(t,\"__esModule\",{value:!0});var a=function(){function e(e,t){for(var n=0;n-1&&(\"chrome\"===r||\"opera\"===r||\"and_chr\"===r||(\"ios_saf\"===r||\"safari\"===r)&&a<10))return(0,o.default)(t.replace(/cross-fade\\(/g,s+\"cross-fade(\"),t,l)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.browserName,l=i.browserVersion,u=i.cssPrefix,c=i.keepUnprefixed;return\"cursor\"!==e||!a[t]||\"firefox\"!==r&&\"chrome\"!==r&&\"safari\"!==r&&\"opera\"!==r?\"cursor\"===e&&s[t]&&(\"firefox\"===r&&l<24||\"chrome\"===r&&l<37||\"safari\"===r&&l<9||\"opera\"===r&&l<24)?(0,o.default)(u+t,t,c):void 0:(0,o.default)(u+t,t,c)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a={grab:!0,grabbing:!0},s={\"zoom-in\":!0,\"zoom-out\":!0};e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.browserName,a=i.browserVersion,s=i.cssPrefix,l=i.keepUnprefixed;if(\"string\"==typeof t&&t.indexOf(\"filter(\")>-1&&(\"ios_saf\"===r||\"safari\"===r&&a<9.1))return(0,o.default)(t.replace(/filter\\(/g,s+\"filter(\"),t,l)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.browserName,s=i.browserVersion,l=i.cssPrefix,u=i.keepUnprefixed;if(\"display\"===e&&a[t]&&(\"chrome\"===r&&s<29&&s>20||(\"safari\"===r||\"ios_saf\"===r)&&s<9&&s>6||\"opera\"===r&&(15===s||16===s)))return(0,o.default)(l+t,t,u)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a={flex:!0,\"inline-flex\":!0};e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.browserName,l=i.browserVersion,c=i.cssPrefix,d=i.keepUnprefixed,h=i.requiresPrefix;if((u.indexOf(e)>-1||\"display\"===e&&\"string\"==typeof t&&t.indexOf(\"flex\")>-1)&&(\"firefox\"===r&&l<22||\"chrome\"===r&&l<21||(\"safari\"===r||\"ios_saf\"===r)&&l<=6.1||\"android\"===r&&l<4.4||\"and_uc\"===r)){if(delete h[e],d||Array.isArray(n[e])||delete n[e],\"flexDirection\"===e&&\"string\"==typeof t&&(t.indexOf(\"column\")>-1?n.WebkitBoxOrient=\"vertical\":n.WebkitBoxOrient=\"horizontal\",t.indexOf(\"reverse\")>-1?n.WebkitBoxDirection=\"reverse\":n.WebkitBoxDirection=\"normal\"),\"display\"===e&&a.hasOwnProperty(t))return(0,o.default)(c+a[t],t,d);s.hasOwnProperty(e)&&(n[s[e]]=a[t]||t)}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a={\"space-around\":\"justify\",\"space-between\":\"justify\",\"flex-start\":\"start\",\"flex-end\":\"end\",\"wrap-reverse\":\"multiple\",wrap:\"multiple\",flex:\"box\",\"inline-flex\":\"inline-box\"},s={alignItems:\"WebkitBoxAlign\",justifyContent:\"WebkitBoxPack\",flexWrap:\"WebkitBoxLines\"},l=[\"alignContent\",\"alignSelf\",\"order\",\"flexGrow\",\"flexShrink\",\"flexBasis\",\"flexDirection\"],u=Object.keys(s).concat(l);e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.browserName,s=i.browserVersion,l=i.cssPrefix,u=i.keepUnprefixed;if(\"string\"==typeof t&&a.test(t)&&(\"firefox\"===r&&s<16||\"chrome\"===r&&s<26||(\"safari\"===r||\"ios_saf\"===r)&&s<7||(\"opera\"===r||\"op_mini\"===r)&&s<12.1||\"android\"===r&&s<4.4||\"and_uc\"===r))return(0,o.default)(l+t,t,u)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.browserName,a=i.cssPrefix,s=i.keepUnprefixed;if(\"string\"==typeof t&&t.indexOf(\"image-set(\")>-1&&(\"chrome\"===r||\"opera\"===r||\"and_chr\"===r||\"and_uc\"===r||\"ios_saf\"===r||\"safari\"===r))return(0,o.default)(t.replace(/image-set\\(/g,a+\"image-set(\"),t,s)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.browserName,a=i.cssPrefix,s=i.keepUnprefixed;if(\"position\"===e&&\"sticky\"===t&&(\"safari\"===r||\"ios_saf\"===r))return(0,o.default)(a+t,t,s)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.cssPrefix,l=i.keepUnprefixed;if(a.hasOwnProperty(e)&&s.hasOwnProperty(t))return(0,o.default)(r+t,t,l)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(34),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},s={\"min-content\":!0,\"max-content\":!0,\"fill-available\":!0,\"fit-content\":!0,\"contain-floats\":!0};e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=i.cssPrefix,l=i.keepUnprefixed,u=i.requiresPrefix;if(\"string\"==typeof t&&a.hasOwnProperty(e)){s||(s=Object.keys(u).map(function(e){return(0,o.default)(e)}));var c=t.split(/,(?![^()]*(?:\\([^()]*\\))?\\))/g);return s.forEach(function(e){c.forEach(function(t,n){t.indexOf(e)>-1&&\"order\"!==e&&(c[n]=t.replace(e,r+e)+(l?\",\"+t:\"\"))})}),c.join(\",\")}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(179),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},s=void 0;e.exports=t.default},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){function t(e){for(var r in e){var o=e[r];if((0,h.default)(o))e[r]=t(o);else if(Array.isArray(o)){for(var s=[],u=0,d=o.length;u0&&(e[r]=s)}else{var p=(0,l.default)(i,r,o,e,n);p&&(e[r]=p),(0,a.default)(n,r,e)}}return e}var n=e.prefixMap,i=e.plugins;return t}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=r;var o=n(485),a=i(o),s=n(187),l=i(s),u=n(185),c=i(u),d=n(186),h=i(d);e.exports=t.default},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(470),o=i(r),a=n(482),s=i(a),l=n(473),u=i(l),c=n(472),d=i(c),h=n(474),f=i(h),p=n(475),m=i(p),g=n(476),v=i(g),y=n(477),b=i(y),_=n(478),x=i(_),w=n(479),M=i(w),S=n(480),E=i(S),T=n(481),k=i(T),O=[d.default,u.default,f.default,v.default,b.default,x.default,M.default,E.default,k.default,m.default];t.default=(0,o.default)({prefixMap:s.default.prefixMap,plugins:O}),e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t){if(\"string\"==typeof t&&!(0,o.default)(t)&&t.indexOf(\"cross-fade(\")>-1)return a.map(function(e){return t.replace(/cross-fade\\(/g,e+\"cross-fade(\")})}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(70),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=[\"-webkit-\",\"\"];e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t){if(\"cursor\"===e&&o.hasOwnProperty(t))return r.map(function(e){return e+t})}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=[\"-webkit-\",\"-moz-\",\"\"],o={\"zoom-in\":!0,\"zoom-out\":!0,grab:!0,grabbing:!0};e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t){if(\"string\"==typeof t&&!(0,o.default)(t)&&t.indexOf(\"filter(\")>-1)return a.map(function(e){return t.replace(/filter\\(/g,e+\"filter(\")})}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(70),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=[\"-webkit-\",\"\"];e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t){if(\"display\"===e&&r.hasOwnProperty(t))return r[t]}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r={flex:[\"-webkit-box\",\"-moz-box\",\"-ms-flexbox\",\"-webkit-flex\",\"flex\"],\"inline-flex\":[\"-webkit-inline-box\",\"-moz-inline-box\",\"-ms-inline-flexbox\",\"-webkit-inline-flex\",\"inline-flex\"]};e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n){\"flexDirection\"===e&&\"string\"==typeof t&&(t.indexOf(\"column\")>-1?n.WebkitBoxOrient=\"vertical\":n.WebkitBoxOrient=\"horizontal\",t.indexOf(\"reverse\")>-1?n.WebkitBoxDirection=\"reverse\":n.WebkitBoxDirection=\"normal\"),o.hasOwnProperty(e)&&(n[o[e]]=r[t]||t)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r={\"space-around\":\"justify\",\"space-between\":\"justify\",\"flex-start\":\"start\",\"flex-end\":\"end\",\"wrap-reverse\":\"multiple\",wrap:\"multiple\"},o={alignItems:\"WebkitBoxAlign\",justifyContent:\"WebkitBoxPack\",flexWrap:\"WebkitBoxLines\"};e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t){if(\"string\"==typeof t&&!(0,o.default)(t)&&s.test(t))return a.map(function(e){return e+t})}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(70),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=[\"-webkit-\",\"-moz-\",\"\"],s=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t){if(\"string\"==typeof t&&!(0,o.default)(t)&&t.indexOf(\"image-set(\")>-1)return a.map(function(e){return t.replace(/image-set\\(/g,e+\"image-set(\")})}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=n(70),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=[\"-webkit-\",\"\"];e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t){if(\"position\"===e&&\"sticky\"===t)return[\"-webkit-sticky\",\"sticky\"]}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i,e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t){if(o.hasOwnProperty(e)&&a.hasOwnProperty(t))return r.map(function(e){return e+t})}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i;var r=[\"-webkit-\",\"-moz-\",\"\"],o={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},a={\"min-content\":!0,\"max-content\":!0,\"fill-available\":!0,\"fit-content\":!0,\"contain-floats\":!0};e.exports=t.default},function(e,t,n){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if((0,u.default)(e))return e;for(var n=e.split(/,(?![^()]*(?:\\([^()]*\\))?\\))/g),i=0,r=n.length;i-1&&\"order\"!==c)for(var d=t[l],h=0,p=d.length;h-1)return a;var s=o.split(/,(?![^()]*(?:\\([^()]*\\))?\\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(\",\");return e.indexOf(\"Moz\")>-1?s:(n[\"Webkit\"+(0,d.default)(e)]=a,n[\"Moz\"+(0,d.default)(e)]=s,o)}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=o;var a=n(179),s=i(a),l=n(70),u=i(l),c=n(124),d=i(c),h={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},f={Webkit:\"-webkit-\",Moz:\"-moz-\",ms:\"-ms-\"};e.exports=t.default},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=[\"Webkit\"],r=[\"Moz\"],o=[\"ms\"],a=[\"Webkit\",\"Moz\"],s=[\"Webkit\",\"ms\"],l=[\"Webkit\",\"Moz\",\"ms\"];t.default={plugins:[],prefixMap:{appearance:a,userSelect:l,textEmphasisPosition:i,textEmphasis:i,textEmphasisStyle:i,textEmphasisColor:i,boxDecorationBreak:i,clipPath:i,maskImage:i,maskMode:i,maskRepeat:i,maskPosition:i,maskClip:i,maskOrigin:i,maskSize:i,maskComposite:i,mask:i,maskBorderSource:i,maskBorderMode:i,maskBorderSlice:i,maskBorderWidth:i,maskBorderOutset:i,maskBorderRepeat:i,maskBorder:i,maskType:i,textDecorationStyle:i,textDecorationSkip:i,textDecorationLine:i,textDecorationColor:i,filter:i,fontFeatureSettings:i,breakAfter:l,breakBefore:l,breakInside:l,columnCount:a,columnFill:a,columnGap:a,columnRule:a,columnRuleColor:a,columnRuleStyle:a,columnRuleWidth:a,columns:a,columnSpan:a,columnWidth:a,writingMode:s,flex:i,flexBasis:i,flexDirection:i,flexGrow:i,flexFlow:i,flexShrink:i,flexWrap:i,alignContent:i,alignItems:i,alignSelf:i,justifyContent:i,order:i,transform:i,transformOrigin:i,transformOriginX:i,transformOriginY:i,backfaceVisibility:i,perspective:i,perspectiveOrigin:i,transformStyle:i,transformOriginZ:i,animation:i,animationDelay:i,animationDirection:i,animationFillMode:i,animationDuration:i,animationIterationCount:i,animationName:i,animationPlayState:i,animationTimingFunction:i,backdropFilter:i,fontKerning:i,scrollSnapType:s,scrollSnapPointsX:s,scrollSnapPointsY:s,scrollSnapDestination:s,scrollSnapCoordinate:s,shapeImageThreshold:i,shapeImageMargin:i,shapeImageOutside:i,hyphens:l,flowInto:s,flowFrom:s,regionFragment:s,textAlignLast:r,tabSize:r,wrapFlow:o,wrapThrough:o,wrapMargin:o,gridTemplateColumns:o,gridTemplateRows:o,gridTemplateAreas:o,gridTemplate:o,gridAutoColumns:o,gridAutoRows:o,gridAutoFlow:o,grid:o,gridRowStart:o,gridColumnStart:o,gridRowEnd:o,gridRow:o,gridColumn:o,gridColumnEnd:o,gridColumnGap:o,gridRowGap:o,gridArea:o,gridGap:o,textSizeAdjust:s,borderImage:i,borderImageOutset:i,borderImageRepeat:i,borderImageSlice:i,borderImageSource:i,borderImageWidth:i,transitionDelay:i,transitionDuration:i,transitionProperty:i,transitionTimingFunction:i}},e.exports=t.default},function(e,t,n){\"use strict\";function i(e){if(e.firefox)return\"firefox\";if(e.mobile||e.tablet){if(e.ios)return\"ios_saf\";if(e.android)return\"android\";if(e.opera)return\"op_mini\"}for(var t in l)if(e.hasOwnProperty(t))return l[t]}function r(e){var t=a.default._detect(e);t.yandexbrowser&&(t=a.default._detect(e.replace(/YaBrowser\\/[0-9.]*/,\"\")));for(var n in s)if(t.hasOwnProperty(n)){var r=s[n];t.jsPrefix=r,t.cssPrefix=\"-\"+r.toLowerCase()+\"-\";break}return t.browserName=i(t),t.version?t.browserVersion=parseFloat(t.version):t.browserVersion=parseInt(parseFloat(t.osversion),10),t.osVersion=parseFloat(t.osversion),\"ios_saf\"===t.browserName&&t.browserVersion>t.osVersion&&(t.browserVersion=t.osVersion),\"android\"===t.browserName&&t.chrome&&t.browserVersion>37&&(t.browserName=\"and_chr\"),\"android\"===t.browserName&&t.osVersion<5&&(t.browserVersion=t.osVersion),\"android\"===t.browserName&&t.samsungBrowser&&(t.browserName=\"and_chr\",t.browserVersion=44),t}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=r;var o=n(323),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s={chrome:\"Webkit\",safari:\"Webkit\",ios:\"Webkit\",android:\"Webkit\",phantom:\"Webkit\",opera:\"Webkit\",webos:\"Webkit\",blackberry:\"Webkit\",bada:\"Webkit\",tizen:\"Webkit\",chromium:\"Webkit\",vivaldi:\"Webkit\",firefox:\"Moz\",seamoney:\"Moz\",sailfish:\"Moz\",msie:\"ms\",msedge:\"ms\"},l={chrome:\"chrome\",chromium:\"chrome\",safari:\"safari\",firfox:\"firefox\",msedge:\"edge\",opera:\"opera\",vivaldi:\"opera\",msie:\"ie\"};e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n){return\"chrome\"===e&&t<43||(\"safari\"===e||\"ios_saf\"===e)&&t<9||\"opera\"===e&&t<30||\"android\"===e&&t<=4.4||\"and_uc\"===e?n+\"keyframes\":\"keyframes\"}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=i,e.exports=t.default},function(e,t,n){\"use strict\";function i(e,t,n){if(e.hasOwnProperty(t))for(var i=e[t],r=0,a=i.length;r0)for(n=0;n0?\"future\":\"past\"];return E(n)?n(t):n.replace(/%s/i,t)}function D(e,t){var n=e.toLowerCase();Bi[n]=Bi[n+\"s\"]=Bi[t]=e}function N(e){return\"string\"==typeof e?Bi[e]||Bi[e.toLowerCase()]:void 0}function B(e){var t,n,i={};for(n in e)u(e,n)&&(t=N(n))&&(i[t]=e[n]);return i}function z(e,t){zi[e]=t}function F(e){var t=[];for(var n in e)t.push({unit:n,priority:zi[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function j(e,t,n){var i=\"\"+Math.abs(e),r=t-i.length;return(e>=0?n?\"+\":\"\":\"-\")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function U(e,t,n,i){var r=i;\"string\"==typeof i&&(r=function(){return this[i]()}),e&&(Wi[e]=r),t&&(Wi[t[0]]=function(){return j(r.apply(this,arguments),t[1],t[2])}),n&&(Wi[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function W(e){return e.match(/\\[[\\s\\S]/)?e.replace(/^\\[|\\]$/g,\"\"):e.replace(/\\\\/g,\"\")}function G(e){var t,n,i=e.match(Fi);for(t=0,n=i.length;t=0&&ji.test(e);)e=e.replace(ji,n),ji.lastIndex=0,i-=1;return e}function q(e,t,n){ar[e]=E(t)?t:function(e,i){return e&&n?n:t}}function Y(e,t){return u(ar,e)?ar[e](t._strict,t._locale):new RegExp(X(e))}function X(e){return K(e.replace(\"\\\\\",\"\").replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function K(e){return e.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\")}function Z(e,t){var n,i=t;for(\"string\"==typeof e&&(e=[e]),a(t)&&(i=function(e,n){n[t]=_(e)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function _e(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function xe(e,t,n){var i=7+t-n;return-(7+_e(e,0,i).getUTCDay()-t)%7+i-1}function we(e,t,n,i,r){var o,a,s=(7+n-i)%7,l=xe(e,i,r),u=1+7*(t-1)+s+l;return u<=0?(o=e-1,a=$(o)+u):u>$(e)?(o=e+1,a=u-$(e)):(o=e,a=u),{year:o,dayOfYear:a}}function Me(e,t,n){var i,r,o=xe(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(r=e.year()-1,i=a+Se(r,t,n)):a>Se(e.year(),t,n)?(i=a-Se(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Se(e,t,n){var i=xe(e,t,n),r=xe(e+1,t,n);return($(e)-i+r)/7}function Ee(e){return Me(e,this._week.dow,this._week.doy).week}function Te(){return this._week.dow}function ke(){return this._week.doy}function Oe(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),\"d\")}function Ce(e){var t=Me(this,1,4).week;return null==e?t:this.add(7*(e-t),\"d\")}function Pe(e,t){return\"string\"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),\"number\"==typeof e?e:null):parseInt(e,10)}function Ae(e,t){return\"string\"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Re(e,t){return e?n(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?\"format\":\"standalone\"][e.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone}function Le(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ie(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function De(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=d([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,\"\").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,\"\").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,\"\").toLocaleLowerCase();return n?\"dddd\"===t?(r=vr.call(this._weekdaysParse,a),-1!==r?r:null):\"ddd\"===t?(r=vr.call(this._shortWeekdaysParse,a),-1!==r?r:null):(r=vr.call(this._minWeekdaysParse,a),-1!==r?r:null):\"dddd\"===t?-1!==(r=vr.call(this._weekdaysParse,a))?r:-1!==(r=vr.call(this._shortWeekdaysParse,a))?r:(r=vr.call(this._minWeekdaysParse,a),-1!==r?r:null):\"ddd\"===t?-1!==(r=vr.call(this._shortWeekdaysParse,a))?r:-1!==(r=vr.call(this._weekdaysParse,a))?r:(r=vr.call(this._minWeekdaysParse,a),-1!==r?r:null):-1!==(r=vr.call(this._minWeekdaysParse,a))?r:-1!==(r=vr.call(this._weekdaysParse,a))?r:(r=vr.call(this._shortWeekdaysParse,a),-1!==r?r:null)}function Ne(e,t,n){var i,r,o;if(this._weekdaysParseExact)return De.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=d([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp(\"^\"+this.weekdays(r,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\"),this._shortWeekdaysParse[i]=new RegExp(\"^\"+this.weekdaysShort(r,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\"),this._minWeekdaysParse[i]=new RegExp(\"^\"+this.weekdaysMin(r,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\")),this._weekdaysParse[i]||(o=\"^\"+this.weekdays(r,\"\")+\"|^\"+this.weekdaysShort(r,\"\")+\"|^\"+this.weekdaysMin(r,\"\"),this._weekdaysParse[i]=new RegExp(o.replace(\".\",\"\"),\"i\")),n&&\"dddd\"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&\"ddd\"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&\"dd\"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Be(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Pe(e,this.localeData()),this.add(e-t,\"d\")):t}function ze(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,\"d\")}function Fe(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ae(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function je(e){return this._weekdaysParseExact?(u(this,\"_weekdaysRegex\")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,\"_weekdaysRegex\")||(this._weekdaysRegex=Or),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ue(e){return this._weekdaysParseExact?(u(this,\"_weekdaysRegex\")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,\"_weekdaysShortRegex\")||(this._weekdaysShortRegex=Cr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function We(e){return this._weekdaysParseExact?(u(this,\"_weekdaysRegex\")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,\"_weekdaysMinRegex\")||(this._weekdaysMinRegex=Pr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ge(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),i=this.weekdaysMin(n,\"\"),r=this.weekdaysShort(n,\"\"),o=this.weekdays(n,\"\"),a.push(i),s.push(r),l.push(o),u.push(i),u.push(r),u.push(o);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=K(s[t]),l[t]=K(l[t]),u[t]=K(u[t]);this._weekdaysRegex=new RegExp(\"^(\"+u.join(\"|\")+\")\",\"i\"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(\"^(\"+l.join(\"|\")+\")\",\"i\"),this._weekdaysShortStrictRegex=new RegExp(\"^(\"+s.join(\"|\")+\")\",\"i\"),this._weekdaysMinStrictRegex=new RegExp(\"^(\"+a.join(\"|\")+\")\",\"i\")}function Ve(){return this.hours()%12||12}function He(){return this.hours()||24}function qe(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ye(e,t){return t._meridiemParse}function Xe(e){return\"p\"===(e+\"\").toLowerCase().charAt(0)}function Ke(e,t,n){return e>11?n?\"pm\":\"PM\":n?\"am\":\"AM\"}function Ze(e){return e?e.toLowerCase().replace(\"_\",\"-\"):e}function Je(e){for(var t,n,i,r,o=0;o0;){if(i=Qe(r.slice(0,t).join(\"-\")))return i;if(n&&n.length>=t&&x(r,n,!0)>=t-1)break;t--}o++}return Ar}function Qe(t){var n=null;if(!Dr[t]&&void 0!==e&&e&&e.exports)try{n=Ar._abbr;!function(){var e=new Error('Cannot find module \"./locale\"');throw e.code=\"MODULE_NOT_FOUND\",e}(),$e(n)}catch(e){}return Dr[t]}function $e(e,t){var n;return e&&(n=o(t)?nt(e):et(e,t),n?Ar=n:\"undefined\"!=typeof console&&console.warn&&console.warn(\"Locale \"+e+\" not found. Did you forget to load it?\")),Ar._abbr}function et(e,t){if(null!==t){var n,i=Ir;if(t.abbr=e,null!=Dr[e])S(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\"),i=Dr[e]._config;else if(null!=t.parentLocale)if(null!=Dr[t.parentLocale])i=Dr[t.parentLocale]._config;else{if(null==(n=Qe(t.parentLocale)))return Nr[t.parentLocale]||(Nr[t.parentLocale]=[]),Nr[t.parentLocale].push({name:e,config:t}),null;i=n._config}return Dr[e]=new O(k(i,t)),Nr[e]&&Nr[e].forEach(function(e){et(e.name,e.config)}),$e(e),Dr[e]}return delete Dr[e],null}function tt(e,t){if(null!=t){var n,i,r=Ir;i=Qe(e),null!=i&&(r=i._config),t=k(r,t),n=new O(t),n.parentLocale=Dr[e],Dr[e]=n,$e(e)}else null!=Dr[e]&&(null!=Dr[e].parentLocale?Dr[e]=Dr[e].parentLocale:null!=Dr[e]&&delete Dr[e]);return Dr[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ar;if(!n(e)){if(t=Qe(e))return t;e=[e]}return Je(e)}function it(){return Ri(Dr)}function rt(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[ur]<0||n[ur]>11?ur:n[cr]<1||n[cr]>le(n[lr],n[ur])?cr:n[dr]<0||n[dr]>24||24===n[dr]&&(0!==n[hr]||0!==n[fr]||0!==n[pr])?dr:n[hr]<0||n[hr]>59?hr:n[fr]<0||n[fr]>59?fr:n[pr]<0||n[pr]>999?pr:-1,f(e)._overflowDayOfYear&&(tcr)&&(t=cr),f(e)._overflowWeeks&&-1===t&&(t=mr),f(e)._overflowWeekday&&-1===t&&(t=gr),f(e).overflow=t),e}function ot(e,t,n){return null!=e?e:null!=t?t:n}function at(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function st(e){var t,n,i,r,o,a=[];if(!e._d){for(i=at(e),e._w&&null==e._a[cr]&&null==e._a[ur]&<(e),null!=e._dayOfYear&&(o=ot(e._a[lr],i[lr]),(e._dayOfYear>$(o)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=_e(o,0,e._dayOfYear),e._a[ur]=n.getUTCMonth(),e._a[cr]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[dr]&&0===e._a[hr]&&0===e._a[fr]&&0===e._a[pr]&&(e._nextDay=!0,e._a[dr]=0),e._d=(e._useUTC?_e:be).apply(null,a),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[dr]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(f(e).weekdayMismatch=!0)}}function lt(e){var t,n,i,r,o,a,s,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,a=4,n=ot(t.GG,e._a[lr],Me(Et(),1,4).year),i=ot(t.W,1),((r=ot(t.E,1))<1||r>7)&&(l=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var u=Me(Et(),o,a);n=ot(t.gg,e._a[lr],u.year),i=ot(t.w,u.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o}i<1||i>Se(n,o,a)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(s=we(n,i,r,o,a),e._a[lr]=s.year,e._dayOfYear=s.dayOfYear)}function ut(e){var t,n,i,r,o,a,s=e._i,l=Br.exec(s)||zr.exec(s);if(l){for(f(e).iso=!0,t=0,n=jr.length;t0&&f(e).unusedInput.push(a),s=s.slice(s.indexOf(i)+i.length),u+=i.length),Wi[o]?(i?f(e).empty=!1:f(e).unusedTokens.push(o),Q(o,i,e)):e._strict&&!i&&f(e).unusedTokens.push(o);f(e).charsLeftOver=l-u,s.length>0&&f(e).unusedInput.push(s),e._a[dr]<=12&&!0===f(e).bigHour&&e._a[dr]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[dr]=yt(e._locale,e._a[dr],e._meridiem),st(e),rt(e)}function yt(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function bt(e){var t,n,i,r,o;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qt(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),e=wt(e),e._a){var t=e._isUTC?d(e._a):Et(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Yt(){return!!this.isValid()&&!this._isUTC}function Xt(){return!!this.isValid()&&this._isUTC}function Kt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Zt(e,t){var n,i,r,o=e,s=null;return Lt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:a(e)?(o={},t?o[t]=e:o.milliseconds=e):(s=Zr.exec(e))?(n=\"-\"===s[1]?-1:1,o={y:0,d:_(s[cr])*n,h:_(s[dr])*n,m:_(s[hr])*n,s:_(s[fr])*n,ms:_(It(1e3*s[pr]))*n}):(s=Jr.exec(e))?(n=\"-\"===s[1]?-1:(s[1],1),o={y:Jt(s[2],n),M:Jt(s[3],n),w:Jt(s[4],n),d:Jt(s[5],n),h:Jt(s[6],n),m:Jt(s[7],n),s:Jt(s[8],n)}):null==o?o={}:\"object\"==typeof o&&(\"from\"in o||\"to\"in o)&&(r=$t(Et(o.from),Et(o.to)),o={},o.ms=r.milliseconds,o.M=r.months),i=new Rt(o),Lt(e)&&u(e,\"_locale\")&&(i._locale=e._locale),i}function Jt(e,t){var n=e&&parseFloat(e.replace(\",\",\".\"));return(isNaN(n)?0:n)*t}function Qt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,\"M\").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,\"M\"),n}function $t(e,t){var n;return e.isValid()&&t.isValid()?(t=Bt(t,e),e.isBefore(t)?n=Qt(e,t):(n=Qt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function en(e,t){return function(n,i){var r,o;return null===i||isNaN(+i)||(S(t,\"moment().\"+t+\"(period, number) is deprecated. Please use moment().\"+t+\"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.\"),o=n,n=i,i=o),n=\"string\"==typeof n?+n:n,r=Zt(n,i),tn(this,r,e),this}}function tn(e,n,i,r){var o=n._milliseconds,a=It(n._days),s=It(n._months);e.isValid()&&(r=null==r||r,s&&fe(e,ie(e,\"Month\")+s*i),a&&re(e,\"Date\",ie(e,\"Date\")+a*i),o&&e._d.setTime(e._d.valueOf()+o*i),r&&t.updateOffset(e,a||s))}function nn(e,t){var n=e.diff(t,\"days\",!0);return n<-6?\"sameElse\":n<-1?\"lastWeek\":n<0?\"lastDay\":n<1?\"sameDay\":n<2?\"nextDay\":n<7?\"nextWeek\":\"sameElse\"}function rn(e,n){var i=e||Et(),r=Bt(i,this).startOf(\"day\"),o=t.calendarFormat(this,r)||\"sameElse\",a=n&&(E(n[o])?n[o].call(this,i):n[o]);return this.format(a||this.localeData().calendar(o,this,Et(i)))}function on(){return new v(this)}function an(e,t){var n=y(e)?e:Et(e);return!(!this.isValid()||!n.isValid())&&(t=N(o(t)?\"millisecond\":t),\"millisecond\"===t?this.valueOf()>n.valueOf():n.valueOf()9999?V(n,t?\"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\":\"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ\"):E(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace(\"Z\",V(n,\"Z\")):V(n,t?\"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\":\"YYYY-MM-DD[T]HH:mm:ss.SSSZ\")}function gn(){if(!this.isValid())return\"moment.invalid(/* \"+this._i+\" */)\";var e=\"moment\",t=\"\";this.isLocal()||(e=0===this.utcOffset()?\"moment.utc\":\"moment.parseZone\",t=\"Z\");var n=\"[\"+e+'(\"]',i=0<=this.year()&&this.year()<=9999?\"YYYY\":\"YYYYYY\",r=t+'[\")]';return this.format(n+i+\"-MM-DD[T]HH:mm:ss.SSS\"+r)}function vn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=V(this,e);return this.localeData().postformat(n)}function yn(e,t){return this.isValid()&&(y(e)&&e.isValid()||Et(e).isValid())?Zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function bn(e){return this.from(Et(),e)}function _n(e,t){return this.isValid()&&(y(e)&&e.isValid()||Et(e).isValid())?Zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function xn(e){return this.to(Et(),e)}function wn(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function Mn(){return this._locale}function Sn(e){switch(e=N(e)){case\"year\":this.month(0);case\"quarter\":case\"month\":this.date(1);case\"week\":case\"isoWeek\":case\"day\":case\"date\":this.hours(0);case\"hour\":this.minutes(0);case\"minute\":this.seconds(0);case\"second\":this.milliseconds(0)}return\"week\"===e&&this.weekday(0),\"isoWeek\"===e&&this.isoWeekday(1),\"quarter\"===e&&this.month(3*Math.floor(this.month()/3)),this}function En(e){return void 0===(e=N(e))||\"millisecond\"===e?this:(\"date\"===e&&(e=\"day\"),this.startOf(e).add(1,\"isoWeek\"===e?\"week\":e).subtract(1,\"ms\"))}function Tn(){return this._d.valueOf()-6e4*(this._offset||0)}function kn(){return Math.floor(this.valueOf()/1e3)}function On(){return new Date(this.valueOf())}function Cn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Pn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function An(){return this.isValid()?this.toISOString():null}function Rn(){return p(this)}function Ln(){return c({},f(this))}function In(){return f(this).overflow}function Dn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Nn(e,t){U(0,[e,e.length],0,t)}function Bn(e){return Un.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function zn(e){return Un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Fn(){return Se(this.year(),1,4)}function jn(){var e=this.localeData()._week;return Se(this.year(),e.dow,e.doy)}function Un(e,t,n,i,r){var o;return null==e?Me(this,i,r).year:(o=Se(e,i,r),t>o&&(t=o),Wn.call(this,e,t,n,i,r))}function Wn(e,t,n,i,r){var o=we(e,t,n,i,r),a=_e(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Gn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Vn(e){var t=Math.round((this.clone().startOf(\"day\")-this.clone().startOf(\"year\"))/864e5)+1;return null==e?t:this.add(e-t,\"d\")}function Hn(e,t){t[pr]=_(1e3*(\"0.\"+e))}function qn(){return this._isUTC?\"UTC\":\"\"}function Yn(){return this._isUTC?\"Coordinated Universal Time\":\"\"}function Xn(e){return Et(1e3*e)}function Kn(){return Et.apply(null,arguments).parseZone()}function Zn(e){return e}function Jn(e,t,n,i){var r=nt(),o=d().set(i,t);return r[n](o,e)}function Qn(e,t,n){if(a(e)&&(t=e,e=void 0),e=e||\"\",null!=t)return Jn(e,t,n,\"month\");var i,r=[];for(i=0;i<12;i++)r[i]=Jn(e,i,n,\"month\");return r}function $n(e,t,n,i){\"boolean\"==typeof e?(a(t)&&(n=t,t=void 0),t=t||\"\"):(t=e,n=t,e=!1,a(t)&&(n=t,t=void 0),t=t||\"\");var r=nt(),o=e?r._week.dow:0;if(null!=n)return Jn(t,(n+o)%7,i,\"day\");var s,l=[];for(s=0;s<7;s++)l[s]=Jn(t,(s+o)%7,i,\"day\");return l}function ei(e,t){return Qn(e,t,\"months\")}function ti(e,t){return Qn(e,t,\"monthsShort\")}function ni(e,t,n){return $n(e,t,n,\"weekdays\")}function ii(e,t,n){return $n(e,t,n,\"weekdaysShort\")}function ri(e,t,n){return $n(e,t,n,\"weekdaysMin\")}function oi(){var e=this._data;return this._milliseconds=lo(this._milliseconds),this._days=lo(this._days),this._months=lo(this._months),e.milliseconds=lo(e.milliseconds),e.seconds=lo(e.seconds),e.minutes=lo(e.minutes),e.hours=lo(e.hours),e.months=lo(e.months),e.years=lo(e.years),this}function ai(e,t,n,i){var r=Zt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function si(e,t){return ai(this,e,t,1)}function li(e,t){return ai(this,e,t,-1)}function ui(e){return e<0?Math.floor(e):Math.ceil(e)}function ci(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*ui(hi(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=b(o/1e3),l.seconds=e%60,t=b(e/60),l.minutes=t%60,n=b(t/60),l.hours=n%24,a+=b(n/24),r=b(di(a)),s+=r,a-=ui(hi(r)),i=b(s/12),s%=12,l.days=a,l.months=s,l.years=i,this}function di(e){return 4800*e/146097}function hi(e){return 146097*e/4800}function fi(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if(\"month\"===(e=N(e))||\"year\"===e)return t=this._days+i/864e5,n=this._months+di(t),\"month\"===e?n:n/12;switch(t=this._days+Math.round(hi(this._months)),e){case\"week\":return t/7+i/6048e5;case\"day\":return t+i/864e5;case\"hour\":return 24*t+i/36e5;case\"minute\":return 1440*t+i/6e4;case\"second\":return 86400*t+i/1e3;case\"millisecond\":return Math.floor(864e5*t)+i;default:throw new Error(\"Unknown unit \"+e)}}function pi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12):NaN}function mi(e){return function(){return this.as(e)}}function gi(){return Zt(this)}function vi(e){return e=N(e),this.isValid()?this[e+\"s\"]():NaN}function yi(e){return function(){return this.isValid()?this._data[e]:NaN}}function bi(){return b(this.days()/7)}function _i(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function xi(e,t,n){var i=Zt(e).abs(),r=Eo(i.as(\"s\")),o=Eo(i.as(\"m\")),a=Eo(i.as(\"h\")),s=Eo(i.as(\"d\")),l=Eo(i.as(\"M\")),u=Eo(i.as(\"y\")),c=r<=To.ss&&[\"s\",r]||r0,c[4]=n,_i.apply(null,c)}function wi(e){return void 0===e?Eo:\"function\"==typeof e&&(Eo=e,!0)}function Mi(e,t){return void 0!==To[e]&&(void 0===t?To[e]:(To[e]=t,\"s\"===e&&(To.ss=t-1),!0))}function Si(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=xi(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Ei(e){return(e>0)-(e<0)||+e}function Ti(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i=ko(this._milliseconds)/1e3,r=ko(this._days),o=ko(this._months);e=b(i/60),t=b(e/60),i%=60,e%=60,n=b(o/12),o%=12;var a=n,s=o,l=r,u=t,c=e,d=i?i.toFixed(3).replace(/\\.?0+$/,\"\"):\"\",h=this.asSeconds();if(!h)return\"P0D\";var f=h<0?\"-\":\"\",p=Ei(this._months)!==Ei(h)?\"-\":\"\",m=Ei(this._days)!==Ei(h)?\"-\":\"\",g=Ei(this._milliseconds)!==Ei(h)?\"-\":\"\";return f+\"P\"+(a?p+a+\"Y\":\"\")+(s?p+s+\"M\":\"\")+(l?m+l+\"D\":\"\")+(u||c||d?\"T\":\"\")+(u?g+u+\"H\":\"\")+(c?g+c+\"M\":\"\")+(d?g+d+\"S\":\"\")}var ki,Oi;Oi=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i68?1900:2e3)};var vr,yr=ne(\"FullYear\",!0);vr=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;tthis?this:e:m()}),Yr=function(){return Date.now?Date.now():+new Date},Xr=[\"year\",\"quarter\",\"month\",\"week\",\"day\",\"hour\",\"minute\",\"second\",\"millisecond\"];Dt(\"Z\",\":\"),Dt(\"ZZ\",\"\"),q(\"Z\",ir),q(\"ZZ\",ir),Z([\"Z\",\"ZZ\"],function(e,t,n){n._useUTC=!0,n._tzm=Nt(ir,e)});var Kr=/([\\+\\-]|\\d\\d)/gi;t.updateOffset=function(){};var Zr=/^(\\-|\\+)?(?:(\\d*)[. ])?(\\d+)\\:(\\d+)(?:\\:(\\d+)(\\.\\d*)?)?$/,Jr=/^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Zt.fn=Rt.prototype,Zt.invalid=At;var Qr=en(1,\"add\"),$r=en(-1,\"subtract\");t.defaultFormat=\"YYYY-MM-DDTHH:mm:ssZ\",t.defaultFormatUtc=\"YYYY-MM-DDTHH:mm:ss[Z]\";var eo=M(\"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.\",function(e){return void 0===e?this.localeData():this.locale(e)});U(0,[\"gg\",2],0,function(){return this.weekYear()%100}),U(0,[\"GG\",2],0,function(){return this.isoWeekYear()%100}),Nn(\"gggg\",\"weekYear\"),Nn(\"ggggg\",\"weekYear\"),Nn(\"GGGG\",\"isoWeekYear\"),Nn(\"GGGGG\",\"isoWeekYear\"),D(\"weekYear\",\"gg\"),D(\"isoWeekYear\",\"GG\"),z(\"weekYear\",1),z(\"isoWeekYear\",1),q(\"G\",tr),q(\"g\",tr),q(\"GG\",Xi,Vi),q(\"gg\",Xi,Vi),q(\"GGGG\",Qi,qi),q(\"gggg\",Qi,qi),q(\"GGGGG\",$i,Yi),q(\"ggggg\",$i,Yi),J([\"gggg\",\"ggggg\",\"GGGG\",\"GGGGG\"],function(e,t,n,i){t[i.substr(0,2)]=_(e)}),J([\"gg\",\"GG\"],function(e,n,i,r){n[r]=t.parseTwoDigitYear(e)}),U(\"Q\",0,\"Qo\",\"quarter\"),D(\"quarter\",\"Q\"),z(\"quarter\",7),q(\"Q\",Gi),Z(\"Q\",function(e,t){t[ur]=3*(_(e)-1)}),U(\"D\",[\"DD\",2],\"Do\",\"date\"),D(\"date\",\"D\"),z(\"date\",9),q(\"D\",Xi),q(\"DD\",Xi,Vi),q(\"Do\",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Z([\"D\",\"DD\"],cr),Z(\"Do\",function(e,t){t[cr]=_(e.match(Xi)[0])});var to=ne(\"Date\",!0);U(\"DDD\",[\"DDDD\",3],\"DDDo\",\"dayOfYear\"),D(\"dayOfYear\",\"DDD\"),z(\"dayOfYear\",4),q(\"DDD\",Ji),q(\"DDDD\",Hi),Z([\"DDD\",\"DDDD\"],function(e,t,n){n._dayOfYear=_(e)}),U(\"m\",[\"mm\",2],0,\"minute\"),D(\"minute\",\"m\"),z(\"minute\",14),q(\"m\",Xi),q(\"mm\",Xi,Vi),Z([\"m\",\"mm\"],hr);var no=ne(\"Minutes\",!1);U(\"s\",[\"ss\",2],0,\"second\"),D(\"second\",\"s\"),z(\"second\",15),q(\"s\",Xi),q(\"ss\",Xi,Vi),Z([\"s\",\"ss\"],fr);var io=ne(\"Seconds\",!1);U(\"S\",0,0,function(){return~~(this.millisecond()/100)}),U(0,[\"SS\",2],0,function(){return~~(this.millisecond()/10)}),U(0,[\"SSS\",3],0,\"millisecond\"),U(0,[\"SSSS\",4],0,function(){return 10*this.millisecond()}),U(0,[\"SSSSS\",5],0,function(){return 100*this.millisecond()}),U(0,[\"SSSSSS\",6],0,function(){return 1e3*this.millisecond()}),U(0,[\"SSSSSSS\",7],0,function(){return 1e4*this.millisecond()}),U(0,[\"SSSSSSSS\",8],0,function(){return 1e5*this.millisecond()}),U(0,[\"SSSSSSSSS\",9],0,function(){return 1e6*this.millisecond()}),D(\"millisecond\",\"ms\"),z(\"millisecond\",16),q(\"S\",Ji,Gi),q(\"SS\",Ji,Vi),q(\"SSS\",Ji,Hi);var ro;for(ro=\"SSSS\";ro.length<=9;ro+=\"S\")q(ro,er);for(ro=\"S\";ro.length<=9;ro+=\"S\")Z(ro,Hn);var oo=ne(\"Milliseconds\",!1);U(\"z\",0,0,\"zoneAbbr\"),U(\"zz\",0,0,\"zoneName\");var ao=v.prototype;ao.add=Qr,ao.calendar=rn,ao.clone=on,ao.diff=hn,ao.endOf=En,ao.format=vn,ao.from=yn,ao.fromNow=bn,ao.to=_n,ao.toNow=xn,ao.get=oe,ao.invalidAt=In,ao.isAfter=an,ao.isBefore=sn,ao.isBetween=ln,ao.isSame=un,ao.isSameOrAfter=cn,ao.isSameOrBefore=dn,ao.isValid=Rn,ao.lang=eo,ao.locale=wn,ao.localeData=Mn,ao.max=qr,ao.min=Hr,ao.parsingFlags=Ln,ao.set=ae,ao.startOf=Sn,ao.subtract=$r,ao.toArray=Cn,ao.toObject=Pn,ao.toDate=On,ao.toISOString=mn,ao.inspect=gn,ao.toJSON=An,ao.toString=pn,ao.unix=kn,ao.valueOf=Tn,ao.creationData=Dn,ao.year=yr,ao.isLeapYear=te,ao.weekYear=Bn,ao.isoWeekYear=zn,ao.quarter=ao.quarters=Gn,ao.month=pe,ao.daysInMonth=me,ao.week=ao.weeks=Oe,ao.isoWeek=ao.isoWeeks=Ce,ao.weeksInYear=jn,ao.isoWeeksInYear=Fn,ao.date=to,ao.day=ao.days=Be,ao.weekday=ze,ao.isoWeekday=Fe,ao.dayOfYear=Vn,ao.hour=ao.hours=Lr,ao.minute=ao.minutes=no,ao.second=ao.seconds=io,ao.millisecond=ao.milliseconds=oo,ao.utcOffset=Ft,ao.utc=Ut,ao.local=Wt,ao.parseZone=Gt,ao.hasAlignedHourOffset=Vt,ao.isDST=Ht,ao.isLocal=Yt,ao.isUtcOffset=Xt,ao.isUtc=Kt,ao.isUTC=Kt,ao.zoneAbbr=qn,ao.zoneName=Yn,ao.dates=M(\"dates accessor is deprecated. Use date instead.\",to),ao.months=M(\"months accessor is deprecated. Use month instead\",pe),ao.years=M(\"years accessor is deprecated. Use year instead\",yr),ao.zone=M(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\",jt),ao.isDSTShifted=M(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\",qt);var so=O.prototype;so.calendar=C,so.longDateFormat=P,so.invalidDate=A,so.ordinal=R,so.preparse=Zn,so.postformat=Zn,so.relativeTime=L,so.pastFuture=I,so.set=T,so.months=ue,so.monthsShort=ce,so.monthsParse=he,so.monthsRegex=ve,so.monthsShortRegex=ge,so.week=Ee,so.firstDayOfYear=ke,so.firstDayOfWeek=Te,so.weekdays=Re,so.weekdaysMin=Ie,so.weekdaysShort=Le,so.weekdaysParse=Ne,so.weekdaysRegex=je,so.weekdaysShortRegex=Ue,so.weekdaysMinRegex=We,so.isPM=Xe,so.meridiem=Ke,$e(\"en\",{dayOfMonthOrdinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===_(e%100/10)?\"th\":1===t?\"st\":2===t?\"nd\":3===t?\"rd\":\"th\")}}),t.lang=M(\"moment.lang is deprecated. Use moment.locale instead.\",$e),t.langData=M(\"moment.langData is deprecated. Use moment.localeData instead.\",nt);var lo=Math.abs,uo=mi(\"ms\"),co=mi(\"s\"),ho=mi(\"m\"),fo=mi(\"h\"),po=mi(\"d\"),mo=mi(\"w\"),go=mi(\"M\"),vo=mi(\"y\"),yo=yi(\"milliseconds\"),bo=yi(\"seconds\"),_o=yi(\"minutes\"),xo=yi(\"hours\"),wo=yi(\"days\"),Mo=yi(\"months\"),So=yi(\"years\"),Eo=Math.round,To={ss:44,s:45,m:45,h:22,d:26,M:11},ko=Math.abs,Oo=Rt.prototype;return Oo.isValid=Pt,Oo.abs=oi,Oo.add=si,Oo.subtract=li,Oo.as=fi,Oo.asMilliseconds=uo,Oo.asSeconds=co,Oo.asMinutes=ho,Oo.asHours=fo,Oo.asDays=po,Oo.asWeeks=mo,Oo.asMonths=go,Oo.asYears=vo,Oo.valueOf=pi,Oo._bubble=ci,Oo.clone=gi,Oo.get=vi,Oo.milliseconds=yo,Oo.seconds=bo,Oo.minutes=_o,Oo.hours=xo,Oo.days=wo,Oo.weeks=bi,Oo.months=Mo,Oo.years=So,Oo.humanize=Si,Oo.toISOString=Ti,Oo.toString=Ti,Oo.toJSON=Ti,Oo.locale=wn,Oo.localeData=Mn,Oo.toIsoString=M(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\",Ti),Oo.lang=eo,U(\"X\",0,0,\"unix\"),U(\"x\",0,0,\"valueOf\"),q(\"x\",tr),q(\"X\",rr),Z(\"X\",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),Z(\"x\",function(e,t,n){n._d=new Date(_(e))}),t.version=\"2.22.2\",function(e){ki=e}(Et),t.fn=ao,t.min=kt,t.max=Ot,t.now=Yr,t.utc=d,t.unix=Xn,t.months=ei,t.isDate=s,t.locale=$e,t.invalid=m,t.duration=Zt,t.isMoment=y,t.weekdays=ni,t.parseZone=Kn,t.localeData=nt,t.isDuration=Lt,t.monthsShort=ti,t.weekdaysMin=ri,t.defineLocale=et,t.updateLocale=tt,t.locales=it,t.weekdaysShort=ii,t.normalizeUnits=N,t.relativeTimeRounding=wi,t.relativeTimeThreshold=Mi,t.calendarFormat=nn,t.prototype=ao,t.HTML5_FMT={DATETIME_LOCAL:\"YYYY-MM-DDTHH:mm\",DATETIME_LOCAL_SECONDS:\"YYYY-MM-DDTHH:mm:ss\",DATETIME_LOCAL_MS:\"YYYY-MM-DDTHH:mm:ss.SSS\",DATE:\"YYYY-MM-DD\",TIME:\"HH:mm\",TIME_SECONDS:\"HH:mm:ss\",TIME_MS:\"HH:mm:ss.SSS\",WEEK:\"YYYY-[W]WW\",MONTH:\"YYYY-MM\"},t})}).call(t,n(141)(e))},function(e,t,n){var i=n(439),r=n(442),o=n(441),a=n(443),s=n(440),l=[0,0];e.exports.computeMiter=function(e,t,n,a,u){return i(e,n,a),o(e,e),r(t,-e[1],e[0]),r(l,-n[1],n[0]),u/s(t,l)},e.exports.normal=function(e,t){return r(e,-t[1],t[0]),e},e.exports.direction=function(e,t,n){return a(e,t,n),o(e,e),e}},function(e,t,n){function i(e,t,n){e.push([[t[0],t[1]],n])}var r=n(488),o=[0,0],a=[0,0],s=[0,0],l=[0,0];e.exports=function(e,t){var n=null,u=[];t&&(e=e.slice(),e.push(e[0]));for(var c=e.length,d=1;d2&&t){var g=e[c-2],v=e[0],y=e[1];r.direction(o,v,g),r.direction(a,y,v),r.normal(n,o);var b=r.computeMiter(s,l,o,a,1);u[0][0]=l.slice(),u[c-1][0]=l.slice(),u[0][1]=b,u[c-1][1]=b,u.pop()}return u}},function(e,t,n){\"use strict\";function i(e,t,n){if(!(this instanceof i))return new i(e,t,n);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if(\"object\"==typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if(\"string\"==typeof e&&void 0===t){var r=e.split(\",\");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=e,this.y=t,this.z=n||0;console.warn(\"proj4.Point will be removed in version 3, use proj4.toPoint\")}var r=n(189);i.fromMGRS=function(e){return new i(n.i(r.b)(e))},i.prototype.toMGRS=function(e){return n.i(r.c)([this.x,this.y],e)},t.a=i},function(e,t,n){\"use strict\";t.a=function(e,t,n){var i,r,o,a=n.x,s=n.y,l=n.z||0,u={};for(o=0;o<3;o++)if(!t||2!==o||void 0!==n.z)switch(0===o?(i=a,r=\"x\"):1===o?(i=s,r=\"y\"):(i=l,r=\"z\"),e.axis[o]){case\"e\":u[r]=i;break;case\"w\":u[r]=-i;break;case\"n\":u[r]=i;break;case\"s\":u[r]=-i;break;case\"u\":void 0!==n[r]&&(u.z=i);break;case\"d\":void 0!==n[r]&&(u.z=-i);break;default:return null}return u}},function(e,t,n){\"use strict\";function i(e){if(\"function\"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError(\"coordinates must be finite numbers\")}if(\"number\"!=typeof e||e!==e||!isFinite(e))throw new TypeError(\"coordinates must be finite numbers\")}t.a=function(e){i(e.x),i(e.y)}},function(e,t,n){\"use strict\";var i=n(11);t.a=function(e,t){if(void 0===e){if((e=Math.floor(30*(n.i(i.a)(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}},function(e,t,n){\"use strict\";var i=n(190),r=n(500);t.a=function(e){var t=Math.abs(e);return t=n.i(r.a)(t*(1+t/(n.i(i.a)(1,t)+1))),e<0?-t:t}},function(e,t,n){\"use strict\";t.a=function(e,t){for(var n,i=2*Math.cos(t),r=e.length-1,o=e[r],a=0;--r>=0;)n=i*o-a+e[r],a=o,o=n;return Math.sin(t)*n}},function(e,t,n){\"use strict\";var i=n(193),r=n(497);t.a=function(e,t,o){for(var a,s,l=Math.sin(t),u=Math.cos(t),c=n.i(i.a)(o),d=n.i(r.a)(o),h=2*u*d,f=-2*l*c,p=e.length-1,m=e[p],g=0,v=0,y=0;--p>=0;)a=v,s=g,v=m,g=y,m=h*v-a-f*g+e[p],y=f*v-s+h*g;return h=l*d,f=u*c,[h*m-f*y,h*y+f*m]}},function(e,t,n){\"use strict\";t.a=function(e){var t=Math.exp(e);return t=(t+1/t)/2}},function(e,t,n){\"use strict\";t.a=function(e,t){for(var n,i=2*Math.cos(2*t),r=e.length-1,o=e[r],a=0;--r>=0;)n=i*o-a+e[r],a=o,o=n;return t+n*Math.sin(2*t)}},function(e,t,n){\"use strict\";var i=n(7);t.a=function(e,t){var n=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-n)<1e-6)return t<0?-1*i.b:i.b;for(var r,o,a,s,l=Math.asin(.5*t),u=0;u<30;u++)if(o=Math.sin(l),a=Math.cos(l),s=e*o,r=Math.pow(1-s*s,2)/(2*a)*(t/(1-e*e)-o/(1-s*s)+.5/e*Math.log((1-s)/(1+s))),l+=r,Math.abs(r)<=1e-10)return l;return NaN}},function(e,t,n){\"use strict\";t.a=function(e){var t=1+e,n=t-1;return 0===n?e:e*Math.log(t)/n}},function(e,t,n){\"use strict\";t.a=function(e,t){return Math.pow((1-e)/(1+e),t)}},function(e,t,n){\"use strict\";n.d(t,\"a\",function(){return i});var i={};i.wgs84={towgs84:\"0,0,0\",ellipse:\"WGS84\",datumName:\"WGS84\"},i.ch1903={towgs84:\"674.374,15.056,405.346\",ellipse:\"bessel\",datumName:\"swiss\"},i.ggrs87={towgs84:\"-199.87,74.79,246.62\",ellipse:\"GRS80\",datumName:\"Greek_Geodetic_Reference_System_1987\"},i.nad83={towgs84:\"0,0,0\",ellipse:\"GRS80\",datumName:\"North_American_Datum_1983\"},i.nad27={nadgrids:\"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat\",ellipse:\"clrk66\",datumName:\"North_American_Datum_1927\"},i.potsdam={towgs84:\"606.0,23.0,413.0\",ellipse:\"bessel\",datumName:\"Potsdam Rauenberg 1950 DHDN\"},i.carthage={towgs84:\"-263.0,6.0,431.0\",ellipse:\"clark80\",datumName:\"Carthage 1934 Tunisia\"},i.hermannskogel={towgs84:\"653.0,-212.0,449.0\",ellipse:\"bessel\",datumName:\"Hermannskogel\"},i.osni52={towgs84:\"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15\",ellipse:\"airy\",datumName:\"Irish National\"},i.ire65={towgs84:\"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15\",ellipse:\"mod_airy\",datumName:\"Ireland 1965\"},i.rassadiran={towgs84:\"-133.63,-157.5,-158.62\",ellipse:\"intl\",datumName:\"Rassadiran\"},i.nzgd49={towgs84:\"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993\",ellipse:\"intl\",datumName:\"New Zealand Geodetic Datum 1949\"},i.osgb36={towgs84:\"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894\",ellipse:\"airy\",datumName:\"Airy 1830\"},i.s_jtsk={towgs84:\"589,76,480\",ellipse:\"bessel\",datumName:\"S-JTSK (Ferro)\"},i.beduaram={towgs84:\"-106,-87,188\",ellipse:\"clrk80\",datumName:\"Beduaram\"},i.gunung_segara={towgs84:\"-403,684,41\",ellipse:\"bessel\",datumName:\"Gunung Segara Jakarta\"},i.rnb72={towgs84:\"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1\",ellipse:\"intl\",datumName:\"Reseau National Belge 1972\"}},function(e,t,n){\"use strict\";n.d(t,\"a\",function(){return i}),n.d(t,\"b\",function(){return r});var i={};i.MERIT={a:6378137,rf:298.257,ellipseName:\"MERIT 1983\"},i.SGS85={a:6378136,rf:298.257,ellipseName:\"Soviet Geodetic System 85\"},i.GRS80={a:6378137,rf:298.257222101,ellipseName:\"GRS 1980(IUGG, 1980)\"},i.IAU76={a:6378140,rf:298.257,ellipseName:\"IAU 1976\"},i.airy={a:6377563.396,b:6356256.91,ellipseName:\"Airy 1830\"},i.APL4={a:6378137,rf:298.25,ellipseName:\"Appl. Physics. 1965\"},i.NWL9D={a:6378145,rf:298.25,ellipseName:\"Naval Weapons Lab., 1965\"},i.mod_airy={a:6377340.189,b:6356034.446,ellipseName:\"Modified Airy\"},i.andrae={a:6377104.43,rf:300,ellipseName:\"Andrae 1876 (Den., Iclnd.)\"},i.aust_SA={a:6378160,rf:298.25,ellipseName:\"Australian Natl & S. Amer. 1969\"},i.GRS67={a:6378160,rf:298.247167427,ellipseName:\"GRS 67(IUGG 1967)\"},i.bessel={a:6377397.155,rf:299.1528128,ellipseName:\"Bessel 1841\"},i.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:\"Bessel 1841 (Namibia)\"},i.clrk66={a:6378206.4,b:6356583.8,ellipseName:\"Clarke 1866\"},i.clrk80={a:6378249.145,rf:293.4663,ellipseName:\"Clarke 1880 mod.\"},i.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:\"Clarke 1858\"},i.CPM={a:6375738.7,rf:334.29,ellipseName:\"Comm. des Poids et Mesures 1799\"},i.delmbr={a:6376428,rf:311.5,ellipseName:\"Delambre 1810 (Belgium)\"},i.engelis={a:6378136.05,rf:298.2566,ellipseName:\"Engelis 1985\"},i.evrst30={a:6377276.345,rf:300.8017,ellipseName:\"Everest 1830\"},i.evrst48={a:6377304.063,rf:300.8017,ellipseName:\"Everest 1948\"},i.evrst56={a:6377301.243,rf:300.8017,ellipseName:\"Everest 1956\"},i.evrst69={a:6377295.664,rf:300.8017,ellipseName:\"Everest 1969\"},i.evrstSS={a:6377298.556,rf:300.8017,ellipseName:\"Everest (Sabah & Sarawak)\"},i.fschr60={a:6378166,rf:298.3,ellipseName:\"Fischer (Mercury Datum) 1960\"},i.fschr60m={a:6378155,rf:298.3,ellipseName:\"Fischer 1960\"},i.fschr68={a:6378150,rf:298.3,ellipseName:\"Fischer 1968\"},i.helmert={a:6378200,rf:298.3,ellipseName:\"Helmert 1906\"},i.hough={a:6378270,rf:297,ellipseName:\"Hough\"},i.intl={a:6378388,rf:297,ellipseName:\"International 1909 (Hayford)\"},i.kaula={a:6378163,rf:298.24,ellipseName:\"Kaula 1961\"},i.lerch={a:6378139,rf:298.257,ellipseName:\"Lerch 1979\"},i.mprts={a:6397300,rf:191,ellipseName:\"Maupertius 1738\"},i.new_intl={a:6378157.5,b:6356772.2,ellipseName:\"New International 1967\"},i.plessis={a:6376523,rf:6355863,ellipseName:\"Plessis 1817 (France)\"},i.krass={a:6378245,rf:298.3,ellipseName:\"Krassovsky, 1942\"},i.SEasia={a:6378155,b:6356773.3205,ellipseName:\"Southeast Asia\"},i.walbeck={a:6376896,b:6355834.8467,ellipseName:\"Walbeck\"},i.WGS60={a:6378165,rf:298.3,ellipseName:\"WGS 60\"},i.WGS66={a:6378145,rf:298.25,ellipseName:\"WGS 66\"},i.WGS7={a:6378135,rf:298.26,ellipseName:\"WGS 72\"};var r=i.WGS84={a:6378137,rf:298.257223563,ellipseName:\"WGS 84\"};i.sphere={a:6370997,b:6370997,ellipseName:\"Normal Sphere (r=6370997)\"}},function(e,t,n){\"use strict\";n.d(t,\"a\",function(){return i});var i={};i.greenwich=0,i.lisbon=-9.131906111111,i.paris=2.337229166667,i.bogota=-74.080916666667,i.madrid=-3.687938888889,i.rome=12.452333333333,i.bern=7.439583333333,i.jakarta=106.807719444444,i.ferro=-17.666666666667,i.brussels=4.367975,i.stockholm=18.058277777778,i.athens=23.7163375,i.oslo=10.722916666667},function(e,t,n){\"use strict\";t.a={ft:{to_meter:.3048},\"us-ft\":{to_meter:1200/3937}}},function(e,t,n){\"use strict\";function i(e,t,i){var r,o,a;return Array.isArray(i)?(r=n.i(s.a)(e,t,i),3===i.length?[r.x,r.y,r.z]:[r.x,r.y]):(o=n.i(s.a)(e,t,i),a=Object.keys(i),2===a.length?o:(a.forEach(function(e){\"x\"!==e&&\"y\"!==e&&(o[e]=i[e])}),o))}function r(e){return e instanceof a.a?e:e.oProj?e.oProj:n.i(a.a)(e)}function o(e,t,n){e=r(e);var o,a=!1;return void 0===t?(t=e,e=l,a=!0):(void 0!==t.x||Array.isArray(t))&&(n=t,t=e,e=l,a=!0),t=r(t),n?i(e,t,n):(o={forward:function(n){return i(e,t,n)},inverse:function(n){return i(t,e,n)}},a&&(o.oProj=t),o)}var a=n(127),s=n(198),l=n.i(a.a)(\"WGS84\");t.a=o},function(e,t,n){\"use strict\";function i(e,t,n,i,o,a){var s={};return s.datum_type=void 0===e||\"none\"===e?r.k:r.l,t&&(s.datum_params=t.map(parseFloat),0===s.datum_params[0]&&0===s.datum_params[1]&&0===s.datum_params[2]||(s.datum_type=r.i),s.datum_params.length>3&&(0===s.datum_params[3]&&0===s.datum_params[4]&&0===s.datum_params[5]&&0===s.datum_params[6]||(s.datum_type=r.j,s.datum_params[3]*=r.h,s.datum_params[4]*=r.h,s.datum_params[5]*=r.h,s.datum_params[6]=s.datum_params[6]/1e6+1))),s.a=n,s.b=i,s.es=o,s.ep2=a,s}var r=n(7);t.a=i},function(e,t,n){\"use strict\";function i(e,t){return e.datum_type===t.datum_type&&(!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(e.datum_type===l.i?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:e.datum_type!==l.j||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6]))}function r(e,t,n){var i,r,o,a,s=e.x,u=e.y,c=e.z?e.z:0;if(u<-l.b&&u>-1.001*l.b)u=-l.b;else if(u>l.b&&u<1.001*l.b)u=l.b;else{if(u<-l.b)return{x:-1/0,y:-1/0,z:e.z};if(u>l.b)return{x:1/0,y:1/0,z:e.z}}return s>Math.PI&&(s-=2*Math.PI),r=Math.sin(u),a=Math.cos(u),o=r*r,i=n/Math.sqrt(1-t*o),{x:(i+c)*a*Math.cos(s),y:(i+c)*a*Math.sin(s),z:(i*(1-t)+c)*r}}function o(e,t,n,i){var r,o,a,s,u,c,d,h,f,p,m,g,v,y,b,_,x=e.x,w=e.y,M=e.z?e.z:0;if(r=Math.sqrt(x*x+w*w),o=Math.sqrt(x*x+w*w+M*M),r/n<1e-12){if(y=0,o/n<1e-12)return b=l.b,_=-i,{x:e.x,y:e.y,z:e.z}}else y=Math.atan2(w,x);a=M/o,s=r/o,u=1/Math.sqrt(1-t*(2-t)*s*s),h=s*(1-t)*u,f=a*u,v=0;do{v++,d=n/Math.sqrt(1-t*f*f),_=r*h+M*f-d*(1-t*f*f),c=t*d/(d+_),u=1/Math.sqrt(1-c*(2-c)*s*s),p=s*(1-c)*u,m=a*u,g=m*h-p*f,h=p,f=m}while(g*g>1e-24&&v<30);return b=Math.atan(m/Math.abs(p)),{x:y,y:b,z:_}}function a(e,t,n){if(t===l.i)return{x:e.x+n[0],y:e.y+n[1],z:e.z+n[2]};if(t===l.j){var i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],u=n[5],c=n[6];return{x:c*(e.x-u*e.y+s*e.z)+i,y:c*(u*e.x+e.y-a*e.z)+r,z:c*(-s*e.x+a*e.y+e.z)+o}}}function s(e,t,n){if(t===l.i)return{x:e.x-n[0],y:e.y-n[1],z:e.z-n[2]};if(t===l.j){var i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],u=n[5],c=n[6],d=(e.x-i)/c,h=(e.y-r)/c,f=(e.z-o)/c;return{x:d+u*h-s*f,y:-u*d+h+a*f,z:s*d-a*h+f}}}t.a=i,t.b=r,t.e=o,t.c=a,t.d=s;var l=n(7)},function(e,t,n){\"use strict\";function i(e){return e===r.i||e===r.j}var r=n(7),o=n(508);t.a=function(e,t,a){return n.i(o.a)(e,t)?a:e.datum_type===r.k||t.datum_type===r.k?a:e.es!==t.es||e.a!==t.a||i(e.datum_type)||i(t.datum_type)?(a=n.i(o.b)(a,e.es,e.a),i(e.datum_type)&&(a=n.i(o.c)(a,e.datum_type,e.datum_params)),i(t.datum_type)&&(a=n.i(o.d)(a,t.datum_type,t.datum_params)),n.i(o.e)(a,t.es,t.a,t.b)):a}},function(e,t,n){\"use strict\";function i(e,t,n,i){var r=e*e,a=t*t,s=(r-a)/r,l=0;return i?(e*=1-s*(o.m+s*(o.n+s*o.o)),r=e*e,s=0):l=Math.sqrt(s),{es:s,e:l,ep2:(r-a)/a}}function r(e,t,i,r,l){if(!e){var u=n.i(s.a)(a.a,r);u||(u=a.b),e=u.a,t=u.b,i=u.rf}return i&&!t&&(t=(1-1/i)*e),(0===i||Math.abs(e-t)-1})}function a(e){var t=n.i(f.a)(e,\"authority\");if(t){var i=n.i(f.a)(t,\"epsg\");return i&&m.indexOf(i)>-1}}function s(e){var t=n.i(f.a)(e,\"extension\");if(t)return n.i(f.a)(t,\"proj4\")}function l(e){return\"+\"===e[0]}function u(e){if(!i(e))return e;if(r(e))return c.a[e];if(o(e)){var t=n.i(d.a)(e);if(a(t))return c.a[\"EPSG:3857\"];var u=s(t);return u?n.i(h.a)(u):t}return l(e)?n.i(h.a)(e):void 0}var c=n(195),d=n(220),h=n(196),f=n(96),p=[\"PROJECTEDCRS\",\"PROJCRS\",\"GEOGCS\",\"GEOCCS\",\"PROJCS\",\"LOCAL_CS\",\"GEODCRS\",\"GEODETICCRS\",\"GEODETICDATUM\",\"ENGCRS\",\"ENGINEERINGCRS\"],m=[\"3857\",\"900913\",\"3785\",\"102113\"];t.a=u},function(e,t,n){\"use strict\";function i(e,t){var n=c.length;return e.names?(c[n]=e,e.names.forEach(function(e){u[e.toLowerCase()]=n}),this):(console.log(t),!0)}function r(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==u[t]&&c[u[t]]?c[u[t]]:void 0}function o(){l.forEach(i)}var a=n(528),s=n(527),l=[a.a,s.a],u={},c=[];t.a={start:o,add:i,get:r}},function(e,t,n){\"use strict\";function i(){Math.abs(this.lat1+this.lat2)d.c?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function r(e){var t=e.x,i=e.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var r=n.i(l.a)(this.e3,this.sin_phi,this.cos_phi),o=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,a=this.ns0*n.i(u.a)(t-this.long0),s=o*Math.sin(a)+this.x0,c=this.rh-o*Math.cos(a)+this.y0;return e.x=s,e.y=c,e}function o(e){var t,i,r,o,a,s;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),r=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),r=-1),o=0,0!==t&&(o=Math.atan2(r*e.x,r*e.y)),r=t*this.ns0/this.a,this.sphere?s=Math.asin((this.c-r*r)/(2*this.ns0)):(i=(this.c-r*r)/this.ns0,s=this.phi1z(this.e3,i)),a=n.i(u.a)(o/this.ns0+this.long0),e.x=a,e.y=s,e}function a(e,t){var i,r,o,a,s,l=n.i(c.a)(.5*t);if(e2*s.b*this.a)return;return i=t/this.a,r=Math.sin(i),o=Math.cos(i),g=this.long0,Math.abs(t)<=s.c?v=this.lat0:(v=n.i(p.a)(o*this.sin_p12+e.y*r*this.cos_p12/t),y=Math.abs(this.lat0)-s.b,g=Math.abs(y)<=s.c?this.lat0>=0?n.i(a.a)(this.long0+Math.atan2(e.x,-e.y)):n.i(a.a)(this.long0-Math.atan2(-e.x,e.y)):n.i(a.a)(this.long0+Math.atan2(e.x*r,t*this.cos_p12*o-e.y*this.sin_p12*r))),e.x=g,e.y=v,e}return b=n.i(u.a)(this.es),_=n.i(c.a)(this.es),x=n.i(d.a)(this.es),w=n.i(h.a)(this.es),Math.abs(this.sin_p12-1)<=s.c?(M=this.a*n.i(l.a)(b,_,x,w,s.b),t=Math.sqrt(e.x*e.x+e.y*e.y),S=M-t,v=n.i(m.a)(S/this.a,b,_,x,w),g=n.i(a.a)(this.long0+Math.atan2(e.x,-1*e.y)),e.x=g,e.y=v,e):Math.abs(this.sin_p12+1)<=s.c?(M=this.a*n.i(l.a)(b,_,x,w,s.b),t=Math.sqrt(e.x*e.x+e.y*e.y),S=t-M,v=n.i(m.a)(S/this.a,b,_,x,w),g=n.i(a.a)(this.long0+Math.atan2(e.x,e.y)),e.x=g,e.y=v,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),k=Math.atan2(e.x,e.y),E=n.i(f.a)(this.a,this.e,this.sin_p12),O=Math.cos(k),C=this.e*this.cos_p12*O,P=-C*C/(1-this.es),A=3*this.es*(1-P)*this.sin_p12*this.cos_p12*O/(1-this.es),R=t/E,L=R-P*(1+P)*Math.pow(R,3)/6-A*(1+3*P)*Math.pow(R,4)/24,I=1-P*L*L/2-R*L*L*L/6,T=Math.asin(this.sin_p12*Math.cos(L)+this.cos_p12*Math.sin(L)*O),g=n.i(a.a)(this.long0+Math.asin(Math.sin(k)*Math.sin(L)/Math.cos(T))),v=Math.atan((1-this.es*I*this.sin_p12/Math.sin(T))*Math.tan(T)/(1-this.es)),e.x=g,e.y=v,e)}var a=n(11),s=n(7),l=n(93),u=n(89),c=n(90),d=n(91),h=n(92),f=n(128),p=n(54),m=n(129),g=[\"Azimuthal_Equidistant\",\"aeqd\"];t.a={init:i,forward:r,inverse:o,names:g}},function(e,t,n){\"use strict\";function i(){this.sphere||(this.e0=n.i(s.a)(this.es),this.e1=n.i(l.a)(this.es),this.e2=n.i(u.a)(this.es),this.e3=n.i(c.a)(this.es),this.ml0=this.a*n.i(a.a)(this.e0,this.e1,this.e2,this.e3,this.lat0))}function r(e){var t,i,r=e.x,o=e.y;if(r=n.i(h.a)(r-this.long0),this.sphere)t=this.a*Math.asin(Math.cos(o)*Math.sin(r)),i=this.a*(Math.atan2(Math.tan(o),Math.cos(r))-this.lat0);else{var s=Math.sin(o),l=Math.cos(o),u=n.i(d.a)(this.a,this.e,s),c=Math.tan(o)*Math.tan(o),f=r*Math.cos(o),p=f*f,m=this.es*l*l/(1-this.es),g=this.a*n.i(a.a)(this.e0,this.e1,this.e2,this.e3,o);t=u*f*(1-p*c*(1/6-(8-c+8*m)*p/120)),i=g-this.ml0+u*s/l*p*(.5+(5-c+6*m)*p/24)}return e.x=t+this.x0,e.y=i+this.y0,e}function o(e){e.x-=this.x0,e.y-=this.y0;var t,i,r=e.x/this.a,o=e.y/this.a;if(this.sphere){var a=o+this.lat0;t=Math.asin(Math.sin(a)*Math.cos(r)),i=Math.atan2(Math.tan(r),Math.cos(a))}else{var s=this.ml0/this.a+o,l=n.i(p.a)(s,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(l)-m.b)<=m.c)return e.x=this.long0,e.y=m.b,o<0&&(e.y*=-1),e;var u=n.i(d.a)(this.a,this.e,Math.sin(l)),c=u*u*u/this.a/this.a*(1-this.es),g=Math.pow(Math.tan(l),2),v=r*this.a/u,y=v*v;t=l-u*Math.tan(l)/c*v*v*(.5-(1+3*g)*v*v/24),i=v*(1-y*(g/3+(1+3*g)*g*y/15))/Math.cos(l)}return e.x=n.i(h.a)(i+this.long0),e.y=n.i(f.a)(t),e}var a=n(93),s=n(89),l=n(90),u=n(91),c=n(92),d=n(128),h=n(11),f=n(73),p=n(129),m=n(7),g=[\"Cassini\",\"Cassini_Soldner\",\"cass\"];t.a={init:i,forward:r,inverse:o,names:g}},function(e,t,n){\"use strict\";function i(){this.sphere||(this.k0=n.i(l.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function r(e){var t,i,r=e.x,o=e.y,l=n.i(a.a)(r-this.long0);if(this.sphere)t=this.x0+this.a*l*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(o)/Math.cos(this.lat_ts);else{var u=n.i(s.a)(this.e,Math.sin(o));t=this.x0+this.a*this.k0*l,i=this.y0+this.a*u*.5/this.k0}return e.x=t,e.y=i,e}function o(e){e.x-=this.x0,e.y-=this.y0;var t,i;return this.sphere?(t=n.i(a.a)(this.long0+e.x/this.a/Math.cos(this.lat_ts)),i=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(i=n.i(u.a)(this.e,2*e.y*this.k0/this.a),t=n.i(a.a)(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=i,e}var a=n(11),s=n(131),l=n(55),u=n(499),c=[\"cea\"];t.a={init:i,forward:r,inverse:o,names:c}},function(e,t,n){\"use strict\";function i(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||\"Equidistant Cylindrical (Plate Carre)\",this.rc=Math.cos(this.lat_ts)}function r(e){var t=e.x,i=e.y,r=n.i(a.a)(t-this.long0),o=n.i(s.a)(i-this.lat0);return e.x=this.x0+this.a*r*this.rc,e.y=this.y0+this.a*o,e}function o(e){var t=e.x,i=e.y;return e.x=n.i(a.a)(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=n.i(s.a)(this.lat0+(i-this.y0)/this.a),e}var a=n(11),s=n(73),l=[\"Equirectangular\",\"Equidistant_Cylindrical\",\"eqc\"];t.a={init:i,forward:r,inverse:o,names:l}},function(e,t,n){\"use strict\";function i(){Math.abs(this.lat1+this.lat2)=0?(i=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(i=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var a=0;if(0!==i&&(a=Math.atan2(t*e.x,t*e.y)),this.sphere)return o=n.i(h.a)(this.long0+a/this.ns),r=n.i(f.a)(this.g-i/this.a),e.x=o,e.y=r,e;var s=this.g-i/this.a;return r=n.i(p.a)(s,this.e0,this.e1,this.e2,this.e3),o=n.i(h.a)(this.long0+a/this.ns),e.x=o,e.y=r,e}var a=n(89),s=n(90),l=n(91),u=n(92),c=n(55),d=n(93),h=n(11),f=n(73),p=n(129),m=n(7),g=[\"Equidistant_Conic\",\"eqdc\"];t.a={init:i,forward:r,inverse:o,names:g}},function(e,t,n){\"use strict\";function i(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+s.g)/(Math.pow(Math.tan(.5*this.lat0+s.g),this.C)*n.i(a.a)(this.e*e,this.ratexp))}function r(e){var t=e.x,i=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+s.g),this.C)*n.i(a.a)(this.e*Math.sin(i),this.ratexp))-s.b,e.x=this.C*t,e}function o(e){for(var t=e.x/this.C,i=e.y,r=Math.pow(Math.tan(.5*i+s.g)/this.K,1/this.C),o=l;o>0&&(i=2*Math.atan(r*n.i(a.a)(this.e*Math.sin(e.y),-.5*this.e))-s.b,!(Math.abs(i-e.y)<1e-14));--o)e.y=i;return o?(e.x=t,e.y=i,e):null}var a=n(501),s=n(7),l=20,u=[\"gauss\"];t.a={init:i,forward:r,inverse:o,names:u}},function(e,t,n){\"use strict\";function i(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function r(e){var t,i,r,o,s,u,c,d,h=e.x,f=e.y;return r=n.i(a.a)(h-this.long0),t=Math.sin(f),i=Math.cos(f),o=Math.cos(r),u=this.sin_p14*t+this.cos_p14*i*o,s=1,u>0||Math.abs(u)<=l.c?(c=this.x0+this.a*s*i*Math.sin(r)/u,d=this.y0+this.a*s*(this.cos_p14*t-this.sin_p14*i*o)/u):(c=this.x0+this.infinity_dist*i*Math.sin(r),d=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*i*o)),e.x=c,e.y=d,e}function o(e){var t,i,r,o,l,u;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(o=Math.atan2(t,this.rc),i=Math.sin(o),r=Math.cos(o),u=n.i(s.a)(r*this.sin_p14+e.y*i*this.cos_p14/t),l=Math.atan2(e.x*i,t*this.cos_p14*r-e.y*this.sin_p14*i),l=n.i(a.a)(this.long0+l)):(u=this.phic0,l=0),e.x=l,e.y=u,e}var a=n(11),s=n(54),l=n(7),u=[\"gnom\"];t.a={init:i,forward:r,inverse:o,names:u}},function(e,t,n){\"use strict\";function i(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function r(e){var t,i,r,o,s,l,u,c=e.x,d=e.y,h=n.i(a.a)(c-this.long0);return t=Math.pow((1+this.e*Math.sin(d))/(1-this.e*Math.sin(d)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(d/2+this.s45),this.alfa)/t)-this.s45),r=-h*this.alfa,o=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),s=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(o)),l=this.n*s,u=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(o/2+this.s45),this.n),e.y=u*Math.cos(l)/1,e.x=u*Math.sin(l)/1,this.czech||(e.y*=-1,e.x*=-1),e}function o(e){var t,n,i,r,o,a,s,l,u=e.x;e.x=e.y,e.y=u,this.czech||(e.y*=-1,e.x*=-1),a=Math.sqrt(e.x*e.x+e.y*e.y),o=Math.atan2(e.y,e.x),r=o/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/a,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),n=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(t)),e.x=this.long0-n/this.alfa,s=t,l=0;var c=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-e.y)<1e-10&&(l=1),s=e.y,c+=1}while(0===l&&c<15);return c>=15?null:e}var a=n(11),s=[\"Krovak\",\"krovak\"];t.a={init:i,forward:r,inverse:o,names:s}},function(e,t,n){\"use strict\";function i(){var e=Math.abs(this.lat0);if(Math.abs(e-l.b)0){var t;switch(this.qp=n.i(u.a)(this.e,1),this.mmf=.5/(1-this.es),this.apa=a(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=n.i(u.a)(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function r(e){var t,i,r,o,a,s,d,h,f,p,m=e.x,g=e.y;if(m=n.i(c.a)(m-this.long0),this.sphere){if(a=Math.sin(g),p=Math.cos(g),r=Math.cos(m),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((i=this.mode===this.EQUIT?1+p*r:1+this.sinph0*a+this.cosph0*p*r)<=l.c)return null;i=Math.sqrt(2/i),t=i*p*Math.sin(m),i*=this.mode===this.EQUIT?a:this.cosph0*a-this.sinph0*p*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(g+this.phi0)=0?(t=(f=Math.sqrt(s))*o,i=r*(this.mode===this.S_POLE?f:-f)):t=i=0}}return e.x=this.a*t+this.x0,e.y=this.a*i+this.y0,e}function o(e){e.x-=this.x0,e.y-=this.y0;var t,i,r,o,a,u,d,h=e.x/this.a,f=e.y/this.a;if(this.sphere){var p,m=0,g=0;if(p=Math.sqrt(h*h+f*f),(i=.5*p)>1)return null;switch(i=2*Math.asin(i),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(g=Math.sin(i),m=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(p)<=l.c?0:Math.asin(f*g/p),h*=g,f=m*p;break;case this.OBLIQ:i=Math.abs(p)<=l.c?this.phi0:Math.asin(m*this.sinph0+f*g*this.cosph0/p),h*=g*this.cosph0,f=(m-Math.sin(i)*this.sinph0)*p;break;case this.N_POLE:f=-f,i=l.b-i;break;case this.S_POLE:i-=l.b}t=0!==f||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(h,f):0}else{if(d=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(h/=this.dd,f*=this.dd,(u=Math.sqrt(h*h+f*f))d.c?this.ns=Math.log(r/c)/Math.log(o/h):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=r/(this.ns*Math.pow(o,this.ns)),this.rh=this.a*this.f0*Math.pow(f,this.ns),this.title||(this.title=\"Lambert Conformal Conic\")}}function r(e){var t=e.x,i=e.y;Math.abs(2*Math.abs(i)-Math.PI)<=d.c&&(i=n.i(l.a)(i)*(d.b-2*d.c));var r,o,a=Math.abs(Math.abs(i)-d.b);if(a>d.c)r=n.i(s.a)(this.e,i,Math.sin(i)),o=this.a*this.f0*Math.pow(r,this.ns);else{if((a=i*this.ns)<=0)return null;o=0}var c=this.ns*n.i(u.a)(t-this.long0);return e.x=this.k0*(o*Math.sin(c))+this.x0,e.y=this.k0*(this.rh-o*Math.cos(c))+this.y0,e}function o(e){var t,i,r,o,a,s=(e.x-this.x0)/this.k0,l=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(s*s+l*l),i=1):(t=-Math.sqrt(s*s+l*l),i=-1);var h=0;if(0!==t&&(h=Math.atan2(i*s,i*l)),0!==t||this.ns>0){if(i=1/this.ns,r=Math.pow(t/(this.a*this.f0),i),-9999===(o=n.i(c.a)(this.e,r)))return null}else o=-d.b;return a=n.i(u.a)(h/this.ns+this.long0),e.x=a,e.y=o,e}var a=n(55),s=n(95),l=n(74),u=n(11),c=n(94),d=n(7),h=[\"Lambert Tangential Conformal Conic Projection\",\"Lambert_Conformal_Conic\",\"Lambert_Conformal_Conic_2SP\",\"lcc\"];t.a={init:i,forward:r,inverse:o,names:h}},function(e,t,n){\"use strict\";function i(){}function r(e){return e}var o=[\"longlat\",\"identity\"];t.a={init:i,forward:r,inverse:r,names:o}},function(e,t,n){\"use strict\";function i(){var e=this.b/this.a;this.es=1-e*e,\"x0\"in this||(this.x0=0),\"y0\"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=n.i(a.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function r(e){var t=e.x,i=e.y;if(i*c.a>90&&i*c.a<-90&&t*c.a>180&&t*c.a<-180)return null;var r,o;if(Math.abs(Math.abs(i)-c.b)<=c.c)return null;if(this.sphere)r=this.x0+this.a*this.k0*n.i(s.a)(t-this.long0),o=this.y0+this.a*this.k0*Math.log(Math.tan(c.g+.5*i));else{var a=Math.sin(i),u=n.i(l.a)(this.e,i,a);r=this.x0+this.a*this.k0*n.i(s.a)(t-this.long0),o=this.y0-this.a*this.k0*Math.log(u)}return e.x=r,e.y=o,e}function o(e){var t,i,r=e.x-this.x0,o=e.y-this.y0;if(this.sphere)i=c.b-2*Math.atan(Math.exp(-o/(this.a*this.k0)));else{var a=Math.exp(-o/(this.a*this.k0));if(-9999===(i=n.i(u.a)(this.e,a)))return null}return t=n.i(s.a)(this.long0+r/(this.a*this.k0)),e.x=t,e.y=i,e}var a=n(55),s=n(11),l=n(95),u=n(94),c=n(7),d=[\"Mercator\",\"Popular Visualisation Pseudo Mercator\",\"Mercator_1SP\",\"Mercator_Auxiliary_Sphere\",\"merc\"];t.a={init:i,forward:r,inverse:o,names:d}},function(e,t,n){\"use strict\";function i(){}function r(e){var t=e.x,i=e.y,r=n.i(a.a)(t-this.long0),o=this.x0+this.a*r,s=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return e.x=o,e.y=s,e}function o(e){e.x-=this.x0,e.y-=this.y0;var t=n.i(a.a)(this.long0+e.x/this.a),i=2.5*(Math.atan(Math.exp(.8*e.y/this.a))-Math.PI/4);return e.x=t,e.y=i,e}var a=n(11),s=[\"Miller_Cylindrical\",\"mill\"];t.a={init:i,forward:r,inverse:o,names:s}},function(e,t,n){\"use strict\";function i(){}function r(e){for(var t=e.x,i=e.y,r=n.i(a.a)(t-this.long0),o=i,l=Math.PI*Math.sin(i);;){var u=-(o+Math.sin(o)-l)/(1+Math.cos(o));if(o+=u,Math.abs(u).999999999999&&(i=.999999999999),t=Math.asin(i);var r=n.i(a.a)(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),i=(2*t+Math.sin(2*t))/Math.PI,Math.abs(i)>1&&(i=1);var o=Math.asin(i);return e.x=r,e.y=o,e}var a=n(11),s=n(7),l=[\"Mollweide\",\"moll\"];t.a={init:i,forward:r,inverse:o,names:l}},function(e,t,n){\"use strict\";function i(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function r(e){var t,n=e.x,i=e.y,r=i-this.lat0,o=n-this.long0,s=r/a.h*1e-5,l=o,u=1,c=0;for(t=1;t<=10;t++)u*=s,c+=this.A[t]*u;var d,h,f=c,p=l,m=1,g=0,v=0,y=0;for(t=1;t<=6;t++)d=m*f-g*p,h=g*f+m*p,m=d,g=h,v=v+this.B_re[t]*m-this.B_im[t]*g,y=y+this.B_im[t]*m+this.B_re[t]*g;return e.x=y*this.a+this.x0,e.y=v*this.a+this.y0,e}function o(e){var t,n,i,r=e.x,o=e.y,s=r-this.x0,l=o-this.y0,u=l/this.a,c=s/this.a,d=1,h=0,f=0,p=0;for(t=1;t<=6;t++)n=d*u-h*c,i=h*u+d*c,d=n,h=i,f=f+this.C_re[t]*d-this.C_im[t]*h,p=p+this.C_im[t]*d+this.C_re[t]*h;for(var m=0;m=0?this.el=(o+Math.sqrt(o*o-1))*Math.pow(r,this.bl):this.el=(o-Math.sqrt(o*o-1))*Math.pow(r,this.bl);var h=Math.pow(c,this.bl),f=Math.pow(d,this.bl);l=this.el/h,u=.5*(l-1/l);var p=(this.el*this.el-f*h)/(this.el*this.el+f*h),m=(f-h)/(f+h),g=n.i(s.a)(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(p*Math.tan(.5*this.bl*g)/m)/this.bl,this.long0=n.i(s.a)(this.long0);var v=n.i(s.a)(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*v)/u),this.alpha=Math.asin(o*Math.sin(this.gamma0))}else l=this.lat0>=0?o+Math.sqrt(o*o-1):o-Math.sqrt(o*o-1),this.el=l*Math.pow(r,this.bl),u=.5*(l-1/l),this.gamma0=Math.asin(Math.sin(this.alpha)/o),this.long0=this.longc-Math.asin(u*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(o*o-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(o*o-1),Math.cos(this.alpha))}function r(e){var t,i,r,o=e.x,l=e.y,c=n.i(s.a)(o-this.long0);if(Math.abs(Math.abs(l)-u.b)<=u.c)r=l>0?-1:1,i=this.al/this.bl*Math.log(Math.tan(u.g+r*this.gamma0*.5)),t=-1*r*u.b*this.al/this.bl;else{var d=n.i(a.a)(this.e,l,Math.sin(l)),h=this.el/Math.pow(d,this.bl),f=.5*(h-1/h),p=.5*(h+1/h),m=Math.sin(this.bl*c),g=(f*Math.sin(this.gamma0)-m*Math.cos(this.gamma0))/p;i=Math.abs(Math.abs(g)-1)<=u.c?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-g)/(1+g))/this.bl,t=Math.abs(Math.cos(this.bl*c))<=u.c?this.al*this.bl*c:this.al*Math.atan2(f*Math.cos(this.gamma0)+m*Math.sin(this.gamma0),Math.cos(this.bl*c))/this.bl}return this.no_rot?(e.x=this.x0+t,e.y=this.y0+i):(t-=this.uc,e.x=this.x0+i*Math.cos(this.alpha)+t*Math.sin(this.alpha),e.y=this.y0+t*Math.cos(this.alpha)-i*Math.sin(this.alpha)),e}function o(e){var t,i;this.no_rot?(i=e.y-this.y0,t=e.x-this.x0):(i=(e.x-this.x0)*Math.cos(this.alpha)-(e.y-this.y0)*Math.sin(this.alpha),t=(e.y-this.y0)*Math.cos(this.alpha)+(e.x-this.x0)*Math.sin(this.alpha),t+=this.uc);var r=Math.exp(-1*this.bl*i/this.al),o=.5*(r-1/r),a=.5*(r+1/r),c=Math.sin(this.bl*t/this.al),d=(c*Math.cos(this.gamma0)+o*Math.sin(this.gamma0))/a,h=Math.pow(this.el/Math.sqrt((1+d)/(1-d)),1/this.bl);return Math.abs(d-1)0||Math.abs(u)<=l.c)&&(c=this.a*s*i*Math.sin(r),d=this.y0+this.a*s*(this.cos_p14*t-this.sin_p14*i*o)),e.x=c,e.y=d,e}function o(e){var t,i,r,o,u,c,d;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),i=n.i(s.a)(t/this.a),r=Math.sin(i),o=Math.cos(i),c=this.long0,Math.abs(t)<=l.c?(d=this.lat0,e.x=c,e.y=d,e):(d=n.i(s.a)(o*this.sin_p14+e.y*r*this.cos_p14/t),u=Math.abs(this.lat0)-l.b,Math.abs(u)<=l.c?(c=this.lat0>=0?n.i(a.a)(this.long0+Math.atan2(e.x,-e.y)):n.i(a.a)(this.long0-Math.atan2(-e.x,e.y)),e.x=c,e.y=d,e):(c=n.i(a.a)(this.long0+Math.atan2(e.x*r,t*this.cos_p14*o-e.y*this.sin_p14*r)),e.x=c,e.y=d,e))}var a=n(11),s=n(54),l=n(7),u=[\"ortho\"];t.a={init:i,forward:r,inverse:o,names:u}},function(e,t,n){\"use strict\";function i(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=n.i(a.a)(this.es),this.e1=n.i(s.a)(this.es),this.e2=n.i(l.a)(this.es),this.e3=n.i(u.a)(this.es),this.ml0=this.a*n.i(h.a)(this.e0,this.e1,this.e2,this.e3,this.lat0)}function r(e){var t,i,r,o=e.x,a=e.y,s=n.i(c.a)(o-this.long0);if(r=s*Math.sin(a),this.sphere)Math.abs(a)<=f.c?(t=this.a*s,i=-1*this.a*this.lat0):(t=this.a*Math.sin(r)/Math.tan(a),i=this.a*(n.i(d.a)(a-this.lat0)+(1-Math.cos(r))/Math.tan(a)));else if(Math.abs(a)<=f.c)t=this.a*s,i=-1*this.ml0;else{var l=n.i(p.a)(this.a,this.e,Math.sin(a))/Math.tan(a);t=l*Math.sin(r),i=this.a*n.i(h.a)(this.e0,this.e1,this.e2,this.e3,a)-this.ml0+l*(1-Math.cos(r))}return e.x=t+this.x0,e.y=i+this.y0,e}function o(e){var t,i,r,o,a,s,l,u,d;if(r=e.x-this.x0,o=e.y-this.y0,this.sphere)if(Math.abs(o+this.a*this.lat0)<=f.c)t=n.i(c.a)(r/this.a+this.long0),i=0;else{s=this.lat0+o/this.a,l=r*r/this.a/this.a+s*s,u=s;var p;for(a=m;a;--a)if(p=Math.tan(u),d=-1*(s*(u*p+1)-u-.5*(u*u+l)*p)/((u-s)/p-1),u+=d,Math.abs(d)<=f.c){i=u;break}t=n.i(c.a)(this.long0+Math.asin(r*Math.tan(u)/this.a)/Math.sin(i))}else if(Math.abs(o+this.ml0)<=f.c)i=0,t=n.i(c.a)(this.long0+r/this.a);else{s=(this.ml0+o)/this.a,l=r*r/this.a/this.a+s*s,u=s;var g,v,y,b,_;for(a=m;a;--a)if(_=this.e*Math.sin(u),g=Math.sqrt(1-_*_)*Math.tan(u),v=this.a*n.i(h.a)(this.e0,this.e1,this.e2,this.e3,u),y=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),b=v/this.a,d=(s*(g*b+1)-b-.5*g*(b*b+l))/(this.es*Math.sin(2*u)*(b*b+l-2*s*b)/(4*g)+(s-b)*(g*y-2/Math.sin(2*u))-y),u-=d,Math.abs(d)<=f.c){i=u;break}g=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),t=n.i(c.a)(this.long0+Math.asin(r*g/this.a)/Math.sin(i))}return e.x=t,e.y=i,e}var a=n(89),s=n(90),l=n(91),u=n(92),c=n(11),d=n(73),h=n(93),f=n(7),p=n(128),m=20,g=[\"Polyconic\",\"poly\"];t.a={init:i,forward:r,inverse:o,names:g}},function(e,t,n){\"use strict\";function i(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||\"Quadrilateralized Spherical Cube\",this.lat0>=l.b-l.g/2?this.face=u.TOP:this.lat0<=-(l.b-l.g/2)?this.face=u.BOTTOM:Math.abs(this.long0)<=l.g?this.face=u.FRONT:Math.abs(this.long0)<=l.b+l.g?this.face=this.long0>0?u.RIGHT:u.LEFT:this.face=u.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function r(e){var t,n,i,r,o,d,h={x:0,y:0},f={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,n=e.x,this.face===u.TOP)r=l.b-t,n>=l.g&&n<=l.b+l.g?(f.value=c.AREA_0,i=n-l.b):n>l.b+l.g||n<=-(l.b+l.g)?(f.value=c.AREA_1,i=n>0?n-l.e:n+l.e):n>-(l.b+l.g)&&n<=-l.g?(f.value=c.AREA_2,i=n+l.b):(f.value=c.AREA_3,i=n);else if(this.face===u.BOTTOM)r=l.b+t,n>=l.g&&n<=l.b+l.g?(f.value=c.AREA_0,i=-n+l.b):n=-l.g?(f.value=c.AREA_1,i=-n):n<-l.g&&n>=-(l.b+l.g)?(f.value=c.AREA_2,i=-n-l.b):(f.value=c.AREA_3,i=n>0?-n+l.e:-n-l.e);else{var p,m,g,v,y,b,_;this.face===u.RIGHT?n=s(n,+l.b):this.face===u.BACK?n=s(n,+l.e):this.face===u.LEFT&&(n=s(n,-l.b)),v=Math.sin(t),y=Math.cos(t),b=Math.sin(n),_=Math.cos(n),p=y*_,m=y*b,g=v,this.face===u.FRONT?(r=Math.acos(p),i=a(r,g,m,f)):this.face===u.RIGHT?(r=Math.acos(m),i=a(r,g,-p,f)):this.face===u.BACK?(r=Math.acos(-p),i=a(r,g,-m,f)):this.face===u.LEFT?(r=Math.acos(-m),i=a(r,g,p,f)):(r=i=0,f.value=c.AREA_0)}return d=Math.atan(12/l.e*(i+Math.acos(Math.sin(i)*Math.cos(l.g))-l.b)),o=Math.sqrt((1-Math.cos(r))/(Math.cos(d)*Math.cos(d))/(1-Math.cos(Math.atan(1/Math.cos(i))))),f.value===c.AREA_1?d+=l.b:f.value===c.AREA_2?d+=l.e:f.value===c.AREA_3&&(d+=1.5*l.e),h.x=o*Math.cos(d),h.y=o*Math.sin(d),h.x=h.x*this.a+this.x0,h.y=h.y*this.a+this.y0,e.x=h.x,e.y=h.y,e}function o(e){var t,n,i,r,o,a,d,h,f,p={lam:0,phi:0},m={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?m.value=c.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(m.value=c.AREA_1,t-=l.b):e.x<0&&-e.x>=Math.abs(e.y)?(m.value=c.AREA_2,t=t<0?t+l.e:t-l.e):(m.value=c.AREA_3,t+=l.b),f=l.e/12*Math.tan(t),o=Math.sin(f)/(Math.cos(f)-1/Math.sqrt(2)),a=Math.atan(o),i=Math.cos(t),r=Math.tan(n),d=1-i*i*r*r*(1-Math.cos(Math.atan(1/Math.cos(a)))),d<-1?d=-1:d>1&&(d=1),this.face===u.TOP)h=Math.acos(d),p.phi=l.b-h,m.value===c.AREA_0?p.lam=a+l.b:m.value===c.AREA_1?p.lam=a<0?a+l.e:a-l.e:m.value===c.AREA_2?p.lam=a-l.b:p.lam=a;else if(this.face===u.BOTTOM)h=Math.acos(d),p.phi=h-l.b,m.value===c.AREA_0?p.lam=-a+l.b:m.value===c.AREA_1?p.lam=-a:m.value===c.AREA_2?p.lam=-a-l.b:p.lam=a<0?-a-l.e:-a+l.e;else{var g,v,y;g=d,f=g*g,y=f>=1?0:Math.sqrt(1-f)*Math.sin(a),f+=y*y,v=f>=1?0:Math.sqrt(1-f),m.value===c.AREA_1?(f=v,v=-y,y=f):m.value===c.AREA_2?(v=-v,y=-y):m.value===c.AREA_3&&(f=v,v=y,y=-f),this.face===u.RIGHT?(f=g,g=-v,v=f):this.face===u.BACK?(g=-g,v=-v):this.face===u.LEFT&&(f=g,g=v,v=-f),p.phi=Math.acos(-y)-l.b,p.lam=Math.atan2(v,g),this.face===u.RIGHT?p.lam=s(p.lam,-l.b):this.face===u.BACK?p.lam=s(p.lam,-l.e):this.face===u.LEFT&&(p.lam=s(p.lam,+l.b))}if(0!==this.es){var b,_,x;b=p.phi<0?1:0,_=Math.tan(p.phi),x=this.b/Math.sqrt(_*_+this.one_minus_f_squared),p.phi=Math.atan(Math.sqrt(this.a*this.a-x*x)/(this.one_minus_f*x)),b&&(p.phi=-p.phi)}return p.lam+=this.long0,e.x=p.lam,e.y=p.phi,e}function a(e,t,n,i){var r;return el.g&&r<=l.b+l.g?(i.value=c.AREA_1,r-=l.b):r>l.b+l.g||r<=-(l.b+l.g)?(i.value=c.AREA_2,r=r>=0?r-l.e:r+l.e):(i.value=c.AREA_3,r+=l.b)),r}function s(e,t){var n=e+t;return n<-l.e?n+=l.f:n>+l.e&&(n-=l.f),n}var l=n(7),u={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},c={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4},d=[\"Quadrilateralized Spherical Cube\",\"Quadrilateralized_Spherical_Cube\",\"qsc\"];t.a={init:i,forward:r,inverse:o,names:d}},function(e,t,n){\"use strict\";function i(e,t,n,i){for(var r=t;i;--i){var o=e(r);if(r-=o,Math.abs(o)=m&&(r=m-1),i=s.a*(i-p*r);var o={x:g(u[r],i)*t,y:g(c[r],i)};return e.y<0&&(o.y=-o.y),o.x=o.x*this.a*d+this.x0,o.y=o.y*this.a*h+this.y0,o}function a(e){var t={x:(e.x-this.x0)/(this.a*d),y:Math.abs(e.y-this.y0)/(this.a*h)};if(t.y>=1)t.x/=u[m][0],t.y=e.y<0?-s.b:s.b;else{var r=Math.floor(t.y*m);for(r<0?r=0:r>=m&&(r=m-1);;)if(c[r][0]>t.y)--r;else{if(!(c[r+1][0]<=t.y))break;++r}var o=c[r],a=5*(t.y-o[0])/(c[r+1][0]-o[0]);a=i(function(e){return(g(o,e)-t.y)/v(o,e)},a,s.c,100),t.x/=g(u[r],a),t.y=(5*r+a)*s.d,e.y<0&&(t.y=-t.y)}return t.x=n.i(l.a)(t.x+this.long0),t}var s=n(7),l=n(11),u=[[1,2.2199e-17,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],c=[[-5.20417e-18,.0124,1.21431e-18,-8.45284e-11],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],d=.8487,h=1.3523,f=s.a/5,p=1/f,m=18,g=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},v=function(e,t){return e[1]+t*(2*e[2]+3*t*e[3])},y=[\"Robinson\",\"robin\"];t.a={init:r,forward:o,inverse:a,names:y}},function(e,t,n){\"use strict\";function i(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=n.i(l.a)(this.es)}function r(e){var t,i,r=e.x,o=e.y;if(r=n.i(a.a)(r-this.long0),this.sphere){if(this.m)for(var s=this.n*Math.sin(o),l=f;l;--l){var c=(this.m*o+Math.sin(o)-s)/(this.m+Math.cos(o));if(o-=c,Math.abs(c)1e-7;){if(++d>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),c=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return e.x=s,e.y=u,e}var a=[\"somerc\"];t.a={init:i,forward:r,inverse:o,names:a}},function(e,t,n){\"use strict\";function i(e,t,n){return t*=n,Math.tan(.5*(s.b+e))*Math.pow((1-t)/(1+t),.5*n)}function r(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s.c&&(this.k0=.5*(1+n.i(l.a)(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=s.c&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s.c&&(this.k0=.5*this.cons*n.i(u.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/n.i(c.a)(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=n.i(u.a)(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-s.b,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function o(e){var t,i,r,o,a,l,u=e.x,d=e.y,f=Math.sin(d),p=Math.cos(d),m=n.i(h.a)(u-this.long0);return Math.abs(Math.abs(u-this.long0)-Math.PI)<=s.c&&Math.abs(d+this.lat0)<=s.c?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*f+this.coslat0*p*Math.cos(m)),e.x=this.a*t*p*Math.sin(m)+this.x0,e.y=this.a*t*(this.coslat0*f-this.sinlat0*p*Math.cos(m))+this.y0,e):(i=2*Math.atan(this.ssfn_(d,f,this.e))-s.b,o=Math.cos(i),r=Math.sin(i),Math.abs(this.coslat0)<=s.c?(a=n.i(c.a)(this.e,d*this.con,this.con*f),l=2*this.a*this.k0*a/this.cons,e.x=this.x0+l*Math.sin(u-this.long0),e.y=this.y0-this.con*l*Math.cos(u-this.long0),e):(Math.abs(this.sinlat0)0?n.i(h.a)(this.long0+Math.atan2(e.x,-1*e.y)):n.i(h.a)(this.long0+Math.atan2(e.x,e.y)):n.i(h.a)(this.long0+Math.atan2(e.x*Math.sin(u),l*this.coslat0*Math.cos(u)-e.y*this.sinlat0*Math.sin(u))),e.x=t,e.y=i,e)}if(Math.abs(this.coslat0)<=s.c){if(l<=s.c)return i=this.lat0,t=this.long0,e.x=t,e.y=i,e;e.x*=this.con,e.y*=this.con,r=l*this.cons/(2*this.a*this.k0),i=this.con*n.i(d.a)(this.e,r),t=this.con*n.i(h.a)(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else o=2*Math.atan(l*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,l<=s.c?a=this.X0:(a=Math.asin(Math.cos(o)*this.sinX0+e.y*Math.sin(o)*this.cosX0/l),t=n.i(h.a)(this.long0+Math.atan2(e.x*Math.sin(o),l*this.cosX0*Math.cos(o)-e.y*this.sinX0*Math.sin(o)))),i=-1*n.i(d.a)(this.e,Math.tan(.5*(s.b+a)));return e.x=t,e.y=i,e}var s=n(7),l=n(74),u=n(55),c=n(95),d=n(94),h=n(11),f=[\"stere\",\"Stereographic_South_Pole\",\"Polar Stereographic (variant B)\"];t.a={init:r,forward:o,inverse:a,names:f,ssfn_:i}},function(e,t,n){\"use strict\";function i(){a.a.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title=\"Oblique Stereographic Alternative\"))}function r(e){var t,i,r,o;return e.x=n.i(s.a)(e.x-this.long0),a.a.forward.apply(this,[e]),t=Math.sin(e.y),i=Math.cos(e.y),r=Math.cos(e.x),o=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*i*r),e.x=o*i*Math.sin(e.x),e.y=o*(this.cosc0*t-this.sinc0*i*r),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function o(e){var t,i,r,o,l;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,l=Math.sqrt(e.x*e.x+e.y*e.y)){var u=2*Math.atan2(l,this.R2);t=Math.sin(u),i=Math.cos(u),o=Math.asin(i*this.sinc0+e.y*t*this.cosc0/l),r=Math.atan2(e.x*t,l*this.cosc0*i-e.y*this.sinc0*t)}else o=this.phic0,r=0;return e.x=r,e.y=o,a.a.inverse.apply(this,[e]),e.x=n.i(s.a)(e.x+this.long0),e}var a=n(522),s=n(11),l=[\"Stereographic_North_Pole\",\"Oblique_Stereographic\",\"Polar_Stereographic\",\"sterea\",\"Oblique Stereographic Alternative\",\"Double_Stereographic\"];t.a={init:i,forward:r,inverse:o,names:l}},function(e,t,n){\"use strict\";function i(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=n.i(a.a)(this.es),this.ml0=n.i(s.a)(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function r(e){var t,i,r,o=e.x,a=e.y,l=n.i(u.a)(o-this.long0),d=Math.sin(a),h=Math.cos(a);if(this.es){var f=h*l,p=Math.pow(f,2),m=this.ep2*Math.pow(h,2),g=Math.pow(m,2),v=Math.abs(h)>c.c?Math.tan(a):0,y=Math.pow(v,2),b=Math.pow(y,2);t=1-this.es*Math.pow(d,2),f/=Math.sqrt(t);var _=n.i(s.a)(a,d,h,this.en);i=this.a*(this.k0*f*(1+p/6*(1-y+m+p/20*(5-18*y+b+14*m-58*y*m+p/42*(61+179*b-b*y-479*y)))))+this.x0,r=this.a*(this.k0*(_-this.ml0+d*l*f/2*(1+p/12*(5-y+9*m+4*g+p/30*(61+b-58*y+270*m-330*y*m+p/56*(1385+543*b-b*y-3111*y))))))+this.y0}else{var x=h*Math.sin(l);if(Math.abs(Math.abs(x)-1)=1){if(x-1>c.c)return 93;r=0}else r=Math.acos(r);a<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return e.x=i,e.y=r,e}function o(e){var t,i,r,o,a=(e.x-this.x0)*(1/this.a),s=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+s/this.k0,i=n.i(l.a)(t,this.es,this.en),Math.abs(i)c.c?Math.tan(i):0,m=this.ep2*Math.pow(f,2),g=Math.pow(m,2),v=Math.pow(p,2),y=Math.pow(v,2);t=1-this.es*Math.pow(h,2);var b=a*Math.sqrt(t)/this.k0,_=Math.pow(b,2);t*=p,r=i-t*_/(1-this.es)*.5*(1-_/12*(5+3*v-9*m*v+m-4*g-_/30*(61+90*v-252*m*v+45*y+46*m-_/56*(1385+3633*v+4095*y+1574*y*v)))),o=n.i(u.a)(this.long0+b*(1-_/6*(1+2*v+m-_/20*(5+28*v+24*y+8*m*v+6*m-_/42*(61+662*v+1320*y+720*y*v))))/f)}else r=c.b*n.i(d.a)(s),o=0;else{var x=Math.exp(a/this.k0),w=.5*(x-1/x),M=this.lat0+s/this.k0,S=Math.cos(M);t=Math.sqrt((1-Math.pow(S,2))/(1+Math.pow(w,2))),r=Math.asin(t),s<0&&(r=-r),o=0===w&&0===S?0:n.i(u.a)(Math.atan2(w,S)+this.long0)}return e.x=o,e.y=r,e}var a=n(191),s=n(130),l=n(192),u=n(11),c=n(7),d=n(74),h=[\"Transverse_Mercator\",\"Transverse Mercator\",\"tmerc\"];t.a={init:i,forward:r,inverse:o,names:h}},function(e,t,n){\"use strict\";function i(){var e=n.i(r.a)(this.zone,this.long0);if(void 0===e)throw new Error(\"unknown utm zone\");this.lat0=0,this.long0=(6*Math.abs(e)-183)*a.d,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,o.a.init.apply(this),this.forward=o.a.forward,this.inverse=o.a.inverse}var r=n(493),o=n(197),a=n(7),s=[\"Universal Transverse Mercator System\",\"utm\"];t.a={init:i,names:s,dependsOn:\"etmerc\"}},function(e,t,n){\"use strict\";function i(){this.R=this.a}function r(e){var t,i,r=e.x,o=e.y,u=n.i(a.a)(r-this.long0);Math.abs(o)<=s.c&&(t=this.x0+this.R*u,i=this.y0);var c=n.i(l.a)(2*Math.abs(o/Math.PI));(Math.abs(u)<=s.c||Math.abs(Math.abs(o)-s.b)<=s.c)&&(t=this.x0,i=o>=0?this.y0+Math.PI*this.R*Math.tan(.5*c):this.y0+Math.PI*this.R*-Math.tan(.5*c));var d=.5*Math.abs(Math.PI/u-u/Math.PI),h=d*d,f=Math.sin(c),p=Math.cos(c),m=p/(f+p-1),g=m*m,v=m*(2/f-1),y=v*v,b=Math.PI*this.R*(d*(m-y)+Math.sqrt(h*(m-y)*(m-y)-(y+h)*(g-y)))/(y+h);u<0&&(b=-b),t=this.x0+b;var _=h+m;return b=Math.PI*this.R*(v*_-d*Math.sqrt((y+h)*(h+1)-_*_))/(y+h),i=o>=0?this.y0+b:this.y0-b,e.x=t,e.y=i,e}function o(e){var t,i,r,o,l,u,c,d,h,f,p,m,g;return e.x-=this.x0,e.y-=this.y0,p=Math.PI*this.R,r=e.x/p,o=e.y/p,l=r*r+o*o,u=-Math.abs(o)*(1+l),c=u-2*o*o+r*r,d=-2*u+1+2*o*o+l*l,g=o*o/d+(2*c*c*c/d/d/d-9*u*c/d/d)/27,h=(u-c*c/3/d)/d,f=2*Math.sqrt(-h/3),p=3*g/h/f,Math.abs(p)>1&&(p=p>=0?1:-1),m=Math.acos(p)/3,i=e.y>=0?(-f*Math.cos(m+Math.PI/3)-c/3/d)*Math.PI:-(-f*Math.cos(m+Math.PI/3)-c/3/d)*Math.PI,t=Math.abs(r)>>0,this.hi=t>>>0}e.exports=i;var r=n(36),o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var a=i.zeroHash=\"\\0\\0\\0\\0\\0\\0\\0\\0\";i.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new i(n,r)},i.from=function(e){if(\"number\"==typeof e)return i.fromNumber(e);if(r.isString(e)){if(!r.Long)return i.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):o},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;i.fromHash=function(e){return e===a?o:new i((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},function(e,t,n){\"use strict\";function i(){o.call(this)}function r(e,t,n){e.length<40?a.utf8.write(e,t,n):t.utf8Write(e,n)}e.exports=i;var o=n(135);(i.prototype=Object.create(o.prototype)).constructor=i;var a=n(36),s=a.Buffer;i.alloc=function(e){return(i.alloc=a._Buffer_allocUnsafe)(e)};var l=s&&s.prototype instanceof Uint8Array&&\"set\"===s.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var i=0;i>>0;return this.uint32(t),t&&this._push(l,t,e),this},i.prototype.string=function(e){var t=s.byteLength(e);return this.uint32(t),t&&this._push(r,t,e),this}},function(e,t,n){\"use strict\";function i(e,t,n,i,r,o,a,s){if(!e){if(e=void 0,void 0===t)e=Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else{var l=[n,i,r,o,a,s],u=0;e=Error(t.replace(/%s/g,function(){return l[u++]})),e.name=\"Invariant Violation\"}throw e.framesToPop=1,e}}function r(e){for(var t=arguments.length-1,n=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+e,r=0;rthis.eventPool.length&&this.eventPool.push(e)}function N(e){e.eventPool=[],e.getPooled=I,e.release=D}function B(e,t){switch(e){case\"keyup\":return-1!==tr.indexOf(t.keyCode);case\"keydown\":return 229!==t.keyCode;case\"keypress\":case\"mousedown\":case\"blur\":return!0;default:return!1}}function z(e){return e=e.detail,\"object\"==typeof e&&\"data\"in e?e.data:null}function F(e,t){switch(e){case\"compositionend\":return z(t);case\"keypress\":return 32!==t.which?null:(lr=!0,ar);case\"textInput\":return e=t.data,e===ar&&lr?null:e;default:return null}}function j(e,t){if(ur)return\"compositionend\"===e||!nr&&B(e,t)?(e=P(),Qi=Ji=Zi=null,ur=!1,e):null;switch(e){case\"paste\":return null;case\"keypress\":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1t}return!1}function se(e,t,n,i,r){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t}function le(e){return e[1].toUpperCase()}function ue(e,t,n,i){var r=Ir.hasOwnProperty(t)?Ir[t]:null;(null!==r?0===r.type:!i&&(2po.length&&po.push(e)}}}function We(e){return Object.prototype.hasOwnProperty.call(e,yo)||(e[yo]=vo++,go[e[yo]]={}),go[e[yo]]}function Ge(e){if(void 0===(e=e||(\"undefined\"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ve(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function He(e,t){var n=Ve(e);e=0;for(var i;n;){if(3===n.nodeType){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ve(n)}}function qe(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?qe(e,t.parentNode):\"contains\"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Ye(){for(var e=window,t=Ge();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=Ge(e.document)}return t}function Xe(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(\"input\"===t&&(\"text\"===e.type||\"search\"===e.type||\"tel\"===e.type||\"url\"===e.type||\"password\"===e.type)||\"textarea\"===t||\"true\"===e.contentEditable)}function Ke(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return So||null==xo||xo!==Ge(n)?null:(n=xo,\"selectionStart\"in n&&Xe(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Mo&&Pe(Mo,n)?null:(Mo=n,e=L.getPooled(_o.select,wo,e,t),e.type=\"select\",e.target=xo,k(e),e))}function Ze(e){var t=\"\";return bi.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}function Je(e,t){return e=_i({children:void 0},t),(t=Ze(t.children))&&(e.children=t),e}function Qe(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r=t.length||r(\"93\"),t=t[0]),n=t),null==n&&(n=\"\")),e._wrapperState={initialValue:ce(n)}}function tt(e,t){var n=ce(t.value),i=ce(t.defaultValue);null!=n&&(n=\"\"+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=i&&(e.defaultValue=\"\"+i)}function nt(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}function it(e){switch(e){case\"svg\":return\"http://www.w3.org/2000/svg\";case\"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}function rt(e,t){return null==e||\"http://www.w3.org/1999/xhtml\"===e?it(t):\"http://www.w3.org/2000/svg\"===e&&\"foreignObject\"===t?\"http://www.w3.org/1999/xhtml\":e}function ot(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function at(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=0===n.indexOf(\"--\"),r=n,o=t[n];r=null==o||\"boolean\"==typeof o||\"\"===o?\"\":i||\"number\"!=typeof o||0===o||Co.hasOwnProperty(r)&&Co[r]?(\"\"+o).trim():o+\"px\",\"float\"===n&&(n=\"cssFloat\"),i?e.setProperty(n,r):e[n]=r}}function st(e,t){t&&(Ao[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&r(\"137\",e,\"\"),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&r(\"60\"),\"object\"==typeof t.dangerouslySetInnerHTML&&\"__html\"in t.dangerouslySetInnerHTML||r(\"61\")),null!=t.style&&\"object\"!=typeof t.style&&r(\"62\",\"\"))}function lt(e,t){if(-1===e.indexOf(\"-\"))return\"string\"==typeof t.is;switch(e){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}function ut(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=We(e);t=Ri[t];for(var i=0;iDo||(e.current=Io[Do],Io[Do]=null,Do--)}function gt(e,t){Do++,Io[Do]=e.current,e.current=t}function vt(e,t){var n=e.type.contextTypes;if(!n)return No;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r,o={};for(r in n)o[r]=t[r];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function yt(e){return null!==(e=e.childContextTypes)&&void 0!==e}function bt(e){mt(zo,e),mt(Bo,e)}function _t(e){mt(zo,e),mt(Bo,e)}function xt(e,t,n){Bo.current!==No&&r(\"168\"),gt(Bo,t,e),gt(zo,n,e)}function wt(e,t,n){var i=e.stateNode;if(e=t.childContextTypes,\"function\"!=typeof i.getChildContext)return n;i=i.getChildContext();for(var o in i)o in e||r(\"108\",ne(t)||\"Unknown\",o);return _i({},n,i)}function Mt(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||No,Fo=Bo.current,gt(Bo,t,e),gt(zo,zo.current,e),!0}function St(e,t,n){var i=e.stateNode;i||r(\"169\"),n?(t=wt(e,t,Fo),i.__reactInternalMemoizedMergedChildContext=t,mt(zo,e),mt(Bo,e),gt(Bo,t,e)):mt(zo,e),gt(zo,n,e)}function Et(e){return function(t){try{return e(t)}catch(e){}}}function Tt(e){if(\"undefined\"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);jo=Et(function(e){return t.onCommitFiberRoot(n,e)}),Uo=Et(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function kt(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=t,this.firstContextDependency=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ot(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ct(e,t,n){var i=e.alternate;return null===i?(i=new kt(e.tag,t,e.key,e.mode),i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.effectTag=0,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null),i.childExpirationTime=e.childExpirationTime,i.expirationTime=t!==e.pendingProps?n:e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,i.firstContextDependency=e.firstContextDependency,i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function Pt(e,t,n){var i=e.type,o=e.key;e=e.props;var a=void 0;if(\"function\"==typeof i)a=Ot(i)?2:4;else if(\"string\"==typeof i)a=7;else e:switch(i){case xr:return At(e.children,t,n,o);case Tr:a=10,t|=3;break;case wr:a=10,t|=2;break;case Mr:return i=new kt(15,e,o,4|t),i.type=Mr,i.expirationTime=n,i;case Or:a=16;break;default:if(\"object\"==typeof i&&null!==i)switch(i.$$typeof){case Sr:a=12;break e;case Er:a=11;break e;case kr:a=13;break e;default:if(\"function\"==typeof i.then){a=4;break e}}r(\"130\",null==i?i:typeof i,\"\")}return t=new kt(a,e,o,t),t.type=i,t.expirationTime=n,t}function At(e,t,n,i){return e=new kt(9,e,i,t),e.expirationTime=n,e}function Rt(e,t,n){return e=new kt(8,e,null,t),e.expirationTime=n,e}function Lt(e,t,n){return t=new kt(6,null!==e.children?e.children:[],e.key,t),t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function It(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n>t?e.earliestPendingTime=t:e.latestPendingTimee)&&(r=i),e=r,0!==e&&0!==n&&nr?(null===a&&(a=l,o=u),(0===s||s>c)&&(s=c)):(u=Gt(e,t,l,u,n,i),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(c=null,l=t.firstCapturedUpdate;null!==l;){var d=l.expirationTime;d>r?(null===c&&(c=l,null===a&&(o=u)),(0===s||s>d)&&(s=d)):(u=Gt(e,t,l,u,n,i),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(o=u),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=s,e.memoizedState=u}function Ht(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),qt(t.firstEffect,n),t.firstEffect=t.lastEffect=null,qt(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function qt(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var i=t;\"function\"!=typeof n&&r(\"191\",n),n.call(i)}e=e.nextEffect}}function Yt(e,t){return{value:e,source:t,stack:ie(t)}}function Xt(e,t){var n=e.type._context;gt(Go,n._currentValue,e),n._currentValue=t}function Kt(e){var t=Go.current;mt(Go,e),e.type._context._currentValue=t}function Zt(e){Vo=e,qo=Ho=null,e.firstContextDependency=null}function Jt(e,t){return qo!==e&&!1!==t&&0!==t&&(\"number\"==typeof t&&1073741823!==t||(qo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ho?(null===Vo&&r(\"277\"),Vo.firstContextDependency=Ho=t):Ho=Ho.next=t),e._currentValue}function Qt(e){return e===Yo&&r(\"174\"),e}function $t(e,t){gt(Zo,t,e),gt(Ko,e,e),gt(Xo,Yo,e);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:rt(null,\"\");break;default:n=8===n?t.parentNode:t,t=n.namespaceURI||null,n=n.tagName,t=rt(t,n)}mt(Xo,e),gt(Xo,t,e)}function en(e){mt(Xo,e),mt(Ko,e),mt(Zo,e)}function tn(e){Qt(Zo.current);var t=Qt(Xo.current),n=rt(t,e.type);t!==n&&(gt(Ko,e,e),gt(Xo,n,e))}function nn(e){Ko.current===e&&(mt(Xo,e),mt(Ko,e))}function rn(e,t,n,i){t=e.memoizedState,n=n(i,t),n=null===n||void 0===n?t:_i({},t,n),e.memoizedState=n,null!==(i=e.updateQueue)&&0===e.expirationTime&&(i.baseState=n)}function on(e,t,n,i,r,o,a){return e=e.stateNode,\"function\"==typeof e.shouldComponentUpdate?e.shouldComponentUpdate(i,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Pe(n,i)||!Pe(r,o))}function an(e,t,n,i){e=t.state,\"function\"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),\"function\"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Qo.enqueueReplaceState(t,t.state,null)}function sn(e,t,n,i){var r=e.stateNode,o=yt(t)?Fo:Bo.current;r.props=n,r.state=e.memoizedState,r.refs=Jo,r.context=vt(e,o),o=e.updateQueue,null!==o&&(Vt(e,o,n,r,i),r.state=e.memoizedState),o=t.getDerivedStateFromProps,\"function\"==typeof o&&(rn(e,t,o,n),r.state=e.memoizedState),\"function\"==typeof t.getDerivedStateFromProps||\"function\"==typeof r.getSnapshotBeforeUpdate||\"function\"!=typeof r.UNSAFE_componentWillMount&&\"function\"!=typeof r.componentWillMount||(t=r.state,\"function\"==typeof r.componentWillMount&&r.componentWillMount(),\"function\"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&Qo.enqueueReplaceState(r,r.state,null),null!==(o=e.updateQueue)&&(Vt(e,o,n,r,i),r.state=e.memoizedState)),\"function\"==typeof r.componentDidMount&&(e.effectTag|=4)}function ln(e,t,n){if(null!==(e=n.ref)&&\"function\"!=typeof e&&\"object\"!=typeof e){if(n._owner){n=n._owner;var i=void 0;n&&(2!==n.tag&&3!==n.tag&&r(\"110\"),i=n.stateNode),i||r(\"147\",e);var o=\"\"+e;return null!==t&&null!==t.ref&&\"function\"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===Jo&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}\"string\"!=typeof e&&r(\"284\"),n._owner||r(\"254\",e)}return e}function un(e,t){\"textarea\"!==e.type&&r(\"31\",\"[object Object]\"===Object.prototype.toString.call(t)?\"object with keys {\"+Object.keys(t).join(\", \")+\"}\":t,\"\")}function cn(e){function t(t,n){if(e){var i=t.lastEffect;null!==i?(i.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t,n){return e=Ct(e,t,n),e.index=0,e.sibling=null,e}function a(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index,im?(g=d,d=null):g=d.sibling;var v=f(r,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(r,d),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return n(r,d),u;if(null===d){for(;mg?(v=m,m=null):v=m.sibling;var b=f(o,m,y.value,u);if(null===b){m||(m=v);break}e&&m&&null===b.alternate&&t(o,m),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return n(o,m),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=h(o,y.value,u))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return c}for(m=i(o,m);!y.done;g++,y=l.next())null!==(y=p(m,o,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(o,e)}),c}return function(e,i,a,l){var u=\"object\"==typeof a&&null!==a&&a.type===xr&&null===a.key;u&&(a=a.props.children);var c=\"object\"==typeof a&&null!==a;if(c)switch(a.$$typeof){case br:e:{for(c=a.key,u=i;null!==u;){if(u.key===c){if(9===u.tag?a.type===xr:u.type===a.type){n(e,u.sibling),i=o(u,a.type===xr?a.props.children:a.props,l),i.ref=ln(e,u,a),i.return=e,e=i;break e}n(e,u);break}t(e,u),u=u.sibling}a.type===xr?(i=At(a.props.children,e.mode,l,a.key),i.return=e,e=i):(l=Pt(a,e.mode,l),l.ref=ln(e,i,a),l.return=e,e=l)}return s(e);case _r:e:{for(u=a.key;null!==i;){if(i.key===u){if(6===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(e,i.sibling),i=o(i,a.children||[],l),i.return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}i=Lt(a,e.mode,l),i.return=e,e=i}return s(e)}if(\"string\"==typeof a||\"number\"==typeof a)return a=\"\"+a,null!==i&&8===i.tag?(n(e,i.sibling),i=o(i,a,l),i.return=e,e=i):(n(e,i),i=Rt(a,e.mode,l),i.return=e,e=i),s(e);if($o(a))return m(e,i,a,l);if(te(a))return g(e,i,a,l);if(c&&un(e,a),void 0===a&&!u)switch(e.tag){case 2:case 3:case 0:l=e.type,r(\"152\",l.displayName||l.name||\"Component\")}return n(e,i)}}function dn(e,t){var n=new kt(7,null,null,0);n.type=\"DELETED\",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function hn(e,t){switch(e.tag){case 7:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 8:return null!==(t=\"\"===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function fn(e){if(ra){var t=ia;if(t){var n=t;if(!hn(e,t)){if(!(t=ft(n))||!hn(e,t))return e.effectTag|=2,ra=!1,void(na=e);dn(na,n)}na=e,ia=pt(t)}else e.effectTag|=2,ra=!1,na=e}}function pn(e){for(e=e.return;null!==e&&7!==e.tag&&5!==e.tag;)e=e.return;na=e}function mn(e){if(e!==na)return!1;if(!ra)return pn(e),ra=!0,!1;var t=e.type;if(7!==e.tag||\"head\"!==t&&\"body\"!==t&&!ht(t,e.memoizedProps))for(t=ia;t;)dn(e,t),t=ft(t);return pn(e),ia=na?ft(e.stateNode):null,!0}function gn(){ia=na=null,ra=!1}function vn(e){switch(e._reactStatus){case 1:return e._reactResult;case 2:throw e._reactResult;case 0:throw e;default:throw e._reactStatus=0,e.then(function(t){if(0===e._reactStatus){if(e._reactStatus=1,\"object\"==typeof t&&null!==t){var n=t.default;t=void 0!==n&&null!==n?n:t}e._reactResult=t}},function(t){0===e._reactStatus&&(e._reactStatus=2,e._reactResult=t)}),e}}function yn(e,t,n,i){t.child=null===e?ta(t,null,n,i):ea(t,e.child,n,i)}function bn(e,t,n,i,r){n=n.render;var o=t.ref;return zo.current||t.memoizedProps!==i||o!==(null!==e?e.ref:null)?(n=n(i,o),yn(e,t,n,r),t.memoizedProps=i,t.child):kn(e,t,r)}function _n(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function xn(e,t,n,i,r){var o=yt(n)?Fo:Bo.current;return o=vt(t,o),Zt(t,r),n=n(i,o),t.effectTag|=1,yn(e,t,n,r),t.memoizedProps=i,t.child}function wn(e,t,n,i,r){if(yt(n)){var o=!0;Mt(t)}else o=!1;if(Zt(t,r),null===e)if(null===t.stateNode){var a=yt(n)?Fo:Bo.current,s=n.contextTypes,l=null!==s&&void 0!==s;s=l?vt(t,a):No;var u=new n(i,s);t.memoizedState=null!==u.state&&void 0!==u.state?u.state:null,u.updater=Qo,t.stateNode=u,u._reactInternalFiber=t,l&&(l=t.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=a,l.__reactInternalMemoizedMaskedChildContext=s),sn(t,n,i,r),i=!0}else{a=t.stateNode,s=t.memoizedProps,a.props=s;var c=a.context;l=yt(n)?Fo:Bo.current,l=vt(t,l);var d=n.getDerivedStateFromProps;(u=\"function\"==typeof d||\"function\"==typeof a.getSnapshotBeforeUpdate)||\"function\"!=typeof a.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof a.componentWillReceiveProps||(s!==i||c!==l)&&an(t,a,i,l),Wo=!1;var h=t.memoizedState;c=a.state=h;var f=t.updateQueue;null!==f&&(Vt(t,f,i,a,r),c=t.memoizedState),s!==i||h!==c||zo.current||Wo?(\"function\"==typeof d&&(rn(t,n,d,i),c=t.memoizedState),(s=Wo||on(t,n,s,i,h,c,l))?(u||\"function\"!=typeof a.UNSAFE_componentWillMount&&\"function\"!=typeof a.componentWillMount||(\"function\"==typeof a.componentWillMount&&a.componentWillMount(),\"function\"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),\"function\"==typeof a.componentDidMount&&(t.effectTag|=4)):(\"function\"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=i,t.memoizedState=c),a.props=i,a.state=c,a.context=l,i=s):(\"function\"==typeof a.componentDidMount&&(t.effectTag|=4),i=!1)}else a=t.stateNode,s=t.memoizedProps,a.props=s,c=a.context,l=yt(n)?Fo:Bo.current,l=vt(t,l),d=n.getDerivedStateFromProps,(u=\"function\"==typeof d||\"function\"==typeof a.getSnapshotBeforeUpdate)||\"function\"!=typeof a.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof a.componentWillReceiveProps||(s!==i||c!==l)&&an(t,a,i,l),Wo=!1,c=t.memoizedState,h=a.state=c,f=t.updateQueue,null!==f&&(Vt(t,f,i,a,r),h=t.memoizedState),s!==i||c!==h||zo.current||Wo?(\"function\"==typeof d&&(rn(t,n,d,i),h=t.memoizedState),(d=Wo||on(t,n,s,i,c,h,l))?(u||\"function\"!=typeof a.UNSAFE_componentWillUpdate&&\"function\"!=typeof a.componentWillUpdate||(\"function\"==typeof a.componentWillUpdate&&a.componentWillUpdate(i,h,l),\"function\"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(i,h,l)),\"function\"==typeof a.componentDidUpdate&&(t.effectTag|=4),\"function\"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):(\"function\"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),\"function\"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=i,t.memoizedState=h),a.props=i,a.state=h,a.context=l,i=d):(\"function\"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),\"function\"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),i=!1);return Mn(e,t,n,i,o,r)}function Mn(e,t,n,i,r,o){_n(e,t);var a=0!=(64&t.effectTag);if(!i&&!a)return r&&St(t,n,!1),kn(e,t,o);i=t.stateNode,oa.current=t;var s=a?null:i.render();return t.effectTag|=1,null!==e&&a&&(yn(e,t,null,o),t.child=null),yn(e,t,s,o),t.memoizedState=i.state,t.memoizedProps=i.props,r&&St(t,n,!0),t.child}function Sn(e){var t=e.stateNode;t.pendingContext?xt(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xt(e,t.context,!1),$t(e,t.containerInfo)}function En(e,t){if(e&&e.defaultProps){t=_i({},t),e=e.defaultProps;for(var n in e)void 0===t[n]&&(t[n]=e[n])}return t}function Tn(e,t,n,i){null!==e&&r(\"155\");var o=t.pendingProps;if(\"object\"==typeof n&&null!==n&&\"function\"==typeof n.then){n=vn(n);var a=n;a=\"function\"==typeof a?Ot(a)?3:1:void 0!==a&&null!==a&&a.$$typeof?14:4,a=t.tag=a;var s=En(n,o);switch(a){case 1:return xn(e,t,n,s,i);case 3:return wn(e,t,n,s,i);case 14:return bn(e,t,n,s,i);default:r(\"283\",n)}}if(a=vt(t,Bo.current),Zt(t,i),a=n(o,a),t.effectTag|=1,\"object\"==typeof a&&null!==a&&\"function\"==typeof a.render&&void 0===a.$$typeof){t.tag=2,yt(n)?(s=!0,Mt(t)):s=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null;var l=n.getDerivedStateFromProps;return\"function\"==typeof l&&rn(t,n,l,o),a.updater=Qo,t.stateNode=a,a._reactInternalFiber=t,sn(t,n,o,i),Mn(e,t,n,!0,s,i)}return t.tag=0,yn(e,t,a,i),t.memoizedProps=o,t.child}function kn(e,t,n){null!==e&&(t.firstContextDependency=e.firstContextDependency);var i=t.childExpirationTime;if(0===i||i>n)return null;if(null!==e&&t.child!==e.child&&r(\"153\"),null!==t.child){for(e=t.child,n=Ct(e,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=Ct(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}function On(e,t,n){var i=t.expirationTime;if(!zo.current&&(0===i||i>n)){switch(t.tag){case 5:Sn(t),gn();break;case 7:tn(t);break;case 2:yt(t.type)&&Mt(t);break;case 3:yt(t.type._reactResult)&&Mt(t);break;case 6:$t(t,t.stateNode.containerInfo);break;case 12:Xt(t,t.memoizedProps.value)}return kn(e,t,n)}switch(t.expirationTime=0,t.tag){case 4:return Tn(e,t,t.type,n);case 0:return xn(e,t,t.type,t.pendingProps,n);case 1:var o=t.type._reactResult;return i=t.pendingProps,e=xn(e,t,o,En(o,i),n),t.memoizedProps=i,e;case 2:return wn(e,t,t.type,t.pendingProps,n);case 3:return o=t.type._reactResult,i=t.pendingProps,e=wn(e,t,o,En(o,i),n),t.memoizedProps=i,e;case 5:return Sn(t),i=t.updateQueue,null===i&&r(\"282\"),o=t.memoizedState,o=null!==o?o.element:null,Vt(t,i,t.pendingProps,null,n),i=t.memoizedState.element,i===o?(gn(),t=kn(e,t,n)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(ia=pt(t.stateNode.containerInfo),na=t,o=ra=!0),o?(t.effectTag|=2,t.child=ta(t,null,i,n)):(yn(e,t,i,n),gn()),t=t.child),t;case 7:tn(t),null===e&&fn(t),i=t.type,o=t.pendingProps;var a=null!==e?e.memoizedProps:null,s=o.children;return ht(i,o)?s=null:null!==a&&ht(i,a)&&(t.effectTag|=16),_n(e,t),1073741823!==n&&1&t.mode&&o.hidden?(t.expirationTime=1073741823,t.memoizedProps=o,t=null):(yn(e,t,s,n),t.memoizedProps=o,t=t.child),t;case 8:return null===e&&fn(t),t.memoizedProps=t.pendingProps,null;case 16:return null;case 6:return $t(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=ea(t,null,i,n):yn(e,t,i,n),t.memoizedProps=i,t.child;case 13:return bn(e,t,t.type,t.pendingProps,n);case 14:return o=t.type._reactResult,i=t.pendingProps,e=bn(e,t,o,En(o,i),n),t.memoizedProps=i,e;case 9:return i=t.pendingProps,yn(e,t,i,n),t.memoizedProps=i,t.child;case 10:return i=t.pendingProps.children,yn(e,t,i,n),t.memoizedProps=i,t.child;case 15:return i=t.pendingProps,yn(e,t,i.children,n),t.memoizedProps=i,t.child;case 12:e:{if(i=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,t.memoizedProps=o,Xt(t,a),null!==s){var l=s.value;if(0===(a=l===a&&(0!==l||1/l==1/a)||l!==l&&a!==a?0:0|(\"function\"==typeof i._calculateChangedBits?i._calculateChangedBits(l,a):1073741823))){if(s.children===o.children&&!zo.current){t=kn(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){if(null!==(l=s.firstContextDependency))do{if(l.context===i&&0!=(l.observedBits&a)){if(2===s.tag||3===s.tag){var u=zt(n);u.tag=2,jt(s,u)}(0===s.expirationTime||s.expirationTime>n)&&(s.expirationTime=n),u=s.alternate,null!==u&&(0===u.expirationTime||u.expirationTime>n)&&(u.expirationTime=n);for(var c=s.return;null!==c;){if(u=c.alternate,0===c.childExpirationTime||c.childExpirationTime>n)c.childExpirationTime=n,null!==u&&(0===u.childExpirationTime||u.childExpirationTime>n)&&(u.childExpirationTime=n);else{if(null===u||!(0===u.childExpirationTime||u.childExpirationTime>n))break;u.childExpirationTime=n}c=c.return}}u=s.child,l=l.next}while(null!==l);else u=12===s.tag&&s.type===t.type?null:s.child;if(null!==u)u.return=s;else for(u=s;null!==u;){if(u===t){u=null;break}if(null!==(s=u.sibling)){s.return=u.return,u=s;break}u=u.return}s=u}}yn(e,t,o.children,n),t=t.child}return t;case 11:return a=t.type,i=t.pendingProps,o=i.children,Zt(t,n),a=Jt(a,i.unstable_observedBits),o=o(a),t.effectTag|=1,yn(e,t,o,n),t.memoizedProps=i,t.child;default:r(\"156\")}}function Cn(e){e.effectTag|=4}function Pn(e,t){var n=t.source,i=t.stack;null===i&&null!==n&&(i=ie(n)),null!==n&&ne(n.type),t=t.value,null!==e&&2===e.tag&&ne(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function An(e){var t=e.ref;if(null!==t)if(\"function\"==typeof t)try{t(null)}catch(t){Vn(e,t)}else t.current=null}function Rn(e){switch(\"function\"==typeof Uo&&Uo(e),e.tag){case 2:case 3:An(e);var t=e.stateNode;if(\"function\"==typeof t.componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Vn(e,t)}break;case 7:An(e);break;case 6:Dn(e)}}function Ln(e){return 7===e.tag||5===e.tag||6===e.tag}function In(e){e:{for(var t=e.return;null!==t;){if(Ln(t)){var n=t;break e}t=t.return}r(\"160\"),n=void 0}var i=t=void 0;switch(n.tag){case 7:t=n.stateNode,i=!1;break;case 5:case 6:t=n.stateNode.containerInfo,i=!0;break;default:r(\"161\")}16&n.effectTag&&(ot(t,\"\"),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Ln(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;7!==n.tag&&8!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||6===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var o=e;;){if(7===o.tag||8===o.tag)if(n)if(i){var a=t,s=o.stateNode,l=n;8===a.nodeType?a.parentNode.insertBefore(s,l):a.insertBefore(s,l)}else t.insertBefore(o.stateNode,n);else i?(a=t,s=o.stateNode,8===a.nodeType?(l=a.parentNode,l.insertBefore(s,a)):(l=a,l.appendChild(s)),null===l.onclick&&(l.onclick=ct)):t.appendChild(o.stateNode);else if(6!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function Dn(e){for(var t=e,n=!1,i=void 0,o=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&r(\"160\"),n.tag){case 7:i=n.stateNode,o=!1;break e;case 5:case 6:i=n.stateNode.containerInfo,o=!0;break e}n=n.return}n=!0}if(7===t.tag||8===t.tag){e:for(var a=t,s=a;;)if(Rn(s),null!==s.child&&6!==s.tag)s.child.return=s,s=s.child;else{if(s===a)break;for(;null===s.sibling;){if(null===s.return||s.return===a)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}o?(a=i,s=t.stateNode,8===a.nodeType?a.parentNode.removeChild(s):a.removeChild(s)):i.removeChild(t.stateNode)}else if(6===t.tag?(i=t.stateNode.containerInfo,o=!0):Rn(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return,6===t.tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Nn(e,t){switch(t.tag){case 2:case 3:break;case 7:var n=t.stateNode;if(null!=n){var i=t.memoizedProps,o=null!==e?e.memoizedProps:i;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[ji]=i,\"input\"===e&&\"radio\"===i.type&&null!=i.name&&fe(n,i),lt(e,o),t=lt(e,i),o=0;o<\\/script>\",c=o.removeChild(o.firstChild)):\"string\"==typeof h.is?c=c.createElement(o,{is:h.is}):(c=c.createElement(o),\"select\"===o&&h.multiple&&(c.multiple=!0)):c=c.createElementNS(u,o),o=c,o[Fi]=d,o[ji]=a;e:for(d=o,h=t,c=h.child;null!==c;){if(7===c.tag||8===c.tag)d.appendChild(c.stateNode);else if(6!==c.tag&&null!==c.child){c.child.return=c,c=c.child;continue}if(c===h)break;for(;null===c.sibling;){if(null===c.return||c.return===h)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}h=o,c=l,d=a;var f=s,p=lt(c,d);switch(c){case\"iframe\":case\"object\":ze(\"load\",h),s=d;break;case\"video\":case\"audio\":for(s=0;si||0!==a&&a>i||0!==s&&s>i)return e.didError=!1,n=e.latestPingedTime,0!==n&&n<=i&&(e.latestPingedTime=0),n=e.earliestPendingTime,t=e.latestPendingTime,n===i?e.earliestPendingTime=t===i?e.latestPendingTime=0:t:t===i&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,t=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=i:n>i?e.earliestSuspendedTime=i:tOa)&&(Oa=e),e}function qn(e,t){e:{(0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t);var n=e.alternate;null!==n&&(0===n.expirationTime||n.expirationTime>t)&&(n.expirationTime=t);var i=e.return;if(null===i&&5===e.tag)e=e.stateNode;else{for(;null!==i;){if(n=i.alternate,(0===i.childExpirationTime||i.childExpirationTime>t)&&(i.childExpirationTime=t),null!==n&&(0===n.childExpirationTime||n.childExpirationTime>t)&&(n.childExpirationTime=t),null===i.return&&5===i.tag){e=i.stateNode;break e}i=i.return}e=null}}null!==e&&(!fa&&0!==ga&&tja&&(Ua=0,r(\"185\")))}function Yn(e,t,n,i,r){var o=ha;ha=1;try{return e(t,n,i,r)}finally{ha=o}}function Xn(){za=2+((xi.unstable_now()-Ba)/10|0)}function Kn(e,t){if(0!==Ma){if(t>Ma)return;null!==Sa&&xi.unstable_cancelScheduledWork(Sa)}Ma=t,e=xi.unstable_now()-Ba,Sa=xi.unstable_scheduleWork(Qn,{timeout:10*(t-2)-e})}function Zn(){return Ea?Fa:(Jn(),0!==ka&&1073741823!==ka||(Xn(),Fa=za),Fa)}function Jn(){var e=0,t=null;if(null!==wa)for(var n=wa,i=xa;null!==i;){var o=i.expirationTime;if(0===o){if((null===n||null===wa)&&r(\"244\"),i===i.nextScheduledRoot){xa=wa=i.nextScheduledRoot=null;break}if(i===xa)xa=o=i.nextScheduledRoot,wa.nextScheduledRoot=o,i.nextScheduledRoot=null;else{if(i===wa){wa=n,wa.nextScheduledRoot=xa,i.nextScheduledRoot=null;break}n.nextScheduledRoot=i.nextScheduledRoot,i.nextScheduledRoot=null}i=n.nextScheduledRoot}else{if((0===e||o=n&&(t.nextExpirationTimeToWorkOn=za),t=t.nextScheduledRoot}while(t!==xa)}$n(0,e)}function $n(e,t){if(Ra=t,Jn(),null!==Ra)for(Xn(),Fa=za;null!==Ta&&0!==ka&&(0===e||e>=ka)&&(!Ca||za>=ka);)ei(Ta,ka,za>=ka),Jn(),Xn(),Fa=za;else for(;null!==Ta&&0!==ka&&(0===e||e>=ka);)ei(Ta,ka,!0),Jn();if(null!==Ra&&(Ma=0,Sa=null),0!==ka&&Kn(Ta,ka),Ra=null,Ca=!1,Ua=0,Wa=null,null!==Na)for(e=Na,Na=null,t=0;te.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,It(e,i)):ib&&(_=b,b=E,E=_),_=He(M,E),x=He(M,b),_&&x&&(1!==S.rangeCount||S.anchorNode!==_.node||S.anchorOffset!==_.offset||S.focusNode!==x.node||S.focusOffset!==x.offset)&&(y=y.createRange(),y.setStart(_.node,_.offset),S.removeAllRanges(),E>b?(S.addRange(y),S.extend(x.node,x.offset)):(y.setEnd(x.node,x.offset),S.addRange(y))))),S=[];for(E=M;E=E.parentNode;)1===E.nodeType&&S.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(\"function\"==typeof M.focus&&M.focus(),M=0;MGa)&&(Ca=!0)}function ii(e){null===Ta&&r(\"246\"),Ta.expirationTime=0,Pa||(Pa=!0,Aa=e)}function ri(e,t){var n=La;La=!0;try{return e(t)}finally{(La=n)||Ea||$n(1,null)}}function oi(e,t){if(La&&!Ia){Ia=!0;try{return e(t)}finally{Ia=!1}}return e(t)}function ai(e,t,n){if(Da)return e(t,n);La||Ea||0===Oa||($n(Oa,null),Oa=0);var i=Da,r=La;La=Da=!0;try{return e(t,n)}finally{Da=i,(La=r)||Ea||$n(1,null)}}function si(e){if(!e)return No;e=e._reactInternalFiber;e:{(2!==Ae(e)||2!==e.tag&&3!==e.tag)&&r(\"170\");var t=e;do{switch(t.tag){case 5:t=t.stateNode.context;break e;case 2:if(yt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}break;case 3:if(yt(t.type._reactResult)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);r(\"171\"),t=void 0}if(2===e.tag){var n=e.type;if(yt(n))return wt(e,n,t)}else if(3===e.tag&&(n=e.type._reactResult,yt(n)))return wt(e,n,t);return t}function li(e,t,n,i,r){var o=t.current;return n=si(n),null===t.context?t.context=n:t.pendingContext=n,t=r,r=zt(i),r.payload={element:e},t=void 0===t?null:t,null!==t&&(r.callback=t),jt(o,r),qn(o,i),i}function ui(e,t,n,i){var r=t.current;return r=Hn(Zn(),r),li(e,t,n,r,i)}function ci(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 7:default:return e.child.stateNode}}function di(e,t,n){var i=3=ir),ar=String.fromCharCode(32),sr={beforeInput:{phasedRegistrationNames:{bubbled:\"onBeforeInput\",captured:\"onBeforeInputCapture\"},dependencies:[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]},compositionEnd:{phasedRegistrationNames:{bubbled:\"onCompositionEnd\",captured:\"onCompositionEndCapture\"},dependencies:\"blur compositionend keydown keypress keyup mousedown\".split(\" \")},compositionStart:{phasedRegistrationNames:{bubbled:\"onCompositionStart\",captured:\"onCompositionStartCapture\"},dependencies:\"blur compositionstart keydown keypress keyup mousedown\".split(\" \")},compositionUpdate:{phasedRegistrationNames:{bubbled:\"onCompositionUpdate\",captured:\"onCompositionUpdateCapture\"},dependencies:\"blur compositionupdate keydown keypress keyup mousedown\".split(\" \")}},lr=!1,ur=!1,cr={eventTypes:sr,extractEvents:function(e,t,n,i){var r=void 0,o=void 0;if(nr)e:{switch(e){case\"compositionstart\":r=sr.compositionStart;break e;case\"compositionend\":r=sr.compositionEnd;break e;case\"compositionupdate\":r=sr.compositionUpdate;break e}r=void 0}else ur?B(e,n)&&(r=sr.compositionEnd):\"keydown\"===e&&229===n.keyCode&&(r=sr.compositionStart);return r?(or&&\"ko\"!==n.locale&&(ur||r!==sr.compositionStart?r===sr.compositionEnd&&ur&&(o=P()):(Zi=i,Ji=\"value\"in Zi?Zi.value:Zi.textContent,ur=!0)),r=$i.getPooled(r,t,n,i),o?r.data=o:null!==(o=z(n))&&(r.data=o),k(r),o=r):o=null,(e=rr?F(e,n):j(e,n))?(t=er.getPooled(sr.beforeInput,t,n,i),t.data=e,k(t)):t=null,null===o?t:null===t?o:[o,t]}},dr=null,hr=null,fr=null,pr=!1,mr={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},gr=bi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vr=/^(.*)[\\\\\\/]/,yr=\"function\"==typeof Symbol&&Symbol.for,br=yr?Symbol.for(\"react.element\"):60103,_r=yr?Symbol.for(\"react.portal\"):60106,xr=yr?Symbol.for(\"react.fragment\"):60107,wr=yr?Symbol.for(\"react.strict_mode\"):60108,Mr=yr?Symbol.for(\"react.profiler\"):60114,Sr=yr?Symbol.for(\"react.provider\"):60109,Er=yr?Symbol.for(\"react.context\"):60110,Tr=yr?Symbol.for(\"react.async_mode\"):60111,kr=yr?Symbol.for(\"react.forward_ref\"):60112,Or=yr?Symbol.for(\"react.placeholder\"):60113,Cr=\"function\"==typeof Symbol&&Symbol.iterator,Pr=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,Ar=Object.prototype.hasOwnProperty,Rr={},Lr={},Ir={};\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(e){Ir[e]=new se(e,0,!1,e,null)}),[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(e){var t=e[0];Ir[t]=new se(t,1,!1,e[1],null)}),[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(e){Ir[e]=new se(e,2,!1,e.toLowerCase(),null)}),[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(e){Ir[e]=new se(e,2,!1,e,null)}),\"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(e){Ir[e]=new se(e,3,!1,e.toLowerCase(),null)}),[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(e){Ir[e]=new se(e,3,!0,e,null)}),[\"capture\",\"download\"].forEach(function(e){Ir[e]=new se(e,4,!1,e,null)}),[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(e){Ir[e]=new se(e,6,!1,e,null)}),[\"rowSpan\",\"start\"].forEach(function(e){Ir[e]=new se(e,5,!1,e.toLowerCase(),null)});var Dr=/[\\-:]([a-z])/g;\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(e){var t=e.replace(Dr,le);Ir[t]=new se(t,1,!1,e,null)}),\"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(e){var t=e.replace(Dr,le);Ir[t]=new se(t,1,!1,e,\"http://www.w3.org/1999/xlink\")}),[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(e){var t=e.replace(Dr,le);Ir[t]=new se(t,1,!1,e,\"http://www.w3.org/XML/1998/namespace\")}),Ir.tabIndex=new se(\"tabIndex\",1,!1,\"tabindex\",null);var Nr={change:{phasedRegistrationNames:{bubbled:\"onChange\",captured:\"onChangeCapture\"},dependencies:\"blur change click focus input keydown keyup selectionchange\".split(\" \")}},Br=null,zr=null,Fr=!1;Ui&&(Fr=Z(\"input\")&&(!document.documentMode||9=document.documentMode,_o={select:{phasedRegistrationNames:{bubbled:\"onSelect\",captured:\"onSelectCapture\"},dependencies:\"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange\".split(\" \")}},xo=null,wo=null,Mo=null,So=!1,Eo={eventTypes:_o,extractEvents:function(e,t,n,i){var r,o=i.window===i?i.document:9===i.nodeType?i:i.ownerDocument;if(!(r=!o)){e:{o=We(o),r=Ri.onSelect;for(var a=0;a\"+t+\"\",t=ko.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),Co={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Po=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(Co).forEach(function(e){Po.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Co[t]=Co[e]})});var Ao=_i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),Ro=null,Lo=null;new Set;var Io=[],Do=-1,No={},Bo={current:No},zo={current:!1},Fo=No,jo=null,Uo=null,Wo=!1,Go={current:null},Vo=null,Ho=null,qo=null,Yo={},Xo={current:Yo},Ko={current:Yo},Zo={current:Yo},Jo=(new bi.Component).refs,Qo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===Ae(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var i=Zn();i=Hn(i,e);var r=zt(i);r.payload=t,void 0!==n&&null!==n&&(r.callback=n),jt(e,r),qn(e,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var i=Zn();i=Hn(i,e);var r=zt(i);r.tag=1,r.payload=t,void 0!==n&&null!==n&&(r.callback=n),jt(e,r),qn(e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Zn();n=Hn(n,e);var i=zt(n);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),jt(e,i),qn(e,n)}},$o=Array.isArray,ea=cn(!0),ta=cn(!1),na=null,ia=null,ra=!1,oa=gr.ReactCurrentOwner,aa=void 0,sa=void 0,la=void 0;aa=function(){},sa=function(e,t,n,i,r){var o=e.memoizedProps;if(o!==i){var a=t.stateNode;switch(Qt(Xo.current),e=null,n){case\"input\":o=de(a,o),i=de(a,i),e=[];break;case\"option\":o=Je(a,o),i=Je(a,i),e=[];break;case\"select\":o=_i({},o,{value:void 0}),i=_i({},i,{value:void 0}),e=[];break;case\"textarea\":o=$e(a,o),i=$e(a,i),e=[];break;default:\"function\"!=typeof o.onClick&&\"function\"==typeof i.onClick&&(a.onclick=ct)}st(n,i),a=n=void 0;var s=null;for(n in o)if(!i.hasOwnProperty(n)&&o.hasOwnProperty(n)&&null!=o[n])if(\"style\"===n){var l=o[n];for(a in l)l.hasOwnProperty(a)&&(s||(s={}),s[a]=\"\")}else\"dangerouslySetInnerHTML\"!==n&&\"children\"!==n&&\"suppressContentEditableWarning\"!==n&&\"suppressHydrationWarning\"!==n&&\"autoFocus\"!==n&&(Ai.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in i){var u=i[n];if(l=null!=o?o[n]:void 0,i.hasOwnProperty(n)&&u!==l&&(null!=u||null!=l))if(\"style\"===n)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(s||(s={}),s[a]=\"\");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(s||(s={}),s[a]=u[a])}else s||(e||(e=[]),e.push(n,s)),s=u;else\"dangerouslySetInnerHTML\"===n?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(n,\"\"+u)):\"children\"===n?l===u||\"string\"!=typeof u&&\"number\"!=typeof u||(e=e||[]).push(n,\"\"+u):\"suppressContentEditableWarning\"!==n&&\"suppressHydrationWarning\"!==n&&(Ai.hasOwnProperty(n)?(null!=u&&ut(r,n),e||l===u||(e=[])):(e=e||[]).push(n,u))}s&&(e=e||[]).push(\"style\",s),r=e,(t.updateQueue=r)&&Cn(t)}},la=function(e,t,n,i){n!==i&&Cn(t)};var ua={readContext:Jt},ca=gr.ReactCurrentOwner,da=0,ha=0,fa=!1,pa=null,ma=null,ga=0,va=!1,ya=null,ba=!1,_a=null,xa=null,wa=null,Ma=0,Sa=void 0,Ea=!1,Ta=null,ka=0,Oa=0,Ca=!1,Pa=!1,Aa=null,Ra=null,La=!1,Ia=!1,Da=!1,Na=null,Ba=xi.unstable_now(),za=2+(Ba/10|0),Fa=za,ja=50,Ua=0,Wa=null,Ga=1;dr=function(e,t,n){switch(t){case\"input\":if(pe(e,n),t=n.name,\"radio\"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(\"input[name=\"+JSON.stringify(\"\"+t)+'][type=\"radio\"]'),t=0;ta?a:r+s,l&&l(u,e);break;case 37:case 40:u=r-s0){S=S.sort(function(e,t){return s?e-t:t-e});var E=!0,T=!1,k=void 0;try{for(var O,C=S[Symbol.iterator]();!(E=(O=C.next()).done);E=!0){var P=O.value,A=this.getPositionFromValue(P),R=this.coordinates(A),L=r({},g,R.label+\"px\");M.push(h.default.createElement(\"li\",{key:P,className:(0,c.default)(\"rangeslider__label-item\"),\"data-value\":P,onMouseDown:this.handleDrag,onTouchStart:this.handleStart,onTouchEnd:this.handleEnd,style:L},this.props.labels[P]))}}catch(e){T=!0,k=e}finally{try{!E&&C.return&&C.return()}finally{if(T)throw k}}}return h.default.createElement(\"div\",{ref:function(t){e.slider=t},className:(0,c.default)(\"rangeslider\",\"rangeslider-\"+i,{\"rangeslider-reverse\":s},o),onMouseDown:this.handleDrag,onMouseUp:this.handleEnd,onTouchStart:this.handleStart,onTouchEnd:this.handleEnd,\"aria-valuemin\":u,\"aria-valuemax\":d,\"aria-valuenow\":n,\"aria-orientation\":i},h.default.createElement(\"div\",{className:\"rangeslider__fill\",style:_}),h.default.createElement(\"div\",{ref:function(t){e.handle=t},className:\"rangeslider__handle\",onMouseDown:this.handleStart,onTouchMove:this.handleDrag,onTouchEnd:this.handleEnd,onKeyDown:this.handleKeyDown,style:x,tabIndex:0},w?h.default.createElement(\"div\",{ref:function(t){e.tooltip=t},className:\"rangeslider__handle-tooltip\"},h.default.createElement(\"span\",null,this.handleFormat(n))):null,h.default.createElement(\"div\",{className:\"rangeslider__handle-label\"},f)),l?this.renderLabels(M):null)}}]),t}(d.Component);b.propTypes={min:p.default.number,max:p.default.number,step:p.default.number,value:p.default.number,orientation:p.default.string,tooltip:p.default.bool,reverse:p.default.bool,labels:p.default.object,handleLabel:p.default.string,format:p.default.func,onChangeStart:p.default.func,onChange:p.default.func,onChangeComplete:p.default.func},b.defaultProps={min:0,max:100,step:1,value:0,orientation:\"horizontal\",tooltip:!0,reverse:!1,labels:{},handleLabel:\"\"},t.default=b},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=n(557),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r.default},function(e,t,n){\"use strict\";function i(e){return e.charAt(0).toUpperCase()+e.substr(1)}function r(e,t,n){return Math.min(Math.max(e,t),n)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.capitalize=i,t.clamp=r},function(e,t,n){\"use strict\";function i(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function r(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}this.setState(t.bind(this))}function o(e,t){try{var n=this.props,i=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,i)}finally{this.props=n,this.state=i}}function a(e,t){if(e.selection)e.selection.empty();else try{t.getSelection().removeAllRanges()}catch(e){}}function s(e,t,n,i){if(\"number\"==typeof i){var r=\"number\"==typeof t?t:0,o=\"number\"==typeof n&&n>=0?n:1/0;return Math.max(r,Math.min(o,i))}return void 0!==e?e:t}function l(e){return c.a.Children.toArray(e).filter(function(e){return e})}Object.defineProperty(t,\"__esModule\",{value:!0});var u=n(2),c=n.n(u),d=n(27),h=n.n(d),f=n(459),p=n.n(f),m=n(562),g=n.n(m);i.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0;var v=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")},y=function(){function e(e,t){for(var n=0;nparseInt(window.getComputedStyle(g).order)&&(M=-M);var S=i;if(void 0!==i&&i<=0){var E=this.splitPane;S=\"vertical\"===s?E.getBoundingClientRect().width+i:E.getBoundingClientRect().height+i}var T=x-M,k=d-w;TS?T=S:this.setState({position:k,resized:!0}),o&&o(T),this.setState(b({draggedSize:T},h?\"pane1Size\":\"pane2Size\",T))}}}}},{key:\"onMouseUp\",value:function(){var e=this.props,t=e.allowResize,n=e.onDragFinished,i=this.state,r=i.active,o=i.draggedSize;t&&r&&(\"function\"==typeof n&&n(o),this.setState({active:!1}))}},{key:\"render\",value:function(){var e=this,t=this.props,n=t.allowResize,i=t.children,r=t.className,o=t.onResizerClick,a=t.onResizerDoubleClick,s=t.paneClassName,u=t.pane1ClassName,d=t.pane2ClassName,h=t.paneStyle,f=t.pane1Style,p=t.pane2Style,m=t.prefixer,g=t.resizerClassName,v=t.resizerStyle,y=t.split,b=t.style,_=this.state,x=_.pane1Size,w=_.pane2Size,S=n?\"\":\"disabled\",T=g?g+\" Resizer\":g,k=l(i),O=Object.assign({},{display:\"flex\",flex:1,height:\"100%\",position:\"absolute\",outline:\"none\",overflow:\"hidden\",MozUserSelect:\"text\",WebkitUserSelect:\"text\",msUserSelect:\"text\",userSelect:\"text\"},b||{});\"vertical\"===y?Object.assign(O,{flexDirection:\"row\",left:0,right:0}):Object.assign(O,{bottom:0,flexDirection:\"column\",minHeight:\"100%\",top:0,width:\"100%\"});var C=[\"SplitPane\",r,y,S],P=m.prefix(Object.assign({},h||{},f||{})),A=m.prefix(Object.assign({},h||{},p||{})),R=[\"Pane1\",s,u].join(\" \"),L=[\"Pane2\",s,d].join(\" \");return c.a.createElement(\"div\",{className:C.join(\" \"),ref:function(t){e.splitPane=t},style:m.prefix(O)},c.a.createElement(M,{className:R,key:\"pane1\",eleRef:function(t){e.pane1=t},size:x,split:y,style:P},k[0]),c.a.createElement(E,{className:S,onClick:o,onDoubleClick:a,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:\"resizer\",resizerClassName:T,split:y,style:v||{}}),c.a.createElement(M,{className:L,key:\"pane2\",eleRef:function(t){e.pane2=t},size:w,split:y,style:A},k[1]))}}],[{key:\"getDerivedStateFromProps\",value:function(e,n){return t.getSizeUpdate(e,n)}},{key:\"getSizeUpdate\",value:function(e,t){var n={};if(t.instanceProps.size===e.size&&void 0!==e.size)return{};var i=void 0!==e.size?e.size:s(e.defaultSize,e.minSize,e.maxSize,t.draggedSize);void 0!==e.size&&(n.draggedSize=i);var r=\"first\"===e.primary;return n[r?\"pane1Size\":\"pane2Size\"]=i,n[r?\"pane2Size\":\"pane1Size\"]=void 0,n.instanceProps={size:e.size},n}}]),t}(c.a.Component);k.propTypes={allowResize:h.a.bool,children:h.a.arrayOf(h.a.node).isRequired,className:h.a.string,primary:h.a.oneOf([\"first\",\"second\"]),minSize:h.a.oneOfType([h.a.string,h.a.number]),maxSize:h.a.oneOfType([h.a.string,h.a.number]),defaultSize:h.a.oneOfType([h.a.string,h.a.number]),size:h.a.oneOfType([h.a.string,h.a.number]),split:h.a.oneOf([\"vertical\",\"horizontal\"]),onDragStarted:h.a.func,onDragFinished:h.a.func,onChange:h.a.func,onResizerClick:h.a.func,onResizerDoubleClick:h.a.func,prefixer:h.a.instanceOf(p.a).isRequired,style:g.a,resizerStyle:g.a,paneClassName:h.a.string,pane1ClassName:h.a.string,pane2ClassName:h.a.string,paneStyle:g.a,pane1Style:g.a,pane2Style:g.a,resizerClassName:h.a.string,step:h.a.number},k.defaultProps={allowResize:!0,minSize:50,prefixer:new p.a({userAgent:T}),primary:\"first\",split:\"vertical\",paneClassName:\"\",pane1ClassName:\"\",pane2ClassName:\"\"},function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error(\"Can only polyfill class components\");if(\"function\"!=typeof e.getDerivedStateFromProps&&\"function\"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if(\"function\"==typeof t.componentWillMount?n=\"componentWillMount\":\"function\"==typeof t.UNSAFE_componentWillMount&&(n=\"UNSAFE_componentWillMount\"),\"function\"==typeof t.componentWillReceiveProps?a=\"componentWillReceiveProps\":\"function\"==typeof t.UNSAFE_componentWillReceiveProps&&(a=\"UNSAFE_componentWillReceiveProps\"),\"function\"==typeof t.componentWillUpdate?s=\"componentWillUpdate\":\"function\"==typeof t.UNSAFE_componentWillUpdate&&(s=\"UNSAFE_componentWillUpdate\"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,u=\"function\"==typeof e.getDerivedStateFromProps?\"getDerivedStateFromProps()\":\"getSnapshotBeforeUpdate()\";throw Error(\"Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n\"+l+\" uses \"+u+\" but also contains the following legacy lifecycles:\"+(null!==n?\"\\n \"+n:\"\")+(null!==a?\"\\n \"+a:\"\")+(null!==s?\"\\n \"+s:\"\")+\"\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\nhttps://fb.me/react-async-component-lifecycle-hooks\")}if(\"function\"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=i,t.componentWillReceiveProps=r),\"function\"==typeof t.getSnapshotBeforeUpdate){if(\"function\"!=typeof t.componentDidUpdate)throw new Error(\"Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype\");t.componentWillUpdate=o;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var i=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,i)}}}(k),t.default=k},function(e,t){e.exports=[\"alignContent\",\"MozAlignContent\",\"WebkitAlignContent\",\"MSAlignContent\",\"OAlignContent\",\"alignItems\",\"MozAlignItems\",\"WebkitAlignItems\",\"MSAlignItems\",\"OAlignItems\",\"alignSelf\",\"MozAlignSelf\",\"WebkitAlignSelf\",\"MSAlignSelf\",\"OAlignSelf\",\"all\",\"MozAll\",\"WebkitAll\",\"MSAll\",\"OAll\",\"animation\",\"MozAnimation\",\"WebkitAnimation\",\"MSAnimation\",\"OAnimation\",\"animationDelay\",\"MozAnimationDelay\",\"WebkitAnimationDelay\",\"MSAnimationDelay\",\"OAnimationDelay\",\"animationDirection\",\"MozAnimationDirection\",\"WebkitAnimationDirection\",\"MSAnimationDirection\",\"OAnimationDirection\",\"animationDuration\",\"MozAnimationDuration\",\"WebkitAnimationDuration\",\"MSAnimationDuration\",\"OAnimationDuration\",\"animationFillMode\",\"MozAnimationFillMode\",\"WebkitAnimationFillMode\",\"MSAnimationFillMode\",\"OAnimationFillMode\",\"animationIterationCount\",\"MozAnimationIterationCount\",\"WebkitAnimationIterationCount\",\"MSAnimationIterationCount\",\"OAnimationIterationCount\",\"animationName\",\"MozAnimationName\",\"WebkitAnimationName\",\"MSAnimationName\",\"OAnimationName\",\"animationPlayState\",\"MozAnimationPlayState\",\"WebkitAnimationPlayState\",\"MSAnimationPlayState\",\"OAnimationPlayState\",\"animationTimingFunction\",\"MozAnimationTimingFunction\",\"WebkitAnimationTimingFunction\",\"MSAnimationTimingFunction\",\"OAnimationTimingFunction\",\"backfaceVisibility\",\"MozBackfaceVisibility\",\"WebkitBackfaceVisibility\",\"MSBackfaceVisibility\",\"OBackfaceVisibility\",\"background\",\"MozBackground\",\"WebkitBackground\",\"MSBackground\",\"OBackground\",\"backgroundAttachment\",\"MozBackgroundAttachment\",\"WebkitBackgroundAttachment\",\"MSBackgroundAttachment\",\"OBackgroundAttachment\",\"backgroundBlendMode\",\"MozBackgroundBlendMode\",\"WebkitBackgroundBlendMode\",\"MSBackgroundBlendMode\",\"OBackgroundBlendMode\",\"backgroundClip\",\"MozBackgroundClip\",\"WebkitBackgroundClip\",\"MSBackgroundClip\",\"OBackgroundClip\",\"backgroundColor\",\"MozBackgroundColor\",\"WebkitBackgroundColor\",\"MSBackgroundColor\",\"OBackgroundColor\",\"backgroundImage\",\"MozBackgroundImage\",\"WebkitBackgroundImage\",\"MSBackgroundImage\",\"OBackgroundImage\",\"backgroundOrigin\",\"MozBackgroundOrigin\",\"WebkitBackgroundOrigin\",\"MSBackgroundOrigin\",\"OBackgroundOrigin\",\"backgroundPosition\",\"MozBackgroundPosition\",\"WebkitBackgroundPosition\",\"MSBackgroundPosition\",\"OBackgroundPosition\",\"backgroundRepeat\",\"MozBackgroundRepeat\",\"WebkitBackgroundRepeat\",\"MSBackgroundRepeat\",\"OBackgroundRepeat\",\"backgroundSize\",\"MozBackgroundSize\",\"WebkitBackgroundSize\",\"MSBackgroundSize\",\"OBackgroundSize\",\"blockSize\",\"MozBlockSize\",\"WebkitBlockSize\",\"MSBlockSize\",\"OBlockSize\",\"border\",\"MozBorder\",\"WebkitBorder\",\"MSBorder\",\"OBorder\",\"borderBlockEnd\",\"MozBorderBlockEnd\",\"WebkitBorderBlockEnd\",\"MSBorderBlockEnd\",\"OBorderBlockEnd\",\"borderBlockEndColor\",\"MozBorderBlockEndColor\",\"WebkitBorderBlockEndColor\",\"MSBorderBlockEndColor\",\"OBorderBlockEndColor\",\"borderBlockEndStyle\",\"MozBorderBlockEndStyle\",\"WebkitBorderBlockEndStyle\",\"MSBorderBlockEndStyle\",\"OBorderBlockEndStyle\",\"borderBlockEndWidth\",\"MozBorderBlockEndWidth\",\"WebkitBorderBlockEndWidth\",\"MSBorderBlockEndWidth\",\"OBorderBlockEndWidth\",\"borderBlockStart\",\"MozBorderBlockStart\",\"WebkitBorderBlockStart\",\"MSBorderBlockStart\",\"OBorderBlockStart\",\"borderBlockStartColor\",\"MozBorderBlockStartColor\",\"WebkitBorderBlockStartColor\",\"MSBorderBlockStartColor\",\"OBorderBlockStartColor\",\"borderBlockStartStyle\",\"MozBorderBlockStartStyle\",\"WebkitBorderBlockStartStyle\",\"MSBorderBlockStartStyle\",\"OBorderBlockStartStyle\",\"borderBlockStartWidth\",\"MozBorderBlockStartWidth\",\"WebkitBorderBlockStartWidth\",\"MSBorderBlockStartWidth\",\"OBorderBlockStartWidth\",\"borderBottom\",\"MozBorderBottom\",\"WebkitBorderBottom\",\"MSBorderBottom\",\"OBorderBottom\",\"borderBottomColor\",\"MozBorderBottomColor\",\"WebkitBorderBottomColor\",\"MSBorderBottomColor\",\"OBorderBottomColor\",\"borderBottomLeftRadius\",\"MozBorderBottomLeftRadius\",\"WebkitBorderBottomLeftRadius\",\"MSBorderBottomLeftRadius\",\"OBorderBottomLeftRadius\",\"borderBottomRightRadius\",\"MozBorderBottomRightRadius\",\"WebkitBorderBottomRightRadius\",\"MSBorderBottomRightRadius\",\"OBorderBottomRightRadius\",\"borderBottomStyle\",\"MozBorderBottomStyle\",\"WebkitBorderBottomStyle\",\"MSBorderBottomStyle\",\"OBorderBottomStyle\",\"borderBottomWidth\",\"MozBorderBottomWidth\",\"WebkitBorderBottomWidth\",\"MSBorderBottomWidth\",\"OBorderBottomWidth\",\"borderCollapse\",\"MozBorderCollapse\",\"WebkitBorderCollapse\",\"MSBorderCollapse\",\"OBorderCollapse\",\"borderColor\",\"MozBorderColor\",\"WebkitBorderColor\",\"MSBorderColor\",\"OBorderColor\",\"borderImage\",\"MozBorderImage\",\"WebkitBorderImage\",\"MSBorderImage\",\"OBorderImage\",\"borderImageOutset\",\"MozBorderImageOutset\",\"WebkitBorderImageOutset\",\"MSBorderImageOutset\",\"OBorderImageOutset\",\"borderImageRepeat\",\"MozBorderImageRepeat\",\"WebkitBorderImageRepeat\",\"MSBorderImageRepeat\",\"OBorderImageRepeat\",\"borderImageSlice\",\"MozBorderImageSlice\",\"WebkitBorderImageSlice\",\"MSBorderImageSlice\",\"OBorderImageSlice\",\"borderImageSource\",\"MozBorderImageSource\",\"WebkitBorderImageSource\",\"MSBorderImageSource\",\"OBorderImageSource\",\"borderImageWidth\",\"MozBorderImageWidth\",\"WebkitBorderImageWidth\",\"MSBorderImageWidth\",\"OBorderImageWidth\",\"borderInlineEnd\",\"MozBorderInlineEnd\",\"WebkitBorderInlineEnd\",\"MSBorderInlineEnd\",\"OBorderInlineEnd\",\"borderInlineEndColor\",\"MozBorderInlineEndColor\",\"WebkitBorderInlineEndColor\",\"MSBorderInlineEndColor\",\"OBorderInlineEndColor\",\"borderInlineEndStyle\",\"MozBorderInlineEndStyle\",\"WebkitBorderInlineEndStyle\",\"MSBorderInlineEndStyle\",\"OBorderInlineEndStyle\",\"borderInlineEndWidth\",\"MozBorderInlineEndWidth\",\"WebkitBorderInlineEndWidth\",\"MSBorderInlineEndWidth\",\"OBorderInlineEndWidth\",\"borderInlineStart\",\"MozBorderInlineStart\",\"WebkitBorderInlineStart\",\"MSBorderInlineStart\",\"OBorderInlineStart\",\"borderInlineStartColor\",\"MozBorderInlineStartColor\",\"WebkitBorderInlineStartColor\",\"MSBorderInlineStartColor\",\"OBorderInlineStartColor\",\"borderInlineStartStyle\",\"MozBorderInlineStartStyle\",\"WebkitBorderInlineStartStyle\",\"MSBorderInlineStartStyle\",\"OBorderInlineStartStyle\",\"borderInlineStartWidth\",\"MozBorderInlineStartWidth\",\"WebkitBorderInlineStartWidth\",\"MSBorderInlineStartWidth\",\"OBorderInlineStartWidth\",\"borderLeft\",\"MozBorderLeft\",\"WebkitBorderLeft\",\"MSBorderLeft\",\"OBorderLeft\",\"borderLeftColor\",\"MozBorderLeftColor\",\"WebkitBorderLeftColor\",\"MSBorderLeftColor\",\"OBorderLeftColor\",\"borderLeftStyle\",\"MozBorderLeftStyle\",\"WebkitBorderLeftStyle\",\"MSBorderLeftStyle\",\"OBorderLeftStyle\",\"borderLeftWidth\",\"MozBorderLeftWidth\",\"WebkitBorderLeftWidth\",\"MSBorderLeftWidth\",\"OBorderLeftWidth\",\"borderRadius\",\"MozBorderRadius\",\"WebkitBorderRadius\",\"MSBorderRadius\",\"OBorderRadius\",\"borderRight\",\"MozBorderRight\",\"WebkitBorderRight\",\"MSBorderRight\",\"OBorderRight\",\"borderRightColor\",\"MozBorderRightColor\",\"WebkitBorderRightColor\",\"MSBorderRightColor\",\"OBorderRightColor\",\"borderRightStyle\",\"MozBorderRightStyle\",\"WebkitBorderRightStyle\",\"MSBorderRightStyle\",\"OBorderRightStyle\",\"borderRightWidth\",\"MozBorderRightWidth\",\"WebkitBorderRightWidth\",\"MSBorderRightWidth\",\"OBorderRightWidth\",\"borderSpacing\",\"MozBorderSpacing\",\"WebkitBorderSpacing\",\"MSBorderSpacing\",\"OBorderSpacing\",\"borderStyle\",\"MozBorderStyle\",\"WebkitBorderStyle\",\"MSBorderStyle\",\"OBorderStyle\",\"borderTop\",\"MozBorderTop\",\"WebkitBorderTop\",\"MSBorderTop\",\"OBorderTop\",\"borderTopColor\",\"MozBorderTopColor\",\"WebkitBorderTopColor\",\"MSBorderTopColor\",\"OBorderTopColor\",\"borderTopLeftRadius\",\"MozBorderTopLeftRadius\",\"WebkitBorderTopLeftRadius\",\"MSBorderTopLeftRadius\",\"OBorderTopLeftRadius\",\"borderTopRightRadius\",\"MozBorderTopRightRadius\",\"WebkitBorderTopRightRadius\",\"MSBorderTopRightRadius\",\"OBorderTopRightRadius\",\"borderTopStyle\",\"MozBorderTopStyle\",\"WebkitBorderTopStyle\",\"MSBorderTopStyle\",\"OBorderTopStyle\",\"borderTopWidth\",\"MozBorderTopWidth\",\"WebkitBorderTopWidth\",\"MSBorderTopWidth\",\"OBorderTopWidth\",\"borderWidth\",\"MozBorderWidth\",\"WebkitBorderWidth\",\"MSBorderWidth\",\"OBorderWidth\",\"bottom\",\"MozBottom\",\"WebkitBottom\",\"MSBottom\",\"OBottom\",\"boxDecorationBreak\",\"MozBoxDecorationBreak\",\"WebkitBoxDecorationBreak\",\"MSBoxDecorationBreak\",\"OBoxDecorationBreak\",\"boxShadow\",\"MozBoxShadow\",\"WebkitBoxShadow\",\"MSBoxShadow\",\"OBoxShadow\",\"boxSizing\",\"MozBoxSizing\",\"WebkitBoxSizing\",\"MSBoxSizing\",\"OBoxSizing\",\"breakAfter\",\"MozBreakAfter\",\"WebkitBreakAfter\",\"MSBreakAfter\",\"OBreakAfter\",\"breakBefore\",\"MozBreakBefore\",\"WebkitBreakBefore\",\"MSBreakBefore\",\"OBreakBefore\",\"breakInside\",\"MozBreakInside\",\"WebkitBreakInside\",\"MSBreakInside\",\"OBreakInside\",\"captionSide\",\"MozCaptionSide\",\"WebkitCaptionSide\",\"MSCaptionSide\",\"OCaptionSide\",\"caretColor\",\"MozCaretColor\",\"WebkitCaretColor\",\"MSCaretColor\",\"OCaretColor\",\"ch\",\"MozCh\",\"WebkitCh\",\"MSCh\",\"OCh\",\"clear\",\"MozClear\",\"WebkitClear\",\"MSClear\",\"OClear\",\"clip\",\"MozClip\",\"WebkitClip\",\"MSClip\",\"OClip\",\"clipPath\",\"MozClipPath\",\"WebkitClipPath\",\"MSClipPath\",\"OClipPath\",\"cm\",\"MozCm\",\"WebkitCm\",\"MSCm\",\"OCm\",\"color\",\"MozColor\",\"WebkitColor\",\"MSColor\",\"OColor\",\"columnCount\",\"MozColumnCount\",\"WebkitColumnCount\",\"MSColumnCount\",\"OColumnCount\",\"columnFill\",\"MozColumnFill\",\"WebkitColumnFill\",\"MSColumnFill\",\"OColumnFill\",\"columnGap\",\"MozColumnGap\",\"WebkitColumnGap\",\"MSColumnGap\",\"OColumnGap\",\"columnRule\",\"MozColumnRule\",\"WebkitColumnRule\",\"MSColumnRule\",\"OColumnRule\",\"columnRuleColor\",\"MozColumnRuleColor\",\"WebkitColumnRuleColor\",\"MSColumnRuleColor\",\"OColumnRuleColor\",\"columnRuleStyle\",\"MozColumnRuleStyle\",\"WebkitColumnRuleStyle\",\"MSColumnRuleStyle\",\"OColumnRuleStyle\",\"columnRuleWidth\",\"MozColumnRuleWidth\",\"WebkitColumnRuleWidth\",\"MSColumnRuleWidth\",\"OColumnRuleWidth\",\"columnSpan\",\"MozColumnSpan\",\"WebkitColumnSpan\",\"MSColumnSpan\",\"OColumnSpan\",\"columnWidth\",\"MozColumnWidth\",\"WebkitColumnWidth\",\"MSColumnWidth\",\"OColumnWidth\",\"columns\",\"MozColumns\",\"WebkitColumns\",\"MSColumns\",\"OColumns\",\"content\",\"MozContent\",\"WebkitContent\",\"MSContent\",\"OContent\",\"counterIncrement\",\"MozCounterIncrement\",\"WebkitCounterIncrement\",\"MSCounterIncrement\",\"OCounterIncrement\",\"counterReset\",\"MozCounterReset\",\"WebkitCounterReset\",\"MSCounterReset\",\"OCounterReset\",\"cursor\",\"MozCursor\",\"WebkitCursor\",\"MSCursor\",\"OCursor\",\"deg\",\"MozDeg\",\"WebkitDeg\",\"MSDeg\",\"ODeg\",\"direction\",\"MozDirection\",\"WebkitDirection\",\"MSDirection\",\"ODirection\",\"display\",\"MozDisplay\",\"WebkitDisplay\",\"MSDisplay\",\"ODisplay\",\"dpcm\",\"MozDpcm\",\"WebkitDpcm\",\"MSDpcm\",\"ODpcm\",\"dpi\",\"MozDpi\",\"WebkitDpi\",\"MSDpi\",\"ODpi\",\"dppx\",\"MozDppx\",\"WebkitDppx\",\"MSDppx\",\"ODppx\",\"em\",\"MozEm\",\"WebkitEm\",\"MSEm\",\"OEm\",\"emptyCells\",\"MozEmptyCells\",\"WebkitEmptyCells\",\"MSEmptyCells\",\"OEmptyCells\",\"ex\",\"MozEx\",\"WebkitEx\",\"MSEx\",\"OEx\",\"filter\",\"MozFilter\",\"WebkitFilter\",\"MSFilter\",\"OFilter\",\"flexBasis\",\"MozFlexBasis\",\"WebkitFlexBasis\",\"MSFlexBasis\",\"OFlexBasis\",\"flexDirection\",\"MozFlexDirection\",\"WebkitFlexDirection\",\"MSFlexDirection\",\"OFlexDirection\",\"flexFlow\",\"MozFlexFlow\",\"WebkitFlexFlow\",\"MSFlexFlow\",\"OFlexFlow\",\"flexGrow\",\"MozFlexGrow\",\"WebkitFlexGrow\",\"MSFlexGrow\",\"OFlexGrow\",\"flexShrink\",\"MozFlexShrink\",\"WebkitFlexShrink\",\"MSFlexShrink\",\"OFlexShrink\",\"flexWrap\",\"MozFlexWrap\",\"WebkitFlexWrap\",\"MSFlexWrap\",\"OFlexWrap\",\"float\",\"MozFloat\",\"WebkitFloat\",\"MSFloat\",\"OFloat\",\"font\",\"MozFont\",\"WebkitFont\",\"MSFont\",\"OFont\",\"fontFamily\",\"MozFontFamily\",\"WebkitFontFamily\",\"MSFontFamily\",\"OFontFamily\",\"fontFeatureSettings\",\"MozFontFeatureSettings\",\"WebkitFontFeatureSettings\",\"MSFontFeatureSettings\",\"OFontFeatureSettings\",\"fontKerning\",\"MozFontKerning\",\"WebkitFontKerning\",\"MSFontKerning\",\"OFontKerning\",\"fontLanguageOverride\",\"MozFontLanguageOverride\",\"WebkitFontLanguageOverride\",\"MSFontLanguageOverride\",\"OFontLanguageOverride\",\"fontSize\",\"MozFontSize\",\"WebkitFontSize\",\"MSFontSize\",\"OFontSize\",\"fontSizeAdjust\",\"MozFontSizeAdjust\",\"WebkitFontSizeAdjust\",\"MSFontSizeAdjust\",\"OFontSizeAdjust\",\"fontStretch\",\"MozFontStretch\",\"WebkitFontStretch\",\"MSFontStretch\",\"OFontStretch\",\"fontStyle\",\"MozFontStyle\",\"WebkitFontStyle\",\"MSFontStyle\",\"OFontStyle\",\"fontSynthesis\",\"MozFontSynthesis\",\"WebkitFontSynthesis\",\"MSFontSynthesis\",\"OFontSynthesis\",\"fontVariant\",\"MozFontVariant\",\"WebkitFontVariant\",\"MSFontVariant\",\"OFontVariant\",\"fontVariantAlternates\",\"MozFontVariantAlternates\",\"WebkitFontVariantAlternates\",\"MSFontVariantAlternates\",\"OFontVariantAlternates\",\"fontVariantCaps\",\"MozFontVariantCaps\",\"WebkitFontVariantCaps\",\"MSFontVariantCaps\",\"OFontVariantCaps\",\"fontVariantEastAsian\",\"MozFontVariantEastAsian\",\"WebkitFontVariantEastAsian\",\"MSFontVariantEastAsian\",\"OFontVariantEastAsian\",\"fontVariantLigatures\",\"MozFontVariantLigatures\",\"WebkitFontVariantLigatures\",\"MSFontVariantLigatures\",\"OFontVariantLigatures\",\"fontVariantNumeric\",\"MozFontVariantNumeric\",\"WebkitFontVariantNumeric\",\"MSFontVariantNumeric\",\"OFontVariantNumeric\",\"fontVariantPosition\",\"MozFontVariantPosition\",\"WebkitFontVariantPosition\",\"MSFontVariantPosition\",\"OFontVariantPosition\",\"fontWeight\",\"MozFontWeight\",\"WebkitFontWeight\",\"MSFontWeight\",\"OFontWeight\",\"fr\",\"MozFr\",\"WebkitFr\",\"MSFr\",\"OFr\",\"grad\",\"MozGrad\",\"WebkitGrad\",\"MSGrad\",\"OGrad\",\"grid\",\"MozGrid\",\"WebkitGrid\",\"MSGrid\",\"OGrid\",\"gridArea\",\"MozGridArea\",\"WebkitGridArea\",\"MSGridArea\",\"OGridArea\",\"gridAutoColumns\",\"MozGridAutoColumns\",\"WebkitGridAutoColumns\",\"MSGridAutoColumns\",\"OGridAutoColumns\",\"gridAutoFlow\",\"MozGridAutoFlow\",\"WebkitGridAutoFlow\",\"MSGridAutoFlow\",\"OGridAutoFlow\",\"gridAutoRows\",\"MozGridAutoRows\",\"WebkitGridAutoRows\",\"MSGridAutoRows\",\"OGridAutoRows\",\"gridColumn\",\"MozGridColumn\",\"WebkitGridColumn\",\"MSGridColumn\",\"OGridColumn\",\"gridColumnEnd\",\"MozGridColumnEnd\",\"WebkitGridColumnEnd\",\"MSGridColumnEnd\",\"OGridColumnEnd\",\"gridColumnGap\",\"MozGridColumnGap\",\"WebkitGridColumnGap\",\"MSGridColumnGap\",\"OGridColumnGap\",\"gridColumnStart\",\"MozGridColumnStart\",\"WebkitGridColumnStart\",\"MSGridColumnStart\",\"OGridColumnStart\",\"gridGap\",\"MozGridGap\",\"WebkitGridGap\",\"MSGridGap\",\"OGridGap\",\"gridRow\",\"MozGridRow\",\"WebkitGridRow\",\"MSGridRow\",\"OGridRow\",\"gridRowEnd\",\"MozGridRowEnd\",\"WebkitGridRowEnd\",\"MSGridRowEnd\",\"OGridRowEnd\",\"gridRowGap\",\"MozGridRowGap\",\"WebkitGridRowGap\",\"MSGridRowGap\",\"OGridRowGap\",\"gridRowStart\",\"MozGridRowStart\",\"WebkitGridRowStart\",\"MSGridRowStart\",\"OGridRowStart\",\"gridTemplate\",\"MozGridTemplate\",\"WebkitGridTemplate\",\"MSGridTemplate\",\"OGridTemplate\",\"gridTemplateAreas\",\"MozGridTemplateAreas\",\"WebkitGridTemplateAreas\",\"MSGridTemplateAreas\",\"OGridTemplateAreas\",\"gridTemplateColumns\",\"MozGridTemplateColumns\",\"WebkitGridTemplateColumns\",\"MSGridTemplateColumns\",\"OGridTemplateColumns\",\"gridTemplateRows\",\"MozGridTemplateRows\",\"WebkitGridTemplateRows\",\"MSGridTemplateRows\",\"OGridTemplateRows\",\"height\",\"MozHeight\",\"WebkitHeight\",\"MSHeight\",\"OHeight\",\"hyphens\",\"MozHyphens\",\"WebkitHyphens\",\"MSHyphens\",\"OHyphens\",\"hz\",\"MozHz\",\"WebkitHz\",\"MSHz\",\"OHz\",\"imageOrientation\",\"MozImageOrientation\",\"WebkitImageOrientation\",\"MSImageOrientation\",\"OImageOrientation\",\"imageRendering\",\"MozImageRendering\",\"WebkitImageRendering\",\"MSImageRendering\",\"OImageRendering\",\"imageResolution\",\"MozImageResolution\",\"WebkitImageResolution\",\"MSImageResolution\",\"OImageResolution\",\"imeMode\",\"MozImeMode\",\"WebkitImeMode\",\"MSImeMode\",\"OImeMode\",\"in\",\"MozIn\",\"WebkitIn\",\"MSIn\",\"OIn\",\"inherit\",\"MozInherit\",\"WebkitInherit\",\"MSInherit\",\"OInherit\",\"initial\",\"MozInitial\",\"WebkitInitial\",\"MSInitial\",\"OInitial\",\"inlineSize\",\"MozInlineSize\",\"WebkitInlineSize\",\"MSInlineSize\",\"OInlineSize\",\"isolation\",\"MozIsolation\",\"WebkitIsolation\",\"MSIsolation\",\"OIsolation\",\"justifyContent\",\"MozJustifyContent\",\"WebkitJustifyContent\",\"MSJustifyContent\",\"OJustifyContent\",\"khz\",\"MozKhz\",\"WebkitKhz\",\"MSKhz\",\"OKhz\",\"left\",\"MozLeft\",\"WebkitLeft\",\"MSLeft\",\"OLeft\",\"letterSpacing\",\"MozLetterSpacing\",\"WebkitLetterSpacing\",\"MSLetterSpacing\",\"OLetterSpacing\",\"lineBreak\",\"MozLineBreak\",\"WebkitLineBreak\",\"MSLineBreak\",\"OLineBreak\",\"lineHeight\",\"MozLineHeight\",\"WebkitLineHeight\",\"MSLineHeight\",\"OLineHeight\",\"listStyle\",\"MozListStyle\",\"WebkitListStyle\",\"MSListStyle\",\"OListStyle\",\"listStyleImage\",\"MozListStyleImage\",\"WebkitListStyleImage\",\"MSListStyleImage\",\"OListStyleImage\",\"listStylePosition\",\"MozListStylePosition\",\"WebkitListStylePosition\",\"MSListStylePosition\",\"OListStylePosition\",\"listStyleType\",\"MozListStyleType\",\"WebkitListStyleType\",\"MSListStyleType\",\"OListStyleType\",\"margin\",\"MozMargin\",\"WebkitMargin\",\"MSMargin\",\"OMargin\",\"marginBlockEnd\",\"MozMarginBlockEnd\",\"WebkitMarginBlockEnd\",\"MSMarginBlockEnd\",\"OMarginBlockEnd\",\"marginBlockStart\",\"MozMarginBlockStart\",\"WebkitMarginBlockStart\",\"MSMarginBlockStart\",\"OMarginBlockStart\",\"marginBottom\",\"MozMarginBottom\",\"WebkitMarginBottom\",\"MSMarginBottom\",\"OMarginBottom\",\"marginInlineEnd\",\"MozMarginInlineEnd\",\"WebkitMarginInlineEnd\",\"MSMarginInlineEnd\",\"OMarginInlineEnd\",\"marginInlineStart\",\"MozMarginInlineStart\",\"WebkitMarginInlineStart\",\"MSMarginInlineStart\",\"OMarginInlineStart\",\"marginLeft\",\"MozMarginLeft\",\"WebkitMarginLeft\",\"MSMarginLeft\",\"OMarginLeft\",\"marginRight\",\"MozMarginRight\",\"WebkitMarginRight\",\"MSMarginRight\",\"OMarginRight\",\"marginTop\",\"MozMarginTop\",\"WebkitMarginTop\",\"MSMarginTop\",\"OMarginTop\",\"mask\",\"MozMask\",\"WebkitMask\",\"MSMask\",\"OMask\",\"maskClip\",\"MozMaskClip\",\"WebkitMaskClip\",\"MSMaskClip\",\"OMaskClip\",\"maskComposite\",\"MozMaskComposite\",\"WebkitMaskComposite\",\"MSMaskComposite\",\"OMaskComposite\",\"maskImage\",\"MozMaskImage\",\"WebkitMaskImage\",\"MSMaskImage\",\"OMaskImage\",\"maskMode\",\"MozMaskMode\",\"WebkitMaskMode\",\"MSMaskMode\",\"OMaskMode\",\"maskOrigin\",\"MozMaskOrigin\",\"WebkitMaskOrigin\",\"MSMaskOrigin\",\"OMaskOrigin\",\"maskPosition\",\"MozMaskPosition\",\"WebkitMaskPosition\",\"MSMaskPosition\",\"OMaskPosition\",\"maskRepeat\",\"MozMaskRepeat\",\"WebkitMaskRepeat\",\"MSMaskRepeat\",\"OMaskRepeat\",\"maskSize\",\"MozMaskSize\",\"WebkitMaskSize\",\"MSMaskSize\",\"OMaskSize\",\"maskType\",\"MozMaskType\",\"WebkitMaskType\",\"MSMaskType\",\"OMaskType\",\"maxHeight\",\"MozMaxHeight\",\"WebkitMaxHeight\",\"MSMaxHeight\",\"OMaxHeight\",\"maxWidth\",\"MozMaxWidth\",\"WebkitMaxWidth\",\"MSMaxWidth\",\"OMaxWidth\",\"minBlockSize\",\"MozMinBlockSize\",\"WebkitMinBlockSize\",\"MSMinBlockSize\",\"OMinBlockSize\",\"minHeight\",\"MozMinHeight\",\"WebkitMinHeight\",\"MSMinHeight\",\"OMinHeight\",\"minInlineSize\",\"MozMinInlineSize\",\"WebkitMinInlineSize\",\"MSMinInlineSize\",\"OMinInlineSize\",\"minWidth\",\"MozMinWidth\",\"WebkitMinWidth\",\"MSMinWidth\",\"OMinWidth\",\"mixBlendMode\",\"MozMixBlendMode\",\"WebkitMixBlendMode\",\"MSMixBlendMode\",\"OMixBlendMode\",\"mm\",\"MozMm\",\"WebkitMm\",\"MSMm\",\"OMm\",\"ms\",\"MozMs\",\"WebkitMs\",\"MSMs\",\"OMs\",\"objectFit\",\"MozObjectFit\",\"WebkitObjectFit\",\"MSObjectFit\",\"OObjectFit\",\"objectPosition\",\"MozObjectPosition\",\"WebkitObjectPosition\",\"MSObjectPosition\",\"OObjectPosition\",\"offsetBlockEnd\",\"MozOffsetBlockEnd\",\"WebkitOffsetBlockEnd\",\"MSOffsetBlockEnd\",\"OOffsetBlockEnd\",\"offsetBlockStart\",\"MozOffsetBlockStart\",\"WebkitOffsetBlockStart\",\"MSOffsetBlockStart\",\"OOffsetBlockStart\",\"offsetInlineEnd\",\"MozOffsetInlineEnd\",\"WebkitOffsetInlineEnd\",\"MSOffsetInlineEnd\",\"OOffsetInlineEnd\",\"offsetInlineStart\",\"MozOffsetInlineStart\",\"WebkitOffsetInlineStart\",\"MSOffsetInlineStart\",\"OOffsetInlineStart\",\"opacity\",\"MozOpacity\",\"WebkitOpacity\",\"MSOpacity\",\"OOpacity\",\"order\",\"MozOrder\",\"WebkitOrder\",\"MSOrder\",\"OOrder\",\"orphans\",\"MozOrphans\",\"WebkitOrphans\",\"MSOrphans\",\"OOrphans\",\"outline\",\"MozOutline\",\"WebkitOutline\",\"MSOutline\",\"OOutline\",\"outlineColor\",\"MozOutlineColor\",\"WebkitOutlineColor\",\"MSOutlineColor\",\"OOutlineColor\",\"outlineOffset\",\"MozOutlineOffset\",\"WebkitOutlineOffset\",\"MSOutlineOffset\",\"OOutlineOffset\",\"outlineStyle\",\"MozOutlineStyle\",\"WebkitOutlineStyle\",\"MSOutlineStyle\",\"OOutlineStyle\",\"outlineWidth\",\"MozOutlineWidth\",\"WebkitOutlineWidth\",\"MSOutlineWidth\",\"OOutlineWidth\",\"overflow\",\"MozOverflow\",\"WebkitOverflow\",\"MSOverflow\",\"OOverflow\",\"overflowWrap\",\"MozOverflowWrap\",\"WebkitOverflowWrap\",\"MSOverflowWrap\",\"OOverflowWrap\",\"overflowX\",\"MozOverflowX\",\"WebkitOverflowX\",\"MSOverflowX\",\"OOverflowX\",\"overflowY\",\"MozOverflowY\",\"WebkitOverflowY\",\"MSOverflowY\",\"OOverflowY\",\"padding\",\"MozPadding\",\"WebkitPadding\",\"MSPadding\",\"OPadding\",\"paddingBlockEnd\",\"MozPaddingBlockEnd\",\"WebkitPaddingBlockEnd\",\"MSPaddingBlockEnd\",\"OPaddingBlockEnd\",\"paddingBlockStart\",\"MozPaddingBlockStart\",\"WebkitPaddingBlockStart\",\"MSPaddingBlockStart\",\"OPaddingBlockStart\",\"paddingBottom\",\"MozPaddingBottom\",\"WebkitPaddingBottom\",\"MSPaddingBottom\",\"OPaddingBottom\",\"paddingInlineEnd\",\"MozPaddingInlineEnd\",\"WebkitPaddingInlineEnd\",\"MSPaddingInlineEnd\",\"OPaddingInlineEnd\",\"paddingInlineStart\",\"MozPaddingInlineStart\",\"WebkitPaddingInlineStart\",\"MSPaddingInlineStart\",\"OPaddingInlineStart\",\"paddingLeft\",\"MozPaddingLeft\",\"WebkitPaddingLeft\",\"MSPaddingLeft\",\"OPaddingLeft\",\"paddingRight\",\"MozPaddingRight\",\"WebkitPaddingRight\",\"MSPaddingRight\",\"OPaddingRight\",\"paddingTop\",\"MozPaddingTop\",\"WebkitPaddingTop\",\"MSPaddingTop\",\"OPaddingTop\",\"pageBreakAfter\",\"MozPageBreakAfter\",\"WebkitPageBreakAfter\",\"MSPageBreakAfter\",\"OPageBreakAfter\",\"pageBreakBefore\",\"MozPageBreakBefore\",\"WebkitPageBreakBefore\",\"MSPageBreakBefore\",\"OPageBreakBefore\",\"pageBreakInside\",\"MozPageBreakInside\",\"WebkitPageBreakInside\",\"MSPageBreakInside\",\"OPageBreakInside\",\"pc\",\"MozPc\",\"WebkitPc\",\"MSPc\",\"OPc\",\"perspective\",\"MozPerspective\",\"WebkitPerspective\",\"MSPerspective\",\"OPerspective\",\"perspectiveOrigin\",\"MozPerspectiveOrigin\",\"WebkitPerspectiveOrigin\",\"MSPerspectiveOrigin\",\"OPerspectiveOrigin\",\"pointerEvents\",\"MozPointerEvents\",\"WebkitPointerEvents\",\"MSPointerEvents\",\"OPointerEvents\",\"position\",\"MozPosition\",\"WebkitPosition\",\"MSPosition\",\"OPosition\",\"pt\",\"MozPt\",\"WebkitPt\",\"MSPt\",\"OPt\",\"px\",\"MozPx\",\"WebkitPx\",\"MSPx\",\"OPx\",\"q\",\"MozQ\",\"WebkitQ\",\"MSQ\",\"OQ\",\"quotes\",\"MozQuotes\",\"WebkitQuotes\",\"MSQuotes\",\"OQuotes\",\"rad\",\"MozRad\",\"WebkitRad\",\"MSRad\",\"ORad\",\"rem\",\"MozRem\",\"WebkitRem\",\"MSRem\",\"ORem\",\"resize\",\"MozResize\",\"WebkitResize\",\"MSResize\",\"OResize\",\"revert\",\"MozRevert\",\"WebkitRevert\",\"MSRevert\",\"ORevert\",\"right\",\"MozRight\",\"WebkitRight\",\"MSRight\",\"ORight\",\"rubyAlign\",\"MozRubyAlign\",\"WebkitRubyAlign\",\"MSRubyAlign\",\"ORubyAlign\",\"rubyMerge\",\"MozRubyMerge\",\"WebkitRubyMerge\",\"MSRubyMerge\",\"ORubyMerge\",\"rubyPosition\",\"MozRubyPosition\",\"WebkitRubyPosition\",\"MSRubyPosition\",\"ORubyPosition\",\"s\",\"MozS\",\"WebkitS\",\"MSS\",\"OS\",\"scrollBehavior\",\"MozScrollBehavior\",\"WebkitScrollBehavior\",\"MSScrollBehavior\",\"OScrollBehavior\",\"scrollSnapCoordinate\",\"MozScrollSnapCoordinate\",\"WebkitScrollSnapCoordinate\",\"MSScrollSnapCoordinate\",\"OScrollSnapCoordinate\",\"scrollSnapDestination\",\"MozScrollSnapDestination\",\"WebkitScrollSnapDestination\",\"MSScrollSnapDestination\",\"OScrollSnapDestination\",\"scrollSnapType\",\"MozScrollSnapType\",\"WebkitScrollSnapType\",\"MSScrollSnapType\",\"OScrollSnapType\",\"shapeImageThreshold\",\"MozShapeImageThreshold\",\"WebkitShapeImageThreshold\",\"MSShapeImageThreshold\",\"OShapeImageThreshold\",\"shapeMargin\",\"MozShapeMargin\",\"WebkitShapeMargin\",\"MSShapeMargin\",\"OShapeMargin\",\"shapeOutside\",\"MozShapeOutside\",\"WebkitShapeOutside\",\"MSShapeOutside\",\"OShapeOutside\",\"tabSize\",\"MozTabSize\",\"WebkitTabSize\",\"MSTabSize\",\"OTabSize\",\"tableLayout\",\"MozTableLayout\",\"WebkitTableLayout\",\"MSTableLayout\",\"OTableLayout\",\"textAlign\",\"MozTextAlign\",\"WebkitTextAlign\",\"MSTextAlign\",\"OTextAlign\",\"textAlignLast\",\"MozTextAlignLast\",\"WebkitTextAlignLast\",\"MSTextAlignLast\",\"OTextAlignLast\",\"textCombineUpright\",\"MozTextCombineUpright\",\"WebkitTextCombineUpright\",\"MSTextCombineUpright\",\"OTextCombineUpright\",\"textDecoration\",\"MozTextDecoration\",\"WebkitTextDecoration\",\"MSTextDecoration\",\"OTextDecoration\",\"textDecorationColor\",\"MozTextDecorationColor\",\"WebkitTextDecorationColor\",\"MSTextDecorationColor\",\"OTextDecorationColor\",\"textDecorationLine\",\"MozTextDecorationLine\",\"WebkitTextDecorationLine\",\"MSTextDecorationLine\",\"OTextDecorationLine\",\"textDecorationStyle\",\"MozTextDecorationStyle\",\"WebkitTextDecorationStyle\",\"MSTextDecorationStyle\",\"OTextDecorationStyle\",\"textEmphasis\",\"MozTextEmphasis\",\"WebkitTextEmphasis\",\"MSTextEmphasis\",\"OTextEmphasis\",\"textEmphasisColor\",\"MozTextEmphasisColor\",\"WebkitTextEmphasisColor\",\"MSTextEmphasisColor\",\"OTextEmphasisColor\",\"textEmphasisPosition\",\"MozTextEmphasisPosition\",\"WebkitTextEmphasisPosition\",\"MSTextEmphasisPosition\",\"OTextEmphasisPosition\",\"textEmphasisStyle\",\"MozTextEmphasisStyle\",\"WebkitTextEmphasisStyle\",\"MSTextEmphasisStyle\",\"OTextEmphasisStyle\",\"textIndent\",\"MozTextIndent\",\"WebkitTextIndent\",\"MSTextIndent\",\"OTextIndent\",\"textOrientation\",\"MozTextOrientation\",\"WebkitTextOrientation\",\"MSTextOrientation\",\"OTextOrientation\",\"textOverflow\",\"MozTextOverflow\",\"WebkitTextOverflow\",\"MSTextOverflow\",\"OTextOverflow\",\"textRendering\",\"MozTextRendering\",\"WebkitTextRendering\",\"MSTextRendering\",\"OTextRendering\",\"textShadow\",\"MozTextShadow\",\"WebkitTextShadow\",\"MSTextShadow\",\"OTextShadow\",\"textTransform\",\"MozTextTransform\",\"WebkitTextTransform\",\"MSTextTransform\",\"OTextTransform\",\"textUnderlinePosition\",\"MozTextUnderlinePosition\",\"WebkitTextUnderlinePosition\",\"MSTextUnderlinePosition\",\"OTextUnderlinePosition\",\"top\",\"MozTop\",\"WebkitTop\",\"MSTop\",\"OTop\",\"touchAction\",\"MozTouchAction\",\"WebkitTouchAction\",\"MSTouchAction\",\"OTouchAction\",\"transform\",\"MozTransform\",\"WebkitTransform\",\"msTransform\",\"OTransform\",\"transformBox\",\"MozTransformBox\",\"WebkitTransformBox\",\"MSTransformBox\",\"OTransformBox\",\"transformOrigin\",\"MozTransformOrigin\",\"WebkitTransformOrigin\",\"MSTransformOrigin\",\"OTransformOrigin\",\"transformStyle\",\"MozTransformStyle\",\"WebkitTransformStyle\",\"MSTransformStyle\",\"OTransformStyle\",\"transition\",\"MozTransition\",\"WebkitTransition\",\"MSTransition\",\"OTransition\",\"transitionDelay\",\"MozTransitionDelay\",\"WebkitTransitionDelay\",\"MSTransitionDelay\",\"OTransitionDelay\",\"transitionDuration\",\"MozTransitionDuration\",\"WebkitTransitionDuration\",\"MSTransitionDuration\",\"OTransitionDuration\",\"transitionProperty\",\"MozTransitionProperty\",\"WebkitTransitionProperty\",\"MSTransitionProperty\",\"OTransitionProperty\",\"transitionTimingFunction\",\"MozTransitionTimingFunction\",\"WebkitTransitionTimingFunction\",\"MSTransitionTimingFunction\",\"OTransitionTimingFunction\",\"turn\",\"MozTurn\",\"WebkitTurn\",\"MSTurn\",\"OTurn\",\"unicodeBidi\",\"MozUnicodeBidi\",\"WebkitUnicodeBidi\",\"MSUnicodeBidi\",\"OUnicodeBidi\",\"unset\",\"MozUnset\",\"WebkitUnset\",\"MSUnset\",\"OUnset\",\"verticalAlign\",\"MozVerticalAlign\",\"WebkitVerticalAlign\",\"MSVerticalAlign\",\"OVerticalAlign\",\"vh\",\"MozVh\",\"WebkitVh\",\"MSVh\",\"OVh\",\"visibility\",\"MozVisibility\",\"WebkitVisibility\",\"MSVisibility\",\"OVisibility\",\"vmax\",\"MozVmax\",\"WebkitVmax\",\"MSVmax\",\"OVmax\",\"vmin\",\"MozVmin\",\"WebkitVmin\",\"MSVmin\",\"OVmin\",\"vw\",\"MozVw\",\"WebkitVw\",\"MSVw\",\"OVw\",\"whiteSpace\",\"MozWhiteSpace\",\"WebkitWhiteSpace\",\"MSWhiteSpace\",\"OWhiteSpace\",\"widows\",\"MozWidows\",\"WebkitWidows\",\"MSWidows\",\"OWidows\",\"width\",\"MozWidth\",\"WebkitWidth\",\"MSWidth\",\"OWidth\",\"willChange\",\"MozWillChange\",\"WebkitWillChange\",\"MSWillChange\",\"OWillChange\",\"wordBreak\",\"MozWordBreak\",\"WebkitWordBreak\",\"MSWordBreak\",\"OWordBreak\",\"wordSpacing\",\"MozWordSpacing\",\"WebkitWordSpacing\",\"MSWordSpacing\",\"OWordSpacing\",\"wordWrap\",\"MozWordWrap\",\"WebkitWordWrap\",\"MSWordWrap\",\"OWordWrap\",\"writingMode\",\"MozWritingMode\",\"WebkitWritingMode\",\"MSWritingMode\",\"OWritingMode\",\"zIndex\",\"MozZIndex\",\"WebkitZIndex\",\"MSZIndex\",\"OZIndex\",\"fontSize\",\"MozFontSize\",\"WebkitFontSize\",\"MSFontSize\",\"OFontSize\",\"flex\",\"MozFlex\",\"WebkitFlex\",\"MSFlex\",\"OFlex\",\"fr\",\"MozFr\",\"WebkitFr\",\"MSFr\",\"OFr\",\"overflowScrolling\",\"MozOverflowScrolling\",\"WebkitOverflowScrolling\",\"MSOverflowScrolling\",\"OOverflowScrolling\",\"userSelect\",\"MozUserSelect\",\"WebkitUserSelect\",\"MSUserSelect\",\"OUserSelect\"]},function(e,t,n){var i=n(561),r=n(27);e.exports=function(e,t,n){var r=e[t];if(r){var o=[];if(Object.keys(r).forEach(function(e){-1===i.indexOf(e)&&o.push(e)}),o.length)throw new Error(\"Prop \"+t+\" passed to \"+n+\". Has invalid keys \"+o.join(\", \"))}},e.exports.isRequired=function(t,n,i){if(!t[n])throw new Error(\"Prop \"+n+\" passed to \"+i+\" is required\");return e.exports(t,n,i)},e.exports.supportingArrays=r.oneOfType([r.arrayOf(e.exports),e.exports])},function(e,t,n){\"use strict\";function i(){return i=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,\"a\",function(){return d});var a=n(27),s=(n.n(a),n(2)),l=n.n(s),u=n(13),c=n.n(u),d=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.componentDidMount=function(){this.checkFocus()},n.componentDidUpdate=function(){this.checkFocus()},n.checkFocus=function(){var e=this.props,t=e.selected,n=e.focus;t&&n&&this.node.focus()},n.render=function(){var e,t=this,n=this.props,o=n.children,a=n.className,s=n.disabled,u=n.disabledClassName,d=(n.focus,n.id),h=n.panelId,f=n.selected,p=n.selectedClassName,m=n.tabIndex,g=n.tabRef,v=r(n,[\"children\",\"className\",\"disabled\",\"disabledClassName\",\"focus\",\"id\",\"panelId\",\"selected\",\"selectedClassName\",\"tabIndex\",\"tabRef\"]);return l.a.createElement(\"li\",i({},v,{className:c()(a,(e={},e[p]=f,e[u]=s,e)),ref:function(e){t.node=e,g&&g(e)},role:\"tab\",id:d,\"aria-selected\":f?\"true\":\"false\",\"aria-disabled\":s?\"true\":\"false\",\"aria-controls\":h,tabIndex:m||(f?\"0\":null)}),o)},t}(s.Component);d.defaultProps={className:\"react-tabs__tab\",disabledClassName:\"react-tabs__tab--disabled\",focus:!1,id:null,panelId:null,selected:!1,selectedClassName:\"react-tabs__tab--selected\"},d.propTypes={},d.tabsRole=\"Tab\"},function(e,t,n){\"use strict\";function i(){return i=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,\"a\",function(){return d});var a=n(27),s=(n.n(a),n(2)),l=n.n(s),u=n(13),c=n.n(u),d=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,o=r(e,[\"children\",\"className\"]);return l.a.createElement(\"ul\",i({},o,{className:c()(n),role:\"tablist\"}),t)},t}(s.Component);d.defaultProps={className:\"react-tabs__tab-list\"},d.propTypes={},d.tabsRole=\"TabList\"},function(e,t,n){\"use strict\";function i(){return i=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,\"a\",function(){return d});var a=n(27),s=(n.n(a),n(2)),l=n.n(s),u=n(13),c=n.n(u),d=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e,t=this.props,n=t.children,o=t.className,a=t.forceRender,s=t.id,u=t.selected,d=t.selectedClassName,h=t.tabId,f=r(t,[\"children\",\"className\",\"forceRender\",\"id\",\"selected\",\"selectedClassName\",\"tabId\"]);return l.a.createElement(\"div\",i({},f,{className:c()(o,(e={},e[d]=u,e)),role:\"tabpanel\",id:s,\"aria-labelledby\":h}),a||u?n:null)},t}(s.Component);d.defaultProps={className:\"react-tabs__tab-panel\",forceRender:!1,selectedClassName:\"react-tabs__tab-panel--selected\"},d.propTypes={},d.tabsRole=\"TabPanel\"},function(e,t,n){\"use strict\";function i(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i=0||(r[n]=e[n]);return r}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,\"a\",function(){return c});var o=n(27),a=(n.n(o),n(2)),s=n.n(a),l=(n(212),n(567)),u=n(211),c=function(e){function t(n){var i;return i=e.call(this,n)||this,i.handleSelected=function(e,n,r){var o=i.props.onSelect;if(\"function\"!=typeof o||!1!==o(e,n,r)){var a={focus:\"keydown\"===r.type};t.inUncontrolledMode(i.props)&&(a.selectedIndex=e),i.setState(a)}},i.state=t.copyPropsToState(i.props,{},n.defaultFocus),i}r(t,e);var o=t.prototype;return o.componentWillReceiveProps=function(e){this.setState(function(n){return t.copyPropsToState(e,n)})},t.inUncontrolledMode=function(e){return null===e.selectedIndex},t.copyPropsToState=function(e,i,r){void 0===r&&(r=!1);var o={focus:r};if(t.inUncontrolledMode(e)){var a=n.i(u.a)(e.children)-1,s=null;s=null!=i.selectedIndex?Math.min(i.selectedIndex,a):e.defaultIndex||0,o.selectedIndex=s}return o},o.render=function(){var e=this.props,t=e.children,n=(e.defaultIndex,e.defaultFocus,i(e,[\"children\",\"defaultIndex\",\"defaultFocus\"])),r=this.state,o=r.focus,a=r.selectedIndex;return n.focus=o,n.onSelect=this.handleSelected,null!=a&&(n.selectedIndex=a),s.a.createElement(l.a,n,t)},t}(a.Component);c.defaultProps={defaultFocus:!1,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null},c.propTypes={},c.tabsRole=\"Tabs\"},function(e,t,n){\"use strict\";function i(){return i=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e){return\"getAttribute\"in e&&\"tab\"===e.getAttribute(\"role\")}function s(e){return\"true\"===e.getAttribute(\"aria-disabled\")}n.d(t,\"a\",function(){return y});var l,u=n(27),c=(n.n(u),n(2)),d=n.n(c),h=n(13),f=n.n(h),p=n(213),m=(n(212),n(211)),g=n(136),v=n(97);try{l=!(\"undefined\"==typeof window||!window.document||!window.document.activeElement)}catch(e){l=!1}var y=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;r=this.getTabsCount())){var n=this.props;(0,n.onSelect)(e,n.selectedIndex,t)}},u.getNextTab=function(e){for(var t=this.getTabsCount(),n=e+1;ne;)if(!s(this.getTab(t)))return t;return e},u.getFirstTab=function(){for(var e=this.getTabsCount(),t=0;t0||a){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:l,show:!0},function(){t.updatePosition(),n&&o&&o()})}};clearTimeout(this.delayShowLoop),i?this.delayShowLoop=setTimeout(u,s):u()}}},{key:\"listenForTooltipExit\",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener(\"mouseleave\",this.hideTooltip)}},{key:\"removeListenerForTooltipExit\",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener(\"mouseleave\",this.hideTooltip)}},{key:\"hideTooltip\",value:function(e,t){var n=this,i=this.state,r=i.delayHide,o=i.disable,a=this.props.afterHide,s=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(s)&&!o){if(t){if(!this.getTargetArray(this.props.id).some(function(t){return t===e.currentTarget})||!this.state.show)return}var l=function(){var e=n.state.show;if(n.mouseOnToolTip())return void n.listenForTooltipExit();n.removeListenerForTooltipExit(),n.setState({show:!1},function(){n.removeScrollListener(),e&&a&&a()})};this.clearTimer(),r?this.delayHideLoop=setTimeout(l,parseInt(r,10)):l()}}},{key:\"addScrollListener\",value:function(e){var t=this.isCapture(e);window.addEventListener(\"scroll\",this.hideTooltip,t)}},{key:\"removeScrollListener\",value:function(){window.removeEventListener(\"scroll\",this.hideTooltip)}},{key:\"updatePosition\",value:function(){var e=this,t=this.state,n=t.currentEvent,i=t.currentTarget,r=t.place,o=t.desiredPlace,a=t.effect,s=t.offset,l=v.default.findDOMNode(this),u=(0,D.default)(n,i,l,r,o,a,s);if(u.isNewState)return this.setState(u.newState,function(){e.updatePosition()});l.style.left=u.position.left+\"px\",l.style.top=u.position.top+\"px\"}},{key:\"setStyleHeader\",value:function(){var e=document.getElementsByTagName(\"head\")[0];if(!e.querySelector('style[id=\"react-tooltip\"]')){var t=document.createElement(\"style\");t.id=\"react-tooltip\",t.innerHTML=W.default,void 0!==n.nc&&n.nc&&t.setAttribute(\"nonce\",n.nc),e.insertBefore(t,e.firstChild)}}},{key:\"clearTimer\",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:\"render\",value:function(){var e=this,n=this.state,i=n.extraClass,r=n.html,o=n.ariaProps,a=n.disable,s=this.getTooltipContent(),l=this.isEmptyTip(s),u=(0,b.default)(\"__react_component_tooltip\",{show:this.state.show&&!a&&!l},{border:this.state.border},{\"place-top\":\"top\"===this.state.place},{\"place-bottom\":\"bottom\"===this.state.place},{\"place-left\":\"left\"===this.state.place},{\"place-right\":\"right\"===this.state.place},{\"type-dark\":\"dark\"===this.state.type},{\"type-success\":\"success\"===this.state.type},{\"type-warning\":\"warning\"===this.state.type},{\"type-error\":\"error\"===this.state.type},{\"type-info\":\"info\"===this.state.type},{\"type-light\":\"light\"===this.state.type},{allow_hover:this.props.delayUpdate}),d=this.props.wrapper;return t.supportedWrappers.indexOf(d)<0&&(d=t.defaultProps.wrapper),r?f.default.createElement(d,c({className:u+\" \"+i,id:this.props.id,ref:function(t){return e.tooltipRef=t}},o,{\"data-id\":\"tooltip\",dangerouslySetInnerHTML:{__html:(0,x.default)(s,this.props.sanitizeHtmlOptions)}})):f.default.createElement(d,c({className:u+\" \"+i,id:this.props.id},o,{ref:function(t){return e.tooltipRef=t},\"data-id\":\"tooltip\"}),s)}}]),t}(f.default.Component),l.propTypes={children:m.default.any,place:m.default.string,type:m.default.string,effect:m.default.string,offset:m.default.object,multiline:m.default.bool,border:m.default.bool,insecure:m.default.bool,class:m.default.string,className:m.default.string,id:m.default.string,html:m.default.bool,delayHide:m.default.number,delayUpdate:m.default.number,delayShow:m.default.number,event:m.default.string,eventOff:m.default.string,watchWindow:m.default.bool,isCapture:m.default.bool,globalEventOff:m.default.string,getContent:m.default.any,afterShow:m.default.func,afterHide:m.default.func,disable:m.default.bool,scrollHide:m.default.bool,resizeHide:m.default.bool,wrapper:m.default.string,sanitizeHtmlOptions:m.default.any},l.defaultProps={insecure:!0,resizeHide:!0,wrapper:\"div\"},l.supportedWrappers=[\"div\",\"span\"],l.displayName=\"ReactTooltip\",s=u))||s)||s)||s)||s)||s)||s;e.exports=G},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default='.__react_component_tooltip{border-radius:3px;display:inline-block;font-size:13px;left:-999em;opacity:0;padding:8px 21px;position:fixed;pointer-events:none;transition:opacity 0.3s ease-out;top:-999em;visibility:hidden;z-index:999}.__react_component_tooltip.allow_hover{pointer-events:auto}.__react_component_tooltip:before,.__react_component_tooltip:after{content:\"\";width:0;height:0;position:absolute}.__react_component_tooltip.show{opacity:0.9;margin-top:0px;margin-left:0px;visibility:visible}.__react_component_tooltip.type-dark{color:#fff;background-color:#222}.__react_component_tooltip.type-dark.place-top:after{border-top-color:#222;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-dark.place-bottom:after{border-bottom-color:#222;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-dark.place-left:after{border-left-color:#222;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-dark.place-right:after{border-right-color:#222;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-dark.border{border:1px solid #fff}.__react_component_tooltip.type-dark.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-dark.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-dark.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-dark.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-success{color:#fff;background-color:#8DC572}.__react_component_tooltip.type-success.place-top:after{border-top-color:#8DC572;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-success.place-bottom:after{border-bottom-color:#8DC572;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-success.place-left:after{border-left-color:#8DC572;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-success.place-right:after{border-right-color:#8DC572;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-success.border{border:1px solid #fff}.__react_component_tooltip.type-success.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-success.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-success.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-success.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-warning{color:#fff;background-color:#F0AD4E}.__react_component_tooltip.type-warning.place-top:after{border-top-color:#F0AD4E;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-warning.place-bottom:after{border-bottom-color:#F0AD4E;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-warning.place-left:after{border-left-color:#F0AD4E;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-warning.place-right:after{border-right-color:#F0AD4E;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-warning.border{border:1px solid #fff}.__react_component_tooltip.type-warning.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-warning.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-warning.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-warning.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-error{color:#fff;background-color:#BE6464}.__react_component_tooltip.type-error.place-top:after{border-top-color:#BE6464;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-error.place-bottom:after{border-bottom-color:#BE6464;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-error.place-left:after{border-left-color:#BE6464;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-error.place-right:after{border-right-color:#BE6464;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-error.border{border:1px solid #fff}.__react_component_tooltip.type-error.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-error.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-error.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-error.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-info{color:#fff;background-color:#337AB7}.__react_component_tooltip.type-info.place-top:after{border-top-color:#337AB7;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-info.place-bottom:after{border-bottom-color:#337AB7;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-info.place-left:after{border-left-color:#337AB7;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-info.place-right:after{border-right-color:#337AB7;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-info.border{border:1px solid #fff}.__react_component_tooltip.type-info.border.place-top:before{border-top:8px solid #fff}.__react_component_tooltip.type-info.border.place-bottom:before{border-bottom:8px solid #fff}.__react_component_tooltip.type-info.border.place-left:before{border-left:8px solid #fff}.__react_component_tooltip.type-info.border.place-right:before{border-right:8px solid #fff}.__react_component_tooltip.type-light{color:#222;background-color:#fff}.__react_component_tooltip.type-light.place-top:after{border-top-color:#fff;border-top-style:solid;border-top-width:6px}.__react_component_tooltip.type-light.place-bottom:after{border-bottom-color:#fff;border-bottom-style:solid;border-bottom-width:6px}.__react_component_tooltip.type-light.place-left:after{border-left-color:#fff;border-left-style:solid;border-left-width:6px}.__react_component_tooltip.type-light.place-right:after{border-right-color:#fff;border-right-style:solid;border-right-width:6px}.__react_component_tooltip.type-light.border{border:1px solid #222}.__react_component_tooltip.type-light.border.place-top:before{border-top:8px solid #222}.__react_component_tooltip.type-light.border.place-bottom:before{border-bottom:8px solid #222}.__react_component_tooltip.type-light.border.place-left:before{border-left:8px solid #222}.__react_component_tooltip.type-light.border.place-right:before{border-right:8px solid #222}.__react_component_tooltip.place-top{margin-top:-10px}.__react_component_tooltip.place-top:before{border-left:10px solid transparent;border-right:10px solid transparent;bottom:-8px;left:50%;margin-left:-10px}.__react_component_tooltip.place-top:after{border-left:8px solid transparent;border-right:8px solid transparent;bottom:-6px;left:50%;margin-left:-8px}.__react_component_tooltip.place-bottom{margin-top:10px}.__react_component_tooltip.place-bottom:before{border-left:10px solid transparent;border-right:10px solid transparent;top:-8px;left:50%;margin-left:-10px}.__react_component_tooltip.place-bottom:after{border-left:8px solid transparent;border-right:8px solid transparent;top:-6px;left:50%;margin-left:-8px}.__react_component_tooltip.place-left{margin-left:-10px}.__react_component_tooltip.place-left:before{border-top:6px solid transparent;border-bottom:6px solid transparent;right:-8px;top:50%;margin-top:-5px}.__react_component_tooltip.place-left:after{border-top:5px solid transparent;border-bottom:5px solid transparent;right:-6px;top:50%;margin-top:-4px}.__react_component_tooltip.place-right{margin-left:10px}.__react_component_tooltip.place-right:before{border-top:6px solid transparent;border-bottom:6px solid transparent;left:-8px;top:50%;margin-top:-5px}.__react_component_tooltip.place-right:after{border-top:5px solid transparent;border-bottom:5px solid transparent;left:-6px;top:50%;margin-top:-4px}.__react_component_tooltip .multi-line{display:block;padding:2px 0px;text-align:center}'},function(e,t,n){\"use strict\";function i(e){var t={};return Object.keys(e).filter(function(e){return/(^aria-\\w+$|^role$)/.test(e)}).forEach(function(n){t[n]=e[n]}),t}Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseAria=i},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e,t,n,l,u,c,d){for(var h=i(n),f=h.width,p=h.height,m=i(t),g=m.width,v=m.height,y=r(e,t,c),b=y.mouseX,_=y.mouseY,x=o(c,g,v,f,p),w=a(d),M=w.extraOffset_X,S=w.extraOffset_Y,E=window.innerWidth,T=window.innerHeight,k=s(n),O=k.parentTop,C=k.parentLeft,P=function(e){var t=x[e].l;return b+t+M},A=function(e){var t=x[e].r;return b+t+M},R=function(e){var t=x[e].t;return _+t+S},L=function(e){var t=x[e].b;return _+t+S},I=function(e){return P(e)<0},D=function(e){return A(e)>E},N=function(e){return R(e)<0},B=function(e){return L(e)>T},z=function(e){return I(e)||D(e)||N(e)||B(e)},F=function(e){return!z(e)},j=[\"top\",\"bottom\",\"left\",\"right\"],U=[],W=0;W<4;W++){var G=j[W];F(G)&&U.push(G)}var V=!1,H=void 0;return F(u)&&u!==l?(V=!0,H=u):U.length>0&&z(u)&&z(l)&&(V=!0,H=U[0]),V?{isNewState:!0,newState:{place:H}}:{isNewState:!1,position:{left:parseInt(P(l)-C,10),top:parseInt(R(l)-O,10)}}};var i=function(e){var t=e.getBoundingClientRect(),n=t.height,i=t.width;return{height:parseInt(n,10),width:parseInt(i,10)}},r=function(e,t,n){var r=t.getBoundingClientRect(),o=r.top,a=r.left,s=i(t),l=s.width,u=s.height;return\"float\"===n?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:a+l/2,mouseY:o+u/2}},o=function(e,t,n,i,r){var o=void 0,a=void 0,s=void 0,l=void 0;return\"float\"===e?(o={l:-i/2,r:i/2,t:-(r+3+2),b:-3},s={l:-i/2,r:i/2,t:15,b:r+3+2+12},l={l:-(i+3+2),r:-3,t:-r/2,b:r/2},a={l:3,r:i+3+2,t:-r/2,b:r/2}):\"solid\"===e&&(o={l:-i/2,r:i/2,t:-(n/2+r+2),b:-n/2},s={l:-i/2,r:i/2,t:n/2,b:n/2+r+2},l={l:-(i+t/2+2),r:-t/2,t:-r/2,b:r/2},a={l:t/2,r:i+t/2+2,t:-r/2,b:r/2}),{top:o,bottom:s,left:l,right:a}},a=function(e){var t=0,n=0;\"[object String]\"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/\\'/g,'\"')));for(var i in e)\"top\"===i?n-=parseInt(e[i],10):\"bottom\"===i?n+=parseInt(e[i],10):\"left\"===i?t-=parseInt(e[i],10):\"right\"===i&&(t+=parseInt(e[i],10));return{extraOffset_X:t,extraOffset_Y:n}},s=function(e){for(var t=e;t&&\"none\"===window.getComputedStyle(t).getPropertyValue(\"transform\");)t=t.parentElement;return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}}},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e,t,n,i){if(t)return t;if(void 0!==n&&null!==n)return n;if(null===n)return null;var o=//;return i&&\"false\"!==i&&o.test(e)?e.split(o).map(function(e,t){return r.default.createElement(\"span\",{key:t,className:\"multi-line\"},e)}):e};var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map(function(t){return e[t]})}},function(e,t,n){\"use strict\";function i(e,t,n,i,r,o,a,s){if(!e){if(e=void 0,void 0===t)e=Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else{var l=[n,i,r,o,a,s],u=0;e=Error(t.replace(/%s/g,function(){return l[u++]})),e.name=\"Invariant Violation\"}throw e.framesToPop=1,e}}function r(e){for(var t=arguments.length-1,n=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+e,r=0;rj.length&&j.push(e)}function p(e,t,n,i){var o=typeof e;\"undefined\"!==o&&\"boolean\"!==o||(e=null);var a=!1;if(null===e)a=!0;else switch(o){case\"string\":case\"number\":a=!0;break;case\"object\":switch(e.$$typeof){case M:case S:a=!0}}if(a)return n(i,e,\"\"===t?\".\"+g(e,0):t),1;if(a=0,t=\"\"===t?\".\":t+\":\",Array.isArray(e))for(var s=0;s0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return\"\";for(var t=this.head,n=\"\"+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var t=o.allocUnsafe(e>>>0),n=this.head,i=0;n;)r(n.data,t,i),i+=n.data.length,n=n.next;return t},e}(),a&&a.inspect&&a.inspect.custom&&(e.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+\" \"+e})},function(e,t,n){e.exports=n(138).PassThrough},function(e,t,n){e.exports=n(138).Transform},function(e,t,n){e.exports=n(137)},function(e,t,n){e.exports=n(588)},function(e,t,n){\"use strict\";function i(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}Object.defineProperty(t,\"__esModule\",{value:!0});var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.config=Object.assign({},s,n),this.audioContext=t,this.audioInput=null,this.realAudioInput=null,this.inputPoint=null,this.audioRecorder=null,this.rafID=null,this.analyserContext=null,this.recIndex=0,this.stream=null,this.updateAnalysers=this.updateAnalysers.bind(this)}return r(e,[{key:\"init\",value:function(e){var t=this;return new Promise(function(n){t.inputPoint=t.audioContext.createGain(),t.stream=e,t.realAudioInput=t.audioContext.createMediaStreamSource(e),t.audioInput=t.realAudioInput,t.audioInput.connect(t.inputPoint),t.analyserNode=t.audioContext.createAnalyser(),t.analyserNode.fftSize=2048,t.inputPoint.connect(t.analyserNode),t.audioRecorder=new a.default(t.inputPoint);var i=t.audioContext.createGain();i.gain.value=0,t.inputPoint.connect(i),i.connect(t.audioContext.destination),t.updateAnalysers(),n()})}},{key:\"start\",value:function(){var e=this;return new Promise(function(t,n){if(!e.audioRecorder)return void n(\"Not currently recording\");e.audioRecorder.clear(),e.audioRecorder.record(),t(e.stream)})}},{key:\"stop\",value:function(){var e=this;return new Promise(function(t){e.audioRecorder.stop(),e.audioRecorder.getBuffer(function(n){e.audioRecorder.exportWAV(function(e){return t({buffer:n,blob:e})})})})}},{key:\"updateAnalysers\",value:function(){if(this.config.onAnalysed){requestAnimationFrame(this.updateAnalysers);var e=new Uint8Array(this.analyserNode.frequencyBinCount);this.analyserNode.getByteFrequencyData(e);for(var t=new Array(255),n=0,i=void 0,r=0;r<255;r+=1)i=Math.floor(e[r])-Math.floor(e[r])%5,0!==i&&(n=r),t[r]=i;this.config.onAnalysed({data:t,lineTo:n})}}},{key:\"setOnAnalysed\",value:function(e){this.config.onAnalysed=e}}]),e}();l.download=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"audio\";a.default.forceDownload(e,t+\".wav\")},t.default=l},function(e,t,n){\"use strict\";function i(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}Object.defineProperty(t,\"__esModule\",{value:!0});var r=function(){function e(e,t){for(var n=0;n0;)t[i]=arguments[i+1];return t.reduce(function(t,i){return t+n(e[\"border-\"+i+\"-width\"])},0)}function r(e){for(var t=[\"top\",\"right\",\"bottom\",\"left\"],i={},r=0,o=t;r0},b.prototype.connect_=function(){h&&!this.connected_&&(document.addEventListener(\"transitionend\",this.onTransitionEnd_),window.addEventListener(\"resize\",this.refresh),y?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener(\"DOMSubtreeModified\",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},b.prototype.disconnect_=function(){h&&this.connected_&&(document.removeEventListener(\"transitionend\",this.onTransitionEnd_),window.removeEventListener(\"resize\",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener(\"DOMSubtreeModified\",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},b.prototype.onTransitionEnd_=function(e){var t=e.propertyName;void 0===t&&(t=\"\"),v.some(function(e){return!!~t.indexOf(e)})&&this.refresh()},b.getInstance=function(){return this.instance_||(this.instance_=new b),this.instance_},b.instance_=null;var _=function(e,t){for(var n=0,i=Object.keys(t);n0};var k=\"undefined\"!=typeof WeakMap?new WeakMap:new d,O=function(e){if(!(this instanceof O))throw new TypeError(\"Cannot call a class as a function.\");if(!arguments.length)throw new TypeError(\"1 argument required, but only 0 present.\");var t=b.getInstance(),n=new T(e,t,this);k.set(this,n)};[\"observe\",\"unobserve\",\"disconnect\"].forEach(function(e){O.prototype[e]=function(){return(t=k.get(this))[e].apply(t,arguments);var t}});var C=function(){return void 0!==f.ResizeObserver?f.ResizeObserver:O}();t.default=C}.call(t,n(28))},function(e,t,n){function i(e,t){e&&Object.keys(e).forEach(function(n){t(e[n],n)})}function r(e,t){return{}.hasOwnProperty.call(e,t)}function o(e,t,n){function c(e,t){var n=this;this.tag=e,this.attribs=t||{},this.tagPosition=f.length,this.text=\"\",this.updateParentNodeText=function(){if(x.length){x[x.length-1].text+=n.text}}}function d(e,n){n=n.replace(/[\\x00-\\x20]+/g,\"\"),n=n.replace(/<\\!\\-\\-.*?\\-\\-\\>/g,\"\");var i=n.match(/^([a-zA-Z]+)\\:/);if(!i)return!1;var o=i[1].toLowerCase();return r(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(o):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(o)}function h(e,t){return t?(e=e.split(/\\s+/),e.filter(function(e){return-1!==t.indexOf(e)}).join(\" \")):e}var f=\"\";t?(t=s(o.defaults,t),t.parser?t.parser=s(u,t.parser):t.parser=u):(t=o.defaults,t.parser=u);var p,m,g=t.nonTextTags||[\"script\",\"style\",\"textarea\"];t.allowedAttributes&&(p={},m={},i(t.allowedAttributes,function(e,t){p[t]=[];var n=[];e.forEach(function(e){e.indexOf(\"*\")>=0?n.push(l(e).replace(/\\\\\\*/g,\".*\")):p[t].push(e)}),m[t]=new RegExp(\"^(\"+n.join(\"|\")+\")$\")}));var v={};i(t.allowedClasses,function(e,t){p&&(r(p,t)||(p[t]=[]),p[t].push(\"class\")),v[t]=e});var y,b={};i(t.transformTags,function(e,t){var n;\"function\"==typeof e?n=e:\"string\"==typeof e&&(n=o.simpleTransform(e)),\"*\"===t?y=n:b[t]=n});var _=0,x=[],w={},M={},S=!1,E=0,T=new a.Parser({onopentag:function(e,n){if(S)return void E++;var o=new c(e,n);x.push(o);var a,s=!1,l=!!o.text;r(b,e)&&(a=b[e](e,n),o.attribs=n=a.attribs,void 0!==a.text&&(o.innerText=a.text),e!==a.tagName&&(o.name=e=a.tagName,M[_]=a.tagName)),y&&(a=y(e,n),o.attribs=n=a.attribs,e!==a.tagName&&(o.name=e=a.tagName,M[_]=a.tagName)),t.allowedTags&&-1===t.allowedTags.indexOf(e)&&(s=!0,-1!==g.indexOf(e)&&(S=!0,E=1),w[_]=!0),_++,s||(f+=\"<\"+e,(!p||r(p,e)||p[\"*\"])&&i(n,function(t,n){if(!p||r(p,e)&&-1!==p[e].indexOf(n)||p[\"*\"]&&-1!==p[\"*\"].indexOf(n)||r(m,e)&&m[e].test(n)||m[\"*\"]&&m[\"*\"].test(n)){if((\"href\"===n||\"src\"===n)&&d(e,t))return void delete o.attribs[n];if(\"class\"===n&&(t=h(t,v[e]),!t.length))return void delete o.attribs[n];f+=\" \"+n,t.length&&(f+='=\"'+t+'\"')}else delete o.attribs[n]}),-1!==t.selfClosing.indexOf(e)?f+=\" />\":(f+=\">\",!o.innerText||l||t.textFilter||(f+=o.innerText)))},ontext:function(e){if(!S){var n,i=x[x.length-1];if(i&&(n=i.tag,e=void 0!==i.innerText?i.innerText:e),\"script\"===n||\"style\"===n?f+=e:t.textFilter?f+=t.textFilter(e):f+=e,x.length){x[x.length-1].text+=e}}},onclosetag:function(e){if(S){if(--E)return;S=!1}var n=x.pop();if(n){if(S=!1,_--,w[_])return delete w[_],void n.updateParentNodeText();if(M[_]&&(e=M[_],delete M[_]),t.exclusiveFilter&&t.exclusiveFilter(n))return void(f=f.substr(0,n.tagPosition));n.updateParentNodeText(),-1===t.selfClosing.indexOf(e)&&(f+=\"\")}}},t.parser);return T.write(e),T.end(),f}var a=n(72),s=n(610),l=n(590);e.exports=o;var u={decodeEntities:!0};o.defaults={allowedTags:[\"h3\",\"h4\",\"h5\",\"h6\",\"blockquote\",\"p\",\"a\",\"ul\",\"ol\",\"nl\",\"li\",\"b\",\"i\",\"strong\",\"em\",\"strike\",\"code\",\"hr\",\"br\",\"div\",\"table\",\"thead\",\"caption\",\"tbody\",\"tr\",\"th\",\"td\",\"pre\"],allowedAttributes:{a:[\"href\",\"name\",\"target\"],img:[\"src\"]},selfClosing:[\"img\",\"br\",\"hr\",\"area\",\"base\",\"basefont\",\"input\",\"link\",\"meta\"],allowedSchemes:[\"http\",\"https\",\"ftp\",\"mailto\"],allowedSchemesByTag:{}},o.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(i,r){var o;if(n)for(o in t)r[o]=t[o];else r=t;return{tagName:e,attribs:r}}}},function(e,t,n){\"use strict\";function i(){if(!c){var e=u.timesOutAt;d?x():d=!0,_(o,e)}}function r(){var e=u,t=u.next;if(u===t)u=null;else{var n=u.previous;u=n.next=t,t.previous=n}e.next=e.previous=null,(e=e.callback)(f)}function o(e){c=!0,f.didTimeout=e;try{if(e)for(;null!==u;){var n=t.unstable_now();if(!(u.timesOutAt<=n))break;do{r()}while(null!==u&&u.timesOutAt<=n)}else if(null!==u)do{r()}while(null!==u&&0=P-n){if(!(-1!==k&&k<=n))return void(O||(O=!0,a(I)));e=!0}if(k=-1,n=E,E=null,null!==n){C=!0;try{n(e)}finally{C=!1}}}},!1);var I=function(e){O=!1;var t=e-P+R;tt&&(t=8),R=tn){r=o;break}o=o.next}while(o!==u);null===r?r=u:r===u&&(u=e,i(u)),n=r.previous,n.next=r.previous=e,e.next=r,e.previous=n}return e},t.unstable_cancelScheduledWork=function(e){var t=e.next;if(null!==t){if(t===e)u=null;else{e===u&&(u=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}}},function(e,t,n){\"use strict\";e.exports=n(593)},function(e,t,n){(function(e,t){!function(e,n){\"use strict\";function i(e){\"function\"!=typeof e&&(e=new Function(\"\"+e));for(var t=new Array(arguments.length-1),n=0;na+1e3&&(l.update(1e3*s/(e-a),100),a=e,s=0,c)){var t=performance.memory;c.update(t.usedJSHeapSize/1048576,t.jsHeapSizeLimit/1048576)}return e},update:function(){o=this.end()},domElement:r,setMode:n}};return e.Panel=function(e,t,n){var i=1/0,r=0,o=Math.round,a=o(window.devicePixelRatio||1),s=80*a,l=48*a,u=3*a,c=2*a,d=3*a,h=15*a,f=74*a,p=30*a,m=document.createElement(\"canvas\");m.width=s,m.height=l,m.style.cssText=\"width:80px;height:48px\";var g=m.getContext(\"2d\");return g.font=\"bold \"+9*a+\"px Helvetica,Arial,sans-serif\",g.textBaseline=\"top\",g.fillStyle=n,g.fillRect(0,0,s,l),g.fillStyle=t,g.fillText(e,u,c),g.fillRect(d,h,f,p),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(d,h,f,p),{dom:m,update:function(l,v){i=Math.min(i,l),r=Math.max(r,l),g.fillStyle=n,g.globalAlpha=1,g.fillRect(0,0,s,h),g.fillStyle=t,g.fillText(o(l)+\" \"+e+\" (\"+o(i)+\"-\"+o(r)+\")\",u,c),g.drawImage(m,d+a,h,f-a,p,d,h,f-a,p),g.fillRect(d+f-a,h,a,p),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(d+f-a,h,a,o((1-l/v)*p))}}},e})},function(e,t,n){function i(){r.call(this)}e.exports=i;var r=n(86).EventEmitter;n(26)(i,r),i.Readable=n(138),i.Writable=n(586),i.Duplex=n(581),i.Transform=n(585),i.PassThrough=n(584),i.Stream=i,i.prototype.pipe=function(e,t){function n(t){e.writable&&!1===e.write(t)&&u.pause&&u.pause()}function i(){u.readable&&u.resume&&u.resume()}function o(){c||(c=!0,e.end())}function a(){c||(c=!0,\"function\"==typeof e.destroy&&e.destroy())}function s(e){if(l(),0===r.listenerCount(this,\"error\"))throw e}function l(){u.removeListener(\"data\",n),e.removeListener(\"drain\",i),u.removeListener(\"end\",o),u.removeListener(\"close\",a),u.removeListener(\"error\",s),e.removeListener(\"error\",s),u.removeListener(\"end\",l),u.removeListener(\"close\",l),e.removeListener(\"close\",l)}var u=this;u.on(\"data\",n),e.on(\"drain\",i),e._isStdio||t&&!1===t.end||(u.on(\"end\",o),u.on(\"close\",a));var c=!1;return u.on(\"error\",s),e.on(\"error\",s),u.on(\"end\",l),u.on(\"close\",l),e.on(\"close\",l),e.emit(\"pipe\",u),e}},function(e,t){e.exports=function(e){var t=\"undefined\"!=typeof window&&window.location;if(!t)throw new Error(\"fixUrls requires window.location\");if(!e||\"string\"!=typeof e)return e;var n=t.protocol+\"//\"+t.host,i=n+t.pathname.replace(/\\/[^\\/]*$/,\"/\");return e.replace(/url\\s*\\(((?:[^)(]|\\((?:[^)(]+|\\([^)(]*\\))*\\))*)\\)/gi,function(e,t){var r=t.trim().replace(/^\"(.*)\"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\\/\\/|https:\\/\\/|file:\\/\\/\\/)/i.test(r))return e;var o;return o=0===r.indexOf(\"//\")?r:0===r.indexOf(\"/\")?n+r:i+r.replace(/^\\.\\//,\"\"),\"url(\"+JSON.stringify(o)+\")\"})}},function(e,t,n){var i=n(26),r=n(489);e.exports=function(e){function t(n,i){if(!(this instanceof t))return new t(n,i);e.BufferGeometry.call(this),Array.isArray(n)?i=i||{}:\"object\"==typeof n&&(i=n,n=[]),i=i||{},this.addAttribute(\"position\",new e.BufferAttribute(void 0,3)),this.addAttribute(\"lineNormal\",new e.BufferAttribute(void 0,2)),this.addAttribute(\"lineMiter\",new e.BufferAttribute(void 0,1)),i.distances&&this.addAttribute(\"lineDistance\",new e.BufferAttribute(void 0,1)),\"function\"==typeof this.setIndex?this.setIndex(new e.BufferAttribute(void 0,1)):this.addAttribute(\"index\",new e.BufferAttribute(void 0,1)),this.update(n,i.closed)}return i(t,e.BufferGeometry),t.prototype.update=function(e,t){e=e||[];var n=r(e,t);t&&(e=e.slice(),e.push(e[0]),n.push(n[0]));var i=this.getAttribute(\"position\"),o=this.getAttribute(\"lineNormal\"),a=this.getAttribute(\"lineMiter\"),s=this.getAttribute(\"lineDistance\"),l=\"function\"==typeof this.getIndex?this.getIndex():this.getAttribute(\"index\"),u=Math.max(0,6*(e.length-1));if(!i.array||e.length!==i.array.length/3/2){var c=2*e.length;i.array=new Float32Array(3*c),o.array=new Float32Array(2*c),a.array=new Float32Array(c),l.array=new Uint16Array(u),s&&(s.array=new Float32Array(c))}void 0!==i.count&&(i.count=c),i.needsUpdate=!0,void 0!==o.count&&(o.count=c),o.needsUpdate=!0,void 0!==a.count&&(a.count=c),a.needsUpdate=!0,void 0!==l.count&&(l.count=u),l.needsUpdate=!0,s&&(void 0!==s.count&&(s.count=c),s.needsUpdate=!0);var d=0,h=0,f=0,p=l.array;e.forEach(function(e,t,n){var r=d;if(p[h++]=r+0,p[h++]=r+1,p[h++]=r+2,p[h++]=r+2,p[h++]=r+1,p[h++]=r+3,i.setXYZ(d++,e[0],e[1],0),i.setXYZ(d++,e[0],e[1],0),s){var o=t/(n.length-1);s.setX(f++,o),s.setX(f++,o)}});var m=0,g=0;n.forEach(function(e){var t=e[0],n=e[1];o.setXY(m++,t[0],t[1]),o.setXY(m++,t[0],t[1]),a.setX(g++,-n),a.setX(g++,n)})},t}},function(e,t,n){var i=n(126);e.exports=function(e){return function(t){t=t||{};var n=\"number\"==typeof t.thickness?t.thickness:.1,r=\"number\"==typeof t.opacity?t.opacity:1,o=null!==t.diffuse?t.diffuse:16777215;delete t.thickness,delete t.opacity,delete t.diffuse,delete t.precision;var a=i({uniforms:{thickness:{type:\"f\",value:n},opacity:{type:\"f\",value:r},diffuse:{type:\"c\",value:new e.Color(o)}},vertexShader:[\"uniform float thickness;\",\"attribute float lineMiter;\",\"attribute vec2 lineNormal;\",\"void main() {\",\"vec3 pointPos = position.xyz + vec3(lineNormal * thickness / 2.0 * lineMiter, 0.0);\",\"gl_Position = projectionMatrix * modelViewMatrix * vec4(pointPos, 1.0);\",\"}\"].join(\"\\n\"),fragmentShader:[\"uniform vec3 diffuse;\",\"uniform float opacity;\",\"void main() {\",\"gl_FragColor = vec4(diffuse, opacity);\",\"}\"].join(\"\\n\")},t);return(0|(parseInt(e.REVISION,10)||0))<72&&(a.attributes={lineMiter:{type:\"f\",value:0},lineNormal:{type:\"v2\",value:new e.Vector2}}),a}}},function(e,t,n){(function(e){function i(e,t){this._id=e,this._clearFn=t}var r=void 0!==e&&e||\"undefined\"!=typeof self&&self||window,o=Function.prototype.apply;t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(595),t.setImmediate=\"undefined\"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate=\"undefined\"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,n(28))},function(e,t,n){(function(t){function n(e,t){function n(){if(!r){if(i(\"throwDeprecation\"))throw new Error(t);i(\"traceDeprecation\")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}if(i(\"noDeprecation\"))return e;var r=!1;return n}function i(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&\"true\"===String(n).toLowerCase()}e.exports=n}).call(t,n(28))},function(e,t,n){\"use strict\";function i(e){return!0===e||!1===e}e.exports=i},function(e,t,n){\"use strict\";function i(e){return\"function\"==typeof e}e.exports=i},function(e,t,n){\"use strict\";function i(e){var t,n;if(!r(e))return!1;if(!(t=e.length))return!1;for(var i=0;i=this.text.length)return;e=this.text[this.place++]}switch(this.state){case o:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},i.prototype.afterquote=function(e){if('\"'===e)return this.word+='\"',void(this.state=4);if(u.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error(\"havn't handled \\\"\"+e+'\" in afterquote yet, index '+this.place)},i.prototype.afterItem=function(e){return\",\"===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=o)):\"]\"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=o,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},i.prototype.number=function(e){if(c.test(e))return void(this.word+=e);if(u.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error(\"havn't handled \\\"\"+e+'\" in number yet, index '+this.place)},i.prototype.quoted=function(e){if('\"'===e)return void(this.state=5);this.word+=e},i.prototype.keyword=function(e){if(l.test(e))return void(this.word+=e);if(\"[\"===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=o)}if(u.test(e))return void this.afterItem(e);throw new Error(\"havn't handled \\\"\"+e+'\" in keyword yet, index '+this.place)},i.prototype.neutral=function(e){if(s.test(e))return this.word=e,void(this.state=2);if('\"'===e)return this.word=\"\",void(this.state=4);if(c.test(e))return this.word=e,void(this.state=3);if(u.test(e))return void this.afterItem(e);throw new Error(\"havn't handled \\\"\"+e+'\" in neutral yet, index '+this.place)},i.prototype.output=function(){for(;this.place0?s(r()):ee.y<0&&l(r()),Q.copy($),I.update()}function p(e){Z.set(e.clientX,e.clientY),J.subVectors(Z,K),ie(J.x,J.y),K.copy(Z),I.update()}function m(e){}function g(e){e.deltaY<0?l(r()):e.deltaY>0&&s(r()),I.update()}function v(e){switch(e.keyCode){case I.keys.UP:ie(0,I.keyPanSpeed),I.update();break;case I.keys.BOTTOM:ie(0,-I.keyPanSpeed),I.update();break;case I.keys.LEFT:ie(I.keyPanSpeed,0),I.update();break;case I.keys.RIGHT:ie(-I.keyPanSpeed,0),I.update()}}function y(e){q.set(e.touches[0].pageX,e.touches[0].pageY)}function b(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);Q.set(0,i)}function _(e){K.set(e.touches[0].pageX,e.touches[0].pageY)}function x(e){Y.set(e.touches[0].pageX,e.touches[0].pageY),X.subVectors(Y,q);var t=I.domElement===document?I.domElement.body:I.domElement;o(2*Math.PI*X.x/t.clientWidth*I.rotateSpeed),a(2*Math.PI*X.y/t.clientHeight*I.rotateSpeed),q.copy(Y),I.update()}function w(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);$.set(0,i),ee.subVectors($,Q),ee.y>0?l(r()):ee.y<0&&s(r()),Q.copy($),I.update()}function M(e){Z.set(e.touches[0].pageX,e.touches[0].pageY),J.subVectors(Z,K),ie(J.x,J.y),K.copy(Z),I.update()}function S(e){}function E(e){if(!1!==I.enabled){if(e.preventDefault(),e.button===I.mouseButtons.ORBIT){if(!1===I.enableRotate)return;u(e),F=z.ROTATE}else if(e.button===I.mouseButtons.ZOOM){if(!1===I.enableZoom)return;c(e),F=z.DOLLY}else if(e.button===I.mouseButtons.PAN){if(!1===I.enablePan)return;d(e),F=z.PAN}F!==z.NONE&&(document.addEventListener(\"mousemove\",T,!1),document.addEventListener(\"mouseup\",k,!1),I.dispatchEvent(N))}}function T(e){if(!1!==I.enabled)if(e.preventDefault(),F===z.ROTATE){if(!1===I.enableRotate)return;h(e)}else if(F===z.DOLLY){if(!1===I.enableZoom)return;f(e)}else if(F===z.PAN){if(!1===I.enablePan)return;p(e)}}function k(e){!1!==I.enabled&&(m(e),document.removeEventListener(\"mousemove\",T,!1),document.removeEventListener(\"mouseup\",k,!1),I.dispatchEvent(B),F=z.NONE)}function O(e){!1===I.enabled||!1===I.enableZoom||F!==z.NONE&&F!==z.ROTATE||(e.preventDefault(),e.stopPropagation(),g(e),I.dispatchEvent(N),I.dispatchEvent(B))}function C(e){!1!==I.enabled&&!1!==I.enableKeys&&!1!==I.enablePan&&v(e)}function P(e){if(!1!==I.enabled){switch(e.touches.length){case 1:if(!1===I.enableRotate)return;y(e),F=z.TOUCH_ROTATE;break;case 2:if(!1===I.enableZoom)return;b(e),F=z.TOUCH_DOLLY;break;case 3:if(!1===I.enablePan)return;_(e),F=z.TOUCH_PAN;break;default:F=z.NONE}F!==z.NONE&&I.dispatchEvent(N)}}function A(e){if(!1!==I.enabled)switch(e.preventDefault(),e.stopPropagation(),e.touches.length){case 1:if(!1===I.enableRotate)return;if(F!==z.TOUCH_ROTATE)return;x(e);break;case 2:if(!1===I.enableZoom)return;if(F!==z.TOUCH_DOLLY)return;w(e);break;case 3:if(!1===I.enablePan)return;if(F!==z.TOUCH_PAN)return;M(e);break;default:F=z.NONE}}function R(e){!1!==I.enabled&&(S(e),I.dispatchEvent(B),F=z.NONE)}function L(e){e.preventDefault()}this.object=e,this.domElement=void 0!==t?t:document,this.enabled=!0,this.target=new i.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.25,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={ORBIT:i.MOUSE.LEFT,ZOOM:i.MOUSE.MIDDLE,PAN:i.MOUSE.RIGHT},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return U.phi},this.getAzimuthalAngle=function(){return U.theta},this.reset=function(){I.target.copy(I.target0),I.object.position.copy(I.position0),I.object.zoom=I.zoom0,I.object.updateProjectionMatrix(),I.dispatchEvent(D),I.update(),F=z.NONE},this.update=function(){var t=new i.Vector3,r=(new i.Quaternion).setFromUnitVectors(e.up,new i.Vector3(0,1,0)),a=r.clone().inverse(),s=new i.Vector3,l=new i.Quaternion;return function(){var e=I.object.position;return t.copy(e).sub(I.target),t.applyQuaternion(r),U.setFromVector3(t),I.autoRotate&&F===z.NONE&&o(n()),U.theta+=W.theta,U.phi+=W.phi,U.theta=Math.max(I.minAzimuthAngle,Math.min(I.maxAzimuthAngle,U.theta)),U.phi=Math.max(I.minPolarAngle,Math.min(I.maxPolarAngle,U.phi)),U.makeSafe(),U.radius*=G,U.radius=Math.max(I.minDistance,Math.min(I.maxDistance,U.radius)),I.target.add(V),t.setFromSpherical(U),t.applyQuaternion(a),e.copy(I.target).add(t),I.object.lookAt(I.target),!0===I.enableDamping?(W.theta*=1-I.dampingFactor,W.phi*=1-I.dampingFactor):W.set(0,0,0),G=1,V.set(0,0,0),!!(H||s.distanceToSquared(I.object.position)>j||8*(1-l.dot(I.object.quaternion))>j)&&(I.dispatchEvent(D),s.copy(I.object.position),l.copy(I.object.quaternion),H=!1,!0)}}(),this.dispose=function(){I.domElement.removeEventListener(\"contextmenu\",L,!1),I.domElement.removeEventListener(\"mousedown\",E,!1),I.domElement.removeEventListener(\"wheel\",O,!1),I.domElement.removeEventListener(\"touchstart\",P,!1),I.domElement.removeEventListener(\"touchend\",R,!1),I.domElement.removeEventListener(\"touchmove\",A,!1),document.removeEventListener(\"mousemove\",T,!1),document.removeEventListener(\"mouseup\",k,!1),window.removeEventListener(\"keydown\",C,!1)};var I=this,D={type:\"change\"},N={type:\"start\"},B={type:\"end\"},z={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},F=z.NONE,j=1e-6,U=new i.Spherical,W=new i.Spherical,G=1,V=new i.Vector3,H=!1,q=new i.Vector2,Y=new i.Vector2,X=new i.Vector2,K=new i.Vector2,Z=new i.Vector2,J=new i.Vector2,Q=new i.Vector2,$=new i.Vector2,ee=new i.Vector2,te=function(){var e=new i.Vector3;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),V.add(e)}}(),ne=function(){var e=new i.Vector3;return function(t,n){e.setFromMatrixColumn(n,1),e.multiplyScalar(t),V.add(e)}}(),ie=function(){var e=new i.Vector3;return function(t,n){var r=I.domElement===document?I.domElement.body:I.domElement;if(I.object instanceof i.PerspectiveCamera){var o=I.object.position;e.copy(o).sub(I.target);var a=e.length();a*=Math.tan(I.object.fov/2*Math.PI/180),te(2*t*a/r.clientHeight,I.object.matrix),ne(2*n*a/r.clientHeight,I.object.matrix)}else I.object instanceof i.OrthographicCamera?(te(t*(I.object.right-I.object.left)/I.object.zoom/r.clientWidth,I.object.matrix),ne(n*(I.object.top-I.object.bottom)/I.object.zoom/r.clientHeight,I.object.matrix)):(console.warn(\"WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.\"),I.enablePan=!1)}}();I.domElement.addEventListener(\"contextmenu\",L,!1),I.domElement.addEventListener(\"mousedown\",E,!1),I.domElement.addEventListener(\"wheel\",O,!1),I.domElement.addEventListener(\"touchstart\",P,!1),I.domElement.addEventListener(\"touchend\",R,!1),I.domElement.addEventListener(\"touchmove\",A,!1),window.addEventListener(\"keydown\",C,!1),this.update()},i.OrbitControls.prototype=Object.create(i.EventDispatcher.prototype),i.OrbitControls.prototype.constructor=i.OrbitControls,Object.defineProperties(i.OrbitControls.prototype,{center:{get:function(){return console.warn(\"THREE.OrbitControls: .center has been renamed to .target\"),this.target}},noZoom:{get:function(){return console.warn(\"THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.\"),!this.enableZoom},set:function(e){console.warn(\"THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.\"),this.enableZoom=!e}},noRotate:{get:function(){return console.warn(\"THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.\"),!this.enableRotate},set:function(e){console.warn(\"THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.\"),this.enableRotate=!e}},noPan:{get:function(){return console.warn(\"THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.\"),!this.enablePan},set:function(e){console.warn(\"THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.\"),this.enablePan=!e}},noKeys:{get:function(){return console.warn(\"THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.\"),!this.enableKeys},set:function(e){console.warn(\"THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.\"),this.enableKeys=!e}},staticMoving:{get:function(){return console.warn(\"THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.\"),!this.enableDamping},set:function(e){console.warn(\"THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.\"),this.enableDamping=!e}},dynamicDampingFactor:{get:function(){return console.warn(\"THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.\"),this.dampingFactor},set:function(e){console.warn(\"THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.\"),this.dampingFactor=e}}})},function(e,t,n){var i=n(12);i.MTLLoader=function(e){this.manager=void 0!==e?e:i.DefaultLoadingManager},i.MTLLoader.prototype={constructor:i.MTLLoader,load:function(e,t,n,r){var o=this,a=new i.FileLoader(this.manager);a.setPath(this.path),a.load(e,function(e){t(o.parse(e))},n,r)},setPath:function(e){this.path=e},setTexturePath:function(e){this.texturePath=e},setBaseUrl:function(e){console.warn(\"THREE.MTLLoader: .setBaseUrl() is deprecated. Use .setTexturePath( path ) for texture path or .setPath( path ) for general base path instead.\"),this.setTexturePath(e)},setCrossOrigin:function(e){this.crossOrigin=e},setMaterialOptions:function(e){this.materialOptions=e},parse:function(e){for(var t=e.split(\"\\n\"),n={},r=/\\s+/,o={},a=0;a=0?s.substring(0,l):s;u=u.toLowerCase();var c=l>=0?s.substring(l+1):\"\";if(c=c.trim(),\"newmtl\"===u)n={name:c},o[c]=n;else if(n)if(\"ka\"===u||\"kd\"===u||\"ks\"===u){var d=c.split(r,3);n[u]=[parseFloat(d[0]),parseFloat(d[1]),parseFloat(d[2])]}else n[u]=c}}var h=new i.MTLLoader.MaterialCreator(this.texturePath||this.path,this.materialOptions);return h.setCrossOrigin(this.crossOrigin),h.setManager(this.manager),h.setMaterials(o),h}},i.MTLLoader.MaterialCreator=function(e,t){this.baseUrl=e||\"\",this.options=t,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.side=this.options&&this.options.side?this.options.side:i.FrontSide,this.wrap=this.options&&this.options.wrap?this.options.wrap:i.RepeatWrapping},i.MTLLoader.MaterialCreator.prototype={constructor:i.MTLLoader.MaterialCreator,setCrossOrigin:function(e){this.crossOrigin=e},setManager:function(e){this.manager=e},setMaterials:function(e){this.materialsInfo=this.convert(e),this.materials={},this.materialsArray=[],this.nameLookup={}},convert:function(e){if(!this.options)return e;var t={};for(var n in e){var i=e[n],r={};t[n]=r;for(var o in i){var a=!0,s=i[o],l=o.toLowerCase();switch(l){case\"kd\":case\"ka\":case\"ks\":this.options&&this.options.normalizeRGB&&(s=[s[0]/255,s[1]/255,s[2]/255]),this.options&&this.options.ignoreZeroRGBs&&0===s[0]&&0===s[1]&&0===s[2]&&(a=!1)}a&&(r[l]=s)}}return t},preload:function(){for(var e in this.materialsInfo)this.create(e)},getIndex:function(e){return this.nameLookup[e]},getAsArray:function(){var e=0;for(var t in this.materialsInfo)this.materialsArray[e]=this.create(t),this.nameLookup[t]=e,e++;return this.materialsArray},create:function(e){return void 0===this.materials[e]&&this.createMaterial_(e),this.materials[e]},createMaterial_:function(e){function t(e,t){return\"string\"!=typeof t||\"\"===t?\"\":/^https?:\\/\\//i.test(t)?t:e+t}function n(e,n){if(!a[e]){var i=r.getTextureParams(n,a),o=r.loadTexture(t(r.baseUrl,i.url));o.repeat.copy(i.scale),o.offset.copy(i.offset),o.wrapS=r.wrap,o.wrapT=r.wrap,a[e]=o}}var r=this,o=this.materialsInfo[e],a={name:e,side:this.side};for(var s in o){var l=o[s];if(\"\"!==l)switch(s.toLowerCase()){case\"kd\":a.color=(new i.Color).fromArray(l);break;case\"ks\":a.specular=(new i.Color).fromArray(l);break;case\"map_kd\":n(\"map\",l);break;case\"map_ks\":n(\"specularMap\",l);break;case\"map_bump\":case\"bump\":n(\"bumpMap\",l);break;case\"ns\":a.shininess=parseFloat(l);break;case\"d\":l<1&&(a.opacity=l,a.transparent=!0);break;case\"Tr\":l>0&&(a.opacity=1-l,a.transparent=!0)}}return this.materials[e]=new i.MeshPhongMaterial(a),this.materials[e]},getTextureParams:function(e,t){var n,r={scale:new i.Vector2(1,1),offset:new i.Vector2(0,0)},o=e.split(/\\s+/);return n=o.indexOf(\"-bm\"),n>=0&&(t.bumpScale=parseFloat(o[n+1]),o.splice(n,2)),n=o.indexOf(\"-s\"),n>=0&&(r.scale.set(parseFloat(o[n+1]),parseFloat(o[n+2])),o.splice(n,4)),n=o.indexOf(\"-o\"),n>=0&&(r.offset.set(parseFloat(o[n+1]),parseFloat(o[n+2])),o.splice(n,4)),r.url=o.join(\" \").trim(),r},loadTexture:function(e,t,n,r,o){var a,s=i.Loader.Handlers.get(e),l=void 0!==this.manager?this.manager:i.DefaultLoadingManager;return null===s&&(s=new i.TextureLoader(l)),s.setCrossOrigin&&s.setCrossOrigin(this.crossOrigin),a=s.load(e,n,r,o),void 0!==t&&(a.mapping=t),a}}},function(e,t,n){var i=n(12);i.OBJLoader=function(e){this.manager=void 0!==e?e:i.DefaultLoadingManager,this.materials=null,this.regexp={vertex_pattern:/^v\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)/,normal_pattern:/^vn\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)/,uv_pattern:/^vt\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)/,face_vertex:/^f\\s+(-?\\d+)\\s+(-?\\d+)\\s+(-?\\d+)(?:\\s+(-?\\d+))?/,face_vertex_uv:/^f\\s+(-?\\d+)\\/(-?\\d+)\\s+(-?\\d+)\\/(-?\\d+)\\s+(-?\\d+)\\/(-?\\d+)(?:\\s+(-?\\d+)\\/(-?\\d+))?/,face_vertex_uv_normal:/^f\\s+(-?\\d+)\\/(-?\\d+)\\/(-?\\d+)\\s+(-?\\d+)\\/(-?\\d+)\\/(-?\\d+)\\s+(-?\\d+)\\/(-?\\d+)\\/(-?\\d+)(?:\\s+(-?\\d+)\\/(-?\\d+)\\/(-?\\d+))?/,face_vertex_normal:/^f\\s+(-?\\d+)\\/\\/(-?\\d+)\\s+(-?\\d+)\\/\\/(-?\\d+)\\s+(-?\\d+)\\/\\/(-?\\d+)(?:\\s+(-?\\d+)\\/\\/(-?\\d+))?/,object_pattern:/^[og]\\s*(.+)?/,smoothing_pattern:/^s\\s+(\\d+|on|off)/,material_library_pattern:/^mtllib /,material_use_pattern:/^usemtl /}},i.OBJLoader.prototype={constructor:i.OBJLoader,load:function(e,t,n,r){var o=this,a=new i.FileLoader(o.manager);a.setPath(this.path),a.load(e,function(e){t(o.parse(e))},n,r)},setPath:function(e){this.path=e},setMaterials:function(e){this.materials=e},_createParserState:function(){var e={objects:[],object:{},vertices:[],normals:[],uvs:[],materialLibraries:[],startObject:function(e,t){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=e,void(this.object.fromDeclaration=!1!==t);var n=this.object&&\"function\"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&\"function\"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:e||\"\",fromDeclaration:!1!==t,geometry:{vertices:[],normals:[],uvs:[]},materials:[],smooth:!0,startMaterial:function(e,t){var n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);var i={index:this.materials.length,name:e||\"\",mtllib:Array.isArray(t)&&t.length>0?t[t.length-1]:\"\",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(e){var t={index:\"number\"==typeof e?e:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return t.clone=this.clone.bind(t),t}};return this.materials.push(i),i},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){var t=this.currentMaterial();if(t&&-1===t.groupEnd&&(t.groupEnd=this.geometry.vertices.length/3,t.groupCount=t.groupEnd-t.groupStart,t.inherited=!1),e&&this.materials.length>1)for(var n=this.materials.length-1;n>=0;n--)this.materials[n].groupCount<=0&&this.materials.splice(n,1);return e&&0===this.materials.length&&this.materials.push({name:\"\",smooth:this.smooth}),t}},n&&n.name&&\"function\"==typeof n.clone){var i=n.clone(0);i.inherited=!0,this.object.materials.push(i)}this.objects.push(this.object)},finalize:function(){this.object&&\"function\"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseNormalIndex:function(e,t){var n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseUVIndex:function(e,t){var n=parseInt(e,10);return 2*(n>=0?n-1:n+t/2)},addVertex:function(e,t,n){var i=this.vertices,r=this.object.geometry.vertices;r.push(i[e+0]),r.push(i[e+1]),r.push(i[e+2]),r.push(i[t+0]),r.push(i[t+1]),r.push(i[t+2]),r.push(i[n+0]),r.push(i[n+1]),r.push(i[n+2])},addVertexLine:function(e){var t=this.vertices,n=this.object.geometry.vertices;n.push(t[e+0]),n.push(t[e+1]),n.push(t[e+2])},addNormal:function(e,t,n){var i=this.normals,r=this.object.geometry.normals;r.push(i[e+0]),r.push(i[e+1]),r.push(i[e+2]),r.push(i[t+0]),r.push(i[t+1]),r.push(i[t+2]),r.push(i[n+0]),r.push(i[n+1]),r.push(i[n+2])},addUV:function(e,t,n){var i=this.uvs,r=this.object.geometry.uvs;r.push(i[e+0]),r.push(i[e+1]),r.push(i[t+0]),r.push(i[t+1]),r.push(i[n+0]),r.push(i[n+1])},addUVLine:function(e){var t=this.uvs,n=this.object.geometry.uvs;n.push(t[e+0]),n.push(t[e+1])},addFace:function(e,t,n,i,r,o,a,s,l,u,c,d){var h,f=this.vertices.length,p=this.parseVertexIndex(e,f),m=this.parseVertexIndex(t,f),g=this.parseVertexIndex(n,f);if(void 0===i?this.addVertex(p,m,g):(h=this.parseVertexIndex(i,f),this.addVertex(p,m,h),this.addVertex(m,g,h)),void 0!==r){var v=this.uvs.length;p=this.parseUVIndex(r,v),m=this.parseUVIndex(o,v),g=this.parseUVIndex(a,v),void 0===i?this.addUV(p,m,g):(h=this.parseUVIndex(s,v),this.addUV(p,m,h),this.addUV(m,g,h))}if(void 0!==l){var y=this.normals.length;p=this.parseNormalIndex(l,y),m=l===u?p:this.parseNormalIndex(u,y),g=l===c?p:this.parseNormalIndex(c,y),void 0===i?this.addNormal(p,m,g):(h=this.parseNormalIndex(d,y),this.addNormal(p,m,h),this.addNormal(m,g,h))}},addLineGeometry:function(e,t){this.object.geometry.type=\"Line\";for(var n=this.vertices.length,i=this.uvs.length,r=0,o=e.length;r0?E.addAttribute(\"normal\",new i.BufferAttribute(new Float32Array(w.normals),3)):E.computeVertexNormals(),w.uvs.length>0&&E.addAttribute(\"uv\",new i.BufferAttribute(new Float32Array(w.uvs),2));for(var T=[],k=0,O=M.length;k1){for(var k=0,O=M.length;k0?s(r()):ee.y<0&&l(r()),Q.copy($),I.update()}function p(e){Z.set(e.clientX,e.clientY),J.subVectors(Z,K),ie(J.x,J.y),K.copy(Z),I.update()}function m(e){}function g(e){e.deltaY<0?l(r()):e.deltaY>0&&s(r()),I.update()}function v(e){switch(e.keyCode){case I.keys.UP:ie(0,I.keyPanSpeed),I.update();break;case I.keys.BOTTOM:ie(0,-I.keyPanSpeed),I.update();break;case I.keys.LEFT:ie(I.keyPanSpeed,0),I.update();break;case I.keys.RIGHT:ie(-I.keyPanSpeed,0),I.update()}}function y(e){q.set(e.touches[0].pageX,e.touches[0].pageY)}function b(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);Q.set(0,i)}function _(e){K.set(e.touches[0].pageX,e.touches[0].pageY)}function x(e){Y.set(e.touches[0].pageX,e.touches[0].pageY),X.subVectors(Y,q);var t=I.domElement===document?I.domElement.body:I.domElement;o(2*Math.PI*X.x/t.clientWidth*I.rotateSpeed),a(2*Math.PI*X.y/t.clientHeight*I.rotateSpeed),q.copy(Y),I.update()}function w(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);$.set(0,i),ee.subVectors($,Q),ee.y>0?l(r()):ee.y<0&&s(r()),Q.copy($),I.update()}function M(e){Z.set(e.touches[0].pageX,e.touches[0].pageY),J.subVectors(Z,K),ie(J.x,J.y),K.copy(Z),I.update()}function S(e){}function E(e){if(!1!==I.enabled){if(e.preventDefault(),e.button===I.mouseButtons.ORBIT){if(!1===I.enableRotate)return;u(e),F=z.ROTATE}else if(e.button===I.mouseButtons.ZOOM){if(!1===I.enableZoom)return;c(e),F=z.DOLLY}else if(e.button===I.mouseButtons.PAN){if(!1===I.enablePan)return;d(e),F=z.PAN}F!==z.NONE&&(document.addEventListener(\"mousemove\",T,!1),document.addEventListener(\"mouseup\",k,!1),I.dispatchEvent(N))}}function T(e){if(!1!==I.enabled)if(e.preventDefault(),F===z.ROTATE){if(!1===I.enableRotate)return;h(e)}else if(F===z.DOLLY){if(!1===I.enableZoom)return;f(e)}else if(F===z.PAN){if(!1===I.enablePan)return;p(e)}}function k(e){!1!==I.enabled&&(m(e),document.removeEventListener(\"mousemove\",T,!1),document.removeEventListener(\"mouseup\",k,!1),I.dispatchEvent(B),F=z.NONE)}function O(e){!1===I.enabled||!1===I.enableZoom||F!==z.NONE&&F!==z.ROTATE||(e.preventDefault(),e.stopPropagation(),g(e),I.dispatchEvent(N),I.dispatchEvent(B))}function C(e){!1!==I.enabled&&!1!==I.enableKeys&&!1!==I.enablePan&&v(e)}function P(e){if(!1!==I.enabled){switch(e.touches.length){case 1:if(!1===I.enableRotate)return;y(e),F=z.TOUCH_ROTATE;break;case 2:if(!1===I.enableZoom)return;b(e),F=z.TOUCH_DOLLY;break;case 3:if(!1===I.enablePan)return;_(e),F=z.TOUCH_PAN;break;default:F=z.NONE}F!==z.NONE&&I.dispatchEvent(N)}}function A(e){if(!1!==I.enabled)switch(e.preventDefault(),e.stopPropagation(),e.touches.length){case 1:if(!1===I.enableRotate)return;if(F!==z.TOUCH_ROTATE)return;x(e);break;case 2:if(!1===I.enableZoom)return;if(F!==z.TOUCH_DOLLY)return;w(e);break;case 3:if(!1===I.enablePan)return;if(F!==z.TOUCH_PAN)return;M(e);break;default:F=z.NONE}}function R(e){!1!==I.enabled&&(S(e),I.dispatchEvent(B),F=z.NONE)}function L(e){e.preventDefault()}this.object=e,this.domElement=void 0!==t?t:document,this.enabled=!0,this.target=new i.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.25,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={ORBIT:i.MOUSE.LEFT,ZOOM:i.MOUSE.MIDDLE,PAN:i.MOUSE.RIGHT},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return U.phi},this.getAzimuthalAngle=function(){return U.theta},this.reset=function(){I.target.copy(I.target0),I.object.position.copy(I.position0),I.object.zoom=I.zoom0,I.object.updateProjectionMatrix(),I.dispatchEvent(D),I.update(),F=z.NONE},this.update=function(){var t=new i.Vector3,r=(new i.Quaternion).setFromUnitVectors(e.up,new i.Vector3(0,1,0)),a=r.clone().inverse(),s=new i.Vector3,l=new i.Quaternion;return function(){var e=I.object.position;return t.copy(e).sub(I.target),t.applyQuaternion(r),U.setFromVector3(t),I.autoRotate&&F===z.NONE&&o(n()),U.theta+=W.theta,U.phi+=W.phi,U.theta=Math.max(I.minAzimuthAngle,Math.min(I.maxAzimuthAngle,U.theta)),U.phi=Math.max(I.minPolarAngle,Math.min(I.maxPolarAngle,U.phi)),U.makeSafe(),U.radius*=G,U.radius=Math.max(I.minDistance,Math.min(I.maxDistance,U.radius)),I.target.add(V),t.setFromSpherical(U),t.applyQuaternion(a),e.copy(I.target).add(t),I.object.lookAt(I.target),!0===I.enableDamping?(W.theta*=1-I.dampingFactor,W.phi*=1-I.dampingFactor):W.set(0,0,0),G=1,V.set(0,0,0),!!(H||s.distanceToSquared(I.object.position)>j||8*(1-l.dot(I.object.quaternion))>j)&&(I.dispatchEvent(D),s.copy(I.object.position),l.copy(I.object.quaternion),H=!1,!0)}}(),this.dispose=function(){I.domElement.removeEventListener(\"contextmenu\",L,!1),I.domElement.removeEventListener(\"mousedown\",E,!1),I.domElement.removeEventListener(\"wheel\",O,!1),I.domElement.removeEventListener(\"touchstart\",P,!1),I.domElement.removeEventListener(\"touchend\",R,!1),I.domElement.removeEventListener(\"touchmove\",A,!1),document.removeEventListener(\"mousemove\",T,!1),document.removeEventListener(\"mouseup\",k,!1),window.removeEventListener(\"keydown\",C,!1)};var I=this,D={type:\"change\"},N={type:\"start\"},B={type:\"end\"},z={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},F=z.NONE,j=1e-6,U=new i.Spherical,W=new i.Spherical,G=1,V=new i.Vector3,H=!1,q=new i.Vector2,Y=new i.Vector2,X=new i.Vector2,K=new i.Vector2,Z=new i.Vector2,J=new i.Vector2,Q=new i.Vector2,$=new i.Vector2,ee=new i.Vector2,te=function(){var e=new i.Vector3;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),V.add(e)}}(),ne=function(){var e=new i.Vector3;return function(t,n){e.setFromMatrixColumn(n,1),e.multiplyScalar(t),V.add(e)}}(),ie=function(){var e=new i.Vector3;return function(t,n){var r=I.domElement===document?I.domElement.body:I.domElement;if(I.object instanceof i.PerspectiveCamera){var o=I.object.position;e.copy(o).sub(I.target);var a=e.length();a*=Math.tan(I.object.fov/2*Math.PI/180),te(2*t*a/r.clientHeight,I.object.matrix),ne(2*n*a/r.clientHeight,I.object.matrix)}else I.object instanceof i.OrthographicCamera?(te(t*(I.object.right-I.object.left)/I.object.zoom/r.clientWidth,I.object.matrix),ne(n*(I.object.top-I.object.bottom)/I.object.zoom/r.clientHeight,I.object.matrix)):(console.warn(\"WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.\"),I.enablePan=!1)}}();I.domElement.addEventListener(\"contextmenu\",L,!1),I.domElement.addEventListener(\"mousedown\",E,!1),I.domElement.addEventListener(\"wheel\",O,!1),I.domElement.addEventListener(\"touchstart\",P,!1),I.domElement.addEventListener(\"touchend\",R,!1),I.domElement.addEventListener(\"touchmove\",A,!1),window.addEventListener(\"keydown\",C,!1),this.update()},i.OrbitControls.prototype=Object.create(i.EventDispatcher.prototype),i.OrbitControls.prototype.constructor=i.OrbitControls,Object.defineProperties(i.OrbitControls.prototype,{center:{get:function(){return console.warn(\"THREE.OrbitControls: .center has been renamed to .target\"),this.target}},noZoom:{get:function(){return console.warn(\"THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.\"),!this.enableZoom},set:function(e){console.warn(\"THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.\"),this.enableZoom=!e}},noRotate:{get:function(){return console.warn(\"THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.\"),!this.enableRotate},set:function(e){console.warn(\"THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.\"),this.enableRotate=!e}},noPan:{get:function(){return console.warn(\"THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.\"),!this.enablePan},set:function(e){console.warn(\"THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.\"),this.enablePan=!e}},noKeys:{get:function(){return console.warn(\"THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.\"),!this.enableKeys},set:function(e){console.warn(\"THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.\"),this.enableKeys=!e}},staticMoving:{get:function(){return console.warn(\"THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.\"),!this.enableDamping},set:function(e){console.warn(\"THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.\"),this.enableDamping=!e}},dynamicDampingFactor:{get:function(){return console.warn(\"THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.\"),this.dampingFactor},set:function(e){console.warn(\"THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.\"),this.dampingFactor=e}}})},,function(e,t){e.exports={trajectoryGraph:{title:\"Trajectory\",options:{legend:{display:!0},axes:{x:{labelString:\"x (m)\"},y:{labelString:\"y (m)\"}}},properties:{cars:{pose:{color:\"rgba(0, 255, 0, 1)\"}},lines:{real:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"},steerCurve:{color:\"rgba(255, 206, 86, 1)\",borderWidth:1,pointRadius:0,fill:!1,showLine:!0},plan:{color:\"rgba(1, 209, 193, 0.65)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:\"rgba(180, 255, 180, 0.7)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:\"rgba(224, 224, 224, 0.15)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},speedGraph:{title:\"Speed\",options:{legend:{display:!0},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"speed (m/s)\"}}},properties:{lines:{real:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"},plan:{color:\"rgba(1, 209, 193, 0.65)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:\"rgba(180, 255, 180, 0.7)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:\"rgba(224, 224, 224, 0.15)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},curvatureGraph:{title:\"Curvature\",options:{legend:{display:!0},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"Curvature (m-1)\"}}},properties:{lines:{real:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"},plan:{color:\"rgba(1, 209, 193, 0.65)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:\"rgba(180, 255, 180, 0.7)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:\"rgba(224, 224, 224, 0.15)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},accelerationGraph:{title:\"Acceleration\",options:{legend:{display:!0},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"acceleration (m/s^2)\"}}},properties:{lines:{real:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"},plan:{color:\"rgba(1, 209, 193, 0.65)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:\"rgba(180, 255, 180, 0.7)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:\"rgba(224, 224, 224, 0.15)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},stationErrorGraph:{title:\"Station Error\",options:{legend:{display:!1},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"error (m)\"}}},properties:{lines:{error:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"}}}},lateralErrorGraph:{title:\"Lateral Error\",options:{legend:{display:!1},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"error (m)\"}}},properties:{lines:{error:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"}}}},headingErrorGraph:{title:\"Heading Error\",options:{legend:{display:!1},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"error (rad)\"}}},properties:{lines:{error:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"}}}}}},function(e,t){e.exports={options:{legend:{display:!0},axes:{x:{labelString:\"timestampe (sec)\"},y:{labelString:\"latency (ms)\"}}},properties:{lines:{chassis:{color:\"rgba(241, 113, 112, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},localization:{color:\"rgba(254, 208,114, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},prediction:{color:\"rgba(162, 212, 113, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},perception:{color:\"rgba(113, 226, 208, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},planning:{color:\"rgba(113, 208, 255, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},control:{color:\"rgba(179, 164, 238, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}}},function(e,t){e.exports={slGraph:{title:\"QP Path - sl graph\",options:{legend:{display:!1},axes:{x:{min:0,max:200,labelString:\"s - ref_line (m)\"},y:{min:-5,max:5,labelString:\"l (m)\"}}},properties:{lines:{aggregatedBoundaryLow:{color:\"rgba(48, 165, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},aggregatedBoundaryHigh:{color:\"rgba(48, 165, 255, 1)\",borderWidth:2,pointRadius:0,lineTension:0,fill:!1,showLine:!0},pathLine:{color:\"rgba(225, 225, 225, 0.7)\",borderWidth:2,pointRadius:.5,fill:!1,showLine:!1},mapLowerBound:{color:\"rgba(54, 162, 235, 0.4)\",borderWidth:2,pointRadius:0,fill:\"start\",showLine:!0},mapUpperBound:{color:\"rgba(54, 162, 235, 0.4)\",borderWidth:2,pointRadius:0,fill:\"end\",showLine:!0},staticObstacleLowerBound:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:\"start\",showLine:!0},staticObstacleUpperBound:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:\"end\",showLine:!0},dynamicObstacleLowerBound:{color:\"rgba(255, 206, 86, 0.2)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},dynamicObstacleUpperBound:{color:\"rgba(255, 206, 86, 0.2)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}},stGraph:{options:{legend:{display:!1},axes:{x:{min:-2,max:10,labelString:\"t (second)\"},y:{min:-10,max:220,labelString:\"s (m)\"}}},properties:{lines:{curveLine:{color:\"rgba(225, 225, 225, 0.5)\",borderWidth:2,pointRadius:1,fill:!1,showLine:!1},kernelCruise:{color:\"rgba(27, 249, 105, 0.5)\",borderWidth:2,pointRadius:1,fill:!1,showLine:!1},kernelFollow:{color:\"rgba(255, 206, 86, 0.5)\",borderWidth:2,pointRadius:1,fill:!1,showLine:!1}}}},stSpeedGraph:{title:\"QP Speed - sv graph\",options:{legend:{display:!0},axes:{x:{min:-10,max:220,labelString:\"s - qp_path(m)\"},y:{min:-1,max:40,labelString:\"v (m/s)\"}}},properties:{lines:{upperConstraint:{color:\"rgba(54, 162, 235, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},lowerConstraint:{color:\"rgba(54, 162, 235, 1)\",borderWidth:4,pointRadius:0,fill:!1,showLine:!0},planned:{color:\"rgba(225, 225, 225, 0.5)\",borderWidth:4,pointRadius:0,fill:!1,showLine:!0},limit:{color:\"rgba(255, 0, 0, 0.5)\",borderWidth:4,pointRadius:0,fill:!1,showLine:!0}}}},speedGraph:{title:\"Planning Speed\",options:{legend:{display:!0},axes:{x:{min:-2,max:10,labelString:\"t (second)\"},y:{min:-1,max:40,labelString:\"speed (m/s)\"}}},properties:{lines:{finalSpeed:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:1,pointRadius:1,fill:!1,showLine:!1},DpStSpeedOptimizer:{color:\"rgba(27, 249, 105, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplineStSpeedOptimizer:{color:\"rgba(54, 162, 235, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"}}}},accelerationGraph:{title:\"Planning Acceleration\",options:{legend:{display:!1},axes:{x:{min:-2,max:10,labelString:\"t (second)\"},y:{min:-4,max:3.5,labelString:\"acceleration (m/s^2)\"}}},properties:{lines:{acceleration:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"}}}},kappaGraph:{title:\"Planning Kappa\",options:{legend:{display:!0},axes:{x:{labelString:\"s (m)\"},y:{min:-.2,max:.2,labelString:\"kappa\"}}},properties:{lines:{ReferenceLine:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},DpPolyPathOptimizer:{color:\"rgba(27, 249, 105, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplinePathOptimizer:{color:\"rgba(54, 162, 235, 1)\",borderWidth:5,pointRadius:0,fill:!1,showLine:!0}}}},dkappaGraph:{title:\"Planning Dkappa\",options:{legend:{display:!0},axes:{x:{labelString:\"s (m)\"},y:{min:-.02,max:.02,labelString:\"dkappa\"}}},properties:{lines:{ReferenceLine:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplinePathOptimizer:{color:\"rgba(54, 162, 235, 1)\",borderWidth:5,pointRadius:0,fill:!1,showLine:!0}}}},thetaGraph:{title:\"Planning theta\",options:{legend:{display:!0},axes:{x:{labelString:\"s (m)\"},y:{labelString:\"theta\"}}},properties:{lines:{ReferenceLine:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}},dpPolyGraph:{title:\"DP Path\",options:{legend:{display:!1},axes:{x:{labelString:\"s (m)\"},y:{labelString:\"l (m)\"}}},properties:{lines:{minCostPoint:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:2,fill:!1,showLine:!0},sampleLayer:{color:\"rgba(225, 225, 225, 0.5)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!1}}}}}},function(e,t){e.exports={name:\"proj4\",version:\"2.5.0\",description:\"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.\",main:\"dist/proj4-src.js\",module:\"lib/index.js\",directories:{test:\"test\",doc:\"docs\"},scripts:{build:\"grunt\",\"build:tmerc\":\"grunt build:tmerc\",test:\"npm run build && istanbul test _mocha test/test.js\"},repository:{type:\"git\",url:\"git://github.com/proj4js/proj4js.git\"},author:\"\",license:\"MIT\",devDependencies:{chai:\"~4.1.2\",\"curl-amd\":\"github:cujojs/curl\",grunt:\"^1.0.1\",\"grunt-cli\":\"~1.2.0\",\"grunt-contrib-connect\":\"~1.0.2\",\"grunt-contrib-jshint\":\"~1.1.0\",\"grunt-contrib-uglify\":\"~3.1.0\",\"grunt-mocha-phantomjs\":\"~4.0.0\",\"grunt-rollup\":\"^6.0.0\",istanbul:\"~0.4.5\",mocha:\"~4.0.0\",rollup:\"^0.50.0\",\"rollup-plugin-json\":\"^2.3.0\",\"rollup-plugin-node-resolve\":\"^3.0.0\",tin:\"~0.5.0\"},dependencies:{mgrs:\"1.0.0\",\"wkt-parser\":\"^1.2.0\"}}},function(e,t,n){var i=n(300);\"string\"==typeof i&&(i=[[e.i,i,\"\"]]);var r={};r.transform=void 0;n(139)(i,r);i.locals&&(e.exports=i.locals)},function(e,t,n){var i=n(302);\"string\"==typeof i&&(i=[[e.i,i,\"\"]]);var r={};r.transform=void 0;n(139)(i,r);i.locals&&(e.exports=i.locals)},function(e,t){e.exports=function(){throw new Error(\"define cannot be used indirect\")}},function(e,t){e.exports={nested:{apollo:{nested:{dreamview:{nested:{PolygonPoint:{fields:{x:{type:\"double\",id:1},y:{type:\"double\",id:2},z:{type:\"double\",id:3,options:{default:0}}}},Prediction:{fields:{probability:{type:\"double\",id:1},predictedTrajectory:{rule:\"repeated\",type:\"PolygonPoint\",id:2}}},Decision:{fields:{type:{type:\"Type\",id:1,options:{default:\"IGNORE\"}},polygonPoint:{rule:\"repeated\",type:\"PolygonPoint\",id:2},heading:{type:\"double\",id:3},latitude:{type:\"double\",id:4},longitude:{type:\"double\",id:5},positionX:{type:\"double\",id:6},positionY:{type:\"double\",id:7},length:{type:\"double\",id:8,options:{default:2.8}},width:{type:\"double\",id:9,options:{default:1.4}},height:{type:\"double\",id:10,options:{default:1.8}},stopReason:{type:\"StopReasonCode\",id:11},changeLaneType:{type:\"apollo.routing.ChangeLaneType\",id:12}},nested:{Type:{values:{IGNORE:0,STOP:1,NUDGE:2,YIELD:3,OVERTAKE:4,FOLLOW:5,SIDEPASS:6}},StopReasonCode:{values:{STOP_REASON_HEAD_VEHICLE:1,STOP_REASON_DESTINATION:2,STOP_REASON_PEDESTRIAN:3,STOP_REASON_OBSTACLE:4,STOP_REASON_SIGNAL:100,STOP_REASON_STOP_SIGN:101,STOP_REASON_YIELD_SIGN:102,STOP_REASON_CLEAR_ZONE:103,STOP_REASON_CROSSWALK:104,STOP_REASON_EMERGENCY:105,STOP_REASON_NOT_READY:106,STOP_REASON_PULL_OVER:107}}}},Object:{fields:{id:{type:\"string\",id:1},polygonPoint:{rule:\"repeated\",type:\"PolygonPoint\",id:2},heading:{type:\"double\",id:3},latitude:{type:\"double\",id:4},longitude:{type:\"double\",id:5},positionX:{type:\"double\",id:6},positionY:{type:\"double\",id:7},length:{type:\"double\",id:8,options:{default:2.8}},width:{type:\"double\",id:9,options:{default:1.4}},height:{type:\"double\",id:10,options:{default:1.8}},speed:{type:\"double\",id:11},speedAcceleration:{type:\"double\",id:12},speedJerk:{type:\"double\",id:13},spin:{type:\"double\",id:14},spinAcceleration:{type:\"double\",id:15},spinJerk:{type:\"double\",id:16},speedHeading:{type:\"double\",id:17},kappa:{type:\"double\",id:18},signalSet:{rule:\"repeated\",type:\"string\",id:19},currentSignal:{type:\"string\",id:20},timestampSec:{type:\"double\",id:21},decision:{rule:\"repeated\",type:\"Decision\",id:22},yieldedObstacle:{type:\"bool\",id:32,options:{default:!1}},throttlePercentage:{type:\"double\",id:23},brakePercentage:{type:\"double\",id:24},steeringPercentage:{type:\"double\",id:25},steeringAngle:{type:\"double\",id:26},steeringRatio:{type:\"double\",id:27},disengageType:{type:\"DisengageType\",id:28},type:{type:\"Type\",id:29},prediction:{rule:\"repeated\",type:\"Prediction\",id:30},confidence:{type:\"double\",id:31,options:{default:1}},obstaclePriority:{type:\"ObstaclePriority\",id:33,options:{default:\"NORMAL\"}}},nested:{DisengageType:{values:{DISENGAGE_NONE:0,DISENGAGE_UNKNOWN:1,DISENGAGE_MANUAL:2,DISENGAGE_EMERGENCY:3,DISENGAGE_AUTO_STEER_ONLY:4,DISENGAGE_AUTO_SPEED_ONLY:5,DISENGAGE_CHASSIS_ERROR:6}},Type:{values:{UNKNOWN:0,UNKNOWN_MOVABLE:1,UNKNOWN_UNMOVABLE:2,PEDESTRIAN:3,BICYCLE:4,VEHICLE:5,VIRTUAL:6,CIPV:7}},ObstaclePriority:{values:{CAUTION:1,NORMAL:2,IGNORE:3}}}},DelaysInMs:{fields:{chassis:{type:\"double\",id:1},localization:{type:\"double\",id:3},perceptionObstacle:{type:\"double\",id:4},planning:{type:\"double\",id:5},prediction:{type:\"double\",id:7},trafficLight:{type:\"double\",id:8},control:{type:\"double\",id:9}}},RoutePath:{fields:{point:{rule:\"repeated\",type:\"PolygonPoint\",id:1}}},Latency:{fields:{timestampSec:{type:\"double\",id:1},totalTimeMs:{type:\"double\",id:2}}},MapElementIds:{fields:{lane:{rule:\"repeated\",type:\"string\",id:1},crosswalk:{rule:\"repeated\",type:\"string\",id:2},junction:{rule:\"repeated\",type:\"string\",id:3},signal:{rule:\"repeated\",type:\"string\",id:4},stopSign:{rule:\"repeated\",type:\"string\",id:5},yield:{rule:\"repeated\",type:\"string\",id:6},overlap:{rule:\"repeated\",type:\"string\",id:7},road:{rule:\"repeated\",type:\"string\",id:8},clearArea:{rule:\"repeated\",type:\"string\",id:9},parkingSpace:{rule:\"repeated\",type:\"string\",id:10},speedBump:{rule:\"repeated\",type:\"string\",id:11}}},ControlData:{fields:{timestampSec:{type:\"double\",id:1},stationError:{type:\"double\",id:2},lateralError:{type:\"double\",id:3},headingError:{type:\"double\",id:4}}},Notification:{fields:{timestampSec:{type:\"double\",id:1},item:{type:\"apollo.common.monitor.MonitorMessageItem\",id:2}}},SimulationWorld:{fields:{timestamp:{type:\"double\",id:1},sequenceNum:{type:\"uint32\",id:2},object:{rule:\"repeated\",type:\"Object\",id:3},autoDrivingCar:{type:\"Object\",id:4},trafficSignal:{type:\"Object\",id:5},routePath:{rule:\"repeated\",type:\"RoutePath\",id:6},routingTime:{type:\"double\",id:7},planningTrajectory:{rule:\"repeated\",type:\"Object\",id:8},mainStop:{type:\"Object\",id:9,options:{deprecated:!0}},mainDecision:{type:\"Object\",id:10},speedLimit:{type:\"double\",id:11},delay:{type:\"DelaysInMs\",id:12},monitor:{type:\"apollo.common.monitor.MonitorMessage\",id:13,options:{deprecated:!0}},notification:{rule:\"repeated\",type:\"Notification\",id:14},engageAdvice:{type:\"string\",id:15},latency:{keyType:\"string\",type:\"Latency\",id:16},mapElementIds:{type:\"MapElementIds\",id:17},mapHash:{type:\"uint64\",id:18},mapRadius:{type:\"double\",id:19},planningData:{type:\"apollo.planning_internal.PlanningData\",id:20},gps:{type:\"Object\",id:21},laneMarker:{type:\"apollo.perception.LaneMarkers\",id:22},controlData:{type:\"ControlData\",id:23},navigationPath:{rule:\"repeated\",type:\"apollo.common.Path\",id:24}}},Options:{fields:{legendDisplay:{type:\"bool\",id:1,options:{default:!0}},x:{type:\"Axis\",id:2},y:{type:\"Axis\",id:3}},nested:{Axis:{fields:{min:{type:\"double\",id:1},max:{type:\"double\",id:2},labelString:{type:\"string\",id:3}}}}},Line:{fields:{label:{type:\"string\",id:1},point:{rule:\"repeated\",type:\"apollo.common.Point2D\",id:2},properties:{keyType:\"string\",type:\"string\",id:3}}},Polygon:{fields:{label:{type:\"string\",id:1},point:{rule:\"repeated\",type:\"apollo.common.Point2D\",id:2},properties:{keyType:\"string\",type:\"string\",id:3}}},Car:{fields:{label:{type:\"string\",id:1},x:{type:\"double\",id:2},y:{type:\"double\",id:3},heading:{type:\"double\",id:4},color:{type:\"string\",id:5}}},Chart:{fields:{title:{type:\"string\",id:1},options:{type:\"Options\",id:2},line:{rule:\"repeated\",type:\"Line\",id:3},polygon:{rule:\"repeated\",type:\"Polygon\",id:4},car:{rule:\"repeated\",type:\"Car\",id:5}}}}},common:{nested:{DriveEvent:{fields:{header:{type:\"apollo.common.Header\",id:1},event:{type:\"string\",id:2},location:{type:\"apollo.localization.Pose\",id:3},type:{rule:\"repeated\",type:\"Type\",id:4,options:{packed:!1}}},nested:{Type:{values:{CRITICAL:0,PROBLEM:1,DESIRED:2,OUT_OF_SCOPE:3}}}},EngageAdvice:{fields:{advice:{type:\"Advice\",id:1,options:{default:\"DISALLOW_ENGAGE\"}},reason:{type:\"string\",id:2}},nested:{Advice:{values:{UNKNOWN:0,DISALLOW_ENGAGE:1,READY_TO_ENGAGE:2,KEEP_ENGAGED:3,PREPARE_DISENGAGE:4}}}},ErrorCode:{values:{OK:0,CONTROL_ERROR:1e3,CONTROL_INIT_ERROR:1001,CONTROL_COMPUTE_ERROR:1002,CANBUS_ERROR:2e3,CAN_CLIENT_ERROR_BASE:2100,CAN_CLIENT_ERROR_OPEN_DEVICE_FAILED:2101,CAN_CLIENT_ERROR_FRAME_NUM:2102,CAN_CLIENT_ERROR_SEND_FAILED:2103,CAN_CLIENT_ERROR_RECV_FAILED:2104,LOCALIZATION_ERROR:3e3,LOCALIZATION_ERROR_MSG:3100,LOCALIZATION_ERROR_LIDAR:3200,LOCALIZATION_ERROR_INTEG:3300,LOCALIZATION_ERROR_GNSS:3400,PERCEPTION_ERROR:4e3,PERCEPTION_ERROR_TF:4001,PERCEPTION_ERROR_PROCESS:4002,PERCEPTION_FATAL:4003,PERCEPTION_ERROR_NONE:4004,PERCEPTION_ERROR_UNKNOWN:4005,PREDICTION_ERROR:5e3,PLANNING_ERROR:6e3,HDMAP_DATA_ERROR:7e3,ROUTING_ERROR:8e3,ROUTING_ERROR_REQUEST:8001,ROUTING_ERROR_RESPONSE:8002,ROUTING_ERROR_NOT_READY:8003,END_OF_INPUT:9e3,HTTP_LOGIC_ERROR:1e4,HTTP_RUNTIME_ERROR:10001,RELATIVE_MAP_ERROR:11e3,RELATIVE_MAP_NOT_READY:11001,DRIVER_ERROR_GNSS:12e3,DRIVER_ERROR_VELODYNE:13e3}},StatusPb:{fields:{errorCode:{type:\"ErrorCode\",id:1,options:{default:\"OK\"}},msg:{type:\"string\",id:2}}},PointENU:{fields:{x:{type:\"double\",id:1,options:{default:null}},y:{type:\"double\",id:2,options:{default:null}},z:{type:\"double\",id:3,options:{default:0}}}},PointLLH:{fields:{lon:{type:\"double\",id:1,options:{default:null}},lat:{type:\"double\",id:2,options:{default:null}},height:{type:\"double\",id:3,options:{default:0}}}},Point2D:{fields:{x:{type:\"double\",id:1,options:{default:null}},y:{type:\"double\",id:2,options:{default:null}}}},Point3D:{fields:{x:{type:\"double\",id:1,options:{default:null}},y:{type:\"double\",id:2,options:{default:null}},z:{type:\"double\",id:3,options:{default:null}}}},Quaternion:{fields:{qx:{type:\"double\",id:1,options:{default:null}},qy:{type:\"double\",id:2,options:{default:null}},qz:{type:\"double\",id:3,options:{default:null}},qw:{type:\"double\",id:4,options:{default:null}}}},Polygon:{fields:{point:{rule:\"repeated\",type:\"Point3D\",id:1}}},Header:{fields:{timestampSec:{type:\"double\",id:1},moduleName:{type:\"string\",id:2},sequenceNum:{type:\"uint32\",id:3},lidarTimestamp:{type:\"uint64\",id:4},cameraTimestamp:{type:\"uint64\",id:5},radarTimestamp:{type:\"uint64\",id:6},version:{type:\"uint32\",id:7,options:{default:1}},status:{type:\"StatusPb\",id:8},frameId:{type:\"string\",id:9}}},SLPoint:{fields:{s:{type:\"double\",id:1},l:{type:\"double\",id:2}}},FrenetFramePoint:{fields:{s:{type:\"double\",id:1},l:{type:\"double\",id:2},dl:{type:\"double\",id:3},ddl:{type:\"double\",id:4}}},SpeedPoint:{fields:{s:{type:\"double\",id:1},t:{type:\"double\",id:2},v:{type:\"double\",id:3},a:{type:\"double\",id:4},da:{type:\"double\",id:5}}},PathPoint:{fields:{x:{type:\"double\",id:1},y:{type:\"double\",id:2},z:{type:\"double\",id:3},theta:{type:\"double\",id:4},kappa:{type:\"double\",id:5},s:{type:\"double\",id:6},dkappa:{type:\"double\",id:7},ddkappa:{type:\"double\",id:8},laneId:{type:\"string\",id:9},xDerivative:{type:\"double\",id:10},yDerivative:{type:\"double\",id:11}}},Path:{fields:{name:{type:\"string\",id:1},pathPoint:{rule:\"repeated\",type:\"PathPoint\",id:2}}},TrajectoryPoint:{fields:{pathPoint:{type:\"PathPoint\",id:1},v:{type:\"double\",id:2},a:{type:\"double\",id:3},relativeTime:{type:\"double\",id:4},da:{type:\"double\",id:5}}},Trajectory:{fields:{name:{type:\"string\",id:1},trajectoryPoint:{rule:\"repeated\",type:\"TrajectoryPoint\",id:2}}},VehicleMotionPoint:{fields:{trajectoryPoint:{type:\"TrajectoryPoint\",id:1},steer:{type:\"double\",id:2}}},VehicleMotion:{fields:{name:{type:\"string\",id:1},vehicleMotionPoint:{rule:\"repeated\",type:\"VehicleMotionPoint\",id:2}}},VehicleSignal:{fields:{turnSignal:{type:\"TurnSignal\",id:1},highBeam:{type:\"bool\",id:2},lowBeam:{type:\"bool\",id:3},horn:{type:\"bool\",id:4},emergencyLight:{type:\"bool\",id:5}},nested:{TurnSignal:{values:{TURN_NONE:0,TURN_LEFT:1,TURN_RIGHT:2}}}},monitor:{nested:{MonitorMessageItem:{fields:{source:{type:\"MessageSource\",id:1,options:{default:\"UNKNOWN\"}},msg:{type:\"string\",id:2},logLevel:{type:\"LogLevel\",id:3,options:{default:\"INFO\"}}},nested:{MessageSource:{values:{UNKNOWN:1,CANBUS:2,CONTROL:3,DECISION:4,LOCALIZATION:5,PLANNING:6,PREDICTION:7,SIMULATOR:8,HWSYS:9,ROUTING:10,MONITOR:11,HMI:12,RELATIVE_MAP:13,GNSS:14,CONTI_RADAR:15,RACOBIT_RADAR:16,ULTRASONIC_RADAR:17,MOBILEYE:18,DELPHI_ESR:19}},LogLevel:{values:{INFO:0,WARN:1,ERROR:2,FATAL:3}}}},MonitorMessage:{fields:{header:{type:\"apollo.common.Header\",id:1},item:{rule:\"repeated\",type:\"MonitorMessageItem\",id:2}}}}}}},localization:{nested:{Uncertainty:{fields:{positionStdDev:{type:\"apollo.common.Point3D\",id:1},orientationStdDev:{type:\"apollo.common.Point3D\",id:2},linearVelocityStdDev:{type:\"apollo.common.Point3D\",id:3},linearAccelerationStdDev:{type:\"apollo.common.Point3D\",id:4},angularVelocityStdDev:{type:\"apollo.common.Point3D\",id:5}}},LocalizationEstimate:{fields:{header:{type:\"apollo.common.Header\",id:1},pose:{type:\"apollo.localization.Pose\",id:2},uncertainty:{type:\"Uncertainty\",id:3},measurementTime:{type:\"double\",id:4},trajectoryPoint:{rule:\"repeated\",type:\"apollo.common.TrajectoryPoint\",id:5},msfStatus:{type:\"MsfStatus\",id:6},sensorStatus:{type:\"MsfSensorMsgStatus\",id:7}}},MeasureState:{values:{OK:0,WARNNING:1,ERROR:2,CRITICAL_ERROR:3,FATAL_ERROR:4}},LocalizationStatus:{fields:{header:{type:\"apollo.common.Header\",id:1},fusionStatus:{type:\"MeasureState\",id:2},gnssStatus:{type:\"MeasureState\",id:3,options:{deprecated:!0}},lidarStatus:{type:\"MeasureState\",id:4,options:{deprecated:!0}},measurementTime:{type:\"double\",id:5},stateMessage:{type:\"string\",id:6}}},Pose:{fields:{position:{type:\"apollo.common.PointENU\",id:1},orientation:{type:\"apollo.common.Quaternion\",id:2},linearVelocity:{type:\"apollo.common.Point3D\",id:3},linearAcceleration:{type:\"apollo.common.Point3D\",id:4},angularVelocity:{type:\"apollo.common.Point3D\",id:5},heading:{type:\"double\",id:6},linearAccelerationVrf:{type:\"apollo.common.Point3D\",id:7},angularVelocityVrf:{type:\"apollo.common.Point3D\",id:8},eulerAngles:{type:\"apollo.common.Point3D\",id:9}}},LocalLidarStatus:{values:{MSF_LOCAL_LIDAR_NORMAL:0,MSF_LOCAL_LIDAR_MAP_MISSING:1,MSF_LOCAL_LIDAR_EXTRINSICS_MISSING:2,MSF_LOCAL_LIDAR_MAP_LOADING_FAILED:3,MSF_LOCAL_LIDAR_NO_OUTPUT:4,MSF_LOCAL_LIDAR_OUT_OF_MAP:5,MSF_LOCAL_LIDAR_NOT_GOOD:6,MSF_LOCAL_LIDAR_UNDEFINED_STATUS:7}},LocalLidarQuality:{values:{MSF_LOCAL_LIDAR_VERY_GOOD:0,MSF_LOCAL_LIDAR_GOOD:1,MSF_LOCAL_LIDAR_NOT_BAD:2,MSF_LOCAL_LIDAR_BAD:3}},LocalLidarConsistency:{values:{MSF_LOCAL_LIDAR_CONSISTENCY_00:0,MSF_LOCAL_LIDAR_CONSISTENCY_01:1,MSF_LOCAL_LIDAR_CONSISTENCY_02:2,MSF_LOCAL_LIDAR_CONSISTENCY_03:3}},GnssConsistency:{values:{MSF_GNSS_CONSISTENCY_00:0,MSF_GNSS_CONSISTENCY_01:1,MSF_GNSS_CONSISTENCY_02:2,MSF_GNSS_CONSISTENCY_03:3}},GnssPositionType:{values:{NONE:0,FIXEDPOS:1,FIXEDHEIGHT:2,FLOATCONV:4,WIDELANE:5,NARROWLANE:6,DOPPLER_VELOCITY:8,SINGLE:16,PSRDIFF:17,WAAS:18,PROPOGATED:19,OMNISTAR:20,L1_FLOAT:32,IONOFREE_FLOAT:33,NARROW_FLOAT:34,L1_INT:48,WIDE_INT:49,NARROW_INT:50,RTK_DIRECT_INS:51,INS_SBAS:52,INS_PSRSP:53,INS_PSRDIFF:54,INS_RTKFLOAT:55,INS_RTKFIXED:56,INS_OMNISTAR:57,INS_OMNISTAR_HP:58,INS_OMNISTAR_XP:59,OMNISTAR_HP:64,OMNISTAR_XP:65,PPP_CONVERGING:68,PPP:69,INS_PPP_Converging:73,INS_PPP:74,MSG_LOSS:91}},ImuMsgDelayStatus:{values:{IMU_DELAY_NORMAL:0,IMU_DELAY_1:1,IMU_DELAY_2:2,IMU_DELAY_3:3,IMU_DELAY_ABNORMAL:4}},ImuMsgMissingStatus:{values:{IMU_MISSING_NORMAL:0,IMU_MISSING_1:1,IMU_MISSING_2:2,IMU_MISSING_3:3,IMU_MISSING_4:4,IMU_MISSING_5:5,IMU_MISSING_ABNORMAL:6}},ImuMsgDataStatus:{values:{IMU_DATA_NORMAL:0,IMU_DATA_ABNORMAL:1,IMU_DATA_OTHER:2}},MsfRunningStatus:{values:{MSF_SOL_LIDAR_GNSS:0,MSF_SOL_X_GNSS:1,MSF_SOL_LIDAR_X:2,MSF_SOL_LIDAR_XX:3,MSF_SOL_LIDAR_XXX:4,MSF_SOL_X_X:5,MSF_SOL_X_XX:6,MSF_SOL_X_XXX:7,MSF_SSOL_LIDAR_GNSS:8,MSF_SSOL_X_GNSS:9,MSF_SSOL_LIDAR_X:10,MSF_SSOL_LIDAR_XX:11,MSF_SSOL_LIDAR_XXX:12,MSF_SSOL_X_X:13,MSF_SSOL_X_XX:14,MSF_SSOL_X_XXX:15,MSF_NOSOL_LIDAR_GNSS:16,MSF_NOSOL_X_GNSS:17,MSF_NOSOL_LIDAR_X:18,MSF_NOSOL_LIDAR_XX:19,MSF_NOSOL_LIDAR_XXX:20,MSF_NOSOL_X_X:21,MSF_NOSOL_X_XX:22,MSF_NOSOL_X_XXX:23,MSF_RUNNING_INIT:24}},MsfSensorMsgStatus:{fields:{imuDelayStatus:{type:\"ImuMsgDelayStatus\",id:1},imuMissingStatus:{type:\"ImuMsgMissingStatus\",id:2},imuDataStatus:{type:\"ImuMsgDataStatus\",id:3}}},MsfStatus:{fields:{localLidarConsistency:{type:\"LocalLidarConsistency\",id:1},gnssConsistency:{type:\"GnssConsistency\",id:2},localLidarStatus:{type:\"LocalLidarStatus\",id:3},localLidarQuality:{type:\"LocalLidarQuality\",id:4},gnssposPositionType:{type:\"GnssPositionType\",id:5},msfRunningStatus:{type:\"MsfRunningStatus\",id:6}}}}},canbus:{nested:{Chassis:{fields:{engineStarted:{type:\"bool\",id:3},engineRpm:{type:\"float\",id:4,options:{default:null}},speedMps:{type:\"float\",id:5,options:{default:null}},odometerM:{type:\"float\",id:6,options:{default:null}},fuelRangeM:{type:\"int32\",id:7},throttlePercentage:{type:\"float\",id:8,options:{default:null}},brakePercentage:{type:\"float\",id:9,options:{default:null}},steeringPercentage:{type:\"float\",id:11,options:{default:null}},steeringTorqueNm:{type:\"float\",id:12,options:{default:null}},parkingBrake:{type:\"bool\",id:13},highBeamSignal:{type:\"bool\",id:14,options:{deprecated:!0}},lowBeamSignal:{type:\"bool\",id:15,options:{deprecated:!0}},leftTurnSignal:{type:\"bool\",id:16,options:{deprecated:!0}},rightTurnSignal:{type:\"bool\",id:17,options:{deprecated:!0}},horn:{type:\"bool\",id:18,options:{deprecated:!0}},wiper:{type:\"bool\",id:19},disengageStatus:{type:\"bool\",id:20,options:{deprecated:!0}},drivingMode:{type:\"DrivingMode\",id:21,options:{default:\"COMPLETE_MANUAL\"}},errorCode:{type:\"ErrorCode\",id:22,options:{default:\"NO_ERROR\"}},gearLocation:{type:\"GearPosition\",id:23},steeringTimestamp:{type:\"double\",id:24},header:{type:\"apollo.common.Header\",id:25},chassisErrorMask:{type:\"int32\",id:26,options:{default:0}},signal:{type:\"apollo.common.VehicleSignal\",id:27},chassisGps:{type:\"ChassisGPS\",id:28},engageAdvice:{type:\"apollo.common.EngageAdvice\",id:29},wheelSpeed:{type:\"WheelSpeed\",id:30},surround:{type:\"Surround\",id:31},license:{type:\"License\",id:32}},nested:{DrivingMode:{values:{COMPLETE_MANUAL:0,COMPLETE_AUTO_DRIVE:1,AUTO_STEER_ONLY:2,AUTO_SPEED_ONLY:3,EMERGENCY_MODE:4}},ErrorCode:{values:{NO_ERROR:0,CMD_NOT_IN_PERIOD:1,CHASSIS_ERROR:2,MANUAL_INTERVENTION:3,CHASSIS_CAN_NOT_IN_PERIOD:4,UNKNOWN_ERROR:5}},GearPosition:{values:{GEAR_NEUTRAL:0,GEAR_DRIVE:1,GEAR_REVERSE:2,GEAR_PARKING:3,GEAR_LOW:4,GEAR_INVALID:5,GEAR_NONE:6}}}},ChassisGPS:{fields:{latitude:{type:\"double\",id:1},longitude:{type:\"double\",id:2},gpsValid:{type:\"bool\",id:3},year:{type:\"int32\",id:4},month:{type:\"int32\",id:5},day:{type:\"int32\",id:6},hours:{type:\"int32\",id:7},minutes:{type:\"int32\",id:8},seconds:{type:\"int32\",id:9},compassDirection:{type:\"double\",id:10},pdop:{type:\"double\",id:11},isGpsFault:{type:\"bool\",id:12},isInferred:{type:\"bool\",id:13},altitude:{type:\"double\",id:14},heading:{type:\"double\",id:15},hdop:{type:\"double\",id:16},vdop:{type:\"double\",id:17},quality:{type:\"GpsQuality\",id:18},numSatellites:{type:\"int32\",id:19},gpsSpeed:{type:\"double\",id:20}}},GpsQuality:{values:{FIX_NO:0,FIX_2D:1,FIX_3D:2,FIX_INVALID:3}},WheelSpeed:{fields:{isWheelSpdRrValid:{type:\"bool\",id:1,options:{default:!1}},wheelDirectionRr:{type:\"WheelSpeedType\",id:2,options:{default:\"INVALID\"}},wheelSpdRr:{type:\"double\",id:3,options:{default:0}},isWheelSpdRlValid:{type:\"bool\",id:4,options:{default:!1}},wheelDirectionRl:{type:\"WheelSpeedType\",id:5,options:{default:\"INVALID\"}},wheelSpdRl:{type:\"double\",id:6,options:{default:0}},isWheelSpdFrValid:{type:\"bool\",id:7,options:{default:!1}},wheelDirectionFr:{type:\"WheelSpeedType\",id:8,options:{default:\"INVALID\"}},wheelSpdFr:{type:\"double\",id:9,options:{default:0}},isWheelSpdFlValid:{type:\"bool\",id:10,options:{default:!1}},wheelDirectionFl:{type:\"WheelSpeedType\",id:11,options:{default:\"INVALID\"}},wheelSpdFl:{type:\"double\",id:12,options:{default:0}}},nested:{WheelSpeedType:{values:{FORWARD:0,BACKWARD:1,STANDSTILL:2,INVALID:3}}}},Sonar:{fields:{range:{type:\"double\",id:1},translation:{type:\"apollo.common.Point3D\",id:2},rotation:{type:\"apollo.common.Quaternion\",id:3}}},Surround:{fields:{crossTrafficAlertLeft:{type:\"bool\",id:1},crossTrafficAlertLeftEnabled:{type:\"bool\",id:2},blindSpotLeftAlert:{type:\"bool\",id:3},blindSpotLeftAlertEnabled:{type:\"bool\",id:4},crossTrafficAlertRight:{type:\"bool\",id:5},crossTrafficAlertRightEnabled:{type:\"bool\",id:6},blindSpotRightAlert:{type:\"bool\",id:7},blindSpotRightAlertEnabled:{type:\"bool\",id:8},sonar00:{type:\"double\",id:9},sonar01:{type:\"double\",id:10},sonar02:{type:\"double\",id:11},sonar03:{type:\"double\",id:12},sonar04:{type:\"double\",id:13},sonar05:{type:\"double\",id:14},sonar06:{type:\"double\",id:15},sonar07:{type:\"double\",id:16},sonar08:{type:\"double\",id:17},sonar09:{type:\"double\",id:18},sonar10:{type:\"double\",id:19},sonar11:{type:\"double\",id:20},sonarEnabled:{type:\"bool\",id:21},sonarFault:{type:\"bool\",id:22},sonarRange:{rule:\"repeated\",type:\"double\",id:23,options:{packed:!1}},sonar:{rule:\"repeated\",type:\"Sonar\",id:24}}},License:{fields:{vin:{type:\"string\",id:1}}}}},planning:{nested:{autotuning:{nested:{PathPointwiseFeature:{fields:{l:{type:\"double\",id:1},dl:{type:\"double\",id:2},ddl:{type:\"double\",id:3},kappa:{type:\"double\",id:4},obstacleInfo:{rule:\"repeated\",type:\"ObstacleFeature\",id:5},leftBoundFeature:{type:\"BoundRelatedFeature\",id:6},rightBoundFeature:{type:\"BoundRelatedFeature\",id:7}},nested:{ObstacleFeature:{fields:{lateralDistance:{type:\"double\",id:1}}},BoundRelatedFeature:{fields:{boundDistance:{type:\"double\",id:1},crossableLevel:{type:\"CrossableLevel\",id:2}},nested:{CrossableLevel:{values:{CROSS_FREE:0,CROSS_ABLE:1,CROSS_FORBIDDEN:2}}}}}},SpeedPointwiseFeature:{fields:{s:{type:\"double\",id:1,options:{default:0}},t:{type:\"double\",id:2,options:{default:0}},v:{type:\"double\",id:3,options:{default:0}},speedLimit:{type:\"double\",id:4,options:{default:0}},acc:{type:\"double\",id:5,options:{default:0}},jerk:{type:\"double\",id:6,options:{default:0}},followObsFeature:{rule:\"repeated\",type:\"ObstacleFeature\",id:7},overtakeObsFeature:{rule:\"repeated\",type:\"ObstacleFeature\",id:8},nudgeObsFeature:{rule:\"repeated\",type:\"ObstacleFeature\",id:9},stopObsFeature:{rule:\"repeated\",type:\"ObstacleFeature\",id:10},collisionTimes:{type:\"int32\",id:11,options:{default:0}},virtualObsFeature:{rule:\"repeated\",type:\"ObstacleFeature\",id:12},lateralAcc:{type:\"double\",id:13,options:{default:0}},pathCurvatureAbs:{type:\"double\",id:14,options:{default:0}},sidepassFrontObsFeature:{rule:\"repeated\",type:\"ObstacleFeature\",id:15},sidepassRearObsFeature:{rule:\"repeated\",type:\"ObstacleFeature\",id:16}},nested:{ObstacleFeature:{fields:{longitudinalDistance:{type:\"double\",id:1},obstacleSpeed:{type:\"double\",id:2},lateralDistance:{type:\"double\",id:3,options:{default:10}},probability:{type:\"double\",id:4},relativeV:{type:\"double\",id:5}}}}},TrajectoryPointwiseFeature:{fields:{pathInputFeature:{type:\"PathPointwiseFeature\",id:1},speedInputFeature:{type:\"SpeedPointwiseFeature\",id:2}}},TrajectoryFeature:{fields:{pointFeature:{rule:\"repeated\",type:\"TrajectoryPointwiseFeature\",id:1}}},PathPointRawFeature:{fields:{cartesianCoord:{type:\"apollo.common.PathPoint\",id:1},frenetCoord:{type:\"apollo.common.FrenetFramePoint\",id:2}}},SpeedPointRawFeature:{fields:{s:{type:\"double\",id:1},t:{type:\"double\",id:2},v:{type:\"double\",id:3},a:{type:\"double\",id:4},j:{type:\"double\",id:5},speedLimit:{type:\"double\",id:6},follow:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:10},overtake:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:11},virtualDecision:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:13},stop:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:14},collision:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:15},nudge:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:12},sidepassFront:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:16},sidepassRear:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:17},keepClear:{rule:\"repeated\",type:\"ObjectDecisionFeature\",id:18}},nested:{ObjectDecisionFeature:{fields:{id:{type:\"int32\",id:1},relativeS:{type:\"double\",id:2},relativeL:{type:\"double\",id:3},relativeV:{type:\"double\",id:4},speed:{type:\"double\",id:5}}}}},ObstacleSTRawData:{fields:{obstacleStData:{rule:\"repeated\",type:\"ObstacleSTData\",id:1},obstacleStNudge:{rule:\"repeated\",type:\"ObstacleSTData\",id:2},obstacleStSidepass:{rule:\"repeated\",type:\"ObstacleSTData\",id:3}},nested:{STPointPair:{fields:{sLower:{type:\"double\",id:1},sUpper:{type:\"double\",id:2},t:{type:\"double\",id:3},l:{type:\"double\",id:4,options:{default:10}}}},ObstacleSTData:{fields:{id:{type:\"int32\",id:1},speed:{type:\"double\",id:2},isVirtual:{type:\"bool\",id:3},probability:{type:\"double\",id:4},polygon:{rule:\"repeated\",type:\"STPointPair\",id:8},distribution:{rule:\"repeated\",type:\"STPointPair\",id:9}}}}},TrajectoryPointRawFeature:{fields:{pathFeature:{type:\"PathPointRawFeature\",id:1},speedFeature:{type:\"SpeedPointRawFeature\",id:2}}},TrajectoryRawFeature:{fields:{pointFeature:{rule:\"repeated\",type:\"TrajectoryPointRawFeature\",id:1},stRawData:{type:\"ObstacleSTRawData\",id:2}}}}},DeciderCreepConfig:{fields:{stopDistance:{type:\"double\",id:1,options:{default:.5}},speedLimit:{type:\"double\",id:2,options:{default:1}},maxValidStopDistance:{type:\"double\",id:3,options:{default:.3}},minBoundaryT:{type:\"double\",id:4,options:{default:6}},maxToleranceT:{type:\"double\",id:5,options:{default:.5}}}},RuleCrosswalkConfig:{fields:{enabled:{type:\"bool\",id:1,options:{default:!0}},stopDistance:{type:\"double\",id:2,options:{default:1}}}},RuleStopSignConfig:{fields:{enabled:{type:\"bool\",id:1,options:{default:!0}},stopDistance:{type:\"double\",id:2,options:{default:1}}}},RuleTrafficLightConfig:{fields:{enabled:{type:\"bool\",id:1,options:{default:!0}},stopDistance:{type:\"double\",id:2,options:{default:1}},signalExpireTimeSec:{type:\"double\",id:3,options:{default:5}}}},DeciderRuleBasedStopConfig:{fields:{crosswalk:{type:\"RuleCrosswalkConfig\",id:1},stopSign:{type:\"RuleStopSignConfig\",id:2},trafficLight:{type:\"RuleTrafficLightConfig\",id:3}}},SidePassSafetyConfig:{fields:{minObstacleLateralDistance:{type:\"double\",id:1,options:{default:1}},maxOverlapSRange:{type:\"double\",id:2,options:{default:5}},safeDurationReachRefLine:{type:\"double\",id:3,options:{default:5}}}},TargetLane:{fields:{id:{type:\"string\",id:1},startS:{type:\"double\",id:2},endS:{type:\"double\",id:3},speedLimit:{type:\"double\",id:4}}},ObjectIgnore:{fields:{}},StopReasonCode:{values:{STOP_REASON_HEAD_VEHICLE:1,STOP_REASON_DESTINATION:2,STOP_REASON_PEDESTRIAN:3,STOP_REASON_OBSTACLE:4,STOP_REASON_PREPARKING:5,STOP_REASON_SIGNAL:100,STOP_REASON_STOP_SIGN:101,STOP_REASON_YIELD_SIGN:102,STOP_REASON_CLEAR_ZONE:103,STOP_REASON_CROSSWALK:104,STOP_REASON_CREEPER:105,STOP_REASON_REFERENCE_END:106,STOP_REASON_YELLOW_SIGNAL:107,STOP_REASON_PULL_OVER:108}},ObjectStop:{fields:{reasonCode:{type:\"StopReasonCode\",id:1},distanceS:{type:\"double\",id:2},stopPoint:{type:\"apollo.common.PointENU\",id:3},stopHeading:{type:\"double\",id:4},waitForObstacle:{rule:\"repeated\",type:\"string\",id:5}}},ObjectNudge:{fields:{type:{type:\"Type\",id:1},distanceL:{type:\"double\",id:2}},nested:{Type:{values:{LEFT_NUDGE:1,RIGHT_NUDGE:2,NO_NUDGE:3}}}},ObjectYield:{fields:{distanceS:{type:\"double\",id:1},fencePoint:{type:\"apollo.common.PointENU\",id:2},fenceHeading:{type:\"double\",id:3},timeBuffer:{type:\"double\",id:4}}},ObjectFollow:{fields:{distanceS:{type:\"double\",id:1},fencePoint:{type:\"apollo.common.PointENU\",id:2},fenceHeading:{type:\"double\",id:3}}},ObjectOvertake:{fields:{distanceS:{type:\"double\",id:1},fencePoint:{type:\"apollo.common.PointENU\",id:2},fenceHeading:{type:\"double\",id:3},timeBuffer:{type:\"double\",id:4}}},ObjectSidePass:{fields:{type:{type:\"Type\",id:1}},nested:{Type:{values:{LEFT:1,RIGHT:2}}}},ObjectAvoid:{fields:{}},ObjectDecisionType:{oneofs:{objectTag:{oneof:[\"ignore\",\"stop\",\"follow\",\"yield\",\"overtake\",\"nudge\",\"avoid\"]}},fields:{ignore:{type:\"ObjectIgnore\",id:1},stop:{type:\"ObjectStop\",id:2},follow:{type:\"ObjectFollow\",id:3},yield:{type:\"ObjectYield\",id:4},overtake:{type:\"ObjectOvertake\",id:5},nudge:{type:\"ObjectNudge\",id:6},avoid:{type:\"ObjectAvoid\",id:7}}},ObjectDecision:{fields:{id:{type:\"string\",id:1},perceptionId:{type:\"int32\",id:2},objectDecision:{rule:\"repeated\",type:\"ObjectDecisionType\",id:3}}},ObjectDecisions:{fields:{decision:{rule:\"repeated\",type:\"ObjectDecision\",id:1}}},MainStop:{fields:{reasonCode:{type:\"StopReasonCode\",id:1},reason:{type:\"string\",id:2},stopPoint:{type:\"apollo.common.PointENU\",id:3},stopHeading:{type:\"double\",id:4},changeLaneType:{type:\"apollo.routing.ChangeLaneType\",id:5}}},EmergencyStopHardBrake:{fields:{}},EmergencyStopCruiseToStop:{fields:{}},MainEmergencyStop:{oneofs:{task:{oneof:[\"hardBrake\",\"cruiseToStop\"]}},fields:{reasonCode:{type:\"ReasonCode\",id:1},reason:{type:\"string\",id:2},hardBrake:{type:\"EmergencyStopHardBrake\",id:3},cruiseToStop:{type:\"EmergencyStopCruiseToStop\",id:4}},nested:{ReasonCode:{values:{ESTOP_REASON_INTERNAL_ERR:1,ESTOP_REASON_COLLISION:2,ESTOP_REASON_ST_FIND_PATH:3,ESTOP_REASON_ST_MAKE_DECISION:4,ESTOP_REASON_SENSOR_ERROR:5}}}},MainCruise:{fields:{changeLaneType:{type:\"apollo.routing.ChangeLaneType\",id:1}}},MainChangeLane:{fields:{type:{type:\"Type\",id:1},defaultLane:{rule:\"repeated\",type:\"TargetLane\",id:2},defaultLaneStop:{type:\"MainStop\",id:3},targetLaneStop:{type:\"MainStop\",id:4}},nested:{Type:{values:{LEFT:1,RIGHT:2}}}},MainMissionComplete:{fields:{stopPoint:{type:\"apollo.common.PointENU\",id:1},stopHeading:{type:\"double\",id:2}}},MainNotReady:{fields:{reason:{type:\"string\",id:1}}},MainParking:{fields:{}},MainDecision:{oneofs:{task:{oneof:[\"cruise\",\"stop\",\"estop\",\"changeLane\",\"missionComplete\",\"notReady\",\"parking\"]}},fields:{cruise:{type:\"MainCruise\",id:1},stop:{type:\"MainStop\",id:2},estop:{type:\"MainEmergencyStop\",id:3},changeLane:{type:\"MainChangeLane\",id:4,options:{deprecated:!0}},missionComplete:{type:\"MainMissionComplete\",id:6},notReady:{type:\"MainNotReady\",id:7},parking:{type:\"MainParking\",id:8},targetLane:{rule:\"repeated\",type:\"TargetLane\",id:5,options:{deprecated:!0}}}},DecisionResult:{fields:{mainDecision:{type:\"MainDecision\",id:1},objectDecision:{type:\"ObjectDecisions\",id:2},vehicleSignal:{type:\"apollo.common.VehicleSignal\",id:3}}},DpPolyPathConfig:{fields:{waypointSamplerConfig:{type:\"WaypointSamplerConfig\",id:1},evalTimeInterval:{type:\"double\",id:2,options:{default:.1}},pathResolution:{type:\"double\",id:3,options:{default:.1}},obstacleIgnoreDistance:{type:\"double\",id:4,options:{default:20}},obstacleCollisionDistance:{type:\"double\",id:5,options:{default:.2}},obstacleRiskDistance:{type:\"double\",id:6,options:{default:2}},obstacleCollisionCost:{type:\"double\",id:7,options:{default:1e3}},pathLCost:{type:\"double\",id:8},pathDlCost:{type:\"double\",id:9},pathDdlCost:{type:\"double\",id:10},pathLCostParamL0:{type:\"double\",id:11},pathLCostParamB:{type:\"double\",id:12},pathLCostParamK:{type:\"double\",id:13},pathOutLaneCost:{type:\"double\",id:14},pathEndLCost:{type:\"double\",id:15}}},DpStSpeedConfig:{fields:{totalPathLength:{type:\"double\",id:1,options:{default:.1}},totalTime:{type:\"double\",id:2,options:{default:3}},matrixDimensionS:{type:\"int32\",id:3,options:{default:100}},matrixDimensionT:{type:\"int32\",id:4,options:{default:10}},speedWeight:{type:\"double\",id:5,options:{default:0}},accelWeight:{type:\"double\",id:6,options:{default:10}},jerkWeight:{type:\"double\",id:7,options:{default:10}},obstacleWeight:{type:\"double\",id:8,options:{default:1}},referenceWeight:{type:\"double\",id:9,options:{default:0}},goDownBuffer:{type:\"double\",id:10,options:{default:5}},goUpBuffer:{type:\"double\",id:11,options:{default:5}},defaultObstacleCost:{type:\"double\",id:12,options:{default:1e10}},defaultSpeedCost:{type:\"double\",id:13,options:{default:1}},exceedSpeedPenalty:{type:\"double\",id:14,options:{default:10}},lowSpeedPenalty:{type:\"double\",id:15,options:{default:2.5}},keepClearLowSpeedPenalty:{type:\"double\",id:16,options:{default:10}},accelPenalty:{type:\"double\",id:20,options:{default:2}},decelPenalty:{type:\"double\",id:21,options:{default:2}},positiveJerkCoeff:{type:\"double\",id:30,options:{default:1}},negativeJerkCoeff:{type:\"double\",id:31,options:{default:300}},maxAcceleration:{type:\"double\",id:40,options:{default:4.5}},maxDeceleration:{type:\"double\",id:41,options:{default:-4.5}},stBoundaryConfig:{type:\"apollo.planning.StBoundaryConfig\",id:50}}},LonCondition:{fields:{s:{type:\"double\",id:1,options:{default:0}},ds:{type:\"double\",id:2,options:{default:0}},dds:{type:\"double\",id:3,options:{default:0}}}},LatCondition:{fields:{l:{type:\"double\",id:1,options:{default:0}},dl:{type:\"double\",id:2,options:{default:0}},ddl:{type:\"double\",id:3,options:{default:0}}}},TStrategy:{fields:{tMarkers:{rule:\"repeated\",type:\"double\",id:1,options:{packed:!1}},tStep:{type:\"double\",id:2,options:{default:.5}},strategy:{type:\"string\",id:3}}},SStrategy:{fields:{sMarkers:{rule:\"repeated\",type:\"double\",id:1,options:{packed:!1}},sStep:{type:\"double\",id:2,options:{default:.5}},strategy:{type:\"string\",id:3}}},LonSampleConfig:{fields:{lonEndCondition:{type:\"LonCondition\",id:1},tStrategy:{type:\"TStrategy\",id:2}}},LatSampleConfig:{fields:{latEndCondition:{type:\"LatCondition\",id:1},sStrategy:{type:\"SStrategy\",id:2}}},LatticeSamplingConfig:{fields:{lonSampleConfig:{type:\"LonSampleConfig\",id:1},latSampleConfig:{type:\"LatSampleConfig\",id:2}}},PathTimePoint:{fields:{t:{type:\"double\",id:1},s:{type:\"double\",id:2},obstacleId:{type:\"string\",id:4}}},SamplePoint:{fields:{pathTimePoint:{type:\"PathTimePoint\",id:1},refV:{type:\"double\",id:2}}},PathTimeObstacle:{fields:{obstacleId:{type:\"string\",id:1},bottomLeft:{type:\"PathTimePoint\",id:2},upperLeft:{type:\"PathTimePoint\",id:3},upperRight:{type:\"PathTimePoint\",id:4},bottomRight:{type:\"PathTimePoint\",id:5},timeLower:{type:\"double\",id:6},timeUpper:{type:\"double\",id:7},pathLower:{type:\"double\",id:8},pathUpper:{type:\"double\",id:9}}},StopPoint:{fields:{s:{type:\"double\",id:1},type:{type:\"Type\",id:2,options:{default:\"HARD\"}}},nested:{Type:{values:{HARD:0,SOFT:1}}}},PlanningTarget:{fields:{stopPoint:{type:\"StopPoint\",id:1},cruiseSpeed:{type:\"double\",id:2}}},NaviObstacleDeciderConfig:{fields:{minNudgeDistance:{type:\"double\",id:1,options:{default:.2}},maxNudgeDistance:{type:\"double\",id:2,options:{default:1.2}},maxAllowNudgeSpeed:{type:\"double\",id:3,options:{default:16.667}},safeDistance:{type:\"double\",id:4,options:{default:.2}},nudgeAllowTolerance:{type:\"double\",id:5,options:{default:.05}},cyclesNumber:{type:\"uint32\",id:6,options:{default:3}},judgeDisCoeff:{type:\"double\",id:7,options:{default:2}},basisDisValue:{type:\"double\",id:8,options:{default:30}},lateralVelocityValue:{type:\"double\",id:9,options:{default:.5}},speedDeciderDetectRange:{type:\"double\",id:10,options:{default:1}},maxKeepNudgeCycles:{type:\"uint32\",id:11,options:{default:100}}}},NaviPathDeciderConfig:{fields:{minPathLength:{type:\"double\",id:1,options:{default:5}},minLookForwardTime:{type:\"uint32\",id:2,options:{default:2}},maxKeepLaneDistance:{type:\"double\",id:3,options:{default:.8}},maxKeepLaneShiftY:{type:\"double\",id:4,options:{default:20}},minKeepLaneOffset:{type:\"double\",id:5,options:{default:15}},keepLaneShiftCompensation:{type:\"double\",id:6,options:{default:.01}},moveDestLaneConfigTalbe:{type:\"MoveDestLaneConfigTable\",id:7},moveDestLaneCompensation:{type:\"double\",id:8,options:{default:.35}},maxKappaThreshold:{type:\"double\",id:9,options:{default:0}},kappaMoveDestLaneCompensation:{type:\"double\",id:10,options:{default:0}},startPlanPointFrom:{type:\"uint32\",id:11,options:{default:0}}}},MoveDestLaneConfigTable:{fields:{lateralShift:{rule:\"repeated\",type:\"ShiftConfig\",id:1}}},ShiftConfig:{fields:{maxSpeed:{type:\"double\",id:1,options:{default:4.16}},maxMoveDestLaneShiftY:{type:\"double\",id:3,options:{default:.4}}}},NaviSpeedDeciderConfig:{fields:{preferredAccel:{type:\"double\",id:1,options:{default:2}},preferredDecel:{type:\"double\",id:2,options:{default:2}},preferredJerk:{type:\"double\",id:3,options:{default:2}},maxAccel:{type:\"double\",id:4,options:{default:4}},maxDecel:{type:\"double\",id:5,options:{default:5}},obstacleBuffer:{type:\"double\",id:6,options:{default:.5}},safeDistanceBase:{type:\"double\",id:7,options:{default:2}},safeDistanceRatio:{type:\"double\",id:8,options:{default:1}},followingAccelRatio:{type:\"double\",id:9,options:{default:.5}},softCentricAccelLimit:{type:\"double\",id:10,options:{default:1.2}},hardCentricAccelLimit:{type:\"double\",id:11,options:{default:1.5}},hardSpeedLimit:{type:\"double\",id:12,options:{default:100}},hardAccelLimit:{type:\"double\",id:13,options:{default:10}},enableSafePath:{type:\"bool\",id:14,options:{default:!0}},enablePlanningStartPoint:{type:\"bool\",id:15,options:{default:!0}},enableAccelAutoCompensation:{type:\"bool\",id:16,options:{default:!0}},kappaPreview:{type:\"double\",id:17,options:{default:0}},kappaThreshold:{type:\"double\",id:18,options:{default:0}}}},DrivingAction:{values:{FOLLOW:0,CHANGE_LEFT:1,CHANGE_RIGHT:2,PULL_OVER:3,STOP:4}},PadMessage:{fields:{header:{type:\"apollo.common.Header\",id:1},action:{type:\"DrivingAction\",id:2}}},PlannerOpenSpaceConfig:{fields:{warmStartConfig:{type:\"WarmStartConfig\",id:1},dualVariableWarmStartConfig:{type:\"DualVariableWarmStartConfig\",id:2},distanceApproachConfig:{type:\"DistanceApproachConfig\",id:3},deltaT:{type:\"float\",id:4,options:{default:1}},maxPositionErrorToEndPoint:{type:\"double\",id:5,options:{default:.5}},maxThetaErrorToEndPoint:{type:\"double\",id:6,options:{default:.2}}}},WarmStartConfig:{fields:{xyGridResolution:{type:\"double\",id:1,options:{default:.2}},phiGridResolution:{type:\"double\",id:2,options:{default:.05}},maxSteering:{type:\"double\",id:7,options:{default:.6}},nextNodeNum:{type:\"uint64\",id:8,options:{default:10}},stepSize:{type:\"double\",id:9,options:{default:.5}},backPenalty:{type:\"double\",id:10,options:{default:0}},gearSwitchPenalty:{type:\"double\",id:11,options:{default:10}},steerPenalty:{type:\"double\",id:12,options:{default:100}},steerChangePenalty:{type:\"double\",id:13,options:{default:10}}}},DualVariableWarmStartConfig:{fields:{weightD:{type:\"double\",id:1,options:{default:1}}}},DistanceApproachConfig:{fields:{weightU:{rule:\"repeated\",type:\"double\",id:1,options:{packed:!1}},weightURate:{rule:\"repeated\",type:\"double\",id:2,options:{packed:!1}},weightState:{rule:\"repeated\",type:\"double\",id:3,options:{packed:!1}},weightStitching:{rule:\"repeated\",type:\"double\",id:4,options:{packed:!1}},weightTime:{rule:\"repeated\",type:\"double\",id:5,options:{packed:!1}},minSafetyDistance:{type:\"double\",id:6,options:{default:0}},maxSteerAngle:{type:\"double\",id:7,options:{default:.6}},maxSteerRate:{type:\"double\",id:8,options:{default:.6}},maxSpeedForward:{type:\"double\",id:9,options:{default:3}},maxSpeedReverse:{type:\"double\",id:10,options:{default:2}},maxAccelerationForward:{type:\"double\",id:11,options:{default:2}},maxAccelerationReverse:{type:\"double\",id:12,options:{default:2}},minTimeSampleScaling:{type:\"double\",id:13,options:{default:.1}},maxTimeSampleScaling:{type:\"double\",id:14,options:{default:10}},useFixTime:{type:\"bool\",id:18,options:{default:!1}}}},ADCSignals:{fields:{signal:{rule:\"repeated\",type:\"SignalType\",id:1,options:{packed:!1}}},nested:{SignalType:{values:{LEFT_TURN:1,RIGHT_TURN:2,LOW_BEAM_LIGHT:3,HIGH_BEAM_LIGHT:4,FOG_LIGHT:5,EMERGENCY_LIGHT:6}}}},EStop:{fields:{isEstop:{type:\"bool\",id:1},reason:{type:\"string\",id:2}}},TaskStats:{fields:{name:{type:\"string\",id:1},timeMs:{type:\"double\",id:2}}},LatencyStats:{fields:{totalTimeMs:{type:\"double\",id:1},taskStats:{rule:\"repeated\",type:\"TaskStats\",id:2},initFrameTimeMs:{type:\"double\",id:3}}},ADCTrajectory:{fields:{header:{type:\"apollo.common.Header\",id:1},totalPathLength:{type:\"double\",id:2},totalPathTime:{type:\"double\",id:3},trajectoryPoint:{rule:\"repeated\",type:\"apollo.common.TrajectoryPoint\",id:12},estop:{type:\"EStop\",id:6},pathPoint:{rule:\"repeated\",type:\"apollo.common.PathPoint\",id:13},isReplan:{type:\"bool\",id:9,options:{default:!1}},gear:{type:\"apollo.canbus.Chassis.GearPosition\",id:10},decision:{type:\"apollo.planning.DecisionResult\",id:14},latencyStats:{type:\"LatencyStats\",id:15},routingHeader:{type:\"apollo.common.Header\",id:16},debug:{type:\"apollo.planning_internal.Debug\",id:8},rightOfWayStatus:{type:\"RightOfWayStatus\",id:17},laneId:{rule:\"repeated\",type:\"apollo.hdmap.Id\",id:18},engageAdvice:{type:\"apollo.common.EngageAdvice\",id:19},criticalRegion:{type:\"CriticalRegion\",id:20},trajectoryType:{type:\"TrajectoryType\",id:21,options:{default:\"UNKNOWN\"}}},nested:{RightOfWayStatus:{values:{UNPROTECTED:0,PROTECTED:1}},CriticalRegion:{fields:{region:{rule:\"repeated\",type:\"apollo.common.Polygon\",id:1}}},TrajectoryType:{values:{UNKNOWN:0,NORMAL:1,PATH_FALLBACK:2,SPEED_FALLBACK:3}}}},PathDeciderConfig:{fields:{}},TaskConfig:{oneofs:{taskConfig:{oneof:[\"dpPolyPathConfig\",\"dpStSpeedConfig\",\"qpSplinePathConfig\",\"qpStSpeedConfig\",\"polyStSpeedConfig\",\"pathDeciderConfig\",\"proceedWithCautionSpeedConfig\",\"qpPiecewiseJerkPathConfig\",\"deciderCreepConfig\",\"deciderRuleBasedStopConfig\",\"sidePassSafetyConfig\",\"sidePassPathDeciderConfig\",\"polyVtSpeedConfig\"]}},fields:{taskType:{type:\"TaskType\",id:1},dpPolyPathConfig:{type:\"DpPolyPathConfig\",id:2},dpStSpeedConfig:{type:\"DpStSpeedConfig\",id:3},qpSplinePathConfig:{type:\"QpSplinePathConfig\",id:4},qpStSpeedConfig:{type:\"QpStSpeedConfig\",id:5},polyStSpeedConfig:{type:\"PolyStSpeedConfig\",id:6},pathDeciderConfig:{type:\"PathDeciderConfig\",id:7},proceedWithCautionSpeedConfig:{type:\"ProceedWithCautionSpeedConfig\",id:8},qpPiecewiseJerkPathConfig:{type:\"QpPiecewiseJerkPathConfig\",id:9},deciderCreepConfig:{type:\"DeciderCreepConfig\",id:10},deciderRuleBasedStopConfig:{type:\"DeciderRuleBasedStopConfig\",id:11},sidePassSafetyConfig:{type:\"SidePassSafetyConfig\",id:12},sidePassPathDeciderConfig:{type:\"SidePassPathDeciderConfig\",id:13},polyVtSpeedConfig:{type:\"PolyVTSpeedConfig\",id:14}},nested:{TaskType:{values:{DP_POLY_PATH_OPTIMIZER:0,DP_ST_SPEED_OPTIMIZER:1,QP_SPLINE_PATH_OPTIMIZER:2,QP_SPLINE_ST_SPEED_OPTIMIZER:3,PATH_DECIDER:4,SPEED_DECIDER:5,POLY_ST_SPEED_OPTIMIZER:6,NAVI_PATH_DECIDER:7,NAVI_SPEED_DECIDER:8,NAVI_OBSTACLE_DECIDER:9,QP_PIECEWISE_JERK_PATH_OPTIMIZER:10,DECIDER_CREEP:11,DECIDER_RULE_BASED_STOP:12,SIDE_PASS_PATH_DECIDER:13,SIDE_PASS_SAFETY:14,PROCEED_WITH_CAUTION_SPEED:15,DECIDER_RSS:16}}}},ScenarioLaneFollowConfig:{fields:{}},ScenarioSidePassConfig:{fields:{sidePassExitDistance:{type:\"double\",id:1,options:{default:10}},approachObstacleMaxStopSpeed:{type:\"double\",id:2,options:{default:1e-5}},approachObstacleMinStopDistance:{type:\"double\",id:3,options:{default:4}},blockObstacleMinSpeed:{type:\"double\",id:4,options:{default:.1}}}},ScenarioStopSignUnprotectedConfig:{fields:{startStopSignScenarioDistance:{type:\"double\",id:1,options:{default:5}},watchVehicleMaxValidStopDistance:{type:\"double\",id:2,options:{default:5}},maxValidStopDistance:{type:\"double\",id:3,options:{default:3.5}},maxAdcStopSpeed:{type:\"double\",id:4,options:{default:.3}},stopDuration:{type:\"float\",id:5,options:{default:1}},minPassSDistance:{type:\"double\",id:6,options:{default:3}},waitTimeout:{type:\"float\",id:7,options:{default:8}}}},ScenarioTrafficLightRightTurnUnprotectedConfig:{fields:{startTrafficLightScenarioTimer:{type:\"uint32\",id:1,options:{default:20}},maxValidStopDistance:{type:\"double\",id:2,options:{default:3.5}},maxAdcStopSpeed:{type:\"double\",id:3,options:{default:.3}},minPassSDistance:{type:\"double\",id:4,options:{default:3}}}},ScenarioConfig:{oneofs:{scenarioConfig:{oneof:[\"laneFollowConfig\",\"sidePassConfig\",\"stopSignUnprotectedConfig\",\"trafficLightRightTurnUnprotectedConfig\"]}},fields:{scenarioType:{type:\"ScenarioType\",id:1},laneFollowConfig:{type:\"ScenarioLaneFollowConfig\",id:2},sidePassConfig:{type:\"ScenarioSidePassConfig\",id:3},stopSignUnprotectedConfig:{type:\"ScenarioStopSignUnprotectedConfig\",id:4},trafficLightRightTurnUnprotectedConfig:{type:\"ScenarioTrafficLightRightTurnUnprotectedConfig\",id:5},stageType:{rule:\"repeated\",type:\"StageType\",id:6,options:{packed:!1}},stageConfig:{rule:\"repeated\",type:\"StageConfig\",id:7}},nested:{ScenarioType:{values:{LANE_FOLLOW:0,CHANGE_LANE:1,SIDE_PASS:2,APPROACH:3,STOP_SIGN_PROTECTED:4,STOP_SIGN_UNPROTECTED:5,TRAFFIC_LIGHT_LEFT_TURN_PROTECTED:6,TRAFFIC_LIGHT_LEFT_TURN_UNPROTECTED:7,TRAFFIC_LIGHT_RIGHT_TURN_PROTECTED:8,TRAFFIC_LIGHT_RIGHT_TURN_UNPROTECTED:9,TRAFFIC_LIGHT_GO_THROUGH:10}},StageType:{values:{NO_STAGE:0,LANE_FOLLOW_DEFAULT_STAGE:1,STOP_SIGN_UNPROTECTED_PRE_STOP:100,STOP_SIGN_UNPROTECTED_STOP:101,STOP_SIGN_UNPROTECTED_CREEP:102,STOP_SIGN_UNPROTECTED_INTERSECTION_CRUISE:103,SIDE_PASS_APPROACH_OBSTACLE:200,SIDE_PASS_GENERATE_PATH:201,SIDE_PASS_STOP_ON_WAITPOINT:202,SIDE_PASS_DETECT_SAFETY:203,SIDE_PASS_PASS_OBSTACLE:204,SIDE_PASS_BACKUP:205,TRAFFIC_LIGHT_RIGHT_TURN_UNPROTECTED_STOP:300,TRAFFIC_LIGHT_RIGHT_TURN_UNPROTECTED_CREEP:301,TRAFFIC_LIGHT_RIGHT_TURN_UNPROTECTED_INTERSECTION_CRUISE:302}},StageConfig:{fields:{stageType:{type:\"StageType\",id:1},enabled:{type:\"bool\",id:2,options:{default:!0}},taskType:{rule:\"repeated\",type:\"TaskConfig.TaskType\",id:3,options:{packed:!1}},taskConfig:{rule:\"repeated\",type:\"TaskConfig\",id:4}}}}},PlannerPublicRoadConfig:{fields:{scenarioType:{rule:\"repeated\",type:\"ScenarioConfig.ScenarioType\",id:1,options:{packed:!1}}}},PlannerNaviConfig:{fields:{task:{rule:\"repeated\",type:\"TaskConfig.TaskType\",id:1,options:{packed:!1}},naviPathDeciderConfig:{type:\"NaviPathDeciderConfig\",id:2},naviSpeedDeciderConfig:{type:\"NaviSpeedDeciderConfig\",id:3},naviObstacleDeciderConfig:{type:\"NaviObstacleDeciderConfig\",id:4}}},PlannerType:{values:{RTK:0,PUBLIC_ROAD:1,OPEN_SPACE:2,NAVI:3,LATTICE:4}},RtkPlanningConfig:{fields:{plannerType:{type:\"PlannerType\",id:1}}},StandardPlanningConfig:{fields:{plannerType:{rule:\"repeated\",type:\"PlannerType\",id:1,options:{packed:!1}},plannerPublicRoadConfig:{type:\"PlannerPublicRoadConfig\",id:2}}},NavigationPlanningConfig:{fields:{plannerType:{rule:\"repeated\",type:\"PlannerType\",id:1,options:{packed:!1}},plannerNaviConfig:{type:\"PlannerNaviConfig\",id:4}}},OpenSpacePlanningConfig:{fields:{plannerType:{rule:\"repeated\",type:\"PlannerType\",id:1,options:{packed:!1}},plannerOpenSpaceConfig:{type:\"PlannerOpenSpaceConfig\",id:2}}},PlanningConfig:{oneofs:{planningConfig:{oneof:[\"rtkPlanningConfig\",\"standardPlanningConfig\",\"navigationPlanningConfig\",\"openSpacePlanningConfig\"]}},fields:{rtkPlanningConfig:{type:\"RtkPlanningConfig\",id:1},standardPlanningConfig:{type:\"StandardPlanningConfig\",id:2},navigationPlanningConfig:{type:\"NavigationPlanningConfig\",id:3},openSpacePlanningConfig:{type:\"OpenSpacePlanningConfig\",id:4},defaultTaskConfig:{rule:\"repeated\",type:\"TaskConfig\",id:5}}},StatsGroup:{fields:{max:{type:\"double\",id:1},min:{type:\"double\",id:2,options:{default:1e10}},sum:{type:\"double\",id:3},avg:{type:\"double\",id:4},num:{type:\"int32\",id:5}}},PlanningStats:{fields:{totalPathLength:{type:\"StatsGroup\",id:1},totalPathTime:{type:\"StatsGroup\",id:2},v:{type:\"StatsGroup\",id:3},a:{type:\"StatsGroup\",id:4},kappa:{type:\"StatsGroup\",id:5},dkappa:{type:\"StatsGroup\",id:6}}},ChangeLaneStatus:{fields:{status:{type:\"Status\",id:1},pathId:{type:\"string\",id:2},timestamp:{type:\"double\",id:3}},nested:{Status:{values:{IN_CHANGE_LANE:1,CHANGE_LANE_FAILED:2,CHANGE_LANE_SUCCESS:3}}}},StopTimer:{fields:{obstacleId:{type:\"string\",id:1},stopTime:{type:\"double\",id:2}}},CrosswalkStatus:{fields:{crosswalkId:{type:\"string\",id:1},stopTimers:{rule:\"repeated\",type:\"StopTimer\",id:2}}},PullOverStatus:{fields:{inPullOver:{type:\"bool\",id:1,options:{default:!1}},status:{type:\"Status\",id:2},inlaneDestPoint:{type:\"apollo.common.PointENU\",id:3},startPoint:{type:\"apollo.common.PointENU\",id:4},stopPoint:{type:\"apollo.common.PointENU\",id:5},stopPointHeading:{type:\"double\",id:6},reason:{type:\"Reason\",id:7},statusSetTime:{type:\"double\",id:8}},nested:{Reason:{values:{DESTINATION:1}},Status:{values:{UNKNOWN:1,IN_OPERATION:2,DONE:3,DISABLED:4}}}},ReroutingStatus:{fields:{lastReroutingTime:{type:\"double\",id:1},needRerouting:{type:\"bool\",id:2,options:{default:!1}},routingRequest:{type:\"routing.RoutingRequest\",id:3}}},RightOfWayStatus:{fields:{junction:{keyType:\"string\",type:\"bool\",id:1}}},SidePassStatus:{fields:{status:{type:\"Status\",id:1},waitStartTime:{type:\"double\",id:2},passObstacleId:{type:\"string\",id:3},passSide:{type:\"apollo.planning.ObjectSidePass.Type\",id:4}},nested:{Status:{values:{UNKNOWN:0,DRIVE:1,WAIT:2,SIDEPASS:3}}}},StopSignStatus:{fields:{stopSignId:{type:\"string\",id:1},status:{type:\"Status\",id:2},stopStartTime:{type:\"double\",id:3},laneWatchVehicles:{rule:\"repeated\",type:\"LaneWatchVehicles\",id:4}},nested:{Status:{values:{UNKNOWN:0,DRIVE:1,STOP:2,WAIT:3,CREEP:4,STOP_DONE:5}},LaneWatchVehicles:{fields:{laneId:{type:\"string\",id:1},watchVehicles:{rule:\"repeated\",type:\"string\",id:2}}}}},DestinationStatus:{fields:{hasPassedDestination:{type:\"bool\",id:1,options:{default:!1}}}},PlanningStatus:{fields:{changeLane:{type:\"ChangeLaneStatus\",id:1},crosswalk:{type:\"CrosswalkStatus\",id:2},engageAdvice:{type:\"apollo.common.EngageAdvice\",id:3},rerouting:{type:\"ReroutingStatus\",id:4},rightOfWay:{type:\"RightOfWayStatus\",id:5},sidePass:{type:\"SidePassStatus\",id:6},stopSign:{type:\"StopSignStatus\",id:7},destination:{type:\"DestinationStatus\",id:8},pullOver:{type:\"PullOverStatus\",id:9}}},PolyStSpeedConfig:{fields:{totalPathLength:{type:\"double\",id:1},totalTime:{type:\"double\",id:2},preferredAccel:{type:\"double\",id:3},preferredDecel:{type:\"double\",id:4},maxAccel:{type:\"double\",id:5},minDecel:{type:\"double\",id:6},speedLimitBuffer:{type:\"double\",id:7},speedWeight:{type:\"double\",id:8},jerkWeight:{type:\"double\",id:9},obstacleWeight:{type:\"double\",id:10},unblockingObstacleCost:{type:\"double\",id:11},stBoundaryConfig:{type:\"apollo.planning.StBoundaryConfig\",id:12}}},PolyVTSpeedConfig:{fields:{totalTime:{type:\"double\",id:1,options:{default:0}},totalS:{type:\"double\",id:2,options:{default:0}},numTLayers:{type:\"int32\",id:3},onlineNumVLayers:{type:\"int32\",id:4},matrixDimS:{type:\"int32\",id:5},onlineMaxAcc:{type:\"double\",id:6},onlineMaxDec:{type:\"double\",id:7},onlineMaxSpeed:{type:\"double\",id:8},offlineNumVLayers:{type:\"int32\",id:9},offlineMaxAcc:{type:\"double\",id:10},offlineMaxDec:{type:\"double\",id:11},offlineMaxSpeed:{type:\"double\",id:12},numEvaluatedPoints:{type:\"int32\",id:13},samplingUnitV:{type:\"double\",id:14},maxSamplingUnitV:{type:\"double\",id:15},stBoundaryConfig:{type:\"apollo.planning.StBoundaryConfig\",id:16}}},ProceedWithCautionSpeedConfig:{fields:{maxDistance:{type:\"double\",id:1,options:{default:5}}}},QpPiecewiseJerkPathConfig:{fields:{pathResolution:{type:\"double\",id:1,options:{default:1}},qpDeltaS:{type:\"double\",id:2,options:{default:1}},minLookAheadTime:{type:\"double\",id:3,options:{default:6}},minLookAheadDistance:{type:\"double\",id:4,options:{default:60}},lateralBuffer:{type:\"double\",id:5,options:{default:.2}},pathOutputResolution:{type:\"double\",id:6,options:{default:.1}},lWeight:{type:\"double\",id:7,options:{default:1}},dlWeight:{type:\"double\",id:8,options:{default:100}},ddlWeight:{type:\"double\",id:9,options:{default:500}},dddlWeight:{type:\"double\",id:10,options:{default:1e3}},guidingLineWeight:{type:\"double\",id:11,options:{default:1}}}},QuadraticProgrammingProblem:{fields:{paramSize:{type:\"int32\",id:1},quadraticMatrix:{type:\"QPMatrix\",id:2},bias:{rule:\"repeated\",type:\"double\",id:3,options:{packed:!1}},equalityMatrix:{type:\"QPMatrix\",id:4},equalityValue:{rule:\"repeated\",type:\"double\",id:5,options:{packed:!1}},inequalityMatrix:{type:\"QPMatrix\",id:6},inequalityValue:{rule:\"repeated\",type:\"double\",id:7,options:{packed:!1}},inputMarker:{rule:\"repeated\",type:\"double\",id:8,options:{packed:!1}},optimalParam:{rule:\"repeated\",type:\"double\",id:9,options:{packed:!1}}}},QPMatrix:{fields:{rowSize:{type:\"int32\",id:1},colSize:{type:\"int32\",id:2},element:{rule:\"repeated\",type:\"double\",id:3,options:{packed:!1}}}},QuadraticProgrammingProblemSet:{fields:{problem:{rule:\"repeated\",type:\"QuadraticProgrammingProblem\",id:1}}},QpSplinePathConfig:{fields:{splineOrder:{type:\"uint32\",id:1,options:{default:6}},maxSplineLength:{type:\"double\",id:2,options:{default:15}},maxConstraintInterval:{type:\"double\",id:3,options:{default:15}},timeResolution:{type:\"double\",id:4,options:{default:.1}},regularizationWeight:{type:\"double\",id:5,options:{default:.001}},firstSplineWeightFactor:{type:\"double\",id:6,options:{default:10}},derivativeWeight:{type:\"double\",id:7,options:{default:0}},secondDerivativeWeight:{type:\"double\",id:8,options:{default:0}},thirdDerivativeWeight:{type:\"double\",id:9,options:{default:100}},referenceLineWeight:{type:\"double\",id:10,options:{default:0}},numOutput:{type:\"uint32\",id:11,options:{default:100}},crossLaneLateralExtension:{type:\"double\",id:12,options:{default:1.2}},crossLaneLongitudinalExtension:{type:\"double\",id:13,options:{default:50}},historyPathWeight:{type:\"double\",id:14,options:{default:0}},laneChangeMidL:{type:\"double\",id:15,options:{default:.6}},pointConstraintSPosition:{type:\"double\",id:16,options:{default:110}},laneChangeLateralShift:{type:\"double\",id:17,options:{default:1}},uturnSpeedLimit:{type:\"double\",id:18,options:{default:5}}}},QpSplineConfig:{fields:{numberOfDiscreteGraphT:{type:\"uint32\",id:1},splineOrder:{type:\"uint32\",id:2},speedKernelWeight:{type:\"double\",id:3},accelKernelWeight:{type:\"double\",id:4},jerkKernelWeight:{type:\"double\",id:5},followWeight:{type:\"double\",id:6},stopWeight:{type:\"double\",id:7},cruiseWeight:{type:\"double\",id:8},regularizationWeight:{type:\"double\",id:9,options:{default:.1}},followDragDistance:{type:\"double\",id:10},dpStReferenceWeight:{type:\"double\",id:11},initJerkKernelWeight:{type:\"double\",id:12},yieldWeight:{type:\"double\",id:13},yieldDragDistance:{type:\"double\",id:14}}},QpPiecewiseConfig:{fields:{numberOfEvaluatedGraphT:{type:\"uint32\",id:1},accelKernelWeight:{type:\"double\",id:2},jerkKernelWeight:{type:\"double\",id:3},followWeight:{type:\"double\",id:4},stopWeight:{type:\"double\",id:5},cruiseWeight:{type:\"double\",id:6},regularizationWeight:{type:\"double\",id:7,options:{default:.1}},followDragDistance:{type:\"double\",id:8}}},QpStSpeedConfig:{fields:{totalPathLength:{type:\"double\",id:1,options:{default:200}},totalTime:{type:\"double\",id:2,options:{default:6}},preferredMaxAcceleration:{type:\"double\",id:4,options:{default:1.2}},preferredMinDeceleration:{type:\"double\",id:5,options:{default:-1.8}},maxAcceleration:{type:\"double\",id:6,options:{default:2}},minDeceleration:{type:\"double\",id:7,options:{default:-4.5}},qpSplineConfig:{type:\"QpSplineConfig\",id:8},qpPiecewiseConfig:{type:\"QpPiecewiseConfig\",id:9},stBoundaryConfig:{type:\"apollo.planning.StBoundaryConfig\",id:10}}},QpSplineSmootherConfig:{fields:{splineOrder:{type:\"uint32\",id:1,options:{default:5}},maxSplineLength:{type:\"double\",id:2,options:{default:25}},regularizationWeight:{type:\"double\",id:3,options:{default:.1}},secondDerivativeWeight:{type:\"double\",id:4,options:{default:0}},thirdDerivativeWeight:{type:\"double\",id:5,options:{default:100}}}},SpiralSmootherConfig:{fields:{maxDeviation:{type:\"double\",id:1,options:{default:.1}},piecewiseLength:{type:\"double\",id:2,options:{default:10}},maxIteration:{type:\"int32\",id:3,options:{default:1e3}},optTol:{type:\"double\",id:4,options:{default:1e-8}},optAcceptableTol:{type:\"double\",id:5,options:{default:1e-6}},optAcceptableIteration:{type:\"int32\",id:6,options:{default:15}},optWeightCurveLength:{type:\"double\",id:7,options:{default:0}},optWeightKappa:{type:\"double\",id:8,options:{default:1.5}},optWeightDkappa:{type:\"double\",id:9,options:{default:1}},optWeightD2kappa:{type:\"double\",id:10,options:{default:0}}}},CosThetaSmootherConfig:{fields:{maxPointDeviation:{type:\"double\",id:1,options:{default:5}},numOfIteration:{type:\"int32\",id:2,options:{default:1e4}},weightCosIncludedAngle:{type:\"double\",id:3,options:{default:1e4}},acceptableTol:{type:\"double\",id:4,options:{default:.1}},relax:{type:\"double\",id:5,options:{default:.2}},reoptQpBound:{type:\"double\",id:6,options:{default:.05}}}},ReferenceLineSmootherConfig:{oneofs:{SmootherConfig:{oneof:[\"qpSpline\",\"spiral\",\"cosTheta\"]}},fields:{maxConstraintInterval:{type:\"double\",id:1,options:{default:5}},longitudinalBoundaryBound:{type:\"double\",id:2,options:{default:1}},lateralBoundaryBound:{type:\"double\",id:3,options:{default:.1}},numOfTotalPoints:{type:\"uint32\",id:4,options:{default:500}},curbShift:{type:\"double\",id:5,options:{default:.2}},drivingSide:{type:\"DrivingSide\",id:6,options:{default:\"RIGHT\"}},wideLaneThresholdFactor:{type:\"double\",id:7,options:{default:2}},wideLaneShiftRemainFactor:{type:\"double\",id:8,options:{default:.5}},resolution:{type:\"double\",id:9,options:{default:.02}},qpSpline:{type:\"QpSplineSmootherConfig\",id:20},spiral:{type:\"SpiralSmootherConfig\",id:21},cosTheta:{type:\"CosThetaSmootherConfig\",id:22}},nested:{DrivingSide:{values:{LEFT:1,RIGHT:2}}}},SidePassPathDeciderConfig:{fields:{totalPathLength:{type:\"double\",id:1},pathResolution:{type:\"double\",id:2},maxDddl:{type:\"double\",id:3},lWeight:{type:\"double\",id:4},dlWeight:{type:\"double\",id:5},ddlWeight:{type:\"double\",id:6},dddlWeight:{type:\"double\",id:7},guidingLineWeight:{type:\"double\",id:8}}},SLBoundary:{fields:{startS:{type:\"double\",id:1},endS:{type:\"double\",id:2},startL:{type:\"double\",id:3},endL:{type:\"double\",id:4}}},SpiralCurveConfig:{fields:{simpsonSize:{type:\"int32\",id:1,options:{default:9}},newtonRaphsonTol:{type:\"double\",id:2,options:{default:.01}},newtonRaphsonMaxIter:{type:\"int32\",id:3,options:{default:20}}}},StBoundaryConfig:{fields:{boundaryBuffer:{type:\"double\",id:1,options:{default:.1}},highSpeedCentricAccelerationLimit:{type:\"double\",id:2,options:{default:1.2}},lowSpeedCentricAccelerationLimit:{type:\"double\",id:3,options:{default:1.4}},highSpeedThreshold:{type:\"double\",id:4,options:{default:20}},lowSpeedThreshold:{type:\"double\",id:5,options:{default:7}},minimalKappa:{type:\"double\",id:6,options:{default:1e-5}},pointExtension:{type:\"double\",id:7,options:{default:1}},lowestSpeed:{type:\"double\",id:8,options:{default:2.5}},numPointsToAvgKappa:{type:\"uint32\",id:9,options:{default:4}},staticObsNudgeSpeedRatio:{type:\"double\",id:10},dynamicObsNudgeSpeedRatio:{type:\"double\",id:11},centriJerkSpeedCoeff:{type:\"double\",id:12}}},BacksideVehicleConfig:{fields:{backsideLaneWidth:{type:\"double\",id:1,options:{default:4}}}},ChangeLaneConfig:{fields:{minOvertakeDistance:{type:\"double\",id:1,options:{default:10}},minOvertakeTime:{type:\"double\",id:2,options:{default:2}},enableGuardObstacle:{type:\"bool\",id:3,options:{default:!1}},guardDistance:{type:\"double\",id:4,options:{default:100}},minGuardSpeed:{type:\"double\",id:5,options:{default:1}}}},CreepConfig:{fields:{enabled:{type:\"bool\",id:1},creepDistanceToStopLine:{type:\"double\",id:2,options:{default:1}},stopDistance:{type:\"double\",id:3,options:{default:.5}},speedLimit:{type:\"double\",id:4,options:{default:1}},maxValidStopDistance:{type:\"double\",id:5,options:{default:.3}},minBoundaryT:{type:\"double\",id:6,options:{default:6}},minBoundaryS:{type:\"double\",id:7,options:{default:3}}}},CrosswalkConfig:{fields:{stopDistance:{type:\"double\",id:1,options:{default:1}},maxStopDeceleration:{type:\"double\",id:2,options:{default:4}},minPassSDistance:{type:\"double\",id:3,options:{default:1}},maxStopSpeed:{type:\"double\",id:4,options:{default:.3}},maxValidStopDistance:{type:\"double\",id:5,options:{default:3}},expandSDistance:{type:\"double\",id:6,options:{default:2}},stopStrickLDistance:{type:\"double\",id:7,options:{default:4}},stopLooseLDistance:{type:\"double\",id:8,options:{default:5}},stopTimeout:{type:\"double\",id:9,options:{default:10}}}},DestinationConfig:{fields:{enablePullOver:{type:\"bool\",id:1,options:{default:!1}},stopDistance:{type:\"double\",id:2,options:{default:.5}},pullOverPlanDistance:{type:\"double\",id:3,options:{default:35}}}},KeepClearConfig:{fields:{enableKeepClearZone:{type:\"bool\",id:1,options:{default:!0}},enableJunction:{type:\"bool\",id:2,options:{default:!0}},minPassSDistance:{type:\"double\",id:3,options:{default:2}}}},PullOverConfig:{fields:{stopDistance:{type:\"double\",id:1,options:{default:.5}},maxStopSpeed:{type:\"double\",id:2,options:{default:.3}},maxValidStopDistance:{type:\"double\",id:3,options:{default:3}},maxStopDeceleration:{type:\"double\",id:4,options:{default:2.5}},minPassSDistance:{type:\"double\",id:5,options:{default:1}},bufferToBoundary:{type:\"double\",id:6,options:{default:.5}},planDistance:{type:\"double\",id:7,options:{default:35}},operationLength:{type:\"double\",id:8,options:{default:30}},maxCheckDistance:{type:\"double\",id:9,options:{default:60}},maxFailureCount:{type:\"uint32\",id:10,options:{default:10}}}},ReferenceLineEndConfig:{fields:{stopDistance:{type:\"double\",id:1,options:{default:.5}},minReferenceLineRemainLength:{type:\"double\",id:2,options:{default:50}}}},ReroutingConfig:{fields:{cooldownTime:{type:\"double\",id:1,options:{default:3}},prepareReroutingTime:{type:\"double\",id:2,options:{default:2}}}},SignalLightConfig:{fields:{stopDistance:{type:\"double\",id:1,options:{default:1}},maxStopDeceleration:{type:\"double\",id:2,options:{default:4}},minPassSDistance:{type:\"double\",id:3,options:{default:4}},maxStopDeaccelerationYellowLight:{type:\"double\",id:4,options:{default:3}},signalExpireTimeSec:{type:\"double\",id:5,options:{default:5}},righTurnCreep:{type:\"CreepConfig\",id:6}}},StopSignConfig:{fields:{stopDistance:{type:\"double\",id:1,options:{default:1}},minPassSDistance:{type:\"double\",id:2,options:{default:1}},maxStopSpeed:{type:\"double\",id:3,options:{default:.3}},maxValidStopDistance:{type:\"double\",id:4,options:{default:3}},stopDuration:{type:\"double\",id:5,options:{default:1}},watchVehicleMaxValidStopSpeed:{type:\"double\",id:6,options:{default:.5}},watchVehicleMaxValidStopDistance:{type:\"double\",id:7,options:{default:5}},waitTimeout:{type:\"double\",id:8,options:{default:8}},creep:{type:\"CreepConfig\",id:9}}},TrafficRuleConfig:{oneofs:{config:{oneof:[\"backsideVehicle\",\"changeLane\",\"crosswalk\",\"destination\",\"keepClear\",\"pullOver\",\"referenceLineEnd\",\"rerouting\",\"signalLight\",\"stopSign\"]}},fields:{ruleId:{type:\"RuleId\",id:1},enabled:{type:\"bool\",id:2},backsideVehicle:{type:\"BacksideVehicleConfig\",id:3},changeLane:{type:\"ChangeLaneConfig\",id:4},crosswalk:{type:\"CrosswalkConfig\",id:5},destination:{type:\"DestinationConfig\",id:6},keepClear:{type:\"KeepClearConfig\",id:7},pullOver:{type:\"PullOverConfig\",id:8},referenceLineEnd:{type:\"ReferenceLineEndConfig\",id:9},rerouting:{type:\"ReroutingConfig\",id:10},signalLight:{type:\"SignalLightConfig\",id:11},stopSign:{type:\"StopSignConfig\",id:12}},nested:{RuleId:{values:{BACKSIDE_VEHICLE:1,CHANGE_LANE:2,CROSSWALK:3,DESTINATION:4,KEEP_CLEAR:5,PULL_OVER:6,REFERENCE_LINE_END:7,REROUTING:8,SIGNAL_LIGHT:9,STOP_SIGN:10}}}},TrafficRuleConfigs:{fields:{config:{rule:\"repeated\",type:\"TrafficRuleConfig\",id:1}}},WaypointSamplerConfig:{fields:{samplePointsNumEachLevel:{type:\"uint32\",id:1,options:{default:9}},stepLengthMax:{type:\"double\",id:2,options:{default:15}},stepLengthMin:{type:\"double\",id:3,options:{default:8}},lateralSampleOffset:{type:\"double\",id:4,options:{default:.5}},lateralAdjustCoeff:{type:\"double\",id:5,options:{default:.5}},sidepassDistance:{type:\"double\",id:6},navigatorSampleNumEachLevel:{type:\"uint32\",id:7}}}}},planning_internal:{nested:{Debug:{fields:{planningData:{type:\"PlanningData\",id:2}}},SpeedPlan:{fields:{name:{type:\"string\",id:1},speedPoint:{rule:\"repeated\",type:\"apollo.common.SpeedPoint\",id:2}}},StGraphBoundaryDebug:{fields:{name:{type:\"string\",id:1},point:{rule:\"repeated\",type:\"apollo.common.SpeedPoint\",id:2},type:{type:\"StBoundaryType\",id:3}},nested:{StBoundaryType:{values:{ST_BOUNDARY_TYPE_UNKNOWN:1,ST_BOUNDARY_TYPE_STOP:2,ST_BOUNDARY_TYPE_FOLLOW:3,ST_BOUNDARY_TYPE_YIELD:4,ST_BOUNDARY_TYPE_OVERTAKE:5,ST_BOUNDARY_TYPE_KEEP_CLEAR:6}}}},SLFrameDebug:{fields:{name:{type:\"string\",id:1},sampledS:{rule:\"repeated\",type:\"double\",id:2,options:{packed:!1}},staticObstacleLowerBound:{rule:\"repeated\",type:\"double\",id:3,options:{packed:!1}},dynamicObstacleLowerBound:{rule:\"repeated\",type:\"double\",id:4,options:{packed:!1}},staticObstacleUpperBound:{rule:\"repeated\",type:\"double\",id:5,options:{packed:!1}},dynamicObstacleUpperBound:{rule:\"repeated\",type:\"double\",id:6,options:{packed:!1}},mapLowerBound:{rule:\"repeated\",type:\"double\",id:7,options:{packed:!1}},mapUpperBound:{rule:\"repeated\",type:\"double\",id:8,options:{packed:!1}},slPath:{rule:\"repeated\",type:\"apollo.common.SLPoint\",id:9},aggregatedBoundaryS:{rule:\"repeated\",type:\"double\",id:10,options:{packed:!1}},aggregatedBoundaryLow:{rule:\"repeated\",type:\"double\",id:11,options:{packed:!1}},aggregatedBoundaryHigh:{rule:\"repeated\",type:\"double\",id:12,options:{packed:!1}}}},STGraphDebug:{fields:{name:{type:\"string\",id:1},boundary:{rule:\"repeated\",type:\"StGraphBoundaryDebug\",id:2},speedLimit:{rule:\"repeated\",type:\"apollo.common.SpeedPoint\",id:3},speedProfile:{rule:\"repeated\",type:\"apollo.common.SpeedPoint\",id:4},speedConstraint:{type:\"STGraphSpeedConstraint\",id:5},kernelCruiseRef:{type:\"STGraphKernelCuiseRef\",id:6},kernelFollowRef:{type:\"STGraphKernelFollowRef\",id:7}},nested:{STGraphSpeedConstraint:{fields:{t:{rule:\"repeated\",type:\"double\",id:1,options:{packed:!1}},lowerBound:{rule:\"repeated\",type:\"double\",id:2,options:{packed:!1}},upperBound:{rule:\"repeated\",type:\"double\",id:3,options:{packed:!1}}}},STGraphKernelCuiseRef:{fields:{t:{rule:\"repeated\",type:\"double\",id:1,options:{packed:!1}},cruiseLineS:{rule:\"repeated\",type:\"double\",id:2,options:{packed:!1}}}},STGraphKernelFollowRef:{fields:{t:{rule:\"repeated\",type:\"double\",id:1,options:{packed:!1}},followLineS:{rule:\"repeated\",type:\"double\",id:2,options:{packed:!1}}}}}},SignalLightDebug:{fields:{adcSpeed:{type:\"double\",id:1},adcFrontS:{type:\"double\",id:2},signal:{rule:\"repeated\",type:\"SignalDebug\",id:3}},nested:{SignalDebug:{fields:{lightId:{type:\"string\",id:1},color:{type:\"apollo.perception.TrafficLight.Color\",id:2},lightStopS:{type:\"double\",id:3},adcStopDeacceleration:{type:\"double\",id:4},isStopWallCreated:{type:\"bool\",id:5}}}}},DecisionTag:{fields:{deciderTag:{type:\"string\",id:1},decision:{type:\"apollo.planning.ObjectDecisionType\",id:2}}},ObstacleDebug:{fields:{id:{type:\"string\",id:1},slBoundary:{type:\"apollo.planning.SLBoundary\",id:2},decisionTag:{rule:\"repeated\",type:\"DecisionTag\",id:3},verticesXCoords:{rule:\"repeated\",type:\"double\",id:4,options:{packed:!1}},verticesYCoords:{rule:\"repeated\",type:\"double\",id:5,options:{packed:!1}}}},ReferenceLineDebug:{fields:{id:{type:\"string\",id:1},length:{type:\"double\",id:2},cost:{type:\"double\",id:3},isChangeLanePath:{type:\"bool\",id:4},isDrivable:{type:\"bool\",id:5},isProtected:{type:\"bool\",id:6}}},SampleLayerDebug:{fields:{slPoint:{rule:\"repeated\",type:\"apollo.common.SLPoint\",id:1}}},DpPolyGraphDebug:{fields:{sampleLayer:{rule:\"repeated\",type:\"SampleLayerDebug\",id:1},minCostPoint:{rule:\"repeated\",type:\"apollo.common.SLPoint\",id:2}}},ScenarioDebug:{fields:{scenarioType:{type:\"apollo.planning.ScenarioConfig.ScenarioType\",id:1},stageType:{type:\"apollo.planning.ScenarioConfig.StageType\",id:2}}},Trajectories:{fields:{trajectory:{rule:\"repeated\",type:\"apollo.common.Trajectory\",id:1}}},OpenSpaceDebug:{fields:{trajectories:{type:\"apollo.planning_internal.Trajectories\",id:1},warmStartTrajectory:{type:\"apollo.common.VehicleMotion\",id:2},smoothedTrajectory:{type:\"apollo.common.VehicleMotion\",id:3},warmStartDualLambda:{rule:\"repeated\",type:\"double\",id:4,options:{packed:!1}},warmStartDualMiu:{rule:\"repeated\",type:\"double\",id:5,options:{packed:!1}},optimizedDualLambda:{rule:\"repeated\",type:\"double\",id:6,options:{packed:!1}},optimizedDualMiu:{rule:\"repeated\",type:\"double\",id:7,options:{packed:!1}},xyBoundary:{rule:\"repeated\",type:\"double\",id:8,options:{packed:!1}},obstacles:{rule:\"repeated\",type:\"apollo.planning_internal.ObstacleDebug\",id:9}}},PlanningData:{fields:{adcPosition:{type:\"apollo.localization.LocalizationEstimate\",id:7},chassis:{type:\"apollo.canbus.Chassis\",id:8},routing:{type:\"apollo.routing.RoutingResponse\",id:9},initPoint:{type:\"apollo.common.TrajectoryPoint\",id:10},path:{rule:\"repeated\",type:\"apollo.common.Path\",id:6},speedPlan:{rule:\"repeated\",type:\"SpeedPlan\",id:13},stGraph:{rule:\"repeated\",type:\"STGraphDebug\",id:14},slFrame:{rule:\"repeated\",type:\"SLFrameDebug\",id:15},predictionHeader:{type:\"apollo.common.Header\",id:16},signalLight:{type:\"SignalLightDebug\",id:17},obstacle:{rule:\"repeated\",type:\"ObstacleDebug\",id:18},referenceLine:{rule:\"repeated\",type:\"ReferenceLineDebug\",id:19},dpPolyGraph:{type:\"DpPolyGraphDebug\",id:20},latticeStImage:{type:\"LatticeStTraining\",id:21},relativeMap:{type:\"apollo.relative_map.MapMsg\",id:22},autoTuningTrainingData:{type:\"AutoTuningTrainingData\",id:23},frontClearDistance:{type:\"double\",id:24},chart:{rule:\"repeated\",type:\"apollo.dreamview.Chart\",id:25},scenario:{type:\"ScenarioDebug\",id:26},openSpace:{type:\"OpenSpaceDebug\",id:27}}},LatticeStPixel:{fields:{s:{type:\"int32\",id:1},t:{type:\"int32\",id:2},r:{type:\"uint32\",id:3},g:{type:\"uint32\",id:4},b:{type:\"uint32\",id:5}}},LatticeStTraining:{fields:{pixel:{rule:\"repeated\",type:\"LatticeStPixel\",id:1},timestamp:{type:\"double\",id:2},annotation:{type:\"string\",id:3},numSGrids:{type:\"uint32\",id:4},numTGrids:{type:\"uint32\",id:5},sResolution:{type:\"double\",id:6},tResolution:{type:\"double\",id:7}}},CostComponents:{fields:{costComponent:{rule:\"repeated\",type:\"double\",id:1,options:{packed:!1}}}},AutoTuningTrainingData:{fields:{teacherComponent:{type:\"CostComponents\",id:1},studentComponent:{type:\"CostComponents\",id:2}}},CloudReferenceLineRequest:{fields:{laneSegment:{rule:\"repeated\",type:\"apollo.routing.LaneSegment\",id:1}}},CloudReferenceLineRoutingRequest:{fields:{routing:{type:\"apollo.routing.RoutingResponse\",id:1}}},CloudReferenceLineResponse:{fields:{segment:{rule:\"repeated\",type:\"apollo.common.Path\",id:1}}}}},perception:{nested:{TrafficLightBox:{fields:{x:{type:\"int32\",id:1},y:{type:\"int32\",id:2},width:{type:\"int32\",id:3},height:{type:\"int32\",id:4},color:{type:\"TrafficLight.Color\",id:5},selected:{type:\"bool\",id:6},cameraName:{type:\"string\",id:7}}},TrafficLightDebug:{fields:{cropbox:{type:\"TrafficLightBox\",id:1},box:{rule:\"repeated\",type:\"TrafficLightBox\",id:2},signalNum:{type:\"int32\",id:3},validPos:{type:\"int32\",id:4},tsDiffPos:{type:\"double\",id:5},tsDiffSys:{type:\"double\",id:6},projectError:{type:\"int32\",id:7},distanceToStopLine:{type:\"double\",id:8},cameraId:{type:\"int32\",id:9,options:{deprecated:!0}},cropRoi:{rule:\"repeated\",type:\"TrafficLightBox\",id:10},projectedRoi:{rule:\"repeated\",type:\"TrafficLightBox\",id:11},rectifiedRoi:{rule:\"repeated\",type:\"TrafficLightBox\",id:12},debugRoi:{rule:\"repeated\",type:\"TrafficLightBox\",id:13}}},TrafficLight:{fields:{color:{type:\"Color\",id:1},id:{type:\"string\",id:2},confidence:{type:\"double\",id:3,options:{default:1}},trackingTime:{type:\"double\",id:4},blink:{type:\"bool\",id:5},remainingTime:{type:\"double\",id:6}},nested:{Color:{values:{UNKNOWN:0,RED:1,YELLOW:2,GREEN:3,BLACK:4}}}},TrafficLightDetection:{fields:{header:{type:\"apollo.common.Header\",id:2},trafficLight:{rule:\"repeated\",type:\"TrafficLight\",id:1},trafficLightDebug:{type:\"TrafficLightDebug\",id:3},containLights:{type:\"bool\",id:4},cameraId:{type:\"CameraID\",id:5}},nested:{CameraID:{values:{CAMERA_FRONT_LONG:0,CAMERA_FRONT_NARROW:1,CAMERA_FRONT_SHORT:2,CAMERA_FRONT_WIDE:3}}}},BBox2D:{fields:{xmin:{type:\"double\",id:1},ymin:{type:\"double\",id:2},xmax:{type:\"double\",id:3},ymax:{type:\"double\",id:4}}},LightStatus:{fields:{brakeVisible:{type:\"double\",id:1},brakeSwitchOn:{type:\"double\",id:2},leftTurnVisible:{type:\"double\",id:3},leftTurnSwitchOn:{type:\"double\",id:4},rightTurnVisible:{type:\"double\",id:5},rightTurnSwitchOn:{type:\"double\",id:6}}},SensorMeasurement:{fields:{sensorId:{type:\"string\",id:1},id:{type:\"int32\",id:2},position:{type:\"common.Point3D\",id:3},theta:{type:\"double\",id:4},length:{type:\"double\",id:5},width:{type:\"double\",id:6},height:{type:\"double\",id:7},velocity:{type:\"common.Point3D\",id:8},type:{type:\"PerceptionObstacle.Type\",id:9},subType:{type:\"PerceptionObstacle.SubType\",id:10},timestamp:{type:\"double\",id:11},box:{type:\"BBox2D\",id:12}}},PerceptionObstacle:{fields:{id:{type:\"int32\",id:1},position:{type:\"common.Point3D\",id:2},theta:{type:\"double\",id:3},velocity:{type:\"common.Point3D\",id:4},length:{type:\"double\",id:5},width:{type:\"double\",id:6},height:{type:\"double\",id:7},polygonPoint:{rule:\"repeated\",type:\"common.Point3D\",id:8},trackingTime:{type:\"double\",id:9},type:{type:\"Type\",id:10},timestamp:{type:\"double\",id:11},pointCloud:{rule:\"repeated\",type:\"double\",id:12},confidence:{type:\"double\",id:13,options:{deprecated:!0}},confidenceType:{type:\"ConfidenceType\",id:14,options:{deprecated:!0}},drops:{rule:\"repeated\",type:\"common.Point3D\",id:15,options:{deprecated:!0}},acceleration:{type:\"common.Point3D\",id:16},anchorPoint:{type:\"common.Point3D\",id:17},bbox2d:{type:\"BBox2D\",id:18},subType:{type:\"SubType\",id:19},measurements:{rule:\"repeated\",type:\"SensorMeasurement\",id:20},heightAboveGround:{type:\"double\",id:21,options:{default:null}},positionCovariance:{rule:\"repeated\",type:\"double\",id:22},velocityCovariance:{rule:\"repeated\",type:\"double\",id:23},accelerationCovariance:{rule:\"repeated\",type:\"double\",id:24},lightStatus:{type:\"LightStatus\",id:25}},nested:{Type:{values:{UNKNOWN:0,UNKNOWN_MOVABLE:1,UNKNOWN_UNMOVABLE:2,PEDESTRIAN:3,BICYCLE:4,VEHICLE:5}},ConfidenceType:{values:{CONFIDENCE_UNKNOWN:0,CONFIDENCE_CNN:1,CONFIDENCE_RADAR:2}},SubType:{values:{ST_UNKNOWN:0,ST_UNKNOWN_MOVABLE:1,ST_UNKNOWN_UNMOVABLE:2,ST_CAR:3,ST_VAN:4,ST_TRUCK:5,ST_BUS:6,ST_CYCLIST:7,ST_MOTORCYCLIST:8,ST_TRICYCLIST:9,ST_PEDESTRIAN:10,ST_TRAFFICCONE:11}}}},LaneMarker:{fields:{laneType:{type:\"apollo.hdmap.LaneBoundaryType.Type\",id:1},quality:{type:\"double\",id:2},modelDegree:{type:\"int32\",id:3},c0Position:{type:\"double\",id:4},c1HeadingAngle:{type:\"double\",id:5},c2Curvature:{type:\"double\",id:6},c3CurvatureDerivative:{type:\"double\",id:7},viewRange:{type:\"double\",id:8},longitudeStart:{type:\"double\",id:9},longitudeEnd:{type:\"double\",id:10}}},LaneMarkers:{fields:{leftLaneMarker:{type:\"LaneMarker\",id:1},rightLaneMarker:{type:\"LaneMarker\",id:2},nextLeftLaneMarker:{rule:\"repeated\",type:\"LaneMarker\",id:3},nextRightLaneMarker:{rule:\"repeated\",type:\"LaneMarker\",id:4}}},CIPVInfo:{fields:{cipvId:{type:\"int32\",id:1},potentialCipvId:{rule:\"repeated\",type:\"int32\",id:2,options:{packed:!1}}}},PerceptionObstacles:{fields:{perceptionObstacle:{rule:\"repeated\",type:\"PerceptionObstacle\",id:1},header:{type:\"common.Header\",id:2},errorCode:{type:\"common.ErrorCode\",id:3,options:{default:\"OK\"}},laneMarker:{type:\"LaneMarkers\",id:4},cipvInfo:{type:\"CIPVInfo\",id:5}}}}},routing:{nested:{LaneWaypoint:{fields:{id:{type:\"string\",id:1},s:{type:\"double\",id:2},pose:{type:\"apollo.common.PointENU\",id:3}}},LaneSegment:{fields:{id:{type:\"string\",id:1},startS:{type:\"double\",id:2},endS:{type:\"double\",id:3}}},RoutingRequest:{fields:{header:{type:\"apollo.common.Header\",id:1},waypoint:{rule:\"repeated\",type:\"LaneWaypoint\",id:2},blacklistedLane:{rule:\"repeated\",type:\"LaneSegment\",id:3},blacklistedRoad:{rule:\"repeated\",type:\"string\",id:4},broadcast:{type:\"bool\",id:5,options:{default:!0}},parkingSpace:{type:\"apollo.hdmap.ParkingSpace\",id:6}}},Measurement:{fields:{distance:{type:\"double\",id:1}}},ChangeLaneType:{values:{FORWARD:0,LEFT:1,RIGHT:2}},Passage:{fields:{segment:{rule:\"repeated\",type:\"LaneSegment\",id:1},canExit:{type:\"bool\",id:2},changeLaneType:{type:\"ChangeLaneType\",id:3,options:{default:\"FORWARD\"}}}},RoadSegment:{fields:{id:{type:\"string\",id:1},passage:{rule:\"repeated\",type:\"Passage\",id:2}}},RoutingResponse:{fields:{header:{type:\"apollo.common.Header\",id:1},road:{rule:\"repeated\",type:\"RoadSegment\",id:2},measurement:{type:\"Measurement\",id:3},routingRequest:{type:\"RoutingRequest\",id:4},mapVersion:{type:\"bytes\",id:5},status:{type:\"apollo.common.StatusPb\",id:6}}}}},hdmap:{nested:{Projection:{fields:{proj:{type:\"string\",id:1}}},Header:{fields:{version:{type:\"bytes\",id:1},date:{type:\"bytes\",id:2},projection:{type:\"Projection\",id:3},district:{type:\"bytes\",id:4},generation:{type:\"bytes\",id:5},revMajor:{type:\"bytes\",id:6},revMinor:{type:\"bytes\",id:7},left:{type:\"double\",id:8},top:{type:\"double\",id:9},right:{type:\"double\",id:10},bottom:{type:\"double\",id:11},vendor:{type:\"bytes\",id:12}}},Map:{fields:{header:{type:\"Header\",id:1},crosswalk:{rule:\"repeated\",type:\"Crosswalk\",id:2},junction:{rule:\"repeated\",type:\"Junction\",id:3},lane:{rule:\"repeated\",type:\"Lane\",id:4},stopSign:{rule:\"repeated\",type:\"StopSign\",id:5},signal:{rule:\"repeated\",type:\"Signal\",id:6},yield:{rule:\"repeated\",type:\"YieldSign\",id:7},overlap:{rule:\"repeated\",type:\"Overlap\",id:8},clearArea:{rule:\"repeated\",type:\"ClearArea\",id:9},speedBump:{rule:\"repeated\",type:\"SpeedBump\",id:10},road:{rule:\"repeated\",type:\"Road\",id:11},parkingSpace:{rule:\"repeated\",type:\"ParkingSpace\",id:12},pncJunction:{rule:\"repeated\",type:\"PNCJunction\",id:13}}},ClearArea:{fields:{id:{type:\"Id\",id:1},overlapId:{rule:\"repeated\",type:\"Id\",id:2},polygon:{type:\"Polygon\",id:3}}},Crosswalk:{fields:{id:{type:\"Id\",id:1},polygon:{type:\"Polygon\",id:2},overlapId:{rule:\"repeated\",type:\"Id\",id:3}}},Polygon:{fields:{point:{rule:\"repeated\",type:\"apollo.common.PointENU\",id:1}}},LineSegment:{fields:{point:{rule:\"repeated\",type:\"apollo.common.PointENU\",id:1}}},CurveSegment:{oneofs:{curveType:{oneof:[\"lineSegment\"]}},fields:{lineSegment:{type:\"LineSegment\",id:1},s:{type:\"double\",id:6},startPosition:{type:\"apollo.common.PointENU\",id:7},heading:{type:\"double\",id:8},length:{type:\"double\",id:9}}},Curve:{fields:{segment:{rule:\"repeated\",type:\"CurveSegment\",id:1}}},Id:{fields:{id:{type:\"string\",id:1}}},Junction:{fields:{id:{type:\"Id\",id:1},polygon:{type:\"Polygon\",id:2},overlapId:{rule:\"repeated\",type:\"Id\",id:3}}},LaneBoundaryType:{fields:{s:{type:\"double\",id:1},types:{rule:\"repeated\",type:\"Type\",id:2,options:{packed:!1}}},nested:{Type:{values:{UNKNOWN:0,DOTTED_YELLOW:1,DOTTED_WHITE:2,SOLID_YELLOW:3,SOLID_WHITE:4,DOUBLE_YELLOW:5,CURB:6}}}},LaneBoundary:{fields:{curve:{type:\"Curve\",id:1},length:{type:\"double\",id:2},virtual:{type:\"bool\",id:3},boundaryType:{rule:\"repeated\",type:\"LaneBoundaryType\",id:4}}},LaneSampleAssociation:{fields:{s:{type:\"double\",id:1},width:{type:\"double\",id:2}}},Lane:{fields:{id:{type:\"Id\",id:1},centralCurve:{type:\"Curve\",id:2},leftBoundary:{type:\"LaneBoundary\",id:3},rightBoundary:{type:\"LaneBoundary\",id:4},length:{type:\"double\",id:5},speedLimit:{type:\"double\",id:6},overlapId:{rule:\"repeated\",type:\"Id\",id:7},predecessorId:{rule:\"repeated\",type:\"Id\",id:8},successorId:{rule:\"repeated\",type:\"Id\",id:9},leftNeighborForwardLaneId:{rule:\"repeated\",type:\"Id\",id:10},rightNeighborForwardLaneId:{rule:\"repeated\",type:\"Id\",id:11},type:{type:\"LaneType\",id:12},turn:{type:\"LaneTurn\",id:13},leftNeighborReverseLaneId:{rule:\"repeated\",type:\"Id\",id:14},rightNeighborReverseLaneId:{rule:\"repeated\",type:\"Id\",id:15},junctionId:{type:\"Id\",id:16},leftSample:{rule:\"repeated\",type:\"LaneSampleAssociation\",id:17},rightSample:{rule:\"repeated\",type:\"LaneSampleAssociation\",id:18},direction:{type:\"LaneDirection\",id:19},leftRoadSample:{rule:\"repeated\",type:\"LaneSampleAssociation\",id:20},rightRoadSample:{rule:\"repeated\",type:\"LaneSampleAssociation\",id:21},selfReverseLaneId:{rule:\"repeated\",type:\"Id\",id:22}},nested:{LaneType:{values:{NONE:1,CITY_DRIVING:2,BIKING:3,SIDEWALK:4,PARKING:5,SHOULDER:6}},LaneTurn:{values:{NO_TURN:1,LEFT_TURN:2,RIGHT_TURN:3,U_TURN:4}},LaneDirection:{values:{FORWARD:1,BACKWARD:2,BIDIRECTION:3}}}},LaneOverlapInfo:{fields:{startS:{type:\"double\",id:1},endS:{type:\"double\",id:2},isMerge:{type:\"bool\",id:3},regionOverlapId:{type:\"Id\",id:4}}},SignalOverlapInfo:{fields:{}},StopSignOverlapInfo:{fields:{}},CrosswalkOverlapInfo:{fields:{regionOverlapId:{type:\"Id\",id:1}}},JunctionOverlapInfo:{fields:{}},YieldOverlapInfo:{fields:{}},ClearAreaOverlapInfo:{fields:{}},SpeedBumpOverlapInfo:{fields:{}},ParkingSpaceOverlapInfo:{fields:{}},PNCJunctionOverlapInfo:{fields:{}},RegionOverlapInfo:{fields:{id:{type:\"Id\",id:1},polygon:{rule:\"repeated\",type:\"Polygon\",id:2}}},ObjectOverlapInfo:{oneofs:{overlapInfo:{oneof:[\"laneOverlapInfo\",\"signalOverlapInfo\",\"stopSignOverlapInfo\",\"crosswalkOverlapInfo\",\"junctionOverlapInfo\",\"yieldSignOverlapInfo\",\"clearAreaOverlapInfo\",\"speedBumpOverlapInfo\",\"parkingSpaceOverlapInfo\",\"pncJunctionOverlapInfo\"]}},fields:{id:{type:\"Id\",id:1},laneOverlapInfo:{type:\"LaneOverlapInfo\",id:3},signalOverlapInfo:{type:\"SignalOverlapInfo\",id:4},stopSignOverlapInfo:{type:\"StopSignOverlapInfo\",id:5},crosswalkOverlapInfo:{type:\"CrosswalkOverlapInfo\",id:6},junctionOverlapInfo:{type:\"JunctionOverlapInfo\",id:7},yieldSignOverlapInfo:{type:\"YieldOverlapInfo\",id:8},clearAreaOverlapInfo:{type:\"ClearAreaOverlapInfo\",id:9},speedBumpOverlapInfo:{type:\"SpeedBumpOverlapInfo\",id:10},parkingSpaceOverlapInfo:{type:\"ParkingSpaceOverlapInfo\",id:11},pncJunctionOverlapInfo:{type:\"PNCJunctionOverlapInfo\",id:12}}},Overlap:{fields:{id:{type:\"Id\",id:1},object:{rule:\"repeated\",type:\"ObjectOverlapInfo\",id:2},regionOverlap:{rule:\"repeated\",type:\"RegionOverlapInfo\",id:3}}},ParkingSpace:{fields:{id:{type:\"Id\",id:1},polygon:{type:\"Polygon\",id:2},overlapId:{rule:\"repeated\",type:\"Id\",id:3},heading:{type:\"double\",id:4}}},ParkingLot:{fields:{id:{type:\"Id\",id:1},polygon:{type:\"Polygon\",id:2},overlapId:{rule:\"repeated\",type:\"Id\",id:3}}},PNCJunction:{fields:{id:{type:\"Id\",id:1},polygon:{type:\"Polygon\",id:2},overlapId:{rule:\"repeated\",type:\"Id\",id:3}}},BoundaryEdge:{fields:{curve:{type:\"Curve\",id:1},type:{type:\"Type\",id:2}},nested:{Type:{values:{UNKNOWN:0,NORMAL:1,LEFT_BOUNDARY:2,RIGHT_BOUNDARY:3}}}},BoundaryPolygon:{fields:{edge:{rule:\"repeated\",type:\"BoundaryEdge\",id:1}}},RoadBoundary:{fields:{outerPolygon:{type:\"BoundaryPolygon\",id:1},hole:{rule:\"repeated\",type:\"BoundaryPolygon\",id:2}}},RoadROIBoundary:{fields:{id:{type:\"Id\",id:1},roadBoundaries:{rule:\"repeated\",type:\"RoadBoundary\",id:2}}},RoadSection:{fields:{id:{type:\"Id\",id:1},laneId:{rule:\"repeated\",type:\"Id\",id:2},boundary:{type:\"RoadBoundary\",id:3}}},Road:{fields:{id:{type:\"Id\",id:1},section:{rule:\"repeated\",type:\"RoadSection\",id:2},junctionId:{type:\"Id\",id:3}}},Subsignal:{fields:{id:{type:\"Id\",id:1},type:{type:\"Type\",id:2},location:{type:\"apollo.common.PointENU\",id:3}},nested:{Type:{values:{UNKNOWN:1,CIRCLE:2,ARROW_LEFT:3,ARROW_FORWARD:4,ARROW_RIGHT:5,ARROW_LEFT_AND_FORWARD:6,ARROW_RIGHT_AND_FORWARD:7,ARROW_U_TURN:8}}}},Signal:{fields:{id:{type:\"Id\",id:1},boundary:{type:\"Polygon\",id:2},subsignal:{rule:\"repeated\",type:\"Subsignal\",id:3},overlapId:{rule:\"repeated\",type:\"Id\",id:4},type:{type:\"Type\",id:5},stopLine:{rule:\"repeated\",type:\"Curve\",id:6}},nested:{Type:{values:{UNKNOWN:1,MIX_2_HORIZONTAL:2,MIX_2_VERTICAL:3,MIX_3_HORIZONTAL:4,MIX_3_VERTICAL:5,SINGLE:6}}}},SpeedBump:{fields:{id:{type:\"Id\",id:1},overlapId:{rule:\"repeated\",type:\"Id\",id:2},position:{rule:\"repeated\",type:\"Curve\",id:3}}},SpeedControl:{fields:{name:{type:\"string\",id:1},polygon:{type:\"apollo.hdmap.Polygon\",id:2},speedLimit:{type:\"double\",id:3}}},SpeedControls:{fields:{speedControl:{rule:\"repeated\",type:\"SpeedControl\",id:1}}},StopSign:{fields:{id:{type:\"Id\",id:1},stopLine:{rule:\"repeated\",type:\"Curve\",id:2},overlapId:{rule:\"repeated\",type:\"Id\",id:3},type:{type:\"StopType\",id:4}},nested:{StopType:{values:{UNKNOWN:0,ONE_WAY:1,TWO_WAY:2,THREE_WAY:3,FOUR_WAY:4,ALL_WAY:5}}}},YieldSign:{fields:{id:{type:\"Id\",id:1},stopLine:{rule:\"repeated\",type:\"Curve\",id:2},overlapId:{rule:\"repeated\",type:\"Id\",id:3}}}}},relative_map:{nested:{NavigationPath:{fields:{path:{type:\"apollo.common.Path\",id:1},pathPriority:{type:\"uint32\",id:2}}},NavigationInfo:{fields:{header:{type:\"apollo.common.Header\",id:1},navigationPath:{rule:\"repeated\",type:\"NavigationPath\",id:2}}},MapMsg:{fields:{header:{type:\"apollo.common.Header\",id:1},hdmap:{type:\"apollo.hdmap.Map\",id:2},navigationPath:{keyType:\"string\",type:\"NavigationPath\",id:3},laneMarker:{type:\"apollo.perception.LaneMarkers\",id:4},localization:{type:\"apollo.localization.LocalizationEstimate\",id:5}}},MapGenerationParam:{fields:{defaultLeftWidth:{type:\"double\",id:1,options:{default:1.75}},defaultRightWidth:{type:\"double\",id:2,options:{default:1.75}},defaultSpeedLimit:{type:\"double\",id:3,options:{default:29.0576}}}},NavigationLaneConfig:{fields:{minLaneMarkerQuality:{type:\"double\",id:1,options:{default:.5}},laneSource:{type:\"LaneSource\",id:2}},nested:{LaneSource:{values:{PERCEPTION:1,OFFLINE_GENERATED:2}}}},RelativeMapConfig:{fields:{mapParam:{type:\"MapGenerationParam\",id:1},navigationLane:{type:\"NavigationLaneConfig\",id:2}}}}}}}}}},function(e,t){},function(e,t){},function(e,t){}]);\n\n\n// WEBPACK FOOTER //\n// app.bundle.js"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sourceRoot":""} \ No newline at end of file diff --git a/modules/dreamview/frontend/dist/worker.bundle.js b/modules/dreamview/frontend/dist/worker.bundle.js index a3d730100429a541696278db6287838ec14e9095..4d0f008411a2d1852bb3b7971a3d137ee0eba543 100644 --- a/modules/dreamview/frontend/dist/worker.bundle.js +++ b/modules/dreamview/frontend/dist/worker.bundle.js @@ -1,2 +1,2 @@ -!function(e){function t(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,o){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=28)}([function(e,t,i){"use strict";var o,n,r=e.exports=i(2),d=i(19);r.codegen=i(30),r.fetch=i(32),r.path=i(34),r.fs=r.inquire("fs"),r.toArray=function(e){if(e){for(var t=Object.keys(e),i=new Array(t.length),o=0;o0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var i=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(i.lo,i.hi,t):i.toNumber(Boolean(t))},r.merge=o,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=n,r.ProtocolError=n("ProtocolError"),r.oneOfGetter=function(e){for(var t={},i=0;i-1;--i)if(1===t[e[i]]&&void 0!==this[e[i]]&&null!==this[e[i]])return e[i]}},r.oneOfSetter=function(e){return function(t){for(var i=0;i=t)return!0;return!1},n.isReservedName=function(e,t){if(e)for(var i=0;i0;){var o=e.shift();if(i.nested&&i.nested[o]){if(!((i=i.nested[o])instanceof n))throw Error("path conflicts with non-namespace objects")}else i.add(i=new n(o))}return t&&i.addJSON(t),i},n.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t-1)return o}else if(o instanceof n&&(o=o.lookup(e.slice(1),t,!0)))return o}else for(var r=0;r-1&&this.oneof.splice(t,1),e.partOf=null,this},o.prototype.onAdd=function(e){r.prototype.onAdd.call(this,e);for(var t=this,i=0;i "+e.len)}function n(e){this.buf=e,this.pos=0,this.len=e.length}function r(){var e=new l(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw o(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw o(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function d(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function a(){if(this.pos+8>this.len)throw o(this,8);return new l(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}e.exports=n;var s,p=i(2),l=p.LongBits,u=p.utf8,f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new n(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new n(e);throw Error("illegal buffer")};n.create=p.Buffer?function(e){return(n.create=function(e){return p.Buffer.isBuffer(e)?new s(e):f(e)})(e)}:f,n.prototype._slice=p.Array.prototype.subarray||p.Array.prototype.slice,n.prototype.uint32=function(){var e=4294967295;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return e;if((this.pos+=5)>this.len)throw this.pos=this.len,o(this,10);return e}}(),n.prototype.int32=function(){return 0|this.uint32()},n.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},n.prototype.bool=function(){return 0!==this.uint32()},n.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return d(this.buf,this.pos+=4)},n.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return 0|d(this.buf,this.pos+=4)},n.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var e=p.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},n.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var e=p.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},n.prototype.bytes=function(){var e=this.uint32(),t=this.pos,i=this.pos+e;if(i>this.len)throw o(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,i):t===i?new this.buf.constructor(0):this._slice.call(this.buf,t,i)},n.prototype.string=function(){var e=this.bytes();return u.read(e,0,e.length)},n.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw o(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw o(this)}while(128&this.buf[this.pos++]);return this},n.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},n._configure=function(e){s=e;var t=p.Long?"toLong":"toNumber";p.merge(n.prototype,{int64:function(){return r.call(this)[t](!1)},uint64:function(){return r.call(this)[t](!0)},sint64:function(){return r.call(this).zzDecode()[t](!1)},fixed64:function(){return a.call(this)[t](!0)},sfixed64:function(){return a.call(this)[t](!1)}})}},function(e,t,i){"use strict";function o(e,t,i){this.fn=e,this.len=t,this.next=void 0,this.val=i}function n(){}function r(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function d(){this.len=0,this.head=new o(n,0,0),this.tail=this.head,this.states=null}function a(e,t,i){t[i]=255&e}function s(e,t,i){for(;e>127;)t[i++]=127&e|128,e>>>=7;t[i]=e}function p(e,t){this.len=e,this.next=void 0,this.val=t}function l(e,t,i){for(;e.hi;)t[i++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[i++]=127&e.lo|128,e.lo=e.lo>>>7;t[i++]=e.lo}function u(e,t,i){t[i]=255&e,t[i+1]=e>>>8&255,t[i+2]=e>>>16&255,t[i+3]=e>>>24}e.exports=d;var f,y=i(2),c=y.LongBits,h=y.base64,g=y.utf8;d.create=y.Buffer?function(){return(d.create=function(){return new f})()}:function(){return new d},d.alloc=function(e){return new y.Array(e)},y.Array!==Array&&(d.alloc=y.pool(d.alloc,y.Array.prototype.subarray)),d.prototype._push=function(e,t,i){return this.tail=this.tail.next=new o(e,t,i),this.len+=t,this},p.prototype=Object.create(o.prototype),p.prototype.fn=s,d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(l,10,c.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=c.from(e);return this._push(l,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=c.from(e).zzEncode();return this._push(l,t.length(),t)},d.prototype.bool=function(e){return this._push(a,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(u,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=c.from(e);return this._push(u,4,t.lo)._push(u,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(y.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(y.float.writeDoubleLE,8,e)};var b=y.Array.prototype.set?function(e,t,i){t.set(e,i)}:function(e,t,i){for(var o=0;o>>0;if(!t)return this._push(a,1,0);if(y.isString(e)){var i=d.alloc(t=h.length(e));h.decode(e,i,0),e=i}return this.uint32(t)._push(b,t,e)},d.prototype.string=function(e){var t=g.length(e);return t?this.uint32(t)._push(g.write,t,e):this._push(a,1,0)},d.prototype.fork=function(){return this.states=new r(this),this.head=this.tail=new o(n,0,0),this.len=0,this},d.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new o(n,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,i=this.len;return this.reset().uint32(i),i&&(this.tail.next=e.next,this.tail=t,this.len+=i),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),i=0;e;)e.fn(e.val,t,i),i+=e.len,e=e.next;return t},d._configure=function(e){f=e}},function(e,t,i){"use strict";function o(e,t){for(var i=new Array(arguments.length-1),o=0,n=2,r=!0;n>>0",o,o);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",o,o);break;case"uint64":s=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",o,o,s)('else if(typeof d%s==="string")',o)("m%s=parseInt(d%s,10)",o,o)('else if(typeof d%s==="number")',o)("m%s=d%s",o,o)('else if(typeof d%s==="object")',o)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",o,o,o,s?"true":"");break;case"bytes":e('if(typeof d%s==="string")',o)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",o,o,o)("else if(d%s.length)",o)("m%s=d%s",o,o);break;case"string":e("m%s=String(d%s)",o,o);break;case"bool":e("m%s=Boolean(d%s)",o,o)}}return e}function n(e,t,i,o){if(t.resolvedType)t.resolvedType instanceof d?e("d%s=o.enums===String?types[%i].values[m%s]:m%s",o,i,o,o):e("d%s=types[%i].toObject(m%s,o)",o,i,o);else{var n=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",o,o,o,o);break;case"uint64":n=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',o)("d%s=o.longs===String?String(m%s):m%s",o,o,o)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",o,o,o,o,n?"true":"",o);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",o,o,o,o,o);break;default:e("d%s=m%s",o,o)}}return e}var r=t,d=i(1),a=i(0);r.fromObject=function(e){var t=e.fieldsArray,i=a.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return i("return new this.ctor");i("var m=new this.ctor");for(var n=0;n>>3){");for(var i=0;i>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",i,o,(t.id<<3|2)>>>0)}function n(e){for(var t,i,n=a.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),s=e.fieldsArray.slice().sort(a.compareFieldsById),t=0;t>>0,8|d.mapKey[p.keyType],p.keyType),void 0===f?n("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,i):n(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|f,u,i),n("}")("}")):p.repeated?(n("if(%s!=null&&%s.length){",i,i),p.packed&&void 0!==d.packed[u]?n("w.uint32(%i).fork()",(p.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",i)("w.%s(%s[i])",u,i)("w.ldelim()"):(n("for(var i=0;i<%s.length;++i)",i),void 0===f?o(n,p,l,i+"[i]"):n("w.uint32(%i).%s(%s[i])",(p.id<<3|f)>>>0,u,i)),n("}")):(p.optional&&n("if(%s!=null&&m.hasOwnProperty(%j))",i,p.name),void 0===f?o(n,p,l,i):n("w.uint32(%i).%s(%s)",(p.id<<3|f)>>>0,u,i))}return n("return w")}e.exports=n;var r=i(1),d=i(6),a=i(0)},function(e,t,i){"use strict";function o(e,t,i,o,r,a){if(n.call(this,e,t,o,void 0,void 0,r,a),!d.isString(i))throw TypeError("keyType must be a string");this.keyType=i,this.resolvedKeyType=null,this.map=!0}e.exports=o;var n=i(3);((o.prototype=Object.create(n.prototype)).constructor=o).className="MapField";var r=i(6),d=i(0);o.fromJSON=function(e,t){return new o(e,t.id,t.keyType,t.type,t.options,t.comment)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return d.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},o.prototype.resolve=function(){if(this.resolved)return this;if(void 0===r.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},o.d=function(e,t,i){return"function"==typeof i?i=d.decorateType(i).name:i&&"object"==typeof i&&(i=d.decorateEnum(i).name),function(n,r){d.decorateType(n.constructor).add(new o(r,e,t,i))}}},function(e,t,i){"use strict";function o(e,t,i,o,d,a,s,p){if(r.isObject(d)?(s=d,d=a=void 0):r.isObject(a)&&(s=a,a=void 0),void 0!==t&&!r.isString(t))throw TypeError("type must be a string");if(!r.isString(i))throw TypeError("requestType must be a string");if(!r.isString(o))throw TypeError("responseType must be a string");n.call(this,e,s),this.type=t||"rpc",this.requestType=i,this.requestStream=!!d||void 0,this.responseType=o,this.responseStream=!!a||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=p}e.exports=o;var n=i(4);((o.prototype=Object.create(n.prototype)).constructor=o).className="Method";var r=i(0);o.fromJSON=function(e,t){return new o(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return r.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0])},o.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),n.prototype.resolve.call(this))}},function(e,t,i){"use strict";function o(e){d.call(this,"",e),this.deferred=[],this.files=[]}function n(){}function r(e,t){var i=t.parent.lookup(t.extend);if(i){var o=new l(t.fullName,t.id,t.type,t.rule,void 0,t.options);return o.declaringField=t,t.extensionField=o,i.add(o),!0}return!1}e.exports=o;var d=i(5);((o.prototype=Object.create(d.prototype)).constructor=o).className="Root";var a,s,p,l=i(3),u=i(1),f=i(8),y=i(0);o.fromJSON=function(e,t){return t||(t=new o),e.options&&t.setOptions(e.options),t.addJSON(e.nested)},o.prototype.resolvePath=y.path.resolve,o.prototype.load=function e(t,i,o){function r(e,t){if(o){var i=o;if(o=null,u)throw e;i(e,t)}}function d(e,t){try{if(y.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),y.isString(t)){s.filename=e;var o,n=s(t,l,i),d=0;if(n.imports)for(;d-1){var n=e.substring(i);n in p&&(e=n)}if(!(l.files.indexOf(e)>-1)){if(l.files.push(e),e in p)return void(u?d(e,p[e]):(++f,setTimeout(function(){--f,d(e,p[e])})));if(u){var a;try{a=y.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||r(e))}d(e,a)}else++f,y.fetch(e,function(i,n){if(--f,o)return i?void(t?f||r(null,l):r(i)):void d(e,n)})}}"function"==typeof i&&(o=i,i=void 0);var l=this;if(!o)return y.asPromise(e,l,t,i);var u=o===n,f=0;y.isString(t)&&(t=[t]);for(var c,h=0;h-1&&this.deferred.splice(t,1)}}else if(e instanceof u)c.test(e.name)&&delete e.parent[e.name];else if(e instanceof d){for(var i=0;i1&&"="===e.charAt(t);)++i;return Math.ceil(3*e.length)/4-i};for(var n=new Array(64),r=new Array(123),d=0;d<64;)r[n[d]=d<26?d+65:d<52?d+71:d<62?d-4:d-59|43]=d++;o.encode=function(e,t,i){for(var o,r=null,d=[],a=0,s=0;t>2],o=(3&p)<<4,s=1;break;case 1:d[a++]=n[o|p>>4],o=(15&p)<<2,s=2;break;case 2:d[a++]=n[o|p>>6],d[a++]=n[63&p],s=0}a>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,d)),a=0)}return s&&(d[a++]=n[o],d[a++]=61,1===s&&(d[a++]=61)),r?(a&&r.push(String.fromCharCode.apply(String,d.slice(0,a))),r.join("")):String.fromCharCode.apply(String,d.slice(0,a))};o.decode=function(e,t,i){for(var o,n=i,d=0,a=0;a1)break;if(void 0===(s=r[s]))throw Error("invalid encoding");switch(d){case 0:o=s,d=1;break;case 1:t[i++]=o<<2|(48&s)>>4,o=s,d=2;break;case 2:t[i++]=(15&o)<<4|(60&s)>>2,o=s,d=3;break;case 3:t[i++]=(3&o)<<6|s,d=0}}if(1===d)throw Error("invalid encoding");return i-n},o.test=function(e){return/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e)}},function(e,t,i){"use strict";function o(e,t){function i(e){if("string"!=typeof e){var t=n();if(o.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var d=Object.keys(e),a=new Array(d.length+1),s=new Array(d.length),p=0;p0?0:2147483648,i,o);else if(isNaN(t))e(2143289344,i,o);else if(t>3.4028234663852886e38)e((n<<31|2139095040)>>>0,i,o);else if(t<1.1754943508222875e-38)e((n<<31|Math.round(t/1.401298464324817e-45))>>>0,i,o);else{var r=Math.floor(Math.log(t)/Math.LN2),d=8388607&Math.round(t*Math.pow(2,-r)*8388608);e((n<<31|r+127<<23|d)>>>0,i,o)}}function i(e,t,i){var o=e(t,i),n=2*(o>>31)+1,r=o>>>23&255,d=8388607&o;return 255===r?d?NaN:n*(1/0):0===r?1.401298464324817e-45*n*d:n*Math.pow(2,r-150)*(d+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,r),e.readFloatLE=i.bind(null,d),e.readFloatBE=i.bind(null,a)}(),"undefined"!=typeof Float64Array?function(){function t(e,t,i){r[0]=e,t[i]=d[0],t[i+1]=d[1],t[i+2]=d[2],t[i+3]=d[3],t[i+4]=d[4],t[i+5]=d[5],t[i+6]=d[6],t[i+7]=d[7]}function i(e,t,i){r[0]=e,t[i]=d[7],t[i+1]=d[6],t[i+2]=d[5],t[i+3]=d[4],t[i+4]=d[3],t[i+5]=d[2],t[i+6]=d[1],t[i+7]=d[0]}function o(e,t){return d[0]=e[t],d[1]=e[t+1],d[2]=e[t+2],d[3]=e[t+3],d[4]=e[t+4],d[5]=e[t+5],d[6]=e[t+6],d[7]=e[t+7],r[0]}function n(e,t){return d[7]=e[t],d[6]=e[t+1],d[5]=e[t+2],d[4]=e[t+3],d[3]=e[t+4],d[2]=e[t+5],d[1]=e[t+6],d[0]=e[t+7],r[0]}var r=new Float64Array([-0]),d=new Uint8Array(r.buffer),a=128===d[7];e.writeDoubleLE=a?t:i,e.writeDoubleBE=a?i:t,e.readDoubleLE=a?o:n,e.readDoubleBE=a?n:o}():function(){function t(e,t,i,o,n,r){var d=o<0?1:0;if(d&&(o=-o),0===o)e(0,n,r+t),e(1/o>0?0:2147483648,n,r+i);else if(isNaN(o))e(0,n,r+t),e(2146959360,n,r+i);else if(o>1.7976931348623157e308)e(0,n,r+t),e((d<<31|2146435072)>>>0,n,r+i);else{var a;if(o<2.2250738585072014e-308)a=o/5e-324,e(a>>>0,n,r+t),e((d<<31|a/4294967296)>>>0,n,r+i);else{var s=Math.floor(Math.log(o)/Math.LN2);1024===s&&(s=1023),a=o*Math.pow(2,-s),e(4503599627370496*a>>>0,n,r+t),e((d<<31|s+1023<<20|1048576*a&1048575)>>>0,n,r+i)}}}function i(e,t,i,o,n){var r=e(o,n+t),d=e(o,n+i),a=2*(d>>31)+1,s=d>>>20&2047,p=4294967296*(1048575&d)+r;return 2047===s?p?NaN:a*(1/0):0===s?5e-324*a*p:a*Math.pow(2,s-1075)*(p+4503599627370496)}e.writeDoubleLE=t.bind(null,n,0,4),e.writeDoubleBE=t.bind(null,r,4,0),e.readDoubleLE=i.bind(null,d,0,4),e.readDoubleBE=i.bind(null,a,4,0)}(),e}function n(e,t,i){t[i]=255&e,t[i+1]=e>>>8&255,t[i+2]=e>>>16&255,t[i+3]=e>>>24}function r(e,t,i){t[i]=e>>>24,t[i+1]=e>>>16&255,t[i+2]=e>>>8&255,t[i+3]=255&e}function d(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function a(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=o(o)},function(e,t,i){"use strict";var o=t,n=o.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},r=o.normalize=function(e){e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var t=e.split("/"),i=n(e),o="";i&&(o=t.shift()+"/");for(var r=0;r0&&".."!==t[r-1]?t.splice(--r,2):i?t.splice(r,1):++r:"."===t[r]?t.splice(r,1):++r;return o+t.join("/")};o.resolve=function(e,t,i){return i||(t=r(t)),n(t)?t:(i||(e=r(e)),(e=e.replace(/(?:\/|^)[^\/]+$/,"")).length?r(e+"/"+t):t)}},function(e,t,i){"use strict";function o(e,t,i){var o=i||8192,n=o>>>1,r=null,d=o;return function(i){if(i<1||i>n)return e(i);d+i>o&&(r=e(o),d=0);var a=t.call(r,d,d+=i);return 7&d&&(d=1+(7|d)),a}}e.exports=o},function(e,t,i){"use strict";var o=t;o.length=function(e){for(var t=0,i=0,o=0;o191&&o<224?r[d++]=(31&o)<<6|63&e[t++]:o>239&&o<365?(o=((7&o)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,r[d++]=55296+(o>>10),r[d++]=56320+(1023&o)):r[d++]=(15&o)<<12|(63&e[t++])<<6|63&e[t++],d>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,r)),d=0);return n?(d&&n.push(String.fromCharCode.apply(String,r.slice(0,d))),n.join("")):String.fromCharCode.apply(String,r.slice(0,d))},o.write=function(e,t,i){for(var o,n,r=i,d=0;d>6|192,t[i++]=63&o|128):55296==(64512&o)&&56320==(64512&(n=e.charCodeAt(d+1)))?(o=65536+((1023&o)<<10)+(1023&n),++d,t[i++]=o>>18|240,t[i++]=o>>12&63|128,t[i++]=o>>6&63|128,t[i++]=63&o|128):(t[i++]=o>>12|224,t[i++]=o>>6&63|128,t[i++]=63&o|128);return i-r}},function(e,t,i){"use strict";function o(e,t,i){return"function"==typeof t?(i=t,t=new r.Root):t||(t=new r.Root),t.load(e,i)}function n(e,t){return t||(t=new r.Root),t.loadSync(e)}var r=e.exports=i(38);r.build="light",r.load=o,r.loadSync=n,r.encoder=i(15),r.decoder=i(14),r.verifier=i(23),r.converter=i(13),r.ReflectionObject=i(4),r.Namespace=i(5),r.Root=i(18),r.Enum=i(1),r.Type=i(22),r.Field=i(3),r.OneOf=i(8),r.MapField=i(16),r.Service=i(21),r.Method=i(17),r.Message=i(7),r.wrappers=i(24),r.types=i(6),r.util=i(0),r.ReflectionObject._configure(r.Root),r.Namespace._configure(r.Type,r.Service,r.Enum),r.Root._configure(r.Type),r.Field._configure(r.Type)},function(e,t,i){"use strict";function o(){n.Reader._configure(n.BufferReader),n.util._configure()}var n=t;n.build="minimal",n.Writer=i(10),n.BufferWriter=i(42),n.Reader=i(9),n.BufferReader=i(39),n.util=i(2),n.rpc=i(20),n.roots=i(19),n.configure=o,n.Writer._configure(n.BufferWriter),o()},function(e,t,i){"use strict";function o(e){n.call(this,e)}e.exports=o;var n=i(9);(o.prototype=Object.create(n.prototype)).constructor=o;var r=i(2);r.Buffer&&(o.prototype._slice=r.Buffer.prototype.slice),o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len))}},function(e,t,i){"use strict";function o(e,t,i){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(i)}e.exports=o;var n=i(2);(o.prototype=Object.create(n.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function e(t,i,o,r,d){if(!r)throw TypeError("request must be specified");var a=this;if(!d)return n.asPromise(e,a,t,i,o,r);if(!a.rpcImpl)return void setTimeout(function(){d(Error("already ended"))},0);try{return a.rpcImpl(t,i[a.requestDelimited?"encodeDelimited":"encode"](r).finish(),function(e,i){if(e)return a.emit("error",e,t),d(e);if(null===i)return void a.end(!0);if(!(i instanceof o))try{i=o[a.responseDelimited?"decodeDelimited":"decode"](i)}catch(e){return a.emit("error",e,t),d(e)}return a.emit("data",i,t),d(null,i)})}catch(e){return a.emit("error",e,t),void setTimeout(function(){d(e)},0)}},o.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},function(e,t,i){"use strict";function o(e,t){this.lo=e>>>0,this.hi=t>>>0}e.exports=o;var n=i(2),r=o.zero=new o(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var d=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return r;var t=e<0;t&&(e=-e);var i=e>>>0,n=(e-i)/4294967296>>>0;return t&&(n=~n>>>0,i=~i>>>0,++i>4294967295&&(i=0,++n>4294967295&&(n=0))),new o(i,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):r},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,i=~this.hi>>>0;return t||(i=i+1>>>0),-(t+4294967296*i)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===d?r:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,i=this.hi>>>24;return 0===i?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:i<128?9:10}},function(e,t,i){"use strict";function o(){r.call(this)}function n(e,t,i){e.length<40?d.utf8.write(e,t,i):t.utf8Write(e,i)}e.exports=o;var r=i(10);(o.prototype=Object.create(r.prototype)).constructor=o;var d=i(2),a=d.Buffer;o.alloc=function(e){return(o.alloc=d._Buffer_allocUnsafe)(e)};var s=a&&a.prototype instanceof Uint8Array&&"set"===a.prototype.set.name?function(e,t,i){t.set(e,i)}:function(e,t,i){if(e.copy)e.copy(t,i,0,e.length);else for(var o=0;o>>0;return this.uint32(t),t&&this._push(s,t,e),this},o.prototype.string=function(e){var t=a.byteLength(e);return this.uint32(t),t&&this._push(n,t,e),this}},function(e,t){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(i=window)}e.exports=i}]); +!function(e){function t(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,o){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=28)}([function(e,t,i){"use strict";var o,n,r=e.exports=i(2),d=i(19);r.codegen=i(30),r.fetch=i(32),r.path=i(34),r.fs=r.inquire("fs"),r.toArray=function(e){if(e){for(var t=Object.keys(e),i=new Array(t.length),o=0;o0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var i=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(i.lo,i.hi,t):i.toNumber(Boolean(t))},r.merge=o,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=n,r.ProtocolError=n("ProtocolError"),r.oneOfGetter=function(e){for(var t={},i=0;i-1;--i)if(1===t[e[i]]&&void 0!==this[e[i]]&&null!==this[e[i]])return e[i]}},r.oneOfSetter=function(e){return function(t){for(var i=0;i=t)return!0;return!1},n.isReservedName=function(e,t){if(e)for(var i=0;i0;){var o=e.shift();if(i.nested&&i.nested[o]){if(!((i=i.nested[o])instanceof n))throw Error("path conflicts with non-namespace objects")}else i.add(i=new n(o))}return t&&i.addJSON(t),i},n.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t-1)return o}else if(o instanceof n&&(o=o.lookup(e.slice(1),t,!0)))return o}else for(var r=0;r-1&&this.oneof.splice(t,1),e.partOf=null,this},o.prototype.onAdd=function(e){r.prototype.onAdd.call(this,e);for(var t=this,i=0;i "+e.len)}function n(e){this.buf=e,this.pos=0,this.len=e.length}function r(){var e=new l(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw o(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw o(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function d(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function a(){if(this.pos+8>this.len)throw o(this,8);return new l(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}e.exports=n;var s,p=i(2),l=p.LongBits,u=p.utf8,f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new n(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new n(e);throw Error("illegal buffer")};n.create=p.Buffer?function(e){return(n.create=function(e){return p.Buffer.isBuffer(e)?new s(e):f(e)})(e)}:f,n.prototype._slice=p.Array.prototype.subarray||p.Array.prototype.slice,n.prototype.uint32=function(){var e=4294967295;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return e;if((this.pos+=5)>this.len)throw this.pos=this.len,o(this,10);return e}}(),n.prototype.int32=function(){return 0|this.uint32()},n.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},n.prototype.bool=function(){return 0!==this.uint32()},n.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return d(this.buf,this.pos+=4)},n.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return 0|d(this.buf,this.pos+=4)},n.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var e=p.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},n.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var e=p.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},n.prototype.bytes=function(){var e=this.uint32(),t=this.pos,i=this.pos+e;if(i>this.len)throw o(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,i):t===i?new this.buf.constructor(0):this._slice.call(this.buf,t,i)},n.prototype.string=function(){var e=this.bytes();return u.read(e,0,e.length)},n.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw o(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw o(this)}while(128&this.buf[this.pos++]);return this},n.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},n._configure=function(e){s=e;var t=p.Long?"toLong":"toNumber";p.merge(n.prototype,{int64:function(){return r.call(this)[t](!1)},uint64:function(){return r.call(this)[t](!0)},sint64:function(){return r.call(this).zzDecode()[t](!1)},fixed64:function(){return a.call(this)[t](!0)},sfixed64:function(){return a.call(this)[t](!1)}})}},function(e,t,i){"use strict";function o(e,t,i){this.fn=e,this.len=t,this.next=void 0,this.val=i}function n(){}function r(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function d(){this.len=0,this.head=new o(n,0,0),this.tail=this.head,this.states=null}function a(e,t,i){t[i]=255&e}function s(e,t,i){for(;e>127;)t[i++]=127&e|128,e>>>=7;t[i]=e}function p(e,t){this.len=e,this.next=void 0,this.val=t}function l(e,t,i){for(;e.hi;)t[i++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[i++]=127&e.lo|128,e.lo=e.lo>>>7;t[i++]=e.lo}function u(e,t,i){t[i]=255&e,t[i+1]=e>>>8&255,t[i+2]=e>>>16&255,t[i+3]=e>>>24}e.exports=d;var f,y=i(2),c=y.LongBits,h=y.base64,g=y.utf8;d.create=y.Buffer?function(){return(d.create=function(){return new f})()}:function(){return new d},d.alloc=function(e){return new y.Array(e)},y.Array!==Array&&(d.alloc=y.pool(d.alloc,y.Array.prototype.subarray)),d.prototype._push=function(e,t,i){return this.tail=this.tail.next=new o(e,t,i),this.len+=t,this},p.prototype=Object.create(o.prototype),p.prototype.fn=s,d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(l,10,c.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=c.from(e);return this._push(l,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=c.from(e).zzEncode();return this._push(l,t.length(),t)},d.prototype.bool=function(e){return this._push(a,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(u,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=c.from(e);return this._push(u,4,t.lo)._push(u,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(y.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(y.float.writeDoubleLE,8,e)};var b=y.Array.prototype.set?function(e,t,i){t.set(e,i)}:function(e,t,i){for(var o=0;o>>0;if(!t)return this._push(a,1,0);if(y.isString(e)){var i=d.alloc(t=h.length(e));h.decode(e,i,0),e=i}return this.uint32(t)._push(b,t,e)},d.prototype.string=function(e){var t=g.length(e);return t?this.uint32(t)._push(g.write,t,e):this._push(a,1,0)},d.prototype.fork=function(){return this.states=new r(this),this.head=this.tail=new o(n,0,0),this.len=0,this},d.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new o(n,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,i=this.len;return this.reset().uint32(i),i&&(this.tail.next=e.next,this.tail=t,this.len+=i),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),i=0;e;)e.fn(e.val,t,i),i+=e.len,e=e.next;return t},d._configure=function(e){f=e}},function(e,t,i){"use strict";function o(e,t){for(var i=new Array(arguments.length-1),o=0,n=2,r=!0;n>>0",o,o);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",o,o);break;case"uint64":s=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",o,o,s)('else if(typeof d%s==="string")',o)("m%s=parseInt(d%s,10)",o,o)('else if(typeof d%s==="number")',o)("m%s=d%s",o,o)('else if(typeof d%s==="object")',o)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",o,o,o,s?"true":"");break;case"bytes":e('if(typeof d%s==="string")',o)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",o,o,o)("else if(d%s.length)",o)("m%s=d%s",o,o);break;case"string":e("m%s=String(d%s)",o,o);break;case"bool":e("m%s=Boolean(d%s)",o,o)}}return e}function n(e,t,i,o){if(t.resolvedType)t.resolvedType instanceof d?e("d%s=o.enums===String?types[%i].values[m%s]:m%s",o,i,o,o):e("d%s=types[%i].toObject(m%s,o)",o,i,o);else{var n=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",o,o,o,o);break;case"uint64":n=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',o)("d%s=o.longs===String?String(m%s):m%s",o,o,o)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",o,o,o,o,n?"true":"",o);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",o,o,o,o,o);break;default:e("d%s=m%s",o,o)}}return e}var r=t,d=i(1),a=i(0);r.fromObject=function(e){var t=e.fieldsArray,i=a.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return i("return new this.ctor");i("var m=new this.ctor");for(var n=0;n>>3){");for(var i=0;i>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",i,o,(t.id<<3|2)>>>0)}function n(e){for(var t,i,n=a.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),s=e.fieldsArray.slice().sort(a.compareFieldsById),t=0;t>>0,8|d.mapKey[p.keyType],p.keyType),void 0===f?n("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,i):n(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|f,u,i),n("}")("}")):p.repeated?(n("if(%s!=null&&%s.length){",i,i),p.packed&&void 0!==d.packed[u]?n("w.uint32(%i).fork()",(p.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",i)("w.%s(%s[i])",u,i)("w.ldelim()"):(n("for(var i=0;i<%s.length;++i)",i),void 0===f?o(n,p,l,i+"[i]"):n("w.uint32(%i).%s(%s[i])",(p.id<<3|f)>>>0,u,i)),n("}")):(p.optional&&n("if(%s!=null&&m.hasOwnProperty(%j))",i,p.name),void 0===f?o(n,p,l,i):n("w.uint32(%i).%s(%s)",(p.id<<3|f)>>>0,u,i))}return n("return w")}e.exports=n;var r=i(1),d=i(6),a=i(0)},function(e,t,i){"use strict";function o(e,t,i,o,r,a){if(n.call(this,e,t,o,void 0,void 0,r,a),!d.isString(i))throw TypeError("keyType must be a string");this.keyType=i,this.resolvedKeyType=null,this.map=!0}e.exports=o;var n=i(3);((o.prototype=Object.create(n.prototype)).constructor=o).className="MapField";var r=i(6),d=i(0);o.fromJSON=function(e,t){return new o(e,t.id,t.keyType,t.type,t.options,t.comment)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return d.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},o.prototype.resolve=function(){if(this.resolved)return this;if(void 0===r.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},o.d=function(e,t,i){return"function"==typeof i?i=d.decorateType(i).name:i&&"object"==typeof i&&(i=d.decorateEnum(i).name),function(n,r){d.decorateType(n.constructor).add(new o(r,e,t,i))}}},function(e,t,i){"use strict";function o(e,t,i,o,d,a,s,p){if(r.isObject(d)?(s=d,d=a=void 0):r.isObject(a)&&(s=a,a=void 0),void 0!==t&&!r.isString(t))throw TypeError("type must be a string");if(!r.isString(i))throw TypeError("requestType must be a string");if(!r.isString(o))throw TypeError("responseType must be a string");n.call(this,e,s),this.type=t||"rpc",this.requestType=i,this.requestStream=!!d||void 0,this.responseType=o,this.responseStream=!!a||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=p}e.exports=o;var n=i(4);((o.prototype=Object.create(n.prototype)).constructor=o).className="Method";var r=i(0);o.fromJSON=function(e,t){return new o(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return r.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0])},o.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),n.prototype.resolve.call(this))}},function(e,t,i){"use strict";function o(e){d.call(this,"",e),this.deferred=[],this.files=[]}function n(){}function r(e,t){var i=t.parent.lookup(t.extend);if(i){var o=new l(t.fullName,t.id,t.type,t.rule,void 0,t.options);return o.declaringField=t,t.extensionField=o,i.add(o),!0}return!1}e.exports=o;var d=i(5);((o.prototype=Object.create(d.prototype)).constructor=o).className="Root";var a,s,p,l=i(3),u=i(1),f=i(8),y=i(0);o.fromJSON=function(e,t){return t||(t=new o),e.options&&t.setOptions(e.options),t.addJSON(e.nested)},o.prototype.resolvePath=y.path.resolve,o.prototype.load=function e(t,i,o){function r(e,t){if(o){var i=o;if(o=null,u)throw e;i(e,t)}}function d(e,t){try{if(y.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),y.isString(t)){s.filename=e;var o,n=s(t,l,i),d=0;if(n.imports)for(;d-1){var n=e.substring(i);n in p&&(e=n)}if(!(l.files.indexOf(e)>-1)){if(l.files.push(e),e in p)return void(u?d(e,p[e]):(++f,setTimeout(function(){--f,d(e,p[e])})));if(u){var a;try{a=y.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||r(e))}d(e,a)}else++f,y.fetch(e,function(i,n){if(--f,o)return i?void(t?f||r(null,l):r(i)):void d(e,n)})}}"function"==typeof i&&(o=i,i=void 0);var l=this;if(!o)return y.asPromise(e,l,t,i);var u=o===n,f=0;y.isString(t)&&(t=[t]);for(var c,h=0;h-1&&this.deferred.splice(t,1)}}else if(e instanceof u)c.test(e.name)&&delete e.parent[e.name];else if(e instanceof d){for(var i=0;i1&&"="===e.charAt(t);)++i;return Math.ceil(3*e.length)/4-i};for(var n=new Array(64),r=new Array(123),d=0;d<64;)r[n[d]=d<26?d+65:d<52?d+71:d<62?d-4:d-59|43]=d++;o.encode=function(e,t,i){for(var o,r=null,d=[],a=0,s=0;t>2],o=(3&p)<<4,s=1;break;case 1:d[a++]=n[o|p>>4],o=(15&p)<<2,s=2;break;case 2:d[a++]=n[o|p>>6],d[a++]=n[63&p],s=0}a>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,d)),a=0)}return s&&(d[a++]=n[o],d[a++]=61,1===s&&(d[a++]=61)),r?(a&&r.push(String.fromCharCode.apply(String,d.slice(0,a))),r.join("")):String.fromCharCode.apply(String,d.slice(0,a))};o.decode=function(e,t,i){for(var o,n=i,d=0,a=0;a1)break;if(void 0===(s=r[s]))throw Error("invalid encoding");switch(d){case 0:o=s,d=1;break;case 1:t[i++]=o<<2|(48&s)>>4,o=s,d=2;break;case 2:t[i++]=(15&o)<<4|(60&s)>>2,o=s,d=3;break;case 3:t[i++]=(3&o)<<6|s,d=0}}if(1===d)throw Error("invalid encoding");return i-n},o.test=function(e){return/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e)}},function(e,t,i){"use strict";function o(e,t){function i(e){if("string"!=typeof e){var t=n();if(o.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var d=Object.keys(e),a=new Array(d.length+1),s=new Array(d.length),p=0;p0?0:2147483648,i,o);else if(isNaN(t))e(2143289344,i,o);else if(t>3.4028234663852886e38)e((n<<31|2139095040)>>>0,i,o);else if(t<1.1754943508222875e-38)e((n<<31|Math.round(t/1.401298464324817e-45))>>>0,i,o);else{var r=Math.floor(Math.log(t)/Math.LN2),d=8388607&Math.round(t*Math.pow(2,-r)*8388608);e((n<<31|r+127<<23|d)>>>0,i,o)}}function i(e,t,i){var o=e(t,i),n=2*(o>>31)+1,r=o>>>23&255,d=8388607&o;return 255===r?d?NaN:n*(1/0):0===r?1.401298464324817e-45*n*d:n*Math.pow(2,r-150)*(d+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,r),e.readFloatLE=i.bind(null,d),e.readFloatBE=i.bind(null,a)}(),"undefined"!=typeof Float64Array?function(){function t(e,t,i){r[0]=e,t[i]=d[0],t[i+1]=d[1],t[i+2]=d[2],t[i+3]=d[3],t[i+4]=d[4],t[i+5]=d[5],t[i+6]=d[6],t[i+7]=d[7]}function i(e,t,i){r[0]=e,t[i]=d[7],t[i+1]=d[6],t[i+2]=d[5],t[i+3]=d[4],t[i+4]=d[3],t[i+5]=d[2],t[i+6]=d[1],t[i+7]=d[0]}function o(e,t){return d[0]=e[t],d[1]=e[t+1],d[2]=e[t+2],d[3]=e[t+3],d[4]=e[t+4],d[5]=e[t+5],d[6]=e[t+6],d[7]=e[t+7],r[0]}function n(e,t){return d[7]=e[t],d[6]=e[t+1],d[5]=e[t+2],d[4]=e[t+3],d[3]=e[t+4],d[2]=e[t+5],d[1]=e[t+6],d[0]=e[t+7],r[0]}var r=new Float64Array([-0]),d=new Uint8Array(r.buffer),a=128===d[7];e.writeDoubleLE=a?t:i,e.writeDoubleBE=a?i:t,e.readDoubleLE=a?o:n,e.readDoubleBE=a?n:o}():function(){function t(e,t,i,o,n,r){var d=o<0?1:0;if(d&&(o=-o),0===o)e(0,n,r+t),e(1/o>0?0:2147483648,n,r+i);else if(isNaN(o))e(0,n,r+t),e(2146959360,n,r+i);else if(o>1.7976931348623157e308)e(0,n,r+t),e((d<<31|2146435072)>>>0,n,r+i);else{var a;if(o<2.2250738585072014e-308)a=o/5e-324,e(a>>>0,n,r+t),e((d<<31|a/4294967296)>>>0,n,r+i);else{var s=Math.floor(Math.log(o)/Math.LN2);1024===s&&(s=1023),a=o*Math.pow(2,-s),e(4503599627370496*a>>>0,n,r+t),e((d<<31|s+1023<<20|1048576*a&1048575)>>>0,n,r+i)}}}function i(e,t,i,o,n){var r=e(o,n+t),d=e(o,n+i),a=2*(d>>31)+1,s=d>>>20&2047,p=4294967296*(1048575&d)+r;return 2047===s?p?NaN:a*(1/0):0===s?5e-324*a*p:a*Math.pow(2,s-1075)*(p+4503599627370496)}e.writeDoubleLE=t.bind(null,n,0,4),e.writeDoubleBE=t.bind(null,r,4,0),e.readDoubleLE=i.bind(null,d,0,4),e.readDoubleBE=i.bind(null,a,4,0)}(),e}function n(e,t,i){t[i]=255&e,t[i+1]=e>>>8&255,t[i+2]=e>>>16&255,t[i+3]=e>>>24}function r(e,t,i){t[i]=e>>>24,t[i+1]=e>>>16&255,t[i+2]=e>>>8&255,t[i+3]=255&e}function d(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function a(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=o(o)},function(e,t,i){"use strict";var o=t,n=o.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},r=o.normalize=function(e){e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var t=e.split("/"),i=n(e),o="";i&&(o=t.shift()+"/");for(var r=0;r0&&".."!==t[r-1]?t.splice(--r,2):i?t.splice(r,1):++r:"."===t[r]?t.splice(r,1):++r;return o+t.join("/")};o.resolve=function(e,t,i){return i||(t=r(t)),n(t)?t:(i||(e=r(e)),(e=e.replace(/(?:\/|^)[^\/]+$/,"")).length?r(e+"/"+t):t)}},function(e,t,i){"use strict";function o(e,t,i){var o=i||8192,n=o>>>1,r=null,d=o;return function(i){if(i<1||i>n)return e(i);d+i>o&&(r=e(o),d=0);var a=t.call(r,d,d+=i);return 7&d&&(d=1+(7|d)),a}}e.exports=o},function(e,t,i){"use strict";var o=t;o.length=function(e){for(var t=0,i=0,o=0;o191&&o<224?r[d++]=(31&o)<<6|63&e[t++]:o>239&&o<365?(o=((7&o)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,r[d++]=55296+(o>>10),r[d++]=56320+(1023&o)):r[d++]=(15&o)<<12|(63&e[t++])<<6|63&e[t++],d>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,r)),d=0);return n?(d&&n.push(String.fromCharCode.apply(String,r.slice(0,d))),n.join("")):String.fromCharCode.apply(String,r.slice(0,d))},o.write=function(e,t,i){for(var o,n,r=i,d=0;d>6|192,t[i++]=63&o|128):55296==(64512&o)&&56320==(64512&(n=e.charCodeAt(d+1)))?(o=65536+((1023&o)<<10)+(1023&n),++d,t[i++]=o>>18|240,t[i++]=o>>12&63|128,t[i++]=o>>6&63|128,t[i++]=63&o|128):(t[i++]=o>>12|224,t[i++]=o>>6&63|128,t[i++]=63&o|128);return i-r}},function(e,t,i){"use strict";function o(e,t,i){return"function"==typeof t?(i=t,t=new r.Root):t||(t=new r.Root),t.load(e,i)}function n(e,t){return t||(t=new r.Root),t.loadSync(e)}var r=e.exports=i(38);r.build="light",r.load=o,r.loadSync=n,r.encoder=i(15),r.decoder=i(14),r.verifier=i(23),r.converter=i(13),r.ReflectionObject=i(4),r.Namespace=i(5),r.Root=i(18),r.Enum=i(1),r.Type=i(22),r.Field=i(3),r.OneOf=i(8),r.MapField=i(16),r.Service=i(21),r.Method=i(17),r.Message=i(7),r.wrappers=i(24),r.types=i(6),r.util=i(0),r.ReflectionObject._configure(r.Root),r.Namespace._configure(r.Type,r.Service,r.Enum),r.Root._configure(r.Type),r.Field._configure(r.Type)},function(e,t,i){"use strict";function o(){n.Reader._configure(n.BufferReader),n.util._configure()}var n=t;n.build="minimal",n.Writer=i(10),n.BufferWriter=i(42),n.Reader=i(9),n.BufferReader=i(39),n.util=i(2),n.rpc=i(20),n.roots=i(19),n.configure=o,n.Writer._configure(n.BufferWriter),o()},function(e,t,i){"use strict";function o(e){n.call(this,e)}e.exports=o;var n=i(9);(o.prototype=Object.create(n.prototype)).constructor=o;var r=i(2);r.Buffer&&(o.prototype._slice=r.Buffer.prototype.slice),o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len))}},function(e,t,i){"use strict";function o(e,t,i){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(i)}e.exports=o;var n=i(2);(o.prototype=Object.create(n.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function e(t,i,o,r,d){if(!r)throw TypeError("request must be specified");var a=this;if(!d)return n.asPromise(e,a,t,i,o,r);if(!a.rpcImpl)return void setTimeout(function(){d(Error("already ended"))},0);try{return a.rpcImpl(t,i[a.requestDelimited?"encodeDelimited":"encode"](r).finish(),function(e,i){if(e)return a.emit("error",e,t),d(e);if(null===i)return void a.end(!0);if(!(i instanceof o))try{i=o[a.responseDelimited?"decodeDelimited":"decode"](i)}catch(e){return a.emit("error",e,t),d(e)}return a.emit("data",i,t),d(null,i)})}catch(e){return a.emit("error",e,t),void setTimeout(function(){d(e)},0)}},o.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},function(e,t,i){"use strict";function o(e,t){this.lo=e>>>0,this.hi=t>>>0}e.exports=o;var n=i(2),r=o.zero=new o(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var d=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return r;var t=e<0;t&&(e=-e);var i=e>>>0,n=(e-i)/4294967296>>>0;return t&&(n=~n>>>0,i=~i>>>0,++i>4294967295&&(i=0,++n>4294967295&&(n=0))),new o(i,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):r},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,i=~this.hi>>>0;return t||(i=i+1>>>0),-(t+4294967296*i)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===d?r:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,i=this.hi>>>24;return 0===i?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:i<128?9:10}},function(e,t,i){"use strict";function o(){r.call(this)}function n(e,t,i){e.length<40?d.utf8.write(e,t,i):t.utf8Write(e,i)}e.exports=o;var r=i(10);(o.prototype=Object.create(r.prototype)).constructor=o;var d=i(2),a=d.Buffer;o.alloc=function(e){return(o.alloc=d._Buffer_allocUnsafe)(e)};var s=a&&a.prototype instanceof Uint8Array&&"set"===a.prototype.set.name?function(e,t,i){t.set(e,i)}:function(e,t,i){if(e.copy)e.copy(t,i,0,e.length);else for(var o=0;o>>0;return this.uint32(t),t&&this._push(s,t,e),this},o.prototype.string=function(e){var t=a.byteLength(e);return this.uint32(t),t&&this._push(n,t,e),this}},function(e,t){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(i=window)}e.exports=i}]); //# sourceMappingURL=worker.bundle.js.map \ No newline at end of file diff --git a/modules/dreamview/frontend/dist/worker.bundle.js.map b/modules/dreamview/frontend/dist/worker.bundle.js.map index a4a8e666d39b35ba91e7cfe02da8384320d87a96..e4bcbe934d4e6e2f10ed3b82c1e9d750197eeccb 100644 --- a/modules/dreamview/frontend/dist/worker.bundle.js.map +++ b/modules/dreamview/frontend/dist/worker.bundle.js.map @@ -1 +1 @@ -{"version":3,"file":"worker.bundle.js","sources":["webpack:///worker.bundle.js"],"sourcesContent":["!function(e){function t(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,o){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,\"a\",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=\"/\",t(t.s=28)}([function(e,t,i){\"use strict\";var o,n,r=e.exports=i(2),d=i(19);r.codegen=i(30),r.fetch=i(32),r.path=i(34),r.fs=r.inquire(\"fs\"),r.toArray=function(e){if(e){for(var t=Object.keys(e),i=new Array(t.length),o=0;o0)},r.Buffer=function(){try{var e=r.inquire(\"buffer\").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return\"number\"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):\"undefined\"==typeof Uint8Array?e:new Uint8Array(e)},r.Array=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire(\"long\"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\\\x00-\\\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var i=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(i.lo,i.hi,t):i.toNumber(Boolean(t))},r.merge=o,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=n,r.ProtocolError=n(\"ProtocolError\"),r.oneOfGetter=function(e){for(var t={},i=0;i-1;--i)if(1===t[e[i]]&&void 0!==this[e[i]]&&null!==this[e[i]])return e[i]}},r.oneOfSetter=function(e){return function(t){for(var i=0;i=t)return!0;return!1},n.isReservedName=function(e,t){if(e)for(var i=0;i0;){var o=e.shift();if(i.nested&&i.nested[o]){if(!((i=i.nested[o])instanceof n))throw Error(\"path conflicts with non-namespace objects\")}else i.add(i=new n(o))}return t&&i.addJSON(t),i},n.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t-1)return o}else if(o instanceof n&&(o=o.lookup(e.slice(1),t,!0)))return o}else for(var r=0;r-1&&this.oneof.splice(t,1),e.partOf=null,this},o.prototype.onAdd=function(e){r.prototype.onAdd.call(this,e);for(var t=this,i=0;i \"+e.len)}function n(e){this.buf=e,this.pos=0,this.len=e.length}function r(){var e=new l(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw o(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw o(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error(\"invalid varint encoding\")}function d(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function a(){if(this.pos+8>this.len)throw o(this,8);return new l(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}e.exports=n;var s,p=i(2),l=p.LongBits,u=p.utf8,f=\"undefined\"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new n(e);throw Error(\"illegal buffer\")}:function(e){if(Array.isArray(e))return new n(e);throw Error(\"illegal buffer\")};n.create=p.Buffer?function(e){return(n.create=function(e){return p.Buffer.isBuffer(e)?new s(e):f(e)})(e)}:f,n.prototype._slice=p.Array.prototype.subarray||p.Array.prototype.slice,n.prototype.uint32=function(){var e=4294967295;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return e;if((this.pos+=5)>this.len)throw this.pos=this.len,o(this,10);return e}}(),n.prototype.int32=function(){return 0|this.uint32()},n.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},n.prototype.bool=function(){return 0!==this.uint32()},n.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return d(this.buf,this.pos+=4)},n.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return 0|d(this.buf,this.pos+=4)},n.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var e=p.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},n.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var e=p.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},n.prototype.bytes=function(){var e=this.uint32(),t=this.pos,i=this.pos+e;if(i>this.len)throw o(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,i):t===i?new this.buf.constructor(0):this._slice.call(this.buf,t,i)},n.prototype.string=function(){var e=this.bytes();return u.read(e,0,e.length)},n.prototype.skip=function(e){if(\"number\"==typeof e){if(this.pos+e>this.len)throw o(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw o(this)}while(128&this.buf[this.pos++]);return this},n.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error(\"invalid wire type \"+e+\" at offset \"+this.pos)}return this},n._configure=function(e){s=e;var t=p.Long?\"toLong\":\"toNumber\";p.merge(n.prototype,{int64:function(){return r.call(this)[t](!1)},uint64:function(){return r.call(this)[t](!0)},sint64:function(){return r.call(this).zzDecode()[t](!1)},fixed64:function(){return a.call(this)[t](!0)},sfixed64:function(){return a.call(this)[t](!1)}})}},function(e,t,i){\"use strict\";function o(e,t,i){this.fn=e,this.len=t,this.next=void 0,this.val=i}function n(){}function r(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function d(){this.len=0,this.head=new o(n,0,0),this.tail=this.head,this.states=null}function a(e,t,i){t[i]=255&e}function s(e,t,i){for(;e>127;)t[i++]=127&e|128,e>>>=7;t[i]=e}function p(e,t){this.len=e,this.next=void 0,this.val=t}function l(e,t,i){for(;e.hi;)t[i++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[i++]=127&e.lo|128,e.lo=e.lo>>>7;t[i++]=e.lo}function u(e,t,i){t[i]=255&e,t[i+1]=e>>>8&255,t[i+2]=e>>>16&255,t[i+3]=e>>>24}e.exports=d;var f,y=i(2),c=y.LongBits,h=y.base64,g=y.utf8;d.create=y.Buffer?function(){return(d.create=function(){return new f})()}:function(){return new d},d.alloc=function(e){return new y.Array(e)},y.Array!==Array&&(d.alloc=y.pool(d.alloc,y.Array.prototype.subarray)),d.prototype._push=function(e,t,i){return this.tail=this.tail.next=new o(e,t,i),this.len+=t,this},p.prototype=Object.create(o.prototype),p.prototype.fn=s,d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(l,10,c.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=c.from(e);return this._push(l,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=c.from(e).zzEncode();return this._push(l,t.length(),t)},d.prototype.bool=function(e){return this._push(a,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(u,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=c.from(e);return this._push(u,4,t.lo)._push(u,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(y.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(y.float.writeDoubleLE,8,e)};var b=y.Array.prototype.set?function(e,t,i){t.set(e,i)}:function(e,t,i){for(var o=0;o>>0;if(!t)return this._push(a,1,0);if(y.isString(e)){var i=d.alloc(t=h.length(e));h.decode(e,i,0),e=i}return this.uint32(t)._push(b,t,e)},d.prototype.string=function(e){var t=g.length(e);return t?this.uint32(t)._push(g.write,t,e):this._push(a,1,0)},d.prototype.fork=function(){return this.states=new r(this),this.head=this.tail=new o(n,0,0),this.len=0,this},d.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new o(n,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,i=this.len;return this.reset().uint32(i),i&&(this.tail.next=e.next,this.tail=t,this.len+=i),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),i=0;e;)e.fn(e.val,t,i),i+=e.len,e=e.next;return t},d._configure=function(e){f=e}},function(e,t,i){\"use strict\";function o(e,t){for(var i=new Array(arguments.length-1),o=0,n=2,r=!0;n>>0\",o,o);break;case\"int32\":case\"sint32\":case\"sfixed32\":e(\"m%s=d%s|0\",o,o);break;case\"uint64\":s=!0;case\"int64\":case\"sint64\":case\"fixed64\":case\"sfixed64\":e(\"if(util.Long)\")(\"(m%s=util.Long.fromValue(d%s)).unsigned=%j\",o,o,s)('else if(typeof d%s===\"string\")',o)(\"m%s=parseInt(d%s,10)\",o,o)('else if(typeof d%s===\"number\")',o)(\"m%s=d%s\",o,o)('else if(typeof d%s===\"object\")',o)(\"m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)\",o,o,o,s?\"true\":\"\");break;case\"bytes\":e('if(typeof d%s===\"string\")',o)(\"util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)\",o,o,o)(\"else if(d%s.length)\",o)(\"m%s=d%s\",o,o);break;case\"string\":e(\"m%s=String(d%s)\",o,o);break;case\"bool\":e(\"m%s=Boolean(d%s)\",o,o)}}return e}function n(e,t,i,o){if(t.resolvedType)t.resolvedType instanceof d?e(\"d%s=o.enums===String?types[%i].values[m%s]:m%s\",o,i,o,o):e(\"d%s=types[%i].toObject(m%s,o)\",o,i,o);else{var n=!1;switch(t.type){case\"double\":case\"float\":e(\"d%s=o.json&&!isFinite(m%s)?String(m%s):m%s\",o,o,o,o);break;case\"uint64\":n=!0;case\"int64\":case\"sint64\":case\"fixed64\":case\"sfixed64\":e('if(typeof m%s===\"number\")',o)(\"d%s=o.longs===String?String(m%s):m%s\",o,o,o)(\"else\")(\"d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s\",o,o,o,o,n?\"true\":\"\",o);break;case\"bytes\":e(\"d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s\",o,o,o,o,o);break;default:e(\"d%s=m%s\",o,o)}}return e}var r=t,d=i(1),a=i(0);r.fromObject=function(e){var t=e.fieldsArray,i=a.codegen([\"d\"],e.name+\"$fromObject\")(\"if(d instanceof this.ctor)\")(\"return d\");if(!t.length)return i(\"return new this.ctor\");i(\"var m=new this.ctor\");for(var n=0;n>>3){\");for(var i=0;i>>0,(t.id<<3|4)>>>0):e(\"types[%i].encode(%s,w.uint32(%i).fork()).ldelim()\",i,o,(t.id<<3|2)>>>0)}function n(e){for(var t,i,n=a.codegen([\"m\",\"w\"],e.name+\"$encode\")(\"if(!w)\")(\"w=Writer.create()\"),s=e.fieldsArray.slice().sort(a.compareFieldsById),t=0;t>>0,8|d.mapKey[p.keyType],p.keyType),void 0===f?n(\"types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()\",l,i):n(\".uint32(%i).%s(%s[ks[i]]).ldelim()\",16|f,u,i),n(\"}\")(\"}\")):p.repeated?(n(\"if(%s!=null&&%s.length){\",i,i),p.packed&&void 0!==d.packed[u]?n(\"w.uint32(%i).fork()\",(p.id<<3|2)>>>0)(\"for(var i=0;i<%s.length;++i)\",i)(\"w.%s(%s[i])\",u,i)(\"w.ldelim()\"):(n(\"for(var i=0;i<%s.length;++i)\",i),void 0===f?o(n,p,l,i+\"[i]\"):n(\"w.uint32(%i).%s(%s[i])\",(p.id<<3|f)>>>0,u,i)),n(\"}\")):(p.optional&&n(\"if(%s!=null&&m.hasOwnProperty(%j))\",i,p.name),void 0===f?o(n,p,l,i):n(\"w.uint32(%i).%s(%s)\",(p.id<<3|f)>>>0,u,i))}return n(\"return w\")}e.exports=n;var r=i(1),d=i(6),a=i(0)},function(e,t,i){\"use strict\";function o(e,t,i,o,r,a){if(n.call(this,e,t,o,void 0,void 0,r,a),!d.isString(i))throw TypeError(\"keyType must be a string\");this.keyType=i,this.resolvedKeyType=null,this.map=!0}e.exports=o;var n=i(3);((o.prototype=Object.create(n.prototype)).constructor=o).className=\"MapField\";var r=i(6),d=i(0);o.fromJSON=function(e,t){return new o(e,t.id,t.keyType,t.type,t.options,t.comment)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return d.toObject([\"keyType\",this.keyType,\"type\",this.type,\"id\",this.id,\"extend\",this.extend,\"options\",this.options,\"comment\",t?this.comment:void 0])},o.prototype.resolve=function(){if(this.resolved)return this;if(void 0===r.mapKey[this.keyType])throw Error(\"invalid key type: \"+this.keyType);return n.prototype.resolve.call(this)},o.d=function(e,t,i){return\"function\"==typeof i?i=d.decorateType(i).name:i&&\"object\"==typeof i&&(i=d.decorateEnum(i).name),function(n,r){d.decorateType(n.constructor).add(new o(r,e,t,i))}}},function(e,t,i){\"use strict\";function o(e,t,i,o,d,a,s,p){if(r.isObject(d)?(s=d,d=a=void 0):r.isObject(a)&&(s=a,a=void 0),void 0!==t&&!r.isString(t))throw TypeError(\"type must be a string\");if(!r.isString(i))throw TypeError(\"requestType must be a string\");if(!r.isString(o))throw TypeError(\"responseType must be a string\");n.call(this,e,s),this.type=t||\"rpc\",this.requestType=i,this.requestStream=!!d||void 0,this.responseType=o,this.responseStream=!!a||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=p}e.exports=o;var n=i(4);((o.prototype=Object.create(n.prototype)).constructor=o).className=\"Method\";var r=i(0);o.fromJSON=function(e,t){return new o(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return r.toObject([\"type\",\"rpc\"!==this.type&&this.type||void 0,\"requestType\",this.requestType,\"requestStream\",this.requestStream,\"responseType\",this.responseType,\"responseStream\",this.responseStream,\"options\",this.options,\"comment\",t?this.comment:void 0])},o.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),n.prototype.resolve.call(this))}},function(e,t,i){\"use strict\";function o(e){d.call(this,\"\",e),this.deferred=[],this.files=[]}function n(){}function r(e,t){var i=t.parent.lookup(t.extend);if(i){var o=new l(t.fullName,t.id,t.type,t.rule,void 0,t.options);return o.declaringField=t,t.extensionField=o,i.add(o),!0}return!1}e.exports=o;var d=i(5);((o.prototype=Object.create(d.prototype)).constructor=o).className=\"Root\";var a,s,p,l=i(3),u=i(1),f=i(8),y=i(0);o.fromJSON=function(e,t){return t||(t=new o),e.options&&t.setOptions(e.options),t.addJSON(e.nested)},o.prototype.resolvePath=y.path.resolve,o.prototype.load=function e(t,i,o){function r(e,t){if(o){var i=o;if(o=null,u)throw e;i(e,t)}}function d(e,t){try{if(y.isString(t)&&\"{\"===t.charAt(0)&&(t=JSON.parse(t)),y.isString(t)){s.filename=e;var o,n=s(t,l,i),d=0;if(n.imports)for(;d-1){var n=e.substring(i);n in p&&(e=n)}if(!(l.files.indexOf(e)>-1)){if(l.files.push(e),e in p)return void(u?d(e,p[e]):(++f,setTimeout(function(){--f,d(e,p[e])})));if(u){var a;try{a=y.fs.readFileSync(e).toString(\"utf8\")}catch(e){return void(t||r(e))}d(e,a)}else++f,y.fetch(e,function(i,n){if(--f,o)return i?void(t?f||r(null,l):r(i)):void d(e,n)})}}\"function\"==typeof i&&(o=i,i=void 0);var l=this;if(!o)return y.asPromise(e,l,t,i);var u=o===n,f=0;y.isString(t)&&(t=[t]);for(var c,h=0;h-1&&this.deferred.splice(t,1)}}else if(e instanceof u)c.test(e.name)&&delete e.parent[e.name];else if(e instanceof d){for(var i=0;i1&&\"=\"===e.charAt(t);)++i;return Math.ceil(3*e.length)/4-i};for(var n=new Array(64),r=new Array(123),d=0;d<64;)r[n[d]=d<26?d+65:d<52?d+71:d<62?d-4:d-59|43]=d++;o.encode=function(e,t,i){for(var o,r=null,d=[],a=0,s=0;t>2],o=(3&p)<<4,s=1;break;case 1:d[a++]=n[o|p>>4],o=(15&p)<<2,s=2;break;case 2:d[a++]=n[o|p>>6],d[a++]=n[63&p],s=0}a>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,d)),a=0)}return s&&(d[a++]=n[o],d[a++]=61,1===s&&(d[a++]=61)),r?(a&&r.push(String.fromCharCode.apply(String,d.slice(0,a))),r.join(\"\")):String.fromCharCode.apply(String,d.slice(0,a))};o.decode=function(e,t,i){for(var o,n=i,d=0,a=0;a1)break;if(void 0===(s=r[s]))throw Error(\"invalid encoding\");switch(d){case 0:o=s,d=1;break;case 1:t[i++]=o<<2|(48&s)>>4,o=s,d=2;break;case 2:t[i++]=(15&o)<<4|(60&s)>>2,o=s,d=3;break;case 3:t[i++]=(3&o)<<6|s,d=0}}if(1===d)throw Error(\"invalid encoding\");return i-n},o.test=function(e){return/^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$/.test(e)}},function(e,t,i){\"use strict\";function o(e,t){function i(e){if(\"string\"!=typeof e){var t=n();if(o.verbose&&console.log(\"codegen: \"+t),t=\"return \"+t,e){for(var d=Object.keys(e),a=new Array(d.length+1),s=new Array(d.length),p=0;p0?0:2147483648,i,o);else if(isNaN(t))e(2143289344,i,o);else if(t>3.4028234663852886e38)e((n<<31|2139095040)>>>0,i,o);else if(t<1.1754943508222875e-38)e((n<<31|Math.round(t/1.401298464324817e-45))>>>0,i,o);else{var r=Math.floor(Math.log(t)/Math.LN2),d=8388607&Math.round(t*Math.pow(2,-r)*8388608);e((n<<31|r+127<<23|d)>>>0,i,o)}}function i(e,t,i){var o=e(t,i),n=2*(o>>31)+1,r=o>>>23&255,d=8388607&o;return 255===r?d?NaN:n*(1/0):0===r?1.401298464324817e-45*n*d:n*Math.pow(2,r-150)*(d+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,r),e.readFloatLE=i.bind(null,d),e.readFloatBE=i.bind(null,a)}(),\"undefined\"!=typeof Float64Array?function(){function t(e,t,i){r[0]=e,t[i]=d[0],t[i+1]=d[1],t[i+2]=d[2],t[i+3]=d[3],t[i+4]=d[4],t[i+5]=d[5],t[i+6]=d[6],t[i+7]=d[7]}function i(e,t,i){r[0]=e,t[i]=d[7],t[i+1]=d[6],t[i+2]=d[5],t[i+3]=d[4],t[i+4]=d[3],t[i+5]=d[2],t[i+6]=d[1],t[i+7]=d[0]}function o(e,t){return d[0]=e[t],d[1]=e[t+1],d[2]=e[t+2],d[3]=e[t+3],d[4]=e[t+4],d[5]=e[t+5],d[6]=e[t+6],d[7]=e[t+7],r[0]}function n(e,t){return d[7]=e[t],d[6]=e[t+1],d[5]=e[t+2],d[4]=e[t+3],d[3]=e[t+4],d[2]=e[t+5],d[1]=e[t+6],d[0]=e[t+7],r[0]}var r=new Float64Array([-0]),d=new Uint8Array(r.buffer),a=128===d[7];e.writeDoubleLE=a?t:i,e.writeDoubleBE=a?i:t,e.readDoubleLE=a?o:n,e.readDoubleBE=a?n:o}():function(){function t(e,t,i,o,n,r){var d=o<0?1:0;if(d&&(o=-o),0===o)e(0,n,r+t),e(1/o>0?0:2147483648,n,r+i);else if(isNaN(o))e(0,n,r+t),e(2146959360,n,r+i);else if(o>1.7976931348623157e308)e(0,n,r+t),e((d<<31|2146435072)>>>0,n,r+i);else{var a;if(o<2.2250738585072014e-308)a=o/5e-324,e(a>>>0,n,r+t),e((d<<31|a/4294967296)>>>0,n,r+i);else{var s=Math.floor(Math.log(o)/Math.LN2);1024===s&&(s=1023),a=o*Math.pow(2,-s),e(4503599627370496*a>>>0,n,r+t),e((d<<31|s+1023<<20|1048576*a&1048575)>>>0,n,r+i)}}}function i(e,t,i,o,n){var r=e(o,n+t),d=e(o,n+i),a=2*(d>>31)+1,s=d>>>20&2047,p=4294967296*(1048575&d)+r;return 2047===s?p?NaN:a*(1/0):0===s?5e-324*a*p:a*Math.pow(2,s-1075)*(p+4503599627370496)}e.writeDoubleLE=t.bind(null,n,0,4),e.writeDoubleBE=t.bind(null,r,4,0),e.readDoubleLE=i.bind(null,d,0,4),e.readDoubleBE=i.bind(null,a,4,0)}(),e}function n(e,t,i){t[i]=255&e,t[i+1]=e>>>8&255,t[i+2]=e>>>16&255,t[i+3]=e>>>24}function r(e,t,i){t[i]=e>>>24,t[i+1]=e>>>16&255,t[i+2]=e>>>8&255,t[i+3]=255&e}function d(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function a(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=o(o)},function(e,t,i){\"use strict\";var o=t,n=o.isAbsolute=function(e){return/^(?:\\/|\\w+:)/.test(e)},r=o.normalize=function(e){e=e.replace(/\\\\/g,\"/\").replace(/\\/{2,}/g,\"/\");var t=e.split(\"/\"),i=n(e),o=\"\";i&&(o=t.shift()+\"/\");for(var r=0;r0&&\"..\"!==t[r-1]?t.splice(--r,2):i?t.splice(r,1):++r:\".\"===t[r]?t.splice(r,1):++r;return o+t.join(\"/\")};o.resolve=function(e,t,i){return i||(t=r(t)),n(t)?t:(i||(e=r(e)),(e=e.replace(/(?:\\/|^)[^\\/]+$/,\"\")).length?r(e+\"/\"+t):t)}},function(e,t,i){\"use strict\";function o(e,t,i){var o=i||8192,n=o>>>1,r=null,d=o;return function(i){if(i<1||i>n)return e(i);d+i>o&&(r=e(o),d=0);var a=t.call(r,d,d+=i);return 7&d&&(d=1+(7|d)),a}}e.exports=o},function(e,t,i){\"use strict\";var o=t;o.length=function(e){for(var t=0,i=0,o=0;o191&&o<224?r[d++]=(31&o)<<6|63&e[t++]:o>239&&o<365?(o=((7&o)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,r[d++]=55296+(o>>10),r[d++]=56320+(1023&o)):r[d++]=(15&o)<<12|(63&e[t++])<<6|63&e[t++],d>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,r)),d=0);return n?(d&&n.push(String.fromCharCode.apply(String,r.slice(0,d))),n.join(\"\")):String.fromCharCode.apply(String,r.slice(0,d))},o.write=function(e,t,i){for(var o,n,r=i,d=0;d>6|192,t[i++]=63&o|128):55296==(64512&o)&&56320==(64512&(n=e.charCodeAt(d+1)))?(o=65536+((1023&o)<<10)+(1023&n),++d,t[i++]=o>>18|240,t[i++]=o>>12&63|128,t[i++]=o>>6&63|128,t[i++]=63&o|128):(t[i++]=o>>12|224,t[i++]=o>>6&63|128,t[i++]=63&o|128);return i-r}},function(e,t,i){\"use strict\";function o(e,t,i){return\"function\"==typeof t?(i=t,t=new r.Root):t||(t=new r.Root),t.load(e,i)}function n(e,t){return t||(t=new r.Root),t.loadSync(e)}var r=e.exports=i(38);r.build=\"light\",r.load=o,r.loadSync=n,r.encoder=i(15),r.decoder=i(14),r.verifier=i(23),r.converter=i(13),r.ReflectionObject=i(4),r.Namespace=i(5),r.Root=i(18),r.Enum=i(1),r.Type=i(22),r.Field=i(3),r.OneOf=i(8),r.MapField=i(16),r.Service=i(21),r.Method=i(17),r.Message=i(7),r.wrappers=i(24),r.types=i(6),r.util=i(0),r.ReflectionObject._configure(r.Root),r.Namespace._configure(r.Type,r.Service,r.Enum),r.Root._configure(r.Type),r.Field._configure(r.Type)},function(e,t,i){\"use strict\";function o(){n.Reader._configure(n.BufferReader),n.util._configure()}var n=t;n.build=\"minimal\",n.Writer=i(10),n.BufferWriter=i(42),n.Reader=i(9),n.BufferReader=i(39),n.util=i(2),n.rpc=i(20),n.roots=i(19),n.configure=o,n.Writer._configure(n.BufferWriter),o()},function(e,t,i){\"use strict\";function o(e){n.call(this,e)}e.exports=o;var n=i(9);(o.prototype=Object.create(n.prototype)).constructor=o;var r=i(2);r.Buffer&&(o.prototype._slice=r.Buffer.prototype.slice),o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len))}},function(e,t,i){\"use strict\";function o(e,t,i){if(\"function\"!=typeof e)throw TypeError(\"rpcImpl must be a function\");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(i)}e.exports=o;var n=i(2);(o.prototype=Object.create(n.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function e(t,i,o,r,d){if(!r)throw TypeError(\"request must be specified\");var a=this;if(!d)return n.asPromise(e,a,t,i,o,r);if(!a.rpcImpl)return void setTimeout(function(){d(Error(\"already ended\"))},0);try{return a.rpcImpl(t,i[a.requestDelimited?\"encodeDelimited\":\"encode\"](r).finish(),function(e,i){if(e)return a.emit(\"error\",e,t),d(e);if(null===i)return void a.end(!0);if(!(i instanceof o))try{i=o[a.responseDelimited?\"decodeDelimited\":\"decode\"](i)}catch(e){return a.emit(\"error\",e,t),d(e)}return a.emit(\"data\",i,t),d(null,i)})}catch(e){return a.emit(\"error\",e,t),void setTimeout(function(){d(e)},0)}},o.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit(\"end\").off()),this}},function(e,t,i){\"use strict\";function o(e,t){this.lo=e>>>0,this.hi=t>>>0}e.exports=o;var n=i(2),r=o.zero=new o(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var d=o.zeroHash=\"\\0\\0\\0\\0\\0\\0\\0\\0\";o.fromNumber=function(e){if(0===e)return r;var t=e<0;t&&(e=-e);var i=e>>>0,n=(e-i)/4294967296>>>0;return t&&(n=~n>>>0,i=~i>>>0,++i>4294967295&&(i=0,++n>4294967295&&(n=0))),new o(i,n)},o.from=function(e){if(\"number\"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):r},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,i=~this.hi>>>0;return t||(i=i+1>>>0),-(t+4294967296*i)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===d?r:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,i=this.hi>>>24;return 0===i?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:i<128?9:10}},function(e,t,i){\"use strict\";function o(){r.call(this)}function n(e,t,i){e.length<40?d.utf8.write(e,t,i):t.utf8Write(e,i)}e.exports=o;var r=i(10);(o.prototype=Object.create(r.prototype)).constructor=o;var d=i(2),a=d.Buffer;o.alloc=function(e){return(o.alloc=d._Buffer_allocUnsafe)(e)};var s=a&&a.prototype instanceof Uint8Array&&\"set\"===a.prototype.set.name?function(e,t,i){t.set(e,i)}:function(e,t,i){if(e.copy)e.copy(t,i,0,e.length);else for(var o=0;o>>0;return this.uint32(t),t&&this._push(s,t,e),this},o.prototype.string=function(e){var t=a.byteLength(e);return this.uint32(t),t&&this._push(n,t,e),this}},function(e,t){var i;i=function(){return this}();try{i=i||Function(\"return this\")()||(0,eval)(\"this\")}catch(e){\"object\"==typeof window&&(i=window)}e.exports=i}]);\n\n\n// WEBPACK FOOTER //\n// worker.bundle.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file +{"version":3,"file":"worker.bundle.js","sources":["webpack:///worker.bundle.js"],"sourcesContent":["!function(e){function t(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,o){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,\"a\",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=\"/\",t(t.s=28)}([function(e,t,i){\"use strict\";var o,n,r=e.exports=i(2),d=i(19);r.codegen=i(30),r.fetch=i(32),r.path=i(34),r.fs=r.inquire(\"fs\"),r.toArray=function(e){if(e){for(var t=Object.keys(e),i=new Array(t.length),o=0;o0)},r.Buffer=function(){try{var e=r.inquire(\"buffer\").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return\"number\"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):\"undefined\"==typeof Uint8Array?e:new Uint8Array(e)},r.Array=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire(\"long\"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\\\x00-\\\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var i=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(i.lo,i.hi,t):i.toNumber(Boolean(t))},r.merge=o,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=n,r.ProtocolError=n(\"ProtocolError\"),r.oneOfGetter=function(e){for(var t={},i=0;i-1;--i)if(1===t[e[i]]&&void 0!==this[e[i]]&&null!==this[e[i]])return e[i]}},r.oneOfSetter=function(e){return function(t){for(var i=0;i=t)return!0;return!1},n.isReservedName=function(e,t){if(e)for(var i=0;i0;){var o=e.shift();if(i.nested&&i.nested[o]){if(!((i=i.nested[o])instanceof n))throw Error(\"path conflicts with non-namespace objects\")}else i.add(i=new n(o))}return t&&i.addJSON(t),i},n.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t-1)return o}else if(o instanceof n&&(o=o.lookup(e.slice(1),t,!0)))return o}else for(var r=0;r-1&&this.oneof.splice(t,1),e.partOf=null,this},o.prototype.onAdd=function(e){r.prototype.onAdd.call(this,e);for(var t=this,i=0;i \"+e.len)}function n(e){this.buf=e,this.pos=0,this.len=e.length}function r(){var e=new l(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw o(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw o(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error(\"invalid varint encoding\")}function d(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function a(){if(this.pos+8>this.len)throw o(this,8);return new l(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}e.exports=n;var s,p=i(2),l=p.LongBits,u=p.utf8,f=\"undefined\"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new n(e);throw Error(\"illegal buffer\")}:function(e){if(Array.isArray(e))return new n(e);throw Error(\"illegal buffer\")};n.create=p.Buffer?function(e){return(n.create=function(e){return p.Buffer.isBuffer(e)?new s(e):f(e)})(e)}:f,n.prototype._slice=p.Array.prototype.subarray||p.Array.prototype.slice,n.prototype.uint32=function(){var e=4294967295;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return e;if((this.pos+=5)>this.len)throw this.pos=this.len,o(this,10);return e}}(),n.prototype.int32=function(){return 0|this.uint32()},n.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},n.prototype.bool=function(){return 0!==this.uint32()},n.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return d(this.buf,this.pos+=4)},n.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return 0|d(this.buf,this.pos+=4)},n.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var e=p.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},n.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var e=p.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},n.prototype.bytes=function(){var e=this.uint32(),t=this.pos,i=this.pos+e;if(i>this.len)throw o(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,i):t===i?new this.buf.constructor(0):this._slice.call(this.buf,t,i)},n.prototype.string=function(){var e=this.bytes();return u.read(e,0,e.length)},n.prototype.skip=function(e){if(\"number\"==typeof e){if(this.pos+e>this.len)throw o(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw o(this)}while(128&this.buf[this.pos++]);return this},n.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error(\"invalid wire type \"+e+\" at offset \"+this.pos)}return this},n._configure=function(e){s=e;var t=p.Long?\"toLong\":\"toNumber\";p.merge(n.prototype,{int64:function(){return r.call(this)[t](!1)},uint64:function(){return r.call(this)[t](!0)},sint64:function(){return r.call(this).zzDecode()[t](!1)},fixed64:function(){return a.call(this)[t](!0)},sfixed64:function(){return a.call(this)[t](!1)}})}},function(e,t,i){\"use strict\";function o(e,t,i){this.fn=e,this.len=t,this.next=void 0,this.val=i}function n(){}function r(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function d(){this.len=0,this.head=new o(n,0,0),this.tail=this.head,this.states=null}function a(e,t,i){t[i]=255&e}function s(e,t,i){for(;e>127;)t[i++]=127&e|128,e>>>=7;t[i]=e}function p(e,t){this.len=e,this.next=void 0,this.val=t}function l(e,t,i){for(;e.hi;)t[i++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[i++]=127&e.lo|128,e.lo=e.lo>>>7;t[i++]=e.lo}function u(e,t,i){t[i]=255&e,t[i+1]=e>>>8&255,t[i+2]=e>>>16&255,t[i+3]=e>>>24}e.exports=d;var f,y=i(2),c=y.LongBits,h=y.base64,g=y.utf8;d.create=y.Buffer?function(){return(d.create=function(){return new f})()}:function(){return new d},d.alloc=function(e){return new y.Array(e)},y.Array!==Array&&(d.alloc=y.pool(d.alloc,y.Array.prototype.subarray)),d.prototype._push=function(e,t,i){return this.tail=this.tail.next=new o(e,t,i),this.len+=t,this},p.prototype=Object.create(o.prototype),p.prototype.fn=s,d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(l,10,c.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=c.from(e);return this._push(l,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=c.from(e).zzEncode();return this._push(l,t.length(),t)},d.prototype.bool=function(e){return this._push(a,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(u,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=c.from(e);return this._push(u,4,t.lo)._push(u,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(y.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(y.float.writeDoubleLE,8,e)};var b=y.Array.prototype.set?function(e,t,i){t.set(e,i)}:function(e,t,i){for(var o=0;o>>0;if(!t)return this._push(a,1,0);if(y.isString(e)){var i=d.alloc(t=h.length(e));h.decode(e,i,0),e=i}return this.uint32(t)._push(b,t,e)},d.prototype.string=function(e){var t=g.length(e);return t?this.uint32(t)._push(g.write,t,e):this._push(a,1,0)},d.prototype.fork=function(){return this.states=new r(this),this.head=this.tail=new o(n,0,0),this.len=0,this},d.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new o(n,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,i=this.len;return this.reset().uint32(i),i&&(this.tail.next=e.next,this.tail=t,this.len+=i),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),i=0;e;)e.fn(e.val,t,i),i+=e.len,e=e.next;return t},d._configure=function(e){f=e}},function(e,t,i){\"use strict\";function o(e,t){for(var i=new Array(arguments.length-1),o=0,n=2,r=!0;n>>0\",o,o);break;case\"int32\":case\"sint32\":case\"sfixed32\":e(\"m%s=d%s|0\",o,o);break;case\"uint64\":s=!0;case\"int64\":case\"sint64\":case\"fixed64\":case\"sfixed64\":e(\"if(util.Long)\")(\"(m%s=util.Long.fromValue(d%s)).unsigned=%j\",o,o,s)('else if(typeof d%s===\"string\")',o)(\"m%s=parseInt(d%s,10)\",o,o)('else if(typeof d%s===\"number\")',o)(\"m%s=d%s\",o,o)('else if(typeof d%s===\"object\")',o)(\"m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)\",o,o,o,s?\"true\":\"\");break;case\"bytes\":e('if(typeof d%s===\"string\")',o)(\"util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)\",o,o,o)(\"else if(d%s.length)\",o)(\"m%s=d%s\",o,o);break;case\"string\":e(\"m%s=String(d%s)\",o,o);break;case\"bool\":e(\"m%s=Boolean(d%s)\",o,o)}}return e}function n(e,t,i,o){if(t.resolvedType)t.resolvedType instanceof d?e(\"d%s=o.enums===String?types[%i].values[m%s]:m%s\",o,i,o,o):e(\"d%s=types[%i].toObject(m%s,o)\",o,i,o);else{var n=!1;switch(t.type){case\"double\":case\"float\":e(\"d%s=o.json&&!isFinite(m%s)?String(m%s):m%s\",o,o,o,o);break;case\"uint64\":n=!0;case\"int64\":case\"sint64\":case\"fixed64\":case\"sfixed64\":e('if(typeof m%s===\"number\")',o)(\"d%s=o.longs===String?String(m%s):m%s\",o,o,o)(\"else\")(\"d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s\",o,o,o,o,n?\"true\":\"\",o);break;case\"bytes\":e(\"d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s\",o,o,o,o,o);break;default:e(\"d%s=m%s\",o,o)}}return e}var r=t,d=i(1),a=i(0);r.fromObject=function(e){var t=e.fieldsArray,i=a.codegen([\"d\"],e.name+\"$fromObject\")(\"if(d instanceof this.ctor)\")(\"return d\");if(!t.length)return i(\"return new this.ctor\");i(\"var m=new this.ctor\");for(var n=0;n>>3){\");for(var i=0;i>>0,(t.id<<3|4)>>>0):e(\"types[%i].encode(%s,w.uint32(%i).fork()).ldelim()\",i,o,(t.id<<3|2)>>>0)}function n(e){for(var t,i,n=a.codegen([\"m\",\"w\"],e.name+\"$encode\")(\"if(!w)\")(\"w=Writer.create()\"),s=e.fieldsArray.slice().sort(a.compareFieldsById),t=0;t>>0,8|d.mapKey[p.keyType],p.keyType),void 0===f?n(\"types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()\",l,i):n(\".uint32(%i).%s(%s[ks[i]]).ldelim()\",16|f,u,i),n(\"}\")(\"}\")):p.repeated?(n(\"if(%s!=null&&%s.length){\",i,i),p.packed&&void 0!==d.packed[u]?n(\"w.uint32(%i).fork()\",(p.id<<3|2)>>>0)(\"for(var i=0;i<%s.length;++i)\",i)(\"w.%s(%s[i])\",u,i)(\"w.ldelim()\"):(n(\"for(var i=0;i<%s.length;++i)\",i),void 0===f?o(n,p,l,i+\"[i]\"):n(\"w.uint32(%i).%s(%s[i])\",(p.id<<3|f)>>>0,u,i)),n(\"}\")):(p.optional&&n(\"if(%s!=null&&m.hasOwnProperty(%j))\",i,p.name),void 0===f?o(n,p,l,i):n(\"w.uint32(%i).%s(%s)\",(p.id<<3|f)>>>0,u,i))}return n(\"return w\")}e.exports=n;var r=i(1),d=i(6),a=i(0)},function(e,t,i){\"use strict\";function o(e,t,i,o,r,a){if(n.call(this,e,t,o,void 0,void 0,r,a),!d.isString(i))throw TypeError(\"keyType must be a string\");this.keyType=i,this.resolvedKeyType=null,this.map=!0}e.exports=o;var n=i(3);((o.prototype=Object.create(n.prototype)).constructor=o).className=\"MapField\";var r=i(6),d=i(0);o.fromJSON=function(e,t){return new o(e,t.id,t.keyType,t.type,t.options,t.comment)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return d.toObject([\"keyType\",this.keyType,\"type\",this.type,\"id\",this.id,\"extend\",this.extend,\"options\",this.options,\"comment\",t?this.comment:void 0])},o.prototype.resolve=function(){if(this.resolved)return this;if(void 0===r.mapKey[this.keyType])throw Error(\"invalid key type: \"+this.keyType);return n.prototype.resolve.call(this)},o.d=function(e,t,i){return\"function\"==typeof i?i=d.decorateType(i).name:i&&\"object\"==typeof i&&(i=d.decorateEnum(i).name),function(n,r){d.decorateType(n.constructor).add(new o(r,e,t,i))}}},function(e,t,i){\"use strict\";function o(e,t,i,o,d,a,s,p){if(r.isObject(d)?(s=d,d=a=void 0):r.isObject(a)&&(s=a,a=void 0),void 0!==t&&!r.isString(t))throw TypeError(\"type must be a string\");if(!r.isString(i))throw TypeError(\"requestType must be a string\");if(!r.isString(o))throw TypeError(\"responseType must be a string\");n.call(this,e,s),this.type=t||\"rpc\",this.requestType=i,this.requestStream=!!d||void 0,this.responseType=o,this.responseStream=!!a||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=p}e.exports=o;var n=i(4);((o.prototype=Object.create(n.prototype)).constructor=o).className=\"Method\";var r=i(0);o.fromJSON=function(e,t){return new o(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return r.toObject([\"type\",\"rpc\"!==this.type&&this.type||void 0,\"requestType\",this.requestType,\"requestStream\",this.requestStream,\"responseType\",this.responseType,\"responseStream\",this.responseStream,\"options\",this.options,\"comment\",t?this.comment:void 0])},o.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),n.prototype.resolve.call(this))}},function(e,t,i){\"use strict\";function o(e){d.call(this,\"\",e),this.deferred=[],this.files=[]}function n(){}function r(e,t){var i=t.parent.lookup(t.extend);if(i){var o=new l(t.fullName,t.id,t.type,t.rule,void 0,t.options);return o.declaringField=t,t.extensionField=o,i.add(o),!0}return!1}e.exports=o;var d=i(5);((o.prototype=Object.create(d.prototype)).constructor=o).className=\"Root\";var a,s,p,l=i(3),u=i(1),f=i(8),y=i(0);o.fromJSON=function(e,t){return t||(t=new o),e.options&&t.setOptions(e.options),t.addJSON(e.nested)},o.prototype.resolvePath=y.path.resolve,o.prototype.load=function e(t,i,o){function r(e,t){if(o){var i=o;if(o=null,u)throw e;i(e,t)}}function d(e,t){try{if(y.isString(t)&&\"{\"===t.charAt(0)&&(t=JSON.parse(t)),y.isString(t)){s.filename=e;var o,n=s(t,l,i),d=0;if(n.imports)for(;d-1){var n=e.substring(i);n in p&&(e=n)}if(!(l.files.indexOf(e)>-1)){if(l.files.push(e),e in p)return void(u?d(e,p[e]):(++f,setTimeout(function(){--f,d(e,p[e])})));if(u){var a;try{a=y.fs.readFileSync(e).toString(\"utf8\")}catch(e){return void(t||r(e))}d(e,a)}else++f,y.fetch(e,function(i,n){if(--f,o)return i?void(t?f||r(null,l):r(i)):void d(e,n)})}}\"function\"==typeof i&&(o=i,i=void 0);var l=this;if(!o)return y.asPromise(e,l,t,i);var u=o===n,f=0;y.isString(t)&&(t=[t]);for(var c,h=0;h-1&&this.deferred.splice(t,1)}}else if(e instanceof u)c.test(e.name)&&delete e.parent[e.name];else if(e instanceof d){for(var i=0;i1&&\"=\"===e.charAt(t);)++i;return Math.ceil(3*e.length)/4-i};for(var n=new Array(64),r=new Array(123),d=0;d<64;)r[n[d]=d<26?d+65:d<52?d+71:d<62?d-4:d-59|43]=d++;o.encode=function(e,t,i){for(var o,r=null,d=[],a=0,s=0;t>2],o=(3&p)<<4,s=1;break;case 1:d[a++]=n[o|p>>4],o=(15&p)<<2,s=2;break;case 2:d[a++]=n[o|p>>6],d[a++]=n[63&p],s=0}a>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,d)),a=0)}return s&&(d[a++]=n[o],d[a++]=61,1===s&&(d[a++]=61)),r?(a&&r.push(String.fromCharCode.apply(String,d.slice(0,a))),r.join(\"\")):String.fromCharCode.apply(String,d.slice(0,a))};o.decode=function(e,t,i){for(var o,n=i,d=0,a=0;a1)break;if(void 0===(s=r[s]))throw Error(\"invalid encoding\");switch(d){case 0:o=s,d=1;break;case 1:t[i++]=o<<2|(48&s)>>4,o=s,d=2;break;case 2:t[i++]=(15&o)<<4|(60&s)>>2,o=s,d=3;break;case 3:t[i++]=(3&o)<<6|s,d=0}}if(1===d)throw Error(\"invalid encoding\");return i-n},o.test=function(e){return/^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$/.test(e)}},function(e,t,i){\"use strict\";function o(e,t){function i(e){if(\"string\"!=typeof e){var t=n();if(o.verbose&&console.log(\"codegen: \"+t),t=\"return \"+t,e){for(var d=Object.keys(e),a=new Array(d.length+1),s=new Array(d.length),p=0;p0?0:2147483648,i,o);else if(isNaN(t))e(2143289344,i,o);else if(t>3.4028234663852886e38)e((n<<31|2139095040)>>>0,i,o);else if(t<1.1754943508222875e-38)e((n<<31|Math.round(t/1.401298464324817e-45))>>>0,i,o);else{var r=Math.floor(Math.log(t)/Math.LN2),d=8388607&Math.round(t*Math.pow(2,-r)*8388608);e((n<<31|r+127<<23|d)>>>0,i,o)}}function i(e,t,i){var o=e(t,i),n=2*(o>>31)+1,r=o>>>23&255,d=8388607&o;return 255===r?d?NaN:n*(1/0):0===r?1.401298464324817e-45*n*d:n*Math.pow(2,r-150)*(d+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,r),e.readFloatLE=i.bind(null,d),e.readFloatBE=i.bind(null,a)}(),\"undefined\"!=typeof Float64Array?function(){function t(e,t,i){r[0]=e,t[i]=d[0],t[i+1]=d[1],t[i+2]=d[2],t[i+3]=d[3],t[i+4]=d[4],t[i+5]=d[5],t[i+6]=d[6],t[i+7]=d[7]}function i(e,t,i){r[0]=e,t[i]=d[7],t[i+1]=d[6],t[i+2]=d[5],t[i+3]=d[4],t[i+4]=d[3],t[i+5]=d[2],t[i+6]=d[1],t[i+7]=d[0]}function o(e,t){return d[0]=e[t],d[1]=e[t+1],d[2]=e[t+2],d[3]=e[t+3],d[4]=e[t+4],d[5]=e[t+5],d[6]=e[t+6],d[7]=e[t+7],r[0]}function n(e,t){return d[7]=e[t],d[6]=e[t+1],d[5]=e[t+2],d[4]=e[t+3],d[3]=e[t+4],d[2]=e[t+5],d[1]=e[t+6],d[0]=e[t+7],r[0]}var r=new Float64Array([-0]),d=new Uint8Array(r.buffer),a=128===d[7];e.writeDoubleLE=a?t:i,e.writeDoubleBE=a?i:t,e.readDoubleLE=a?o:n,e.readDoubleBE=a?n:o}():function(){function t(e,t,i,o,n,r){var d=o<0?1:0;if(d&&(o=-o),0===o)e(0,n,r+t),e(1/o>0?0:2147483648,n,r+i);else if(isNaN(o))e(0,n,r+t),e(2146959360,n,r+i);else if(o>1.7976931348623157e308)e(0,n,r+t),e((d<<31|2146435072)>>>0,n,r+i);else{var a;if(o<2.2250738585072014e-308)a=o/5e-324,e(a>>>0,n,r+t),e((d<<31|a/4294967296)>>>0,n,r+i);else{var s=Math.floor(Math.log(o)/Math.LN2);1024===s&&(s=1023),a=o*Math.pow(2,-s),e(4503599627370496*a>>>0,n,r+t),e((d<<31|s+1023<<20|1048576*a&1048575)>>>0,n,r+i)}}}function i(e,t,i,o,n){var r=e(o,n+t),d=e(o,n+i),a=2*(d>>31)+1,s=d>>>20&2047,p=4294967296*(1048575&d)+r;return 2047===s?p?NaN:a*(1/0):0===s?5e-324*a*p:a*Math.pow(2,s-1075)*(p+4503599627370496)}e.writeDoubleLE=t.bind(null,n,0,4),e.writeDoubleBE=t.bind(null,r,4,0),e.readDoubleLE=i.bind(null,d,0,4),e.readDoubleBE=i.bind(null,a,4,0)}(),e}function n(e,t,i){t[i]=255&e,t[i+1]=e>>>8&255,t[i+2]=e>>>16&255,t[i+3]=e>>>24}function r(e,t,i){t[i]=e>>>24,t[i+1]=e>>>16&255,t[i+2]=e>>>8&255,t[i+3]=255&e}function d(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function a(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=o(o)},function(e,t,i){\"use strict\";var o=t,n=o.isAbsolute=function(e){return/^(?:\\/|\\w+:)/.test(e)},r=o.normalize=function(e){e=e.replace(/\\\\/g,\"/\").replace(/\\/{2,}/g,\"/\");var t=e.split(\"/\"),i=n(e),o=\"\";i&&(o=t.shift()+\"/\");for(var r=0;r0&&\"..\"!==t[r-1]?t.splice(--r,2):i?t.splice(r,1):++r:\".\"===t[r]?t.splice(r,1):++r;return o+t.join(\"/\")};o.resolve=function(e,t,i){return i||(t=r(t)),n(t)?t:(i||(e=r(e)),(e=e.replace(/(?:\\/|^)[^\\/]+$/,\"\")).length?r(e+\"/\"+t):t)}},function(e,t,i){\"use strict\";function o(e,t,i){var o=i||8192,n=o>>>1,r=null,d=o;return function(i){if(i<1||i>n)return e(i);d+i>o&&(r=e(o),d=0);var a=t.call(r,d,d+=i);return 7&d&&(d=1+(7|d)),a}}e.exports=o},function(e,t,i){\"use strict\";var o=t;o.length=function(e){for(var t=0,i=0,o=0;o191&&o<224?r[d++]=(31&o)<<6|63&e[t++]:o>239&&o<365?(o=((7&o)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,r[d++]=55296+(o>>10),r[d++]=56320+(1023&o)):r[d++]=(15&o)<<12|(63&e[t++])<<6|63&e[t++],d>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,r)),d=0);return n?(d&&n.push(String.fromCharCode.apply(String,r.slice(0,d))),n.join(\"\")):String.fromCharCode.apply(String,r.slice(0,d))},o.write=function(e,t,i){for(var o,n,r=i,d=0;d>6|192,t[i++]=63&o|128):55296==(64512&o)&&56320==(64512&(n=e.charCodeAt(d+1)))?(o=65536+((1023&o)<<10)+(1023&n),++d,t[i++]=o>>18|240,t[i++]=o>>12&63|128,t[i++]=o>>6&63|128,t[i++]=63&o|128):(t[i++]=o>>12|224,t[i++]=o>>6&63|128,t[i++]=63&o|128);return i-r}},function(e,t,i){\"use strict\";function o(e,t,i){return\"function\"==typeof t?(i=t,t=new r.Root):t||(t=new r.Root),t.load(e,i)}function n(e,t){return t||(t=new r.Root),t.loadSync(e)}var r=e.exports=i(38);r.build=\"light\",r.load=o,r.loadSync=n,r.encoder=i(15),r.decoder=i(14),r.verifier=i(23),r.converter=i(13),r.ReflectionObject=i(4),r.Namespace=i(5),r.Root=i(18),r.Enum=i(1),r.Type=i(22),r.Field=i(3),r.OneOf=i(8),r.MapField=i(16),r.Service=i(21),r.Method=i(17),r.Message=i(7),r.wrappers=i(24),r.types=i(6),r.util=i(0),r.ReflectionObject._configure(r.Root),r.Namespace._configure(r.Type,r.Service,r.Enum),r.Root._configure(r.Type),r.Field._configure(r.Type)},function(e,t,i){\"use strict\";function o(){n.Reader._configure(n.BufferReader),n.util._configure()}var n=t;n.build=\"minimal\",n.Writer=i(10),n.BufferWriter=i(42),n.Reader=i(9),n.BufferReader=i(39),n.util=i(2),n.rpc=i(20),n.roots=i(19),n.configure=o,n.Writer._configure(n.BufferWriter),o()},function(e,t,i){\"use strict\";function o(e){n.call(this,e)}e.exports=o;var n=i(9);(o.prototype=Object.create(n.prototype)).constructor=o;var r=i(2);r.Buffer&&(o.prototype._slice=r.Buffer.prototype.slice),o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len))}},function(e,t,i){\"use strict\";function o(e,t,i){if(\"function\"!=typeof e)throw TypeError(\"rpcImpl must be a function\");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(i)}e.exports=o;var n=i(2);(o.prototype=Object.create(n.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function e(t,i,o,r,d){if(!r)throw TypeError(\"request must be specified\");var a=this;if(!d)return n.asPromise(e,a,t,i,o,r);if(!a.rpcImpl)return void setTimeout(function(){d(Error(\"already ended\"))},0);try{return a.rpcImpl(t,i[a.requestDelimited?\"encodeDelimited\":\"encode\"](r).finish(),function(e,i){if(e)return a.emit(\"error\",e,t),d(e);if(null===i)return void a.end(!0);if(!(i instanceof o))try{i=o[a.responseDelimited?\"decodeDelimited\":\"decode\"](i)}catch(e){return a.emit(\"error\",e,t),d(e)}return a.emit(\"data\",i,t),d(null,i)})}catch(e){return a.emit(\"error\",e,t),void setTimeout(function(){d(e)},0)}},o.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit(\"end\").off()),this}},function(e,t,i){\"use strict\";function o(e,t){this.lo=e>>>0,this.hi=t>>>0}e.exports=o;var n=i(2),r=o.zero=new o(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var d=o.zeroHash=\"\\0\\0\\0\\0\\0\\0\\0\\0\";o.fromNumber=function(e){if(0===e)return r;var t=e<0;t&&(e=-e);var i=e>>>0,n=(e-i)/4294967296>>>0;return t&&(n=~n>>>0,i=~i>>>0,++i>4294967295&&(i=0,++n>4294967295&&(n=0))),new o(i,n)},o.from=function(e){if(\"number\"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):r},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,i=~this.hi>>>0;return t||(i=i+1>>>0),-(t+4294967296*i)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===d?r:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,i=this.hi>>>24;return 0===i?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:i<128?9:10}},function(e,t,i){\"use strict\";function o(){r.call(this)}function n(e,t,i){e.length<40?d.utf8.write(e,t,i):t.utf8Write(e,i)}e.exports=o;var r=i(10);(o.prototype=Object.create(r.prototype)).constructor=o;var d=i(2),a=d.Buffer;o.alloc=function(e){return(o.alloc=d._Buffer_allocUnsafe)(e)};var s=a&&a.prototype instanceof Uint8Array&&\"set\"===a.prototype.set.name?function(e,t,i){t.set(e,i)}:function(e,t,i){if(e.copy)e.copy(t,i,0,e.length);else for(var o=0;o>>0;return this.uint32(t),t&&this._push(s,t,e),this},o.prototype.string=function(e){var t=a.byteLength(e);return this.uint32(t),t&&this._push(n,t,e),this}},function(e,t){var i;i=function(){return this}();try{i=i||Function(\"return this\")()||(0,eval)(\"this\")}catch(e){\"object\"==typeof window&&(i=window)}e.exports=i}]);\n\n\n// WEBPACK FOOTER //\n// worker.bundle.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/modules/dreamview/frontend/proto_bundle/sim_world_proto_bundle.json b/modules/dreamview/frontend/proto_bundle/sim_world_proto_bundle.json index 1e8067c159a7b8e910ebc7e46d7c6f5591a083b7..0b85b33bb6a380be0eb8b160af3269f22ba87eb6 100644 --- a/modules/dreamview/frontend/proto_bundle/sim_world_proto_bundle.json +++ b/modules/dreamview/frontend/proto_bundle/sim_world_proto_bundle.json @@ -2583,6 +2583,13 @@ "options": { "default": 6 } + }, + "maxToleranceT": { + "type": "double", + "id": 5, + "options": { + "default": 0.5 + } } } }, diff --git a/modules/dreamview/frontend/src/renderer/index.js b/modules/dreamview/frontend/src/renderer/index.js index c050beb2ca20fdf2b2c1e89382a9c21b6e6f3545..7ecbb5184005b49c72e0ae83575ff18fe406a9aa 100644 --- a/modules/dreamview/frontend/src/renderer/index.js +++ b/modules/dreamview/frontend/src/renderer/index.js @@ -279,6 +279,7 @@ class Renderer { sendRoutingRequest() { return this.routingEditor.sendRoutingRequest(this.adc.mesh.position, + this.adc.mesh.rotation.y, this.coordinates); } diff --git a/modules/dreamview/frontend/src/renderer/routing_editor.js b/modules/dreamview/frontend/src/renderer/routing_editor.js index f06dff34f5c05bac375ee106d9e559095c26b802..b020dfeb5506e489a907fd4d7440107a7fae7965 100644 --- a/modules/dreamview/frontend/src/renderer/routing_editor.js +++ b/modules/dreamview/frontend/src/renderer/routing_editor.js @@ -73,7 +73,7 @@ export default class RoutingEditor { this.routePoints = []; } - sendRoutingRequest(carOffsetPosition, coordinates) { + sendRoutingRequest(carOffsetPosition, carHeading, coordinates) { if (this.routePoints.length === 0) { alert("Please provide at least an end point."); return false; @@ -86,9 +86,10 @@ export default class RoutingEditor { const start = (points.length > 1) ? points[0] : coordinates.applyOffset(carOffsetPosition, true); + const start_heading = (points.length > 1) ? null : carHeading; const end = points[points.length-1]; const waypoint = (points.length > 1) ? points.slice(1,-1) : []; - WS.requestRoute(start, waypoint, end, this.parkingSpaceId); + WS.requestRoute(start, start_heading, waypoint, end, this.parkingSpaceId); return true; } diff --git a/modules/dreamview/frontend/src/store/websocket/websocket_realtime.js b/modules/dreamview/frontend/src/store/websocket/websocket_realtime.js index f3ee81df54a728e04b5c1b36495aed3fb836a1ce..fa915d1d2120a239be5a0daaa6e6b853d3336067 100644 --- a/modules/dreamview/frontend/src/store/websocket/websocket_realtime.js +++ b/modules/dreamview/frontend/src/store/websocket/websocket_realtime.js @@ -166,7 +166,7 @@ export default class RealtimeWebSocketEndpoint { })); } - requestRoute(start, waypoint, end, parkingSpaceId) { + requestRoute(start, start_heading, waypoint, end, parkingSpaceId) { const request = { type: "SendRoutingRequest", start: start, @@ -178,6 +178,9 @@ export default class RealtimeWebSocketEndpoint { request.parkingSpaceId = parkingSpaceId; } + if (start_heading) { + request.start.heading = start_heading; + } this.websocket.send(JSON.stringify(request)); }