@arcgis/core 5.0.0-next.71 → 5.0.0-next.73

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.
Files changed (151) hide show
  1. package/Ground.js +1 -1
  2. package/applications/Components/analysisUtils.d.ts +1 -2
  3. package/applications/Components/analysisUtils.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/00631252e8bd4a456253.js +1 -0
  6. package/assets/esri/core/workers/chunks/{322085d63719da6e443c.js → 0c02b084ae30ba138c5d.js} +1 -1
  7. package/assets/esri/core/workers/chunks/0f2f1731543ed21db0a8.js +1 -0
  8. package/assets/esri/core/workers/chunks/1b201d83e9ba7d8615c0.js +1 -0
  9. package/assets/esri/core/workers/chunks/{b4f944ef6c174b20b619.js → 23545a9adc75564ecf6e.js} +1 -1
  10. package/assets/esri/core/workers/chunks/261b5a5db022ef580a1b.js +1 -0
  11. package/assets/esri/core/workers/chunks/2bd59ece927b5c1c9f80.js +1 -0
  12. package/assets/esri/core/workers/chunks/{37e46461da3000949a26.js → 2d8b8880e6bff4414e95.js} +1 -1
  13. package/assets/esri/core/workers/chunks/2fba74bae99ece15706c.js +1 -0
  14. package/assets/esri/core/workers/chunks/2fc64404bc42b7250086.js +1 -0
  15. package/assets/esri/core/workers/chunks/33cbfc34d5e2fc1a1a4f.js +1 -0
  16. package/assets/esri/core/workers/chunks/35887be3e4a218268d99.js +1 -0
  17. package/assets/esri/core/workers/chunks/3596ae4cb2bd2f3f35d9.js +1 -0
  18. package/assets/esri/core/workers/chunks/37814bf052ab59a5fb9e.js +1 -0
  19. package/assets/esri/core/workers/chunks/4e0d299054da075e5103.js +1 -0
  20. package/assets/esri/core/workers/chunks/50186162cd6d7c2ef0f9.js +1 -0
  21. package/assets/esri/core/workers/chunks/543ea1a0e7a6f1d267d1.js +1 -0
  22. package/assets/esri/core/workers/chunks/{dbfb00fb28b8b9f687a1.js → 5bbf20135c87a1cc8a18.js} +1 -1
  23. package/assets/esri/core/workers/chunks/5ed31ec0f53c1d55c4ea.js +1 -0
  24. package/assets/esri/core/workers/chunks/6309e8beedf5e7f2a50f.js +1 -0
  25. package/assets/esri/core/workers/chunks/{1a45b4b4803337f4b99f.js → 64985e9b6e2edb3ceb37.js} +38 -38
  26. package/assets/esri/core/workers/chunks/65475370cc4ebe2aa657.js +1 -0
  27. package/assets/esri/core/workers/chunks/65d9f3bc88472008443a.js +1 -0
  28. package/assets/esri/core/workers/chunks/6ab0f16f5c8806855c47.js +1 -0
  29. package/assets/esri/core/workers/chunks/7e37a3005f2ad2c0a918.js +1 -0
  30. package/assets/esri/core/workers/chunks/7f2496a59379e1a61ee5.js +1 -0
  31. package/assets/esri/core/workers/chunks/88379cd8e8e1c7ae3c7c.js +1 -0
  32. package/assets/esri/core/workers/chunks/{25abbe1663e18e677dc2.js → 935a6dccb88557f98189.js} +2 -2
  33. package/assets/esri/core/workers/chunks/{a808be466812db51813d.js → 9382af94bf6bf1b09c8c.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{8e83c133b201b9b61e70.js → 979bc762ccc0d3fc2467.js} +1 -1
  35. package/assets/esri/core/workers/chunks/9c417f4dfb19e4c4bd71.js +1 -0
  36. package/assets/esri/core/workers/chunks/a554ad74be03b1ed1a72.js +1 -0
  37. package/assets/esri/core/workers/chunks/{e6e837e43b9348050832.js → a67c86f4254807eb6a05.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{1ec1a1997b5577619040.js → b211b53aa7616a093b90.js} +1 -1
  39. package/assets/esri/core/workers/chunks/c31babdb59382b6bc007.js +1 -0
  40. package/assets/esri/core/workers/chunks/c8182c2cbb0ead202af6.js +1 -0
  41. package/assets/esri/core/workers/chunks/ce218c10b209b58e04fd.js +1 -0
  42. package/assets/esri/core/workers/chunks/ceef586d8cc8adc4d249.js +1 -0
  43. package/assets/esri/core/workers/chunks/d13e8ce9270dc0662b87.js +1 -0
  44. package/assets/esri/core/workers/chunks/db28d00171240b4fffac.js +1 -0
  45. package/assets/esri/core/workers/chunks/dbd382546837aa7709e2.js +1 -0
  46. package/assets/esri/core/workers/chunks/ea6f897f21b4f30e8e99.js +1 -0
  47. package/assets/esri/core/workers/chunks/{e8a3ad00936f2ccaf362.js → f0a667d8d33bc51c795d.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{29b09db309ff75fb3e97.js → f65d26588d2d80680a26.js} +1 -1
  49. package/assets/esri/core/workers/chunks/f72e6c903f55ce95a6c5.js +1 -0
  50. package/assets/esri/core/workers/chunks/f893e10d660e819cca45.js +1 -0
  51. package/assets/esri/core/workers/chunks/{878010ca23da0bca9405.js → fb1ed5ef2f95ab093346.js} +1 -1
  52. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  53. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  54. package/chunks/lyr3DMain.js +1 -1
  55. package/config.js +1 -1
  56. package/core/workers/registry.js +1 -1
  57. package/geometry/spatialReferenceEllipsoidUtils.js +1 -1
  58. package/kernel.js +1 -1
  59. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  60. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  61. package/layers/RouteLayer.d.ts +3 -3
  62. package/layers/support/ElevationQuery.js +1 -1
  63. package/layers/support/GeometryDescriptor.js +1 -1
  64. package/layers/support/layerUtils.d.ts +4 -0
  65. package/layers/support/types.d.ts +3 -2
  66. package/package.json +1 -1
  67. package/rest/featureService/FeatureService.d.ts +1 -1
  68. package/rest/featureService/types.d.ts +4 -4
  69. package/rest/geoprocessor/GPOptions.d.ts +5 -5
  70. package/rest/geoprocessor/execute.d.ts +6 -0
  71. package/rest/layerSources/DynamicDataLayer.d.ts +2 -2
  72. package/rest/layerSources/QueryTableDataSource.d.ts +1 -1
  73. package/rest/print.d.ts +1 -1
  74. package/rest/support/ClosestFacilityParameters.d.ts +3 -3
  75. package/rest/support/ClosestFacilitySolveResult.d.ts +2 -2
  76. package/rest/support/Query.d.ts +2 -2
  77. package/rest/support/RouteParameters.d.ts +2 -5
  78. package/rest/support/RouteResult.d.ts +1 -1
  79. package/rest/support/ServiceAreaParameters.d.ts +1 -1
  80. package/rest/support/ServiceAreaSolveResult.d.ts +2 -2
  81. package/rest/support/types.d.ts +1 -1
  82. package/rest/symbolService.d.ts +2 -2
  83. package/support/revision.js +1 -1
  84. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  85. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementController.js +1 -1
  86. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
  87. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  88. package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
  89. package/views/3d/analysis/support/measurementUtils.js +1 -1
  90. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
  91. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  92. package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
  93. package/views/3d/interactive/visualElements/support/Segment.js +1 -1
  94. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  95. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  96. package/views/3d/webgl-engine/effects/RenderPlugin.js +1 -1
  97. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  98. package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
  99. package/views/3d/webgl-engine/lib/Material.js +1 -1
  100. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  101. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  102. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  103. package/views/3d/webgl-engine/materials/VisualVariablePassParameters.js +1 -1
  104. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  105. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  106. package/views/analysis/ElevationProfile/ElevationProfileLineGroundComputation.js +1 -1
  107. package/views/analysis/ElevationProfile/elevationProfileGenerationUtils.js +1 -1
  108. package/views/support/MeasurementWorker.js +5 -0
  109. package/views/support/MeasurementWorkerHandle.js +5 -0
  110. package/views/support/automaticAreaMeasurementUtils.js +1 -1
  111. package/views/support/geodesicAreaMeasurementUtils.js +1 -1
  112. package/views/support/geodesicLengthMeasurementUtils.js +1 -1
  113. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
  114. package/widgets/Directions/DirectionsViewModel.d.ts +2 -2
  115. package/widgets/Search/SearchResultRenderer.d.ts +0 -2
  116. package/widgets/Search/SearchSource.d.ts +2 -2
  117. package/widgets/Search/SearchViewModel.d.ts +6 -7
  118. package/widgets/Search/types.d.ts +4 -4
  119. package/assets/esri/core/workers/chunks/0367a8580fede8f804f9.js +0 -1
  120. package/assets/esri/core/workers/chunks/14f4f5b7549cea7b5a6a.js +0 -1
  121. package/assets/esri/core/workers/chunks/1b475593c80d7bccdda5.js +0 -1
  122. package/assets/esri/core/workers/chunks/27ec8688f72130239b98.js +0 -1
  123. package/assets/esri/core/workers/chunks/2dd347aa2a061d536e69.js +0 -1
  124. package/assets/esri/core/workers/chunks/2f6fa33692478e99d24b.js +0 -1
  125. package/assets/esri/core/workers/chunks/3e7ea06b342e33bc48a5.js +0 -1
  126. package/assets/esri/core/workers/chunks/4387aaf9d5e8f6d1833d.js +0 -1
  127. package/assets/esri/core/workers/chunks/668a868fe2dcb6384ac9.js +0 -1
  128. package/assets/esri/core/workers/chunks/6acfa51b81e6f4255118.js +0 -1
  129. package/assets/esri/core/workers/chunks/6f8098f9fe233833245a.js +0 -1
  130. package/assets/esri/core/workers/chunks/76dbaef0d0794913f36f.js +0 -1
  131. package/assets/esri/core/workers/chunks/7c5218eae13d3bd30598.js +0 -1
  132. package/assets/esri/core/workers/chunks/7fc09382f934e9223a9b.js +0 -1
  133. package/assets/esri/core/workers/chunks/822ef6a043c7e147b4b6.js +0 -1
  134. package/assets/esri/core/workers/chunks/980313a6c35e79812d17.js +0 -1
  135. package/assets/esri/core/workers/chunks/9c157c0eeadb824ad01e.js +0 -1
  136. package/assets/esri/core/workers/chunks/a39ac9127a215d14d412.js +0 -1
  137. package/assets/esri/core/workers/chunks/a893f8db2477cf677ac8.js +0 -1
  138. package/assets/esri/core/workers/chunks/a95e28ade258b144cbb5.js +0 -1
  139. package/assets/esri/core/workers/chunks/abcee7cfd53cfe1d91e9.js +0 -1
  140. package/assets/esri/core/workers/chunks/b9f0d313f59fc7c43560.js +0 -1
  141. package/assets/esri/core/workers/chunks/bbe2eaef7edfa33b6eea.js +0 -1
  142. package/assets/esri/core/workers/chunks/bfdf646d4c8f175a4236.js +0 -1
  143. package/assets/esri/core/workers/chunks/d749aa62ad694147aebe.js +0 -1
  144. package/assets/esri/core/workers/chunks/d7d9656b990ce8be2152.js +0 -1
  145. package/assets/esri/core/workers/chunks/d8a7004c399d539aed09.js +0 -1
  146. package/assets/esri/core/workers/chunks/df92239eefff04471a0b.js +0 -1
  147. package/assets/esri/core/workers/chunks/ee2ca25048a920e43743.js +0 -1
  148. package/assets/esri/core/workers/chunks/eeb24a4ab4993f1f4e8e.js +0 -1
  149. package/assets/esri/core/workers/chunks/fe5d2735f057c7789f4b.js +0 -1
  150. package/views/support/GeodesicMeasurementWorker.js +0 -5
  151. package/views/support/GeodesicMeasurementWorkerHandle.js +0 -5
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4526,8812],{5808:(e,t,n)=>{n.d(t,{O:()=>r});const r={geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}},5874:(e,t,n)=>{n.d(t,{isSimple:()=>o}),n(76061);const r=new(n(98783).O);var s=n(78125);function o(e,t){return function(e,t,n,s){return r.isSimple(e,t,n,s,null)}((0,s.fromGeometry)(e),(0,s.fromSpatialReference)((0,s.getSpatialReference)(e)),null!=t,t??null)}r.supportsCurves()},7817:(e,t,n)=>{n.d(t,{e:()=>o,l:()=>u,s:()=>i});var r=n(86211),s=n(78125);function o(e,t={}){const{unit:n}=t;let o=(0,s.fromGeometry)(e).calculateLength2D();if(o&&n){const t=(0,s.getSpatialReference)(e);o=(0,r.PQ)(o,t,n)}return o}const i=!0,u=Object.freeze(Object.defineProperty({__proto__:null,execute:o,supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},10767:(e,t,n)=>{n.d(t,{a:()=>i,e:()=>u,i:()=>c,s:()=>a});var r=n(70031),s=n(78125);const o=new r.O;function i(e){const t=(0,s.getSpatialReference)(e);return o.accelerateGeometry((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),1)}function u(e,t){return o.execute((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(e.spatialReference),null)}const a=o.supportsCurves(),c=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:i,execute:u,supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},15227:(e,t,n)=>{n.d(t,{fz:()=>f,g7:()=>m,yv:()=>l});var r=n(76061),s=n(55537),o=n(15756),i=n(79187),u=n(1352);class a extends r.G{constructor(e,t,n,r,s,o,a){super(),this.m_currentUnionEnvelope2D=new i.Envelope2D,this.m_index=-1,this.m_dindex=-1,this.m_progressTracker=a,this.m_bufferer=new u.B(a),this.m_inputGeoms=e,this.m_spatialReference=t,this.m_distances=n,this.m_maxDeviation=r,this.m_maxVerticesInFullCircle=s}tock(){return!0}getRank(){return 1}next(){{let e;for(;e=this.m_inputGeoms.next();)return(0,s.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.buffer(e,this.m_distances[this.m_dindex]);return null}}getGeometryID(){return this.m_index}buffer(e,t){return this.m_bufferer.buffer(e,t,this.m_spatialReference,0,0,4,this.m_maxDeviation,this.m_maxVerticesInFullCircle)}}const c=new class{getOperatorType(){return 10004}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r,s){return this.executeManyEx(e,t,n,Number.NaN,96,r,s)}execute(e,t,n,o){Number.isFinite(n)||(0,s.a)("Invalid distance for buffer operation");const i=new r.S([e]),u=[n],a=this.executeMany(i,t,u,!1,o).next();return a||(0,s.d)("null buffer output"),a}executeManyEx(e,t,n,r,i,u,c){if(void 0!==n.find(e=>!Number.isFinite(e))&&(0,s.a)("Invalid distance for buffer operation"),u){const s=new a(e,t,n,r,i,!1,c);return(new o.p).executeMany(s,t,c,2)}return new a(e,t,n,r,i,!1,c)}};function m(e,t,n){return c.execute(e,t,n,null)}function l(e,t,n,s,o,i){const u=c.executeManyEx(new r.S(e),t,n,s,o,i,null);return Array.from(u)}function f(){return c.supportsCurves()}},16346:(e,t,n)=>{n.d(t,{d:()=>m,e:()=>a});var r=n(55537),s=n(26640),o=n(86211),i=n(78125);const u=new class{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){return this.executeEx(e,t,n,null,null,Number.NaN)}executeEx(e,t,n,o,i,u){if(e.isEmpty()||t.isEmpty())return Number.NaN;(0,r.c)(e),(0,r.c)(t);const a=e,c=t;Number.isNaN(u)&&(u=Number.POSITIVE_INFINITY);const m=new s.D(u,n).calculate(a,c,o,i);return Number.isFinite(m)?m:Number.NaN}};function a(e,t,n={}){const{unit:r}=n;let s=u.execute((0,i.fromGeometry)(e),(0,i.fromGeometry)(t),null);if(s&&r){const t=(0,i.getSpatialReference)(e);s=(0,o.PQ)(s,t,r)}return s}const c=u.supportsCurves(),m=Object.freeze(Object.defineProperty({__proto__:null,execute:a,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},22802:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(15756);class s extends r.n{getOperatorType(){return 7}execute(e,t,n,s){return(0,r.r)(e,t,n,2,s)}}},24988:(e,t,n)=>{n.d(t,{Hh:()=>u,fz:()=>m,g7:()=>a,s1:()=>i,zo:()=>c});var r=n(76061),s=n(83290);let o;function i(){return!!o&&(0,s.i)()}async function u(){if(!i()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(5756),n.e(7444)]).then(n.bind(n,37444)),Promise.all([n.e(3661),n.e(1878),n.e(5756)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,s.l)()]);o=new e.OperatorGeodesicBuffer,t(s.p)}}function a(e,t,n,r,s){return o.execute(e,t,n,r,s,!1,null)}function c(e,t,n,s,i,u){const a=o.executeMany(new r.S(e),t,n,s,i,!1,u,null);return Array.from(a)}function m(){return o.supportsCurves()}},26640:(e,t,n)=>{n.d(t,{D:()=>x,m:()=>m,s:()=>_,w:()=>d});var r=n(31635),s=n(55537),o=n(88885),i=n(15756),u=n(83661),a=n(79187),c=n(95213);function m(){return{outPoint:new u.P,index:-1,t:Number.NaN}}function l(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function f(e,t,n,r){e.outPoint.assign(t),e.index=n,e.t=r}function h(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function p(e,t,n,r){e.index=n,e.t=r,t.queryCoord2D(e.t,e.outPoint)}function y(e,t){const n=m();h(n,e),h(e,t),h(t,n)}function d(e,t,n,r,o,u){if(e.getGeometryType()===s.G.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){const t=r.nextSegment();if(0!==(0,i.l)(e,t.getEndXY(),0))return f(o,t.getEndXY(),-1,Number.NaN),f(u,t.getEndXY(),-1,Number.NaN),!0}r.resetToFirstPath()}if(t.getGeometryType()===s.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const e=n.nextSegment();if(0!==(0,i.l)(t,e.getEndXY(),0))return f(o,e.getEndXY(),-1,Number.NaN),f(u,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function _(e){const t=e.getPathCount(),n=(0,u.d)(e.getSegmentCount(),0);let r=0;for(let s=0;s<t;++s){const t=r+e.getSegmentCountPath(s);for(let o=r,i=e.getPathStart(s);o<t;++o,++i)n[o]=i;r=t}return(0,o.s)(e.getPointCount(),n),n}function g(e,t){return!!Number.isNaN(t)||e<=t}function P(e){const t=new o.a;return t.addEnvelope(e,!1),t}class x{constructor(e,t){if(this.m_env2DgeometryA=null,this.m_env2DgeometryB=null,this.m_progressCounter=0,this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,r){if((e.getGeometryType()!==c.P.type||t.getGeometryType()!==c.P.type)&&(this.m_env2DgeometryA=new a.Envelope2D,this.m_env2DgeometryB=new a.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!g(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const s=l(new u.P,(0,u.j)(),Number.NaN),o=l(new u.P,(0,u.j)(),Number.NaN),i=this._ExecuteBruteForce(e,t,s,o);return g(i,this.m_maxDistance)?(null!==n&&h(n,s),null!==r&&h(r,o),i):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==c.P.type&&e.getGeometryType()!==c.E.type||t.getGeometryType()!==c.P.type&&t.getGeometryType()!==c.E.type||(n=!1),n){if(this.m_env2DgeometryA=new a.Envelope2D,this.m_env2DgeometryB=new a.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const r=l(new u.P,(0,u.j)(),Number.NaN),s=l(new u.P,(0,u.j)(),Number.NaN);return this._ExecuteBruteForce(e,t,r,s)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,n,r){switch(e.getGeometryType()){case s.G.enumPoint:return this.distancePointGeometry(e,t,n,r);case s.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathGeometry(e,t,n,r);default:return Number.NaN}}distancePointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointPoint(e,t,n,r);case s.G.enumMultiPoint:return this.distancePointMultipoint(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distancePointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distancePointEnvelope(e,t,n,r);default:return Number.NaN}}distancePointPoint(e,t,n,r){const s=e.getXY(),o=t.getXY();return f(n,s,0,0),f(r,o,0,0),Math.sqrt(u.P.sqrDistance(s,o))}distancePointMultipoint(e,t,n,r){const s=e.getXY();let o=this.m_maxSqrDistance,i=o,a=!1;const c=t.getPointCount(),m=new u.P;for(let e=0;e<c;++e)if(t.queryXY(e,m),i=u.P.sqrDistance(s,m),this.m_bIsNearCalc){if(i<=o)return 0}else if(!(i>o)&&(!a&&i===o||i<o)&&(o=i,f(n,s,0,0),f(r,m,e,0),a=!0,0===o))return 0;return a?Math.sqrt(o):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,r){const o=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),c=e.getXY();if(!o&&t.getGeometryType()===s.G.enumPolygon&&0!==(0,i.l)(t,c,0))return f(n,c,0,0),f(r,c,-1,Number.NaN),0;t.getImpl().getAccelerators();let m=this.m_maxSqrDistance,l=m,h=-1;const p=new a.Envelope2D,y=t.querySegmentIterator();let d=!1;for(;y.nextPath();)for(;y.hasNextSegment();){const e=y.nextSegment();e.queryEnvelope(p);const t=p.sqrDistance(c);if(t>m)continue;if(!this.m_bIsNearCalc&&d&&t===m)continue;h=e.getClosestCoordinate(c,!1);const s=e.getCoord2D(h);if(l=u.P.sqrDistance(c,s),this.m_bIsNearCalc){if(l<=m)return 0}else if(!(l>m)&&(!d||l<m)&&(m=l,f(n,c,0,0),f(r,s,y.getStartPointIndex(),h),d=!0,0===m))return 0}return d?Math.sqrt(m):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,r){const s=e.getXY();f(n,s,0,0),f(r,s,-1,Number.NaN);const o=t.asEnvelope2D();return o.contains(s)?0:Math.sqrt(o.sqrDistance(s,r.outPoint))}distanceMultipointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipoint(t,e,r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,n,r,1,1);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipointMultipath(e,P(t),n,r);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,s,o,i){const a={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===o&&1===i){const r=Math.trunc((0,u.s)(Math.sqrt(e.getPointCount())+1,1,(0,u.i)())),o=Math.trunc((0,u.s)(Math.sqrt(t.getPointCount())+1,1,(0,u.i)()));if((r>=4||o>=4)&&this.distanceMultipointMultipoint(e,t,n,s,r,o)<=this.m_maxSqrDistance)return 0}let c=this.m_maxSqrDistance;const m=[e],l=[t],h=this.swapGeometriesIfBGtA(m,l);h&&(this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),i=(0,u.c)(o,o=i),y(n,s)),(0,r.mS)(a,(0,u.h)(()=>{y(n,s),this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!h),!1);const p=m[0].getImpl(),d=l[0].getImpl(),_=p.getPointCount(),g=d.getPointCount(),P=g>1;let x=!1;const v=new u.P,G=new u.P;for(let e=0;e<_;e+=o){if(p.queryXY(e,v),P){const e=this.m_env2DgeometryB.sqrDistance(v);if(this.m_bIsNearCalc){if(e>c)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(v)<=c)return 0}else if(e>=c)continue}for(let t=0;t<g;t+=i){d.queryXY(t,G);const r=u.P.sqrDistance(v,G);if(this.m_bIsNearCalc){if(r<=c)return 0}else if(!(r>c||x&&r===c)&&(!x||r<c)&&(f(n,v,e,0),f(s,G,t,0),x=!0,c=r,0===c))return x?Math.sqrt(c):Number.POSITIVE_INFINITY}}return x?Math.sqrt(c):Number.POSITIVE_INFINITY}catch(e){a.error=e,a.hasError=!0}finally{(0,r.hk)(a)}}distanceMultipointMultipath(e,t,n,r){let o=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===s.G.enumPolygon;const c=t.querySegmentIterator();c.stripAttributes();const m=new a.Envelope2D,l=new u.P;let h=this.m_maxSqrDistance;const p=e.getImpl(),y=p.getPointCount(),d=y>1;let _=!1;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment();if(e.queryLooseEnvelope(m),d){const e=m.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>h)continue}else if(e>h||_&&e===h)continue}for(let s=0;s<y;s++){if(p.queryXY(s,l),o&&0!==(0,i.l)(t,l,0))return f(n,l,-1,Number.NaN),f(r,l,s,0),0;{const e=m.sqrDistance(l);if(this.m_bIsNearCalc){if(e>h)continue}else if(e>h)continue}const u=e.getClosestCoordinate(l,!1),a=e.getCoord2D(u);l.subThis(a);const y=l.sqrLength();if(this.m_bIsNearCalc){if(y<=h)return 0}else if(!(y>h)&&(!_||y<h)&&(h=y,f(n,p.getXY(s),s,0),f(r,a,c.getStartPointIndex(),u),_=!0,0===h))return 0}o=!1}return _?Math.sqrt(h):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointEnvelope(t,e,r,n);case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,P(e),r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(P(e),t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,n,r);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,r){n.t=Number.NaN,n.index=-1,r.t=Number.NaN,r.index=-1;const s=e.asEnvelope2D(),o=t.asEnvelope2D();return Math.sqrt(s.sqrDistanceEnvelope(o,n.outPoint,r.outPoint))}distanceMultipathGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipathMultipath(e,P(t),n,r);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,s){const i={stack:[],error:void 0,hasError:!1};try{const c=[e],l=[t],f=this.swapGeometriesIfAGtB(c,l);f&&(this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),y(n,s)),(0,r.mS)(i,(0,u.h)(()=>{y(n,s),this.m_env2DgeometryB=(0,u.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!f),!1);const g=c[0],P=l[0],x=g.querySegmentIterator();x.stripAttributes();const v=P.querySegmentIterator();if(v.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc((0,u.s)(Math.sqrt(g.getPointCount())+1,1,(0,u.i)())),t=Math.trunc((0,u.s)(Math.sqrt(g.getPointCount())+1,1,(0,u.i)()));if(this.distanceMultipointMultipoint(g,P,n,s,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=m(),t=m();if(d(g,P,x,v,e,t))return h(n,e),h(s,t),0}const G=_(g),b=[],S=new o.S,C=new a.Envelope2D,M=new a.Envelope2D,D=new a.Envelope2D;let E=this.m_maxSqrDistance,w=!0,N=!1;for(let e=0,t=G.length;e<t;++e){g.querySegment(G[e],S,!0);const t=S.get();if(t.queryEnvelope(C),!(C.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>E)){if(this.m_bIsNearCalc&&C.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=E)return 0;for(;v.nextPath();){if(this.progress_(),w)P.queryPathEnvelope(v.getPathIndex(),D),b[v.getPathIndex()]=D.clone();else if(C.sqrDistanceEnvelope(b[v.getPathIndex()],null,null)>E)continue;for(;v.hasNextSegment();){const r=v.nextSegment();if(r.queryEnvelope(M),C.sqrDistanceEnvelope(M,null,null)<=E){const o=!C.isIntersecting(M),i=[0],u=[0];let a=t.distance(r,o,i,u);if(a*=a,this.m_bIsNearCalc&&a<=this.m_maxSqrDistance)return 0;if(a<E||a===E&&G[e]<n.index){if(N=!0,p(n,t,G[e],i[0]),p(s,r,v.getStartPointIndex(),u[0]),0===a)return 0;E=a}}}}v.resetToFirstPath(),w=!1}}return N?Math.sqrt(E):Number.POSITIVE_INFINITY}catch(e){i.error=e,i.hasError=!0}finally{(0,r.hk)(i)}}swapGeometriesIfAGtB(e,t){return(0,s.v)(e[0])>(0,s.v)(t[0])&&(t[0]=(0,u.c)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},27749:(e,t,n)=>{n.d(t,{e:()=>h,g:()=>p,l:()=>f});var r=n(86211),s=n(77085),o=n(5808);let i,u,a,c,m;function l(){return!!i&&(0,s.s1)()}async function f(){if(!l()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(5756),n.e(3299),n.e(4161)]).then(n.bind(n,78125)),(0,s.Hh)()]);i=e.fromGeometry,u=e.fromSpatialReference,a=e.getSpatialReference,c=e.toGeometry,m=(0,s.fz)()}}function h(e,t,n={}){const{curveType:m="geodesic",unit:l}=n;l&&(t=(0,r.oU)(t,l,"meters"));const f=a(e);return c((0,s.g7)(i(e),t,u(f),o.O[m]),f)}const p=Object.freeze(Object.defineProperty({__proto__:null,execute:h,executeMany:function(e,t,n={}){const{curveType:m="geodesic",unit:l}=n;l&&(t=(0,r.oU)(t,l,"meters"));const f=e.map(i),h=a(e);return(0,s.zo)(f,t,u(h),o.O[m]).map(e=>c(e,h))},isLoaded:l,load:f,get supportsCurves(){return m}},Symbol.toStringTag,{value:"Module"}))},28298:(e,t,n)=>{n.d(t,{fz:()=>a,g7:()=>i,zo:()=>u});var r=n(76061),s=(n(55537),n(83661),n(88885),n(79187),n(15756));n(95213);const o=new s.p;function i(e,t,n){return o.execute(e,t,n,null)}function u(e,t){return o.executeMany(new r.S(e),t,null).next()}function a(){return o.supportsCurves()}},29821:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(15756);class s extends r.n{getOperatorType(){return 6}execute(e,t,n,s){return(0,r.r)(e,t,n,16,s)}}},33708:(e,t,n)=>{n.d(t,{Sg:()=>i,fz:()=>c,g7:()=>u,zo:()=>a});var r=n(76061),s=(n(55537),n(15756));n(88885),n(95213);const o=new s.k;function i(e,t){return o.accelerateGeometry(e,t,1)}function u(e,t,n){return o.execute(e,t,n,null)}function a(e,t,n,s){const i=o.executeMany(new r.S(e),new r.S([t]),n,null,s);return Array.from(i)}function c(){return o.supportsCurves()}},35223:(e,t,n)=>{n.d(t,{Hh:()=>i,fz:()=>a,g7:()=>u,s1:()=>o});var r=n(83290);let s;function o(){return!!s&&(0,r.i)()}async function i(){if(!o()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(5756),n.e(4167)]).then(n.bind(n,28879)),Promise.all([n.e(3661),n.e(1878),n.e(5756),n.e(6061)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);s=new e.OperatorGeodeticLength,t(r.p)}}function u(e,t,n){return s.execute(e,t,n,null)}function a(){return s.supportsCurves()}},44526:(e,t,n)=>{n.r(t),n.d(t,{area:()=>G.a,buffer:()=>M,centroid:()=>D.c,clip:()=>E.c,contains:()=>w.c,convexHull:()=>R,crosses:()=>A,cut:()=>q.c,densify:()=>z.d,difference:()=>j.d,disjoint:()=>U,distance:()=>X.d,equals:()=>k.e,executeNearestVertex:()=>ye.executeNearestVertex,executeOffset:()=>de.r,generalize:()=>V.g,geodesicBuffer:()=>d,geodeticArea:()=>_.g,geodeticDensify:()=>g.g,geodeticLength:()=>P.g,intersection:()=>W,intersects:()=>H.i,isSelfIntersecting:()=>Pe,labelPoint:()=>Z.l,length:()=>Q.l,loadAll:()=>xe,overlaps:()=>K,proximity:()=>ee.p,relate:()=>te.r,rotate:()=>_e,simplify:()=>se,symmetricDifference:()=>oe.s,touches:()=>ae,union:()=>le,within:()=>pe});var r=n(24383),s=n(50647),o=n(4576),i=n(86211),u=n(24988),a=n(5808);let c,m,l,f,h;function p(){return!!c&&(0,u.s1)()}async function y(){if(!p()){const[e]=await Promise.all([Promise.resolve().then(n.bind(n,78125)),(0,u.Hh)()]);c=e.fromGeometry,m=e.fromSpatialReference,l=e.getSpatialReference,f=e.toPolygon,h=(0,u.fz)()}}const d=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t,n={}){let{curveType:r="geodesic",maxDeviation:s=NaN,unit:o}=n;o&&(t=(0,i.oU)(t,o,"meters"),s&&(s=(0,i.oU)(s,o,"meters")));const h=l(e);return f((0,u.g7)(c(e),m(h),a.O[r],t,s),h)},executeMany:function(e,t,n={}){let{curveType:r="geodesic",maxDeviation:s=NaN,union:h=!1,unit:p}=n;p&&(t=t.map(e=>(0,i.oU)(e,p,"meters")),s&&(s=(0,i.oU)(s,p,"meters")));const y=e.map(c),d=l(e);return(0,u.zo)(y,m(d),a.O[r],t,s,h).map(e=>f(e,d)).filter(o.Ru)},isLoaded:p,load:y,get supportsCurves(){return h}},Symbol.toStringTag,{value:"Module"}));var _=n(49590),g=n(27749),P=n(62044),x=n(5874),v=n(78812),G=n(65708),b=n(15227),S=n(78125);const C=(0,b.fz)(),M=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t,n={}){const{unit:r}=n,s=(0,S.getSpatialReference)(e);return r&&(t=(0,i.UW)(t,r,s)),(0,S.toPolygon)((0,b.g7)((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(s),t),s)},executeMany:function(e,t,n={}){let{maxDeviation:r=NaN,maxVerticesInFullCircle:s=96,union:u=!1,unit:a}=n;const c=(0,S.getSpatialReference)(e);a&&(t=t.map(e=>(0,i.UW)(e,a,c)),r&&(r=(0,i.UW)(r,a,c)));const m=e.map(S.fromGeometry);return(0,b.yv)(m,(0,S.fromSpatialReference)(c),t,r,s,u).map(e=>(0,S.toPolygon)(e,c)).filter(o.Ru)},supportsCurves:C},Symbol.toStringTag,{value:"Module"}));var D=n(48265),E=n(83587),w=n(84252),N=n(91577);const I=(0,N.fz)(),R=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e){const t=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,N.g7)((0,S.fromGeometry)(e)),t)},executeMany:function(e,t={}){const{merge:n=!1}=t,r=e.map(S.fromGeometry),s=(0,S.getSpatialReference)(e);return(0,N.zo)(r,n).map(e=>(0,S.toGeometry)(e,s))},isConvex:function(e){return(0,N.qT)((0,S.fromGeometry)(e))},supportsCurves:I},Symbol.toStringTag,{value:"Module"})),T=new(n(29821).O),O=T.supportsCurves(),A=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return T.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return T.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference),null)},supportsCurves:O},Symbol.toStringTag,{value:"Module"}));var q=n(68925),z=n(85503),j=n(70722);const B=new(n(15756).j),Y=B.supportsCurves(),U=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return B.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return B.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference))},supportsCurves:Y},Symbol.toStringTag,{value:"Module"}));var X=n(16346),k=n(90836),V=n(92523),F=n(33708);const L=(0,F.fz)(),W=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return(0,F.Sg)((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t))},execute:function(e,t){const n=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,F.g7)((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(n)),n)},executeMany:function(e,t){const n=e.map(S.fromGeometry),r=(0,S.getSpatialReference)(e);return(0,F.zo)(n,(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(r),7).map(e=>(0,S.toGeometry)(e,r)).filter(o.Ru)},supportsCurves:L},Symbol.toStringTag,{value:"Module"}));var H=n(10767),Z=n(5913),Q=n(7817);const $=new(n(85181).O),J=$.supportsCurves(),K=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return $.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return $.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference),null)},supportsCurves:J},Symbol.toStringTag,{value:"Module"}));var ee=n(59260),te=n(65416),ne=n(81150);const re=(0,ne.fz)(),se=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e){const t=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,ne.g7)((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),!1),t)},executeMany:function(e){const t=e.map(S.fromGeometry),n=(0,S.getSpatialReference)(e);return(0,ne.zo)(t,(0,S.fromSpatialReference)(n),!1).map(e=>(0,S.toGeometry)(e,n))},isSimple:function(e){return(0,ne.Pg)((0,S.fromGeometry)(e),(0,S.fromSpatialReference)((0,S.getSpatialReference)(e)),!1)},supportsCurves:re},Symbol.toStringTag,{value:"Module"}));var oe=n(96957);const ie=new(n(46810).O),ue=ie.supportsCurves(),ae=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return ie.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return ie.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference),null)},supportsCurves:ue},Symbol.toStringTag,{value:"Module"}));var ce=n(28298);const me=(0,ce.fz)(),le=Object.freeze(Object.defineProperty({__proto__:null,execute:function(e,t){const n=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,ce.g7)((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(n)),n)},executeMany:function(e){const t=e.map(S.fromGeometry),n=(0,S.getSpatialReference)(e);return(0,S.toGeometry)((0,ce.zo)(t,(0,S.fromSpatialReference)(n)),n)},supportsCurves:me},Symbol.toStringTag,{value:"Module"})),fe=new(n(22802).O),he=fe.supportsCurves(),pe=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,S.getSpatialReference)(e);return fe.accelerateGeometry((0,S.fromGeometry)(e),(0,S.fromSpatialReference)(t),1)},execute:function(e,t){return fe.execute((0,S.fromGeometry)(e),(0,S.fromGeometry)(t),(0,S.fromSpatialReference)(e.spatialReference),null)},supportsCurves:he},Symbol.toStringTag,{value:"Module"}));var ye=n(64064),de=n(85549);function _e(e,t,n,r){const o=(new v.default).rotate(t,n,r);return(0,s.execute)(e,o)}const ge=new Set([5,6,7,10,11,12]);function Pe(e){const t=new r.NonSimpleResult;return!(0,x.isSimple)(e,t)&&ge.has(t.m_reason)}async function xe(){await Promise.all([(0,_.l)(),y(),(0,g.l)(),(0,P.l)()])}},46810:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(15756);class s extends r.n{getOperatorType(){return 5}execute(e,t,n,s){return(0,r.r)(e,t,n,8,s)}}},48265:(e,t,n)=>{n.d(t,{c:()=>a,e:()=>i});var r=n(15546),s=n(78125);const o=new class{getOperatorType(){return 10205}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t){return(0,r.c)(e)}};function i(e){const t=o.execute((0,s.fromGeometry)(e),null);return(0,s.toPoint)(t,(0,s.getSpatialReference)(e))}const u=o.supportsCurves(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},49074:(e,t,n)=>{n.d(t,{fz:()=>a,g7:()=>i,zo:()=>u});var r=n(76061),s=(n(55537),n(15756));n(83661),n(88885),n(79187),n(95213);const o=new s.o;function i(e,t,n){return o.execute(e,t,n,null)}function u(e,t,n){const s=o.executeMany(new r.S(e),new r.S([t]),n,null);return Array.from(s)}function a(){return o.supportsCurves()}},49590:(e,t,n)=>{n.d(t,{e:()=>f,g:()=>h,l:()=>l});var r=n(86211),s=n(86742),o=n(5808);let i,u,a,c;function m(){return!!i&&(0,s.s1)()}async function l(){if(!m()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(5756),n.e(3299),n.e(9274)]).then(n.bind(n,78125)),(0,s.Hh)()]);i=e.fromGeometry,u=e.fromSpatialReference,a=e.getSpatialReference,c=(0,s.fz)()}}function f(e,t={}){const{curveType:n="geodesic",unit:c}=t,m=a(e);let l=(0,s.g7)(i(e),u(m),o.O[n]);return l&&c&&(l=(0,r.oU)(l,"square-meters",c)),l}const h=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:m,load:l,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}))},50647:(e,t,n)=>{n.d(t,{execute:()=>a}),n(4576);var r=n(76061),s=n(55537);class o extends r.G{constructor(e,t,n){super(),this.m_index=-1,this.m_transformation=t.clone(),this.m_inputGeometryCursor=e}next(){let e;if(e=this.m_inputGeometryCursor.next()){(0,s.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID();const t=e.clone();return t.applyTransformation(this.m_transformation),t}return null}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}}const i=new class{getOperatorType(){return 10303}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n){return new o(e,t,n)}execute(e,t,n){const r=e.clone();return r.applyTransformation(t),r}};var u=n(78125);function a(e,t){const n=(0,u.getSpatialReference)(e);return(0,u.toGeometry)(function(e,t){return i.execute(e,t,null)}((0,u.fromGeometry)(e),t.transform),n)}i.supportsCurves()},59260:(e,t,n)=>{n.d(t,{g:()=>a,p:()=>m});var r=n(36633),s=n(86211),o=n(78125),i=n(79533);const u=new r.O;function a(e,t,n={}){const{calculateLeftRightSide:r=!1,testPolygonInterior:a=!0,unit:c}=n,m=u.getNearestCoordinate((0,o.fromGeometry)(e),(0,o.fromPoint)(t).getXY(),a,r);if(c&&m.m_distance){const t=(0,o.getSpatialReference)(e);m.m_distance=(0,s.PQ)(m.m_distance,t,c)}return(0,i.C)(m,e,r)}const c=u.supportsCurves(),m=Object.freeze(Object.defineProperty({__proto__:null,getNearestCoordinate:a,getNearestVertex:function(e,t,n={}){const{unit:r}=n,a=u.getNearestVertex((0,o.fromGeometry)(e),(0,o.fromPoint)(t).getXY());if(r&&a.m_distance){const t=(0,o.getSpatialReference)(e);a.m_distance=(0,s.PQ)(a.m_distance,t,r)}return(0,i.C)(a,e)},getNearestVertices:function(e,t,n,r,a={}){const{unit:c}=a,m=(0,o.getSpatialReference)(e);return c&&n&&(n=(0,s.UW)(n,c,m)),u.getNearestVertices((0,o.fromGeometry)(e),(0,o.fromPoint)(t).getXY(),n,r).map(t=>(c&&t.m_distance&&(t.m_distance=(0,s.PQ)(t.m_distance,m,c)),(0,i.C)(t,e)))},supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},62044:(e,t,n)=>{n.d(t,{e:()=>f,g:()=>h,l:()=>l});var r=n(86211),s=n(35223),o=n(5808);let i,u,a,c;function m(){return!!i&&(0,s.s1)()}async function l(){if(!m()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(5756),n.e(3299),n.e(7373)]).then(n.bind(n,78125)),(0,s.Hh)()]);i=e.fromGeometry,u=e.fromSpatialReference,a=e.getSpatialReference,c=(0,s.fz)()}}function f(e,t={}){const{curveType:n="geodesic",unit:c}=t,m=a(e);let l=(0,s.g7)(i(e),u(m),o.O[n]);return l&&c&&(l=(0,r.oU)(l,"meters",c)),l}const h=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:m,load:l,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}))},64064:(e,t,n)=>{n.d(t,{executeNearestVertex:()=>a});var r=n(95213),s=n(36633),o=n(78125);function i(e,t,n){if(e.getPointCount()<=0)return"left";const r=e.querySegmentIteratorAtVertex(n),s=r.hasPreviousSegment()?r.previousSegment():r.nextSegment();return function(e,t,n){const r=(t.x-e.x)*(n.y-e.y)-(n.x-e.x)*(t.y-e.y);return r>0?"left":r<0?"right":"straddle"}(s.getStartXY(),s.getEndXY(),t)}const u=new s.O;function a(e,t){const n=(0,o.fromGeometry)(e),s=(0,o.fromPoint)(t).getXY(),a=u.getNearestVertex(n,s);if(a.isEmpty())return null;switch(e.type){case"point":return{coordinate:e,distance:a.m_distance,sideOfLine:0===a.m_distance?"straddle":"left"};case"multipoint":{const t=new r.P;return n.getPointByVal(a.m_vertexIndex,t),{coordinate:(0,o.toPoint)(t,(0,o.getSpatialReference)(e)),distance:a.m_distance,sideOfLine:0===a.m_distance?"straddle":"left"}}case"polyline":case"polygon":{const t=new r.P;return n.getPointByVal(a.m_vertexIndex,t),{coordinate:(0,o.toPoint)(t,(0,o.getSpatialReference)(e)),distance:a.m_distance,sideOfLine:i(n,s,a.m_vertexIndex)}}default:throw new Error(`Unsupported geometry type: ${e.type}`)}}},65416:(e,t,n)=>{n.d(t,{e:()=>i,r:()=>a});var r=n(15756),s=n(78125);const o=new class{supportsCurves(){return!0}getOperatorType(){return 1}execute(e,t,n,s,o){return(0,r.an)(e,t,n,s,o)}isValidDE9IM(e){return 0===(0,r.ao)(e)}accelerateGeometry(e,t,n){return(0,r.ap)(e,t,n)}canAccelerateGeometry(e){return(0,r.aq)(e)}};function i(e,t,n){return o.execute((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(e.spatialReference),n,null)}const u=o.supportsCurves(),a=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,s.getSpatialReference)(e);return o.accelerateGeometry((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),1)},execute:i,isValidDE9IM:function(e){return o.isValidDE9IM(e)},supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},65708:(e,t,n)=>{n.d(t,{a:()=>i,e:()=>o});var r=n(86211),s=n(78125);function o(e,t={}){const{unit:n}=t;let o=(0,s.fromGeometry)(e).calculateArea2D();if(o&&n){const t=(0,s.getSpatialReference)(e);if(t.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const i=(0,r.B5)(t);i!==n&&(i?o=(0,r.oU)(o,i,n):(o=Math.sqrt(o),o*=(0,r.GA)(t),o**=2,o=(0,r.oU)(o,"square-meters",n)))}return o}const i=Object.freeze(Object.defineProperty({__proto__:null,execute:o,supportsCurves:!0},Symbol.toStringTag,{value:"Module"}))},66070:(e,t,n)=>{n.d(t,{g7:()=>d,zo:()=>_});var r=n(76061),s=n(95213),o=n(55537),i=n(88885),u=n(83661);const a=1.4142135623730951,c=.017453292519943295,m=256,l=1024;class f{static construct(e,t,n){const r=new f;return r.x=e.x,r.y=e.y,r.m_next=-1,r.m_prev=-1,r.z=t,r.m=n,r.type=0,r}clone(){const e=new f;return e.x=this.x,e.y=this.y,e.m_next=this.m_next,e.m_prev=this.m_prev,e.z=this.z,e.m=this.m,e.type=this.type,e}asPoint2D(){return new u.P(this.x,this.y)}}class h{constructor(e){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=e}constructOffset(){const e=this.m_inputGeometry.getGeometryType();if(e===o.G.enumLine)return this.offsetLine();if(e===o.G.enumEnvelope)return this.offsetEnvelope();if((0,o.f)(e)){const e=new i.P;return e.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=e,this.constructOffset()}if(e===o.G.enumPolyline){const e=new i.P;return this.offsetMultiPath(e),e}if(e===o.G.enumPolygon){const e=new i.a;return this.offsetMultiPath(e),e}(0,o.t)("")}offsetLine(){const e=this.m_inputGeometry,t=e.getStartXY(),n=e.getEndXY(),r=new u.P;r.setSub(n,t),r.normalize(),r.leftPerpendicularThis(),r.scale(this.m_distance),t.addThis(r),n.addThis(r);const s=e.clone();return s.setStartXY(t),s.setEndXY(n),s}offsetEnvelope(){const e=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const t=new i.a;return t.addEnvelope(e,!1),this.m_inputGeometry=t,this.constructOffset()}const t=e.clone();return t.inflateCoords(this.m_distance,this.m_distance),t}progress(){}static buildPoint(e,t,n,r){r.x=e.x+t*Math.cos(n),r.y=e.y+t*Math.sin(n),r.type=e.type,r.z=e.z,r.m=e.m,r.m_next=-1,r.m_prev=-1}addPoint(e){this.m_offsetPts.push(e.clone()),this.m_offsetPtCount++}addPointEx(e,t){if(0===this.m_offsetPtCount)return void this.addPoint(e);const n=this.m_srcPtCount,r=this.m_srcPts[0===t?n-1:t-1],s=this.m_srcPts[t],o=h.dotSign(r,s,this.m_offsetPts[this.m_offsetPtCount-1],e);if(o>0)this.addPoint(e);else if(o<0)if(h.dotSign(r,s,s,this.m_offsetPts[this.m_offsetPtCount-1])>0){const s=new f;let o;o=0===t?n-2:1===t?n-1:t-2;const i=this.m_srcPts[o],a=Math.atan2(r.y-i.y,r.x-i.x);if(h.buildPoint(r,this.m_distance,a-u.o,s),this.m_offsetPts[this.m_offsetPtCount-1]=s.clone(),1===this.m_joins||2===this.m_joins){s.x=.5*(s.x+r.x),s.y=.5*(s.y+r.y),this.addPoint(s),h.buildPoint(r,this.m_distance,this.m_a1+u.o,s);const e=s.clone();e.x=.5*(e.x+r.x),e.y=.5*(e.y+r.y),e.type|=m,this.addPoint(e),this.addPoint(s)}else h.buildPoint(r,this.m_distance,this.m_a1+u.o,s),s.type|=m,this.addPoint(s);this.addPointEx(e,t)}else{const e=new f;if(h.buildPoint(s,this.m_distance,this.m_a1+u.o,e),this.addPoint(e),1===this.m_joins||2===this.m_joins){e.x=.5*(e.x+s.x),e.y=.5*(e.y+s.y),this.addPoint(e),h.buildPoint(s,this.m_distance,this.m_a2-u.o,e);const t=e.clone();t.x=.5*(t.x+s.x),t.y=.5*(t.y+s.y),t.type|=m,this.addPoint(t),this.addPoint(e)}else h.buildPoint(s,this.m_distance,this.m_a2-u.o,e),e.type|=m,this.addPoint(e)}}buildOffset(){const e=new f,t=this.m_srcPtCount;this.m_offsetPtCount=0;const n=.5*this.m_tolerance;let r=0,s=0;for(let o=0;o<t;o++){const i=this.m_srcPts[o],f=0===o?this.m_srcPts[t-1]:this.m_srcPts[o-1],p=o===t-1?this.m_srcPts[0]:this.m_srcPts[o+1];let y,d,_=0;{const e=f.x-i.x,t=f.y-i.y,n=p.x-i.x,a=p.y-i.y;y=Math.atan2(t,e),d=Math.atan2(a,n),this.m_a1=y,this.m_a2=d,0===o&&(r=y,s=d),_=u.P.orientationRobust(i.asPoint2D(),f.asPoint2D(),p.asPoint2D())}const g=d;if(d<y&&(d+=u.p),!(Math.abs(Math.abs(y-d)-Math.PI)<1e-8))if(_*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){h.buildPoint(i,this.m_distance,y+u.o,e),this.addPoint(e);const t=.001;e.x=i.x+(e.x-i.x)*t,e.y=i.y+(e.y-i.y)*t,this.addPoint(e),h.buildPoint(i,this.m_distance,d-u.o,e);const n=e.clone();n.x=i.x+(n.x-i.x)*t,n.y=i.y+(n.y-i.y)*t,n.type|=m,this.addPoint(n),this.addPoint(e)}else{const t=.5*(d-y),n=0===t?this.m_distance:this.m_distance/Math.abs(Math.sin(t));h.buildPoint(i,n,.5*(y+d),e),this.addPointEx(e,o)}else{if(512&i.type){const t=1-n/Math.abs(this.m_distance);let r=1,s=this.m_distance<0?-Math.PI:Math.PI;if(t>-1&&t<1){let e=2*Math.acos(t);e<c&&(e=c),r=Math.trunc(Math.PI/e+1.5),r>1&&(s/=r)}r<=1&&(r=2,s/=2);let a=y+u.o;h.buildPoint(i,this.m_distance,a,e),0===o&&(e.type|=l),this.addPointEx(e,o);const m=this.m_distance/Math.cos(s/2);for(a+=s/2,h.buildPoint(i,m,a,e),e.type|=l,this.addPoint(e);--r>0;)a+=s,h.buildPoint(i,m,a,e),e.type|=l,this.addPoint(e);h.buildPoint(i,this.m_distance,d-u.o,e),e.type|=l,this.addPoint(e);continue}if(1!==this.m_joins){if(0===this.m_joins){const t=1-n/Math.abs(this.m_distance);let r=1,s=d-u.o-(y+u.o);if(t>-1&&t<1){let e=2*Math.acos(t);e<c&&(e=c),r=Math.trunc(Math.abs(s)/e+1.5),r>1&&(s/=r)}const a=this.m_distance/Math.cos(.5*s);let m=y+u.o+.5*s;for(h.buildPoint(i,a,m,e),this.addPointEx(e,o);--r>0;)m+=s,h.buildPoint(i,a,m,e),this.addPoint(e);continue}if(2===this.m_joins){const t=f.x-i.x,n=f.y-i.y,r=p.x-i.x,s=p.y-i.y;let c=(t*r+n*s)/Math.sqrt(t*t+n*n)/Math.sqrt(r*r+s*s);if(c=Math.max(c,-1),c>1-1e-8){h.buildPoint(i,a*this.m_distance,d-.25*Math.PI,e),this.addPointEx(e,o),h.buildPoint(i,a*this.m_distance,d+.25*Math.PI,e),this.addPoint(e);continue}const m=Math.abs(this.m_distance/Math.sin(.5*Math.acos(c))),l=Math.abs(this.m_miterLimit*this.m_distance);if(m>l){const t=.5*(d-y),n=this.m_distance/Math.abs(Math.sin(t));h.buildPoint(i,n,.5*(y+d),e);const r=u.P.construct(e.x,e.y),s=u.P.construct(i.x,i.y),a=new u.P;a.setSub(r,s);const c=new u.P;c.setScaleAdd(l/a.length(),a,s);const f=Math.sqrt(m*m-this.m_distance*this.m_distance),p=(m-l)*Math.abs(this.m_distance)/f;this.m_distance>0?a.rightPerpendicularThis():a.leftPerpendicularThis(),a.scale(p/a.length());const _=new u.P;_.setAdd(c,a);const g=new u.P;g.setSub(c,a),e.x=_.x,e.y=_.y,this.addPointEx(e,o),e.x=g.x,e.y=g.y,this.addPoint(e);continue}const _=.5*(d-y),g=this.m_distance/Math.abs(Math.sin(_));h.buildPoint(i,g,.5*(y+d),e),this.addPointEx(e,o);continue}{let t;if(d=g,this.m_distance>0?(d>y&&(d-=u.p),t=y-d<u.o):(d<y&&(d+=u.p),t=d-y<u.o),t){const t=this.m_distance*a;let n;n=t<0?y+.25*Math.PI:y+3*Math.PI*.25,h.buildPoint(i,t,n,e),this.addPointEx(e,o),n=t<0?d-.25*Math.PI:d-3*Math.PI*.25,h.buildPoint(i,t,n,e),this.addPoint(e)}else{const t=.5*(d-y),n=this.m_distance/Math.abs(Math.sin(t));d<y&&(d+=u.p),h.buildPoint(i,n,(y+d)/2,e),this.addPointEx(e,o)}}}else h.buildPoint(i,this.m_distance,y+u.o,e),this.addPointEx(e,o),h.buildPoint(i,this.m_distance,d-u.o,e),this.addPoint(e)}}return this.m_a1=r,this.m_a2=s,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){let e=!1;for(let e=0;e<this.m_offsetPtCount;e++){const t=this.m_offsetPts[e];t.m_next=e+1,t.m_prev=e-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let t=0;for(let n=0;n<this.m_offsetPtCount;n++)if(this.m_offsetPts[t].type&m){const n=this.deleteClosedSeg(t);if(-1===n){e=!0;break}t=n}else t=this.m_offsetPts[t].m_next;return!e&&(this.compressOffsetArray(t),!0)}deleteClosedSeg(e){const t=this.m_offsetPtCount-1;let n,r,s=e;for(let o=1;o<=t-2;o++){s=this.m_offsetPts[s].m_next,n=s,r=e;for(let e=1;e<=o;e++){if(r=this.m_offsetPts[r].m_prev,0===(this.m_offsetPts[r].type&m)&&0===(this.m_offsetPts[n].type&m)){const e=this.handleClosedIntersection(r,n);if(-1!==e)return e}n=this.m_offsetPts[n].m_prev}}return-1}handleClosedIntersection(e,t){const n=this.m_offsetPts[this.m_offsetPts[e].m_prev],r=this.m_offsetPts[e],s=this.m_offsetPts[this.m_offsetPts[t].m_prev],o=this.m_offsetPts[t];if(!this.sectGraphicRect(n,r,s,o))return-1;const i={pt:new f,bAtExistingPt:!1};if(((r.x-n.x)*(o.y-s.y)-(r.y-n.y)*(o.x-s.x))*this.m_distance<0&&this.findIntersection(n,r,s,o,i)&&!i.bAtExistingPt){const u=1e-8,a=Math.sqrt((r.x-n.x)*(r.x-n.x)+(r.y-n.y)*(r.y-n.y)),c=(r.x-n.x)/a,m=(r.y-n.y)/a,l=Math.sqrt((o.x-s.x)*(o.x-s.x)+(o.y-s.y)*(o.y-s.y)),f=(o.x-s.x)/l,h=(o.y-s.y)/l;let p=!1;const y=i.pt.clone();y.x+=(c+f)*u,y.y+=(m+h)*u;let d=s,_=i.pt,g=this.m_offsetPts[e].m_prev;for(;_.y>y.y!=d.y>y.y&&y.x<(d.x-_.x)*(y.y-_.y)/(d.y-_.y)+_.x&&(p=!p),d=_,g=this.m_offsetPts[g].m_next,g!==t;)_=this.m_offsetPts[g];if(p)return-1;const P=this.m_offsetPts[e].m_prev;return i.pt.type=r.type,i.pt.m_next=t,i.pt.m_prev=P,this.m_offsetPts[e]=i.pt,this.m_offsetPts[t].m_prev=e,t}return-1}sectGraphicRect(e,t,n,r){return Math.max(e.x,t.x)>=Math.min(n.x,r.x)&&Math.max(n.x,r.x)>=Math.min(e.x,t.x)&&Math.max(e.y,t.y)>=Math.min(n.y,r.y)&&Math.max(n.y,r.y)>=Math.min(e.y,t.y)}findIntersection(e,t,n,r,s){let o,i,u,a;return s.bAtExistingPt=!1,o=(t.y-e.y)*(r.x-n.x)-(t.x-e.x)*(r.y-n.y),i=(n.y-e.y)*(t.x-e.x)-(n.x-e.x)*(t.y-e.y),u=0===o?2:i/o,u>=0&&u<=1&&(a=u,o=(r.y-n.y)*(t.x-e.x)-(r.x-n.x)*(t.y-e.y),i=(e.y-n.y)*(r.x-n.x)-(e.x-n.x)*(r.y-n.y),u=0===o?2:i/o,u>=0&&u<=1)&&(s.pt.x=e.x+u*(t.x-e.x),s.pt.y=e.y+u*(t.y-e.y),this.m_bUseZ&&(s.pt.z=n.z+a*(r.z-n.z)),this.m_bUseM&&(s.pt.m=n.m+a*(r.m-n.m)),0!==a&&1!==a||0!==u&&1!==u||(s.bAtExistingPt=!0),!((0===a||1===a)&&u>0&&u<1||(0===u||1===u)&&a>0&&a<1))}compressOffsetArray(e){for(;this.m_offsetPts[e].m_prev<e;)e=this.m_offsetPts[e].m_prev;let t=0,n=e;do{const e=this.m_offsetPts[n].clone();this.m_offsetPts[t]=e,n=e.m_next,t++}while(n!==e);this.m_offsetPts[t]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=t+1}addPart(e,t){if(!(t<2))for(let n=0;n<t;n++){const t=this.m_offsetPts[e+n];if(n?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(t.x,t.y,t.z):this.m_resultPath.lineToCoords(t.x,t.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(t.x,t.y,t.z):this.m_resultPath.startPathCoords(t.x,t.y),this.m_bUseM){const e=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,e,0,t.m)}}}offsetMultiPath(e){const t=(0,i.d)(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),n=t.querySegmentIterator();n.resetToFirstPath();let r=-1;for(;n.nextPath();)r++,this.offsetPath(t,r,e)}offsetPath(e,t,n){let r=e.getPathStart(t),s=e.getPathEnd(t);if(this.m_resultPath=n,e.isClosedPath(t)){const t=e.getXY(r);for(;s>r&&e.getXY(s-1).equals(t);)s--;if(s-r>=2){this.m_srcPtCount=s-r,this.m_srcPts.length=this.m_srcPtCount;for(let t=r;t<s;t++)this.progress(),this.m_srcPts[t-r]=f.construct(e.getXY(t),this.m_bUseZ?e.getAttributeAsDbl(1,t,0):0,this.m_bUseM?e.getAttributeAsDbl(2,t,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1)}}else{const t=e.getXY(r);for(;r<s-1&&e.getXY(r+1).equals(t);)r++;const n=e.getXY(s-1);for(;r<s-1&&e.getXY(s-2).equals(n);)s--;if(s-r>=2){this.m_srcPtCount=2*(s-r)-2,this.m_srcPts.length=this.m_srcPtCount;let n=f.construct(t,this.m_bUseZ?e.getAttributeAsDbl(1,r,0):0,this.m_bUseM?e.getAttributeAsDbl(2,r,0):0);n.type|=1536,this.m_srcPts[0]=n;let o=1,i=this.m_srcPtCount-1;for(let t=r+1;t<s-1;t++,o++,i--)this.progress(),n=f.construct(e.getXY(t),this.m_bUseZ?e.getAttributeAsDbl(1,t,0):0,this.m_bUseM?e.getAttributeAsDbl(2,t,0):0),this.m_srcPts[o]=n.clone(),n.type|=l,this.m_srcPts[i]=n.clone();if(n=f.construct(e.getXY(s-1),this.m_bUseZ?e.getAttributeAsDbl(1,s-1,0):0,this.m_bUseM?e.getAttributeAsDbl(2,s-1,0):0),n.type|=512,this.m_srcPts[o]=n.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let e=-1,t=-1,n=0!==(this.m_offsetPts[this.m_offsetPtCount-1].type&l);n||(e=0);for(let r=1;r<this.m_offsetPtCount;r++){this.progress();const s=0!==(this.m_offsetPts[r].type&l);s?n||(t=r-1,t-e+1>1&&this.addPart(e,t-e+1)):n&&(e=r-1),n=s}n||(t=this.m_offsetPtCount-1,t-e+1>1&&this.addPart(e,t-e+1))}else{const e=0,t=this.m_offsetPtCount-1;t-e>=1&&this.addPart(e,t-e+1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(e,t,n,r){const s=t.x-e.x,o=t.y-e.y,i=r.x-n.x,a=r.y-n.y,c=(0,u.t)(s,o,i,a);return(0,u.e)(c)}}class p extends r.G{constructor(e,t,n,r,s,o,i){super(),this.m_progressTracker=i,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=t,this.m_distance=n,this.m_joins=r,this.m_miterLimit=s,this.m_flattenError=o}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let e;for(;e=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(e);return null}getGeometryID(){return this.m_index}offset(e){let t;return(0,o.c)(e),t=this.m_flattenError<=0?(0,s.b)(this.m_spatialReference,e,!0).total():this.m_flattenError,function(e,t,n,r,s,i){if(null===e&&(0,o.a)(""),e.getDimension()<1&&(0,o.a)(""),s>0||(0,o.a)(""),(0,o.c)(e),0===t||e.isEmpty())return e;const u=new h(i);return u.m_bUseZ=e.hasAttribute(1),u.m_bUseM=e.hasAttribute(2),u.m_inputGeometry=e,u.m_distance=t,u.m_tolerance=s,u.m_joins=n,u.m_miterLimit=r>1?r:1,u.m_progressCounter=0,u.constructOffset()}(e,this.m_distance,this.m_joins,this.m_miterLimit,t,this.m_progressTracker)}}const y=new class{getOperatorType(){return 10108}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,t,n,r,s,o,i){return new p(e,t,n,r,s,o,i)}execute(e,t,n,r,s,o,i){return new p(null,t,n,r,s,o,i).offset(e)}};function d(e,t,n,r,s,o){return y.execute(e,t,n,r,s,o,null)}function _(e,t,n,s,o,i){const u=y.executeMany(new r.S(e),t,n,s,o,i,null);return Array.from(u)}},68613:(e,t,n)=>{n.d(t,{fz:()=>y,g7:()=>h,zo:()=>p});var r=n(76061),s=n(55537),o=n(83661),i=n(88885),u=n(79187),a=n(95213),c=n(15756);function m(e,t,n,r){const s=e.getImpl().getAttributeStreamRef(0),i=e.getPointCount(),c=t.getXY(),m=e.createInstance(),l=(0,a.e)(n),f=new u.Envelope2D;if(e.queryEnvelope(f),f.inflateCoords(l,l),f.contains(c)){const n=l*l;let r=!1;const u=(0,o.d)(i,!1);for(let e=0;e<i;e++){const t=s.read(2*e),o=s.read(2*e+1),i=t-c.x,a=o-c.y;i*i+a*a<=n&&(r=!0,u[e]=!0)}if(r)for(let t=0;t<i;t++)u[t]||m.addPoints(e,t,t+1);else m.addPoints(e,0,i),m.add(t)}else m.addPoints(e,0,i),m.add(t);return m}class l extends r.G{constructor(e,t,n,r){super(),this.m_progressTracker=r,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=n,this.m_rightGeom=t.next(),this.m_bEmpty=!this.m_rightGeom,(0,s.c)(this.m_rightGeom)}tock(){return!0}getRank(){return 1}next(){if(this.m_bEmpty)return null;const e=this.m_inputGeoms.next();return e?((0,s.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),function(e,t,n,r){const l=e.getDimension(),f=t.getDimension();if(l!==f)return l>f?e:t;if(e.isEmpty())return t;if(t.isEmpty())return e;const h=new u.Envelope2D,p=new u.Envelope2D,y=new u.Envelope2D;e.queryEnvelope(h),t.queryEnvelope(p),y.setCoords({env2D:h}),y.mergeEnvelope2D(p);const d=(0,a.c)(n,y,!0),_=e.getGeometryType(),g=t.getGeometryType();return _===s.G.enumPoint&&g===s.G.enumPoint?function(e,t,n){const r=(0,a.e)(n),s=r*r,u=e.getXY(),c=t.getXY(),m=new i.M({vd:e.getDescription()});return o.P.sqrDistance(u,c)>s&&(m.add(e),m.add(t)),m}(e,t,d):_===s.G.enumPoint&&g===s.G.enumMultiPoint?m(t,e,d):_===s.G.enumMultiPoint&&g===s.G.enumPoint?m(e,t,d):(0,c.as)(e,t,n,r)}(e,this.m_rightGeom,this.m_spatialReference,this.m_progressTracker)):null}getGeometryID(){return this.m_index}}const f=new class{getOperatorType(){return 10003}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r){return new l(e,t,n,r)}execute(e,t,n,o){const i=new r.S([e]),u=new r.S([t]),a=this.executeMany(i,u,n,o).next();return a||(0,s.d)("null output"),a}};function h(e,t,n){return f.execute(e,t,n,null)}function p(e,t,n){const s=f.executeMany(new r.S(e),new r.S([t]),n,null);return Array.from(s)}function y(){return f.supportsCurves()}},68925:(e,t,n)=>{n.d(t,{c:()=>a,e:()=>i});var r=n(4576),s=n(90756),o=n(78125);function i(e,t){const n=(0,o.getSpatialReference)(e);return(0,s.g)((0,o.fromGeometry)(e),(0,o.fromPolyline)(t),(0,o.fromSpatialReference)(n)).map(e=>(0,o.toGeometry)(e,n)).filter(r.Ru)}const u=(0,s.f)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},70031:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(15756);class s extends r.n{getOperatorType(){return 4}execute(e,t,n,s){return!(0,r.r)(e,t,n,4,s)}}},70722:(e,t,n)=>{n.d(t,{d:()=>u,e:()=>o});var r=n(49074),s=n(78125);function o(e,t){const n=(0,s.getSpatialReference)(e);return(0,s.toGeometry)((0,r.g7)((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(n)),n)}const i=(0,r.fz)(),u=Object.freeze(Object.defineProperty({__proto__:null,execute:o,executeMany:function(e,t){const n=e.map(s.fromGeometry),o=(0,s.getSpatialReference)(e);return(0,r.zo)(n,(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(o)).map(e=>(0,s.toGeometry)(e,o))},supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},70787:(e,t,n)=>{n.d(t,{fz:()=>u,g7:()=>o,zo:()=>i});var r=n(76061);const s=new(n(64523).O);function o(e,t,n){return s.execute(e,t,n,null)}function i(e,t,n){const o=s.executeMany(new r.S(e),t,n,null);return Array.from(o)}function u(){return s.supportsCurves()}},77085:(e,t,n)=>{n.d(t,{Hh:()=>u,fz:()=>m,g7:()=>a,s1:()=>i,zo:()=>c});var r=n(76061),s=n(83290);let o;function i(){return!!o&&(0,s.i)()}async function u(){if(!i()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(5756),n.e(1088)]).then(n.bind(n,31088)),Promise.all([n.e(3661),n.e(1878),n.e(5756)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,s.l)()]);o=new e.OperatorGeodeticDensifyByLength,t(s.p)}}function a(e,t,n,r){return o.execute(e,t,n,r,null)}function c(e,t,n,s){const i=o.executeMany(new r.S(e),t,n,s,null);return Array.from(i)}function m(){return o.supportsCurves()}},78812:(e,t,n)=>{n.d(t,{default:()=>a});var r=n(83661),s=n(11878),o=n(34727);const i={uniform:0,conformal:1,rigid:2,"rigid-motion":3,general:4},u=e=>e.map(e=>new r.P(e.x,e.y));class a{constructor(){this.transform=new s.T}calculateErrors(e,t){const n=e.length,r=t.length;if(n!==r)throw new Error(`The input length (${n}) is not the same as output length (${r})`);const s=[];return{rms:this.transform.calculateErrors(n,u(e),u(t),s),errorsOut:s}}flipX(e,t){return this.transform.flipX(e,t),this}flipY(e,t){return this.transform.flipY(e,t),this}initializeFromControlPoints(e,t,n,r){const s=t.length,o=n.length;if(s!==o)throw new Error(`The input length (${s}) is not the same as output length (${o})`);this.transform.initializeFromControlPoints(i[e],s,u(t),u(n),r?.transform)}isIdentity(){return this.transform.isIdentity()}rotate(e,t,n){const s=(0,o.kU)(e);return null!=t&&null!=n?this.transform.rotateAngleAbout(s,new r.P(t,n)):this.transform.rotateAngle(s),this}scale(e,t){return this.transform.scale(e,t),this}setIdentity(){this.transform.setIdentity()}setSwapCoordinates(){return this.transform.setSwapCoordinates(),this}shear(e,t){return this.transform.shear(e,t),this}shift(e,t){return this.transform.shiftCoords(e,t),this}}},79533:(e,t,n)=>{n.d(t,{C:()=>s});var r=n(78125);function s(e,t,n=!1){const s=(0,r.toPoint)(e.m_coordinate,(0,r.getSpatialReference)(t)),o=e.m_distance,i=e.isEmpty(),u=e.m_bRightSide;return{coordinate:s,distance:o,isEmpty:i,...n&&{isRightSide:u},vertexIndex:e.m_vertexIndex}}},81150:(e,t,n)=>{n.d(t,{Pg:()=>a,fz:()=>c,g7:()=>i,zo:()=>u});var r=n(76061),s=(n(55537),n(88885),n(15756));n(95213);const o=new s.f;function i(e,t,n){return o.execute(e,t,n,null)}function u(e,t,n){const s=o.executeMany(new r.S(e),t,n,null);return Array.from(s)}function a(e,t,n){return o.isSimpleAsFeature(e,t,n,null,null)}function c(){return o.supportsCurves()}},83587:(e,t,n)=>{n.d(t,{c:()=>u,e:()=>o});var r=n(96027),s=n(78125);function o(e,t){const n=(0,s.getSpatialReference)(e),o=(0,s.fromExtent)(t).asEnvelope2D();return(0,s.toGeometry)((0,r.g7)((0,s.fromGeometry)(e),o,(0,s.fromSpatialReference)(n)),n)}const i=(0,r.fz)(),u=Object.freeze(Object.defineProperty({__proto__:null,execute:o,executeMany:function(e,t){const n=e.map(s.fromGeometry),o=(0,s.getSpatialReference)(e),i=(0,s.fromExtent)(t).asEnvelope2D();return(0,r.zo)(n,i,(0,s.fromSpatialReference)(o)).map(e=>(0,s.toGeometry)(e,o))},supportsCurves:i},Symbol.toStringTag,{value:"Module"}))},84252:(e,t,n)=>{n.d(t,{a:()=>i,c:()=>c,e:()=>u,s:()=>a});var r=n(15756),s=n(78125);const o=new r.g;function i(e){const t=(0,s.getSpatialReference)(e);return o.accelerateGeometry((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),1)}function u(e,t){return o.execute((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(e.spatialReference),null)}const a=o.supportsCurves(),c=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:i,execute:u,supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},85181:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(15756);class s extends r.n{getOperatorType(){return 9}execute(e,t,n,s){return(0,r.r)(e,t,n,32,s)}}},85503:(e,t,n)=>{n.d(t,{d:()=>m,e:()=>a});var r=n(4576),s=n(34727),o=n(86211),i=n(91735),u=n(78125);function a(e,t,n={}){let{maxAngleInDegrees:r=0,maxDeviation:a=0,unit:c}=n;const m=(0,u.getSpatialReference)(e);return c&&(t=(0,o.UW)(t,c,m),a&&(a=(0,o.UW)(a,c,m))),(0,u.toGeometry)((0,i.g7)((0,u.fromGeometry)(e),t,a,(0,s.kU)(r)),m)}const c=(0,i.fz)(),m=Object.freeze(Object.defineProperty({__proto__:null,execute:a,executeMany:function(e,t,n={}){let{maxAngleInDegrees:a=0,maxDeviation:c=0,unit:m}=n;const l=e.map(u.fromGeometry),f=(0,u.getSpatialReference)(e);return m&&(t=(0,o.UW)(t,m,f),c&&(c=(0,o.UW)(c,m,f))),(0,i.zo)(l,t,c,(0,s.kU)(a)).map(e=>(0,u.toGeometry)(e,f)).filter(r.Ru)},supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},85549:(e,t,n)=>{n.d(t,{executeOffsetJson:()=>c,r:()=>a});var r=n(40547),s=n(66070),o=n(78125),i=n(83299);const u={round:0,bevel:1,miter:2,square:3};function a(e,t,n,s,i,u){t=(0,r.convertToSpatialReferenceUnit)((0,r.toLengthUnit)(n),e.spatialReference,t);const a=(0,o.fromGeometry)(e),c=(0,o.getSpatialReference)(e),l=m(a,(0,o.fromSpatialReference)(c),t,s,i,u);return(0,o.toGeometry)(l,c)}function c(e,t,n,s,o,u){t=(0,r.convertToSpatialReferenceUnit)((0,r.toLengthUnit)(n),e.spatialReference,t);const a=(0,i.fromGeometry)(e),c=a.getGeometry(),l=a.getSpatialReference(),f=m(c,l,t,s,o,u);return(0,i.toGeometry)(f,l)}function m(e,t,n,r,o,i){const a=(0,s.g7)(e,t,n,u[r],o,i);if(!a.isEmpty())return a;{const a=e.clone();a.reverseAllPaths();const c=(0,s.g7)(a,t,-n,u[r],o,i);if(!c.isEmpty())return c.reverseAllPaths(),c}const c=Math.abs(n)/10,m=c/10;let l=i;if("round"===r&&(l+=m),"bevel"===r||"square"===r){const a=(0,s.g7)(e,t,n,u[r="miter"],o,i);if(!a.isEmpty())return a}if("miter"===r){const a=(0,s.g7)(e,t,n,u[r="round"],o,i);if(!a.isEmpty())return a}if("round"===r)for(;l<=c;l+=m){const i=(0,s.g7)(e,t,n,u[r],o,l);if(!i.isEmpty())return i}return null}},86742:(e,t,n)=>{n.d(t,{Hh:()=>i,fz:()=>a,g7:()=>u,s1:()=>o});var r=n(83290);let s;function o(){return!!s&&(0,r.i)()}async function i(){if(!o()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(5756),n.e(6859),n.e(6558)]).then(n.bind(n,6558)),Promise.all([n.e(3661),n.e(1878),n.e(5756),n.e(6061)]).then(n.bind(n,15756)).then(e=>e.aP).then(({injectPe:e})=>e),(0,r.l)()]);s=new e.OperatorGeodeticArea,t(r.p)}}function u(e,t,n){return s.execute(e,t,n,null)}function a(){return s.supportsCurves()}},90756:(e,t,n)=>{n.d(t,{g:()=>f,f:()=>h});var r=n(76061),s=n(55537),o=n(88885),i=n(95213),u=n(15756),a=u.C;function c(e,t){return{m_geometry:e,m_side:t}}class m extends r.G{constructor(e,t,n,r,s){super(),this.m_cutIndex=-1,this.m_cuts=[],this.m_progressTracker=s,this.m_cuttee=t.clone(),this.m_cutter=new o.P({copy:n}),this.m_bConsiderTouch=e;const u=(0,i.g)(t,n);this.m_tolerance=(0,i.c)(r,u,!0)}next(){return-1===this.m_cutIndex&&this.generateCuts(),++this.m_cutIndex<this.m_cuts.length?this.m_cuts[this.m_cutIndex]:null}getGeometryID(){return this.m_cutIndex}tock(){return!0}getRank(){return 1}generateCuts(){switch(this.m_cuttee.getGeometryType()){case s.G.enumPolyline:this.generatePolylineCuts();break;case s.G.enumPolygon:this.generatePolygonCuts()}}generatePolylineCuts(){const e=new o.P,t=new o.P,n=new o.P;this.m_cuts.length=0,this.m_cuts.push(e),this.m_cuts.push(t);const r=[];!function(e,t,n,r,s,i){if(t.isEmpty()){const e=c(t,0);return void s.push(e)}if(n.isEmpty()){const e=c(t,0);return void s.push(e)}const m=[],l=new o.E;{const o=l.createGeometryUserIndex(),f=l.addGeometry(t),h=l.addGeometry(n),p=new u.T(i);let y=0,d=null;if(l.hasCurves()){d=new a;const e=l.getEnvelope2D(i);y=(0,u.u)(r.total());const t=(0,u.v)(r.total(),e);(0,u.w)(l,t,r.total(),12e3,d,null,i)}l.dbgVerifyCurves(),p.setEditShapeCrackAndCluster(l,r),p.cut(e,o,f,h,m);for(const e of m){null!==d&&d.stitchCurves(l,e,y,!1);const t=c(l.getGeometry(e),(0,u.x)(l.getGeometryUserIndex(e,o)));s.push(t)}null!==d&&d.clearStitcher(l)}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let o=0;o<r.length;o++){const i=r[o];1===i.m_side?e.add(i.m_geometry,!1):2===i.m_side||4===i.m_side?t.add(i.m_geometry,!1):3===i.m_side?this.m_cuts.push(i.m_geometry):0===i.m_side?n.add(i.m_geometry,!1):(0,s.d)("")}n.isEmpty()||e.isEmpty()&&t.isEmpty()&&!(this.m_cuts.length>=3)||this.m_cuts.push(n),e.isEmpty()&&t.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}generatePolygonCuts(){const e=new o.a,t=new o.a,n=new o.a;this.m_cuts.length=0,this.m_cuts.push(e),this.m_cuts.push(t);const r=[];!function(e,t,n,r,s,i){if(t.isEmpty()){const e=c(t,0);return void s.push(e)}if(n.isEmpty()){const e=c(t,0);return void s.push(e)}const m=[],l=new o.E;{const e=l.createGeometryUserIndex(),f=l.addGeometry(t),h=l.addGeometry(n),p=new u.T(i);let y=0,d=null;if(l.hasCurves()){d=new a;const e=l.getEnvelope2D(i);y=(0,u.u)(r.total());const t=(0,u.v)(r.total(),e);(0,u.w)(l,t,r.total(),12e3,d,null,i)}l.dbgVerifyCurves(),p.setEditShapeCrackAndCluster(l,r),p.cut(!1,e,f,h,m),null!==d&&d.stitchCurves(l,o.n,y,!0);let _=l.getGeometry(f);const g=new o.a,P=new o.a,x=[];for(let t=0;t<m.length;t++){let n=null;{const s=new o.E,a=s.addGeometry(_),c=s.addGeometry(l.getGeometry(m[t]));if(s.hasCurves()){const e=s.getEnvelope2D(i);y=(0,u.u)(r.total());const t=(0,u.v)(r.total(),e);(0,u.w)(s,t,r.total(),12e3,d,null,i)}p.setEditShapeCrackAndCluster(s,r);const f=p.intersection(a,c);if(null!==d&&d.stitchCurves(s,o.n,y,!0),n=s.getGeometry(f),n.isEmpty())continue;const h=l.getGeometryUserIndex(m[t],e);2===h?g.add(n,!1):1===h?P.add(n,!1):x.push(n)}{const e=new o.E,n=e.addGeometry(_),s=e.addGeometry(l.getGeometry(m[t]));if(e.hasCurves()){const t=e.getEnvelope2D(i);y=(0,u.u)(r.total());const n=(0,u.v)(r.total(),t);(0,u.w)(e,n,r.total(),12e3,d,null,i)}p.setEditShapeCrackAndCluster(e,r);const a=p.difference(n,s);null!==d&&d.stitchCurves(e,o.n,y,!0),_=e.getGeometry(a)}}if(!_.isEmpty()&&m.length>0&&x.push(_),g.isEmpty()&&P.isEmpty())return;if(!g.isEmpty()){const e=c(g,1);s.push(e)}if(!P.isEmpty()){const e=c(P,2);s.push(e)}for(let e=0,t=x.length;e<t;++e){const t=c(x[e],3);s.push(t)}}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let o=0;o<r.length;o++){const i=r[o];1===i.m_side?e.add(i.m_geometry,!1):2===i.m_side?t.add(i.m_geometry,!1):3===i.m_side?this.m_cuts.push(i.m_geometry):0===i.m_side?n.add(i.m_geometry,!1):(0,s.d)("")}(0,s.g)(n.isEmpty()||1===r.length),e.isEmpty()&&t.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}}const l=new class{getOperatorType(){return 10005}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(e,t,n,r,s){return new m(e,t,n,r,s)}};function f(e,t,n){const r=l.execute(!0,e,t,n,null);return Array.from(r)}function h(){return l.supportsCurves()}},90836:(e,t,n)=>{n.d(t,{b:()=>u,e:()=>c});var r=n(15756),s=n(78125);class o extends r.n{getOperatorType(){return 2}execute(e,t,n,s){return(0,r.r)(e,t,n,3,s)}}const i=new o;function u(e,t){return i.execute((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(e.spatialReference),null)}const a=i.supportsCurves(),c=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,s.getSpatialReference)(e);return i.accelerateGeometry((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),1)},execute:u,supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},91577:(e,t,n)=>{n.d(t,{fz:()=>d,g7:()=>h,qT:()=>y,zo:()=>p});var r=n(76061),s=n(55537),o=n(95213),i=n(88885),u=n(79187);class a extends r.G{constructor(e,t,n){super(),t||(0,s.a)(""),this.m_progressTracker=n,this.m_index=-1,this.m_bMerge=e,this.m_bDone=!1,this.m_inputGeometryCursor=t}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}next(){if(this.m_bMerge){if(!this.m_bDone){const e=c(this.m_inputGeometryCursor);return this.m_bDone=!0,e}return null}if(!this.m_bDone){const e=this.m_inputGeometryCursor.next();if(null!==e)return(0,s.o)(e),(0,s.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),m(e);this.m_bDone=!0}return null}}function c(e,t){const n=new i.C;let r;for(;r=e.next();)(0,s.o)(r),(0,s.c)(r),n.addGeometry(r);return n.getBoundingGeometry()}function m(e,t){if((0,s.c)(e),e.isEmpty())return e.createInstance();const n=e.getGeometryType();if((0,s.f)(n)){const t=e;if(t.isDegenerate(0)){const e=new o.P;return t.queryStart(e),e}if(t.getGeometryType()===s.G.enumLine){const n=new o.P,r=new i.P({vd:e.getDescription()});return t.queryStart(n),r.startPathPoint(n),t.queryEnd(n),r.lineToPoint(n),r}{const n=new i.P({vd:e.getDescription()});return n.addSegment(t,!0),m(n)}}if(n===s.G.enumEnvelope){const t=e,n=new u.Envelope2D;if(t.queryEnvelope(n),n.xmin===n.xmax&&n.ymin===n.ymax){const e=new o.P;return t.queryCornerByVal(0,e),e}if(n.xmin===n.xmax||n.ymin===n.ymax){const n=new o.P,r=new i.P({vd:e.getDescription()});return t.queryCornerByVal(0,n),r.startPathPoint(n),t.queryCornerByVal(1,n),r.lineToPoint(n),r}{const n=new i.a({vd:e.getDescription()});return n.addEnvelope(t,!1),n}}if(n===s.G.enumGeometryCollection)return c((0,i.g)(e,-1));if(l(e)){if(n===s.G.enumMultiPoint){const t=e,n=new o.P;return t.getPointByVal(0,n),n}return e}return(0,s.g)((0,s.i)(n)),(0,i.f)(e)}function l(e,t){if((0,s.c)(e),e.isEmpty())return!0;const n=e.getGeometryType();if(n===s.G.enumPoint)return!0;if(n===s.G.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if((0,s.f)(n)){const t=e;if(t.isDegenerate(0))return!1;if(n===s.G.enumLine)return!0;const r=new i.P;return r.addSegment(t,!0),l(r)}if(n===s.G.enumMultiPoint)return 1===e.getPointCount();if(n===s.G.enumPolyline){const t=e;return!t.hasNonLinearSegments()&&1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(n===s.G.enumGeometryCollection){const t=e;return 1===t.getGeometryCount()&&l(t.getGeometry(0))}const r=e;return!(1!==r.getPathCount()||r.getPointCount()<3)&&(0,i.i)(r,0)}const f=new class{getOperatorType(){return 10102}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n){return new a(t,e,n)}execute(e,t){return m(e)}isConvex(e,t){if((0,s.c)(e),e.isEmpty())return!0;const n=e.getGeometryType();if(n===s.G.enumPoint)return!0;if(n===s.G.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if((0,s.f)(n)){const t=e;return!t.getStartXY().equals(t.getEndXY())}if(n===s.G.enumMultiPoint)return 1===e.getPointCount();if(n===s.G.enumPolyline){const t=e;return 1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(n===s.G.enumGeometryCollection){const n=e;return 1===n.getGeometryCount()&&this.isConvex(n.getGeometry(0),t)}const r=e;return!(1!==r.getPathCount()||r.getPointCount()<3)&&(0,i.i)(r,0)}constructOrientedMinimumBoundingBox(e,t,n,r,s){(0,i.e)(e,t,n,r,s)}};function h(e){return f.execute(e,null)}function p(e,t){const n=f.executeMany(new r.S(e),t,null);return Array.from(n)}function y(e){return f.isConvex(e,null)}function d(){return f.supportsCurves()}},91735:(e,t,n)=>{n.d(t,{fz:()=>u,g7:()=>o,zo:()=>i});var r=n(76061);const s=new(n(5247).O);function o(e,t,n,r){return s.execute(e,t,n,r,null)}function i(e,t,n,o){const i=s.executeMany(new r.S(e),t,n,o,null);return Array.from(i)}function u(){return s.supportsCurves()}},92523:(e,t,n)=>{n.d(t,{e:()=>u,g:()=>c});var r=n(4576),s=n(86211),o=n(70787),i=n(78125);function u(e,t,n={}){const{removeDegenerateParts:r=!1,unit:u}=n,a=(0,i.getSpatialReference)(e);return u&&(t=(0,s.UW)(t,u,a)),(0,i.toGeometry)((0,o.g7)((0,i.fromGeometry)(e),t,r),a)}const a=(0,o.fz)(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:u,executeMany:function(e,t,n={}){const{removeDegenerateParts:u=!1,unit:a}=n,c=e.map(i.fromGeometry),m=(0,i.getSpatialReference)(e);return a&&(t=(0,s.UW)(t,a,m)),(0,o.zo)(c,t,u).map(e=>(0,i.toGeometry)(e,m)).filter(r.Ru)},supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},96027:(e,t,n)=>{n.d(t,{fz:()=>u,g7:()=>o,zo:()=>i});var r=n(76061);const s=new(n(31139).O);function o(e,t,n){return s.execute(e,t,n,null)}function i(e,t,n){const o=s.executeMany(new r.S(e),t,n,null);return Array.from(o)}function u(){return s.supportsCurves()}},96957:(e,t,n)=>{n.d(t,{e:()=>i,s:()=>a});var r=n(4576),s=n(68613),o=n(78125);function i(e,t){const n=(0,o.getSpatialReference)(e);return(0,o.toGeometry)((0,s.g7)((0,o.fromGeometry)(e),(0,o.fromGeometry)(t),(0,o.fromSpatialReference)(n)),n)}const u=(0,s.fz)(),a=Object.freeze(Object.defineProperty({__proto__:null,execute:i,executeMany:function(e,t){const n=e.map(o.fromGeometry),i=(0,o.getSpatialReference)(e);return(0,s.zo)(n,(0,o.fromGeometry)(t),(0,o.fromSpatialReference)(i)).map(e=>(0,o.toGeometry)(e,i)).filter(r.Ru)},supportsCurves:u},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,547,3169,4161,6061,6225,7373,8125],{4197:(t,e,s)=>{s.d(e,{Vj:()=>u,cj:()=>c,jh:()=>i,l5:()=>a,xm:()=>o});var n=s(34275),r=s(9093);function i(t){return t<=n.y9?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,n.iu)(t)?t.byteLength/8:t.length)<=n.y9?Array.from(t):new Float64Array(t)}function a(t,e,s){return Array.isArray(t)?t.slice(e,e+s):t.subarray(e,e+s)}function c(t){return[...t]}function u(t){const e=(0,r.vt)();for(let s=0;s<16;++s)e[s]=t[s];return e}},9093:(t,e,s)=>{function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}s.d(e,{o8:()=>r,vt:()=>n,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:r,create:n,fromValues:function(t,e,s,n,r,i,o,a,c,u,l,h,m,f,d,y){return[t,e,s,n,r,i,o,a,c,u,l,h,m,f,d,y]}},Symbol.toStringTag,{value:"Module"}))},40547:(t,e,s)=>{s.d(e,{convert:()=>M,convertFromSpatialReferenceUnit:()=>x,convertToSpatialReferenceUnit:()=>b,meters:()=>i.L2,squareMeters:()=>i.A7,toAreaUnit:()=>_,toLengthUnit:()=>P});var n=s(59534),r=s(85935),i=s(71409);const o=[];function a(t){return 0===t.length?'""':t.startsWith('"')||t.startsWith(".")||t[0]>="0"&&t[0]<="9"?t:'"'+t.trim()+'"'}function c(t){let e="",s="",n=!1;for(let r=0;r<t.length;r++){const i=t[r];n?'"'===i?'"'===t[r+1]?(e+=`\\${i}`,r+=1):n=!1:e+=i:/\s/.test(i)||(","===i?(s+=""!==e?a(e)+",":",",e=""):")"===i||"]"===i?(s+=""!==e?a(e)+"]}":"]}",e=""):"("===i||"["===i?(s+='{ "entity": "'+e.toUpperCase().trim()+'", "values":[',e=""):'"'===i?(n=!0,e=""):e+=i)}return JSON.parse(s)}function u(t){try{for(let e=0;e<o.length;e++)if(o[e].spatialReferenceWkt===t)return o[e].unit;const e=l(c(t));if(null===e)return null;let s=null;for(const t of e.values)if("object"==typeof t&&("UNIT"===t.entity||"ANGLEUNIT"===t.entity||"LENGTHUNIT"===t.entity)){s=t;break}if(null===s)return null;const n=function(t,e,s){if(null!=s)try{if("EPSG"===s.values[0])return{type:t,wkid:Number.parseInt(s.values[1],10),factor:e}}catch(t){}return{type:t,factor:e}}("GEOGCS"===e.entity||"GEOGCRS"===e.entity?"angular":"linear",s.values[1],s.values[2]);return o.push({spatialReferenceWkt:t,unit:n}),o.length>10&&o.shift(),n}catch(t){return null}}function l(t){if(null===t)return null;switch(t.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return t}const e=[];for(const s of t.values)if("object"==typeof s&&void 0!==s.entity)switch(s.entity){case"GEOGCRS":case"GEOGCS":case"PROJCRS":case"PROJCS":return s;default:e.push(s)}for(const t of e){const e=l(t);if(null!=e)return e}return null}var h=s(86211),m=s(22530);const f=-1;function d(t,e){let s;switch(t){case"linear":s=i.s9;break;case"angular":s=i.zD;break;case"area":s=i.y6;break;default:return null}return s.get(e)}function y(t){const e=t.wkid;if(null!=e){const t=m.A.units[m.A[e]];if(null!=t)switch(t){case"Meter":return d("linear",9001);case"Foot":return d("linear",9002);case"Foot_US":return d("linear",9003);case"Foot_Clarke":return d("linear",9005);case"Yard_Clarke":return d("linear",9037);case"Link_Clarke":return d("linear",9039);case"Yard_Sears":return d("linear",9040);case"Foot_Sears":return d("linear",9041);case"Chain_Sears":return d("linear",9042);case"Chain_Benoit_1895_B":return d("linear",9062);case"Yard_Indian":return d("linear",9084);case"Yard_Indian_1937":return d("linear",9085);case"Foot_Gold_Coast":return d("linear",9094);case"Chain":return d("linear",9097);case"Chain_Sears_1922_Truncated":return d("linear",9301);case"50_Kilometers":return d("linear",109030);case"150_Kilometers":return d("linear",109031);default:throw new Error(`Unknown unit name: ${t}`)}return h.yD.has(e)?d("angular",9105):d("angular",9102)}const s=t.wkt2||t.wkt;if(null!=s){const t=u(s);if(null!=t){if(null!=t.wkid){const e=d(t.type,t.wkid);if(null!=e)return e}return{type:t.type,wkid:f,factor:t.factor}}}return null}function p(t){if("linear"!==t.type)return null;if(t.wkid===f)return{type:"area",wkid:f,factor:t.factor**2};const e=i.SQ.get(t.wkid);return null==e?null:d("area",e)}function _(t){if(null!=t){if("number"==typeof t)return i.y6.get(t)??i.s9.get(t)??i.zD.get(t);if("string"!=typeof t)throw new r.D$(null,"InvalidParameter",null);switch((0,n.B)(t)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":return i.y6.get(109404);case"miles":case"mile":case"squaremile":case"squaremiles":return i.y6.get(109439);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return i.y6.get(109414);case"acres":case"acre":case"ac":return i.y6.get(109402);case"hectares":case"hectare":case"ha":return i.y6.get(109401);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":return i.y6.get(109442);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return i.y6.get(109405);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return i.y6.get(109409);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return i.y6.get(109452);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return i.y6.get(109451);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return i.y6.get(109450);case"inch":case"inches":case"squareinch":case"squareinches":return i.y6.get(109453);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return i.y6.get(109406);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return i.y6.get(109413)}}}function P(t){if(null!=t){if("number"==typeof t)return i.s9.get(t)??i.zD.get(t)??i.y6.get(t);if("string"!=typeof t)throw new r.D$(null,"InvalidParameter",null);switch((0,n.B)(t)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":case"hectares":case"hectare":case"ha":return i.s9.get(9001);case"miles":case"mile":case"squaremile":case"squaremiles":return i.s9.get(9093);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return i.s9.get(9036);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":case"acres":case"acre":case"ac":return i.s9.get(9096);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return i.s9.get(9002);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return i.s9.get(9030);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return i.s9.get(109007);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return i.s9.get(109006);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return i.s9.get(109005);case"inch":case"inches":case"squareinch":case"squareinches":return i.s9.get(109008);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return i.s9.get(9003);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return i.s9.get(9035)}}}function g(t,e,s){if(t.type!==e.type)throw new Error(`Incompatible unit types. src=${t.type} dest=${e.type}`);return s*(t.factor/e.factor)}function x(t,e,s){if(null==t||null==e)return s;const n=y(t);if(null==n)throw new Error("Unknown spatial reference unit.");const r="area"===e.type&&"linear"===n.type?p(n):n;if(null==r)throw new Error(`Unknown spatial reference ${e.type} unit.`);return g(r,e,s)}function b(t,e,s){if(null==t||null==e)return s;const n=y(e);if(null==n)throw new Error("Unknown spatial reference unit.");const r="area"===t.type&&"linear"===n.type?p(n):n;if(null==r)throw new Error(`Unknown spatial reference ${t.type} unit.`);return g(t,r,s)}function M(t,e,s){return null==t||null==e?s:g(t,e,s)}},59534:(t,e,s)=>{s.d(e,{B:()=>r,b:()=>i});var n=s(85935);function r(t){return t.toLowerCase().replaceAll(/[\s-]+/g,"")}class i{constructor(t,e){const s=new Map;for(const e of t){const t=r(e);if(s.has(t))throw new Error(`${e} already added as ${s.get(t)}`);s.set(t,e)}if(null!=e)for(const[t,n]of e){const e=r(t);if(s.has(e))throw new Error(`${t} already associated with ${s.get(e)}`);s.set(e,n)}this._enumMap=s}lookup(t){return this._enumMap.get(r(t))}get(t){const e=this.lookup(t);if(null==e)throw new n.D$(null,"InvalidParameter",null);return e}}},66070:(t,e,s)=>{s.d(e,{g7:()=>p,zo:()=>_});var n=s(76061),r=s(95213),i=s(55537),o=s(88885),a=s(83661);const c=1.4142135623730951,u=.017453292519943295,l=256,h=1024;class m{static construct(t,e,s){const n=new m;return n.x=t.x,n.y=t.y,n.m_next=-1,n.m_prev=-1,n.z=e,n.m=s,n.type=0,n}clone(){const t=new m;return t.x=this.x,t.y=this.y,t.m_next=this.m_next,t.m_prev=this.m_prev,t.z=this.z,t.m=this.m,t.type=this.type,t}asPoint2D(){return new a.P(this.x,this.y)}}class f{constructor(t){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=t}constructOffset(){const t=this.m_inputGeometry.getGeometryType();if(t===i.G.enumLine)return this.offsetLine();if(t===i.G.enumEnvelope)return this.offsetEnvelope();if((0,i.f)(t)){const t=new o.P;return t.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=t,this.constructOffset()}if(t===i.G.enumPolyline){const t=new o.P;return this.offsetMultiPath(t),t}if(t===i.G.enumPolygon){const t=new o.a;return this.offsetMultiPath(t),t}(0,i.t)("")}offsetLine(){const t=this.m_inputGeometry,e=t.getStartXY(),s=t.getEndXY(),n=new a.P;n.setSub(s,e),n.normalize(),n.leftPerpendicularThis(),n.scale(this.m_distance),e.addThis(n),s.addThis(n);const r=t.clone();return r.setStartXY(e),r.setEndXY(s),r}offsetEnvelope(){const t=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const e=new o.a;return e.addEnvelope(t,!1),this.m_inputGeometry=e,this.constructOffset()}const e=t.clone();return e.inflateCoords(this.m_distance,this.m_distance),e}progress(){}static buildPoint(t,e,s,n){n.x=t.x+e*Math.cos(s),n.y=t.y+e*Math.sin(s),n.type=t.type,n.z=t.z,n.m=t.m,n.m_next=-1,n.m_prev=-1}addPoint(t){this.m_offsetPts.push(t.clone()),this.m_offsetPtCount++}addPointEx(t,e){if(0===this.m_offsetPtCount)return void this.addPoint(t);const s=this.m_srcPtCount,n=this.m_srcPts[0===e?s-1:e-1],r=this.m_srcPts[e],i=f.dotSign(n,r,this.m_offsetPts[this.m_offsetPtCount-1],t);if(i>0)this.addPoint(t);else if(i<0)if(f.dotSign(n,r,r,this.m_offsetPts[this.m_offsetPtCount-1])>0){const r=new m;let i;i=0===e?s-2:1===e?s-1:e-2;const o=this.m_srcPts[i],c=Math.atan2(n.y-o.y,n.x-o.x);if(f.buildPoint(n,this.m_distance,c-a.o,r),this.m_offsetPts[this.m_offsetPtCount-1]=r.clone(),1===this.m_joins||2===this.m_joins){r.x=.5*(r.x+n.x),r.y=.5*(r.y+n.y),this.addPoint(r),f.buildPoint(n,this.m_distance,this.m_a1+a.o,r);const t=r.clone();t.x=.5*(t.x+n.x),t.y=.5*(t.y+n.y),t.type|=l,this.addPoint(t),this.addPoint(r)}else f.buildPoint(n,this.m_distance,this.m_a1+a.o,r),r.type|=l,this.addPoint(r);this.addPointEx(t,e)}else{const t=new m;if(f.buildPoint(r,this.m_distance,this.m_a1+a.o,t),this.addPoint(t),1===this.m_joins||2===this.m_joins){t.x=.5*(t.x+r.x),t.y=.5*(t.y+r.y),this.addPoint(t),f.buildPoint(r,this.m_distance,this.m_a2-a.o,t);const e=t.clone();e.x=.5*(e.x+r.x),e.y=.5*(e.y+r.y),e.type|=l,this.addPoint(e),this.addPoint(t)}else f.buildPoint(r,this.m_distance,this.m_a2-a.o,t),t.type|=l,this.addPoint(t)}}buildOffset(){const t=new m,e=this.m_srcPtCount;this.m_offsetPtCount=0;const s=.5*this.m_tolerance;let n=0,r=0;for(let i=0;i<e;i++){const o=this.m_srcPts[i],m=0===i?this.m_srcPts[e-1]:this.m_srcPts[i-1],d=i===e-1?this.m_srcPts[0]:this.m_srcPts[i+1];let y,p,_=0;{const t=m.x-o.x,e=m.y-o.y,s=d.x-o.x,c=d.y-o.y;y=Math.atan2(e,t),p=Math.atan2(c,s),this.m_a1=y,this.m_a2=p,0===i&&(n=y,r=p),_=a.P.orientationRobust(o.asPoint2D(),m.asPoint2D(),d.asPoint2D())}const P=p;if(p<y&&(p+=a.p),!(Math.abs(Math.abs(y-p)-Math.PI)<1e-8))if(_*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){f.buildPoint(o,this.m_distance,y+a.o,t),this.addPoint(t);const e=.001;t.x=o.x+(t.x-o.x)*e,t.y=o.y+(t.y-o.y)*e,this.addPoint(t),f.buildPoint(o,this.m_distance,p-a.o,t);const s=t.clone();s.x=o.x+(s.x-o.x)*e,s.y=o.y+(s.y-o.y)*e,s.type|=l,this.addPoint(s),this.addPoint(t)}else{const e=.5*(p-y),s=0===e?this.m_distance:this.m_distance/Math.abs(Math.sin(e));f.buildPoint(o,s,.5*(y+p),t),this.addPointEx(t,i)}else{if(512&o.type){const e=1-s/Math.abs(this.m_distance);let n=1,r=this.m_distance<0?-Math.PI:Math.PI;if(e>-1&&e<1){let t=2*Math.acos(e);t<u&&(t=u),n=Math.trunc(Math.PI/t+1.5),n>1&&(r/=n)}n<=1&&(n=2,r/=2);let c=y+a.o;f.buildPoint(o,this.m_distance,c,t),0===i&&(t.type|=h),this.addPointEx(t,i);const l=this.m_distance/Math.cos(r/2);for(c+=r/2,f.buildPoint(o,l,c,t),t.type|=h,this.addPoint(t);--n>0;)c+=r,f.buildPoint(o,l,c,t),t.type|=h,this.addPoint(t);f.buildPoint(o,this.m_distance,p-a.o,t),t.type|=h,this.addPoint(t);continue}if(1!==this.m_joins){if(0===this.m_joins){const e=1-s/Math.abs(this.m_distance);let n=1,r=p-a.o-(y+a.o);if(e>-1&&e<1){let t=2*Math.acos(e);t<u&&(t=u),n=Math.trunc(Math.abs(r)/t+1.5),n>1&&(r/=n)}const c=this.m_distance/Math.cos(.5*r);let l=y+a.o+.5*r;for(f.buildPoint(o,c,l,t),this.addPointEx(t,i);--n>0;)l+=r,f.buildPoint(o,c,l,t),this.addPoint(t);continue}if(2===this.m_joins){const e=m.x-o.x,s=m.y-o.y,n=d.x-o.x,r=d.y-o.y;let u=(e*n+s*r)/Math.sqrt(e*e+s*s)/Math.sqrt(n*n+r*r);if(u=Math.max(u,-1),u>1-1e-8){f.buildPoint(o,c*this.m_distance,p-.25*Math.PI,t),this.addPointEx(t,i),f.buildPoint(o,c*this.m_distance,p+.25*Math.PI,t),this.addPoint(t);continue}const l=Math.abs(this.m_distance/Math.sin(.5*Math.acos(u))),h=Math.abs(this.m_miterLimit*this.m_distance);if(l>h){const e=.5*(p-y),s=this.m_distance/Math.abs(Math.sin(e));f.buildPoint(o,s,.5*(y+p),t);const n=a.P.construct(t.x,t.y),r=a.P.construct(o.x,o.y),c=new a.P;c.setSub(n,r);const u=new a.P;u.setScaleAdd(h/c.length(),c,r);const m=Math.sqrt(l*l-this.m_distance*this.m_distance),d=(l-h)*Math.abs(this.m_distance)/m;this.m_distance>0?c.rightPerpendicularThis():c.leftPerpendicularThis(),c.scale(d/c.length());const _=new a.P;_.setAdd(u,c);const P=new a.P;P.setSub(u,c),t.x=_.x,t.y=_.y,this.addPointEx(t,i),t.x=P.x,t.y=P.y,this.addPoint(t);continue}const _=.5*(p-y),P=this.m_distance/Math.abs(Math.sin(_));f.buildPoint(o,P,.5*(y+p),t),this.addPointEx(t,i);continue}{let e;if(p=P,this.m_distance>0?(p>y&&(p-=a.p),e=y-p<a.o):(p<y&&(p+=a.p),e=p-y<a.o),e){const e=this.m_distance*c;let s;s=e<0?y+.25*Math.PI:y+3*Math.PI*.25,f.buildPoint(o,e,s,t),this.addPointEx(t,i),s=e<0?p-.25*Math.PI:p-3*Math.PI*.25,f.buildPoint(o,e,s,t),this.addPoint(t)}else{const e=.5*(p-y),s=this.m_distance/Math.abs(Math.sin(e));p<y&&(p+=a.p),f.buildPoint(o,s,(y+p)/2,t),this.addPointEx(t,i)}}}else f.buildPoint(o,this.m_distance,y+a.o,t),this.addPointEx(t,i),f.buildPoint(o,this.m_distance,p-a.o,t),this.addPoint(t)}}return this.m_a1=n,this.m_a2=r,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){let t=!1;for(let t=0;t<this.m_offsetPtCount;t++){const e=this.m_offsetPts[t];e.m_next=t+1,e.m_prev=t-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let e=0;for(let s=0;s<this.m_offsetPtCount;s++)if(this.m_offsetPts[e].type&l){const s=this.deleteClosedSeg(e);if(-1===s){t=!0;break}e=s}else e=this.m_offsetPts[e].m_next;return!t&&(this.compressOffsetArray(e),!0)}deleteClosedSeg(t){const e=this.m_offsetPtCount-1;let s,n,r=t;for(let i=1;i<=e-2;i++){r=this.m_offsetPts[r].m_next,s=r,n=t;for(let t=1;t<=i;t++){if(n=this.m_offsetPts[n].m_prev,0===(this.m_offsetPts[n].type&l)&&0===(this.m_offsetPts[s].type&l)){const t=this.handleClosedIntersection(n,s);if(-1!==t)return t}s=this.m_offsetPts[s].m_prev}}return-1}handleClosedIntersection(t,e){const s=this.m_offsetPts[this.m_offsetPts[t].m_prev],n=this.m_offsetPts[t],r=this.m_offsetPts[this.m_offsetPts[e].m_prev],i=this.m_offsetPts[e];if(!this.sectGraphicRect(s,n,r,i))return-1;const o={pt:new m,bAtExistingPt:!1};if(((n.x-s.x)*(i.y-r.y)-(n.y-s.y)*(i.x-r.x))*this.m_distance<0&&this.findIntersection(s,n,r,i,o)&&!o.bAtExistingPt){const a=1e-8,c=Math.sqrt((n.x-s.x)*(n.x-s.x)+(n.y-s.y)*(n.y-s.y)),u=(n.x-s.x)/c,l=(n.y-s.y)/c,h=Math.sqrt((i.x-r.x)*(i.x-r.x)+(i.y-r.y)*(i.y-r.y)),m=(i.x-r.x)/h,f=(i.y-r.y)/h;let d=!1;const y=o.pt.clone();y.x+=(u+m)*a,y.y+=(l+f)*a;let p=r,_=o.pt,P=this.m_offsetPts[t].m_prev;for(;_.y>y.y!=p.y>y.y&&y.x<(p.x-_.x)*(y.y-_.y)/(p.y-_.y)+_.x&&(d=!d),p=_,P=this.m_offsetPts[P].m_next,P!==e;)_=this.m_offsetPts[P];if(d)return-1;const g=this.m_offsetPts[t].m_prev;return o.pt.type=n.type,o.pt.m_next=e,o.pt.m_prev=g,this.m_offsetPts[t]=o.pt,this.m_offsetPts[e].m_prev=t,e}return-1}sectGraphicRect(t,e,s,n){return Math.max(t.x,e.x)>=Math.min(s.x,n.x)&&Math.max(s.x,n.x)>=Math.min(t.x,e.x)&&Math.max(t.y,e.y)>=Math.min(s.y,n.y)&&Math.max(s.y,n.y)>=Math.min(t.y,e.y)}findIntersection(t,e,s,n,r){let i,o,a,c;return r.bAtExistingPt=!1,i=(e.y-t.y)*(n.x-s.x)-(e.x-t.x)*(n.y-s.y),o=(s.y-t.y)*(e.x-t.x)-(s.x-t.x)*(e.y-t.y),a=0===i?2:o/i,a>=0&&a<=1&&(c=a,i=(n.y-s.y)*(e.x-t.x)-(n.x-s.x)*(e.y-t.y),o=(t.y-s.y)*(n.x-s.x)-(t.x-s.x)*(n.y-s.y),a=0===i?2:o/i,a>=0&&a<=1)&&(r.pt.x=t.x+a*(e.x-t.x),r.pt.y=t.y+a*(e.y-t.y),this.m_bUseZ&&(r.pt.z=s.z+c*(n.z-s.z)),this.m_bUseM&&(r.pt.m=s.m+c*(n.m-s.m)),0!==c&&1!==c||0!==a&&1!==a||(r.bAtExistingPt=!0),!((0===c||1===c)&&a>0&&a<1||(0===a||1===a)&&c>0&&c<1))}compressOffsetArray(t){for(;this.m_offsetPts[t].m_prev<t;)t=this.m_offsetPts[t].m_prev;let e=0,s=t;do{const t=this.m_offsetPts[s].clone();this.m_offsetPts[e]=t,s=t.m_next,e++}while(s!==t);this.m_offsetPts[e]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=e+1}addPart(t,e){if(!(e<2))for(let s=0;s<e;s++){const e=this.m_offsetPts[t+s];if(s?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(e.x,e.y,e.z):this.m_resultPath.lineToCoords(e.x,e.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(e.x,e.y,e.z):this.m_resultPath.startPathCoords(e.x,e.y),this.m_bUseM){const t=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,t,0,e.m)}}}offsetMultiPath(t){const e=(0,o.d)(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),s=e.querySegmentIterator();s.resetToFirstPath();let n=-1;for(;s.nextPath();)n++,this.offsetPath(e,n,t)}offsetPath(t,e,s){let n=t.getPathStart(e),r=t.getPathEnd(e);if(this.m_resultPath=s,t.isClosedPath(e)){const e=t.getXY(n);for(;r>n&&t.getXY(r-1).equals(e);)r--;if(r-n>=2){this.m_srcPtCount=r-n,this.m_srcPts.length=this.m_srcPtCount;for(let e=n;e<r;e++)this.progress(),this.m_srcPts[e-n]=m.construct(t.getXY(e),this.m_bUseZ?t.getAttributeAsDbl(1,e,0):0,this.m_bUseM?t.getAttributeAsDbl(2,e,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1)}}else{const e=t.getXY(n);for(;n<r-1&&t.getXY(n+1).equals(e);)n++;const s=t.getXY(r-1);for(;n<r-1&&t.getXY(r-2).equals(s);)r--;if(r-n>=2){this.m_srcPtCount=2*(r-n)-2,this.m_srcPts.length=this.m_srcPtCount;let s=m.construct(e,this.m_bUseZ?t.getAttributeAsDbl(1,n,0):0,this.m_bUseM?t.getAttributeAsDbl(2,n,0):0);s.type|=1536,this.m_srcPts[0]=s;let i=1,o=this.m_srcPtCount-1;for(let e=n+1;e<r-1;e++,i++,o--)this.progress(),s=m.construct(t.getXY(e),this.m_bUseZ?t.getAttributeAsDbl(1,e,0):0,this.m_bUseM?t.getAttributeAsDbl(2,e,0):0),this.m_srcPts[i]=s.clone(),s.type|=h,this.m_srcPts[o]=s.clone();if(s=m.construct(t.getXY(r-1),this.m_bUseZ?t.getAttributeAsDbl(1,r-1,0):0,this.m_bUseM?t.getAttributeAsDbl(2,r-1,0):0),s.type|=512,this.m_srcPts[i]=s.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let t=-1,e=-1,s=0!==(this.m_offsetPts[this.m_offsetPtCount-1].type&h);s||(t=0);for(let n=1;n<this.m_offsetPtCount;n++){this.progress();const r=0!==(this.m_offsetPts[n].type&h);r?s||(e=n-1,e-t+1>1&&this.addPart(t,e-t+1)):s&&(t=n-1),s=r}s||(e=this.m_offsetPtCount-1,e-t+1>1&&this.addPart(t,e-t+1))}else{const t=0,e=this.m_offsetPtCount-1;e-t>=1&&this.addPart(t,e-t+1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(t,e,s,n){const r=e.x-t.x,i=e.y-t.y,o=n.x-s.x,c=n.y-s.y,u=(0,a.t)(r,i,o,c);return(0,a.e)(u)}}class d extends n.G{constructor(t,e,s,n,r,i,o){super(),this.m_progressTracker=o,this.m_index=-1,this.m_inputGeoms=t,this.m_spatialReference=e,this.m_distance=s,this.m_joins=n,this.m_miterLimit=r,this.m_flattenError=i}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let t;for(;t=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(t);return null}getGeometryID(){return this.m_index}offset(t){let e;return(0,i.c)(t),e=this.m_flattenError<=0?(0,r.b)(this.m_spatialReference,t,!0).total():this.m_flattenError,function(t,e,s,n,r,o){if(null===t&&(0,i.a)(""),t.getDimension()<1&&(0,i.a)(""),r>0||(0,i.a)(""),(0,i.c)(t),0===e||t.isEmpty())return t;const a=new f(o);return a.m_bUseZ=t.hasAttribute(1),a.m_bUseM=t.hasAttribute(2),a.m_inputGeometry=t,a.m_distance=e,a.m_tolerance=r,a.m_joins=s,a.m_miterLimit=n>1?n:1,a.m_progressCounter=0,a.constructOffset()}(t,this.m_distance,this.m_joins,this.m_miterLimit,e,this.m_progressTracker)}}const y=new class{getOperatorType(){return 10108}accelerateGeometry(t,e,s){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,e,s,n,r,i,o){return new d(t,e,s,n,r,i,o)}execute(t,e,s,n,r,i,o){return new d(null,e,s,n,r,i,o).offset(t)}};function p(t,e,s,n,r,i){return y.execute(t,e,s,n,r,i,null)}function _(t,e,s,r,i,o){const a=y.executeMany(new n.S(t),e,s,r,i,o,null);return Array.from(a)}},69397:(t,e,s)=>{s.d(e,{$B:()=>r,Qf:()=>u,Qh:()=>a,RS:()=>i,Ul:()=>d,ez:()=>m,lM:()=>o,qK:()=>h});var n=s(34275);function r(t){return 32+t.length}const i=16;function o(t){if(!t)return 0;let e=h;for(const s in t)t.hasOwnProperty(s)&&(e+=c(t[s],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let s=m;for(let n=0;n<e;n++)s+=c(t[n]);return s}(t);let e=h;for(const s in t)t.hasOwnProperty(s)&&(e+=c(t[s]));return e}function c(t,e=!0){switch(typeof t){case"object":return e?a(t):h;case"string":return r(t);case"number":return i;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+f:Array.isArray(e)?l(e,i):0:0),0)}function l(t,e){return m+t.length*e}const h=32,m=16,f=145,d=64},70328:(t,e,s)=>{s.d(e,{BI:()=>g,DC:()=>h,Ej:()=>f,Ie:()=>_,Jt:()=>P,Ne:()=>d,RF:()=>l,aI:()=>b,fA:()=>o,gE:()=>c,hZ:()=>p,iT:()=>m,is:()=>x,qv:()=>M,vI:()=>y,vY:()=>a,v_:()=>C,vt:()=>i,w1:()=>u});var n=s(5443),r=(s(19419),s(4197));function i(t=C){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,s,n,r,o,a=i()){return a[0]=t,a[1]=e,a[2]=s,a[3]=n,a[4]=r,a[5]=o,a}function a(t,e=i()){return function(t,e,s,n=i()){return p(n,M),function(t,e,s=0,n=e.length/3){let r=t[0],i=t[1],o=t[2],a=t[3],c=t[4],u=t[5];for(let t=0;t<n;t++)r=Math.min(r,e[s+3*t]),i=Math.min(i,e[s+3*t+1]),o=Math.min(o,e[s+3*t+2]),a=Math.max(a,e[s+3*t]),c=Math.max(c,e[s+3*t+1]),u=Math.max(u,e[s+3*t+2]);t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=c,t[5]=u}(n,t,e,s),n}(t,0,t.length/3,e)}function c(t,e=(0,r.jh)(24)){const[s,n,i,o,a,c]=t;return e[0]=s,e[1]=n,e[2]=i,e[3]=s,e[4]=n,e[5]=c,e[6]=s,e[7]=a,e[8]=i,e[9]=s,e[10]=a,e[11]=c,e[12]=o,e[13]=n,e[14]=i,e[15]=o,e[16]=n,e[17]=c,e[18]=o,e[19]=a,e[20]=i,e[21]=o,e[22]=a,e[23]=c,e}function u(t,e){const s=isFinite(t[2])||isFinite(t[5]);return new n.A(s?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function m(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function f(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function d(t,e,s=t){return s[0]=e[0],s[1]=e[1],s[2]=e[2],s!==t&&(s[3]=t[3],s[4]=t[4],s[5]=t[5]),s}function y(t,e,s=t){return s[3]=e[0],s[4]=e[1],s[5]=e[2],s!==t&&(s[0]=t[0],s[1]=t[1],s[2]=t[2]),t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function _(t){return t?p(t,M):i(M)}function P(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function g(t,e,s,n,r){return t[0]=e,t[1]=s,t[2]=Number.NEGATIVE_INFINITY,t[3]=n,t[4]=r,t[5]=Number.POSITIVE_INFINITY,t}function x(t){return 6===t.length}function b(t,e,s){if(null==t||null==e)return t===e;if(!x(t)||!x(e))return!1;if(s){for(let n=0;n<t.length;n++)if(!s(t[n],e[n]))return!1}else for(let s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}const M=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];i()},71409:(t,e,s)=>{s.d(e,{A7:()=>m,L2:()=>u,SQ:()=>n,s9:()=>c,y6:()=>h,zD:()=>o});const n=new Map([[1025,109452],[1033,109451],[9001,109404],[9002,109405],[9003,109406],[9005,109407],[9014,109408],[9030,109409],[9031,109410],[9033,109411],[9034,109412],[9035,109413],[9036,109414],[9037,109415],[9038,109416],[9039,109417],[9040,109418],[9041,109419],[9042,109420],[9043,109421],[9050,109422],[9051,109423],[9052,109424],[9053,109425],[9060,109426],[9061,109427],[9062,109428],[9063,109429],[9070,109430],[9080,109431],[9081,109432],[9082,109433],[9083,109434],[9084,109435],[9085,109436],[9086,109437],[9087,109438],[9093,109439],[9094,109440],[9095,109441],[9096,109442],[9097,109444],[9098,109445],[9099,109446],[9300,109447],[9301,109448],[9302,109449],[109001,109442],[109002,109443],[109003,109444],[109004,109445],[109005,109450],[109006,109451],[109007,109452],[109008,109453],[109009,109454],[109010,109455],[109011,109456],[109012,109457],[109013,109458],[109014,109459],[109015,109462],[109016,109464],[109017,109465],[109018,109466],[109030,109460],[109031,109461]]);function r(t){return(e,s)=>[e,{type:t,wkid:e,factor:s}]}const i=r("angular"),o=new Map([i(1031,4.84813681109536e-9),i(9101,1),i(9102,.017453292519943295),i(9103,.0002908882086657216),i(9104,484813681109536e-20),i(9105,.015707963267948967),i(9106,.015707963267948967),i(9109,1e-6),i(9112,.00015707963267948965),i(9113,15707963267948967e-22),i(9114,.0009817477042468104)]),a=r("linear"),c=new Map([a(1025,.001),a(1033,.01),a(9001,1),a(9002,.3048),a(9003,.30480060960121924),a(9005,.3047972654),a(9014,1.8288),a(9030,1852),a(9031,1.0000135965),a(9033,20.11684023368047),a(9034,.2011684023368047),a(9035,1609.3472186944375),a(9036,1e3),a(9037,.9143917962),a(9038,20.1166195164),a(9039,.201166195164),a(9040,.9143984146160287),a(9041,.3047994715386762),a(9042,20.116765121552632),a(9043,.2011676512155263),a(9050,.9143992),a(9051,.3047997333333333),a(9052,20.1167824),a(9053,.201167824),a(9060,.9143992042898124),a(9061,.30479973476327077),a(9062,20.116782494375872),a(9063,.2011678249437587),a(9070,.30480083333333335),a(9080,.30479951024814694),a(9081,.30479841),a(9082,.3047996),a(9083,.3047995),a(9084,.9143985307444408),a(9085,.91439523),a(9086,.9143988),a(9087,.9143985),a(9093,1609.344),a(9094,.3047997101815088),a(9095,.3048007491),a(9096,.9144),a(9097,20.1168),a(9098,.201168),a(9099,.914398),a(9300,.30479933333333337),a(9301,20.116756),a(9302,.20116756),a(109001,.9144),a(109002,.9144018288036576),a(109003,20.1168),a(109004,.201168),a(109005,.1),a(109006,.01),a(109007,.001),a(109008,.0254),a(109009,.025400050800101603),a(109010,5.0292),a(109011,5.029210058420118),a(109012,1853.248),a(109013,1853.184),a(109014,1.7018),a(109015,.8466683600033867),a(109016,.00035277777777777776),a(109017,1e-6),a(109018,1e-9),a(109030,5e4),a(109031,15e4)]),u=c.get(9001),l=r("area"),h=new Map([l(109401,1e4),l(109402,4046.8564224),l(109403,4046.872609874252),l(109404,1),l(109405,.09290304),l(109406,.09290341161327487),l(109407,.09290137299531805),l(109408,3.34450944),l(109409,3429904),l(109410,1.000027193184865),l(109411,404.6872609874253),l(109412,.04046872609874252),l(109413,2589998.470319522),l(109414,1e6),l(109415,.8361123569578626),l(109416,404.6783807676053),l(109417,.04046783807676053),l(109418,.8361244606523066),l(109419,.09290271785025629),l(109420,404.6842389557165),l(109421,.04046842389557164),l(109422,.83612589696064),l(109423,.0929028774400711),l(109424,404.6849341289498),l(109425,.04046849341289498),l(109426,.836125904805842),l(109427,.09290287831176021),l(109428,404.6849379260275),l(109429,.04046849379260275),l(109430,.09290354800069446),l(109431,.09290274144751023),l(109432,.09290207073852812),l(109433,.09290279616016),l(109434,.09290273520025),l(109435,.836124673027592),l(109436,.8361186366467529),l(109437,.8361251654414399),l(109438,.83612461680225),l(109439,2589988.110336),l(109440,.09290286332673177),l(109441,.09290349665192114),l(109442,.83612736),l(109443,.8361307045194736),l(109444,404.68564224),l(109445,.040468564224),l(109446,.836123702404),l(109447,.09290263360044447),l(109448,404.683871963536),l(109449,.0404683871963536),l(109450,.01),l(109451,1e-4),l(109452,1e-6),l(109453,64516e-8),l(109454,.0006451625806477421),l(109455,25.29285264),l(109456,25.29295381171408),l(109457,3434528.149504),l(109458,3434290.937856),l(109459,2.89612324),l(109460,25e8),l(109461,225e8),l(109462,.7168473118308245),l(109463,100),l(109464,1.244521604938271e-7),l(109465,1e-12),l(109466,1e-18)]),m=h.get(109404)},76061:(t,e,s)=>{s.d(e,{G:()=>n,S:()=>r});class n{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class r extends n{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(t,e,s)=>{s.r(e),s.d(e,{fromExtent:()=>P,fromGeometry:()=>_,fromMultipoint:()=>g,fromPoint:()=>x,fromPolygon:()=>b,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>C,fromSpatialReference:()=>w,getSpatialReference:()=>p,toExtent:()=>v,toGeometry:()=>E,toMultipoint:()=>A,toPoint:()=>G,toPolygon:()=>S,toPolyline:()=>I});var n=s(83661),r=(s(79187),s(55537)),i=s(95213),o=s(88885),a=s(5443),c=s(48526),u=s(86738),l=s(39829),h=s(82799),m=(s(90293),s(83299));const f="_gxVersion",d=2,y=1;function p(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function _(t){switch(t.type){case"point":return x(t);case"multipoint":return g(t);case"polyline":return M(t);case"polygon":return b(t);case"extent":return P(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function P(t){if(!t.getCacheValue(f)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(d,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(y,0,t.zmin,t.zmax),t.setCacheValue(f,e)}return t.getCacheValue(f)}function g(t){if(!t.getCacheValue(f)){const e=new o.M,s=new i.P,n=t.points,r=t.hasM,a=t.hasZ,c=a?3:2;for(let t=0,i=n.length;t<i;t++){const i=n[t];s.setXYCoords(i[0],i[1]),a&&s.setZ(i[2]??0),r&&s.setM(i[c]??NaN),e.add(s)}t.setCacheValue(f,e)}return t.getCacheValue(f)}function x(t){if(!t.getCacheValue(f)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(f,e)}return t.getCacheValue(f)}function b(t){if(!t.getCacheValue(f)){const{curveRings:e,hasM:s,hasZ:n,rings:r}=t,i=(0,m.fromGeometryToGXGeometry)({curveRings:e,hasM:s,hasZ:n,rings:r});t.setCacheValue(f,i)}return t.getCacheValue(f)}function M(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:s,hasZ:n,paths:r}=t,i=(0,m.fromGeometryToGXGeometry)({curvePaths:e,hasM:s,hasZ:n,paths:r});t.setCacheValue(f,i)}return t.getCacheValue(f)}function C(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:s,hasZ:n,paths:r}=t,i=(0,m.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:s,hasZ:n,paths:r});t.setCacheValue(f,i)}return t.getCacheValue(f)}function w(t){return(0,m.fromSpatialReference)(t)}function E(t,e){if(t)switch(t.getGeometryType()){case r.G.enumPoint:return G(t,e);case r.G.enumEnvelope:return v(t,e);case r.G.enumMultiPoint:return A(t,e);case r.G.enumPolyline:return I(t,e);case r.G.enumPolygon:return S(t,e)}return null}function v(t,e){if(t.isEmpty())return null;const s=new a.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),n=t.getDescription();if(n.hasM()){const e=t.queryInterval(d,0);s.mmin=e.vmin,s.mmax=e.vmax}if(n.hasZ()){const e=t.queryInterval(y,0);s.zmin=e.vmin,s.zmax=e.vmax}return s.setCacheValue(f,t),s}function A(t,e){if(t.isEmpty())return null;const s=t.getDescription(),n=s.hasM(),r=s.hasZ(),o=[],a=new i.P;for(let e=0,s=t.getPointCount();e<s;e++){t.getPointByVal(e,a);const s=[a.getX(),a.getY()];r&&s.push(a.getZ()),n&&s.push(a.getM()),o.push(s)}const u=new c.A({hasM:n,hasZ:r,points:o,spatialReference:e});return u.setCacheValue(f,t),u}function G(t,e){if(t instanceof n.P)return new u.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const s=new u.A({x:t.getX(),y:t.getY(),spatialReference:e}),r=t.getDescription();return r.hasM()&&(s.m=t.getM()),r.hasZ()&&(s.z=t.getZ()),s.setCacheValue(f,t),s}function S(t,e){if(t.isEmpty())return null;const s=l.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return s.setCacheValue(f,t),s}function I(t,e){if(t.isEmpty())return null;const s=h.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return s.setCacheValue(f,t),s}},85549:(t,e,s)=>{s.d(e,{executeOffsetJson:()=>u,r:()=>c});var n=s(40547),r=s(66070),i=s(78125),o=s(83299);const a={round:0,bevel:1,miter:2,square:3};function c(t,e,s,r,o,a){e=(0,n.convertToSpatialReferenceUnit)((0,n.toLengthUnit)(s),t.spatialReference,e);const c=(0,i.fromGeometry)(t),u=(0,i.getSpatialReference)(t),h=l(c,(0,i.fromSpatialReference)(u),e,r,o,a);return(0,i.toGeometry)(h,u)}function u(t,e,s,r,i,a){e=(0,n.convertToSpatialReferenceUnit)((0,n.toLengthUnit)(s),t.spatialReference,e);const c=(0,o.fromGeometry)(t),u=c.getGeometry(),h=c.getSpatialReference(),m=l(u,h,e,r,i,a);return(0,o.toGeometry)(m,h)}function l(t,e,s,n,i,o){const c=(0,r.g7)(t,e,s,a[n],i,o);if(!c.isEmpty())return c;{const c=t.clone();c.reverseAllPaths();const u=(0,r.g7)(c,e,-s,a[n],i,o);if(!u.isEmpty())return u.reverseAllPaths(),u}const u=Math.abs(s)/10,l=u/10;let h=o;if("round"===n&&(h+=l),"bevel"===n||"square"===n){const c=(0,r.g7)(t,e,s,a[n="miter"],i,o);if(!c.isEmpty())return c}if("miter"===n){const c=(0,r.g7)(t,e,s,a[n="round"],i,o);if(!c.isEmpty())return c}if("round"===n)for(;h<=u;h+=l){const o=(0,r.g7)(t,e,s,a[n],i,h);if(!o.isEmpty())return o}return null}},85935:(t,e,s)=>{s.d(e,{D$:()=>a,Nh:()=>h,O$:()=>l,mT:()=>u,ps:()=>f});var n=s(799);const r={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};class i extends Error{constructor(...t){super(...t)}}class o extends i{constructor(t,e){super(c(e)+t.message,{cause:t}),this.loc=null,Error.captureStackTrace&&Error.captureStackTrace(this,o),e?.loc&&(this.loc=e.loc)}}class a extends Error{constructor(t,e,s,i){super("Execution error - "+c(s)+(0,n.HC)(r[e],i)),this.loc=null,this.declaredRootClass="esri.arcade.arcadeexecutionerror",Error.captureStackTrace&&Error.captureStackTrace(this,a),s?.loc&&(this.loc=s.loc)}}function c(t){return t&&t.loc?`Line : ${t.loc.start?.line}, ${t.loc.start?.column}: `:""}class u extends Error{constructor(t,e,s,i){super("Compilation error - "+c(s)+(0,n.HC)(r[e],i)),this.loc=null,this.declaredRootClass="esri.arcade.arcadecompilationerror",Error.captureStackTrace&&Error.captureStackTrace(this,u),s?.loc&&(this.loc=s.loc)}}class l extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror",Error.captureStackTrace&&Error.captureStackTrace(this,l)}}function h(t,e,s){return"esri.arcade.arcadeexecutionerror"===s.declaredRootClass||"esri.arcade.arcadecompilationerror"===s.declaredRootClass?null===s.loc&&e?.loc?new o(s,{cause:s}):s:("esri.arcade.featureset.support.featureseterror"===s.declaredRootClass||"esri.arcade.featureset.support.sqlerror"===s.declaredRootClass||s.declaredRootClass,e?.loc?new o(s,{cause:s}):s)}const m={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class f extends Error{constructor(t,e){super((0,n.HC)(m[t],e)),this.declaredRootClass="esri.arcade.arcademoduleerror",Error.captureStackTrace&&Error.captureStackTrace(this,f)}}},92722:(t,e,s)=>{s.d(e,{A:()=>r});var n=s(69397);class r{constructor(t=[],e=[],s=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=s,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:s,hasM:n}){return new r(t,e,s||!1,n||!1)}static fromRect([t,e,s,n]){const i=s-t,o=n-e;return new r([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const s of this.lengths){if(s<3)continue;const{stride:n}=this;let r=this.coords[n*e],i=this.coords[n*e+1];for(let o=1;o<s;o+=1){const s=n*(e+o),a=this.coords[s],c=this.coords[s+1];t+=-.5*(a-r)*(c+i),r=a,i=c}e+=s}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:s}=this;for(const n of this.lengths){for(let r=0;r<n;r++){const n=s*(e+r);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){const t=this.clone(),{coords:e,lengths:s}=t;let n=0;const{stride:r}=this;for(const t of s){for(let s=1;s<t;s++){const t=r*(n+s);e[t]+=e[t-r],e[t+1]+=e[t+1-r]}n+=t}return t}clone(t){if(this.isPoint)return new r([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:s,size:n}=this,i=this.coords.slice(0,n*s);return t?(t.set(i),new r(e,t)):new r(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const s=new Array(e*t);for(let e=0,n=0;e<s.length;e+=t)s[n++]=this.coords[e],s[n++]=this.coords[e+1];return new r(this.lengths,s,!1,!1)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,974,3169,4161,6061,7373,8125],{4197:(e,t,n)=>{n.d(t,{Vj:()=>c,cj:()=>u,jh:()=>o,l5:()=>a,xm:()=>i});var r=n(34275),s=n(9093);function o(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function i(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function a(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function u(e){return[...e]}function c(e){const t=(0,s.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},9093:(e,t,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>s,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:s,create:r,fromValues:function(e,t,n,r,s,o,i,a,u,c,h,l,f,m,g,y){return[e,t,n,r,s,o,i,a,u,c,h,l,f,m,g,y]}},Symbol.toStringTag,{value:"Module"}))},45328:(e,t,n)=>{n.d(t,{execute:()=>r.b});var r=n(90836);n(78125)},69397:(e,t,n)=>{n.d(t,{$B:()=>s,Qf:()=>c,Qh:()=>a,RS:()=>o,Ul:()=>g,ez:()=>f,lM:()=>i,qK:()=>l});var r=n(34275);function s(e){return 32+e.length}const o=16;function i(e){if(!e)return 0;let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=u(e[n],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return c(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return h(e,8);let n=f;for(let r=0;r<t;r++)n+=u(e[r]);return n}(e);let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=u(e[n]));return t}function u(e,t=!0){switch(typeof e){case"object":return t?a(e):l;case"string":return s(e);case"number":return o;case"boolean":return 4;default:return 8}}function c(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+m:Array.isArray(t)?h(t,o):0:0),0)}function h(e,t){return f+e.length*t}const l=32,f=16,m=145,g=64},70328:(e,t,n)=>{n.d(t,{BI:()=>d,DC:()=>l,Ej:()=>m,Ie:()=>x,Jt:()=>M,Ne:()=>g,RF:()=>h,aI:()=>C,fA:()=>i,gE:()=>u,hZ:()=>p,iT:()=>f,is:()=>G,qv:()=>v,vI:()=>y,vY:()=>a,v_:()=>P,vt:()=>o,w1:()=>c});var r=n(5443),s=(n(19419),n(4197));function o(e=P){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function i(e,t,n,r,s,i,a=o()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=s,a[5]=i,a}function a(e,t=o()){return function(e,t,n,r=o()){return p(r,v),function(e,t,n=0,r=t.length/3){let s=e[0],o=e[1],i=e[2],a=e[3],u=e[4],c=e[5];for(let e=0;e<r;e++)s=Math.min(s,t[n+3*e]),o=Math.min(o,t[n+3*e+1]),i=Math.min(i,t[n+3*e+2]),a=Math.max(a,t[n+3*e]),u=Math.max(u,t[n+3*e+1]),c=Math.max(c,t[n+3*e+2]);e[0]=s,e[1]=o,e[2]=i,e[3]=a,e[4]=u,e[5]=c}(r,e,t,n),r}(e,0,e.length/3,t)}function u(e,t=(0,s.jh)(24)){const[n,r,o,i,a,u]=e;return t[0]=n,t[1]=r,t[2]=o,t[3]=n,t[4]=r,t[5]=u,t[6]=n,t[7]=a,t[8]=o,t[9]=n,t[10]=a,t[11]=u,t[12]=i,t[13]=r,t[14]=o,t[15]=i,t[16]=r,t[17]=u,t[18]=i,t[19]=a,t[20]=o,t[21]=i,t[22]=a,t[23]=u,t}function c(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function h(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function m(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function g(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function y(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function x(e){return e?p(e,v):o(v)}function M(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function d(e,t,n,r,s){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function G(e){return 6===e.length}function C(e,t,n){if(null==e||null==t)return e===t;if(!G(e)||!G(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],P=[0,0,0,0,0,0];o()},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>s});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class s extends r{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}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>M,fromGeometry:()=>x,fromMultipoint:()=>d,fromPoint:()=>G,fromPolygon:()=>C,fromPolyline:()=>v,fromPolylineUsingImportOperator:()=>P,fromSpatialReference:()=>V,getSpatialReference:()=>p,toExtent:()=>I,toGeometry:()=>w,toMultipoint:()=>A,toPoint:()=>R,toPolygon:()=>b,toPolyline:()=>Z});var r=n(83661),s=(n(79187),n(55537)),o=n(95213),i=n(88885),a=n(5443),u=n(48526),c=n(86738),h=n(39829),l=n(82799),f=(n(90293),n(83299));const m="_gxVersion",g=2,y=1;function p(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function x(e){switch(e.type){case"point":return G(e);case"multipoint":return d(e);case"polyline":return v(e);case"polygon":return C(e);case"extent":return M(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function M(e){if(!e.getCacheValue(m)){const t=new o.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(g,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(y,0,e.zmin,e.zmax),e.setCacheValue(m,t)}return e.getCacheValue(m)}function d(e){if(!e.getCacheValue(m)){const t=new i.M,n=new o.P,r=e.points,s=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,o=r.length;e<o;e++){const o=r[e];n.setXYCoords(o[0],o[1]),a&&n.setZ(o[2]??0),s&&n.setM(o[u]??NaN),t.add(n)}e.setCacheValue(m,t)}return e.getCacheValue(m)}function G(e){if(!e.getCacheValue(m)){const t=new o.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(m,t)}return e.getCacheValue(m)}function C(e){if(!e.getCacheValue(m)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,o=(0,f.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(m,o)}return e.getCacheValue(m)}function v(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,o=(0,f.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(m,o)}return e.getCacheValue(m)}function P(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,o=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(m,o)}return e.getCacheValue(m)}function V(e){return(0,f.fromSpatialReference)(e)}function w(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return R(e,t);case s.G.enumEnvelope:return I(e,t);case s.G.enumMultiPoint:return A(e,t);case s.G.enumPolyline:return Z(e,t);case s.G.enumPolygon:return b(e,t)}return null}function I(e,t){if(e.isEmpty())return null;const n=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(g,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(y,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(m,e),n}function A(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),s=n.hasZ(),i=[],a=new o.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const c=new u.A({hasM:r,hasZ:s,points:i,spatialReference:t});return c.setCacheValue(m,e),c}function R(e,t){if(e instanceof r.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(m,e),n}function b(e,t){if(e.isEmpty())return null;const n=h.A.fromJSON({...(0,f.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(m,e),n}function Z(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({...(0,f.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(m,e),n}},90836:(e,t,n)=>{n.d(t,{b:()=>a,e:()=>c});var r=n(15756),s=n(78125);class o extends r.n{getOperatorType(){return 2}execute(e,t,n,s){return(0,r.r)(e,t,n,3,s)}}const i=new o;function a(e,t){return i.execute((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(e.spatialReference),null)}const u=i.supportsCurves(),c=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,s.getSpatialReference)(e);return i.accelerateGeometry((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),1)},execute:a,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},92722:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(69397);class s{constructor(e=[],t=[],n=!1,r=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:e,coords:t,hasZ:n,hasM:r}){return new s(e,t,n||!1,r||!1)}static fromRect([e,t,n,r]){const o=n-e,i=r-t;return new s([5],[e,t,o,0,0,i,-o,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*t],o=this.coords[r*t+1];for(let i=1;i<n;i+=1){const n=r*(t+i),a=this.coords[n],u=this.coords[n+1];e+=-.5*(a-s)*(u+o),s=a,o=u}t+=n}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(t+s);e(this.coords[r],this.coords[r+1])}t+=r}}deltaDecode(){const e=this.clone(),{coords:t,lengths:n}=e;let r=0;const{stride:s}=this;for(const e of n){for(let n=1;n<e;n++){const e=s*(r+n);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}r+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:n,size:r}=this,o=this.coords.slice(0,r*n);return e?(e.set(o),new s(t,e)):new s(t,Array.from(o),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const n=new Array(t*e);for(let t=0,r=0;t<n.length;t+=e)n[r++]=this.coords[t],n[r++]=this.coords[t+1];return new s(this.lengths,n,!1,!1)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,3169,4161,4170,6061,7373,8125],{4197:(e,t,n)=>{n.d(t,{Vj:()=>c,cj:()=>u,jh:()=>o,l5:()=>a,xm:()=>i});var r=n(34275),s=n(9093);function o(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function i(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function a(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function u(e){return[...e]}function c(e){const t=(0,s.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},9093:(e,t,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>s,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:s,create:r,fromValues:function(e,t,n,r,s,o,i,a,u,c,h,l,f,m,y,g){return[e,t,n,r,s,o,i,a,u,c,h,l,f,m,y,g]}},Symbol.toStringTag,{value:"Module"}))},43628:(e,t,n)=>{n.d(t,{execute:()=>r.e});var r=n(65416);n(78125)},65416:(e,t,n)=>{n.d(t,{e:()=>i,r:()=>u});var r=n(15756),s=n(78125);const o=new class{supportsCurves(){return!0}getOperatorType(){return 1}execute(e,t,n,s,o){return(0,r.an)(e,t,n,s,o)}isValidDE9IM(e){return 0===(0,r.ao)(e)}accelerateGeometry(e,t,n){return(0,r.ap)(e,t,n)}canAccelerateGeometry(e){return(0,r.aq)(e)}};function i(e,t,n){return o.execute((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(e.spatialReference),n,null)}const a=o.supportsCurves(),u=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:function(e){const t=(0,s.getSpatialReference)(e);return o.accelerateGeometry((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),1)},execute:i,isValidDE9IM:function(e){return o.isValidDE9IM(e)},supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},69397:(e,t,n)=>{n.d(t,{$B:()=>s,Qf:()=>c,Qh:()=>a,RS:()=>o,Ul:()=>y,ez:()=>f,lM:()=>i,qK:()=>l});var r=n(34275);function s(e){return 32+e.length}const o=16;function i(e){if(!e)return 0;let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=u(e[n],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return c(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return h(e,8);let n=f;for(let r=0;r<t;r++)n+=u(e[r]);return n}(e);let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=u(e[n]));return t}function u(e,t=!0){switch(typeof e){case"object":return t?a(e):l;case"string":return s(e);case"number":return o;case"boolean":return 4;default:return 8}}function c(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+m:Array.isArray(t)?h(t,o):0:0),0)}function h(e,t){return f+e.length*t}const l=32,f=16,m=145,y=64},70328:(e,t,n)=>{n.d(t,{BI:()=>d,DC:()=>l,Ej:()=>m,Ie:()=>M,Jt:()=>x,Ne:()=>y,RF:()=>h,aI:()=>C,fA:()=>i,gE:()=>u,hZ:()=>p,iT:()=>f,is:()=>G,qv:()=>V,vI:()=>g,vY:()=>a,v_:()=>v,vt:()=>o,w1:()=>c});var r=n(5443),s=(n(19419),n(4197));function o(e=v){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function i(e,t,n,r,s,i,a=o()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=s,a[5]=i,a}function a(e,t=o()){return function(e,t,n,r=o()){return p(r,V),function(e,t,n=0,r=t.length/3){let s=e[0],o=e[1],i=e[2],a=e[3],u=e[4],c=e[5];for(let e=0;e<r;e++)s=Math.min(s,t[n+3*e]),o=Math.min(o,t[n+3*e+1]),i=Math.min(i,t[n+3*e+2]),a=Math.max(a,t[n+3*e]),u=Math.max(u,t[n+3*e+1]),c=Math.max(c,t[n+3*e+2]);e[0]=s,e[1]=o,e[2]=i,e[3]=a,e[4]=u,e[5]=c}(r,e,t,n),r}(e,0,e.length/3,t)}function u(e,t=(0,s.jh)(24)){const[n,r,o,i,a,u]=e;return t[0]=n,t[1]=r,t[2]=o,t[3]=n,t[4]=r,t[5]=u,t[6]=n,t[7]=a,t[8]=o,t[9]=n,t[10]=a,t[11]=u,t[12]=i,t[13]=r,t[14]=o,t[15]=i,t[16]=r,t[17]=u,t[18]=i,t[19]=a,t[20]=o,t[21]=i,t[22]=a,t[23]=u,t}function c(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function h(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function m(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function y(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function g(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function M(e){return e?p(e,V):o(V)}function x(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function d(e,t,n,r,s){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function G(e){return 6===e.length}function C(e,t,n){if(null==e||null==t)return e===t;if(!G(e)||!G(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const V=[1/0,1/0,1/0,-1/0,-1/0,-1/0],v=[0,0,0,0,0,0];o()},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>s});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class s extends r{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}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>x,fromGeometry:()=>M,fromMultipoint:()=>d,fromPoint:()=>G,fromPolygon:()=>C,fromPolyline:()=>V,fromPolylineUsingImportOperator:()=>v,fromSpatialReference:()=>I,getSpatialReference:()=>p,toExtent:()=>w,toGeometry:()=>P,toMultipoint:()=>A,toPoint:()=>R,toPolygon:()=>E,toPolyline:()=>Z});var r=n(83661),s=(n(79187),n(55537)),o=n(95213),i=n(88885),a=n(5443),u=n(48526),c=n(86738),h=n(39829),l=n(82799),f=(n(90293),n(83299));const m="_gxVersion",y=2,g=1;function p(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function M(e){switch(e.type){case"point":return G(e);case"multipoint":return d(e);case"polyline":return V(e);case"polygon":return C(e);case"extent":return x(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function x(e){if(!e.getCacheValue(m)){const t=new o.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(y,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(g,0,e.zmin,e.zmax),e.setCacheValue(m,t)}return e.getCacheValue(m)}function d(e){if(!e.getCacheValue(m)){const t=new i.M,n=new o.P,r=e.points,s=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,o=r.length;e<o;e++){const o=r[e];n.setXYCoords(o[0],o[1]),a&&n.setZ(o[2]??0),s&&n.setM(o[u]??NaN),t.add(n)}e.setCacheValue(m,t)}return e.getCacheValue(m)}function G(e){if(!e.getCacheValue(m)){const t=new o.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(m,t)}return e.getCacheValue(m)}function C(e){if(!e.getCacheValue(m)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,o=(0,f.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(m,o)}return e.getCacheValue(m)}function V(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,o=(0,f.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(m,o)}return e.getCacheValue(m)}function v(e){if(!e.getCacheValue(m)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,o=(0,f.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(m,o)}return e.getCacheValue(m)}function I(e){return(0,f.fromSpatialReference)(e)}function P(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return R(e,t);case s.G.enumEnvelope:return w(e,t);case s.G.enumMultiPoint:return A(e,t);case s.G.enumPolyline:return Z(e,t);case s.G.enumPolygon:return E(e,t)}return null}function w(e,t){if(e.isEmpty())return null;const n=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(y,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(g,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(m,e),n}function A(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),s=n.hasZ(),i=[],a=new o.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const c=new u.A({hasM:r,hasZ:s,points:i,spatialReference:t});return c.setCacheValue(m,e),c}function R(e,t){if(e instanceof r.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(m,e),n}function E(e,t){if(e.isEmpty())return null;const n=h.A.fromJSON({...(0,f.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(m,e),n}function Z(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({...(0,f.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(m,e),n}},92722:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(69397);class s{constructor(e=[],t=[],n=!1,r=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:e,coords:t,hasZ:n,hasM:r}){return new s(e,t,n||!1,r||!1)}static fromRect([e,t,n,r]){const o=n-e,i=r-t;return new s([5],[e,t,o,0,0,i,-o,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*t],o=this.coords[r*t+1];for(let i=1;i<n;i+=1){const n=r*(t+i),a=this.coords[n],u=this.coords[n+1];e+=-.5*(a-s)*(u+o),s=a,o=u}t+=n}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(t+s);e(this.coords[r],this.coords[r+1])}t+=r}}deltaDecode(){const e=this.clone(),{coords:t,lengths:n}=e;let r=0;const{stride:s}=this;for(const e of n){for(let n=1;n<e;n++){const e=s*(r+n);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}r+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:n,size:r}=this,o=this.coords.slice(0,r*n);return e?(e.set(o),new s(t,e)):new s(t,Array.from(o),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const n=new Array(t*e);for(let t=0,r=0;t<n.length;t+=e)n[r++]=this.coords[t],n[r++]=this.coords[t+1];return new s(this.lengths,n,!1,!1)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,3169,4161,4988,6061,7373,8125],{4197:(e,t,n)=>{n.d(t,{Vj:()=>c,cj:()=>u,jh:()=>s,l5:()=>a,xm:()=>i});var r=n(34275),o=n(9093);function s(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function i(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function a(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function u(e){return[...e]}function c(e){const t=(0,o.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},9093:(e,t,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>o,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,fromValues:function(e,t,n,r,o,s,i,a,u,c,l,h,m,f,g,y){return[e,t,n,r,o,s,i,a,u,c,l,h,m,f,g,y]}},Symbol.toStringTag,{value:"Module"}))},36633:(e,t,n)=>{n.d(t,{O:()=>m});var r=n(55537),o=n(79187),s=n(83661),i=n(15756);function a(){return u(new s.P,-1,Number.NaN)}function u(e,t,n){return{m_coordinate:e.clone(),m_vertexIndex:t,m_geometryIndex:0,m_distance:n,m_bRightSide:!1,isEmpty:c}}function c(){return Number.isNaN(this.m_distance)}function l(e,t,n=-1,a=-1){if(e.isEmpty())return 3;const u=e.getGeometryType();if((0,r.f)(u))return function(e,t,n,o){if(n>=0||o>=0)return(0,r.a)("");if(e.isDegenerate(0))return e.getStartXY().equals(t)?2:3;if(!e.isCurve()){const n=s.P.orientationRobust(t,e.getStartXY(),e.getEndXY());return n<0?1:n>0?0:2}const i=e.getClosestCoordinate(t,!1),a=e.getTangent(i),u=e.getCoord2D(i),c=s.P.orientationRobust(t,u,u.add(a));return c<0?1:c>0?0:2}(e,t,n,a);if(u===r.G.enumPolygon)return function(e,t,n,s){(n>=0||s>=0)&&(0,r.a)("");const a=new o.Envelope2D;e.queryEnvelope(a);const u=(0,i.l)(e,t,0);return 0===u?0:1===u?1:2}(e,t,n,a);if(u===r.G.enumPolyline)return function(e,t,n,o){(n<0&&o>=0||n>=0&&o<0)&&(0,r.a)("");const i=e.querySegmentIterator();if(n<0){let e=Number.MAX_VALUE,r=0;for(;i.nextPath();)for(;i.hasNextSegment();){const a=i.nextSegment(),u=a.getClosestCoordinate(t,!1),c=a.getCoord2D(u),l=s.P.sqrDistance(c,t);l<e?(r=1,n=i.getStartPointIndex(),o=i.getPathIndex(),e=l):l===e&&r++}if(0===r)return 3;if(1===r)return i.resetToVertex(n,o),l(i.nextSegment(),t)}const a=function(e,t,n,r){const o={i1:-1,i2:-1,bRight1:!1,bRight2:!1};if(o.i1=function(e,t,n){for(e.resetToVertex(t,n);e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();for(e.resetToVertex(t,n);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,n,r),-1!==o.i1){t.resetToVertex(o.i1,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r),a=s.P.sqrDistance(i,e);{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),o.bRight1=t.crossProduct(r)<0}if(o.i2=function(e,t){for(e.resetToVertex(t,-1),e.nextSegment();e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,o.i1),-1!==o.i2){t.resetToVertex(o.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if(s.P.sqrDistance(i,e)>a)o.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),o.bRight2=t.crossProduct(r)<0}}if(-1===o.i2&&(o.i2=function(e,t){for(e.resetToVertex(t,-1);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,o.i1),-1!==o.i2)){t.resetToVertex(o.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if(s.P.sqrDistance(i,e)>a)o.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),o.bRight2=t.crossProduct(r)<0;const s=o.i1;o.i1=o.i2,o.i2=s;const a=o.bRight1;o.bRight1=o.bRight2,o.bRight2=a}}}return o}(t,i,n,o);if(-1!==a.i1&&-1===a.i2)return a.bRight1?1:0;if(-1!==a.i1&&-1!==a.i2){if(a.bRight1===a.bRight2)return a.bRight1?1:0;{i.resetToVertex(a.i1,-1);const e=i.nextSegment().getTangent(1);i.resetToVertex(a.i2,-1);const t=i.nextSegment().getTangent(0);return e.crossProduct(t)>=0?1:0}}return i.resetToVertex(n,o),l(i.nextSegment(),t)}(e,t,n,a);if(u===r.G.enumEnvelope){const n=new o.Envelope2D;return e.queryEnvelope(n),n.contains(t)?n.containsExclusive(t)?1:2:0}return 3}var h=n(95213);class m{getOperatorType(){return 10500}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}getNearestCoordinate(e,t,n,o){if(t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(e,t);case r.G.enumMultiPoint:return this.multiVertexGetNearestVertex(e,t);case r.G.enumPolyline:case r.G.enumPolygon:return this.multiPathGetNearestCoordinate(e,t,n,o);default:(0,r.t)("")}}getNearestVertex(e,t){if(t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(e,t);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertex(e,t);default:(0,r.t)("")}}getNearestVertices(e,t,n,o){if(0===o&&(0,r.a)(""),t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return[];switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertices(e,t,n,o);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertices(e,t,n,o);default:(0,r.t)("")}}multiPathGetNearestCoordinate(e,t,n,a){if(e.getGeometryType()===r.G.enumPolygon&&n){const n=new o.Envelope2D;e.queryEnvelope(n);const r=(0,h.a)(null,n,!1);let s;if(s=(0,i.l)(e,t,a?0:r),0!==s){const e=u(t,-1,0);return a&&(e.m_bRightSide=!0),e}}const c=e.querySegmentIterator(),m=new s.P;let f=-1,g=-1,y=Number.MAX_VALUE,d=0;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment(),n=e.getClosestCoordinate(t,!1),r=e.getCoord2D(n),o=s.P.sqrDistance(r,t);o<y?(d=1,m.assign(r),f=c.getStartPointIndex(),g=c.getPathIndex(),y=o):o===y&&d++}-1===f&&(0,r.a)("");const x=u(m,f,Math.sqrt(y));if(a)if(e.getGeometryType()!==r.G.enumPolygon){let n=!1;if(d>1){const r=l(e,t,f,g);n=0!==r&&3!==r}else c.resetToVertex(f,g),n=0!==l(c.nextSegment(),t);x.m_bRightSide=n}else n||0!==(0,i.l)(e,t,0)&&(x.m_bRightSide=!0);return x}pointGetNearestVertex(e,t){const n=e.getXY();return u(n,0,s.P.distance(n,t))}multiVertexGetNearestVertex(e,t){const n=e.getAttributeStreamRef(0),r=e.getPointCount();let o=-1;const i=new s.P;let a=Number.MAX_VALUE;const c=new s.P;for(let e=0;e<r;e++){n.queryPoint2D(2*e,c);const r=s.P.sqrDistance(c,t);r<a&&(i.assign(c),o=e,a=r)}return u(i,o,Math.sqrt(a))}pointGetNearestVertices(e,t,n,r){const o=[];if(0!==r){const r=n*n,i=e.getXY(),a=s.P.sqrDistance(i,t);a<=r&&o.push(u(i,0,Math.sqrt(a)))}return o}multiVertexGetNearestVertices(e,t,n,r){const o=[];if(0!==r){const i=e.getAttributeStreamRef(0),a=e.getPointCount();o.length=r+1;const c=n*n;for(let e=0;e<a;e++){const n=i.read(2*e),r=i.read(2*e+1),a=t.x-n,l=t.y-r,h=a*a+l*l;h<=c&&o.push(u(s.P.construct(n,r),e,Math.sqrt(h)))}o.sort((e,t)=>e.m_distance-t.m_distance)}return o.slice(0,r)}}},64064:(e,t,n)=>{n.d(t,{executeNearestVertex:()=>u});var r=n(95213),o=n(36633),s=n(78125);function i(e,t,n){if(e.getPointCount()<=0)return"left";const r=e.querySegmentIteratorAtVertex(n),o=r.hasPreviousSegment()?r.previousSegment():r.nextSegment();return function(e,t,n){const r=(t.x-e.x)*(n.y-e.y)-(n.x-e.x)*(t.y-e.y);return r>0?"left":r<0?"right":"straddle"}(o.getStartXY(),o.getEndXY(),t)}const a=new o.O;function u(e,t){const n=(0,s.fromGeometry)(e),o=(0,s.fromPoint)(t).getXY(),u=a.getNearestVertex(n,o);if(u.isEmpty())return null;switch(e.type){case"point":return{coordinate:e,distance:u.m_distance,sideOfLine:0===u.m_distance?"straddle":"left"};case"multipoint":{const t=new r.P;return n.getPointByVal(u.m_vertexIndex,t),{coordinate:(0,s.toPoint)(t,(0,s.getSpatialReference)(e)),distance:u.m_distance,sideOfLine:0===u.m_distance?"straddle":"left"}}case"polyline":case"polygon":{const t=new r.P;return n.getPointByVal(u.m_vertexIndex,t),{coordinate:(0,s.toPoint)(t,(0,s.getSpatialReference)(e)),distance:u.m_distance,sideOfLine:i(n,o,u.m_vertexIndex)}}default:throw new Error(`Unsupported geometry type: ${e.type}`)}}},69397:(e,t,n)=>{n.d(t,{$B:()=>o,Qf:()=>c,Qh:()=>a,RS:()=>s,Ul:()=>g,ez:()=>m,lM:()=>i,qK:()=>h});var r=n(34275);function o(e){return 32+e.length}const s=16;function i(e){if(!e)return 0;let t=h;for(const n in e)e.hasOwnProperty(n)&&(t+=u(e[n],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return c(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let n=m;for(let r=0;r<t;r++)n+=u(e[r]);return n}(e);let t=h;for(const n in e)e.hasOwnProperty(n)&&(t+=u(e[n]));return t}function u(e,t=!0){switch(typeof e){case"object":return t?a(e):h;case"string":return o(e);case"number":return s;case"boolean":return 4;default:return 8}}function c(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+f:Array.isArray(t)?l(t,s):0:0),0)}function l(e,t){return m+e.length*t}const h=32,m=16,f=145,g=64},70328:(e,t,n)=>{n.d(t,{BI:()=>P,DC:()=>h,Ej:()=>f,Ie:()=>x,Jt:()=>p,Ne:()=>g,RF:()=>l,aI:()=>V,fA:()=>i,gE:()=>u,hZ:()=>d,iT:()=>m,is:()=>G,qv:()=>M,vI:()=>y,vY:()=>a,v_:()=>N,vt:()=>s,w1:()=>c});var r=n(5443),o=(n(19419),n(4197));function s(e=N){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function i(e,t,n,r,o,i,a=s()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=o,a[5]=i,a}function a(e,t=s()){return function(e,t,n,r=s()){return d(r,M),function(e,t,n=0,r=t.length/3){let o=e[0],s=e[1],i=e[2],a=e[3],u=e[4],c=e[5];for(let e=0;e<r;e++)o=Math.min(o,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),i=Math.min(i,t[n+3*e+2]),a=Math.max(a,t[n+3*e]),u=Math.max(u,t[n+3*e+1]),c=Math.max(c,t[n+3*e+2]);e[0]=o,e[1]=s,e[2]=i,e[3]=a,e[4]=u,e[5]=c}(r,e,t,n),r}(e,0,e.length/3,t)}function u(e,t=(0,o.jh)(24)){const[n,r,s,i,a,u]=e;return t[0]=n,t[1]=r,t[2]=s,t[3]=n,t[4]=r,t[5]=u,t[6]=n,t[7]=a,t[8]=s,t[9]=n,t[10]=a,t[11]=u,t[12]=i,t[13]=r,t[14]=s,t[15]=i,t[16]=r,t[17]=u,t[18]=i,t[19]=a,t[20]=s,t[21]=i,t[22]=a,t[23]=u,t}function c(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function h(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function m(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function g(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function y(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function d(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function x(e){return e?d(e,M):s(M)}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function P(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=o,e[5]=Number.POSITIVE_INFINITY,e}function G(e){return 6===e.length}function V(e,t,n){if(null==e||null==t)return e===t;if(!G(e)||!G(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const M=[1/0,1/0,1/0,-1/0,-1/0,-1/0],N=[0,0,0,0,0,0];s()},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>o});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class o extends r{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}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>p,fromGeometry:()=>x,fromMultipoint:()=>P,fromPoint:()=>G,fromPolygon:()=>V,fromPolyline:()=>M,fromPolylineUsingImportOperator:()=>N,fromSpatialReference:()=>S,getSpatialReference:()=>d,toExtent:()=>v,toGeometry:()=>C,toMultipoint:()=>b,toPoint:()=>w,toPolygon:()=>I,toPolyline:()=>R});var r=n(83661),o=(n(79187),n(55537)),s=n(95213),i=n(88885),a=n(5443),u=n(48526),c=n(86738),l=n(39829),h=n(82799),m=(n(90293),n(83299));const f="_gxVersion",g=2,y=1;function d(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function x(e){switch(e.type){case"point":return G(e);case"multipoint":return P(e);case"polyline":return M(e);case"polygon":return V(e);case"extent":return p(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function p(e){if(!e.getCacheValue(f)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(g,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(y,0,e.zmin,e.zmax),e.setCacheValue(f,t)}return e.getCacheValue(f)}function P(e){if(!e.getCacheValue(f)){const t=new i.M,n=new s.P,r=e.points,o=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,s=r.length;e<s;e++){const s=r[e];n.setXYCoords(s[0],s[1]),a&&n.setZ(s[2]??0),o&&n.setM(s[u]??NaN),t.add(n)}e.setCacheValue(f,t)}return e.getCacheValue(f)}function G(e){if(!e.getCacheValue(f)){const t=new s.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(f,t)}return e.getCacheValue(f)}function V(e){if(!e.getCacheValue(f)){const{curveRings:t,hasM:n,hasZ:r,rings:o}=e,s=(0,m.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:o});e.setCacheValue(f,s)}return e.getCacheValue(f)}function M(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,s=(0,m.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(f,s)}return e.getCacheValue(f)}function N(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,s=(0,m.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(f,s)}return e.getCacheValue(f)}function S(e){return(0,m.fromSpatialReference)(e)}function C(e,t){if(e)switch(e.getGeometryType()){case o.G.enumPoint:return w(e,t);case o.G.enumEnvelope:return v(e,t);case o.G.enumMultiPoint:return b(e,t);case o.G.enumPolyline:return R(e,t);case o.G.enumPolygon:return I(e,t)}return null}function v(e,t){if(e.isEmpty())return null;const n=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(g,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(y,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(f,e),n}function b(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),o=n.hasZ(),i=[],a=new s.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];o&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const c=new u.A({hasM:r,hasZ:o,points:i,spatialReference:t});return c.setCacheValue(f,e),c}function w(e,t){if(e instanceof r.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),o=e.getDescription();return o.hasM()&&(n.m=e.getM()),o.hasZ()&&(n.z=e.getZ()),n.setCacheValue(f,e),n}function I(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({...(0,m.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(f,e),n}function R(e,t){if(e.isEmpty())return null;const n=h.A.fromJSON({...(0,m.toGeometry)(e,null),spatialReference:t});return n.setCacheValue(f,e),n}},92722:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(69397);class o{constructor(e=[],t=[],n=!1,r=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:e,coords:t,hasZ:n,hasM:r}){return new o(e,t,n||!1,r||!1)}static fromRect([e,t,n,r]){const s=n-e,i=r-t;return new o([5],[e,t,s,0,0,i,-s,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let o=this.coords[r*t],s=this.coords[r*t+1];for(let i=1;i<n;i+=1){const n=r*(t+i),a=this.coords[n],u=this.coords[n+1];e+=-.5*(a-o)*(u+s),o=a,s=u}t+=n}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let o=0;o<r;o++){const r=n*(t+o);e(this.coords[r],this.coords[r+1])}t+=r}}deltaDecode(){const e=this.clone(),{coords:t,lengths:n}=e;let r=0;const{stride:o}=this;for(const e of n){for(let n=1;n<e;n++){const e=o*(r+n);t[e]+=t[e-o],t[e+1]+=t[e+1-o]}r+=e}return e}clone(e){if(this.isPoint)return new o([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:n,size:r}=this,s=this.coords.slice(0,r*n);return e?(e.set(s),new o(t,e)):new o(t,Array.from(s),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const n=new Array(t*e);for(let t=0,r=0;t<n.length;t+=e)n[r++]=this.coords[t],n[r++]=this.coords[t+1];return new o(this.lengths,n,!1,!1)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,3169,4161,6061,7373,8125,8584],{4197:(t,e,n)=>{n.d(e,{Vj:()=>c,cj:()=>a,jh:()=>i,l5:()=>u,xm:()=>o});var r=n(34275),s=n(9093);function i(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function u(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function a(t){return[...t]}function c(t){const e=(0,s.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},5874:(t,e,n)=>{n.d(e,{isSimple:()=>i}),n(76061);const r=new(n(98783).O);var s=n(78125);function i(t,e){return function(t,e,n,s){return r.isSimple(t,e,n,s,null)}((0,s.fromGeometry)(t),(0,s.fromSpatialReference)((0,s.getSpatialReference)(t)),null!=e,e??null)}r.supportsCurves()},9093:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>s,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:r,fromValues:function(t,e,n,r,s,i,o,u,a,c,h,l,m,f,y,g){return[t,e,n,r,s,i,o,u,a,c,h,l,m,f,y,g]}},Symbol.toStringTag,{value:"Module"}))},69397:(t,e,n)=>{n.d(e,{$B:()=>s,Qf:()=>c,Qh:()=>u,RS:()=>i,Ul:()=>y,ez:()=>m,lM:()=>o,qK:()=>l});var r=n(34275);function s(t){return 32+t.length}const i=16;function o(t){if(!t)return 0;let e=l;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function u(t){if(!t)return 0;if("number"==typeof t[0])return c(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let n=m;for(let r=0;r<e;r++)n+=a(t[r]);return n}(t);let e=l;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?u(t):l;case"string":return s(t);case"number":return i;case"boolean":return 4;default:return 8}}function c(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,i):0:0),0)}function h(t,e){return m+t.length*e}const l=32,m=16,f=145,y=64},70328:(t,e,n)=>{n.d(e,{BI:()=>d,DC:()=>l,Ej:()=>f,Ie:()=>x,Jt:()=>M,Ne:()=>y,RF:()=>h,aI:()=>C,fA:()=>o,gE:()=>a,hZ:()=>p,iT:()=>m,is:()=>G,qv:()=>w,vI:()=>g,vY:()=>u,v_:()=>I,vt:()=>i,w1:()=>c});var r=n(5443),s=(n(19419),n(4197));function i(t=I){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,n,r,s,o,u=i()){return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=s,u[5]=o,u}function u(t,e=i()){return function(t,e,n,r=i()){return p(r,w),function(t,e,n=0,r=e.length/3){let s=t[0],i=t[1],o=t[2],u=t[3],a=t[4],c=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[n+3*t]),i=Math.min(i,e[n+3*t+1]),o=Math.min(o,e[n+3*t+2]),u=Math.max(u,e[n+3*t]),a=Math.max(a,e[n+3*t+1]),c=Math.max(c,e[n+3*t+2]);t[0]=s,t[1]=i,t[2]=o,t[3]=u,t[4]=a,t[5]=c}(r,t,e,n),r}(t,0,t.length/3,e)}function a(t,e=(0,s.jh)(24)){const[n,r,i,o,u,a]=t;return e[0]=n,e[1]=r,e[2]=i,e[3]=n,e[4]=r,e[5]=a,e[6]=n,e[7]=u,e[8]=i,e[9]=n,e[10]=u,e[11]=a,e[12]=o,e[13]=r,e[14]=i,e[15]=o,e[16]=r,e[17]=a,e[18]=o,e[19]=u,e[20]=i,e[21]=o,e[22]=u,e[23]=a,e}function c(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function m(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function f(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function y(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function g(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function x(t){return t?p(t,w):i(w)}function M(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function d(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function G(t){return 6===t.length}function C(t,e,n){if(null==t||null==e)return t===e;if(!G(t)||!G(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],I=[0,0,0,0,0,0];i()},76061:(t,e,n)=>{n.d(e,{G:()=>r,S:()=>s});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class s extends r{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(t,e,n)=>{n.r(e),n.d(e,{fromExtent:()=>M,fromGeometry:()=>x,fromMultipoint:()=>d,fromPoint:()=>G,fromPolygon:()=>C,fromPolyline:()=>w,fromPolylineUsingImportOperator:()=>I,fromSpatialReference:()=>v,getSpatialReference:()=>p,toExtent:()=>P,toGeometry:()=>V,toMultipoint:()=>_,toPoint:()=>A,toPolygon:()=>R,toPolyline:()=>Z});var r=n(83661),s=(n(79187),n(55537)),i=n(95213),o=n(88885),u=n(5443),a=n(48526),c=n(86738),h=n(39829),l=n(82799),m=(n(90293),n(83299));const f="_gxVersion",y=2,g=1;function p(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function x(t){switch(t.type){case"point":return G(t);case"multipoint":return d(t);case"polyline":return w(t);case"polygon":return C(t);case"extent":return M(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function M(t){if(!t.getCacheValue(f)){const e=new i.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(y,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(g,0,t.zmin,t.zmax),t.setCacheValue(f,e)}return t.getCacheValue(f)}function d(t){if(!t.getCacheValue(f)){const e=new o.M,n=new i.P,r=t.points,s=t.hasM,u=t.hasZ,a=u?3:2;for(let t=0,i=r.length;t<i;t++){const i=r[t];n.setXYCoords(i[0],i[1]),u&&n.setZ(i[2]??0),s&&n.setM(i[a]??NaN),e.add(n)}t.setCacheValue(f,e)}return t.getCacheValue(f)}function G(t){if(!t.getCacheValue(f)){const e=new i.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(f,e)}return t.getCacheValue(f)}function C(t){if(!t.getCacheValue(f)){const{curveRings:e,hasM:n,hasZ:r,rings:s}=t,i=(0,m.fromGeometryToGXGeometry)({curveRings:e,hasM:n,hasZ:r,rings:s});t.setCacheValue(f,i)}return t.getCacheValue(f)}function w(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,i=(0,m.fromGeometryToGXGeometry)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(f,i)}return t.getCacheValue(f)}function I(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,i=(0,m.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(f,i)}return t.getCacheValue(f)}function v(t){return(0,m.fromSpatialReference)(t)}function V(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return A(t,e);case s.G.enumEnvelope:return P(t,e);case s.G.enumMultiPoint:return _(t,e);case s.G.enumPolyline:return Z(t,e);case s.G.enumPolygon:return R(t,e)}return null}function P(t,e){if(t.isEmpty())return null;const n=new u.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),r=t.getDescription();if(r.hasM()){const e=t.queryInterval(y,0);n.mmin=e.vmin,n.mmax=e.vmax}if(r.hasZ()){const e=t.queryInterval(g,0);n.zmin=e.vmin,n.zmax=e.vmax}return n.setCacheValue(f,t),n}function _(t,e){if(t.isEmpty())return null;const n=t.getDescription(),r=n.hasM(),s=n.hasZ(),o=[],u=new i.P;for(let e=0,n=t.getPointCount();e<n;e++){t.getPointByVal(e,u);const n=[u.getX(),u.getY()];s&&n.push(u.getZ()),r&&n.push(u.getM()),o.push(n)}const c=new a.A({hasM:r,hasZ:s,points:o,spatialReference:e});return c.setCacheValue(f,t),c}function A(t,e){if(t instanceof r.P)return new c.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const n=new c.A({x:t.getX(),y:t.getY(),spatialReference:e}),s=t.getDescription();return s.hasM()&&(n.m=t.getM()),s.hasZ()&&(n.z=t.getZ()),n.setCacheValue(f,t),n}function R(t,e){if(t.isEmpty())return null;const n=h.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(f,t),n}function Z(t,e){if(t.isEmpty())return null;const n=l.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(f,t),n}},92722:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(69397);class s{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new s(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const i=n-t,o=r-e;return new s([5],[t,e,i,0,0,o,-i,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*e],i=this.coords[r*e+1];for(let o=1;o<n;o+=1){const n=r*(e+o),u=this.coords[n],a=this.coords[n+1];t+=-.5*(u-s)*(a+i),s=u,i=a}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:s}=this;for(const t of n){for(let n=1;n<t;n++){const t=s*(r+n);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,i=this.coords.slice(0,r*n);return t?(t.set(i),new s(e,t)):new s(e,Array.from(i),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new s(this.lengths,n,!1,!1)}}},98783:(t,e,n)=>{n.d(e,{O:()=>o});var r=n(76061),s=n(55537),i=n(15756);class o{getOperatorType(){return 10104}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}isSimple(t,e,n,r,s){return 5===(0,i.s)(t,e,n,r,s)}executeMany(t,e,n,r){return new u(t,e,n,r)}execute(t,e,n,i){const o=new r.S([t]),u=this.executeMany(o,e,n,i).next();return u||(0,s.d)("null output"),u}}class u extends r.G{constructor(t,e,n,r){super(),t||(0,s.a)(""),this.m_progressTracker=r,this.m_bForceSimplify=n,this.m_index=-1,this.m_inputGeometryCursor=t,this.m_spatialReference=e}next(){const t=this.m_inputGeometryCursor.next();return t?((0,s.c)(t),this.m_index=this.m_inputGeometryCursor.getGeometryID(),this.simplify(t)):null}getGeometryID(){return this.m_index}tock(){return!1}getRank(){return 1}simplify(t){return t||(0,s.a)(""),(0,i.t)(t,this.m_spatialReference,this.m_bForceSimplify,this.m_progressTracker)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[189,3169,4161,4741,6061,7373,8125],{4197:(t,e,n)=>{n.d(e,{Vj:()=>a,cj:()=>c,jh:()=>o,l5:()=>u,xm:()=>i});var r=n(34275),s=n(9093);function o(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function i(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function u(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function c(t){return[...t]}function a(t){const e=(0,s.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},9093:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>s,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:s,create:r,fromValues:function(t,e,n,r,s,o,i,u,c,a,h,l,m,f,y,g){return[t,e,n,r,s,o,i,u,c,a,h,l,m,f,y,g]}},Symbol.toStringTag,{value:"Module"}))},37817:(t,e,n)=>{n.d(e,{execute:()=>r.e}),n(4576),n(90756),n(78125);var r=n(68925)},68925:(t,e,n)=>{n.d(e,{c:()=>c,e:()=>i});var r=n(4576),s=n(90756),o=n(78125);function i(t,e){const n=(0,o.getSpatialReference)(t);return(0,s.g)((0,o.fromGeometry)(t),(0,o.fromPolyline)(e),(0,o.fromSpatialReference)(n)).map(t=>(0,o.toGeometry)(t,n)).filter(r.Ru)}const u=(0,s.f)(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:i,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},69397:(t,e,n)=>{n.d(e,{$B:()=>s,Qf:()=>a,Qh:()=>u,RS:()=>o,Ul:()=>y,ez:()=>m,lM:()=>i,qK:()=>l});var r=n(34275);function s(t){return 32+t.length}const o=16;function i(t){if(!t)return 0;let e=l;for(const n in t)t.hasOwnProperty(n)&&(e+=c(t[n],!1));return e}function u(t){if(!t)return 0;if("number"==typeof t[0])return a(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let n=m;for(let r=0;r<e;r++)n+=c(t[r]);return n}(t);let e=l;for(const n in t)t.hasOwnProperty(n)&&(e+=c(t[n]));return e}function c(t,e=!0){switch(typeof t){case"object":return e?u(t):l;case"string":return s(t);case"number":return o;case"boolean":return 4;default:return 8}}function a(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+f:Array.isArray(e)?h(e,o):0:0),0)}function h(t,e){return m+t.length*e}const l=32,m=16,f=145,y=64},70328:(t,e,n)=>{n.d(e,{BI:()=>x,DC:()=>l,Ej:()=>f,Ie:()=>p,Jt:()=>_,Ne:()=>y,RF:()=>h,aI:()=>G,fA:()=>i,gE:()=>c,hZ:()=>d,iT:()=>m,is:()=>C,qv:()=>v,vI:()=>g,vY:()=>u,v_:()=>M,vt:()=>o,w1:()=>a});var r=n(5443),s=(n(19419),n(4197));function o(t=M){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function i(t,e,n,r,s,i,u=o()){return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=s,u[5]=i,u}function u(t,e=o()){return function(t,e,n,r=o()){return d(r,v),function(t,e,n=0,r=e.length/3){let s=t[0],o=t[1],i=t[2],u=t[3],c=t[4],a=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[n+3*t]),o=Math.min(o,e[n+3*t+1]),i=Math.min(i,e[n+3*t+2]),u=Math.max(u,e[n+3*t]),c=Math.max(c,e[n+3*t+1]),a=Math.max(a,e[n+3*t+2]);t[0]=s,t[1]=o,t[2]=i,t[3]=u,t[4]=c,t[5]=a}(r,t,e,n),r}(t,0,t.length/3,e)}function c(t,e=(0,s.jh)(24)){const[n,r,o,i,u,c]=t;return e[0]=n,e[1]=r,e[2]=o,e[3]=n,e[4]=r,e[5]=c,e[6]=n,e[7]=u,e[8]=o,e[9]=n,e[10]=u,e[11]=c,e[12]=i,e[13]=r,e[14]=o,e[15]=i,e[16]=r,e[17]=c,e[18]=i,e[19]=u,e[20]=o,e[21]=i,e[22]=u,e[23]=c,e}function a(t,e){const n=isFinite(t[2])||isFinite(t[5]);return new r.A(n?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function l(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function m(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function f(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function y(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function g(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function p(t){return t?d(t,v):o(v)}function _(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function x(t,e,n,r,s){return t[0]=e,t[1]=n,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=s,t[5]=Number.POSITIVE_INFINITY,t}function C(t){return 6===t.length}function G(t,e,n){if(null==t||null==e)return t===e;if(!C(t)||!C(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];o()},76061:(t,e,n)=>{n.d(e,{G:()=>r,S:()=>s});class r{*[Symbol.iterator](){let t=this.next();for(;t;)yield t,t=this.next()}}class s extends r{constructor(t){super(),this.m_iGeom=-1,this.m_aGeoms=t?t.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const t=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,t}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(t,e,n)=>{n.r(e),n.d(e,{fromExtent:()=>_,fromGeometry:()=>p,fromMultipoint:()=>x,fromPoint:()=>C,fromPolygon:()=>G,fromPolyline:()=>v,fromPolylineUsingImportOperator:()=>M,fromSpatialReference:()=>w,getSpatialReference:()=>d,toExtent:()=>P,toGeometry:()=>E,toMultipoint:()=>I,toPoint:()=>V,toPolygon:()=>A,toPolyline:()=>b});var r=n(83661),s=(n(79187),n(55537)),o=n(95213),i=n(88885),u=n(5443),c=n(48526),a=n(86738),h=n(39829),l=n(82799),m=(n(90293),n(83299));const f="_gxVersion",y=2,g=1;function d(t){return Array.isArray(t)?t[0].spatialReference:t.spatialReference}function p(t){switch(t.type){case"point":return C(t);case"multipoint":return x(t);case"polyline":return v(t);case"polygon":return G(t);case"extent":return _(t);default:throw new Error(`Unsupported geometry type: ${t.type}`)}}function _(t){if(!t.getCacheValue(f)){const e=new o.E;e.setCoords(t.xmin,t.ymin,t.xmax,t.ymax),t.hasM&&e.setInterval(y,0,t.mmin,t.mmax),t.hasZ&&e.setInterval(g,0,t.zmin,t.zmax),t.setCacheValue(f,e)}return t.getCacheValue(f)}function x(t){if(!t.getCacheValue(f)){const e=new i.M,n=new o.P,r=t.points,s=t.hasM,u=t.hasZ,c=u?3:2;for(let t=0,o=r.length;t<o;t++){const o=r[t];n.setXYCoords(o[0],o[1]),u&&n.setZ(o[2]??0),s&&n.setM(o[c]??NaN),e.add(n)}t.setCacheValue(f,e)}return t.getCacheValue(f)}function C(t){if(!t.getCacheValue(f)){const e=new o.P;e.setXYCoords(t.x,t.y),t.hasM&&e.setM(t.m),t.hasZ&&e.setZ(t.z),t.setCacheValue(f,e)}return t.getCacheValue(f)}function G(t){if(!t.getCacheValue(f)){const{curveRings:e,hasM:n,hasZ:r,rings:s}=t,o=(0,m.fromGeometryToGXGeometry)({curveRings:e,hasM:n,hasZ:r,rings:s});t.setCacheValue(f,o)}return t.getCacheValue(f)}function v(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,o=(0,m.fromGeometryToGXGeometry)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(f,o)}return t.getCacheValue(f)}function M(t){if(!t.getCacheValue(f)){const{curvePaths:e,hasM:n,hasZ:r,paths:s}=t,o=(0,m.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:e,hasM:n,hasZ:r,paths:s});t.setCacheValue(f,o)}return t.getCacheValue(f)}function w(t){return(0,m.fromSpatialReference)(t)}function E(t,e){if(t)switch(t.getGeometryType()){case s.G.enumPoint:return V(t,e);case s.G.enumEnvelope:return P(t,e);case s.G.enumMultiPoint:return I(t,e);case s.G.enumPolyline:return b(t,e);case s.G.enumPolygon:return A(t,e)}return null}function P(t,e){if(t.isEmpty())return null;const n=new u.A({xmin:t.getXMin(),ymin:t.getYMin(),xmax:t.getXMax(),ymax:t.getYMax(),spatialReference:e}),r=t.getDescription();if(r.hasM()){const e=t.queryInterval(y,0);n.mmin=e.vmin,n.mmax=e.vmax}if(r.hasZ()){const e=t.queryInterval(g,0);n.zmin=e.vmin,n.zmax=e.vmax}return n.setCacheValue(f,t),n}function I(t,e){if(t.isEmpty())return null;const n=t.getDescription(),r=n.hasM(),s=n.hasZ(),i=[],u=new o.P;for(let e=0,n=t.getPointCount();e<n;e++){t.getPointByVal(e,u);const n=[u.getX(),u.getY()];s&&n.push(u.getZ()),r&&n.push(u.getM()),i.push(n)}const a=new c.A({hasM:r,hasZ:s,points:i,spatialReference:e});return a.setCacheValue(f,t),a}function V(t,e){if(t instanceof r.P)return new a.A({x:t.x,y:t.y,spatialReference:e});if(t.isEmpty())return null;const n=new a.A({x:t.getX(),y:t.getY(),spatialReference:e}),s=t.getDescription();return s.hasM()&&(n.m=t.getM()),s.hasZ()&&(n.z=t.getZ()),n.setCacheValue(f,t),n}function A(t,e){if(t.isEmpty())return null;const n=h.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(f,t),n}function b(t,e){if(t.isEmpty())return null;const n=l.A.fromJSON({...(0,m.toGeometry)(t,null),spatialReference:e});return n.setCacheValue(f,t),n}},90756:(t,e,n)=>{n.d(e,{g:()=>m,f:()=>f});var r=n(76061),s=n(55537),o=n(88885),i=n(95213),u=n(15756),c=u.C;function a(t,e){return{m_geometry:t,m_side:e}}class h extends r.G{constructor(t,e,n,r,s){super(),this.m_cutIndex=-1,this.m_cuts=[],this.m_progressTracker=s,this.m_cuttee=e.clone(),this.m_cutter=new o.P({copy:n}),this.m_bConsiderTouch=t;const u=(0,i.g)(e,n);this.m_tolerance=(0,i.c)(r,u,!0)}next(){return-1===this.m_cutIndex&&this.generateCuts(),++this.m_cutIndex<this.m_cuts.length?this.m_cuts[this.m_cutIndex]:null}getGeometryID(){return this.m_cutIndex}tock(){return!0}getRank(){return 1}generateCuts(){switch(this.m_cuttee.getGeometryType()){case s.G.enumPolyline:this.generatePolylineCuts();break;case s.G.enumPolygon:this.generatePolygonCuts()}}generatePolylineCuts(){const t=new o.P,e=new o.P,n=new o.P;this.m_cuts.length=0,this.m_cuts.push(t),this.m_cuts.push(e);const r=[];!function(t,e,n,r,s,i){if(e.isEmpty()){const t=a(e,0);return void s.push(t)}if(n.isEmpty()){const t=a(e,0);return void s.push(t)}const h=[],l=new o.E;{const o=l.createGeometryUserIndex(),m=l.addGeometry(e),f=l.addGeometry(n),y=new u.T(i);let g=0,d=null;if(l.hasCurves()){d=new c;const t=l.getEnvelope2D(i);g=(0,u.u)(r.total());const e=(0,u.v)(r.total(),t);(0,u.w)(l,e,r.total(),12e3,d,null,i)}l.dbgVerifyCurves(),y.setEditShapeCrackAndCluster(l,r),y.cut(t,o,m,f,h);for(const t of h){null!==d&&d.stitchCurves(l,t,g,!1);const e=a(l.getGeometry(t),(0,u.x)(l.getGeometryUserIndex(t,o)));s.push(e)}null!==d&&d.clearStitcher(l)}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let o=0;o<r.length;o++){const i=r[o];1===i.m_side?t.add(i.m_geometry,!1):2===i.m_side||4===i.m_side?e.add(i.m_geometry,!1):3===i.m_side?this.m_cuts.push(i.m_geometry):0===i.m_side?n.add(i.m_geometry,!1):(0,s.d)("")}n.isEmpty()||t.isEmpty()&&e.isEmpty()&&!(this.m_cuts.length>=3)||this.m_cuts.push(n),t.isEmpty()&&e.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}generatePolygonCuts(){const t=new o.a,e=new o.a,n=new o.a;this.m_cuts.length=0,this.m_cuts.push(t),this.m_cuts.push(e);const r=[];!function(t,e,n,r,s,i){if(e.isEmpty()){const t=a(e,0);return void s.push(t)}if(n.isEmpty()){const t=a(e,0);return void s.push(t)}const h=[],l=new o.E;{const t=l.createGeometryUserIndex(),m=l.addGeometry(e),f=l.addGeometry(n),y=new u.T(i);let g=0,d=null;if(l.hasCurves()){d=new c;const t=l.getEnvelope2D(i);g=(0,u.u)(r.total());const e=(0,u.v)(r.total(),t);(0,u.w)(l,e,r.total(),12e3,d,null,i)}l.dbgVerifyCurves(),y.setEditShapeCrackAndCluster(l,r),y.cut(!1,t,m,f,h),null!==d&&d.stitchCurves(l,o.n,g,!0);let p=l.getGeometry(m);const _=new o.a,x=new o.a,C=[];for(let e=0;e<h.length;e++){let n=null;{const s=new o.E,c=s.addGeometry(p),a=s.addGeometry(l.getGeometry(h[e]));if(s.hasCurves()){const t=s.getEnvelope2D(i);g=(0,u.u)(r.total());const e=(0,u.v)(r.total(),t);(0,u.w)(s,e,r.total(),12e3,d,null,i)}y.setEditShapeCrackAndCluster(s,r);const m=y.intersection(c,a);if(null!==d&&d.stitchCurves(s,o.n,g,!0),n=s.getGeometry(m),n.isEmpty())continue;const f=l.getGeometryUserIndex(h[e],t);2===f?_.add(n,!1):1===f?x.add(n,!1):C.push(n)}{const t=new o.E,n=t.addGeometry(p),s=t.addGeometry(l.getGeometry(h[e]));if(t.hasCurves()){const e=t.getEnvelope2D(i);g=(0,u.u)(r.total());const n=(0,u.v)(r.total(),e);(0,u.w)(t,n,r.total(),12e3,d,null,i)}y.setEditShapeCrackAndCluster(t,r);const c=y.difference(n,s);null!==d&&d.stitchCurves(t,o.n,g,!0),p=t.getGeometry(c)}}if(!p.isEmpty()&&h.length>0&&C.push(p),_.isEmpty()&&x.isEmpty())return;if(!_.isEmpty()){const t=a(_,1);s.push(t)}if(!x.isEmpty()){const t=a(x,2);s.push(t)}for(let t=0,e=C.length;t<e;++t){const e=a(C[t],3);s.push(e)}}}(this.m_bConsiderTouch,this.m_cuttee,this.m_cutter,this.m_tolerance,r,this.m_progressTracker);for(let o=0;o<r.length;o++){const i=r[o];1===i.m_side?t.add(i.m_geometry,!1):2===i.m_side?e.add(i.m_geometry,!1):3===i.m_side?this.m_cuts.push(i.m_geometry):0===i.m_side?n.add(i.m_geometry,!1):(0,s.d)("")}(0,s.g)(n.isEmpty()||1===r.length),t.isEmpty()&&e.isEmpty()&&this.m_cuts.length<3&&(this.m_cuts.length=0)}}const l=new class{getOperatorType(){return 10005}accelerateGeometry(t,e,n){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}execute(t,e,n,r,s){return new h(t,e,n,r,s)}};function m(t,e,n){const r=l.execute(!0,t,e,n,null);return Array.from(r)}function f(){return l.supportsCurves()}},92722:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(69397);class s{constructor(t=[],e=[],n=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=n,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:n,hasM:r}){return new s(t,e,n||!1,r||!1)}static fromRect([t,e,n,r]){const o=n-t,i=r-e;return new s([5],[t,e,o,0,0,i,-o,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const n of this.lengths){if(n<3)continue;const{stride:r}=this;let s=this.coords[r*e],o=this.coords[r*e+1];for(let i=1;i<n;i+=1){const n=r*(e+i),u=this.coords[n],c=this.coords[n+1];t+=-.5*(u-s)*(c+o),s=u,o=c}e+=n}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:n}=this;for(const r of this.lengths){for(let s=0;s<r;s++){const r=n*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){const t=this.clone(),{coords:e,lengths:n}=t;let r=0;const{stride:s}=this;for(const t of n){for(let n=1;n<t;n++){const t=s*(r+n);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:n,size:r}=this,o=this.coords.slice(0,r*n);return t?(t.set(o),new s(e,t)):new s(e,Array.from(o),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const n=new Array(e*t);for(let e=0,r=0;e<n.length;e+=t)n[r++]=this.coords[e],n[r++]=this.coords[e+1];return new s(this.lengths,n,!1,!1)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2188],{2272:(e,t,i)=>{i.d(t,{Dl:()=>u,gf:()=>c,jV:()=>l,lF:()=>h});var s=i(92602),n=i(70333),r=i(4718),o=i(84952),a=i(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,r.o8)(e)}function h(e,t,i){const s={};for(const n in e){if("declaredClass"===n)continue;const r=e[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r))s[n]=r.map(e=>h(e));else if("object"==typeof r)if(r.toJSON){const e=r.toJSON(i?.[n]);s[n]=t?e:JSON.stringify(e)}else s[n]=t?r:JSON.stringify(r);else s[n]=r}return s}async function c(e,t,r){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.CG)(e)??n.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!n.id&&s.A.request.useIdentity&&await Promise.all([i.e(7330),i.e(168),i.e(148)]).then(i.bind(i,50148));const l=await n.id.getCredential(e,r);return l?.token}},6518:(e,t,i)=>{i.d(t,{F:()=>a});var s=i(44208),n=i(75503),r=i(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.wq(9,(0,s.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((i,s)=>{e[t++]=s}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,r.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,i)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},14607:(e,t,i)=>{i.d(t,{B:()=>u,GP:()=>a,qg:()=>h});var s=i(799),n=i(73444);const r={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,n.JK)()){let t=(e=e.toLowerCase())in r;if(!t){const i=e.split("-");i.length>1&&i[0]in r&&(e=i[0],t=!0),t||(e="en")}const[i,s,o="#,##0.###"]=r[e];return{decimal:i,group:s,pattern:o}}function a(e,t){const i=o((t={...t}).locale);t.customs=i;const s=t.pattern||i.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,i){const s=(i=i||{}).customs.group,n=i.customs.decimal,r=t.split(";"),o=r[0];if((t=r[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const a=l,u=o.match(a);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===i.fractional&&(i.places=0),t.replace(a,function(e,t,i){!0===(i=i||{}).places&&(i.places=0),i.places===1/0&&(i.places=6);const s=t.split("."),n="string"==typeof i.places&&i.places.indexOf(",");let r=i.places;n?r=i.places.slice(n+1):+r>=0||(r=(s[1]||[]).length),i.round<0||(e=Number(e.toFixed(Number(r))));const o=String(Math.abs(e)).split("."),a=o[1]||"";if(s[1]||i.places){n&&(i.places=i.places.slice(0,Math.max(0,n)));const e=void 0!==i.places?i.places:s[1]&&s[1].lastIndexOf("0")+1;+e>a.length&&(o[1]=a.padEnd(Number(e),"0")),+r<a.length&&(o[1]=a.slice(0,Math.max(0,Number(r))))}else o[1]&&o.pop();const l=s[0].replace(",","");let u=l.indexOf("0");-1!==u&&(u=l.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),l.includes("#")||(o[0]=o[0].slice(-u)));let h,c,d=s[0].lastIndexOf(",");if(-1!==d){h=s[0].length-d-1;const e=s[0].slice(0,d);d=e.lastIndexOf(","),-1!==d&&(c=e.length-d-1)}const p=[];for(let e=o[0];e;){const t=e.length-h;p.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",c&&(h=c,c=void 0)}return o[0]=p.reverse().join(i.group||","),o.join(i.decimal||".")}(e,u[0],{decimal:n,group:s,places:i.places,round:i.round}))}(e,s,t)}const l=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),i=e.pattern||t.pattern,n=t.group,r=t.decimal;let a=1;if(i.includes("%"))a/=100;else if(i.includes("‰"))a/=1e3;else if(i.includes("¤"))throw new Error("currency notation not supported");const u=i.split(";");1===u.length&&u.push("-"+u[0]);const h=d(u,t=>(t="(?:"+(0,s.Cj)(t,".")+")").replace(l,t=>{const i={signed:!1,separator:e.strict?n:[n,""],fractional:e.fractional,decimal:r,exponent:!1},s=t.split(".");let o=e.places;1===s.length&&1!==a&&(s[1]="###"),1===s.length||0===o?i.fractional=!1:(void 0===o&&(o=e.pattern?s[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(i.fractional=!0),!e.places&&+o<s[1].length&&(o+=","+s[1].length),i.places=o);const l=s[0].split(",");return l.length>1&&(i.groupSize=l.pop().length,l.length>1&&(i.groupSize2=l.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=c(e),i=d(e.fractional,t=>{let i="";return t&&0!==e.places&&(i="\\"+e.decimal,e.places===1/0?i="(?:"+i+"\\d+)?":i+="\\d{"+e.places+"}"),i},!0);let s=t+i;return i&&(s="(?:(?:"+s+")|(?:"+i+"))"),s+d(e.exponent,t=>t?"([eE]"+c({signed:e.eSigned})+")":"")}(i)+")"}),!0);return{regexp:h.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:n,decimal:r,factor:a}}function h(e,t){const i=u(t),s=new RegExp("^"+i.regexp+"$").exec(e);if(!s)return NaN;let n=s[1];if(!s[1]){if(!s[2])return NaN;n=s[2],i.factor*=-1}return n=n.replaceAll(new RegExp("["+i.group+"\\s\\xa0]","g"),"").replace(i.decimal,"."),Number(n)*i.factor}function c(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",d(e.signed,e=>e?"[-+]":"",!0)+d(e.separator,t=>{if(!t)return"(?:\\d+)";" "===(t=(0,s.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const i=e.groupSize,n=e.groupSize2;if(n){const e="(?:0|[1-9]\\d{0,"+(n-1)+"}(?:["+t+"]\\d{"+n+"})*["+t+"]\\d{"+i+"})";return i-n>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(i-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*)"},!0)}const d=(e,t,i)=>{if(!Array.isArray(e))return t(e);const s=[];for(let i=0;i<e.length;i++)s.push(t(e[i]));return p(s.join("|"),Boolean(i))},p=(e,t)=>"("+(t?"?:":"")+e+")"},25209:(e,t,i)=>{i.r(t),i.d(t,{default:()=>G});var s=i(11254),n=i(60999),r=i(67482),o=i(49186),a=i(53966),l=i(74887),u=i(84952),h=i(91218),c=i(16930),d=i(21325),p=i(28735),f=i(43334),m=i(92722),y=i(83221),g=i(31464),_=i(56390),x=i(14607),b=i(30524),v=i(54625);const w=/^\s*"([\S\s]*)"\s*$/,S=/""/g,I=[","," ",";","|","\t"];function*M(e,t,i){let s=0;for(;s<=e.length;){const n=e.indexOf(t,s),r=e.slice(s,n>-1?n:void 0);s+=r.length+t.length,i&&!r.trim()||(yield r)}}function A(e){const t=e.includes("\r\n")?"\r\n":"\n";return M(e,t,!0)}function F(e,t){return M(e,t,!1)}function C(e,t,i){e=e.trim(),t=t?.trim();const s=[],n=Array.from(new Set([i?.delimiter,...I])).filter(e=>null!=e);for(const i of n){const n=N(e,i).length,r=N(t,i).length??n;n>1&&s.push({weight:Math.min(n,r),delimiter:i})}const r=s.sort(({weight:e},{weight:t})=>t-e).map(({delimiter:e})=>e);for(const t of r){const s=z(e,t).names,n=(0,v.i_)(s,i?.longitudeField,i?.latitudeField);if(n.longitudeFieldName&&n.latitudeFieldName)return{delimiter:t,locationInfo:n}}return{delimiter:r[0],locationInfo:null}}function*B(e,t,i,s=()=>Object.create(null)){const n=A(e);n.next();let r="",o="",a=0,l=s(),u=0;e:for(const e of n){const n=F(e,i);for(const e of n)if(r+=o+e,o="",a+=T(e),a%2==0){if(a>0){const e=w.exec(r);if(!e){l=s(),u=0,r="",a=0;continue e}l[t[u]]=e[1].replaceAll(S,'"'),u++}else l[t[u]]=r,u++;r="",a=0}else o=i;0===a?(yield l,l=s(),u=0):o="\n"}}function z(e,t){const i=N(e,t).filter(e=>null!=e),s=i.map(e=>(0,b.rS)(e));for(let e=s.length-1;e>=0;e--)s[e]||(s.splice(e,1),i.splice(e,1));return{names:s,aliases:i}}function N(e,t){if(!e?.length)return[];const i=[];let s="",n="",r=0;const o=F(e,t);for(const e of o)if(s+=n+e,n="",r+=T(e),r%2==0){if(r>0){const e=w.exec(s);e&&i.push(e[1].replaceAll(S,'"'))}else i.push(s);s="",r=0}else n=t;return i}function T(e){let t=0,i=0;for(i=e.indexOf('"',i);i>=0;)t++,i=e.indexOf('"',i+1);return t}function E(e,t,i,s,n){const r=[],o=B(e,i,t),a=[];for(const e of o){if(10===a.length)break;a.push(e)}for(let e=0;e<i.length;e++){const t=i[e],o=s[e];if(t===n.longitudeFieldName||t===n.latitudeFieldName)r.push({name:t,type:"esriFieldTypeDouble",alias:o});else{let e;switch(R(a.map(e=>e[t]))){case"integer":e="esriFieldTypeInteger";break;case"double":e="esriFieldTypeDouble";break;case"date":e="esriFieldTypeDate";break;default:e="esriFieldTypeString"}r.push({name:t,type:e,alias:o,length:(0,b._b)(e)})}}return r}function R(e){if(!e.length)return"string";const t=/[^+\-.,0-9]/;return e.map(e=>{if(""!==e){if(!t.test(e)){let t=O(e);if(!isNaN(t))return/[.,]/.test(e)||!Number.isInteger(t)||t>214783647||t<-214783648?"double":"integer";if(e.includes("E")){if(t=Number(e),!Number.isNaN(t))return"double";if(e.includes(",")&&(e=e.replace(",","."),t=Number(e),!Number.isNaN(t)))return"double"}}return(0,r.Cq)(e)?"date":"string"}}).reduce((e,t)=>void 0===e?t:void 0===t?e:e===t?t:"string"===e||"string"===t?"string":"double"===e||"double"===t?"double":void 0)}const O=function(){const e=(0,x.B)(),t=new RegExp("^"+e.regexp+"$"),i=new RegExp("["+e.group+"\\s\\xa0]","g"),s=e.factor;return n=>{const r=t.exec(n);if(e.factor=s,!r)return NaN;let o=r[1];if(!r[1]){if(!r[2])return NaN;o=r[2],e.factor*=-1}return o=o.replace(i,"").replace(e.decimal,"."),+o*e.factor}}();function P(e){return JSON.parse(JSON.stringify(e))}var k=i(64714),q=i(95466),Y=i(54218),L=i(98623);const j=(0,k.F0)("esriGeometryPoint"),X=["csv"],D=[0,0];class Z{constructor(e,t){this.x=e,this.y=t}}class G{constructor(){this._queryEngine=null,this._snapshotFeatures=async e=>{const t=await this._fetch(e);return this._createFeatures(t)}}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(e,t={}){this._loadOptions=e;const[i]=await Promise.all([this._fetch(t.signal),this._checkProjection(e?.parsingOptions?.spatialReference)]),s=function(e,t){const i=t.parsingOptions||{},s={delimiter:i.delimiter,layerDefinition:null,locationInfo:{latitudeFieldName:i.latitudeField,longitudeFieldName:i.longitudeField}},n=s.layerDefinition={name:(0,u.e7)(t.url,X)||"csv",dateFieldsTimeReference:{timeZoneIANA:L.n$},drawingInfo:j,geometryType:"esriGeometryPoint",objectIdField:null,fields:[],timeInfo:i.timeInfo,extent:{xmin:Number.POSITIVE_INFINITY,ymin:Number.POSITIVE_INFINITY,xmax:Number.NEGATIVE_INFINITY,ymax:Number.NEGATIVE_INFINITY,spatialReference:i.spatialReference||{wkid:4326}}},r=A(e),a=r.next().value?.trim(),l=r.next().value?.trim();if(!a)throw new o.A("csv-layer:empty-csv","CSV is empty",{csv:e});const{delimiter:h,locationInfo:c}=C(a,l,i);if(!h)throw new o.A("csv-layer:invalid-delimiter","Unable to detect the delimiter from CSV",{firstLine:a,secondLine:l,parsingOptions:i});if(!c)throw new o.A("csv-layer:location-fields-not-found","Unable to identify latitude and longitude fields from the CSV file",{firstLine:a,secondLine:l,parsingOptions:i});s.locationInfo=c,s.delimiter=h;const{names:d,aliases:p}=z(a,h),f=E(e,s.delimiter,d,p,s.locationInfo);if(i.fields?.length){const e=new q.A(i.fields);for(const t of f){const i=e.get(t.name);i&&Object.assign(t,i)}}if(!f.some(e=>"esriFieldTypeOID"===e.type&&(n.objectIdField=e.name,!0))){const e={name:"__OBJECTID",alias:"__OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1};n.objectIdField=e.name,f.unshift(e)}n.fields=f;const m=new q.A(n.fields);if(s.locationInfo&&(s.locationInfo.latitudeFieldName=m.get(s.locationInfo.latitudeFieldName).name,s.locationInfo.longitudeFieldName=m.get(s.locationInfo.longitudeFieldName).name),n.timeInfo){const e=n.timeInfo;if(e.startTimeField){const t=m.get(e.startTimeField);t?(e.startTimeField=t.name,t.type="esriFieldTypeDate"):e.startTimeField=null}if(e.endTimeField){const t=m.get(e.endTimeField);t?(e.endTimeField=t.name,t.type="esriFieldTypeDate"):e.endTimeField=null}if(e.trackIdField){const t=m.get(e.trackIdField);e.trackIdField=t?t.name:null}e.startTimeField||e.endTimeField||(n.timeInfo=null)}return s}(i,e);this._locationInfo=s.locationInfo,this._delimiter=s.delimiter,this._queryEngine=this._createQueryEngine(s);const n=this._createFeatures(i);this._queryEngine.featureStore.addMany(n);const{fullExtent:r,timeExtent:a}=await this._queryEngine.fetchRecomputedExtents();if(s.layerDefinition.extent=r,a){const{start:e,end:t}=a;s.layerDefinition.timeInfo.timeExtent=[e,t]}return s}async applyEdits(){throw new o.A("csv-layer:editing-not-supported","applyEdits() is not supported on CSVLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),(await this._queryEngine.executeQueryForIds(e,t.signal)).filter(Y.Et)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){this._loadOptions.customParameters=e,this._snapshotTask?.abort(),this._snapshotTask=(0,n.UT)(this._snapshotFeatures),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),e&&this._queryEngine.featureStore.addMany(e)},e=>{this._queryEngine.featureStore.clear(),(0,l.zf)(e)||a.A.getLogger("esri.layers.CSVLayer").error(new o.A("csv-layer:refresh","An error occurred during refresh",{error:e}))}),await this._waitSnapshotComplete();const{fullExtent:t,timeExtent:i}=await this._queryEngine.fetchRecomputedExtents();return{extent:t,timeExtent:i}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(e){const{url:t,customParameters:i}=this._loadOptions;if(!t)throw new o.A("csv-layer:invalid-source","url not defined");const n=(0,u.An)(t);return(await(0,s.A)(n.path,{query:{...n.query,...i},responseType:"text",signal:e})).data}_createQueryEngine(e){const{objectIdField:t,fields:i,extent:s,timeInfo:n}=e.layerDefinition,r=new y.A({geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1}),o={type:"object-id",fieldName:t};return new _.do({fieldsIndex:q.A.fromLayerJSON({fields:i,dateFieldsTimeReference:{timeZoneIANA:L.n$}}),geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1,timeInfo:n,featureIdInfo:o,spatialReference:s.spatialReference||{wkid:4326},featureStore:r})}_createFeatures(e){const{latitudeFieldName:t,longitudeFieldName:i}=this._locationInfo,{objectIdField:s,fieldsIndex:n,spatialReference:o}=this._queryEngine;let a=[];const l=[],u=n.fields.filter(e=>e.name!==s).map(e=>e.name);let y=0;const g={};for(const e of n.fields)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){const t=(0,b.lD)(e);void 0!==t&&(g[e.name]=t)}const _=B(e,u,this._delimiter,(0,k.Vx)(g,s));for(const e of _){const o=this._parseCoordinateValue(e[t]),u=this._parseCoordinateValue(e[i]);if(null!=u&&null!=o&&!isNaN(o)&&!isNaN(u)){e[t]=o,e[i]=u;for(const s in e)if(s!==t&&s!==i)if(n.isDateField(s))e[s]=(0,r._U)(e[s]);else if(n.isNumericField(s)){const t=O(e[s]);isNaN(t)?e[s]=null:e[s]=t}else null!=e[s]&&(e[s]=P(e[s]));e[s]=y,y++,a.push(new Z(u,o)),l.push(e)}}if(!(0,d.aI)({wkid:4326},o))if((0,d.K8)(o))for(const e of a)[e.x,e.y]=(0,p.je)(e.x,e.y,D);else a=(0,h.projectMany)(a,c.A.WGS84,o);const x=[];for(let e=0;e<a.length;e++){const{x:t,y:i}=a[e],n=l[e];n[s]=e+1,x.push(new f.Om(new m.A([],[t,i]),n,null,n[s]))}return x}_parseCoordinateValue(e){if(null==e||""===e)return null;let t=O(e);return(isNaN(t)||Math.abs(t)>181)&&(t=parseFloat(e)),t}async _checkProjection(e){try{await(0,g.Nk)(d.KK,e)}catch{throw new o.A("csv-layer:projection-not-supported","Projection not supported")}}}},36708:(e,t,i)=>{i.d(t,{C_:()=>d,OH:()=>m,Vh:()=>y,on:()=>c,pc:()=>g,wB:()=>l,z7:()=>u});var s=i(37955),n=i(36563),r=i(97768),o=i(74887),a=i(14012);function l(e,t,i={}){return h(e,t,i,p)}function u(e,t,i={}){return h(e,t,i,f)}function h(e,t,i={},s){let n=null;const o=i.once?(e,i)=>{s(e)&&((0,r.xt)(n),t(e,i))}:(e,i)=>{s(e)&&t(e,i)};if(n=(0,a.Cn)(e,o,i.sync,i.equals),i.initial){const t=e();o(t,t)}return n}function c(e,t,i,o={}){let a=null,u=null,h=null;function c(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,r.xt)(h),i(e)}const p=l(e,(e,i)=>{c(),(0,s.wb)(e)&&(a=e,u=(0,s.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,n.hA)(()=>{p.remove(),c()}),h}function d(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());const s=e();if(t?.(s))return Promise.resolve(s);let a=null;function l(){a=(0,r.xt)(a)}return new Promise((s,r)=>{a=(0,n.vE)([(0,o.u7)(i,()=>{l(),r((0,o.NK)())}),h(e,e=>{l(),s(e)},{sync:!1,once:!0},t??p)])})}(e,f,t)}function p(e){return!0}function f(e){return!!e}i(80559);const m={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},37730:(e,t,i)=>{i.d(t,{T:()=>n});var s=i(43334);const n={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,i)=>new s.Om(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)}},48526:(e,t,i)=>{i.d(t,{A:()=>f});var s,n=i(31635),r=i(4718),o=i(91429),a=i(5443),l=i(91075),u=i(86738),h=i(16930),c=i(90634),d=i(56993),p=i(43937);let f=s=class extends l.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:i,hasZ:s,spatialReference:n}=e;switch(t??=[],t?.at(0)?.length){case 4:s??=!0,i??=!0;break;case 3:s??=!0!==i,i??=!s;break;default:s??=!1,i??=!1}return n??=h.A.WGS84,{...e,hasM:i,hasZ:s,points:t,spatialReference:n}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,c.ge)(this);return e?new a.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,r.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:i,hasZ:n}=this;return new s({points:(0,r.o8)(e),spatialReference:t.clone(),hasM:i,hasZ:n})}addPoint(e){return(0,d.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],i={x:t[0],y:t[1],spatialReference:this.spatialReference};let s=2;return this.hasZ&&(i.z=t[2],s=3),this.hasM&&(i.m=t[s]),new u.A(i)}removePoint(e){if(!this._validateInputs(e))return null;const t=new u.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,d.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,n.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,n.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],f.prototype,"points",void 0),(0,n.Cg)([(0,p.K)("points")],f.prototype,"writePoints",null),f=s=(0,n.Cg)([(0,o.$K)("esri.geometry.Multipoint")],f),f.prototype.toJSON.isDefaultToJSON=!0},54625:(e,t,i)=>{i.d(t,{i_:()=>n});var s=i(30524);function n(e,t,i){t=(0,s.rS)(t)?.toLowerCase(),i=(0,s.rS)(i)?.toLowerCase();const n=e.map(e=>e.toLowerCase()),a=t?e[n.indexOf(t)]:null,l=i?e[n.indexOf(i)]:null;return{longitudeFieldName:a||e[n.indexOf(o.find(e=>n.includes(e)))],latitudeFieldName:l||e[n.indexOf(r.find(e=>n.includes(e)))]}}const r=["lat","lat83","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point_y"],o=["lon","lng","lng83","long","long83","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point_x"]},60408:(e,t,i)=>{function s(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function r(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?r(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":s(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function h(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function c(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}i.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>n,W0:()=>c,ZC:()=>s,fT:()=>r,uW:()=>l})},60999:(e,t,i)=>{i.d(t,{DZ:()=>f,Ke:()=>p,Tj:()=>h,UT:()=>m,aD:()=>g,jJ:()=>u});var s=i(31635),n=i(69622),r=i(97768),o=i(74887),a=i(10107),l=i(64108);function u(e,t,i){return(0,o.Lx)(e.map((e,s)=>t.apply(i,[e,s])))}async function h(e,t,i){return(await(0,o.Lx)(e.map((e,s)=>t.apply(i,[e,s])))).map(e=>e.value)}function c(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return c(await e)}catch(e){return d(e)}}async function f(e){try{return c(await e)}catch(e){return(0,o.QP)(e),d(e)}}function m(e,t){return new y(e,t)}let y=class extends n.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,r.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=c(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,r.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,a.MZ)()],y.prototype,"value",null),(0,s.Cg)([(0,a.MZ)()],y.prototype,"error",null),(0,s.Cg)([(0,a.MZ)()],y.prototype,"finished",null),(0,s.Cg)([(0,a.MZ)()],y.prototype,"promise",void 0),(0,s.Cg)([(0,a.MZ)()],y.prototype,"_result",void 0),y=(0,s.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],y);class g{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,s.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,s.hk)(t)}}}},64714:(e,t,i)=>{i.d(t,{F0:()=>a,Vx:()=>h,e2:()=>d,f:()=>p});var s=i(44208),n=i(4718),r=i(99352),o=i(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function h(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let i=`this${c(t)} = null;`;for(const t in e)i+=`this${c(t)} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${i};\n }\n }\n `)();return()=>new s}catch(i){return()=>({[t]:null,...e})}}function c(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function d(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(e)}}]}function p(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},65864:(e,t,i)=>{i.d(t,{rS:()=>h,xD:()=>d});var s=i(5443),n=i(91075),r=i(48526),o=i(86738),a=i(39829),l=i(82799),u=i(60408);function h(e){return null==e?null:e instanceof n.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?r.A.fromJSON(e):(0,u.ZC)(e)?s.A.fromJSON(e):null}const c={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:s.A,esriGeometryMultipoint:r.A,esriGeometryMultiPatch:a.A};function d(e){return e&&c[e]||null}},66344:(e,t,i)=>{i.d(t,{q:()=>a});const s=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class n{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear(),this._db.clear()}register(e){this._users.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._users.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,t){const i=this._db.get(e.id+t);return i?.size??0}put(e,t,i,n,o){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==i&&this._notifyRemove(t,a.entry,a.size,0)),n>this._maxSize)return void this._notifyRemove(t,i,n,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return s||console.warn(`Refusing to cache entry with size ${n} for key ${t}`),void this._notifyRemove(t,i,0,0);const l=1+Math.max(o,-4)- -3;this._db.set(t,new r(i,n,l)),this._size+=n,e.size+=n,this._checkSize()}updateSize(e,t){t=e.id+t;const i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let s=i.entry.usedMemory;for(;s>this._maxSize;){const e=this._notifyRemove(t,i.entry,s,1);if(!(null!=e&&e>0))return void this._db.delete(t);s=e}i.size=s,this._size+=s,e.size+=s,this._checkSize()}pop(e,t){t=e.id+t;const i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;const i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=new Array;this._db.forEach((e,s)=>{const n=e.lifetime;i[n]=(i[n]||0)+e.size,this._users.forEach(i=>{const{id:n,name:r}=i;if(s.startsWith(n)){const i=t[r]||0;t[r]=i+e.size}})});const s={};this._users.forEach(e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const n=t[i]||0;t[i]=n,s[i]=Math.round(100*e.hitRate)+"%"}else s[i]="0%"});const n=Object.keys(t);n.sort((e,i)=>t[i]-t[e]),n.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+s[i]);for(let t=i.length-1;t>=0;--t){const s=i[t];s&&(e["Priority "+(t+-3-1)]=Math.round(s/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._users.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,s){const n=this._users.get(e.split(o)[0])?.removeFunc,r=n?.(t,s,i);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._checkSizeLimits(this.maxSize)}setMaxSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const i=t??this;if(i.size<=e)return;const s=t?.id;let n=!0;for(;n;){n=!1;for(const[r,a]of this._db)if(0===a.lifetime&&(!s||r.startsWith(s))){const s=t??this._users.get(r.split(o)[0]);if(this._purgeItem(r,a,s),i.size<=.9*e)return;n||=this._db.has(r)}}for(const[n,r]of this._db)if(!s||n.startsWith(s)){const s=t??this._users.get(n.split(o)[0]);if(this._purgeItem(n,r,s),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);const s=this._notifyRemove(e,t.entry,t.size,1);null!=s&&s>0&&(this._size+=s,i&&(i.size+=s),t.lives=t.lifetime,t.size=s,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new n(0);class r{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const o=":";class a{constructor(e,t){this.removeFunc=t,this._storage=new n,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy(),this._storage=null}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},67482:(e,t,i)=>{function s(e){return null!=a(e)||null!=o(e)}function n(e){return l.test(e)}function r(e){return a(e)??o(e)}function o(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let i=!0;if(h&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,s=0;for(;!t&&s<=e.length;)t=!u.test(e[s]),s++;i=!t}}return i}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function a(e){const t=l.exec(e);if(!t?.groups)return null;const i=t.groups,s=+i.year,n=+i.month-1,r=+i.day,o=+(i.hours??"0"),a=+(i.minutes??"0"),u=+(i.seconds??"0");if(o>23)return null;if(a>59)return null;if(u>59)return null;const h=i.ms??"0",c=h?+h.padEnd(3,"0").slice(0,3):0;let d;if(i.isUTC||!i.offsetSign)d=Date.UTC(s,n,r,o,a,u,c);else{const e=+i.offsetHours,t=+i.offsetMinutes;d=6e4*("+"===i.offsetSign?-1:1)*(60*e+t)+Date.UTC(s,n,r,o,a,u,c)}return Number.isNaN(d)?null:d}i.d(t,{Br:()=>n,Cq:()=>s,_U:()=>r});const l=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,u=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,h=!Number.isNaN(new Date("technology 10").getTime())},69540:(e,t,i)=>{i.d(t,{OU:()=>h,Pw:()=>c});var s=i(31635),n=i(69622),r=(i(44208),i(4718)),o=(i(53966),i(97768)),a=i(88620),l=i(64108);const u=Symbol("ClonableMixin"),h=e=>{var t;const i=e;let n=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const i=t.metadata,s=t.store,n={},l=new Map;for(const t in i){const o=i[t],a=s?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const h=this[t];let c=null;if("function"==typeof u)c=u(h,e);else if("reference"===u)c=h;else if(c=(0,r.TU)(h,e),null!=h&&null==c)continue;0===a?l.set(t,c):n[t]=c}const u=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,i]of l)e.set(t,i,0)}return u}};return n=(0,s.Cg)([(0,l.$)("esri.core.Clonable")],n),n},c=h(n.A)},75503:(e,t,i)=>{i.d(t,{EC:()=>M,wq:()=>a});var s=i(4576),n=i(21818),r=(i(44208),i(15142)),o=i(11006);class a{constructor(e=9,t){this._compareMinX=d,this._compareMinY=p,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),v.prune(),w.prune(),S.prune(),I.prune()}all(e){l(this._data,e)}search(e,t){let i=this._data;const s=this._toBBox;if(x(e,i))for(v.clear();i;){for(let n=0,r=i.children.length;n<r;n++){const r=i.children[n],o=i.leaf?s(r):r;x(e,o)&&(i.leaf?t(r):_(e,o)?l(r,t):v.push(r))}i=v.pop()}}collides(e){let t=this._data;const i=this._toBBox;if(!x(e,t))return!1;for(v.clear();t;){for(let s=0,n=t.children.length;s<n;s++){const n=t.children[s],r=t.leaf?i(n):n;if(x(e,r)){if(t.leaf||_(e,r))return!0;v.push(n)}}t=v.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new F([]),this}remove(e){if(!e)return this;let t,i=this._data,r=null,o=0,a=!1;const l=this._toBBox(e);for(S.clear(),I.clear();i||S.length>0;){if(i||(i=S.pop(),r=S.data[S.length-1],o=I.pop()??0,a=!0),i.leaf&&(t=(0,s.qh)(i.children,(0,n.z)(e),i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),S.push(i),this._condense(S),this;a||i.leaf||!_(i,l)?r?(o++,i=r.children[o],a=!1):i=null:(S.push(i),I.push(o),o=0,r=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,i,s){const n=i-t+1;let r=this._maxEntries;if(n<=r){const s=new F(e.slice(t,i+1));return u(s,this._toBBox),s}s||(s=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(s-1)));const o=new C([]);o.height=s;const a=Math.ceil(n/r),l=a*Math.ceil(Math.sqrt(r));b(e,t,i,l,this._compareMinX);for(let n=t;n<=i;n+=l){const t=Math.min(n+l-1,i);b(e,n,t,a,this._compareMinY);for(let i=n;i<=t;i+=a){const n=Math.min(i+a-1,t);o.children.push(this._build(e,i,n,s-1))}}return u(o,this._toBBox),o}_insert(e,t,i){const s=this._toBBox,n=i?e:s(e);S.clear();const r=function(e,t,i,s){for(;s.push(t),!0!==t.leaf&&s.length-1!==i;){let i,s=1/0,n=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=f(o),l=y(e,o)-a;l<n?(n=l,s=a<s?a:s,i=o):l===n&&a<s&&(s=a,i=o)}t=i||t.children[0]}return t}(n,this._data,t,S);for(r.children.push(e),c(r,n);t>=0&&S.data[t].children.length>this._maxEntries;)this._split(S,t),t--;!function(e,t,i){for(let s=i;s>=0;s--)c(t.data[s],e)}(n,S,t)}_split(e,t){const i=e.data[t],s=i.children.length,n=this._minEntries;this._chooseSplitAxis(i,n,s);const r=this._chooseSplitIndex(i,n,s);if(!r)return;const o=i.children.splice(r,i.children.length-r),a=i.leaf?new F(o):new C(o);a.height=i.height,u(i,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this._data=new C([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,i){let s,n,r;s=n=1/0;for(let o=t;o<=i-t;o++){const t=h(e,0,o,this._toBBox),a=h(e,o,i,this._toBBox),l=g(t,a),u=f(t)+f(a);l<s?(s=l,r=o,n=u<n?u:n):l===s&&u<n&&(n=u,r=o)}return r}_chooseSplitAxis(e,t,i){const s=e.leaf?this._compareMinX:d,n=e.leaf?this._compareMinY:p;this._allDistMargin(e,t,i,s)<this._allDistMargin(e,t,i,n)&&e.children.sort(s)}_allDistMargin(e,t,i,s){e.children.sort(s);const n=this._toBBox,r=h(e,0,t,n),o=h(e,i-t,i,n);let a=m(r)+m(o);for(let s=t;s<i-t;s++){const t=e.children[s];c(r,e.leaf?n(t):t),a+=m(r)}for(let s=i-t-1;s>=t;s--){const t=e.children[s];c(o,e.leaf?n(t):t),a+=m(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const i=e.data[t];if(0===i.children.length)if(t>0){const n=e.data[t-1],r=n.children;r.splice((0,s.qh)(r,i,r.length,n.indexHint),1)}else this.clear();else u(i,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let i=e;for(w.clear();i;){if(!0===i.leaf)for(const e of i.children)t((0,n.z)(e));else w.pushArray(i.children);i=w.pop()??null}}function u(e,t){h(e,0,e.children.length,t,e)}function h(e,t,i,s,n){n||(n=new F([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=t;o<i;o++)r=e.children[o],c(n,e.leaf?s(r):r);return n}function c(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function p(e,t){return e.minY-t.minY}function f(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function m(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const i=Math.max(e.minX,t.minX),s=Math.max(e.minY,t.minY),n=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,n-i)*Math.max(0,r-s)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function x(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function b(e,t,i,s,n){const r=[t,i];for(;r.length;){const t=r.pop(),i=r.pop();if(t-i<=s)continue;const a=i+Math.ceil((t-i)/s/2)*s;(0,o.q)(e,a,i,t,n),r.push(i,a,a,t)}}const v=new r.A,w=new r.A,S=new r.A,I=new r.A({deallocator:void 0});class M{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class A extends M{constructor(){super(...arguments),this.height=1,this.indexHint=new s.vW}}class F extends A{constructor(e){super(),this.children=e,this.leaf=!0}}class C extends A{constructor(e){super(),this.children=e,this.leaf=!1}}},82799:(e,t,i)=>{i.d(t,{A:()=>f});var s,n=i(31635),r=i(4718),o=i(91429),a=i(5443),l=i(91075),u=i(86738),h=i(16930),c=i(90634),d=i(56993),p=i(43937);let f=s=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:i,hasZ:s,spatialReference:n}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:s??=!0,i??=!0;break;case 3:s??=!0!==i,i??=!s;break;default:s??=!1,i??=!1}return n??=h.A.WGS84,{...e,hasM:i,hasZ:s,paths:t,spatialReference:n}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,r.o8)(e)}get extent(){const e=(0,c.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,r.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,i=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const s=[];for(let t=0,i=e.length;t<i;t++)s[t]=e[t].toArray();t[i]=s}else t[i]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new s;return e.spatialReference=this.spatialReference,e.paths=(0,r.o8)(this.paths),e.curvePaths=(0,r.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const i=this.paths[e][t],s=this.hasZ,n=this.hasM;return s&&!n?new u.A(i[0],i[1],i[2],void 0,this.spatialReference):n&&!s?new u.A(i[0],i[1],void 0,i[2],this.spatialReference):s&&n?new u.A(i[0],i[1],i[2],i[3],this.spatialReference):new u.A(i[0],i[1],this.spatialReference)}insertPoint(e,t,i){return this._validateInputs(e,t,!0)?((0,d.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e].splice(t,0,i),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],i=this.spatialReference,s=t.map(e=>new u.A(e,i));return this.notifyChange("paths"),s}removePoint(e,t){if(!this._validateInputs(e,t))return null;const i=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),i}setPoint(e,t,i){return this._validateInputs(e,t)?((0,d.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[e][t]=i,this.notifyChange("paths"),this):this}_validateInputs(e,t,i=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const s=this.paths[e];if(i&&(t<0||t>s.length))return!1;if(!i&&(t<0||t>=s.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,n.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],f.prototype,"curvePaths",void 0),(0,n.Cg)([(0,p.K)("curvePaths")],f.prototype,"writeCurvePaths",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,n.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"paths",void 0),(0,n.Cg)([(0,p.K)("paths")],f.prototype,"writePaths",null),f=s=(0,n.Cg)([(0,o.$K)("esri.geometry.Polyline")],f),f.prototype.toJSON.isDefaultToJSON=!0},83221:(e,t,i)=>{i.d(t,{A:()=>f});var s=i(4576),n=i(49186),r=i(65529),o=i(53966),a=i(70328),l=i(19419),u=i(90708),h=i(6518),c=i(51441),d=i(37730);const p=(0,a.vt)();class f{constructor(e){this.geometryInfo=e,this._boundsStore=new h.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.bk,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,i,s,n]=this.fullBounds;return{xmin:t,ymin:i,xmax:s,ymax:n,spatialReference:(0,c.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(s.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const i of e){const e=this._boundsStore.get(i.objectId);e&&t((0,a.Jt)(p,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const i=this._featuresById.get(t);let s;if(i?(e.displayId=i.displayId,s=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);s=(0,u.jQ)(null!=s?s:(0,l.vt)(),e.geometry),null!=s&&this._boundsStore.set(t,s),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const i=this._featuresById.get(t);if(!i)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;const{geometry:s,attributes:r}=e;for(const e in r)i.attributes[e]=r[e];return s&&(i.geometry=s,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),s)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},93470:(e,t,i)=>{i.d(t,{Cb:()=>r,HW:()=>h,JR:()=>n,JZ:()=>l,WR:()=>a,b6:()=>c,fT:()=>s,nC:()=>u,yM:()=>o});const s=[252,146,31,255],n=[153,153,153,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:s,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:s},a={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},u={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},h={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},98453:(e,t,i)=>{i.d(t,{m:()=>s});const s=new(i(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"})}}]);