????

Your IP : 3.15.139.248


Current Path : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/
Upload File :
Current File : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/57-es2015.js.map

{"version":3,"sources":["./node_modules/arcgis-js-api/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DController.js","./node_modules/arcgis-js-api/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DModel.js","./node_modules/arcgis-js-api/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js","./node_modules/arcgis-js-api/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js","./node_modules/arcgis-js-api/views/3d/interactive/measurementTools/areaMeasurement3D/MeasurementData.js","./node_modules/arcgis-js-api/views/3d/interactive/measurementTools/areaMeasurement3D/PathChanges.js","./node_modules/arcgis-js-api/views/3d/interactive/measurementTools/support/Path.js","./node_modules/arcgis-js-api/views/3d/interactive/measurementTools/support/measurementUtils.js","./node_modules/arcgis-js-api/views/3d/interactive/measurementTools/support/setUtils.js","./node_modules/arcgis-js-api/views/3d/webgl-engine/materials/CheckerBoardMaterial.js","./node_modules/arcgis-js-api/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js","./node_modules/arcgis-js-api/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js","./node_modules/arcgis-js-api/widgets/AreaMeasurement3D.js","./node_modules/arcgis-js-api/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js","./node_modules/arcgis-js-api/widgets/AreaMeasurement3D/nls/AreaMeasurement3D.js","./node_modules/arcgis-js-api/widgets/AreaMeasurement3D/nls/vi/AreaMeasurement3D.js","webpack:///./node_modules/arcgis-js-api/widgets/AreaMeasurement3D/nls/AreaMeasurement3D.js?bdfd"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,EAAE,qDAAqD,gBAAgB,kDAAkD,4CAA4C,wOAAwO,kDAAkD,iBAAiB,6HAA6H,oCAAoC,kDAAkD,wCAAwC,mKAAmK,yCAAyC;AAAA,oGAAC,C;;;;;;;;;;;ACxB9nH;AACA;AACA;AACA;AACA,mBAAQ,CAAC,SAAS,+SAA+S,gUAAgU,EAAE,yZAAyZ,C;;;;;;;;;;;ACJ5hC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAO,CAAC,gSAAgS,wSAAwS,CAAC,C;;;;;;;;;;;ACxBjlB,iGAAO,CAAC,mEAAW,EAAE,iJAA+G;AACpI,CAAC,wKAAyD;AAC1D,CAAC,yPAAiM;AAClM,CAAC,mCAAE;AACH,iFAAiF,mBAAmB;AACpG,CAAC;AAAA,oGAAC,C","file":"57-es2015.js","sourcesContent":["// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../../../core/tsSupport/declareExtendsHelper\",\"../../../../../core/tsSupport/decorateHelper\",\"../../../../../core/Handles\",\"../../../../../core/maybe\",\"../../../../../core/screenUtils\",\"../../../../../geometry/Point\",\"../../../../../layers/graphics/dehydratedFeatures\",\"./AreaMeasurement3DView\"],function(e,t,i,o,n,r,a,s,d,p){function u(e){return\"mouse\"!==e.pointerType||0===e.button}return function(){function e(e,t,i){this._manipulators=i,this._handles=new n,this._tempPickRequest=new p.PickRequest,this.model=e,this.view=t,this.model.reset(),this._setupManipulators()}return e.prototype.destroy=function(){this._handles.destroy(),this._handles=null},e.prototype.handleInputEvent=function(e){switch(e.type){case\"immediate-click\":this._handleImmediateClick(e);break;case\"pointer-move\":this._handlePointerMove(e);break;case\"drag\":this._handleDrag(e);break;case\"key-down\":this._handleKeyDown(e)}},e.prototype._setupManipulators=function(){var e=this,t=function(e){return\"manipulator-\"+e},i=0,o=function(o,n){e._handles.add(n.watch(\"dragging\",function(t){t?(i++,e.model.lastDraggedVertex=r.expect(e.view.manipulatorIdToVertexId(o)),\"measured\"===e.model.state&&(e.model.state=\"editing\")):0===--i&&\"editing\"===e.model.state&&(e.model.state=\"measured\")},!0),t(o)),n.events.on(\"drag\",function(){var t=r.expect(e.view.manipulatorIdToVertexId(o));e.model.path.update(t,d.clonePoint(n.mapPoint,new s))}),n.events.on(\"double-click\",function(t){u(t)&&(\"drawing\"===e.model.state&&e.model.finishMeasurement(),t.stopPropagation())})},n=function(i){e._handles.remove(t(i))};this._manipulators.forEach(function(e){var t=e.id,i=e.manipulator;o(t,i)}),this._handles.add([this._manipulators.on(\"after-add\",function(e){var t=e.item,i=t.id,n=t.manipulator;o(i,n)}),this._manipulators.on(\"after-remove\",function(e){var t=e.item.id;n(t)})])},e.prototype._handleDrag=function(e){\"editing\"===this.model.state&&e.stopPropagation()},e.prototype._handleImmediateClick=function(e){if(u(e)){var t=a.createScreenPointFromEvent(e);if(this.model.active)switch(this.model.state){case\"initial\":this._addVertexAt(t)&&(this.model.state=\"drawing\",e.stopPropagation());break;case\"drawing\":var i=this.view.vertexHandleAt(t,e.pointerType);if(r.isNone(i)){if(this._addVertexAt(t))return}else 0===i&&(this.model.finishMeasurement(),e.stopPropagation())}\"mouse\"===e.pointerType&&this._hoverAt(t)}},e.prototype._handlePointerMove=function(e){if(\"mouse\"===e.pointerType){var t=a.createScreenPointFromEvent(e);this._hoverAt(t)}},e.prototype._handleKeyDown=function(e){\"Enter\"===e.key&&\"drawing\"===this.model.state&&(this.model.finishMeasurement(),e.stopPropagation())},e.prototype._hoverAt=function(e){if(this.view.requiresCursorPoint){var t=this._pick(e);t.mapPoint&&(this.model.cursorPoint=t.mapPoint)}else this.model.cursorPoint=null},e.prototype._addVertexAt=function(e){var t=this._pick(e);return!!t.mapPoint&&(this.model.path.add(t.mapPoint),!0)},e.prototype._pick=function(e){var t=this._tempPickRequest;return t.screenPoint=e,this.view.pick(t)},e}()});","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../../../core/tsSupport/declareExtendsHelper\",\"../../../../../core/tsSupport/decorateHelper\",\"../../../../../core/Accessor\",\"../../../../../core/compilerUtils\",\"../../../../../core/Handles\",\"../../../../../core/mathUtils\",\"../../../../../core/Quantity\",\"../../../../../core/quantityUtils\",\"../../../../../core/unitUtils\",\"../../../../../core/watchUtils\",\"../../../../../core/accessorSupport/decorators\",\"./MeasurementData\",\"./PathChanges\",\"../support/measurementUtils\",\"../support/Path\",\"../support/setUtils\",\"../support/UnitNormalizer\",\"../../../support/projectionUtils\"],function(e,t,r,n,a,i,s,o,p,u,h,l,d,m,c,g,y,f,b,v){return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._unitNormalizer=new b,t._measurementData=new m,t._measurementDataChanges=new c,t._viewDataChanges=new c,t._handles=new s,t.path=new y,t.pathVersion=0,t.cursorPoint=null,t.state=\"initial\",t.lastDraggedVertex=null,t.mode=\"auto\",t.unit=\"metric\",t.active=!1,t.maxRelativeErrorCoplanar=.005,t.maxRelativeErrorAlmostCoplanar=.01,t.verticalAngleThreshold=80,t.geodesicMeasurementDistanceThreshold=1e5,t}return r(t,e),t.prototype.initialize=function(){var e=this;this._handles.add(l.whenTrue(this.sceneView,\"ready\",function(){var t=e.sceneView.spatialReference;e._worldSpatialReference=!t||v.canProject(t,v.WGS84ECEFSpatialReference)?v.WGS84ECEFSpatialReference:t,e._unitNormalizer.spatialReference=t}),\"scene-view\"),this.reset();var t=function(){e._set(\"pathVersion\",e.pathVersion+1)};this._handles.add(this.path.on(\"cleared\",function(){e._measurementDataChanges.fullChange(),e._set(\"pathVersion\",0)})),this._handles.add(this.path.on(\"vertex-added\",function(){e._measurementDataChanges.fullChange(),t()})),this._handles.add(this.path.on(\"vertex-inserted\",function(){e._measurementDataChanges.fullChange(),t()})),this._handles.add(this.path.on(\"vertex-removed\",function(){e._measurementDataChanges.fullChange(),t()})),this._handles.add(this.path.on(\"vertex-updated\",function(r){e._measurementDataChanges.incrementalChange(r.index),t()}))},t.prototype.destroy=function(){this._handles.destroy(),this._handles=null},Object.defineProperty(t.prototype,\"validMeasurement\",{get:function(){return this.path.length>=3&&\"measured\"===this.state||\"editing\"===this.state},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"isMeasuring\",{get:function(){return this.path.length>=1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"measurementData\",{get:function(){this._viewDataChanges.merge(this._measurementDataChanges);var e=f.clone(this._measurementData.intersectingSegments),t=f.clone(this._measurementData.geodesicIntersectingSegments);return this._measurementData.update(this.path,this._measurementDataChanges,this.sceneView,this._unitNormalizer,this.validMeasurement,this.sceneView.renderSpatialReference,this._worldSpatialReference,{maxRelativeErrorCoplanar:this.maxRelativeErrorCoplanar,maxRelativeErrorAlmostCoplanar:this.maxRelativeErrorAlmostCoplanar,verticalAngleThreshold:this.verticalAngleThreshold}),g.compareSets(this._measurementData.intersectingSegments,e)||this._viewDataChanges.fullChange(),g.compareSets(this._measurementData.geodesicIntersectingSegments,t)||this._viewDataChanges.fullChange(),this._measurementData},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"area\",{get:function(){return this.measurementData.area},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"geodesicArea\",{get:function(){return this.measurementData.geodesicArea},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"areaLabel\",{get:function(){return this._formatAreaLabel(\"geodesic\"===this.measurementMode?this.measurementData.geodesicArea:this.measurementData.area,this.unit)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"pathLength\",{get:function(){return this.measurementData.pathLength},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"geodesicPathLength\",{get:function(){return this.measurementData.geodesicPathLength},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"pathLengthLabel\",{get:function(){return this._formatLengthLabel(\"geodesic\"===this.measurementMode?this.measurementData.geodesicPathLength:this.measurementData.pathLength,this.unit)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"perimeterLength\",{get:function(){return this.measurementData.perimeterLength},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"geodesicPerimeterLength\",{get:function(){return this.measurementData.geodesicPathLength},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"perimeterLengthLabel\",{get:function(){return this.measurementData.perimeterLength&&this._formatLengthLabel(\"geodesic\"===this.measurementMode?this.measurementData.geodesicPathLength:this.measurementData.perimeterLength,this.unit)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"cursorSegmentLength\",{get:function(){return this.path.back&&this.cursorPoint&&new p(this._unitNormalizer.normalizeDistance(g.segmentLengthEuclidean(this.path.back,this.cursorPoint,this._worldSpatialReference)),\"meters\")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"geodesicCursorSegmentLength\",{get:function(){return this.path.back&&this.cursorPoint&&new p(g.segmentLengthGeodesic(this.path.back,this.cursorPoint),\"meters\")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"cursorSegmentLengthLabel\",{get:function(){return this._formatLengthLabel(\"geodesic\"===this.measurementMode?this.geodesicCursorSegmentLength:this.cursorSegmentLength,this.unit)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"viewData\",{get:function(){var e=this.measurementData,t=\"geodesic\"===this.measurementMode,r=t?this.geodesicArea:this.area,n=1;if(r){var a=this._toPreferredAreaUnit(r,this.unit);n=o.nextHighestPowerOfTen(Math.sqrt(a.value)/Math.sqrt(300)),n*=Math.sqrt(h.convertUnit(1,a.unit,\"square-meters\")),n/=this._unitNormalizer.normalizeDistance(1)}return{validMeasurement:this.validMeasurement,path:this.path,pathChanges:this._viewDataChanges,positionsGeographic:e.positionsGeographic,positionsRenderCoords:e.positionsRenderCoords,positionsProjected:e.positionsProjectedWorldCoords,positionsFittedRenderCoords:e.positionsFittedRenderCoords,intersectingSegments:t?e.geodesicIntersectingSegments:e.intersectingSegments,triangleIndices:t?e.geodesicTriangleIndices:e.triangleIndices,fittingMode:e.fittingMode,areaCentroid:t?e.geodesicAreaCentroidRenderCoords:e.areaCentroidRenderCoords,pathLengthLabelSegmentIndex:this.validMeasurement?0:this.path.length-2,perimeterLengthLabelSegmentIndex:0,checkerSize:n}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"measurementMode\",{get:function(){var e=this.mode;if(\"auto\"===e){e=\"euclidean\";(this.geodesicPathLength?this.geodesicPathLength.value:0)+(!this.validMeasurement&&this.geodesicCursorSegmentLength?this.geodesicCursorSegmentLength.value:0)>this.geodesicMeasurementDistanceThreshold&&(e=\"geodesic\")}return null==this.geodesicPathLength&&(e=\"euclidean\"),e},enumerable:!0,configurable:!0}),t.prototype.reset=function(){this.clearMeasurement()},t.prototype.clearMeasurement=function(){this.path.clear(),this.state=\"initial\",this.cursorPoint=null},t.prototype.finishMeasurement=function(){this.path.length<3?this.clearMeasurement():(this._measurementDataChanges.fullChange(),this.state=\"measured\")},t.prototype._preferredAreaUnit=function(e,t){switch(t){case\"metric\":return h.preferredMetricAreaUnit(e.value,e.unit);case\"imperial\":return h.preferredImperialAreaUnit(e.value,e.unit);default:return t}},t.prototype._preferredLengthUnit=function(e,t){var r=this._deriveLengthUnitFromAreaUnit(t);switch(r){case\"metric\":return h.preferredMetricLengthUnit(e.value,e.unit);case\"imperial\":return h.preferredImperialLengthUnit(e.value,e.unit);default:return r}},t.prototype._toPreferredAreaUnit=function(e,t){return e.toUnit(this._preferredAreaUnit(e,t))},t.prototype._toPreferredLengthUnit=function(e,t){return e.toUnit(this._preferredLengthUnit(e,t))},t.prototype._formatAreaLabel=function(e,t){return e&&u.formatDecimal(e,this._preferredAreaUnit(e,t))},t.prototype._formatLengthLabel=function(e,t){return e&&u.formatDecimal(e,this._preferredLengthUnit(e,t))},t.prototype._deriveLengthUnitFromAreaUnit=function(e){switch(e){case\"metric\":return\"metric\";case\"imperial\":return\"imperial\";case\"square-inches\":return\"inches\";case\"square-feet\":return\"feet\";case\"square-yards\":return\"yards\";case\"square-miles\":return\"miles\";case\"square-us-feet\":return\"us-feet\";case\"square-millimeters\":return\"millimeters\";case\"square-centimeters\":return\"centimeters\";case\"square-decimeters\":return\"decimeters\";case\"square-meters\":return\"meters\";case\"square-kilometers\":return\"kilometers\";case\"acres\":return\"imperial\";case\"ares\":case\"hectares\":return\"metric\";default:i.neverReached(e)}throw new Error(\"unhandled area unit\")},n([d.property({constructOnly:!0})],t.prototype,\"sceneView\",void 0),n([d.property({readOnly:!0})],t.prototype,\"path\",void 0),n([d.property({readOnly:!0})],t.prototype,\"pathVersion\",void 0),n([d.property()],t.prototype,\"cursorPoint\",void 0),n([d.property()],t.prototype,\"state\",void 0),n([d.property()],t.prototype,\"lastDraggedVertex\",void 0),n([d.property()],t.prototype,\"mode\",void 0),n([d.property()],t.prototype,\"unit\",void 0),n([d.property()],t.prototype,\"active\",void 0),n([d.property({readOnly:!0,dependsOn:[\"path.length\",\"state\"]})],t.prototype,\"validMeasurement\",null),n([d.property({readOnly:!0,dependsOn:[\"path.length\"]})],t.prototype,\"isMeasuring\",null),n([d.property({readOnly:!0,dependsOn:[\"pathVersion\",\"validMeasurement\",\"maxRelativeErrorCoplanar\",\"maxRelativeErrorAlmostCoplanar\",\"verticalAngleThreshold\"]})],t.prototype,\"measurementData\",null),n([d.property({readOnly:!0,dependsOn:[\"measurementData\"]})],t.prototype,\"area\",null),n([d.property({readOnly:!0,dependsOn:[\"measurementData\"]})],t.prototype,\"geodesicArea\",null),n([d.property({readOnly:!0,dependsOn:[\"measurementData\",\"unit\",\"measurementMode\"]})],t.prototype,\"areaLabel\",null),n([d.property({readOnly:!0,dependsOn:[\"measurementData\"]})],t.prototype,\"pathLength\",null),n([d.property({readOnly:!0,dependsOn:[\"measurementData\"]})],t.prototype,\"geodesicPathLength\",null),n([d.property({readOnly:!0,dependsOn:[\"measurementData\",\"unit\",\"measurementMode\"]})],t.prototype,\"pathLengthLabel\",null),n([d.property({readOnly:!0,dependsOn:[\"measurementData\"]})],t.prototype,\"perimeterLength\",null),n([d.property({readOnly:!0,dependsOn:[\"measurementData\"]})],t.prototype,\"geodesicPerimeterLength\",null),n([d.property({readOnly:!0,dependsOn:[\"measurementData\",\"unit\",\"measurementMode\"]})],t.prototype,\"perimeterLengthLabel\",null),n([d.property({readOnly:!0,dependsOn:[\"path.back\",\"cursorPoint\"]})],t.prototype,\"cursorSegmentLength\",null),n([d.property({readOnly:!0,dependsOn:[\"path.back\",\"cursorPoint\"]})],t.prototype,\"geodesicCursorSegmentLength\",null),n([d.property({readOnly:!0,dependsOn:[\"unit\",\"measurementMode\",\"cursorSegmentLength\",\"geodesicCursorSegmentLength\"]})],t.prototype,\"cursorSegmentLengthLabel\",null),n([d.property({readOnly:!0,dependsOn:[\"unit\",\"measurementMode\",\"measurementData\"]})],t.prototype,\"viewData\",null),n([d.property()],t.prototype,\"maxRelativeErrorCoplanar\",void 0),n([d.property()],t.prototype,\"maxRelativeErrorAlmostCoplanar\",void 0),n([d.property()],t.prototype,\"verticalAngleThreshold\",void 0),n([d.property()],t.prototype,\"geodesicMeasurementDistanceThreshold\",void 0),n([d.property({readOnly:!0,dependsOn:[\"mode\",\"validMeasurement\",\"geodesicPathLength\",\"geodesicCursorSegmentLength\",\"geodesicMeasurementDistanceThreshold\"]})],t.prototype,\"measurementMode\",null),t=n([d.subclass(\"esri.views.3d.interactive.measurementTools.areaMeasurement3D.AreaMeasurement3DModel\")],t)}(d.declared(a))});","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../../../core/tsSupport/declareExtendsHelper\",\"../../../../../core/tsSupport/decorateHelper\",\"../../../../../core/tsSupport/restHelper\",\"../../../../../core/Handles\",\"../../../../../core/watchUtils\",\"../../../../../core/accessorSupport/decorators\",\"./AreaMeasurement3DController\",\"./AreaMeasurement3DModel\",\"./AreaMeasurement3DView\",\"../../../../interactive/InteractiveToolBase\"],function(e,t,o,r,i,a,n,s,l,p,d,c){return function(e){function t(t){var o=e.call(this,t)||this;return o._handles=new a,o.deferCreation=!0,o.model=new p({sceneView:t.view}),o}return o(t,e),t.prototype.normalizeCtorArgs=function(e){e.view;return i(e,[\"view\"])},t.prototype.initialize=function(){var e=this;this._view=new d(this.model,this.manipulators),this._controller=new l(this.model,this._view,this.manipulators),this._handles.add(n.init(this,\"state\",function(t){switch(t){case\"measured\":return e.complete();case\"ready\":return;default:return e.create()}},!0))},t.prototype.destroy=function(){this.detach(),this._view.destroy(),this._view=null,this._controller.destroy(),this._controller=null,this._handles.destroy(),this._handles=null},Object.defineProperty(t.prototype,\"state\",{get:function(){return this.model.isMeasuring?\"measured\"===this.model.state?\"measured\":\"measuring\":\"ready\"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"isSupported\",{get:function(){return\"3d\"===this.get(\"view.type\")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"cursor\",{get:function(){return!this.model.active||\"initial\"!==this.model.state&&\"drawing\"!==this.model.state?null:\"crosshair\"},enumerable:!0,configurable:!0}),t.prototype.activate=function(){this.model.active=!0},t.prototype.deactivate=function(){this.model.active=!1},t.prototype.onShow=function(){this._view.show()},t.prototype.onHide=function(){this._view.hide()},t.prototype.onDetach=function(){this.model.reset()},t.prototype.onInputEvent=function(e){this._controller.handleInputEvent(e)},r([s.property({dependsOn:[\"model.isMeasuring\",\"model.state\"],readOnly:!0})],t.prototype,\"state\",null),r([s.property({dependsOn:[\"view.type\"],readOnly:!0})],t.prototype,\"isSupported\",null),r([s.property({dependsOn:[\"model.active\",\"state\"],readOnly:!0})],t.prototype,\"cursor\",null),r([s.property({constructOnly:!0})],t.prototype,\"model\",void 0),r([s.aliasOf(\"model.sceneView\")],t.prototype,\"view\",void 0),r([s.aliasOf(\"model.mode\")],t.prototype,\"mode\",void 0),r([s.aliasOf(\"model.unit\")],t.prototype,\"unit\",void 0),r([s.aliasOf(\"model.areaLabel\")],t.prototype,\"areaLabel\",void 0),r([s.aliasOf(\"model.area\")],t.prototype,\"area\",void 0),r([s.aliasOf(\"model.geodesicArea\")],t.prototype,\"geodesicArea\",void 0),r([s.aliasOf(\"model.pathLengthLabel\")],t.prototype,\"pathLengthLabel\",void 0),r([s.aliasOf(\"model.pathLength\")],t.prototype,\"pathLength\",void 0),r([s.aliasOf(\"model.geodesicPathLength\")],t.prototype,\"geodesicPathLength\",void 0),r([s.aliasOf(\"model.perimeterLengthLabel\")],t.prototype,\"perimeterLengthLabel\",void 0),r([s.aliasOf(\"model.perimeterLength\")],t.prototype,\"perimeterLength\",void 0),r([s.aliasOf(\"model.geodesicPerimeterLength\")],t.prototype,\"geodesicPerimeterLength\",void 0),r([s.aliasOf(\"model.validMeasurement\")],t.prototype,\"validMeasurement\",void 0),r([s.aliasOf(\"model.viewData\")],t.prototype,\"viewData\",void 0),t=r([s.subclass(\"esri.views.3d.interactive.measurementTools.areaMeasurement3D.AreaMeasurement3DTool\")],t)}(s.declared(c.InteractiveToolBase))});","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../../../core/tsSupport/declareExtendsHelper\",\"../../../../../core/tsSupport/decorateHelper\",\"../../../../../core/Handles\",\"../../../../../core/maybe\",\"../../../../../core/screenUtils\",\"../../../../../core/libs/gl-matrix-2/mat4\",\"../../../../../core/libs/gl-matrix-2/mat4f64\",\"../../../../../core/libs/gl-matrix-2/vec3\",\"../../../../../core/libs/gl-matrix-2/vec3f64\",\"../../manipulatorUtils\",\"../directLineMeasurement3D/LaserLineRenderer\",\"../support/Label\",\"../support/LabelSegment\",\"../support/labelUtils\",\"../support/PathSegmentInterpolator\",\"../support/viewUtils\",\"../../../support/projectionUtils\",\"../../../support/stack\",\"../../../webgl-engine/lib/Geometry\",\"../../../webgl-engine/lib/GeometryData\",\"../../../webgl-engine/lib/GeometryUtil\",\"../../../webgl-engine/lib/Intersector\",\"../../../webgl-engine/lib/Layer\",\"../../../webgl-engine/lib/Object3D\",\"../../../webgl-engine/materials/CheckerBoardMaterial\",\"../../../webgl-engine/materials/lineStippleUtils\",\"../../../webgl-engine/materials/RibbonLineMaterial\",\"../../../../interactive/ManipulatorCollection\"],function(e,t,i,r,n,a,s,o,l,h,p,d,c,_,u,m,g,L,v,b,f,w,y,S,P,j,M,O,C,V){var R={laserLineGlowColor:[1,.5,0],laserLineGlowWidth:8,laserLineInnerColor:[1,1,1],laserLineInnerWidth:1,laserLineGlobalAlpha:.75,laserLineEnabled:!0,handleColor:[1,.5,0],handleOpacity:.5,handleRadius:5,handleRadiusHovered:10,handleRadiusMouse:10,handleRadiusTouch:25,pathLineColor:[1,.5,0,1],pathLineWidth:3,intersectingLineColor:[1,.2,0,1],perimeterLineColor:[1,.5,0,1],perimeterLineWidth:2,projectionLineColor:[1,.5,0,1],projectionLineWidth:2,projectionLineStippleSize:5,areaColor1:[1,.5,0,.5],areaColor2:[1,1,1,.5],fillColor:[1,.5,0,.5],lineSubdivisions:64,labelDistance:25},D=function(){function e(e,t,i){void 0===t&&(t=new V.ManipulatorCollection),void 0===i&&(i={}),this._model=e,this._manipulators=t,this.vertexManipulators=[],this._visible=!1,this._laserLineRenderer=null,this._cursorManipulator=null,this._pathSegmentObjects=[],this._perimeterSegmentObjects=[],this._projectionLineObjects=[],this._areaLabel=new _(16),this._pathLengthLabel=new _(12),this._cursorSegmentLengthLabel=new _(12),this._perimeterLengthLabel=new _(12),this._pathLabelSegments=[],this._perimeterLabelSegments=[],this._cursorSegmentLengthLabelSegment=new u,this._listenerHandles=null,this._origin=p.vec3f64.create(),this._originTransform=l.mat4f64.create(),this._tempStartPosition=p.vec3f64.create(),this._tempEndPosition=p.vec3f64.create(),this._tempHandlePosition=p.vec3f64.create(),this._sceneView=this._model.sceneView,this._params=L.copyParameter(R,i),this._layer=new P(\"path-measurement-tool\",{isPickable:!1}),this._createMaterials(),this._createObjects(),this._intersector=new S(this._sceneView.viewingMode),this._intersector.options.store=0;var r=d.createSphereManipulator(this._sceneView,this._params.handleColor,this._params.handleOpacity);r.visible=!1,r.radius=this._params.handleRadius,r.interactive=!1,this._manipulators.add(r),this._cursorManipulator=r}return e.prototype.destroy=function(){this.hide()},Object.defineProperty(e.prototype,\"requiresCursorPoint\",{get:function(){return(\"initial\"===this._model.state||\"drawing\"===this._model.state)&&this._model.active},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"visible\",{get:function(){return this._visible},set:function(e){e?this.show():this.hide()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"testData\",{get:function(){return{labels:{area:this._areaLabel,pathLength:this._pathLengthLabel,cursorSegmentLength:this._cursorSegmentLengthLabel,perimeterLength:this._perimeterLengthLabel},laserLineRenderer:this._laserLineRenderer}},enumerable:!0,configurable:!0}),e.prototype.show=function(){if(!this._visible){this._visible=!0;var e=this._sceneView._stage,t={glowColor:this._params.laserLineGlowColor,glowWidth:this._params.laserLineGlowWidth,innerColor:this._params.laserLineInnerColor,innerWidth:this._params.laserLineInnerWidth,globalAlpha:this._params.laserLineGlobalAlpha};this._laserLineRenderer=new c(this._sceneView.renderCoordsHelper,t),e.addRenderPlugin(this._laserLineRenderer.renderSlots,this._laserLineRenderer),this._addToStage(e),this._areaLabel.addToView(this._sceneView),this._pathLengthLabel.addToView(this._sceneView),this._cursorSegmentLengthLabel.addToView(this._sceneView),this._perimeterLengthLabel.addToView(this._sceneView),this._initializeListeners(),this._updateAll(this._model.viewData)}},e.prototype.hide=function(){if(this._visible){this._visible=!1;var e=this._sceneView._stage;e.removeRenderPlugin(this._laserLineRenderer),this._laserLineRenderer=null,this._destroyListeners(),this._updatePathLength(0),this._removeFromStage(e),this._areaLabel.removeFromView(this._sceneView),this._pathLengthLabel.removeFromView(this._sceneView),this._cursorSegmentLengthLabel.removeFromView(this._sceneView),this._perimeterLengthLabel.removeFromView(this._sceneView),this._sceneView.cursor=null}},e.prototype.vertexHandleAt=function(e,t){var i=this._manipulators.intersect(e,t);return a.isSome(i)?this.manipulatorIdToVertexId(i):null},e.prototype.manipulatorIdToVertexId=function(e){for(var t=0;t<this.vertexManipulators.length;t++){if(e===this.vertexManipulators[t].id)return t}return null},e.prototype.pick=function(t){var i=this._sceneView.spatialReference,r=s.screenPointObjectToArray(t.screenPoint);this._sceneView.sceneIntersectionHelper.intersectToolIntersectorScreen(r,this._intersector);var n=this._intersector.results.min,a=p.vec3f64.create();if(!n.getIntersectionPoint(a))return new e.PickResult;var o=this._sceneView.renderCoordsHelper.fromRenderCoords(a,i),l=\"TerrainRenderer\"===n.intersector?\"surface\":\"feature\";return new e.PickResult(l,a,o)},e.prototype.overlappingHandles=function(e,t){return L.pointToPointScreenDistance(e,t,this._sceneView)<=this._params.handleRadius},e.prototype._createMaterials=function(){this._pathLineMaterial=new C({width:this._params.pathLineWidth,color:this._params.pathLineColor,polygonOffset:!0},\"path-line\"),this._pathLineMaterial.renderOccluded=4,this._intersectingPathLineMaterial=new C({width:this._params.pathLineWidth,color:this._params.intersectingLineColor,polygonOffset:!0},\"intersecting-path-line\"),this._intersectingPathLineMaterial.renderOccluded=4,this._perimeterLineMaterial=new C({width:this._params.perimeterLineWidth,color:this._params.perimeterLineColor,polygonOffset:!0},\"perimeter-line\"),this._perimeterLineMaterial.renderOccluded=4,this._intersectingPerimeterLineMaterial=new C({width:this._params.perimeterLineWidth,color:this._params.intersectingLineColor,polygonOffset:!0},\"intersecting-perimeter-line\"),this._intersectingPerimeterLineMaterial.renderOccluded=4,this._projectionLineMaterial=new C({width:this._params.projectionLineWidth,color:this._params.projectionLineColor,polygonOffset:!0,stipplePattern:O.createStipplePatternSimple(this._params.projectionLineStippleSize),stippleIntegerRepeats:!1},\"projection-line\"),this._projectionLineMaterial.renderOccluded=4,this._checkerBoardMaterial=new M({color1:this._params.areaColor1,color2:this._params.areaColor2,transparent:!0,writeDepth:!1,polygonOffset:!0},\"checker-board\"),this._checkerBoardMaterial.renderOccluded=4},e.prototype._createObjects=function(){this._cursorSegmentObject=new j,this._areaObject=new j},e.prototype._addToStage=function(e){e.add(0,this._layer),e.add(3,this._pathLineMaterial),e.add(3,this._intersectingPathLineMaterial),e.add(3,this._perimeterLineMaterial),e.add(3,this._intersectingPerimeterLineMaterial),e.add(3,this._projectionLineMaterial),e.add(3,this._checkerBoardMaterial),e.addToViewContent([this._layer.id])},e.prototype._removeFromStage=function(e){e.removeFromViewContent([this._layer.id]),e.remove(0,this._layer.id),e.remove(3,this._pathLineMaterial.id),e.remove(3,this._intersectingPathLineMaterial.id),e.remove(3,this._perimeterLineMaterial.id),e.remove(3,this._intersectingPerimeterLineMaterial.id),e.remove(3,this._projectionLineMaterial.id),e.remove(3,this._checkerBoardMaterial.id)},e.prototype._syncViewData=function(e){var t=this;if(!this._visible)return\"none\";var i=e.pathChanges;\"full\"===i.change?this._updateAll(e):\"incremental\"===i.change&&(i.updatedVertices.forEach(function(i){var r=(i-1+t._model.path.length)%t._model.path.length;t._updatePathSegment(e,i),t._updatePathSegment(e,r),t._updateVertexHandle(e,i),t._updateArea(e),t._updatePerimeterSegments(e),t._updateProjectionLines(e),t._updateLaserLine(),t._updateLabels(e)}),i.updatedVertices.has(this._model.path.length-1)&&this._updateCursorSegment());var r=i.change;return i.clear(),r},e.prototype._updateAfterSyncViewData=function(e){var t=this._model.viewData;!(\"full\"===this._syncViewData(t))&&e&&e(t)},e.prototype._updateOrigin=function(e){L.midpoint(e.positionsRenderCoords,this._origin),o.mat4.identity(this._originTransform),o.mat4.translate(this._originTransform,this._originTransform,this._origin)},e.prototype._updateAll=function(e){this._updateOrigin(e),this._updatePathLength(e.path.length),this._updatePathSegments(e),this._updatePerimeterSegments(e),this._updateHandles(e),this._updateArea(e),this._updateProjectionLines(e),this._updateLabels(e),this._updateLaserLine()},e.prototype._updateCameraDependent=function(e){this._updateHandles(e),this._updateProjectionLines(e),this._updateLabels(e)},e.prototype._updatePathLength=function(e){this._resizeObject3DArray(this._pathSegmentObjects,e),this._resizeObject3DArray(this._perimeterSegmentObjects,e),this._resizeManipulatorArray(this.vertexManipulators,e),L.resizeArray(this._pathLabelSegments,e,function(){return new u}),L.resizeArray(this._perimeterLabelSegments,e,function(){return new u})},e.prototype._updatePathSegments=function(e){for(var t=0;t<this._pathSegmentObjects.length;++t)this._updatePathSegment(e,t);this._updateCursorSegment()},e.prototype._updatePathSegment=function(e,t){var i=e.path,r=this._pathSegmentObjects[t];e.validMeasurement||t<i.length-1?(this._createInterpolatedLineGeometry(r,e.intersectingSegments.has(t)?this._intersectingPathLineMaterial:this._pathLineMaterial,\"path-segment\",e.positionsRenderCoords[t],e.positionsRenderCoords[(t+1)%i.length],this._origin,this._originTransform,this._model.measurementMode,this._pathLabelSegments[t],e.validMeasurement?\"center\":\"end\"),this._addObject3D(r)):(r.removeAllGeometries(),this._removeObject3D(r))},e.prototype._updateCursorSegment=function(){var e=this._sceneView.renderCoordsHelper,t=this._model.path,i=this._cursorSegmentObject;t.length>0&&\"drawing\"===this._model.state&&this._model.cursorPoint?(e.toRenderCoords(t.back,this._tempStartPosition),e.toRenderCoords(this._model.cursorPoint,this._tempEndPosition),this._createInterpolatedLineGeometry(i,this._pathLineMaterial,\"path-segment\",this._tempStartPosition,this._tempEndPosition,this._origin,this._originTransform,this._model.measurementMode,this._cursorSegmentLengthLabelSegment,\"end\"),this._addObject3D(i)):(i.removeAllGeometries(),this._removeObject3D(i))},e.prototype._updatePerimeterSegments=function(e){for(var t=0;t<this._perimeterSegmentObjects.length;++t)this._updatePerimeterSegment(e,t)},e.prototype._updatePerimeterSegment=function(e,t){var i=e.path,r=this._perimeterSegmentObjects[t];e.validMeasurement&&\"geodesic\"!==this._model.measurementMode?(this._updatePerimeterSegmentObject(r,e.positionsFittedRenderCoords[t],e.positionsFittedRenderCoords[(t+1)%i.length],this._origin,this._originTransform,e.intersectingSegments.has(t),this._perimeterLabelSegments[t]),this._addObject3D(r)):(r.removeAllGeometries(),this._removeObject3D(r))},e.prototype._updatePerimeterSegmentObject=function(e,t,i,r,n,a,s){this._createInterpolatedLineGeometry(e,a?this._intersectingPerimeterLineMaterial:this._perimeterLineMaterial,\"perimeter-segment\",t,i,r,n,this._model.measurementMode,s)},e.prototype._updateHandles=function(e){for(var t=0;t<this.vertexManipulators.length;++t)this._updateVertexHandle(e,t);this._updateCursorHandle()},e.prototype._updateVertexHandle=function(e,t){this.vertexManipulators[t].manipulator.position=e.positionsRenderCoords[t]},e.prototype._updateCursorHandle=function(){var e=this._cursorManipulator;\"drawing\"===this._model.state&&this._model.cursorPoint?(e.visible=!0,e.mapPoint=this._model.cursorPoint):e.visible=!1},e.prototype._updateArea=function(e){switch(this._model.measurementMode){case\"euclidean\":this._updateAreaEuclidean(e);break;case\"geodesic\":this._updateAreaGeodesic()}},e.prototype._updateAreaEuclidean=function(e){var t=this,i=this._areaObject;if(e.validMeasurement&&0===e.intersectingSegments.size&&e.triangleIndices){var r=[],n=p.vec3f64.create();e.positionsFittedRenderCoords.forEach(function(e){h.vec3.subtract(n,e,t._origin),r.push(n[0],n[1],n[2])});var a=[];e.positionsProjected.forEach(function(e){a.push(e[0],e[1])});var s=new w.GeometryData({position:{size:3,data:r},uv0:{size:2,data:a}},{position:e.triangleIndices,uv0:e.triangleIndices}),o=new f(s,\"area\");i.removeAllGeometries(),i.addGeometry(o,this._checkerBoardMaterial,this._originTransform),this._addObject3D(i),this._checkerBoardMaterial.setParameterValues({size:[e.checkerSize,e.checkerSize]})}else i.removeAllGeometries(),this._removeObject3D(i)},e.prototype._updateAreaGeodesic=function(){var e=this._areaObject;e.removeAllGeometries(),this._removeObject3D(e)},e.prototype._updateProjectionLines=function(e){var t=e.path;this._resizeObject3DArray(this._projectionLineObjects,t.length);for(var i=0;i<t.length;++i)this._updateProjectionLine(e,i)},e.prototype._updateProjectionLine=function(e,t){var i=this._projectionLineObjects[t];if(i.removeAllGeometries(),e.validMeasurement&&\"euclidean\"===this._model.measurementMode){var r=p.vec3f64.create();h.vec3.subtract(r,this._model.viewData.positionsRenderCoords[t],this._origin);var n=p.vec3f64.create();h.vec3.subtract(n,this._model.viewData.positionsFittedRenderCoords[t],this._origin);var a=new f(y.createPolylineGeometry([r,n]),\"projected-line\");i.addGeometry(a,this._projectionLineMaterial,this._originTransform),this._addObject3D(i)}else this._removeObject3D(i)},e.prototype._updateLabels=function(e){var t=this,i=this._sceneView._stage.getCamera(),r=this._params.labelDistance,n=this._model,a=\"geodesic\"===n.measurementMode,s=\"drawing\"===n.state,o=function(e,i){return e.visible&&i.visible&&t._sceneView.overlay.overlaps(e.textItem,i.textItem)},l=this._areaLabel,h=m.positionLabelOnPoint(l,e.areaCentroid,i);l.text=n.areaLabel,l.visible=h&&e.validMeasurement&&0===e.intersectingSegments.size&&null!=n.areaLabel;var l=this._pathLengthLabel,p=this._pathLabelSegments[e.pathLengthLabelSegmentIndex],d=this._cursorSegmentLengthLabelSegment,h=m.positionLabelOnCorner(l,p,d,r,i);l.text=n.pathLengthLabel,l.visible=h&&s&&n.path.length>0;var l=this._cursorSegmentLengthLabel,c=this._cursorSegmentLengthLabelSegment,h=m.positionLabelOnSegment(l,c,r,\"bottom\",i);l.text=n.cursorSegmentLengthLabel,l.visible=h&&s&&n.cursorSegmentLength&&0!==n.cursorSegmentLength.value,o(this._cursorSegmentLengthLabel,this._pathLengthLabel)&&(this._cursorSegmentLengthLabel.visible=!1),o(this._pathLengthLabel,this._areaLabel)&&(this._pathLengthLabel.visible=!1);var l=this._perimeterLengthLabel;if(n.validMeasurement&&0===e.intersectingSegments.size)for(var _=0;_<e.path.length;++_){var u=(e.perimeterLengthLabelSegmentIndex+_)%e.path.length,c=a?this._pathLabelSegments[u]:this._perimeterLabelSegments[u],h=m.positionLabelOnSegment(l,c,r,\"top\",i);if(l.text=n.perimeterLengthLabel,l.visible=h,!o(l,this._areaLabel))break;l.visible=!1}else l.visible=!1},e.prototype._getFocusPoint=function(){var e=this._model,t=this._model.lastDraggedVertex;switch(e.state){case\"drawing\":return e.cursorPoint?e.cursorPoint:e.path.vertex(a.isSome(t)?t:e.path.length-1);case\"editing\":return a.isSome(t)?e.path.vertex(t):null;default:return e.cursorPoint}},e.prototype._updateLaserLine=function(){var e=this._model,t=this._params.laserLineEnabled&&\"measured\"!==e.state&&e.active;this._laserLineRenderer.focusSphereActive=!1,this._laserLineRenderer.segmentActive=!1;var i=this._getFocusPoint();if(t&&i){var r=this._tempHandlePosition;this._sceneView.renderCoordsHelper.toRenderCoords(i,r),this._laserLineRenderer.focusPosition=r,this._laserLineRenderer.focusPlaneActive=!0}else this._laserLineRenderer.focusPlaneActive=!1},e.prototype._addObject3D=function(e){e.parentLayer||(this._layer.addObject(e),this._sceneView._stage.add(1,e))},e.prototype._removeObject3D=function(e){e.parentLayer&&(this._layer.removeObject(e),this._sceneView._stage.remove(1,e.id))},e.prototype._resizeObject3DArray=function(e,t){var i=this;L.resizeArray(e,t,function(){return new j},function(e){i._removeObject3D(e)})},e.prototype._resizeManipulatorArray=function(e,t){var i=this;L.resizeArray(e,t,function(){var e=d.createSphereManipulator(i._sceneView,i._params.handleColor,i._params.handleOpacity);return e.hideOnGrab=!0,e.radius=i._params.handleRadius,{id:i._manipulators.add(e),manipulator:e}},function(e){var t=e.manipulator;i._manipulators.remove(t)})},e.prototype._createInterpolatedLineGeometry=function(e,t,i,r,n,a,s,o,l,p){var d=this._sceneView.renderCoordsHelper,c=[],_=[],u=function(e,t){var i=b.sv3d.get();h.vec3.subtract(i,e,a),c.push(i),_.push(t)};if(\"euclidean\"===o){var m=b.sv3d.get();L.midpoint([r,n],m);var g=b.sv3d.get();d.worldUpAtPosition(m,g),u(r,g),u(n,g),l&&l.update(r,n,p)}else{var v=this._getSegmentInterpolator(r,n),w=this._params.lineSubdivisions+1&-2,S=null,P=null,j=w/2-1,M=w/2;\"start\"===p?(j=0,M=1):\"end\"===p&&(j=w-2,M=w-1);for(var O=0;O<w;++O){var C=O/(w-1),V=b.sv3d.get(),g=b.sv3d.get();v.eval(C,V),d.worldUpAtPosition(V,g),O===j&&(S=V),O===M&&(P=V),u(V,g)}l&&l.update(S,P,p)}var R=new f(y.createPolylineGeometry(c,_),i);e.removeAllGeometries(),e.addGeometry(R,t,s)},e.prototype._getSegmentInterpolator=function(e,t){var i=this._sceneView.spatialReference;if(v.canProject(i,v.SphericalECEFSpatialReference)){var r=this._sceneView.renderCoordsHelper.spatialReference;return new g.Spherical(e,t,r,r)}return new g.Linear(e,t)},e.prototype._initializeListeners=function(){var e=this;this._listenerHandles=new n,this._listenerHandles.add([this._model.watch([\"state\",\"lastDraggedVertex\"],function(){return e._updateLaserLine()}),this._model.watch(\"cursorPoint\",function(){return e._updateAfterSyncViewData(function(t){e._updateCursorSegment(),e._updateCursorHandle(),\"drawing\"===e._model.state&&e._updateLabels(t),e._updateLaserLine()})}),this._sceneView.state.watch(\"camera\",function(){return e._updateAfterSyncViewData(function(){return e._updateCameraDependent(e._model.viewData)})}),this._model.watch([\"unit\",\"measurementMode\"],function(){return e._updateAll(e._model.viewData)}),this._model.watch([\"active\"],function(){e._updateLaserLine(),e._syncViewData(e._model.viewData)}),this._model.watch(\"viewData\",function(t){return e._syncViewData(t)})])},e.prototype._destroyListeners=function(){this._listenerHandles.destroy(),this._listenerHandles=null},e._handleGeometry=new f(y.createSphereGeometry(1,32,32),\"handle\"),e}();return function(e){var t=function(){function e(){}return e}();e.PickRequest=t;var i=function(){function e(e,t,i){void 0===e&&(e=null),void 0===t&&(t=null),void 0===i&&(i=null),this.type=e,this.scenePoint=t,this.mapPoint=i}return e}();e.PickResult=i}(D||(D={})),D});","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../../../core/mathUtils\",\"../../../../../core/Quantity\",\"../../../../../core/libs/earcut/earcut\",\"../../../../../core/libs/gl-matrix-2/vec2\",\"../../../../../core/libs/gl-matrix-2/vec2f64\",\"../../../../../core/libs/gl-matrix-2/vec3\",\"../../../../../core/libs/gl-matrix-2/vec3f64\",\"../../../../../core/libs/gl-matrix-2/vec4f64\",\"../../../../../geometry/SpatialReference\",\"../../../../../geometry/support/intersects\",\"../support/measurementUtils\",\"../support/viewUtils\",\"../../../support/earthUtils\",\"../../../support/mathUtils\",\"../../../support/projectionUtils\"],function(e,t,i,s,r,o,n,h,a,c,d,p,l,g,m,u,f){function v(e,t){for(var i=new Float64Array(e.length*t),s=0;s<e.length;++s)for(var r=e[s],o=0;o<t;++o)i[s*t+o]=r[o];return i}return function(){function e(){this.positionsWorldCoords=[],this.positionsRenderCoords=[],this.positionsProjectedWorldCoords=[],this.positionsFittedRenderCoords=[],this.positionsGeographic=[],this.positionsSpherical=[],this.positionsStereographic=[],this.pathSegmentLengths=[],this.geodesicPathSegmentLengths=[],this.perimeterSegmentLengths=[],this.intersectingSegments=new Set,this.geodesicIntersectingSegments=new Set,this.areaCentroidWorldCoords=a.vec3f64.create(),this.areaCentroidRenderCoords=a.vec3f64.create(),this.geodesicAreaCentroidRenderCoords=a.vec3f64.create(),this._length=0,this._centroidRenderCoords=a.vec3f64.create(),this._planeWorldCoords=c.vec4f64.create(),this._worldUp=a.vec3f64.create(),this._worldTangent=a.vec3f64.create(),this._frame=[a.vec3f64.create(),a.vec3f64.create(),a.vec3f64.create()],this._tempU=a.vec3f64.create(),this._tempV=a.vec3f64.create(),this._tempVec3=a.vec3f64.create(),this._tempSphere={center:a.vec3f64.create(),radius:0}}return e.prototype.update=function(e,t,i,r,o,n,a,c){t.clear(),this._resize(e.length);for(var d=f.canProject(i.spatialReference,f.SphericalECEFSpatialReference)&&f.canProjectToWGS84ComparableLonLat(i.spatialReference),p=this.positionsGeographic,l=this.positionsWorldCoords,g=this.positionsRenderCoords,m=this.positionsSpherical,u=0;u<e.length;++u){var v=e.vertex(u);f.pointToVector(v,l[u],a),f.pointToVector(v,g[u],n),d&&(f.pointToWGS84ComparableLonLat(v,p[u]),f.pointToVector(v,m[u],f.SphericalECEFSpatialReference),h.vec3.normalize(m[u],m[u]))}var _=this._updatePathLengths(o);if(this.pathLength=this._length>0?new s(r.normalizeDistance(_),\"meters\"):null,d){var S=this._updateGeodesicPathLengths(o);this.geodesicPathLength=this._length>0?new s(S,\"meters\"):null}else this.geodesicPathLength=null;if(!o)return this.area=null,this.geodesicArea=null,this.perimeterLength=null,this.triangleIndices=null,this.geodesicTriangleIndices=null,this.intersectingSegments.clear(),void this.geodesicIntersectingSegments.clear();this._updateArea(i,r,n,a,c),d&&this._updateGeodesicArea(i)},e.prototype._resize=function(e){for(e<this._length&&(this.positionsWorldCoords.length=e,this.positionsRenderCoords.length=e,this.positionsProjectedWorldCoords.length=e,this.positionsFittedRenderCoords.length=e,this.positionsGeographic.length=e,this.positionsSpherical.length=e,this.positionsStereographic.length=e,this.pathSegmentLengths.length=e,this.geodesicPathSegmentLengths.length=e,this.perimeterSegmentLengths.length=e,this._length=e);this._length<e;)this.positionsWorldCoords.push(a.vec3f64.create()),this.positionsRenderCoords.push(a.vec3f64.create()),this.positionsProjectedWorldCoords.push(n.vec2f64.create()),this.positionsFittedRenderCoords.push(a.vec3f64.create()),this.positionsGeographic.push(a.vec3f64.create()),this.positionsSpherical.push(a.vec3f64.create()),this.positionsStereographic.push(n.vec2f64.create()),this.pathSegmentLengths.push(0),this.geodesicPathSegmentLengths.push(0),this.perimeterSegmentLengths.push(0),++this._length},e.prototype._updatePathLengths=function(e){for(var t=this.positionsWorldCoords,i=this.pathSegmentLengths,s=0,r=0;r<this._length;++r){var o=i[r]=h.vec3.distance(t[r],t[(r+1)%this._length]);(r<this._length-1||e)&&(s+=o)}return s},e.prototype._updateGeodesicPathLengths=function(e){for(var t=this.positionsGeographic,i=this.geodesicPathSegmentLengths,s=0,r=0;r<this._length;++r){var o=i[r]=l.segmentLengthGeodesicVector(t[r],t[(r+1)%this._length]);(r<this._length-1||e)&&(s+=o)}return s},e.prototype._updateArea=function(e,t,i,r,n){var a=e.renderCoordsHelper,c=this.positionsWorldCoords,d=this.positionsRenderCoords,p=this.positionsProjectedWorldCoords,m=this.positionsFittedRenderCoords,v=this._planeWorldCoords,_=this._centroidRenderCoords;g.midpoint(d,_),a.worldUpAtPosition(_,this._worldUp),a.worldBasisAtPosition(_,0,this._worldTangent),f.transformDirection(_,this._worldUp,i,this._worldUp,r),f.transformDirection(_,this._worldTangent,i,this._worldTangent,r),l.bestFitPlane(c,v),this.fittingMode=this._selectFittingMode(v,c,this._worldUp,n);var S=0;if(\"horizontal\"===this.fittingMode){var C=-1/0;d.forEach(function(e,t){var i=a.getAltitude(d[t]);i>C&&(C=i,S=t)})}var L=c[S],w=v,R=this._worldTangent;\"horizontal\"===this.fittingMode?w=this._worldUp:\"vertical\"===this.fittingMode&&(w=this._tempVec3,R=this._worldUp,u.makeOrthonormal(v,this._worldUp,w)),h.vec3.copy(this._frame[2],w),u.makeOrthonormal(R,w,this._frame[0]),h.vec3.cross(this._frame[1],this._frame[0],this._frame[2]),h.vec3.negate(this._frame[1],this._frame[1]);for(var P=this._tempVec3,A=this._tempU,U=this._tempV,W=0;W<this._length;++W){var y=p[W],G=m[W];h.vec3.subtract(P,c[W],L),o.vec2.set(y,h.vec3.dot(this._frame[0],P),h.vec3.dot(this._frame[1],P)),h.vec3.scale(A,this._frame[0],y[0]),h.vec3.scale(U,this._frame[1],y[1]),h.vec3.add(P,A,U),h.vec3.add(P,P,L),f.vectorToVector(P,r,G,i)}this.perimeterLength=this._length>0?new s(t.normalizeDistance(this._updatePerimeterLengths()),\"meters\"):null,g.midpoint(m,this.areaCentroidRenderCoords),f.vectorToVector(this.areaCentroidRenderCoords,i,this.areaCentroidWorldCoords,r),this._updateIntersectingSegments(),this.area=0===this.intersectingSegments.size?new s(t.normalizeArea(this._computeArea()),\"square-meters\"):null},e.prototype._updateGeodesicArea=function(e){var t=e.renderCoordsHelper,i=this.positionsSpherical,r=this.positionsStereographic,n=this._tempVec3,a=l.fitHemisphere(i,n);if(!a)return void(this.geodesicArea=null);var c=this._tempU,d=this._tempV;u.tangentFrame(n,c,d);for(var p=0;p<this._length;++p){var g=h.vec3.dot(i[p],c),v=h.vec3.dot(i[p],d),_=h.vec3.dot(i[p],n);o.vec2.set(r[p],g/_,v/_)}h.vec3.scale(n,n,m.earthRadius),t.toRenderCoords(n,f.SphericalECEFSpatialReference,this.geodesicAreaCentroidRenderCoords),this._updateGeodesicIntersectingSegments(),this.geodesicArea=a&&0===this.geodesicIntersectingSegments.size?new s(this._computeGeodesicArea(),\"square-meters\"):null},e.prototype._updatePerimeterLengths=function(){for(var e=this.positionsProjectedWorldCoords,t=this.perimeterSegmentLengths,i=0,s=0;s<this._length;++s){i+=t[s]=o.vec2.distance(e[s],e[(s+1)%this._length])}return i},e.prototype._updateIntersectingSegments=function(){var e=this.positionsProjectedWorldCoords,t=this.intersectingSegments;t.clear();for(var i=0;i<this._length;++i)for(var s=i+2;s<this._length;++s)if((s+1)%this._length!==i){var r=e[i],o=e[(i+1)%this._length],n=e[s],h=e[(s+1)%this._length];p.segmentIntersects(r,o,n,h)&&(t.add(i),t.add(s))}},e.prototype._computeArea=function(){for(var e=this.positionsProjectedWorldCoords,t=v(e,2),i=this.triangleIndices=new Uint32Array(r(t,[],2)),s=0,o=0;o<i.length;o+=3)s+=l.triangleAreaEuclidean(e[i[o]],e[i[o+1]],e[i[o+2]]);return s},e.prototype._updateGeodesicIntersectingSegments=function(){var e=this.positionsStereographic,t=this.geodesicIntersectingSegments;t.clear();for(var i=0;i<this._length;++i)for(var s=i+2;s<this._length;++s)if((s+1)%this._length!==i){var r=e[i],o=e[(i+1)%this._length],n=e[s],h=e[(s+1)%this._length];p.segmentIntersects(r,o,n,h)&&(t.add(i),t.add(s))}},e.prototype._computeGeodesicArea=function(){for(var e=this.positionsGeographic,t=this.positionsStereographic,i=v(t,2),s=this.geodesicTriangleIndices=new Uint32Array(r(i,[],2)),o=0,n=0;n<s.length;n+=3)o+=l.triangleAreaGeodesic(e[s[n]],e[s[n+1]],e[s[n+2]],d.WGS84);return o},e.prototype._selectFittingMode=function(e,t,s,r){var o=t.map(function(t){return Math.abs(l.planePointDistance(e,t))}).reduce(function(e,t){return Math.max(e,t)},0);l.boundingSphere(t,this._tempSphere);var n=2*this._tempSphere.radius,a=o/n,c=a<r.maxRelativeErrorCoplanar,d=a<r.maxRelativeErrorAlmostCoplanar,p=\"horizontal\";if(c)p=\"oblique\";else if(d){var g=Math.abs(h.vec3.dot(s,e))>Math.cos(i.deg2rad(r.verticalAngleThreshold));p=g?\"horizontal\":\"vertical\"}return p},e}()});","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../support/setUtils\"],function(e,t,n){return function(){function e(){this.change=\"none\",this.updatedVertices=new Set}return e.prototype.fullChange=function(){this.change=\"full\"},e.prototype.incrementalChange=function(e){\"none\"===this.change&&(this.change=\"incremental\"),this.updatedVertices.add(e)},e.prototype.clear=function(){this.change=\"none\",this.updatedVertices.clear()},e.prototype.assign=function(e){this.change=e.change,this.updatedVertices=n.clone(e.updatedVertices)},e.prototype.merge=function(e){var t=this;switch(this.change){case\"none\":this.assign(e);break;case\"full\":break;case\"incremental\":\"incremental\"===e.change?e.updatedVertices.forEach(function(e){t.updatedVertices.add(e)}):\"full\"===e.change&&(this.change=\"full\")}},e}()});","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../../../core/tsSupport/declareExtendsHelper\",\"../../../../../core/tsSupport/decorateHelper\",\"../../../../../core/Accessor\",\"../../../../../core/Collection\",\"../../../../../core/Evented\",\"../../../../../core/accessorSupport/decorators\"],function(e,t,r,i,o,n,s,c){return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.vertices=new n,t}return r(t,e),Object.defineProperty(t.prototype,\"front\",{get:function(){return this.vertices.items[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"back\",{get:function(){return this.vertices.items[this.vertices.length-1]||null},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.vertices.removeAll(),this.emit(\"cleared\",{}),this._notifyFrontBack()},t.prototype.vertex=function(e){return this.vertices.items[e]},t.prototype.add=function(e){this.vertices.add(e);var t=this.vertices.length-1;return this._notifyFrontBack(),this.emit(\"vertex-added\",{index:t}),t},t.prototype.insert=function(e,t){return this.vertices.splice(e,0,t),this._notifyFrontBack(),this.emit(\"vertex-inserted\",{index:e}),e},t.prototype.remove=function(e){this.vertices.removeAt(e),this._notifyFrontBack(),this.emit(\"vertex-removed\",{index:e})},t.prototype.update=function(e,t){null!=t&&(this.vertices.splice(e,1,t),this._notifyFrontBack()),this.emit(\"vertex-updated\",{index:e})},t.prototype._notifyFrontBack=function(){this.notifyChange(\"front\"),this.notifyChange(\"back\")},i([c.property({readOnly:!0})],t.prototype,\"vertices\",void 0),i([c.property({aliasOf:\"vertices.length\"})],t.prototype,\"length\",void 0),i([c.property({readOnly:!0})],t.prototype,\"front\",null),i([c.property({readOnly:!0})],t.prototype,\"back\",null),t=i([c.subclass(\"esri.views.3d.interactive.measurementTools.support.Path\")],t)}(c.declared(s.EventedMixin(o)))});","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../../../core/libs/gl-matrix-2/vec3\",\"../../../../../core/libs/gl-matrix-2/vec3f64\",\"../../../../../geometry/geometryEngine\",\"../../../../../geometry/Polygon\",\"../../../../../geometry/SpatialReference\",\"../../../../../geometry/support/geodesicUtils\",\"../../../support/mathUtils\",\"../../../support/projectionUtils\"],function(e,t,r,n,o,a,i,c,s,v){var u;!function(e){function t(e,t){var n=t.center;r.vec3.set(n,0,0,0);for(var o=0;o<e.length;++o)r.vec3.add(n,n,e[o]);r.vec3.scale(n,n,1/e.length);for(var a=0,o=0;o<e.length;++o)a=Math.max(a,r.vec3.squaredDistance(n,e[o]));t.radius=Math.sqrt(a)}function n(e,t){if(e.length<3)throw new Error(\"need at least 3 points to fit a plane\");s.planeFromPoints(e[0],e[1],e[2],t)}function a(e,t){return r.vec3.dot(e,t)+e[3]}function i(e,t,n){return v.pointToVector(e,l,n)&&v.pointToVector(t,f,n)?r.vec3.distance(l,f):0}function u(e,t){if(!v.pointToWGS84ComparableLonLat(e,l))return 0;if(!v.pointToWGS84ComparableLonLat(t,f))return 0;var r={distance:null};return c.inverseGeodeticSolver(r,[l[0],l[1]],[f[0],f[1]]),r.distance}function m(e,t){var r={distance:null};return c.inverseGeodeticSolver(r,[e[0],e[1]],[t[0],t[1]]),r.distance}function h(e,t,r){var n=t[0]-e[0],o=t[1]-e[1],a=r[0]-e[0],i=r[1]-e[1];return.5*Math.abs(n*i-o*a)}function b(e,t,r,n){var a=p;return v.vectorToWGS84ComparableLonLat(e,n,l)&&v.vectorToWGS84ComparableLonLat(t,n,f)&&v.vectorToWGS84ComparableLonLat(r,n,g)?(a.setPoint(0,0,l),a.setPoint(0,1,f),a.setPoint(0,2,g),Math.abs(o.geodesicArea(a,\"square-meters\"))):0}function L(e,t,n){Math.abs(e[0])>Math.abs(e[1])?r.vec3.set(t,0,1,0):r.vec3.set(t,1,0,0),r.vec3.cross(n,e,t),r.vec3.normalize(t,t),r.vec3.cross(t,n,e),r.vec3.normalize(n,n)}function G(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!0);var o=function(e,t){if(0===t[0]&&0===t[1]&&0===t[2])return!1;for(var n=0;n<e.length;++n)if(r.vec3.dot(t,e[n])<-1e-6)return!1;return!0};if(0===e.length)return!1;if(1===e.length)return t&&r.vec3.copy(t,e[0]),!0;r.vec3.set(d,0,0,0);for(var a=0;a<e.length;++a)r.vec3.add(d,d,e[a]);if(r.vec3.normalize(d,d),o(e,d))return t&&r.vec3.copy(t,d),!0;if(!n)return!1;for(var a=0;a<e.length;++a)for(var i=0;i<e.length;++i)if(a!==i&&(r.vec3.cross(d,e[a],e[i]),r.vec3.normalize(d,d),o(e,d)))return t&&r.vec3.copy(t,d),!0;return!1}function S(e,t){if(e===t)return!0;if(e.size!==t.size)return!1;for(var r=0;r<e.size;++r)if(!t.has(e[r]))return!1;return!0}e.boundingSphere=t,e.bestFitPlane=n,e.planePointDistance=a,e.segmentLengthEuclidean=i,e.segmentLengthGeodesic=u,e.segmentLengthGeodesicVector=m,e.triangleAreaEuclidean=h,e.triangleAreaGeodesic=b,e.tangentFrame=L,e.fitHemisphere=G,e.compareSets=S}(u||(u={}));var l=n.vec3f64.create(),f=n.vec3f64.create(),g=n.vec3f64.create(),p=new a({rings:[[l,f,g]],spatialReference:i.WGS84}),d=n.vec3f64.create();return u});","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\"],function(e,n){function r(e){var n=new Set;return e.forEach(function(e){n.add(e)}),n}Object.defineProperty(n,\"__esModule\",{value:!0}),n.clone=r});","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../../core/tsSupport/extendsHelper\",\"../lib/GLMaterial\",\"../lib/Material\",\"./internal/DefaultBufferWriter\",\"./internal/MaterialUtil\",\"./internal/MaterialUtil\",\"./renderers/InstancedRenderer\",\"../shaders/CheckerBoardTechnique\"],function(t,e,r,i,n,o,a,s,u,p){var h=function(t){function e(e,r){var i=t.call(this,r)||this;return i.techniqueConfig=new p.CheckerBoardTechniqueConfiguration,i.params=a.copyParameters(e,f),i}return r(e,t),e.prototype.dispose=function(){},e.prototype.getPassParameters=function(){return this.params},e.prototype.getTechniqueConfig=function(){return this.techniqueConfig.transparent=this.params.transparent,this.techniqueConfig.writeDepth=this.params.writeDepth,this.techniqueConfig.polygonOffset=this.params.polygonOffset,this.techniqueConfig},e.prototype.setParameterValues=function(t){a.updateParameters(this.params,t)&&this.notifyDirty(\"matChanged\")},e.prototype.intersect=function(t,e,r,i,n,o,a){return s.intersectTriangleGeometry(t,e,i,n,o,void 0,a)},e.prototype.getGLMaterials=function(){return{color:c,depthShadowMap:void 0,normal:void 0,depth:void 0,highlight:void 0}},e.prototype.createBufferWriter=function(){return new o.DefaultBufferWriter(o.PositionUVLayout)},e.prototype.createRenderer=function(t,e){return new u(t,e,this)},e}(n.Material),c=function(t){function e(e){var r=t.call(this,e)||this;return r.updateParameters(),r}return r(e,t),e.prototype.updateParameters=function(){this.technique=this.techniqueRep.acquireAndReleaseExisting(p.CheckerBoardTechnique,this.material.getTechniqueConfig(),this.technique)},e.prototype.beginSlot=function(t){var e=4;return this.technique.configuration.transparent&&(e=this.technique.configuration.writeDepth?6:9),t===e},e.prototype.getProgram=function(){return this.technique.program},e.prototype.getPrograms=function(){return null},e.prototype.getDrawMode=function(){return 4},e.prototype.bind=function(t){t.bindProgram(this.technique.program),this.technique.bindPipelineState(t),this.technique.bindPass(t,this.material.getPassParameters())},e.prototype.bindView=function(t){a.bindView(t.origin,t.view,this.technique.program)},e.prototype.bindInstance=function(t){this.technique.program.setUniformMatrix4fv(\"model\",t.transformation)},e.prototype.release=function(){},e}(i.GLMaterial),f={size:[1,1],color1:[.75,.75,.75,1],color2:[.5,.5,.5,1],transparent:!1,writeDepth:!0,polygonOffset:!1};return h});","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../../core/tsSupport/makeTemplateObjectHelper\",\"../core/shaderModules/interfaces\",\"../core/shaderModules/ShaderBuilder\"],function(e,a,d,o,n){function v(){var e=new n.ShaderBuilder;return e.extensions.add(\"GL_OES_standard_derivatives\"),e.attributes.add(\"position\",\"vec3\"),e.attributes.add(\"uv0\",\"vec2\"),e.vertex.uniforms.add(\"proj\",\"mat4\").add(\"view\",\"mat4\").add(\"model\",\"mat4\"),e.varyings.add(\"vUV\",\"vec2\"),e.vertex.code.add(o.glsl(i||(i=d([\"\\n    void main(void) {\\n      vUV = uv0;\\n      gl_Position = proj * view * vec4((model * vec4(position, 1.0)).xyz, 1.0);\\n    }\\n  \"],[\"\\n    void main(void) {\\n      vUV = uv0;\\n      gl_Position = proj * view * vec4((model * vec4(position, 1.0)).xyz, 1.0);\\n    }\\n  \"])))),e.fragment.uniforms.add(\"size\",\"vec2\").add(\"color1\",\"vec4\").add(\"color2\",\"vec4\"),e.fragment.code.add(o.glsl(t||(t=d([\"\\n    void main() {\\n      vec2 uvScaled = vUV / (2.0 * size);\\n\\n      vec2 uv = fract(uvScaled - 0.25);\\n      vec2 ab = clamp((abs(uv - 0.5) - 0.25) / fwidth(uvScaled), -0.5, 0.5);\\n      float fade = smoothstep(0.25, 0.5, max(fwidth(uvScaled.x), fwidth(uvScaled.y)));\\n      float t = mix(abs(ab.x + ab.y), 0.5, fade);\\n\\n      gl_FragColor = mix(color2, color1, t);\\n    }\\n  \"],[\"\\n    void main() {\\n      vec2 uvScaled = vUV / (2.0 * size);\\n\\n      vec2 uv = fract(uvScaled - 0.25);\\n      vec2 ab = clamp((abs(uv - 0.5) - 0.25) / fwidth(uvScaled), -0.5, 0.5);\\n      float fade = smoothstep(0.25, 0.5, max(fwidth(uvScaled.x), fwidth(uvScaled.y)));\\n      float t = mix(abs(ab.x + ab.y), 0.5, fade);\\n\\n      gl_FragColor = mix(color2, color1, t);\\n    }\\n  \"])))),e}Object.defineProperty(a,\"__esModule\",{value:!0}),a.build=v;var i,t});","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../../core/tsSupport/extendsHelper\",\"../../../../core/tsSupport/decorateHelper\",\"../../../../core/tsSupport/assignHelper\",\"../core/shaderTechnique/ReloadableShaderModule\",\"../core/shaderTechnique/ShaderTechnique\",\"../core/shaderTechnique/ShaderTechniqueConfiguration\",\"../lib/DefaultVertexAttributeLocations\",\"./CheckerBoard.glsl\",\"../../../webgl/Program\",\"../../../webgl/renderState\",\"../../../webgl/renderState\"],function(e,r,t,o,n,i,a,p,l,u,s,c,h){Object.defineProperty(r,\"__esModule\",{value:!0});var d=function(r){function o(){return null!==r&&r.apply(this,arguments)||this}return t(o,r),o.prototype.initializeProgram=function(e){var r=o.shader.get(),t=r.build();return new s(e.rctx,t.generateSource(\"vertex\"),t.generateSource(\"fragment\"),l.Default3D)},o.prototype.bindPass=function(e,r){this.program.setUniform2fv(\"size\",r.size),this.program.setUniform4fv(\"color1\",r.color1),this.program.setUniform4fv(\"color2\",r.color2)},o.prototype.initializePipeline=function(){var e=this.configuration;return h.makePipelineState({blending:e.transparent&&c.separateBlendingParams(770,1,771,771),polygonOffset:e.polygonOffset&&{factor:0,units:-25},depthTest:{func:513},depthWrite:e.writeDepth&&h.defaultDepthWriteParams,colorWrite:h.defaultColorWriteParams})},o.prototype.bindPipelineState=function(e){e.setPipelineState(this.pipeline)},o.shader=new i.ReloadableShaderModule(u,\"./CheckerBoard.glsl\",e),o}(a.ShaderTechnique);r.CheckerBoardTechnique=d;var f=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.transparent=!1,r.writeDepth=!0,r.polygonOffset=!1,r}return t(r,e),o([p.parameter()],r.prototype,\"transparent\",void 0),o([p.parameter()],r.prototype,\"writeDepth\",void 0),o([p.parameter()],r.prototype,\"polygonOffset\",void 0),r}(p.ShaderTechniqueConfiguration);r.CheckerBoardTechniqueConfiguration=f});","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../core/tsSupport/declareExtendsHelper\",\"../core/tsSupport/decorateHelper\",\"dojo/i18n!./AreaMeasurement3D/nls/AreaMeasurement3D\",\"../core/accessorSupport/decorators\",\"./Widget\",\"./AreaMeasurement3D/AreaMeasurement3DViewModel\",\"./support/widget\"],function(e,t,s,a,i,n,r,l,u){var o={button:\"esri-button esri-button--secondary\",buttonDisabled:\"esri-button--disabled\",base:\"esri-area-measurement-3d\",widget:\"esri-widget\",panel:\"esri-widget--panel\",container:\"esri-area-measurement-3d__container\",hint:\"esri-area-measurement-3d__hint\",hintText:\"esri-area-measurement-3d__hint-text\",panelError:\"esri-area-measurement-3d__panel--error\",measurement:\"esri-area-measurement-3d__measurement\",measurementItem:\"esri-area-measurement-3d__measurement-item\",measurementItemDisabled:\"esri-area-measurement-3d__measurement-item--disabled\",measurementItemTitle:\"esri-area-measurement-3d__measurement-item-title\",measurementItemValue:\"esri-area-measurement-3d__measurement-item-value\",settings:\"esri-area-measurement-3d__settings\",units:\"esri-area-measurement-3d__units\",unitsLabel:\"esri-area-measurement-3d__units-label\",unitsSelect:\"esri-area-measurement-3d__units-select esri-select\",unitsSelectWrapper:\"esri-area-measurement-3d__units-select-wrapper\",actionSection:\"esri-area-measurement-3d__actions\",clearButton:\"esri-area-measurement-3d__clear-button\",widgetIcon:\"esri-icon-measure-area\"};return function(e){function t(t){var s=e.call(this,t)||this;return s.view=null,s.visible=null,s.iconClass=o.widgetIcon,s.label=i.widgetLabel,s.viewModel=new l,s.unitOptions=null,s.unit=null,s}return s(t,e),t.prototype.render=function(){var e=this,t=this.viewModel.isSupported,s=this.viewModel.active,a=\"disabled\"===this.viewModel.state,n=\"ready\"===this.viewModel.state,r=\"measuring\"===this.viewModel.state||\"measured\"===this.viewModel.state,l=this.viewModel.measurement,m=s&&n?u.tsx(\"section\",{key:\"esri-area-measurement-3d__hint\",class:o.hint},u.tsx(\"p\",{class:o.hintText},i.hint)):null,d=t?null:u.tsx(\"section\",{key:\"esri-area-measurement-3d__unsupported\",class:o.panelError},u.tsx(\"p\",null,i.unsupported)),c=function(t,s,a){switch(s.state){case\"available\":return u.tsx(\"div\",{key:a+\"-enabled\",class:o.measurementItem},u.tsx(\"span\",{class:o.measurementItemTitle},t),u.tsx(\"span\",{class:o.measurementItemValue},s.text));case\"unavailable\":return u.tsx(\"div\",{key:a+\"-disabled\",class:e.classes(o.measurementItem,o.measurementItemDisabled)},u.tsx(\"span\",{class:o.measurementItemTitle},t));case\"invalid\":return u.tsx(\"div\",{key:a+\"-enabled\",class:o.measurementItem},u.tsx(\"span\",{class:o.measurementItemTitle},t),u.tsx(\"span\",{class:o.measurementItemValue},i.notApplicable))}},p=r?u.tsx(\"section\",{key:\"esri-area-measurement-3d__measurement\",class:o.measurement},c(i.area,l.area,\"area\"),c(i.perimeterLength,l.perimeterLength,\"perimeter-length\")):null,v=this.id+\"__units\",_=u.tsx(\"label\",{class:o.unitsLabel,for:v},i.unit),b=u.tsx(\"div\",{class:o.unitsSelectWrapper},u.tsx(\"select\",{class:o.unitsSelect,id:v,onchange:this._changeUnit,bind:this},this.viewModel.unitOptions.map(function(t){return t===e.viewModel.unit?u.tsx(\"option\",{key:t,value:t,selected:!0},i.units[t]):u.tsx(\"option\",{key:t,value:t},i.units[t])}))),w=r?u.tsx(\"section\",{key:\"esri-area-measurement-3d__units\",class:o.units},_,b):null,h=r?u.tsx(\"div\",{key:\"settings\",class:o.settings},w):null,M=!t||s&&!r?null:u.tsx(\"div\",{class:o.actionSection},u.tsx(\"button\",{disabled:a,class:this.classes(o.button,o.clearButton,a&&o.buttonDisabled),bind:this,onclick:this._newMeasurement},i.newMeasurement)),x=this.visible?u.tsx(\"div\",{class:o.container},d,m,h,p,M):null;return u.tsx(\"div\",{key:\"\",class:this.classes(o.base,o.widget,o.panel),role:\"presentation\"},x)},t.prototype._newMeasurement=function(){this.viewModel.newMeasurement()},t.prototype._changeUnit=function(e){var t=e.target,s=t.options[t.selectedIndex];s&&(this.unit=s.value)},a([n.aliasOf(\"viewModel.view\")],t.prototype,\"view\",void 0),a([n.aliasOf(\"viewModel.visible\"),u.renderable()],t.prototype,\"visible\",void 0),a([n.aliasOf(\"viewModel.active\"),u.renderable()],t.prototype,\"active\",void 0),a([n.property()],t.prototype,\"iconClass\",void 0),a([n.property()],t.prototype,\"label\",void 0),a([n.property({type:l}),u.renderable([\"viewModel.state\",\"viewModel.unitOptions\",\"viewModel.unit\",\"viewModel.measurement\"])],t.prototype,\"viewModel\",void 0),a([n.aliasOf(\"viewModel.unitOptions\")],t.prototype,\"unitOptions\",void 0),a([n.aliasOf(\"viewModel.unit\")],t.prototype,\"unit\",void 0),a([u.accessibleHandler()],t.prototype,\"_newMeasurement\",null),a([u.accessibleHandler()],t.prototype,\"_changeUnit\",null),t=a([n.subclass(\"esri.widgets.AreaMeasurement3D\")],t)}(n.declared(r))});","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../core/tsSupport/declareExtendsHelper\",\"../../core/tsSupport/decorateHelper\",\"../../core/Handles\",\"../../core/Logger\",\"../../core/unitUtils\",\"../../core/watchUtils\",\"../../core/accessorSupport/decorators\",\"../../views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool\",\"../support/commonProperties\",\"../support/InteractiveToolViewModel\"],function(e,t,r,n,o,i,s,l,a,u,p,d){var c=i.getLogger(\"esri.widgets.AreaMeasurement3D.AreaMeasurement3DViewModel\");return function(e){function t(t){var r=e.call(this,t)||this;return r.supportedViewType=\"3d\",r._handles=new o,r._userUnitOptions=null,r._userUnit=null,r.tool=null,r}return r(t,e),t.prototype.initialize=function(){var e=this;this._handles.add([l.init(this,\"unit\",function(t){e.tool&&(e.tool.unit=t)})])},Object.defineProperty(t.prototype,\"state\",{get:function(){return this.isDisabled?\"disabled\":this.tool?this.tool.state:\"ready\"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"measurement\",{get:function(){if(!this.tool||this.isDisabled)return null;var e=this.tool.model,t=e.measurementMode,r=e.measurementData,n=e.validMeasurement,o=\"euclidean\"===t?r.intersectingSegments:r.geodesicIntersectingSegments,i=0===o.size,s=i?n?\"available\":\"unavailable\":\"invalid\";return{mode:t,area:{text:i&&n?e.areaLabel:null,state:s},perimeterLength:{text:i&&n?e.perimeterLengthLabel:null,state:s}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"unitOptions\",{get:function(){return this._filteredOrAllUnits(this._userUnitOptions)},set:function(e){this._userUnitOptions=e,this._set(\"unitOptions\",this._filteredOrAllUnits(this._userUnitOptions))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"unit\",{get:function(){return this._userUnit?(this._userUnit=this._findSelectableUnit(this._userUnit,this.defaultUnit),this._userUnit):this._findSelectableUnit(this.defaultUnit)},set:function(e){this._userUnit=e?this._findSelectableUnit(e,this._userUnit):null,this.notifyChange(\"unit\")},enumerable:!0,configurable:!0}),t.prototype.newMeasurement=function(){this.createTool()},t.prototype.clearMeasurement=function(){this.removeTool()},t.prototype.createToolParams=function(){return{toolConstructor:u,constructorArguments:{unit:this.unit}}},t.prototype.logUnsupportedError=function(){c.error(\"AreaMeasurement3D widget is not implemented for MapView\")},t.prototype.logError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];c.error.apply(c,e)},t.prototype._findSelectableUnit=function(e,t){var r=this.unitOptions;return-1!==r.indexOf(e)?e:t?this._findSelectableUnit(t):r[0]},t.prototype._filteredOrAllUnits=function(e){if(!e)return s.measurementAreaUnits.slice();var t=e.filter(function(e){return-1!==s.measurementAreaUnits.indexOf(e)});return 0===t.length?s.measurementAreaUnits.slice():t},n([a.property({dependsOn:[\"isDisabled\",\"tool.state\"],readOnly:!0})],t.prototype,\"state\",null),n([a.property({dependsOn:[\"view.ready\",\"tool.area\",\"tool.geodesicArea\",\"tool.areaLabel\",\"tool.perimeterLength\",\"tool.geodesicPerimeterLength\",\"tool.model.perimeterLengthLabel\",\"tool.model.measurementMode\",\"tool.model.measurementData\"],readOnly:!0})],t.prototype,\"measurement\",null),n([a.property({constructOnly:!0})],t.prototype,\"tool\",void 0),n([a.property(p.defaultUnitPropertyMetadata)],t.prototype,\"defaultUnit\",void 0),n([a.property({dependsOn:[\"view.spatialReference\"]})],t.prototype,\"unitOptions\",null),n([a.property({dependsOn:[\"unitOptions\",\"defaultUnit\"]})],t.prototype,\"unit\",null),n([a.property()],t.prototype,\"clearMeasurement\",null),t=n([a.subclass(\"esri.widgets.AreaMeasurement3D.AreaMeasurement3DViewModel\")],t)}(a.declared(d.InteractiveToolViewModel))});","/*\n * This module was modified by dojo-webpack-plugin to disable some locales\n * that were excluded by the plugin's 'locales' option\n */\ndefine(({'root':({'widgetLabel':'Area Measurement','hint':'Start to measure by clicking in the scene to place your first point','unsupported':'3D area measurement is only supported in SceneView.','perimeterLength':'Perimeter','area':'Area','unit':'Unit','notApplicable':'n/a','newMeasurement':'New measurement','units':({'metric':'Metric','imperial':'Imperial','square-kilometers':'Square kilometers','square-meters':'Square meters','square-miles':'Square miles','square-inches':'Square inches','square-feet':'Square feet','square-yards':'Square yards','square-us-feet':'Square feet (US)','acres':'Acres','ares':'Ares','hectares':'Hectares'})}),'ar':false,'bs':false,'ca':false,'cs':false,'da':false,'de':false,'el':false,'es':false,'et':false,'fi':false,'fr':false,'he':false,'hr':false,'hu':false,'id':false,'it':false,'ja':false,'ko':false,'lv':false,'lt':false,'nl':false,'nb':false,'pl':false,'pt-br':false,'pt-pt':false,'ro':false,'ru':false,'sr':false,'sv':false,'th':false,'tr':false,'uk':false,'vi':1,'zh-cn':false,'zh-hk':false,'zh-tw':false}))","// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine({widgetLabel:\"Đo Diện tích\",hint:\"Bắt đầu đo bằng cách bấm vào scene để đặt điểm đầu tiên của bạn\",unsupported:\"Tính toán diện tích 3D chỉ được hỗ trợ trong SceneView.\",perimeterLength:\"Chu vi\",area:\"Khu vực\",unit:\"Đơn vị\",notApplicable:\"Không áp dụng\",newMeasurement:\"Phép đo mới\",units:{metric:\"Hệ mét\",imperial:\"Hệ đo lường Anh\",\"square-kilometers\":\"Kilômét vuông\",\"square-meters\":\"Mét vuông\",\"square-miles\":\"Dặm vuông\",\"square-inches\":\"Inch vuông\",\"square-feet\":\"Feet vuông\",\"square-yards\":\"Thước vuông\",\"square-us-feet\":\"Feet vuông (Mỹ)\",acres:\"Acre\",ares:\"Are\",hectares:\"Hecta\"}});","define([\"dojo/i18n\", \"C:/Jenkins/workspace/_chinh-vien-thong_web-gis_master/node_modules/dojo-webpack-plugin/loaders/dojo/runner.js\"\n,\"esri/widgets/AreaMeasurement3D/nls/vi/AreaMeasurement3D\"\n,\"C:/Jenkins/workspace/_chinh-vien-thong_web-gis_master/node_modules/arcgis-js-api/widgets/AreaMeasurement3D/nls/AreaMeasurement3D.js?absMid=esri/widgets/AreaMeasurement3D/nls/AreaMeasurement3D\"\n], function(loader, runner) {\n   return runner(loader, \"esri/widgets/AreaMeasurement3D/nls/AreaMeasurement3D\", __webpack_require__.dj.c(), false);\n});"],"sourceRoot":"webpack:///"}