@arcgis/core 4.32.0-next.20250101 → 4.32.0-next.20250103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Color.js +1 -1
- package/PopupTemplate.js +1 -1
- package/arcade/functions/date.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/featuresetstats.js +1 -1
- package/arcade/functions/featuresetstring.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/functions/geometry.js +1 -1
- package/arcade/functions/geomsync.js +1 -1
- package/arcade/functions/knowledgegraph.js +1 -1
- package/arcade/functions/string.js +1 -1
- package/arcade/geometry/extendedUnitData.js +5 -0
- package/arcade/geometry/functions.js +5 -0
- package/arcade/geometry/operators.js +5 -0
- package/arcade/geometry/unitConversion.js +5 -0
- package/arcade/geometry/wkt.js +5 -0
- package/arcade/languageUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{e371f4f0eb3c22f222df.js → 005727711cca0614c2ab.js} +2 -2
- package/assets/esri/core/workers/chunks/{e371f4f0eb3c22f222df.js.LICENSE.txt → 005727711cca0614c2ab.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{2d908c115ea18e813b95.js → 00c0fbe19c12691cf2c3.js} +1 -1
- package/assets/esri/core/workers/chunks/08e28328385066c519c2.js +1 -0
- package/assets/esri/core/workers/chunks/{0e735d01296d340b393e.js → 0b95ec12218f3c04df18.js} +1 -1
- package/assets/esri/core/workers/chunks/{59bf879b4802a5ba431e.js → 0ee669947c23f469e357.js} +1 -1
- package/assets/esri/core/workers/chunks/116103ecec27cce47a2f.js +1 -0
- package/assets/esri/core/workers/chunks/11f00218905f0db447ff.js +1 -0
- package/assets/esri/core/workers/chunks/14b87f3dd9942e6b19d0.js +1 -0
- package/assets/esri/core/workers/chunks/16d7c07e1c11b88dae84.js +1 -0
- package/assets/esri/core/workers/chunks/1d04fe800cb98e4d6bc4.js +1 -0
- package/assets/esri/core/workers/chunks/{71f6e5742cf0c482066b.js → 1dc6b5b177022b80c473.js} +1 -1
- package/assets/esri/core/workers/chunks/{59455e2dd44b4c01cc76.js → 2586741c359057b3f626.js} +1 -1
- package/assets/esri/core/workers/chunks/{250a810dd4e1ff293564.js → 318a39b56851e707edad.js} +1 -1
- package/assets/esri/core/workers/chunks/{b1e4813f0c73fc2a483c.js → 370b230fd2d7703d0698.js} +2 -2
- package/assets/esri/core/workers/chunks/{b1e4813f0c73fc2a483c.js.LICENSE.txt → 370b230fd2d7703d0698.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/38d03fe352057fb375b5.js +1 -0
- package/assets/esri/core/workers/chunks/{ebf9caf2dc8af89afec2.js → 42aa697b4718b75b8cb2.js} +2 -2
- package/assets/esri/core/workers/chunks/{ebf9caf2dc8af89afec2.js.LICENSE.txt → 42aa697b4718b75b8cb2.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{801dbea20966806db1c9.js → 53cd990b2c988518de6d.js} +1 -1
- package/assets/esri/core/workers/chunks/5a1eb0d1e25ff5574c43.js +1 -0
- package/assets/esri/core/workers/chunks/6157c49e7431f5868c77.js +1 -0
- package/assets/esri/core/workers/chunks/{eef2d94a73064f9bc085.js → 61d64f163840563017d5.js} +1 -1
- package/assets/esri/core/workers/chunks/6d218fb5e0f0a04d72c5.js +2 -0
- package/assets/esri/core/workers/chunks/{d82b3e2905cab511ff3a.js.LICENSE.txt → 6d218fb5e0f0a04d72c5.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/6ed57d01be6bc054c7cd.js +1 -0
- package/assets/esri/core/workers/chunks/7254956381e823219db0.js +1 -0
- package/assets/esri/core/workers/chunks/740e6bdb3b76f2ea6d61.js +1 -0
- package/assets/esri/core/workers/chunks/756c2f7c8659deab6c96.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{56fc353421252f2d0a99.js → 75e8ba7e02647b7216ae.js} +1 -1
- package/assets/esri/core/workers/chunks/89d7eec47e5b29935d92.js +1 -0
- package/assets/esri/core/workers/chunks/8cd2c9ec1e541836b81c.js +1 -0
- package/assets/esri/core/workers/chunks/{0b3e1e903120da297641.js → 932375de79e3d33bc4d7.js} +1 -1
- package/assets/esri/core/workers/chunks/{263adfd1c2641ef5c0f5.js → 95f23bd17ce9e07fc8ef.js} +1 -1
- package/assets/esri/core/workers/chunks/{7de9c01849c4aa1940e7.js → 986889cea53c4a470347.js} +1 -1
- package/assets/esri/core/workers/chunks/{cc6160e8ab3cea4040c2.js → 9e9b2fd958e816b1b5f6.js} +1 -1
- package/assets/esri/core/workers/chunks/a57cead317eb2fc9afd8.js +1 -0
- package/assets/esri/core/workers/chunks/acec58a7f23b2cc938ee.js +1 -0
- package/assets/esri/core/workers/chunks/b0f4254d8a32dd713009.js +1 -0
- package/assets/esri/core/workers/chunks/b277b8c2f556918e4f9a.js +1 -0
- package/assets/esri/core/workers/chunks/{deffd56e39ce725ce377.js → b30046a40bcfbec8abe4.js} +1 -1
- package/assets/esri/core/workers/chunks/{5c11e2e65b97565e5003.js → b7db64b07edb0b37ece1.js} +1 -1
- package/assets/esri/core/workers/chunks/bd1fb82e8bac439d05ea.js +1 -0
- package/assets/esri/core/workers/chunks/bf0a0ca7fdac98f06a89.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/c44ce0302dc82fb66ada.js +1 -0
- package/assets/esri/core/workers/chunks/c52872a50a5989121388.js +1 -0
- package/assets/esri/core/workers/chunks/c8cd6ba5600d8ff8db0b.js +2 -0
- package/assets/esri/core/workers/chunks/{a100fb789d72410f8d4f.js.LICENSE.txt → c8cd6ba5600d8ff8db0b.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{57c1370b310768c0790a.js → ca1e186f136abb23ae4b.js} +1 -1
- package/assets/esri/core/workers/chunks/{d14e4fc82ad772899336.js → ca4a37bdc0f7fb705146.js} +1 -1
- package/assets/esri/core/workers/chunks/cb94fc9b0f613ad50b3f.js +1 -0
- package/assets/esri/core/workers/chunks/d20764cc99fcabcb7cbf.js +1 -0
- package/assets/esri/core/workers/chunks/df18a72e3625cbe31935.js +1 -0
- package/assets/esri/core/workers/chunks/eff8fcb6393cd1193cbc.js +1 -0
- package/assets/esri/core/workers/chunks/f19d3c855f6e93544918.js +1 -0
- package/assets/esri/core/workers/chunks/{60b40b2319d1651dd150.js → f7e50a8284d12da21355.js} +1 -1
- package/assets/esri/core/workers/chunks/f9c0d571f62e611ffe2b.js +1 -0
- package/assets/esri/core/workers/chunks/fdfe8e0d942b78f08191.js +1 -0
- package/assets/esri/core/workers/chunks/ff21207f46a354786eed.js +1 -0
- package/chunks/Bufferer-BiY2mtjI.js +1 -1
- package/chunks/Centroid-DZi-eb9F.js +1 -1
- package/chunks/Clipper-a9xfvRaw.js +1 -1
- package/chunks/CrackAndCluster-CfzXpEle.js +1 -1
- package/chunks/Distance2DCalculator-eS0piaux.js +1 -1
- package/chunks/GeodeticDistanceCalculator-bNilDneE.js +1 -1
- package/chunks/Geometry.js +1 -1
- package/chunks/GeometryCleaner-DVgW95-D.js +1 -1
- package/chunks/Intersector-K1VmdfQW.js +1 -1
- package/chunks/LineSeries.js +1 -1
- package/chunks/OperatorClip.js +1 -1
- package/chunks/OperatorCrosses.js +1 -1
- package/chunks/OperatorCut.js +1 -1
- package/chunks/OperatorDensify.js +1 -1
- package/chunks/OperatorDifference.js +1 -1
- package/chunks/OperatorGeneralize.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
- package/chunks/OperatorGeodeticDistance.js +1 -1
- package/chunks/OperatorGeodeticLength.js +1 -1
- package/chunks/OperatorIntersection.js +1 -1
- package/chunks/OperatorIntersects.js +1 -1
- package/chunks/OperatorMultiPartToSinglePart.js +1 -1
- package/chunks/OperatorOverlaps.js +1 -1
- package/chunks/OperatorProject.js +1 -1
- package/chunks/OperatorProximity.js +1 -1
- package/chunks/OperatorProximityGeodesic.js +1 -1
- package/chunks/OperatorShapePreservingDensify.js +1 -1
- package/chunks/OperatorShapePreservingLength.js +1 -1
- package/chunks/OperatorSimplify.js +1 -1
- package/chunks/OperatorTouches.js +1 -1
- package/chunks/OperatorUnion.js +1 -1
- package/chunks/OperatorWithin.js +1 -1
- package/chunks/QuadraticBezier.js +1 -1
- package/chunks/SideCalculator2D-Bf4QCxCR.js +1 -1
- package/chunks/Theme.js +1 -1
- package/chunks/Tick.js +1 -1
- package/chunks/Transformation2D.js +1 -1
- package/chunks/arcade.js +1 -1
- package/chunks/areaOperator.js +5 -0
- package/chunks/array.js +1 -1
- package/chunks/bufferOperator.js +5 -0
- package/chunks/centroidOperator.js +5 -0
- package/chunks/chartUtilsAm5.js +1 -1
- package/chunks/clipOperator.js +5 -0
- package/chunks/containsOperator.js +5 -0
- package/chunks/convexHullOperator.js +5 -0
- package/chunks/crossesOperator.js +5 -0
- package/chunks/cutOperator.js +5 -0
- package/chunks/densifyOperator.js +5 -0
- package/chunks/differenceOperator.js +5 -0
- package/chunks/disjointOperator.js +5 -0
- package/chunks/distanceOperator.js +5 -0
- package/chunks/equalsOperator.js +5 -0
- package/chunks/generalizeOperator.js +5 -0
- package/chunks/geodesicBufferOperator.js +5 -0
- package/chunks/geodeticAreaOperator.js +5 -0
- package/chunks/geodeticDensifyOperator.js +5 -0
- package/chunks/geodeticLengthOperator.js +5 -0
- package/chunks/i3s.js +1 -1
- package/chunks/intersectionOperator.js +5 -0
- package/chunks/intersectsOperator.js +5 -0
- package/chunks/languageUtils.js +1 -1
- package/chunks/lclayout.js +1 -1
- package/chunks/lengthOperator.js +5 -0
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/chunks/offsetOperator.js +5 -0
- package/chunks/overlapsOperator.js +5 -0
- package/chunks/pe-wasm.js +1 -1
- package/chunks/proximityOperator.js +5 -0
- package/chunks/relateOperator.js +5 -0
- package/chunks/simplifyOperator.js +5 -0
- package/chunks/symmetricDifferenceOperator.js +5 -0
- package/chunks/touchesOperator.js +5 -0
- package/chunks/unionOperator.js +5 -0
- package/chunks/vxlLayer.js +1 -1
- package/chunks/withinOperator.js +5 -0
- package/copyright.txt +2 -2
- package/core/Evented.js +1 -1
- package/geometry/operators/areaOperator.js +1 -1
- package/geometry/operators/bufferOperator.js +1 -1
- package/geometry/operators/centroidOperator.js +1 -1
- package/geometry/operators/clipOperator.js +1 -1
- package/geometry/operators/containsOperator.js +1 -1
- package/geometry/operators/convexHullOperator.js +1 -1
- package/geometry/operators/crossesOperator.js +1 -1
- package/geometry/operators/cutOperator.js +1 -1
- package/geometry/operators/densifyOperator.js +1 -1
- package/geometry/operators/differenceOperator.js +1 -1
- package/geometry/operators/disjointOperator.js +1 -1
- package/geometry/operators/distanceOperator.js +1 -1
- package/geometry/operators/equalsOperator.js +1 -1
- package/geometry/operators/extendOperator.js +1 -1
- package/geometry/operators/generalizeOperator.js +1 -1
- package/geometry/operators/geodesicBufferOperator.js +1 -1
- package/geometry/operators/geodeticAreaOperator.js +1 -1
- package/geometry/operators/geodeticDensifyOperator.js +1 -1
- package/geometry/operators/geodeticLengthOperator.js +1 -1
- package/geometry/operators/gx/operatorAffineTransform.js +1 -1
- package/geometry/operators/gx/operatorAlphaShape.js +1 -1
- package/geometry/operators/gx/operatorAutoComplete.js +1 -1
- package/geometry/operators/gx/operatorBoundary.js +1 -1
- package/geometry/operators/gx/operatorBuffer.js +1 -1
- package/geometry/operators/gx/operatorConvexHull.js +1 -1
- package/geometry/operators/gx/operatorGraphicBuffer.js +1 -1
- package/geometry/operators/gx/operatorIntegrate.js +1 -1
- package/geometry/operators/gx/operatorLabelPoint.js +1 -1
- package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
- package/geometry/operators/gx/operatorLocateBetween.js +1 -1
- package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
- package/geometry/operators/gx/operatorOffset.js +1 -1
- package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
- package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
- package/geometry/operators/gx/operatorSinglePartToMultiPart.js +1 -1
- package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
- package/geometry/operators/intersectionOperator.js +1 -1
- package/geometry/operators/intersectsOperator.js +1 -1
- package/geometry/operators/isNearOperator.js +1 -1
- package/geometry/operators/json/disjointOperator.js +1 -1
- package/geometry/operators/lengthOperator.js +1 -1
- package/geometry/operators/offsetOperator.js +1 -1
- package/geometry/operators/overlapsOperator.js +1 -1
- package/geometry/operators/proximityOperator.js +1 -1
- package/geometry/operators/relateOperator.js +1 -1
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/operators/simplifyOperator.js +1 -1
- package/geometry/operators/support/apiConverter.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/operators/symmetricDifferenceOperator.js +1 -1
- package/geometry/operators/touchesOperator.js +1 -1
- package/geometry/operators/unionOperator.js +1 -1
- package/geometry/operators/withinOperator.js +1 -1
- package/geometry/support/contains.js +1 -1
- package/kernel.js +1 -1
- package/layers/KMLLayer.js +1 -1
- package/layers/WCSLayer.js +1 -1
- package/layers/support/rasterDatasets/WCSRaster.js +1 -1
- package/layers/support/rasterFormats/RasterCodec.js +1 -1
- package/layers/support/rasterFormats/TiffDecoder.js +1 -1
- package/layers/support/wmtsUtils.js +1 -1
- package/package.json +3 -3
- package/smartMapping/renderers/support/utils.js +1 -1
- package/smartMapping/symbology/support/Theme.js +1 -1
- package/support/revision.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
- package/views/3d/support/DisplayQualityProfile.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/interfaces.js +1 -1
- package/views/3d/webgl-engine/lib/Octree.js +1 -1
- package/views/SelectionManager.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/Legend/support/heatmapRampUtils.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerVisibleElements.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/assets/esri/core/workers/chunks/015285436ca965f94e17.js +0 -1
- package/assets/esri/core/workers/chunks/048d296efa26ccd79056.js +0 -1
- package/assets/esri/core/workers/chunks/0e0b978459d70b15acb5.js +0 -1
- package/assets/esri/core/workers/chunks/10fa211987b16fd71a1a.js +0 -1
- package/assets/esri/core/workers/chunks/200a5f1864c2c2f7536c.js +0 -1
- package/assets/esri/core/workers/chunks/23a697d48f6e45cc033e.js +0 -1
- package/assets/esri/core/workers/chunks/29b610ff44708e044cbd.js +0 -1
- package/assets/esri/core/workers/chunks/3600125c58d5d04c515a.js +0 -1
- package/assets/esri/core/workers/chunks/457d4abc938d14f28e31.js +0 -1
- package/assets/esri/core/workers/chunks/4b5dbdcad438cb2dd4bf.js +0 -1
- package/assets/esri/core/workers/chunks/69efc716991a407c3d23.js +0 -1
- package/assets/esri/core/workers/chunks/6e254e846e284223ef63.js +0 -1
- package/assets/esri/core/workers/chunks/785610aa615198fd3815.js +0 -1
- package/assets/esri/core/workers/chunks/7bf7aace72f81f5de4e4.js +0 -1
- package/assets/esri/core/workers/chunks/7ea3d652536e1d79dfc6.js +0 -1
- package/assets/esri/core/workers/chunks/816c9c81352cd0ca8ce8.js +0 -1
- package/assets/esri/core/workers/chunks/9291508232b23f030178.js +0 -1
- package/assets/esri/core/workers/chunks/9fc49968dea8e2b64f3e.js +0 -1
- package/assets/esri/core/workers/chunks/a0b3d70a1b0360084593.js +0 -1
- package/assets/esri/core/workers/chunks/a100fb789d72410f8d4f.js +0 -2
- package/assets/esri/core/workers/chunks/b4d76d46661aba356ea3.js +0 -1
- package/assets/esri/core/workers/chunks/cb3af81e1fe6405c4885.js +0 -1
- package/assets/esri/core/workers/chunks/cbf57abb537e86c1dd7f.js +0 -1
- package/assets/esri/core/workers/chunks/cebdf2f88c4d2ad8baab.js +0 -1
- package/assets/esri/core/workers/chunks/d56d77125798beb7e493.js +0 -1
- package/assets/esri/core/workers/chunks/d82b3e2905cab511ff3a.js +0 -2
- package/assets/esri/core/workers/chunks/e2f91098793b8742fae6.js +0 -1
- package/assets/esri/core/workers/chunks/f25c04cf1a4bc1d2636a.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1088,7066],{37066:(e,t,s)=>{s.r(t),s.d(t,{OperatorGeodeticArea:()=>w});var i=s(55537),n=s(35368),a=s(5247),_=s(9192),r=s(32406),h=s(11878),o=s(31139),m=s(47591),u=s(90237);s(77592),s(22194),s(76061),s(31088),Symbol.dispose;class c{constructor(e,t,s,i,a=0,r=4){this.m_ptDistFrom=new h.P,this.m_segStartPt=new h.P,this.m_segEndPt=new h.P,this.m_geodeticLength=new _.o,this.m_az12=new _.o,this.m_minGeodeticDist=new _.o,this.m_segStartPt3d=new n.O,this.m_segEndPt3d=new n.O,this.m_sr=i,this.m_distCurveType=a,this.m_segCurveType=r,this.m_inputGCS=this.m_sr.getGCS(),this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_bIsPannablePcs=2===this.m_sr.getCoordinateSystemType()&&this.m_sr.isPannable();const o=(0,_.s)();this.m_inputGCS.querySpheroidData(o),this.m_a=o.majorSemiAxis,this.m_eSquared=o.e2,this.setPointDistFrom(e),this.setSegmentEndPoints(t,s)}setSegmentEndPoints(e,t){this.m_segStartPt.assign(e),this.m_segEndPt.assign(t),this.m_bIsPannablePcs||(this.m_segStartPt.mulThis(this.m_rpu),this.m_segEndPt.mulThis(this.m_rpu)),2===this.m_segCurveType&&(this.m_segStartPt3d.assign((0,_.y)(this.m_a,this.m_eSquared,this.m_segStartPt)),this.m_segEndPt3d.assign((0,_.y)(this.m_a,this.m_eSquared,this.m_segEndPt))),this.calculateAndUpdateSegmentLength()}setPointDistFrom(e){this.m_ptDistFrom.assign(e),this.m_ptDistFrom.scale(this.m_rpu)}setSegmentCurveType(e){this.m_segCurveType=e}setDistanceCurveType(e){this.m_distCurveType=e}makeFunctor(){return e=>{let t;switch(this.m_segCurveType){case 0:case 1:case 3:{const s={stack:[],error:void 0,hasError:!1};try{const i=(0,u.b)(s,new _.o,!1),n=(0,u.b)(s,new _.o,!1);_.q.geodeticCoordinate(this.m_a,this.m_eSquared,this.m_segStartPt.x,this.m_segStartPt.y,this.m_geodeticLength.val*e,this.m_az12.val,i,n,this.m_segCurveType),t=new h.P(i.val,n.val);break}catch(e){s.error=e,s.hasError=!0}finally{(0,u.c)(s)}}case 2:{const s=n.O.lerp(this.m_segStartPt3d,this.m_segEndPt3d,e);t=(0,_.E)(this.m_a,this.m_eSquared,s);break}case 4:t=h.P.lerp(this.m_segStartPt,this.m_segEndPt,e),this.m_bIsPannablePcs&&((0,_.A)(this.m_sr,0,[t],1),t.mulThis(this.m_rpu));break;default:(0,i.b)("Invalid curve type")}return _.q.geodeticDistance(this.m_a,this.m_eSquared,this.m_ptDistFrom.x,this.m_ptDistFrom.y,t.x,t.y,this.m_minGeodeticDist,null,null,this.m_distCurveType),this.m_minGeodeticDist.val}}calculateAndUpdateSegmentLength(){switch(this.m_segCurveType){case 0:case 2:case 1:case 3:_.q.geodeticDistance(this.m_a,this.m_eSquared,this.m_segStartPt.x,this.m_segStartPt.y,this.m_segEndPt.x,this.m_segEndPt.y,this.m_geodeticLength,this.m_az12,null,this.m_segCurveType);break;case 4:this.m_geodeticLength.val=h.P.distance(this.m_segStartPt,this.m_segEndPt);break;default:(0,i.b)("Invalid curve type")}}[Symbol.dispose](){this.m_geodeticLength[Symbol.dispose](),this.m_az12[Symbol.dispose](),this.m_minGeodeticDist[Symbol.dispose]()}}Symbol.dispose;class l{constructor(e,t,s,i,n=100){this.m_startPt=e.clone(),this.m_endPt=t.clone(),this.m_cE2=i,this.m_cE=Math.sqrt(this.m_cE2),this.m_c1By2e=1/(2*this.m_cE),this.m_cRpu=s.getGCS().getUnit().getUnitToBaseFactor(),this.isPcs=2===s.getCoordinateSystemType(),this.PEProjcs=s.getPECoordSys(),this.m_points=new Array(2*n)}setSegmentEndPoints(e,t){this.m_startPt.assign(e),this.m_endPt.assign(t)}makeFunctor(){return e=>{const t=[0,0];t[0]=this.m_startPt.x*(1-e)+this.m_endPt.x*e,t[1]=this.m_startPt.y*(1-e)+this.m_endPt.y*e,this.isPcs&&_.F.projToGeogCenter(this.PEProjcs,1,t,0);const s=Math.sin(t[1]*this.m_cRpu);return 0===this.m_cE2?s:-Math.log((1-this.m_cE*s)/(1+this.m_cE*s))*this.m_c1By2e+s/(1-this.m_cE2*s*s)}}}function p(e,t,s,i,r){const h=(new a.O).execute(e,t,0,0,r);let o;o=i?(new _.g).execute(h,i,r):h;const m=1===s.getUnit().getUnitToBaseFactor()?Math.PI/180:1,u=new n.a;o.queryEnvelope(u);const c=new n.a,l=new n.a,p=new n.a;c.setCoords({xmin:u.xmin,ymin:75*m,xmax:u.xmax,ymax:90*m}),l.setCoords({xmin:u.xmin,ymin:-60*m,xmax:u.xmax,ymax:75*m}),p.setCoords({xmin:u.xmin,ymin:-90*m,xmax:u.xmax,ymax:-60*m}),c.inflateCoords(.01*c.width(),0),l.inflateCoords(.01*l.width(),0),p.inflateCoords(.01*p.width(),0);let d=0;return d+=g(o,c,s,r),d+=g(o,l,s,r),d+=g(o,p,s,r),d}function g(e,t,s,a){const r=(new o.O).execute(e,t,s,a);if(null!==r&&!r.isEmpty()){const e=new n.a;r.queryEnvelope(e);const{first:t,second:o}=function(e,t){const s=function(e,t){const s=e.getUnit().getUnitToBaseFactor(),n=t.getCenter();n.scale(180*s/Math.PI);const a=new h.P;a.x=0,a.y=0;let r=0;if(0===r){n.y>45?(a.y=h.q,r=0):n.y<-45?(a.y=-h.q,r=1):n.x>=45&&n.x<135?(a.x=h.q,r=2):n.x>=135||n.x<-135?(a.x=h.q,r=3):n.x<-45&&n.x>=-135?(a.x=-h.q,r=4):(a.x=0,r=5);const e=s*Math.sqrt((0,h.e)(t.xmin-t.xmax)+(0,h.e)(t.ymin-t.ymax)),i=a.clone(),_=t.getCenter();if(_.scale(s),r<2&&(i.x=_.x),h.P.distance(i,_)+.5*e>h.q)return null}const o=d[r];if(null!==o&&o.getGCS().equalHorizontal(e))return o;const m=e.getText(),u=a.x,c=a.y;let l=0,p=-1;6!==r?p=_.Q.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:((0,i.g)(false),l=0,p=_.Q.PE_PRJ_CYLINDRICAL_EQAREA);const g=(0,_.$)("EqualAreaPCS");let P;p===_.Q.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?P=`PROJCS["${g}",${m},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${u}],PARAMETER["Latitude_of_Origin",${c}],UNIT["Meter",1.0]]`:p===_.Q.PE_PRJ_CYLINDRICAL_EQAREA?P=`PROJCS["${g}",${m},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${u}],PARAMETER["Standard_Parallel_1",${l}],PARAMETER["Latitude_of_Origin",${c}],UNIT["Meter",1.0]]`:(0,i.b)("getEqualAreaPcsFixed");const y=(0,_.b)(P);return d[r]&&d[r].destroy(),d[r]=y,y}(e,t);if(null!==s)return(0,h.d)(s,!1);const n=e.getText(),a=e.getUnit().getUnitToBaseFactor(),r=(t.xmin+t.width()/2)*a,o=(t.ymin+t.height()/2)*a;let m=0,u=0,c=-1;t.ymin*a>=75*Math.PI/180||t.ymax*a<=-60*Math.PI/180?c=_.Q.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:t.ymin>0||t.ymax<0?(m=(t.ymin+1/3*t.height())*a,u=(t.ymin+2/3*t.height())*a,c=_.Q.PE_PRJ_ALBERS):(m=(t.ymin+2/3*t.height())*a,c=_.Q.PE_PRJ_CYLINDRICAL_EQAREA);const l=(0,_.$)("EqualAreaPCS");let p;return c===_.Q.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?p=`PROJCS["${l}",${n},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${r}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:c===_.Q.PE_PRJ_ALBERS?p=`PROJCS["${l}",${n},PROJECTION["Albers"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${r}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Standard_Parallel_2",${u}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:c===_.Q.PE_PRJ_CYLINDRICAL_EQAREA?p=`PROJCS["${l}",${n},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${r}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:(0,i.b)("getEqualAreaPCSInstance"),(0,h.d)((0,_.b)(p),!0)}(s,e),m=(0,_.e)(s,t,null),u=(new _.g).execute(r,m,a).calculateArea2D();return o&&t.destroy(),u}return 0}const d=[null,null,null,null,null,null,null];class P{getOperatorType(){return 10314}supportsCurves(){return!0}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}execute(e,t,s){if(0===t.getCoordinateSystemType()&&(0,i.t)(""),e.isEmpty()||e.getDimension()<2)return 0;if((0,i.c)(e),e.getGeometryType()===i.G.enumEnvelope){const i=new n.h;return i.addEnvelope(e,!1),this.execute(i,t,s)}let u=e;e.getDescription().getAttributeCount()>1&&(u=e.clone(),u.dropAllAttributes());const c=(new a.O).execute(u,0,t.getTolerance(0),0,s);let g=null;const d=t.getGCS();d!==t&&(g=(0,_.e)(t,d));let P=(new r.O).execute(c,t,!1,s);return P.isEmpty()?0:(P===e&&(P=e.clone()),t.isPannable()?function(e,t,s){const i=new n.a;e.queryEnvelope(i);const a=(0,n.b)(t,i,!0).total(),r=t.getPannableExtent();r.xmin=i.xmin-10*a,r.xmax=i.xmax+10*a;const m=(new o.O).execute(e,r,t,s).getImpl().querySegmentIterator();m.stripAttributes();const u=(0,_.s)();t.querySpheroidData(u);const c=u.e2,p=0===c?2:1,g=new h.P(0,0),d=new h.P(0,0),P=new h.K(0),y=new l(g,d,t,c,100);for(;m.nextPath();)for(;m.hasNextSegment();){const e=m.nextSegment();g.assign(e.getStartXY()),d.assign(e.getEndXY()),y.setSegmentEndPoints(g,d);const t=(0,n.ab)(6,0,1,1e-12,1e-15,y.makeFunctor());P.pe((d.x-g.x)*t)}const E=u.majorSemiAxis;return p*E*E*(1-c)*Math.PI*P.getResult()/t.getPannableExtent().width()}(P,t,s):function(e,t,s,i,n){const a=function(e,t,s){const i=e.calculateLength2D(),n=(new m.O).execute(e,t,s)/25e3,a=i/e.getSegmentCount()*2;let _=Math.min(a,i/n);return 0===_&&(_=1),(0,h.d)(_,i/_)}(e,t,n);let _=p(e,a.first,s,i,n),r=1,o=0,u=0;do{if(r++,a.first*=.5,a.first<50*t.getTolerance(0))return _;a.second*=2,u=p(e,a.first,s,i,n),o=Math.abs(u-_),_=u}while(Math.abs(_)>1&&o>1e-8*Math.abs(_)&&(a.second<65e3&&r<8||r<4));return u}(P,t,d,g,s))}}function y(){return{m_p_PCS:new h.P,m_factor:Number.NaN,setValues:E,assign:S}}function E(e,t){this.m_factor=e,this.m_p_PCS.assign(t)}function S(e){this.m_factor=e.m_factor,this.m_p_PCS.assign(e.m_p_PCS)}class f{constructor(e,t,s,i){this.m_ptStart=new n.O,this.m_ptEnd=new n.O,this.m_ptStart.assign(t),this.m_ptEnd.assign(s),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y,this.m_e=Math.sqrt(e),this.m_e2=e,this.m_c1MinusE2=1-e;const a=Math.sin(i);let _;_=0===this.m_e2?2*a:a*((0,h.y)(this.m_e*a)+1/(1-this.m_e2*a*a)),this.m_baseA=_}setSegmentEndPoints(e,t){this.m_ptStart.assign(e),this.m_ptEnd.assign(t),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y}makeFunctor(){return e=>{const t=1-e,s=t*this.m_ptStart.x+e*this.m_ptEnd.x,i=t*this.m_ptStart.y+e*this.m_ptEnd.y,n=t*this.m_ptStart.z+e*this.m_ptEnd.z,a=s*s+i*i,_=n/Math.sqrt(n*n+this.m_c1MinusE2*this.m_c1MinusE2*a);let r;return r=0===this.m_e2?2*_:_*((0,h.y)(this.m_e*_)+1/(1-this.m_e2*_*_)),(this.m_deltaY*s-this.m_deltaX*i)/a*(r-this.m_baseA)}}}function x(){return{sin_phi:Number.NaN,one_p_sin_phi:Number.NaN,one_m_sin_phi:Number.NaN,one_m_e_2_sin_2_phi:Number.NaN,sin_half_phi_pf:Number.NaN,sin_half_phi_pz:Number.NaN,sin_half_asin_e_sin_phi_pf:Number.NaN,sin_half_asin_e_sin_phi_pz:Number.NaN,atanh_sin_phi:Number.NaN,atanh_esin_phi:Number.NaN,make_negative:!1,initialize:A,changeSign:C,assign:T,clone:R}}function A(e,t,s,i){const n=.5*e;this.sin_phi=Math.sin(e);const a=t*this.sin_phi,_=.5*Math.asin(a);this.one_p_sin_phi=1+this.sin_phi,this.one_m_sin_phi=1-this.sin_phi,this.one_m_e_2_sin_2_phi=(1+a)*(1-a),this.sin_half_phi_pf=Math.sin(n+s),this.sin_half_phi_pz=Math.sin(n+i),this.sin_half_asin_e_sin_phi_pf=Math.sin(_+s),this.sin_half_asin_e_sin_phi_pz=Math.sin(_+i),this.atanh_sin_phi=Math.log(this.sin_half_phi_pf/this.sin_half_phi_pz),this.atanh_esin_phi=Math.log(this.sin_half_asin_e_sin_phi_pf/this.sin_half_asin_e_sin_phi_pz)}function C(){this.sin_phi=-this.sin_phi;let e=this.one_p_sin_phi;this.one_p_sin_phi=this.one_m_sin_phi,this.one_m_sin_phi=e,e=this.sin_half_phi_pf,this.sin_half_phi_pf=this.sin_half_phi_pz,this.sin_half_phi_pz=e,e=this.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pf=this.sin_half_asin_e_sin_phi_pz,this.sin_half_asin_e_sin_phi_pz=e,this.atanh_sin_phi=-this.atanh_sin_phi,this.atanh_esin_phi=-this.atanh_esin_phi}function T(e){this.sin_phi=e.sin_phi,this.one_p_sin_phi=e.one_p_sin_phi,this.one_m_sin_phi=e.one_m_sin_phi,this.one_m_e_2_sin_2_phi=e.one_m_e_2_sin_2_phi,this.sin_half_phi_pf=e.sin_half_phi_pf,this.sin_half_phi_pz=e.sin_half_phi_pz,this.sin_half_asin_e_sin_phi_pf=e.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pz=e.sin_half_asin_e_sin_phi_pz,this.atanh_sin_phi=e.atanh_sin_phi,this.atanh_esin_phi=e.atanh_esin_phi,this.make_negative=e.make_negative}function R(){return{...this}}class M{constructor(e,t,s){this.m_transformPCS2GCS=null,this.m_scaleToRadians=new h.T,this.m_scaleToDegrees=new h.T,this.m_progressTracker=s,(0,i.g)(4!==t),this.m_curveType=t,this.m_inputSR=e,e&&0!==e.getCoordinateSystemType()||(0,i.t)(""),this.m_inputGCS=e.getGCS(),this.m_a=0,this.m_eSquared=0,this.m_b=0,this.m_rpu=0}executePolygonGeodeticArea(e){let t,s=e.clone();if(s.dropAllAttributes(),e.hasNonLinearSegments()&&(s=(new a.O).execute(s,0,this.m_inputSR.getTolerance(0),0,this.m_progressTracker)),this.m_inputSR.isPannable()){const e=new n.a;s.queryEnvelope(e);const t=this.m_inputSR.getPannableExtent();if(!t.containsEnvelope(e)){const i=t.getCenterX()-e.getCenterX(),n=new h.T;n.setShiftCoords(i,0),s.applyTransformation(n),e.move(i,0);const a=new h.E;t.queryIntervalX(a);const r=new h.E;e.queryIntervalX(r),s=a.contains(r)?(0,_.h)(s,this.m_inputSR):(new _.g).foldInto360RangeGeodetic(s,this.m_inputSR,this.m_curveType)}}if(this.m_transformPCS2GCS?(s=(new r.O).execute(s,this.m_inputSR,!1,this.m_progressTracker),t=s.createInstance(),(0,_.I)(this.m_transformPCS2GCS,s,t,this.m_progressTracker)||(t=(new _.g).execute(s,this.m_transformPCS2GCS,this.m_progressTracker))):t=(new r.O).execute(s,this.m_inputGCS,!1,this.m_progressTracker),t.isEmpty())return 0;if(1===this.m_curveType){const e=(0,_.s)();return this.m_inputGCS.querySpheroidData(e),this.m_a=e.majorSemiAxis,this.m_eSquared=e.e2,this.loxodromeArea(t)}const i=t.getImpl();this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_scaleToRadians.setScale(this.m_rpu),i.applyTransformation(this.m_scaleToRadians),this.m_scaleToDegrees=this.m_scaleToRadians,this.m_scaleToDegrees.invertThis();const o=(0,_.s)();if(this.m_inputGCS.querySpheroidData(o),this.m_a=o.majorSemiAxis,this.m_b=o.minorSemiAxis,this.m_eSquared=o.e2,2===this.m_curveType)return this.executeClippedPolygonGreatEllipticArea(t);{const e={stack:[],error:void 0,hasError:!1};try{const s=_.a0.unit(9101),i=this.m_inputGCS.getPECoordSys(),n=(0,u.b)(e,i.cloneAlterUnits(s),!1);let a,r,h=this.executeClippedPolygonGeodeticArea(t,n,0),o=0;do{o++,a=this.executeClippedPolygonGeodeticArea(t,n,o),r=Math.abs(a-h),h=a}while(Math.abs(a)>1&&r>1e-8*Math.abs(a)&&o<7);return a}catch(t){e.error=t,e.hasError=!0}finally{(0,u.c)(e)}}}executeClippedPolygonGeodeticArea(e,t,s){const i={stack:[],error:void 0,hasError:!1};try{const a=new n.a;e.queryEnvelope(a);const r=(0,u.b)(i,this.getEqualAreaPCSInstance(t,a),!1),o=e.clone();(0,_.a1)(r,o);const m=50,c=o.getImpl().getAttributeStreamRef(0),l=e.getImpl().getAttributeStreamRef(0),p=(0,u.b)(i,new _.o,!1),g=(0,u.b)(i,new _.o,!1),d=40,P=[0,0],E=(0,h.t)(y,d),S=(0,h.a)(d,-1),f=y(),x=y();let A,C;const T=r;let R=o.calculateArea2D();const M=new h.K(0),w=.5*Math.PI,b=1e-10*Math.abs(R)+1e-6,q=e.getPathCount();let N,v,O,I;const G=new h.P,L=new h.P,D=new h.P,z=new h.P,k=new h.P,F=new h.P;let $,U;for(v=e.getPathStart(0),N=0;N<q;N++,v=O)for(O=e.getPathEnd(N),c.queryPoint2D(O-1<<1,D),l.queryPoint2D(O-1<<1,G),Math.abs(G.y)>w&&(G.y=(0,h.c)(w,G.y)),I=v;I<O;I++,D.assign(z),G.assign(L)){if(c.queryPoint2D(I<<1,z),l.queryPoint2D(I<<1,L),Math.abs(L.y)>w&&(L.y=(0,h.c)(w,L.y)),$=h.P.distance(D,z),$<m||0===G.y&&0===L.y)continue;_.q.geodeticDistance(this.m_a,this.m_eSquared,G.x,G.y,L.x,L.y,p,g,null,this.m_curveType);const e=p.val,t=g.val;for(f.setValues(0,D),x.setValues(1,z),C=s,E[0].assign(x),S[0]=s,A=0;A>=0;){U=.5*(f.m_factor+x.m_factor),_.q.geodeticCoordinate(this.m_a,this.m_eSquared,G.x,G.y,e*U,t,p,g,this.m_curveType),k.x=p.val,k.y=g.val,P[0]=k.x,P[1]=k.y,_.F.geogToProj(T,1,P),F.x=P[0],F.y=P[1];const s=.5*-F.offset(f.m_p_PCS,x.m_p_PCS)*h.P.distance(f.m_p_PCS,x.m_p_PCS);if(M.pe(s),Math.abs(s)>b||Math.abs(s)>0&&C>0)x.setValues(U,F),A++,E[A].assign(x),Math.abs(s)<=b?(C--,S[A-1]=C,S[A]=C):(C=S[A-1],S[A]=C);else{if(A<=0)break;f.assign(x),A--,x.assign(E[A]),C=S[A]}}}return R+=M.getResult(),Math.abs(R)}catch(e){i.error=e,i.hasError=!0}finally{(0,u.c)(i)}}executeClippedPolygonGreatEllipticArea(e){const t=[],s=[],i=new h.P,a=new h.P,r=(0,_.y)(1,this.m_eSquared,new h.P(0,.5*Math.PI)),o=new h.K(0),m=new h.K(0),u=new h.K(0),c=new n.O,l=new n.O,p=new n.a;e.queryLooseEnvelope(p);let g=0;p.containsCoords(p.xmin,0)||(g=Math.abs(p.ymin)<Math.abs(p.ymax)?p.ymin:p.ymax);const d=new f(this.m_eSquared,c,l,g),P=this.m_a*this.m_a,y=e.getImpl().querySegmentIterator();for(y.stripAttributes();y.nextPath();)for(;y.hasNextSegment();){const e=y.nextSegment();i.assign(e.getStartXY()),a.assign(e.getEndXY()),a.x-i.x>Math.PI?i.x+=2*Math.PI:a.x-i.x<-Math.PI&&(a.x+=2*Math.PI),this.splitSegmentCrossingItegralThreshold(e,t,s);for(let e of t)c.assign((0,_.y)(this.m_a,this.m_eSquared,e.getStartXY())),l.assign((0,_.y)(this.m_a,this.m_eSquared,e.getEndXY())),d.setSegmentEndPoints(c,l),this.adaptiveIntegrationWithRomberg(d,o);for(let e of s){let t=e.getStartXY(),s=e.getEndXY(),i=g;t.y<0&&(s=(0,h.b)(t,t=s),t.y=-t.y,s.y=-s.y,i=-i);const a=(0,_.y)(1,this.m_eSquared,t),o=(0,_.y)(1,this.m_eSquared,s),c=Math.min(t.y,s.y),l=(0,_.a2)(this.m_eSquared,t.x,s.x,i,c);m.pe(l);const p=Math.abs((0,_.a2)(this.m_eSquared,t.x,s.x,c,h.q)),d=new n.O;d.setSub(a,r);const y=new n.O;y.setSub(o,r);const E=new n.O;E.setCrossProductVector(d,y);let S=P*(p-.5*E.length());S=(0,h.c)(S,s.x-t.x),u.pe(S)}t.length=0,s.length=0}return u.getResult()+P*(.5*(1-this.m_eSquared)*o.getResult()+m.getResult())}getEqualAreaPCSInstance(e,t){const s=t.getCenterX();let i,n;const a=t.height();let r,o;(r=t.ymin>45*Math.PI/180||t.ymax<45*-Math.PI/180)?i=(0,h.c)(.5*Math.PI,t.getCenterY()):(i=t.getCenterY(),n=t.ymin+a*(2/3));const m=(0,_.$)("EqualAreaPCS"),u=e.toString();return o=r?_.a0.fromString(_.Q.PE_TYPE_PROJCS,`PROJCS["${m}", ${u}, PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${s}], PARAMETER["Latitude_of_Origin", ${i}], UNIT["Meter",1.0]]`):_.a0.fromString(_.Q.PE_TYPE_PROJCS,`PROJCS["${m}", ${u}, PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting", 0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${s}],PARAMETER["Standard_Parallel_1", ${n}],PARAMETER["Latitude_of_Origin", ${i}],UNIT["Meter",1.0]]`),o}splitSegmentCrossingItegralThreshold(e,t,s){const i=100,a=400,r=(0,_.y)(this.m_a,this.m_eSquared,new h.P(0,h.q)),o=(0,_.y)(this.m_a,this.m_eSquared,new h.P(0,-h.q)),m=this.splitSegmentPassingThroughPole(e);for(let e of m){const m=e.getStartXY(),u=e.getEndXY(),c=(0,_.y)(this.m_a,this.m_eSquared,m),l=(0,_.y)(this.m_a,this.m_eSquared,u),p=new h.P,g=new n.O;let d=n.O.sqrDistance(r,c),P=n.O.sqrDistance(c,l);if(d<=i){if(!(P>a)){s.push(new n.L({start:m,end:u}));continue}g.assign(l.sub(c)),g.normalizeThis(),g.assign(c.add(g.mul(20))),p.assign((0,_.E)(this.m_a,this.m_eSquared,g)),s.push(new n.L({start:m,end:p})),m.assign(p)}if(c.assign((0,_.y)(this.m_a,this.m_eSquared,m)),d=n.O.sqrDistance(r,l),P=n.O.sqrDistance(c,l),d<=i){if(!(P>a)){s.push(new n.L({start:m,end:u}));continue}g.assign(l.sub(c)),g.normalizeThis(),g.assign(l.sub(g.mul(20))),p.assign((0,_.E)(this.m_a,this.m_eSquared,g)),s.push(new n.L({start:p,end:u})),u.assign(p)}if(c.assign((0,_.y)(this.m_a,this.m_eSquared,m)),l.assign((0,_.y)(this.m_a,this.m_eSquared,u)),d=n.O.sqrDistance(o,c),P=n.O.sqrDistance(c,l),d<=i){if(!(P>a)){s.push(new n.L({start:m,end:u}));continue}g.assign(l.sub(c)),g.normalizeThis(),g.assign(c.add(g.mul(20))),p.assign((0,_.E)(this.m_a,this.m_eSquared,g)),s.push(new n.L({start:m,end:p})),m.assign(p)}if(c.assign((0,_.y)(this.m_a,this.m_eSquared,m)),l.assign((0,_.y)(this.m_a,this.m_eSquared,u)),d=n.O.sqrDistance(o,l),P=n.O.sqrDistance(c,l),d<=i){if(!(P>a)){s.push(new n.L({start:m,end:u}));continue}g.assign(l.sub(c)),g.normalizeThis(),g.assign(l.sub(g.mul(20))),p.assign((0,_.E)(this.m_a,this.m_eSquared,g)),s.push(new n.L({start:p,end:u})),u.assign(p)}t.push(new n.L({start:m,end:u}))}}splitSegmentPassingThroughPole(e){const t={stack:[],error:void 0,hasError:!1};try{const s=[],i=new n.O,a=new n.O,r=new n.O,o=new h.P,m=20,l=3.124139361,p=10,g=e.getStartXY(),d=e.getEndXY(),P=(0,u.b)(t,new _.o,!1);if(_.q.geodeticDistance(this.m_a,this.m_eSquared,g.x,g.y,d.x,d.y,P,null,null,2),Math.abs(d.x-g.x)>l&&P.val>m){const e=new c(new h.P(0,90),g.divide(this.m_rpu),d.divide(this.m_rpu),this.m_inputGCS,2,2);let t=(0,_.B)(e.makeFunctor(),0,1,1e-10);if(t.second<=p&&t.first>0&&t.first<1)return i.assign((0,_.y)(this.m_a,this.m_eSquared,g)),a.assign((0,_.y)(this.m_a,this.m_eSquared,d)),(0,h.x)(i,a,t.first,r),o.assign((0,_.E)(this.m_a,this.m_eSquared,r)),s.push(new n.L({start:g,end:o})),s.push(new n.L({start:o,end:d})),s;if(e.setPointDistFrom(new h.P(0,-90)),t=(0,_.B)(e.makeFunctor(),0,1,1e-10),t.second<=p&&t.first>0&&t.first<1)return i.assign((0,_.y)(this.m_a,this.m_eSquared,g)),a.assign((0,_.y)(this.m_a,this.m_eSquared,d)),(0,h.x)(i,a,t.first,r),o.assign((0,_.E)(this.m_a,this.m_eSquared,r)),s.push(new n.L({start:g,end:o})),s.push(new n.L({start:o,end:d})),s}return s.push(new n.L({start:g,end:d})),s}catch(e){t.error=e,t.hasError=!0}finally{(0,u.c)(t)}}adaptiveIntegrationWithRomberg(e,t){const s=e.makeFunctor();let i=0,a=1,_=s(i),r=s(a);const h=1e-17,o=1e-14;let m=(i+a)/2,u=s(m),c=Math.abs(u-_),l=Math.abs(r-u),p=0;for(;p++<32&&(c/l<.1||l/c<.1);)c<l?(t.pe((0,n.ab)(5,i,m,o,h,s)),i=m,_=u):(t.pe((0,n.ab)(5,m,a,o,h,s)),a=m,r=u),m=(i+a)/2,u=Math.abs(s(m)),c=Math.abs(u-_),l=Math.abs(r-u);t.pe((0,n.ab)(5,i,a,o,h,s))}loxodromeAreaHemi(e,t,s,i,n){const a=s.clone(),_=n.clone();let r,o,m,u,c,l,p,g,d,P,y,E,S,f,x,A;return a.make_negative&&a.changeSign(),_.make_negative&&_.changeSign(),y=i-t,1===Math.abs(a.sin_phi)||1===Math.abs(_.sin_phi)?e.half_qp*y:a.sin_phi===_.sin_phi?(P=.5*e.one_m_e_2*a.sin_phi*(1/a.one_m_e_2_sin_2_phi+(0,h.y)(e.e*a.sin_phi))*y,P):(x=Math.log(_.sin_half_phi_pf*a.sin_half_phi_pz/(_.sin_half_phi_pz*a.sin_half_phi_pf)),A=Math.log(_.sin_half_asin_e_sin_phi_pf*a.sin_half_asin_e_sin_phi_pz/(_.sin_half_asin_e_sin_phi_pz*a.sin_half_asin_e_sin_phi_pf)),1===this.m_eSquared?(c=0,r=.5*(x+_.sin_phi/_.one_m_e_2_sin_2_phi-a.sin_phi/a.one_m_e_2_sin_2_phi),o=0):(c=-2*e.atanh_e_over_e*(Math.log(_.one_p_sin_phi/a.one_p_sin_phi)-e.e*A),r=(x-e.e*A)/e.one_m_e_2,o=(Math.log(_.one_m_e_2_sin_2_phi/a.one_m_e_2_sin_2_phi)+c/e.atanh_e_over_e)/e.one_m_e_2),m=-A*(a.atanh_esin_phi+_.atanh_esin_phi),u=1/a.one_m_e_2_sin_2_phi-1/_.one_m_e_2_sin_2_phi,l=(0,h.z)(_.one_m_sin_phi/e.one_p_e,e.e)-(0,h.z)(a.one_m_sin_phi/e.one_p_e,e.e),p=(0,h.z)(_.one_p_sin_phi/e.one_p_e,e.e)-(0,h.z)(a.one_p_sin_phi/e.one_p_e,e.e),g=(0,h.z)(a.one_m_sin_phi/-e.one_m_e,e.e)-(0,h.z)(_.one_m_sin_phi/-e.one_m_e,e.e),d=(0,h.z)(a.one_p_sin_phi/-e.one_m_e,e.e)-(0,h.z)(_.one_p_sin_phi/-e.one_m_e,e.e),P=.25/r*(o+m+u+c+.5*(l+p+g+d)),P+=e.half_qp,E=.5*e.one_m_e_2*a.sin_phi*(1/a.one_m_e_2_sin_2_phi+(0,h.y)(e.e*a.sin_phi)),S=.5*e.one_m_e_2*_.sin_phi*(1/_.one_m_e_2_sin_2_phi+(0,h.y)(e.e*_.sin_phi)),S<E&&(f=E,E=S,S=f),P<E&&(P=E),P>S&&(P=S),P*=y,P)}loxodromeArea(e){const t=Math.PI/180;let s=0;const i={e:Number.NaN,one_p_e:Number.NaN,one_m_e:Number.NaN,one_m_e_2:Number.NaN,atanh_e_over_e:Number.NaN,half_qp:Number.NaN,f:Number.NaN,z:Number.NaN},n=x(),a=x();i.e=Math.sqrt(this.m_eSquared),i.one_p_e=1+i.e,i.one_m_e=1-i.e,i.one_m_e_2=1-this.m_eSquared,i.atanh_e_over_e=(0,h.y)(i.e),this.m_eSquared>=1?i.half_qp=1:i.half_qp=.5*(1+i.atanh_e_over_e*i.one_m_e_2),i.f=.25*Math.PI,i.z=.75*Math.PI,a.initialize(0,i.e,i.f,i.z);const _=e.getPathCount(),r=new h.P,o=new h.P,m=e.getImpl().getAttributeStreamRef(0);for(let h=0;h<_;h++){const _=e.getPathStart(h),u=e.getPathEnd(h);if(!(u-_<=1)){m.queryPoint2D(2*(u-1),r);for(let e=_;e<u;e++){m.queryPoint2D(2*e,o);const h=r.y*t,u=o.y*t;if(e===_?(n.initialize(h,i.e,i.f,i.z),n.make_negative=!1):n.assign(a),a.initialize(u,i.e,i.f,i.z),a.make_negative=!1,r.y*o.y<0){if(r.y>=90&&o.y<=-90||o.y>=90&&r.y<=-90)return Number.NaN;const e=x();e.initialize(0,i.e,i.f,i.z),e.make_negative=!1;const _=n.atanh_sin_phi-i.e*n.atanh_esin_phi,m=a.atanh_sin_phi-i.e*a.atanh_esin_phi,u=(m*r.x-_*o.x)/(m-_);h<0?(n.make_negative=!0,s-=this.loxodromeAreaHemi(i,r.x*t,n,u*t,e),n.make_negative=!1,s+=this.loxodromeAreaHemi(i,u*t,e,o.x*t,a)):(s+=this.loxodromeAreaHemi(i,r.x*t,n,u*t,e),a.make_negative=!0,s-=this.loxodromeAreaHemi(i,u*t,e,o.x*t,a),a.make_negative=!1)}else r.y>=0?s+=this.loxodromeAreaHemi(i,r.x*t,n,o.x*t,a):(n.make_negative=!0,a.make_negative=!0,s-=this.loxodromeAreaHemi(i,r.x*t,n,o.x*t,a),n.make_negative=!1,a.make_negative=!1);r.assign(o)}}}return this.m_a*s*this.m_a}calculate(e){if(e.isEmpty()||e.getDimension()<2)return 0;if(e.getGeometryType()===i.G.enumEnvelope){const t=new n.h;return t.addEnvelope(e,!1),this.calculate(t)}return this.m_inputSR!==this.m_inputGCS&&null===this.m_transformPCS2GCS&&(this.m_transformPCS2GCS=(0,_.e)(this.m_inputSR,this.m_inputGCS,null)),this.executePolygonGeodeticArea(e)}}class w{getOperatorType(){return 10311}supportsCurves(){return!0}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}execute(e,t,s,n){return(0,i.c)(e),4===s?(new P).execute(e,t,n):new M(t,s,n).calculate(e)}}},31088:(e,t,s)=>{s.r(t),s.d(t,{OperatorGeodeticDensifyByLength:()=>_,OperatorGeodeticDensifyCursor:()=>r});var i=s(76061),n=s(55537),a=s(9192);class _{getOperatorType(){return 10310}supportsCurves(){return!0}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,s,i,n){return new r(e,s,i,t,-1,-1,n)}execute(e,t,s,a,_){const r=new i.S([e]),h=this.executeMany(r,t,s,a,_).next();return h||(0,n.b)("null output"),h}}class r extends i.G{constructor(e,t,s,i,a,_,r){super(),this.m_progressTracker=r,_>0&&(0,n.a)(""),4!==s&&a>0&&(0,n.a)(""),t||(0,n.t)(""),0===t.getCoordinateSystemType()&&(0,n.t)(""),i>0||a>0||(0,n.t)(""),this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=t,this.m_curveType=s,this.m_maxLengthMeters=i,this.m_maxDeviationMeters=a,this.m_maxAngle=_}next(){{let e;for(;e=this.m_inputGeoms.next();)return(0,n.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.geodeticDensify(e);return null}}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}geodeticDensify(e){return(0,a.f)(e,this.m_spatialReference,this.m_curveType,this.m_maxLengthMeters,this.m_maxDeviationMeters,this.m_progressTracker)}}},47591:(e,t,s)=>{s.d(t,{O:()=>p});var i=s(55537),n=s(9192),a=s(35368),_=s(11878),r=s(5247),h=s(31139),o=s(32932);function m(){return{m_pGcs:new _.P,m_xyz:new a.O,m_factor:Number.NaN,m_geoLength:Number.NaN,setValues:u,setLength:c,assign:l}}function u(e,t,s,i){this.m_factor=e,this.m_pGcs.assign(t),this.m_xyz.assign(i),this.m_geoLength=s}function c(e){this.m_geoLength=e}function l(e){this.m_pGcs.assign(e.m_pGcs),this.m_xyz.assign(e.m_xyz),this.m_factor=e.m_factor,this.m_geoLength=e.m_geoLength}class p{getOperatorType(){return 10315}supportsCurves(){return!0}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}_ExecuteShapePreservingLength(e,t,s,i,_){if(e.hasNonLinearSegments()&&(e=(new r.O).execute(e,0,t.getTolerance(0),0,_)),t.isPannable()){let i=90,r=-90;if(1===s.getUnit().getUnitToBaseFactor()&&(i*=Math.PI/180,r*=Math.PI/180),2===t.getCoordinateSystemType()){let e=null;const s=[0,0,0,0];e=t.getPECoordSys(),s[0]=0,s[1]=i,s[2]=0,s[3]=r,n.F.geogToProj(e,2,s),i=s[1],r=s[3]}const o=new a.a;e.queryEnvelope(o),o.ymin=r,o.ymax=i,e=(new h.O).execute(e,o,t,_)}else{const s=t.getPCSHorizon();if((e=(new o.O).execute(e,s,t,_))===s){const t=e.clone();e=t}}return e.isEmpty()?0:this._ExecuteIterativeApproach(e,t,s,i,1,_)}_ExecuteIterativeApproach(e,t,s,r,h,o){const u=(0,n.s)();s.querySpheroidData(u);const c=u.majorSemiAxis,l=u.e2,p=s.getUnit().getUnitToBaseFactor(),P=(0,_.t)(m,40),y=new Array(40),E=m(),S=m();let f;const x=[0,0,0,0],A=t.getPECoordSys(),C=new _.P,T=new _.P,R=new _.P,M=new _.P,w=new _.P;let b=0;const q=e.querySegmentIterator();for(;q.nextPath();)for(;q.hasNextSegment();){const e=q.nextSegment();C.assign(e.getStartXY()),T.assign(e.getEndXY()),2===t.getCoordinateSystemType()?(x[0]=C.x,x[1]=C.y,x[2]=T.x,x[3]=T.y,n.F.projToGeog(A,2,x),R.x=x[0]*p,R.y=x[1]*p,M.x=x[2]*p,M.y=x[3]*p):(R.setCoordsPoint2D(C),M.setCoordsPoint2D(T),R.scale(p),M.scale(p));const s=new a.O,_=new a.O;g(c,l,R,s),g(c,l,M,_);let r=d(c,s,_);E.setValues(0,R,Number.NaN,s),S.setValues(1,M,r,_),f=h,P[0].assign(S),y[0]=h;let o=0;for(;;){o>128&&(0,i.b)("iterations exceeded");const s=.5*(E.m_factor+S.m_factor),_=e.getCoord2D(s);2===t.getCoordinateSystemType()?(x[0]=_.x,x[1]=_.y,n.F.projToGeog(A,1,x),w.x=x[0]*p,w.y=x[1]*p):(w.setCoordsPoint2D(_),w.scale(p)),R.setCoordsPoint2D(E.m_pGcs),M.setCoordsPoint2D(S.m_pGcs);const m=new a.O;g(c,l,w,m);const u=d(c,E.m_xyz,m),C=d(c,S.m_xyz,m);r=S.m_geoLength,Number.isNaN(r)&&(r=d(c,E.m_xyz,S.m_xyz));const T=u+C,q=f===h&&T>=20&&Math.abs(T-r)>1e-8*(r+T);if(o+2<40&&(q||Math.abs(T-r)>0&&f>0))S.setLength(C),P[o].assign(S),S.setValues(s,w,u,m),P[++o].assign(S),q?(f=h,y[o]=h):(f--,y[o-1]=f,y[o]=f);else{if(b+=T,0===o)break;E.assign(S),S.assign(P[--o]),f=y[o]}}}return b}execute(e,t,s){if(t&&0!==t.getCoordinateSystemType()||(0,i.t)(""),e.isEmpty()||e.getDimension()<1)return 0;let _=null;const r=t.getGCS();r!==t&&(_=(0,n.e)(t,r,null));const h=e.getGeometryType();if(h===i.G.enumEnvelope){const i=new a.h;return i.addEnvelope(e,!1),this._ExecuteShapePreservingLength(i,t,r,_,s)}if((0,i.e)(h)){const i=new a.i;return i.addSegment(e,!0),this._ExecuteShapePreservingLength(i,t,r,_,s)}return this._ExecuteShapePreservingLength(e,t,r,_,s)}}function g(e,t,s,i){i.assign((0,n.y)(e,t,s))}function d(e,t,s){const i=e,n=new a.O;n.setSub(t,s);const _=n.length();return 2*i*Math.asin(_/(2*i))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1414],{85181:(e,t,r)=>{r.d(t,{O:()=>n});var s=r(9192);class n extends s.d{getOperatorType(){return 9}execute(e,t,r,n){return(0,s.r)(e,t,r,32,n)}}},76061:(e,t,r)=>{r.d(t,{G:()=>s,S:()=>n});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class n extends s{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},46178:(e,t,r)=>{r.r(t),r.d(t,{execute:()=>m});var s=r(85181),n=r(83299);const o=new s.O;function m(e,t){const r=(0,n.fromGeometry)(e);return o.execute(r.getGeometry(),(0,n.fromGeometryToGXGeometry)(t),r.getSpatialReference(),null)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7159,8342],{92288:(e,t,r)=>{r.r(t),r.d(t,{registerFunctions:()=>J});var n=r(92602),o=(r(59456),r(47609)),i=r(66395),s=r(85935),a=r(78878),l=r(80672),c=r(91075),u=r(57251),p=r(28735),f=r(20655),d=r(80812),h=r(78888),m=r(56507),y=r(65864),g=r(2272),v=r(92300),w=r(90237),S=r(25482),A=r(10107),R=(r(44208),r(53966),r(87811),r(40608)),x=r(21325);let _=class extends S.A{constructor(e){super(e),this.geometries=[],this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const e=this.geometries.map((e=>e.toJSON())),t=this.geometries[0],r={};return r.outSR=(0,x.YX)(this.outSpatialReference),r.inSR=(0,x.YX)(t.spatialReference),r.geometries=JSON.stringify({geometryType:(0,y.$B)(t),geometries:e}),this.transformation&&(r.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(r.transformForward=this.transformForward),r}};(0,w._)([(0,A.MZ)()],_.prototype,"geometries",void 0),(0,w._)([(0,A.MZ)({json:{read:{source:"outSR"}}})],_.prototype,"outSpatialReference",void 0),(0,w._)([(0,A.MZ)()],_.prototype,"transformation",void 0),(0,w._)([(0,A.MZ)()],_.prototype,"transformForward",void 0),_=(0,w._)([(0,R.$)("esri.rest.support.ProjectParameters")],_);const P=_,G=(0,m.dp)(P);var b=r(25927),$=r(42538),M=r(40662),N=r(42095),j=r(23150),I=r(16930),O=r(54218);let k=null;async function T(e){const t=n.A.geometryServiceUrl??"";if(!t){(0,u.isLoaded)()||await(0,u.load)();for(const t of e)t.container[t.indexer]=(0,u.project)(t.container[t.indexer],I.A.WGS84);return}const r=e.map((e=>e.container[e.indexer])),o=new P({geometries:r,outSpatialReference:I.A.WGS84}),i=await async function(e,t){t=G(t);const r=(0,g.Dl)(e),n={...r.query,f:"json",...t.toJSON()},o=t.outSpatialReference,i=(0,y.$B)(t.geometries[0]),s=(0,g.jV)(n,void 0);return(0,h.A)(r.path+"/project",s).then((({data:{geometries:e}})=>(0,v.V)(e,i,o)))}(t,o);for(let t=0;t<i.length;t++){const r=e[t];r.container[r.indexer]=i[t]}}async function D(e,t){const n=new d.default({portal:e,id:t});return await n.load(),null===k&&(k=await r.e(1402).then(r.bind(r,71402))),await k.fetchKnowledgeGraph(n.url)}function Z(e,t,r,n,o){if(null===e)return null;if((0,O.Kg)(e)||(0,O.Et)(e))return e;if((0,a.g)(e))return e.toJSDate();if((0,a.g)(e))return e.toJSDate();if((0,a.j)(e))return e.toStorageFormat();if((0,a.k)(e))return e.toStorageString();if((0,a.q)(e)){const i={};for(const s of e.keys())i[s]=Z(e.field(s),t,r,n,o),i[s]instanceof c.A&&o.push({container:i,indexer:s});return i}if((0,O.cy)(e)){const i=e.map((e=>Z(e,t,r,n,o)));for(let e=0;e<i.length;e++)i[e]instanceof c.A&&o.push({container:i,indexer:e});return i}return(0,a.l)(e)?e.spatialReference.isWGS84?e:e.spatialReference.isWebMercator&&t?(0,p.ci)(e):e:void 0}function q(e,t){if(!e)return null;const r={};for(const n in e)r[n]=F(e[n],t);return r}function F(e,t){return null===e?null:(0,O.cy)(e)?e.map((e=>F(e,t))):e instanceof b.A?{graphTypeName:e.typeName,id:e.id,graphType:"entity",properties:q(e.properties,t)}:e instanceof M.A?{graphType:"object",properties:q(e.properties,t)}:e instanceof j.A?{graphTypeName:e.typeName,id:e.id,graphType:"relationship",originId:e.originId??null,destinationId:e.destinationId??null,properties:q(e.properties,t)}:e instanceof N.A?{graphType:"path",path:e.path?e.path.map((e=>F(e,t))):null}:(0,a.l)(e)?function(e,t){if(!e)return e;if(e.spatialReference.isWGS84&&t.spatialReference.isWebMercator)return(0,p.Gh)(e);if(e.spatialReference.equals(t.spatialReference))return e;throw new s.D$(t,s.TX.WrongSpatialReference,null)}(e,t):(0,O.Kg)(e)||(0,O.Et)(e)||(0,O.$P)(e)?e:null}function J(e){"async"===e.mode&&(e.functions.knowledgegraphbyportalitem=function(t,r){return e.standardFunctionAsync(t,r,((e,n,i)=>{if((0,a.B)(i,2,2,t,r),null===i[0])throw new s.D$(t,s.TX.PortalRequired,r);if(i[0]instanceof o.A){const e=(0,a.f)(i[1]);let r;return r=t.services?.portal?t.services.portal:f.A.getDefault(),D((0,l.R)(i[0],r),e)}if(!1===(0,O.Kg)(i[0]))throw new s.D$(t,s.TX.InvalidParameter,r);const c=(0,a.f)(i[0]);return D(t.services?.portal??f.A.getDefault(),c)}))},e.signatures.push({name:"knowledgegraphbyportalitem",min:2,max:2}),e.functions.querygraph=function(t,n){return e.standardFunctionAsync(t,n,(async(e,o,l)=>{(0,a.B)(l,2,4,t,n);const c=l[0];if(!(0,a.r)(c))throw new s.D$(t,s.TX.InvalidParameter,n);const u=l[1];if(!(0,O.Kg)(u))throw new s.D$(t,s.TX.InvalidParameter,n);null===k&&(k=await r.e(1402).then(r.bind(r,71402)));let p=null;const f=(0,a.E)(l[2],null);if(!(f instanceof i.A||null===f))throw new s.D$(t,s.TX.InvalidParameter,n);if(f){let e=[];p=Z(f,!0,!1,t,e),e=e.filter((e=>!e.container[e.indexer].spatialReference.isWGS84)),e.length>0&&await T(e)}const d=new $.A({openCypherQuery:u,bindParameters:p});(c?.serviceDefinition?.currentVersion??11.3)>11.2&&(d.outputSpatialReference=t.spatialReference);const h=(await k.executeQueryStreaming(c,d)).resultRowsStream.getReader(),m=[];try{for(;;){const{done:e,value:r}=await h.read();if(e)break;if((0,O.cy)(r))for(const e of r)m.push(F(e,t));else{const e=[];for(const n of r)e.push(F(r[n],t));m.push(e)}}}catch(e){throw e}return i.A.convertJsonToArcade(m,(0,a.H)(t),!1,!0)}))},e.signatures.push({name:"querygraph",min:2,max:4}))}},80672:(e,t,r)=>{r.d(t,{R:()=>o});var n=r(20655);function o(e,t){return null===e?t:new n.A({url:e.field("url")})}},97159:(e,t,r)=>{r.d(t,{M:()=>v,a:()=>y,b:()=>S,e:()=>h,f:()=>s,i:()=>f,p:()=>d,r:()=>l,t:()=>a,w:()=>c});var n=r(70333),o=r(84952),i=r(39131);function s(e,t){const r=t?.url?.path;if(e&&r&&(e=(0,o.s2)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,o.V1)(e,t.portalItem.itemUrl);null!=r&&p.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return(e=m(e,t?.portal))&&u.test(e)?y(e):e}function a(e,t,r=v.YES){if(null==(e=e&&u.test(e)?g(e):e))return e;!(0,o.oP)(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let n=(0,o.s2)(e);if(t){const r=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(r){const i=m(r,t.portal),s=m(n,t.portal);n=(0,o.V1)(s,i,i),null!=n&&n!==s&&n!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=h(n,t?.portal),(0,o.oP)(n)&&(n=(0,o.S8)(n)),t?.resources&&t?.portalItem&&!(0,o.oP)(n)&&!(0,o.DB)(n)&&r===v.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n),compress:!1}),n}function l(e,t,r){return s(e,r)}function c(e,t,r,n){const o=a(e,n);void 0!==o&&(t[r]=o)}const u=/\/items\/([^/]+)\/resources\/(.*)/,p=/^\.\/resources\//;function f(e){const t=e?.match(u)??null;return t?.[1]??null}function d(e){const t=e?.match(u)??null;if(null==t)return null;const r=t[2],n=r.lastIndexOf("/");if(-1===n){const{path:e,extension:t}=(0,o.xw)(r);return{prefix:null,filename:e,extension:t}}const{path:i,extension:s}=(0,o.xw)(r.slice(n+1));return{prefix:r.slice(0,n),filename:i,extension:s}}function h(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,o.T1)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function m(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,n=(0,o.Xq)();return(0,o.FX)(n,`${n.scheme}://${r}`)?(0,o.T1)(e,t.portalHostname,r):(0,o.T1)(e,r,t.portalHostname)}function y(e){if(!e)return e||null;let t=e;return t&&n.id&&!n.id.findCredential(t)&&(t=(0,i.qG)(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function g(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&n.id&&!n.id.findCredential(t)&&(t=(0,i.qG)(t)),t}var v,w;(w=v||(v={}))[w.YES=0]="YES",w[w.NO=1]="NO";const S=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return v},ensureMainOnlineDomain:h,fromCDNUrl:g,fromJSON:s,itemIdFromResourceUrl:f,prefixAndFilenameFromResourceUrl:d,read:l,toCDNUrl:y,toJSON:a,write:c},Symbol.toStringTag,{value:"Module"}))},92300:(e,t,r)=>{r.d(t,{V:()=>i,X:()=>o});var n=r(65864);function o(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function i(e,t,r){const o=(0,n.xD)(t);return e.map((e=>{const t=o.fromJSON(e);return t.spatialReference=r,t}))}},25927:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),o=(r(59456),r(10107)),i=(r(44208),r(53966),r(87811),r(40608)),s=r(54238),a=r(86738);let l=class extends s.A{constructor(e){super(e),this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:a.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Entity")],l);const c=l},54238:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),s=r(77901);let a=class extends s.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"typeName",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"id",void 0),a=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphNamedObject")],a);const l=a},77901:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(25482),i=r(10107),s=(r(44208),r(53966),r(87811),r(40608));let a=class extends o.A{constructor(e){super(e),this.properties=null}};(0,n._)([(0,i.MZ)({json:{write:!0}})],a.prototype,"properties",void 0),a=(0,n._)([(0,s.$)("esri.rest.knowledgeGraph.GraphObject")],a);const l=a},42538:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),s=r(69622);let a=class extends s.A{constructor(e){super(e),this.openCypherQuery=""}};(0,n._)([(0,o.MZ)()],a.prototype,"openCypherQuery",void 0),a=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQuery")],a);const l=a;let c=class extends l{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,n._)([(0,o.MZ)()],c.prototype,"bindParameters",void 0),(0,n._)([(0,o.MZ)()],c.prototype,"bindGeometryQuantizationParameters",void 0),(0,n._)([(0,o.MZ)()],c.prototype,"outputQuantizationParameters",void 0),(0,n._)([(0,o.MZ)()],c.prototype,"outputSpatialReference",void 0),(0,n._)([(0,o.MZ)()],c.prototype,"provenanceBehavior",void 0),c=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQueryStreaming")],c);const u=c},40662:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(90237),o=(r(53966),r(44208),r(87811),r(49186),r(40608)),i=r(77901);let s=class extends i.A{constructor(e){super(e)}};s=(0,n._)([(0,o.$)("esri.rest.knowledgeGraph.ObjectValue")],s);const a=s},42095:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),o=r(25482),i=r(10107),s=(r(44208),r(53966),r(87811),r(40608)),a=r(77901);let l=class extends o.A{constructor(e){super(e),this.path=null}};(0,n._)([(0,i.MZ)({type:[a.A],json:{write:!0}})],l.prototype,"path",void 0),l=(0,n._)([(0,s.$)("esri.rest.knowledgeGraph.Path")],l);const c=l},23150:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),o=(r(59456),r(10107)),i=(r(44208),r(53966),r(87811),r(40608)),s=r(54238),a=r(82799);let l=class extends s.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"originId",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"destinationId",void 0),(0,n._)([(0,o.MZ)({type:a.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Relationship")],l);const c=l},2272:(e,t,r)=>{r.d(t,{Dl:()=>s,jV:()=>i,lF:()=>a}),r(92602),r(70333);var n=r(4718),o=r(84952);function i(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function s(e){return"string"==typeof e?(0,o.An)(e):(0,n.o8)(e)}function a(e,t,r){const n={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i))n[o]=i.map((e=>a(e)));else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(r?.[o]);n[o]=t?e:JSON.stringify(e)}else n[o]=t?i:JSON.stringify(i);else n[o]=i}return n}r(926)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7159,8342],{92288:(e,t,r)=>{r.r(t),r.d(t,{registerFunctions:()=>J});var n=r(92602),o=(r(59456),r(47609)),i=r(66395),s=r(85935),a=r(78878),l=r(80672),c=r(91075),u=r(57251),p=r(28735),f=r(20655),d=r(80812),h=r(78888),m=r(56507),y=r(65864),g=r(2272),v=r(92300),w=r(90237),S=r(25482),A=r(10107),R=(r(44208),r(53966),r(87811),r(40608)),x=r(21325);let _=class extends S.A{constructor(e){super(e),this.geometries=[],this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const e=this.geometries.map((e=>e.toJSON())),t=this.geometries[0],r={};return r.outSR=(0,x.YX)(this.outSpatialReference),r.inSR=(0,x.YX)(t.spatialReference),r.geometries=JSON.stringify({geometryType:(0,y.$B)(t),geometries:e}),this.transformation&&(r.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(r.transformForward=this.transformForward),r}};(0,w._)([(0,A.MZ)()],_.prototype,"geometries",void 0),(0,w._)([(0,A.MZ)({json:{read:{source:"outSR"}}})],_.prototype,"outSpatialReference",void 0),(0,w._)([(0,A.MZ)()],_.prototype,"transformation",void 0),(0,w._)([(0,A.MZ)()],_.prototype,"transformForward",void 0),_=(0,w._)([(0,R.$)("esri.rest.support.ProjectParameters")],_);const G=_,P=(0,m.dp)(G);var b=r(25927),$=r(42538),M=r(40662),N=r(42095),j=r(23150),I=r(16930),O=r(54218);let k=null;async function T(e){const t=n.A.geometryServiceUrl??"";if(!t){(0,u.isLoaded)()||await(0,u.load)();for(const t of e)t.container[t.indexer]=(0,u.project)(t.container[t.indexer],I.A.WGS84);return}const r=e.map((e=>e.container[e.indexer])),o=new G({geometries:r,outSpatialReference:I.A.WGS84}),i=await async function(e,t){t=P(t);const r=(0,g.Dl)(e),n={...r.query,f:"json",...t.toJSON()},o=t.outSpatialReference,i=(0,y.$B)(t.geometries[0]),s=(0,g.jV)(n,void 0);return(0,h.A)(r.path+"/project",s).then((({data:{geometries:e}})=>(0,v.V)(e,i,o)))}(t,o);for(let t=0;t<i.length;t++){const r=e[t];r.container[r.indexer]=i[t]}}async function D(e,t){const n=new d.default({portal:e,id:t});return await n.load(),null===k&&(k=await r.e(1402).then(r.bind(r,71402))),await k.fetchKnowledgeGraph(n.url)}function Z(e,t,r,n,o){if(null===e)return null;if((0,O.Kg)(e)||(0,O.Et)(e))return e;if((0,a.g)(e))return e.toJSDate();if((0,a.g)(e))return e.toJSDate();if((0,a.j)(e))return e.toStorageFormat();if((0,a.k)(e))return e.toStorageString();if((0,a.q)(e)){const i={};for(const s of e.keys())i[s]=Z(e.field(s),t,r,n,o),i[s]instanceof c.A&&o.push({container:i,indexer:s});return i}if((0,O.cy)(e)){const i=e.map((e=>Z(e,t,r,n,o)));for(let e=0;e<i.length;e++)i[e]instanceof c.A&&o.push({container:i,indexer:e});return i}return(0,a.l)(e)?e.spatialReference.isWGS84?e:e.spatialReference.isWebMercator&&t?(0,p.ci)(e):e:void 0}function q(e,t){if(!e)return null;const r={};for(const n in e)r[n]=F(e[n],t);return r}function F(e,t){return null===e?null:(0,O.cy)(e)?e.map((e=>F(e,t))):e instanceof b.A?{graphTypeName:e.typeName,id:e.id,graphType:"entity",properties:q(e.properties,t)}:e instanceof M.A?{graphType:"object",properties:q(e.properties,t)}:e instanceof j.A?{graphTypeName:e.typeName,id:e.id,graphType:"relationship",originId:e.originId??null,destinationId:e.destinationId??null,properties:q(e.properties,t)}:e instanceof N.A?{graphType:"path",path:e.path?e.path.map((e=>F(e,t))):null}:(0,a.l)(e)?function(e,t){if(!e)return e;if(e.spatialReference.isWGS84&&t.spatialReference.isWebMercator)return(0,p.Gh)(e);if(e.spatialReference.equals(t.spatialReference))return e;throw new s.D$(t,s.TX.WrongSpatialReference,null)}(e,t):(0,O.Kg)(e)||(0,O.Et)(e)||(0,O.$P)(e)?e:null}function J(e){"async"===e.mode&&(e.functions.knowledgegraphbyportalitem=function(t,r){return e.standardFunctionAsync(t,r,((e,n,i)=>{if((0,a.B)(i,2,2,t,r),null===i[0])throw new s.D$(t,s.TX.PortalRequired,r);if(i[0]instanceof o.A){const e=(0,a.f)(i[1]);let r;return r=t.services?.portal?t.services.portal:f.A.getDefault(),D((0,l.R)(i[0],r),e)}if(!1===(0,O.Kg)(i[0]))throw new s.D$(t,s.TX.InvalidParameter,r);const c=(0,a.f)(i[0]);return D(t.services?.portal??f.A.getDefault(),c)}))},e.signatures.push({name:"knowledgegraphbyportalitem",min:2,max:2}),e.functions.querygraph=function(t,n){return e.standardFunctionAsync(t,n,(async(e,o,l)=>{(0,a.B)(l,2,4,t,n);const c=l[0];if(!(0,a.r)(c))throw new s.D$(t,s.TX.InvalidParameter,n);const u=l[1];if(!(0,O.Kg)(u))throw new s.D$(t,s.TX.InvalidParameter,n);null===k&&(k=await r.e(1402).then(r.bind(r,71402)));let p=null;const f=(0,a.G)(l[2],null);if(!(f instanceof i.A||null===f))throw new s.D$(t,s.TX.InvalidParameter,n);if(f){let e=[];p=Z(f,!0,!1,t,e),e=e.filter((e=>!e.container[e.indexer].spatialReference.isWGS84)),e.length>0&&await T(e)}const d=new $.A({openCypherQuery:u,bindParameters:p});(c?.serviceDefinition?.currentVersion??11.3)>11.2&&(d.outputSpatialReference=t.spatialReference);const h=(await k.executeQueryStreaming(c,d)).resultRowsStream.getReader(),m=[];try{for(;;){const{done:e,value:r}=await h.read();if(e)break;if((0,O.cy)(r))for(const e of r)m.push(F(e,t));else{const e=[];for(const n of r)e.push(F(r[n],t));m.push(e)}}}catch(e){throw e}return i.A.convertJsonToArcade(m,(0,a.H)(t),!1,!0)}))},e.signatures.push({name:"querygraph",min:2,max:4}))}},80672:(e,t,r)=>{r.d(t,{R:()=>o});var n=r(20655);function o(e,t){return null===e?t:new n.A({url:e.field("url")})}},97159:(e,t,r)=>{r.d(t,{M:()=>v,a:()=>y,b:()=>S,e:()=>h,f:()=>s,i:()=>f,p:()=>d,r:()=>l,t:()=>a,w:()=>c});var n=r(70333),o=r(84952),i=r(39131);function s(e,t){const r=t?.url?.path;if(e&&r&&(e=(0,o.s2)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,o.V1)(e,t.portalItem.itemUrl);null!=r&&p.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return(e=m(e,t?.portal))&&u.test(e)?y(e):e}function a(e,t,r=v.YES){if(null==(e=e&&u.test(e)?g(e):e))return e;!(0,o.oP)(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let n=(0,o.s2)(e);if(t){const r=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(r){const i=m(r,t.portal),s=m(n,t.portal);n=(0,o.V1)(s,i,i),null!=n&&n!==s&&n!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=h(n,t?.portal),(0,o.oP)(n)&&(n=(0,o.S8)(n)),t?.resources&&t?.portalItem&&!(0,o.oP)(n)&&!(0,o.DB)(n)&&r===v.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n),compress:!1}),n}function l(e,t,r){return s(e,r)}function c(e,t,r,n){const o=a(e,n);void 0!==o&&(t[r]=o)}const u=/\/items\/([^/]+)\/resources\/(.*)/,p=/^\.\/resources\//;function f(e){const t=e?.match(u)??null;return t?.[1]??null}function d(e){const t=e?.match(u)??null;if(null==t)return null;const r=t[2],n=r.lastIndexOf("/");if(-1===n){const{path:e,extension:t}=(0,o.xw)(r);return{prefix:null,filename:e,extension:t}}const{path:i,extension:s}=(0,o.xw)(r.slice(n+1));return{prefix:r.slice(0,n),filename:i,extension:s}}function h(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,o.T1)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function m(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,n=(0,o.Xq)();return(0,o.FX)(n,`${n.scheme}://${r}`)?(0,o.T1)(e,t.portalHostname,r):(0,o.T1)(e,r,t.portalHostname)}function y(e){if(!e)return e||null;let t=e;return t&&n.id&&!n.id.findCredential(t)&&(t=(0,i.qG)(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function g(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&n.id&&!n.id.findCredential(t)&&(t=(0,i.qG)(t)),t}var v,w;(w=v||(v={}))[w.YES=0]="YES",w[w.NO=1]="NO";const S=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return v},ensureMainOnlineDomain:h,fromCDNUrl:g,fromJSON:s,itemIdFromResourceUrl:f,prefixAndFilenameFromResourceUrl:d,read:l,toCDNUrl:y,toJSON:a,write:c},Symbol.toStringTag,{value:"Module"}))},92300:(e,t,r)=>{r.d(t,{V:()=>i,X:()=>o});var n=r(65864);function o(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function i(e,t,r){const o=(0,n.xD)(t);return e.map((e=>{const t=o.fromJSON(e);return t.spatialReference=r,t}))}},25927:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),o=(r(59456),r(10107)),i=(r(44208),r(53966),r(87811),r(40608)),s=r(54238),a=r(86738);let l=class extends s.A{constructor(e){super(e),this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:a.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Entity")],l);const c=l},54238:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),s=r(77901);let a=class extends s.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"typeName",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"id",void 0),a=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphNamedObject")],a);const l=a},77901:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(25482),i=r(10107),s=(r(44208),r(53966),r(87811),r(40608));let a=class extends o.A{constructor(e){super(e),this.properties=null}};(0,n._)([(0,i.MZ)({json:{write:!0}})],a.prototype,"properties",void 0),a=(0,n._)([(0,s.$)("esri.rest.knowledgeGraph.GraphObject")],a);const l=a},42538:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),s=r(69622);let a=class extends s.A{constructor(e){super(e),this.openCypherQuery=""}};(0,n._)([(0,o.MZ)()],a.prototype,"openCypherQuery",void 0),a=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQuery")],a);const l=a;let c=class extends l{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,n._)([(0,o.MZ)()],c.prototype,"bindParameters",void 0),(0,n._)([(0,o.MZ)()],c.prototype,"bindGeometryQuantizationParameters",void 0),(0,n._)([(0,o.MZ)()],c.prototype,"outputQuantizationParameters",void 0),(0,n._)([(0,o.MZ)()],c.prototype,"outputSpatialReference",void 0),(0,n._)([(0,o.MZ)()],c.prototype,"provenanceBehavior",void 0),c=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQueryStreaming")],c);const u=c},40662:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(90237),o=(r(53966),r(44208),r(87811),r(49186),r(40608)),i=r(77901);let s=class extends i.A{constructor(e){super(e)}};s=(0,n._)([(0,o.$)("esri.rest.knowledgeGraph.ObjectValue")],s);const a=s},42095:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),o=r(25482),i=r(10107),s=(r(44208),r(53966),r(87811),r(40608)),a=r(77901);let l=class extends o.A{constructor(e){super(e),this.path=null}};(0,n._)([(0,i.MZ)({type:[a.A],json:{write:!0}})],l.prototype,"path",void 0),l=(0,n._)([(0,s.$)("esri.rest.knowledgeGraph.Path")],l);const c=l},23150:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),o=(r(59456),r(10107)),i=(r(44208),r(53966),r(87811),r(40608)),s=r(54238),a=r(82799);let l=class extends s.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"originId",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"destinationId",void 0),(0,n._)([(0,o.MZ)({type:a.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Relationship")],l);const c=l},2272:(e,t,r)=>{r.d(t,{Dl:()=>s,jV:()=>i,lF:()=>a}),r(92602),r(70333);var n=r(4718),o=r(84952);function i(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function s(e){return"string"==typeof e?(0,o.An)(e):(0,n.o8)(e)}function a(e,t,r){const n={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i))n[o]=i.map((e=>a(e)));else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(r?.[o]);n[o]=t?e:JSON.stringify(e)}else n[o]=t?i:JSON.stringify(i);else n[o]=i}return n}r(926)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4055],{68197:(e,t,r)=>{r.d(t,{A:()=>p});var n,o,i=r(40876),s=r(34727),a=r(56507);function l(e){return(0,s.qE)((0,a.Vr)(e),0,255)}function u(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function c(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class p{static blendColors(e,t,r,n=new p){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),p.fromArray(r,t)}return p.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return p.fromArray((0,i.z$)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new p){if("#"!==e[0]||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),o=parseInt(e.slice(3,4),16),i=5===e.length?15:parseInt(e.slice(4),16);return p.fromArray([r+16*r,n+16*n,o+16*o,(i+16*i)/255],t)}case 7:case 9:{const r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16),i=7===e.length?255:parseInt(e.slice(7),16);return p.fromArray([r,n,o,i/255],t)}default:return null}}static fromArray(e,t=new p){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,i.V6)(e)?(0,i.TS)(e):null;return r&&p.fromArray(r,t)||p.fromRgb(e,t)||p.fromHex(e,t)}static fromJSON(e){return null!=e?new p([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?p.fromString(e,this):Array.isArray(e)?p.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof p||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,o=4===r||8===r,i=`#${c(this.r,n)}${c(this.g,n)}${c(this.b,n)}${o?c(Math.round(255*this.a),n):""}`;return t?i.toUpperCase():i}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=p.AlphaMode.ALWAYS){const t=l(this.r),r=l(this.g),n=l(this.b);return e===p.AlphaMode.ALWAYS||1!==this.a?[t,r,n,l(255*this.a)]:[t,r,n]}clone(){return new p(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}p.prototype.declaredClass="esri.Color",(o=(n=p).AlphaMode||(n.AlphaMode={}))[o.ALWAYS=0]="ALWAYS",o[o.UNLESS_OPAQUE=1]="UNLESS_OPAQUE"},87317:(e,t,r)=>{r.d(t,{a:()=>b,b:()=>c,c:()=>o,d:()=>d,e:()=>x,f:()=>h,g:()=>s,h:()=>y,j:()=>f,l:()=>g,n:()=>m,s:()=>i,t:()=>v});var n=r(34304);function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function i(e,t,r,n,o){return e[0]=t,e[1]=r,e[2]=n,e[3]=o,e}function s(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function a(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function l(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function u(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function c(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function p(e,t){const r=t[0]-e[0],n=t[1]-e[1],o=t[2]-e[2],i=t[3]-e[3];return Math.sqrt(r*r+n*n+o*o+i*i)}function d(e,t){const r=t[0]-e[0],n=t[1]-e[1],o=t[2]-e[2],i=t[3]-e[3];return r*r+n*n+o*o+i*i}function f(e){const t=e[0],r=e[1],n=e[2],o=e[3];return Math.sqrt(t*t+r*r+n*n+o*o)}function h(e){const t=e[0],r=e[1],n=e[2],o=e[3];return t*t+r*r+n*n+o*o}function m(e,t){const r=t[0],n=t[1],o=t[2],i=t[3];let s=r*r+n*n+o*o+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=r*s,e[1]=n*s,e[2]=o*s,e[3]=i*s),e}function y(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function g(e,t,r,n){const o=t[0],i=t[1],s=t[2],a=t[3];return e[0]=o+n*(r[0]-o),e[1]=i+n*(r[1]-i),e[2]=s+n*(r[2]-s),e[3]=a+n*(r[3]-a),e}function v(e,t,r){const n=t[0],o=t[1],i=t[2],s=t[3];return e[0]=r[0]*n+r[4]*o+r[8]*i+r[12]*s,e[1]=r[1]*n+r[5]*o+r[9]*i+r[13]*s,e[2]=r[2]*n+r[6]*o+r[10]*i+r[14]*s,e[3]=r[3]*n+r[7]*o+r[11]*i+r[15]*s,e}function b(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function x(e,t){const r=e[0],o=e[1],i=e[2],s=e[3],a=t[0],l=t[1],u=t[2],c=t[3],p=(0,n.FD)();return Math.abs(r-a)<=p*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=p*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(i-u)<=p*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(s-c)<=p*Math.max(1,Math.abs(s),Math.abs(c))}const w=a,A=l,M=u,S=p,_=d,O=f,N=h;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:o,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:S,distance:p,div:M,divide:u,dot:y,equals:x,exactEquals:b,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:O,length:f,lerp:g,max:function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e},min:function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e},mul:A,multiply:l,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:m,random:function(e,t=1){const r=n.Ov;let o,i,s,a,l,u;do{o=2*r()-1,i=2*r()-1,l=o*o+i*i}while(l>=1);do{s=2*r()-1,a=2*r()-1,u=s*s+a*a}while(u>=1);const c=Math.sqrt((1-l)/u);return e[0]=t*o,e[1]=t*i,e[2]=t*s*c,e[3]=t*a*c,e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e},scale:c,scaleAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},set:i,sqrDist:_,sqrLen:N,squaredDistance:d,squaredLength:h,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:w,subtract:a,transformMat4:v,transformQuat:function(e,t,r){const n=t[0],o=t[1],i=t[2],s=r[0],a=r[1],l=r[2],u=r[3],c=u*n+a*i-l*o,p=u*o+l*n-s*i,d=u*i+s*o-a*n,f=-s*n-a*o-l*i;return e[0]=c*u+f*-s+p*-l-d*-a,e[1]=p*u+f*-a+d*-s-c*-l,e[2]=d*u+f*-l+c*-a-p*-s,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},40876:(e,t,r)=>{r.d(t,{TS:()=>i,Tf:()=>c,V6:()=>o,c4:()=>s,qh:()=>u,z$:()=>l});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(e){return!!n[e]||!!n[e.toLowerCase()]}function i(e){return n[e]??n[e.toLowerCase()]}function s(e){return[...i(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){const o=(e%360+360)%360/360,i=r<=.5?r*(t+1):r+t-r*t,s=2*r-i;return[Math.round(255*a(s,i,o+1/3)),Math.round(255*a(s,i,o)),Math.round(255*a(s,i,o-1/3)),n]}function u(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,o=t?1:17,i=t?9===e.length:5===e.length;let s=Number("0x"+e.slice(1));if(isNaN(s))return null;const a=[0,0,0,1];let l;return i&&(l=s&n,s>>=r,a[3]=o*l/255),l=s&n,s>>=r,a[2]=o*l,l=s&n,s>>=r,a[1]=o*l,l=s&n,s>>=r,a[0]=o*l,a}const c=2.2},95488:(e,t,r)=>{r.d(t,{I:()=>o});var n=r(11406);class o extends n.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},51850:(e,t,r)=>{function n(){return[0,0,0]}function o(e){return[e[0],e[1],e[2]]}function i(e,t,r){return[e,t,r]}function s(e,t,r){return[e,t,r]}function a(e,t=[0,0,0]){const r=Math.min(3,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t}function l(){return i(1,1,1)}function u(){return i(1,0,0)}function c(){return i(0,1,0)}function p(){return i(0,0,1)}r.d(t,{CN:()=>s,Cb:()=>y,Cw:()=>h,JP:()=>m,Un:()=>f,ci:()=>a,fA:()=>i,o8:()=>o,uY:()=>d,vt:()=>n});const d=[0,0,0],f=l(),h=u(),m=c(),y=p();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_X:h,UNIT_Y:m,UNIT_Z:y,ZEROS:d,clone:o,create:n,createView:function(e,t){return new Float64Array(e,t,3)},freeze:s,fromArray:a,fromValues:i,ones:l,unitX:u,unitY:c,unitZ:p,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},91829:(e,t,r)=>{function n(){return[0,0,0,0]}function o(e,t,r,n){return[e,t,r,n]}function i(e,t,r,n){return[e,t,r,n]}function s(e,t=[0,0,0,0]){const r=Math.min(4,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t}function a(){return o(1,1,1,1)}function l(){return o(1,0,0,0)}function u(){return o(0,1,0,0)}function c(){return o(0,0,1,0)}function p(){return o(0,0,0,1)}r.d(t,{CN:()=>i,Un:()=>f,ci:()=>s,fA:()=>o,uY:()=>d,vt:()=>n});const d=[0,0,0,0],f=a(),h=l(),m=u(),y=c(),g=p();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:g,UNIT_X:h,UNIT_Y:m,UNIT_Z:y,ZEROS:d,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:n,createView:function(e,t){return new Float64Array(e,t,4)},freeze:i,fromArray:s,fromValues:o,ones:a,unitW:p,unitX:l,unitY:u,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304:(e,t,r)=>{r.d(t,{DF:()=>l,FD:()=>o,Ov:()=>i,ct:()=>u});let n=1e-6;function o(){return n}const i=Math.random,s=Math.PI/180,a=180/Math.PI;function l(e){return e*s}function u(e){return e*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(e,t){return Math.abs(e-t)<=n*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:o,setEpsilon:function(e){n=e},toDegree:u,toRadian:l},Symbol.toStringTag,{value:"Module"}))},59456:(e,t,r)=>{r.d(t,{yR:()=>c});var n=r(56507),o=r(5443),i=r(91075),s=r(48526),a=r(86738),l=r(39829),u=r(82799);r(16930),r(50498),r(65864);const c={base:i.A,key:"type",typeMap:{extent:o.A,multipoint:s.A,point:a.A,polyline:u.A,polygon:l.A}};(0,n.aq)(c)},65864:(e,t,r)=>{r.d(t,{$B:()=>m,Bi:()=>f,Rg:()=>d,U9:()=>c,ZC:()=>u,fT:()=>p,rS:()=>h,xD:()=>g});var n=r(5443),o=r(91075),i=r(48526),s=r(86738),a=r(39829),l=r(82799);function u(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function c(e){return void 0!==e.points}function p(e){return void 0!==e.x&&void 0!==e.y}function d(e){return void 0!==e.paths||void 0!==e.curvePaths}function f(e){return void 0!==e.rings||void 0!==e.curveRings}function h(e){return null==e?null:e instanceof o.A?e:p(e)?s.A.fromJSON(e):d(e)?l.A.fromJSON(e):f(e)?a.A.fromJSON(e):c(e)?i.A.fromJSON(e):u(e)?n.A.fromJSON(e):null}function m(e){return e?p(e)?"esriGeometryPoint":d(e)?"esriGeometryPolyline":f(e)?"esriGeometryPolygon":u(e)?"esriGeometryEnvelope":c(e)?"esriGeometryMultipoint":null:null}const y={esriGeometryPoint:s.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:i.A,esriGeometryMultiPatch:a.A};function g(e){return e&&y[e]||null}},50498:(e,t,r)=>{r.d(t,{Y:()=>i,g:()=>o});var n=r(66552);const o=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},39357:(e,t,r)=>{r.d(t,{H:()=>l});var n,o=r(90237),i=r(25482),s=r(10107),a=(r(44208),r(53966),r(87811),r(40608));let l=n=class extends i.A{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,o._)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,o._)([(0,s.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],l.prototype,"code",void 0),l=n=(0,o._)([(0,a.$)("esri.layers.support.CodedValue")],l)},53177:(e,t,r)=>{r.d(t,{A:()=>d});var n,o=r(90237),i=r(4718),s=r(10107),a=(r(44208),r(53966),r(93223)),l=r(40608),u=r(39357),c=r(76357);let p=n=class extends c.A{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new n({codedValues:(0,i.o8)(this.codedValues),name:this.name})}};(0,o._)([(0,s.MZ)({type:[u.H],json:{write:{isRequired:!0}}})],p.prototype,"codedValues",void 0),(0,o._)([(0,a.e)({codedValue:"coded-value"})],p.prototype,"type",void 0),p=n=(0,o._)([(0,l.$)("esri.layers.support.CodedValueDomain")],p);const d=p},76357:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(90237),o=r(66552),i=r(25482),s=r(10107),a=(r(44208),r(53966),r(87811),r(93223)),l=r(40608);const u=new o.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends i.A{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,a.e)(u),(0,s.MZ)({json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,n._)([(0,l.$)("esri.layers.support.Domain")],c);const p=c},20437:(e,t,r)=>{r.d(t,{A:()=>y});var n,o=r(90237),i=r(66552),s=r(25482),a=r(10107),l=r(56507),u=(r(87811),r(44208),r(93223)),c=r(36005),p=r(40608),d=r(80451),f=r(98453);const h=new i.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=n=class extends s.A{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?h.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,o._)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,o._)([(0,a.MZ)()],m.prototype,"description",void 0),(0,o._)([(0,c.w)("description")],m.prototype,"readDescription",null),(0,o._)([(0,a.MZ)({types:d.gK,json:{read:{reader:d.rS},write:!0}})],m.prototype,"domain",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,o._)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,o._)([(0,u.e)(f.m)],m.prototype,"type",void 0),(0,o._)([(0,a.MZ)()],m.prototype,"valueType",void 0),(0,o._)([(0,c.w)("valueType",["description"])],m.prototype,"readValueType",null),(0,o._)([(0,a.MZ)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=n=(0,o._)([(0,p.$)("esri.layers.support.Field")],m);const y=m},30139:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_}),r(59456);var n,o=r(31644),i=r(14140),s=r(51244),a=r(28435),l=r(6049),u=r(70834),c=r(6952),p=r(14636),d=r(73037),f=r(90237),h=(r(53966),r(44208),r(87811),r(49186),r(93223)),m=r(40608),y=r(82434);let g=n=class extends y.A{constructor(){super(...arguments),this.type="identity"}clone(){return new n}};(0,f._)([(0,h.e)({IdentityXform:"identity"})],g.prototype,"type",void 0),g=n=(0,f._)([(0,m.$)("esri.layers.support.rasterTransforms.IdentityTransform")],g);const v=g;var b=r(21312);const x={GCSShiftXform:d.A,IdentityXform:v,PolynomialXform:b.A};var w=r(85676),A=r(4095),M=r(5443),S=r(86738);class _{convertVectorFieldData(e){const t=i.A.fromJSON(e.pixelBlock),r=(0,p.FI)(t,e.type);return Promise.resolve(null!=r?r.toJSON():null)}computeStatisticsHistograms(e){const t=i.A.fromJSON(e.pixelBlock),r=(0,c.eH)(t);return Promise.resolve(r)}async decode(e){const t=await(0,s.D)(e.data,e.options);return t&&t.toJSON()}symbolize(e){e.pixelBlock=i.A.fromJSON(e.pixelBlock),e.extent=e.extent?M.A.fromJSON(e.extent):null;const t=this.symbolizer.symbolize(e);return Promise.resolve(null!=t?t.toJSON():null)}async updateSymbolizer(e){this.symbolizer=w.A.fromJSON(e.symbolizerJSON),e.histograms&&"rasterStretch"===this.symbolizer?.rendererJSON.type&&(this.symbolizer.rendererJSON.histograms=e.histograms)}async updateRasterFunction(e){this.rasterFunction=(0,l.vt)(e.rasterFunctionJSON)}async process(e){const t=this.rasterFunction.process({extent:M.A.fromJSON(e.extent),primaryPixelBlocks:e.primaryPixelBlocks.map((e=>null!=e?i.A.fromJSON(e):null)),primaryPixelSizes:e.primaryPixelSizes?.map((e=>null!=e?S.A.fromJSON(e):null)),primaryRasterIds:e.primaryRasterIds});return null!=t?t.toJSON():null}stretch(e){const t=this.symbolizer.simpleStretch(i.A.fromJSON(e.srcPixelBlock),e.stretchParams);return Promise.resolve(t?.toJSON())}estimateStatisticsHistograms(e){const t=(0,c.f4)(i.A.fromJSON(e.srcPixelBlock));return Promise.resolve(t)}split(e){const t=(0,a.lD)(i.A.fromJSON(e.srcPixelBlock),e.tileSize,e.maximumPyramidLevel??0,!1===e.useBilinear);return t&&t.forEach(((e,r)=>{t.set(r,e?.toJSON())})),Promise.resolve(t)}clipTile(e){const t=i.A.fromJSON(e.pixelBlock),r=(0,a.J$)({...e,pixelBlock:t});return Promise.resolve(r?.toJSON())}async mosaicAndTransform(e){const t=e.srcPixelBlocks.map((e=>e?new i.A(e):null)),r=(0,a.z7)(t,e.srcMosaicSize,{blockWidths:e.blockWidths,alignmentInfo:e.alignmentInfo,clipOffset:e.clipOffset,clipSize:e.clipSize});let n,o=r;return e.coefs&&(o=(0,a.$i)(r,e.destDimension,e.coefs,e.sampleSpacing,e.interpolation)),e.projectDirections&&e.gcsGrid&&(n=(0,a.QF)(e.destDimension,e.gcsGrid),o=(0,p.Y2)(o,e.isUV?"vector-uv":"vector-magdir",n)),{pixelBlock:o?.toJSON(),localNorthDirections:n}}async createFlowMesh(e,t){const r={data:new Float32Array(e.flowData.buffer),mask:new Uint8Array(e.flowData.maskBuffer),width:e.flowData.width,height:e.flowData.height},{vertexData:n,indexData:o}=await(0,A.CW)(e.meshType,e.simulationSettings,r,t.signal);return{result:{vertexBuffer:n.buffer,indexBuffer:o.buffer},transferList:[n.buffer,o.buffer]}}async getProjectionOffsetGrid(e){const t=M.A.fromJSON(e.projectedExtent),r=M.A.fromJSON(e.srcBufferExtent);let n=null;e.datumTransformationSteps&&(n=new o.A({steps:e.datumTransformationSteps})),(e.includeGCSGrid||(0,u.xh)(t.spatialReference,r.spatialReference,n))&&await(0,u.Hh)();const i=e.rasterTransform?function(e){const t=e?.type;if(!t)return null;const r=x[e?.type];if(r){const t=new r;return t.read(e),t}return null}(e.rasterTransform):null;return(0,u.l0)({...e,projectedExtent:t,srcBufferExtent:r,datumTransformation:n,rasterTransform:i})}}},80451:(e,t,r)=>{r.d(t,{rS:()=>y,gK:()=>m}),r(44208);var n,o=r(53177),i=r(76357),s=r(90237),a=(r(53966),r(87811),r(49186),r(93223)),l=r(40608);let u=n=class extends i.A{constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,s._)([(0,a.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=n=(0,s._)([(0,l.$)("esri.layers.support.InheritedDomain")],u);const c=u;var p,d=r(10107);let f=p=class extends i.A{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new p({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,s._)([(0,d.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],f.prototype,"maxValue",void 0),(0,s._)([(0,d.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],f.prototype,"minValue",void 0),(0,s._)([(0,a.e)({range:"range"})],f.prototype,"type",void 0),f=p=(0,s._)([(0,l.$)("esri.layers.support.RangeDomain")],f);const h=f,m={key:"type",base:i.A,typeMap:{range:h,"coded-value":o.A,inherited:c}};function y(e){if(!e?.type)return null;switch(e.type){case"range":return h.fromJSON(e);case"codedValue":return o.A.fromJSON(e);case"inherited":return c.fromJSON(e)}return null}},98453:(e,t,r)=>{r.d(t,{m:()=>n});const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},82434:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(25482),i=r(10107),s=(r(44208),r(53966),r(87811),r(40608));let a=class extends o.A{get affectsPixelSize(){return!1}forwardTransform(e){return e}inverseTransform(e){return e}};(0,n._)([(0,i.MZ)()],a.prototype,"affectsPixelSize",null),(0,n._)([(0,i.MZ)({json:{write:!0}})],a.prototype,"spatialReference",void 0),a=(0,n._)([(0,s.$)("esri.layers.support.rasterTransforms.BaseRasterTransform")],a);const l=a},73037:(e,t,r)=>{r.d(t,{A:()=>c});var n,o=r(90237),i=r(10107),s=(r(44208),r(53966),r(87811),r(93223)),a=r(40608),l=r(82434);let u=n=class extends l.A{constructor(){super(...arguments),this.type="gcs-shift",this.tolerance=1e-8}forwardTransform(e){return"point"===(e=e.clone()).type?(e.x>180+this.tolerance&&(e.x-=360),e):(e.xmin>=180-this.tolerance?(e.xmax-=360,e.xmin-=360):e.xmax>180+this.tolerance&&(e.xmin=-180,e.xmax=180),e)}inverseTransform(e){return"point"===(e=e.clone()).type?(e.x<-this.tolerance&&(e.x+=360),e):(e.xmin<-this.tolerance&&(e.xmin+=360,e.xmax+=360),e)}clone(){return new n({tolerance:this.tolerance})}};(0,o._)([(0,s.e)({GCSShiftXform:"gcs-shift"})],u.prototype,"type",void 0),(0,o._)([(0,i.MZ)()],u.prototype,"tolerance",void 0),u=n=(0,o._)([(0,a.$)("esri.layers.support.rasterTransforms.GCSShiftTransform")],u);const c=u},21312:(e,t,r)=>{r.d(t,{A:()=>y});var n,o=r(90237),i=(r(59456),r(10107)),s=(r(44208),r(53966),r(87811),r(93223)),a=r(36005),l=r(40608),u=r(43937),c=r(82434),p=r(86738),d=r(5443);function f(e,t,r){const{x:n,y:o}=t;if(r<2)return{x:e[0]+n*e[2]+o*e[4],y:e[1]+n*e[3]+o*e[5]};if(2===r){const t=n*n,r=o*o,i=n*o;return{x:e[0]+n*e[2]+o*e[4]+t*e[6]+i*e[8]+r*e[10],y:e[1]+n*e[3]+o*e[5]+t*e[7]+i*e[9]+r*e[11]}}const i=n*n,s=o*o,a=n*o,l=i*n,u=i*o,c=n*s,p=o*s;return{x:e[0]+n*e[2]+o*e[4]+i*e[6]+a*e[8]+s*e[10]+l*e[12]+u*e[14]+c*e[16]+p*e[18],y:e[1]+n*e[3]+o*e[5]+i*e[7]+a*e[9]+s*e[11]+l*e[13]+u*e[15]+c*e[17]+p*e[19]}}function h(e,t,r){const{xmin:n,ymin:o,xmax:i,ymax:s,spatialReference:a}=t;let l=[];if(r<2)l.push({x:n,y:s}),l.push({x:i,y:s}),l.push({x:n,y:o}),l.push({x:i,y:o});else{let e=10;for(let t=0;t<e;t++)l.push({x:n,y:o+(s-o)*t/(e-1)}),l.push({x:i,y:o+(s-o)*t/(e-1)});e=8;for(let t=1;t<=e;t++)l.push({x:n+(i-n)*t/e,y:o}),l.push({x:n+(i-n)*t/e,y:s})}l=l.map((t=>f(e,t,r)));const u=l.map((e=>e.x)),c=l.map((e=>e.y));return new d.A({xmin:Math.min.apply(null,u),xmax:Math.max.apply(null,u),ymin:Math.min.apply(null,c),ymax:Math.max.apply(null,c),spatialReference:a})}let m=n=class extends c.A{constructor(){super(...arguments),this.polynomialOrder=1,this.type="polynomial"}readForwardCoefficients(e,t){const{coeffX:r,coeffY:n}=t;if(!r?.length||!n?.length||r.length!==n.length)return null;const o=[];for(let e=0;e<r.length;e++)o.push(r[e]),o.push(n[e]);return o}writeForwardCoefficients(e,t,r){const n=[],o=[];for(let t=0;t<e?.length;t++)t%2==0?n.push(e[t]):o.push(e[t]);t.coeffX=n,t.coeffY=o}get inverseCoefficients(){let e=this._get("inverseCoefficients");const t=this._get("forwardCoefficients");return!e&&t&&this.polynomialOrder<2&&(e=function(e){const[t,r,n,o,i,s]=e,a=n*s-i*o,l=i*o-n*s;return[(i*r-t*s)/a,(n*r-t*o)/l,s/a,o/l,-i/a,-n/l]}(t)),e}set inverseCoefficients(e){this._set("inverseCoefficients",e)}readInverseCoefficients(e,t){const{inverseCoeffX:r,inverseCoeffY:n}=t;if(!r?.length||!n?.length||r.length!==n.length)return null;const o=[];for(let e=0;e<r.length;e++)o.push(r[e]),o.push(n[e]);return o}writeInverseCoefficients(e,t,r){const n=[],o=[];for(let t=0;t<e?.length;t++)t%2==0?n.push(e[t]):o.push(e[t]);t.inverseCoeffX=n,t.inverseCoeffY=o}get affectsPixelSize(){return this.polynomialOrder>0}forwardTransform(e){if("point"===e.type){const t=f(this.forwardCoefficients,e,this.polynomialOrder);return new p.A({x:t.x,y:t.y,spatialReference:e.spatialReference})}return h(this.forwardCoefficients,e,this.polynomialOrder)}inverseTransform(e){if("point"===e.type){const t=f(this.inverseCoefficients,e,this.polynomialOrder);return new p.A({x:t.x,y:t.y,spatialReference:e.spatialReference})}return h(this.inverseCoefficients,e,this.polynomialOrder)}clone(){return new n({polynomialOrder:this.polynomialOrder,forwardCoefficients:this.forwardCoefficients?[...this.forwardCoefficients]:null,inverseCoefficients:this.inverseCoefficients?[...this.inverseCoefficients]:null})}};(0,o._)([(0,i.MZ)({json:{write:!0}})],m.prototype,"polynomialOrder",void 0),(0,o._)([(0,i.MZ)()],m.prototype,"forwardCoefficients",void 0),(0,o._)([(0,a.w)("forwardCoefficients",["coeffX","coeffY"])],m.prototype,"readForwardCoefficients",null),(0,o._)([(0,u.K)("forwardCoefficients")],m.prototype,"writeForwardCoefficients",null),(0,o._)([(0,i.MZ)({json:{write:!0}})],m.prototype,"inverseCoefficients",null),(0,o._)([(0,a.w)("inverseCoefficients",["inverseCoeffX","inverseCoeffY"])],m.prototype,"readInverseCoefficients",null),(0,o._)([(0,u.K)("inverseCoefficients")],m.prototype,"writeInverseCoefficients",null),(0,o._)([(0,i.MZ)()],m.prototype,"affectsPixelSize",null),(0,o._)([(0,s.e)({PolynomialXform:"polynomial"})],m.prototype,"type",void 0),m=n=(0,o._)([(0,l.$)("esri.layers.support.rasterTransforms.PolynomialTransform")],m);const y=m},2485:(e,t,r)=>{r.d(t,{A:()=>f});var n,o=r(90237),i=r(68197),s=r(4718),a=r(10107),l=r(56507),u=r(93223),c=r(40608),p=r(72606);let d=n=class extends p.A{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new n({fromColor:(0,s.o8)(this.fromColor),toColor:(0,s.o8)(this.toColor),algorithm:this.algorithm})}};(0,o._)([(0,u.e)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],d.prototype,"algorithm",void 0),(0,o._)([(0,a.MZ)({type:i.A,json:{type:[l.jz],write:!0}})],d.prototype,"fromColor",void 0),(0,o._)([(0,a.MZ)({type:i.A,json:{type:[l.jz],write:!0}})],d.prototype,"toColor",void 0),(0,o._)([(0,a.MZ)({type:["algorithmic"]})],d.prototype,"type",void 0),d=n=(0,o._)([(0,c.$)("esri.rest.support.AlgorithmicColorRamp")],d);const f=d},72606:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(25482),i=r(10107),s=(r(44208),r(53966),r(87811),r(40608));let a=class extends o.A{constructor(e){super(e),this.type=null}};(0,n._)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,n._)([(0,s.$)("esri.rest.support.ColorRamp")],a);const l=a},1626:(e,t,r)=>{r.d(t,{A:()=>p});var n,o=r(90237),i=r(4718),s=r(10107),a=(r(44208),r(53966),r(40608)),l=r(2485),u=r(72606);let c=n=class extends u.A{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new n({colorRamps:(0,i.o8)(this.colorRamps)})}};(0,o._)([(0,s.MZ)({type:[l.A],json:{write:!0}})],c.prototype,"colorRamps",void 0),(0,o._)([(0,s.MZ)({type:["multipart"]})],c.prototype,"type",void 0),c=n=(0,o._)([(0,a.$)("esri.rest.support.MultipartColorRamp")],c);const p=c},95349:(e,t,r)=>{r.d(t,{g:()=>s,r:()=>a});var n=r(2485),o=r(72606),i=r(1626);const s={key:"type",base:o.A,typeMap:{algorithmic:n.A,multipart:i.A}};function a(e){return e?.type?"algorithmic"===e.type?n.A.fromJSON(e):"multipart"===e.type?i.A.fromJSON(e):null:null}}}]);
|