@arcgis/core 5.0.0-next.124 → 5.0.0-next.126

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 (181) hide show
  1. package/applications/Components/applySetUtils.d.ts +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{a327f36561f093dc0fab.js → 19fcc74d34cbbaa56a41.js} +1 -1
  4. package/assets/esri/core/workers/chunks/1ce46085095679386580.js +1 -0
  5. package/assets/esri/core/workers/chunks/{a2f38e86acf45272dbc2.js → 214323c62d6d3b603a00.js} +1 -1
  6. package/assets/esri/core/workers/chunks/215c54520d0da638fe57.js +1 -0
  7. package/assets/esri/core/workers/chunks/249630af2fb01257eb75.js +1 -0
  8. package/assets/esri/core/workers/chunks/3214763f268622f09986.js +1 -0
  9. package/assets/esri/core/workers/chunks/{18c05353d6d8950d1491.js → 36215b2c0b1020743458.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{2badadf8032e166b34ec.js → 3f3c63420644f9522ab1.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{7f70a41258b2a0157aa5.js → 3fa59195286af30932d9.js} +1 -1
  12. package/assets/esri/core/workers/chunks/41108f58f0f439ebba3f.js +1 -0
  13. package/assets/esri/core/workers/chunks/4fe210314813ea1f7a26.js +1 -0
  14. package/assets/esri/core/workers/chunks/52705ccbb452a3edb064.js +1 -0
  15. package/assets/esri/core/workers/chunks/54c545f44b7ce21fb604.js +1 -0
  16. package/assets/esri/core/workers/chunks/{cfdb17522112c52f81ad.js → 558e9fed2e58cbbf9947.js} +1 -1
  17. package/assets/esri/core/workers/chunks/56e3c34ebdee61ff4b33.js +1 -0
  18. package/assets/esri/core/workers/chunks/{b50d2d3379654de1f2f3.js → 58134617fb7530836b81.js} +1 -1
  19. package/assets/esri/core/workers/chunks/58c4be467a922fe37f01.js +1 -0
  20. package/assets/esri/core/workers/chunks/{f0582d8111ec825e1f9a.js → 651b46aeabf22ff53a38.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{90316fb569389d48920f.js → 666f201d222c50ab8428.js} +1 -1
  22. package/assets/esri/core/workers/chunks/6988517cb09928fed0f8.js +1 -0
  23. package/assets/esri/core/workers/chunks/6bf7d8de86b9eb76f920.js +1 -0
  24. package/assets/esri/core/workers/chunks/6c0b7890c8eec7febe28.js +1 -0
  25. package/assets/esri/core/workers/chunks/{25267253ba578eba38cf.js → 754e4d0b8c1ad392bd83.js} +1 -1
  26. package/assets/esri/core/workers/chunks/7ec83fc059325e207825.js +1 -0
  27. package/assets/esri/core/workers/chunks/7f385e9c88df3395e678.js +1 -0
  28. package/assets/esri/core/workers/chunks/{66ed527cd8ad11d008be.js → 80d51d58db09b9f96cb5.js} +1 -1
  29. package/assets/esri/core/workers/chunks/81c758bdc07ed9d9a132.js +1 -0
  30. package/assets/esri/core/workers/chunks/{8670d9d11950f3c61b79.js → 83711695e16912e9b9c5.js} +1 -1
  31. package/assets/esri/core/workers/chunks/a143a6f8e2f21548b244.js +1 -0
  32. package/assets/esri/core/workers/chunks/a4947d5d2fa6b7bd399b.js +1 -0
  33. package/assets/esri/core/workers/chunks/{1f30558e3ad6ac68bdb8.js → b4203e488bb928ff8032.js} +1 -1
  34. package/assets/esri/core/workers/chunks/b4b16914950792c46bd3.js +1 -0
  35. package/assets/esri/core/workers/chunks/{360b3499e2a671c309ce.js → b6969a42602517a6ef1c.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{1aa2187597f7c4adb67f.js → bcb254cb7297fec88679.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{2d1a772abd730b61854f.js → bd2125e0a68378533641.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{d76dfac06299cbd4f00e.js → c0b6706f86665cec85f8.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{f114da7ef2b891184e77.js → c3c6d337ff53e5d921e8.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{b5f68e1fdbaca3cd9c8d.js → c941b716ea3c13cabc80.js} +1 -1
  41. package/assets/esri/core/workers/chunks/c99f36159b5ed6f9267e.js +1 -0
  42. package/assets/esri/core/workers/chunks/cf4202ad468501ef24cf.js +1 -0
  43. package/assets/esri/core/workers/chunks/{e2dc7e6b84e9b38ef9fe.js → d2017b0b27b9e4ada922.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{4742a8c19b86a5f859f0.js → d47ca631e109144b6ba9.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{38124ee5119e614645c9.js → d78b2f85ec9212a973e8.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{7cd4280d24b24045bd7e.js → d8adab2d55b39241b232.js} +1 -1
  47. package/assets/esri/core/workers/chunks/e0519f24430fecead87b.js +1 -0
  48. package/assets/esri/core/workers/chunks/e33f5780fb45ac7ca889.js +1 -0
  49. package/assets/esri/core/workers/chunks/{eb9e913fe0dfcc71cf92.js → e4611ebd7dba7692a914.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{86f2ec2692363abc97d1.js → e52793690dff1a199647.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{c13efb74aa4602f6a1ee.js → e56a10a475ce128b5fce.js} +1 -1
  52. package/assets/esri/core/workers/chunks/ea633a6a3b9ea8ce965d.js +1 -0
  53. package/assets/esri/core/workers/chunks/eae1c098c16e2faaf90d.js +1 -0
  54. package/assets/esri/core/workers/chunks/{8650fbe1db55b7280c00.js → ef4237dc7b67c9039826.js} +1 -1
  55. package/assets/esri/core/workers/chunks/f5f513997cde0ce0f2a2.js +1 -0
  56. package/assets/esri/core/workers/chunks/fcc8d0b60f7c2397e550.js +1 -0
  57. package/assets/esri/themes/base/widgets/_BasemapGallery.scss +1 -0
  58. package/assets/esri/themes/dark/main.css +1 -1
  59. package/assets/esri/themes/light/main.css +1 -1
  60. package/assets/esri/themes/light/view.css +1 -1
  61. package/chunks/OperatorProximityGeodesic.js +1 -1
  62. package/chunks/OperatorShapePreservingLength.js +1 -1
  63. package/chunks/OperatorShapePreservingProject.js +1 -1
  64. package/chunks/SpatialReference.js +1 -1
  65. package/chunks/containsOperator.js +1 -1
  66. package/chunks/disjointOperator.js +1 -1
  67. package/config.js +1 -1
  68. package/core/has.js +1 -1
  69. package/editing/sharedTemplates/SharedTemplateMetadata.d.ts +0 -31
  70. package/{layers/graphics/editingSupport.d.ts → editing/types.d.ts} +8 -8
  71. package/editing/types.js +2 -0
  72. package/geometry/operators/gx/operatorIntersection.js +1 -1
  73. package/geometry/operators/json/containsOperator.js +1 -1
  74. package/geometry/operators/json/disjointOperator.js +1 -1
  75. package/geometry/support/zscale.js +1 -1
  76. package/graphic/KnowledgeGraphGraphicOrigin.d.ts +0 -1
  77. package/graphic/LinkChartGraphicOrigin.js +1 -1
  78. package/interfaces.d.ts +60 -60
  79. package/kernel.js +1 -1
  80. package/layers/CSVLayer.d.ts +317 -540
  81. package/layers/CSVLayer.js +1 -1
  82. package/layers/FeatureLayer.d.ts +13 -13
  83. package/layers/FeatureLayer.js +1 -1
  84. package/layers/GeoJSONLayer.d.ts +4 -4
  85. package/layers/OrientedImageryLayer.d.ts +6 -6
  86. package/layers/SceneLayer.d.ts +2 -2
  87. package/layers/SubtypeGroupLayer.d.ts +5 -5
  88. package/layers/graphics/applyEditsUtils.js +1 -1
  89. package/layers/graphics/data/QueryEngineCapabilities.js +1 -1
  90. package/layers/graphics/editingSupport.js +1 -1
  91. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  92. package/layers/graphics/sources/OGCFeatureSource.js +1 -1
  93. package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
  94. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  95. package/layers/graphics/sources/support/QueryTask.js +1 -1
  96. package/layers/mixins/ArcGISImageService.js +1 -1
  97. package/layers/mixins/EditBusLayer.d.ts +1 -1
  98. package/layers/raster/functions/ExtractBandFunction.js +1 -1
  99. package/layers/support/SubtypeSublayer.d.ts +5 -5
  100. package/layers/support/capabilities.js +1 -1
  101. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  102. package/networks/support/Circuit.d.ts +11 -2
  103. package/networks/support/CircuitSection.d.ts +3 -2
  104. package/package.json +1 -1
  105. package/rest/featureService/FeatureService.js +1 -1
  106. package/rest/featureService/types.d.ts +7 -1
  107. package/rest/query/operations/editsZScale.js +1 -1
  108. package/support/revision.js +1 -1
  109. package/symbols/cim/CIMCursor.js +1 -1
  110. package/symbols/cim/CIMSymbolHelper.js +1 -1
  111. package/symbols/cim/placements/PlacementAlongLineSameSize.js +1 -1
  112. package/symbols/cim/placements/PlacementAtExtremities.js +1 -1
  113. package/symbols/cim/placements/PlacementAtMeasuredUnits.js +1 -1
  114. package/symbols/cim/placements/PlacementAtRatioPositions.js +1 -1
  115. package/symbols/cim/placements/PlacementOnLine.js +1 -1
  116. package/symbols/cim/placements/PlacementOnVertices.js +1 -1
  117. package/symbols/cim/types.d.ts +7 -0
  118. package/versionManagement/VersionManagementService.d.ts +3 -2
  119. package/views/2d/analysis/DistanceMeasurement/utils.js +1 -1
  120. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  121. package/views/3d/support/MemoryController.js +1 -1
  122. package/views/3d/support/orientedBoundingBox.js +1 -1
  123. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  124. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  125. package/views/DOMContainer.js +1 -1
  126. package/views/draw/DrawOperation.js +1 -1
  127. package/views/draw/DrawTool.js +1 -1
  128. package/views/draw/plugins/BezierSegmentPlugin.js +1 -1
  129. package/views/draw/plugins/CircularArcSegmentPlugin.js +1 -1
  130. package/views/draw/plugins/FreehandSegmentPlugin.js +1 -1
  131. package/views/draw/plugins/MultipointPlugin.js +1 -1
  132. package/views/draw/plugins/PointPlugin.js +1 -1
  133. package/views/draw/plugins/PolygonPlugin.js +1 -1
  134. package/views/draw/plugins/PolylinePlugin.js +1 -1
  135. package/views/draw/plugins/ShapePlugin.js +1 -1
  136. package/views/draw/support/managers/TooltipManager.js +1 -1
  137. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
  138. package/views/interactive/tooltip/content/TooltipContentDynamic.js +1 -1
  139. package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
  140. package/webscene/Glow.d.ts +10 -2
  141. package/widgets/Directions.js +1 -1
  142. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  143. package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
  144. package/widgets/Home/HomeViewModel.d.ts +2 -1
  145. package/widgets/Home/HomeViewModel.js +1 -1
  146. package/widgets/Home.js +1 -1
  147. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  148. package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
  149. package/widgets/OrientedImageryViewer/constants.js +1 -1
  150. package/widgets/OrientedImageryViewer/types.js +1 -1
  151. package/widgets/OrientedImageryViewer/videoViewerUtils.js +1 -1
  152. package/widgets/OrientedImageryViewer.js +1 -1
  153. package/widgets/Sketch/SketchViewModel.js +1 -1
  154. package/widgets/Sketch/support/PluginManager.js +1 -1
  155. package/assets/esri/core/workers/chunks/0184b4c0c92c76c60ab2.js +0 -1
  156. package/assets/esri/core/workers/chunks/0bf742d48f434c4c575f.js +0 -1
  157. package/assets/esri/core/workers/chunks/15ba0296403dd4152b88.js +0 -1
  158. package/assets/esri/core/workers/chunks/1701d9c50610f0b2dd38.js +0 -1
  159. package/assets/esri/core/workers/chunks/231602adad900fc024f0.js +0 -1
  160. package/assets/esri/core/workers/chunks/27aa21da934ecaca381a.js +0 -1
  161. package/assets/esri/core/workers/chunks/2907e9a7216b5a29729b.js +0 -1
  162. package/assets/esri/core/workers/chunks/2b0891ba57ba66b913ce.js +0 -1
  163. package/assets/esri/core/workers/chunks/2cd56b7ab70f908bbbd4.js +0 -1
  164. package/assets/esri/core/workers/chunks/2e1fe0dd357eb7a6f47f.js +0 -1
  165. package/assets/esri/core/workers/chunks/2e9d280f51ab43e6f102.js +0 -1
  166. package/assets/esri/core/workers/chunks/2eb7df99170b7bb2a914.js +0 -1
  167. package/assets/esri/core/workers/chunks/36b8dd092697ef544f40.js +0 -1
  168. package/assets/esri/core/workers/chunks/394aa478c29599b08bf5.js +0 -1
  169. package/assets/esri/core/workers/chunks/4ba4aa6c75e3f8950e65.js +0 -1
  170. package/assets/esri/core/workers/chunks/4d45c51ff32dd75299ac.js +0 -1
  171. package/assets/esri/core/workers/chunks/4fdc838f4c3efab6cd61.js +0 -1
  172. package/assets/esri/core/workers/chunks/6321680c8070dffa3b6c.js +0 -1
  173. package/assets/esri/core/workers/chunks/6b02919373bd4da7ff73.js +0 -1
  174. package/assets/esri/core/workers/chunks/a03196e6579d738251fc.js +0 -1
  175. package/assets/esri/core/workers/chunks/a0b715cf03895082b773.js +0 -1
  176. package/assets/esri/core/workers/chunks/aec827b50df6edc54808.js +0 -1
  177. package/assets/esri/core/workers/chunks/c80c82acec04ee0ade04.js +0 -1
  178. package/assets/esri/core/workers/chunks/d27a542a406ac3fe2ad9.js +0 -1
  179. package/assets/esri/core/workers/chunks/d9c1e1ec5c56f09fb82f.js +0 -1
  180. package/assets/esri/core/workers/chunks/ec2dfd89e4ce6fda4971.js +0 -1
  181. package/assets/esri/core/workers/chunks/ffb73b4e8f2f7ffd2db4.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7557,9938],{17136(e,t,n){n.d(t,{Y_:()=>R,O7:()=>k,el:()=>M});var r=n(92602),s=n(69052),i=n(49186),a=n(53966),o=n(39829),l=n(82799),u=n(16930),c=n(80754),d=n(21325),h=n(28735),p=n(11254),f=n(60408),m=n(65864),g=n(2272),y=n(84952),b=n(92300);const w=()=>a.A.getLogger("esri.geometry.support.normalizeUtils");function S(e){return"polygon"===e[0].type}function A(e){return"polyline"===e[0].type}function F(e,t,n){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof o.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw w().error(e),new i.A("internal:geometry",e)}const n=(0,c.r8)(e),r=[];for(const e of n){const n=[];r.push(n),n.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const s=e[r][0],i=e[r][1],a=e[r+1][0],o=e[r+1][1],l=Math.sqrt((a-s)*(a-s)+(o-i)*(o-i)),u=(o-i)/l,c=(a-s)/l,d=l/t;if(d>1){for(let e=1;e<=d-1;e++){const r=e*t,a=c*r+s,o=u*r+i;n.push([a,o])}const e=(l+Math.floor(d-1)*t)/2,r=c*e+s,a=u*e+i;n.push([r,a])}n.push([a,o])}}return function(e){return"polygon"===e.type}(e)?new o.A({rings:r,spatialReference:e.spatialReference}):new l.A({paths:r,spatialReference:e.spatialReference})}(e,1e6);e=(0,h.ci)(t,!0)}return n&&(e=(0,c.kS)(e,n)),e}function v(e,t,n){if(Array.isArray(e)){const r=e[0];if(r>t){const n=(0,c.kd)(r,t);e[0]=r+n*(-2*t)}else if(r<n){const t=(0,c.kd)(r,n);e[0]=r+t*(-2*n)}}else{const r=e.x;if(r>t){const n=(0,c.kd)(r,t);e=e.clone().offset(n*(-2*t),0)}else if(r<n){const t=(0,c.kd)(r,n);e=e.clone().offset(t*(-2*n),0)}}return e}function E(e,t){let n=-1;for(let r=0;r<t.cutIndexes.length;r++){const s=t.cutIndexes[r],i=t.geometries[r],a=(0,c.r8)(i);for(let e=0;e<a.length;e++){const t=a[e];t.some(n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const r=t[e][0];n=r>n?r:n}n=Number(n.toFixed(9));const r=-360*(0,c.kd)(n,180);for(let n=0;n<t.length;n++){const t=i.getPoint(e,n);i.setPoint(e,n,t.clone().offset(r,0))}return!0}})}if(s===n){if(S(e))for(const t of(0,c.r8)(i))e[s]=e[s].addRing(t);else if(A(e))for(const t of(0,c.r8)(i))e[s]=e[s].addPath(t)}else n=s,e[s]=i}return e}async function M(e,t,n){if(!Array.isArray(e))return M([e],t);t&&"string"!=typeof t&&w().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof t?t:t?.url??r.A.geometryServiceUrl;let i,a,u,S,A,k,I,R,x=0;const $=[],P=[];for(const t of e)if(null!=t)if(i||(i=t.spatialReference,a=(0,d.Vp)(i),u=i.isWebMercator,k=u?102100:4326,S=c.j7[k].maxX,A=c.j7[k].minX,I=c.j7[k].plus180Line,R=c.j7[k].minus180Line),a)if("mesh"===t.type)P.push(t);else if("point"===t.type)P.push(v(t.clone(),S,A));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>v(e,S,A)),P.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,a);P.push(e.rings?new o.A(e):e)}else if(t.extent){const e=t.extent,n=(0,c.kd)(e.xmin,A)*(2*S);let r=0===n?t.clone():(0,c.kS)(t.clone(),n);e.offset(n,0);let{xmin:s,xmax:i}=e;s=Number(s.toFixed(9)),i=Number(i.toFixed(9)),e.intersects(I)&&i!==S?(x=i>x?i:x,r=F(r,u),$.push(r),P.push("cut")):e.intersects(R)&&s!==A?(x=i*(2*S)>x?i*(2*S):x,r=F(r,u,360),$.push(r),P.push("cut")):P.push(r)}else P.push(t.clone());else P.push(t);else P.push(t);let _=(0,c.kd)(x,S),L=-90;const O=_,C=new l.A;for(;_>0;){const e=360*_-180;C.addPath([[e,L],[e,-1*L]]),L*=-1,_--}if($.length>0&&O>0){const t=E($,await async function(e,t,n,r){const s=(0,g.Dl)(e),i=t[0].spatialReference,a={...r,responseType:"json",query:{...s.query,f:"json",sr:(0,d.YX)(i),target:JSON.stringify({geometryType:(0,f.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},o=await(0,p.A)(s.path+"/cut",a),{cutIndexes:l,geometries:u=[]}=o.data;return{cutIndexes:l,geometries:u.map(e=>{const t=(0,m.rS)(e);return t.spatialReference=i,t})}}(s,$,C,n)),r=[],i=[];for(let n=0;n<P.length;n++){const s=P[n];if("cut"!==s)i.push(s);else{const s=t.shift(),a=e[n];null!=a&&"polygon"===a.type&&a.rings&&a.rings.length>1&&s.rings.length>=a.rings.length?(r.push(s),i.push("simplify")):i.push(u?(0,h.Gh)(s):s)}}if(!r.length)return i;const a=await async function(e,t,n){const r="string"==typeof e?(0,y.An)(e):e,s=t[0].spatialReference,i=(0,f.$B)(t[0]),a={...n,query:{...r.query,f:"json",sr:(0,d.YX)(s),geometries:JSON.stringify((0,b.X)(t))}},{data:o}=await(0,p.A)(r.path+"/simplify",a);return(0,b.V)(o.geometries,i,s)}(s,r,n),o=[];for(let e=0;e<i.length;e++){const t=i[e];"simplify"!==t?o.push(t):o.push(u?(0,h.Gh)(a.shift()):a.shift())}return o}const j=[];for(let e=0;e<P.length;e++){const t=P[e];if("cut"!==t)j.push(t);else{const e=$.shift();j.push(!0===u?(0,h.Gh)(e):e)}}return j}function k(e,t,n){const r=(0,d.Vp)(n);if(null==r)return e;const[s,i]=r.valid,a=2*i;let o=0,l=0;t>i?o=Math.ceil(Math.abs(t-i)/a):t<s&&(o=-Math.ceil(Math.abs(t-s)/a)),e>i?l=Math.ceil(Math.abs(e-i)/a):e<s&&(l=-Math.ceil(Math.abs(e-s)/a));let u=e+(o-l)*a;const c=u-t;return c>i?u-=a:c<s&&(u+=a),u}function I(e){const t=(0,d.Vp)(e);if(null==t)return null;const[n,r]=t.valid;return new s.hr(n,r)}const R=I(u.A.WGS84);I(u.A.WebMercator)},20557(e,t,n){n.d(t,{Fm:()=>l,Hz:()=>p,JQ:()=>h,JZ:()=>S,ND:()=>m,R_:()=>a,U9:()=>d,fu:()=>s,nr:()=>f,oF:()=>i,rq:()=>u,z$:()=>c});const r=[["binary","application/octet-stream","bin",""]];function s(e,t){return null!=y(t.name,e?.supportedFormats??[])}function i(e,t){if(!e)return!1;const n=u(t,e.supportedFormats??[]);return null!=n&&e.editFormats.includes(n)}function a(e,t){return b(function(e,t){const n=e.toLowerCase();return g(t).find(e=>w(e)===n)}(e,t))}function o(e,t){return b(y(e,t))}function l(e,t){return w(function(e,t){return g(t).find(t=>b(t)===e)}(e,t))}function u(e,t){return o(e.name,t)??a(e.type,t)}function c(e,t,n){return a(e,n)??o(t,n)}function d({supportedFormats:e}){return c("model/gltf-binary","glb",e)}function h(e){const t=d(e);return null!=t&&e.editFormats.includes(t)}function p(e){if(!e)return null;const t=d(e),n=function({supportedFormats:e}){return c("model/gltf+json","gltf",e)}(e);let r=null;for(const s of e.queryFormats){if(s===t)return s;s===n&&(r=s)}return r}function f({supportedFormats:e}){return c("application/esri3do-SR_world","wld",e)}function m({supportedFormats:e}){return c("application/esri3do-SR_prj","prj",e)}function g(e){return[...r,...e]}function y(e,t){const n=e.toLowerCase();return g(t).find(e=>function(e){return e?.[2].split(",").map(e=>e.toLowerCase())??[]}(e).some(e=>n.endsWith(e)))}function b(e){return e?.[0]}function w(e){return e?.[1].toLowerCase()}function S(e){return e.tables?.find(e=>"assetMaps"===e.role)}},20816(e,t,n){n.d(t,{TA:()=>s,We:()=>o,Z3:()=>i,ZJ:()=>l,w5:()=>u});var r=n(11254);const s=(0,n(13069).vD)(),i=new Map,a=new Map;async function o(e,t,n){if(!e||!n)return!1;if(!t)return!0;const s=new URL(e).host;let a=i.get(s);if(!a){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");a=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return a===t}async function l(e,t,r=!1){if(!e||!t)return!0;const i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),o=a.get(i)?.entries();if(o)for(const[e,a]of o)if(a.name===t){const t=!a.stack?.hasForwardEdits();if(!t&&r){const[{deleteForwardEdits:t},{default:r}]=await Promise.all([n.e(2186).then(n.bind(n,32186)),n.e(2558).then(n.bind(n,32558))]),o=await t(i,e,new r({sessionId:s,moment:a.moment}));return o.success&&a.stack?.clearForwardEdits(),o.success}return t}return!0}function u(e,t){if(!e)return!1;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=a.get(n)?.entries();if(r)for(const[e,n]of r)if(n.name===t)return"edit"===n.lockType;return!1}new Map},47685(e,t,n){n.d(t,{Mk:()=>f,Zk:()=>h,w6:()=>y});var r=n(5482),s=n(65529),i=n(4718),a=n(74887),o=n(91429),l=n(20816);const u=new s.bk;function c(e){return u.on("apply-edits",new WeakRef(e))}function d(e){return u.on("update-moment",new WeakRef(e))}function h(e,t,n=null,r=!1){const s=(0,a.Tw)();return r=null==t||r,u.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:n,mayReceiveServiceEdits:r,result:s.promise}),s}const p=Symbol();function f(e){return null!=e&&"object"==typeof e&&p in e}function m(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function g(e,t,n){const r=new URL(e).host,s=l.Z3.get(r),i=e=>!e||e===s;return i(t)&&i(n)||t===n}const y=e=>{var t;const n=e;let s=class extends n{static{t=p}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:n,gdbVersion:r,mayReceiveServiceEdits:s,result:a}=e,o=t===this.url,l=null!=n&&null!=this.layerId&&n===this.layerId,u=m(this),c=m(this)&&g(t,r,this.gdbVersion);if(!o||u&&!c||!l&&!s)return;const d=a.then(e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,i.o8)(e)),e;const n=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(n){const{adds:t,updates:r,deletes:s}=n.editedFeatures,a={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:s?s.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:r?r.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,i.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,i.o8)(e.historicMoment)};return this.emit("edits",a),a}const s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,i.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,i.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,s.historicMoment)&&this.emit("edits",s),s}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));this.emit("apply-edits",{result:d})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:n,moment:r}=e,s=t===this.url,i=m(this),a=m(this)&&g(t,n,this.gdbVersion),o=m(this)&&!g(t,this.gdbVersion,null);s&&i&&a&&o&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then(()=>{this.addHandles(c(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(d(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,n){return"historicMoment"in this&&this.historicMoment!==n&&(0,l.w5)(e,t)}};return(0,r.Cg)([(0,o.MZ)()],s.prototype,"lastEditsEventDate",void 0),s=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.EditBusLayer")],s),s}},56512(e,t,n){function r(e){let t,n,r=[],s=!1;return function(...i){return s&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}(i,r)||(n=e.apply(this,i),t=this,r=i,s=!0),n}}n.d(t,{B:()=>r})},69052(e,t,n){n.d(t,{hr:()=>s,ie:()=>l,uC:()=>o});var r=n(34727);class s{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,n=!1){return i(this.range,this.min,this.max,e,t,n)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,n){return e<t?t:t+a(this.range,e-t,n)}minimalMonotonic(e,t,n){return i(this.range,e,e+this.range,t,n)}center(e,t,n){return t=this.monotonic(e,t,n),this.normalize((e+t)/2,n)}diff(e,t,n){return this.monotonic(e,t,n)-e}shortestSignedDiff(e,t){e=this.normalize(e);const n=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(n)<Math.abs(r)?n:r}contains(e,t,n){return t=this.minimalMonotonic(e,t),(n=this.minimalMonotonic(e,n))>e&&n<t}}function i(e,t,n,r,s=0,i=!1){return(r-=s)<t?r+=a(e,t-r):r>n&&(r-=a(e,r-n)),i&&r===n&&(r=t),r+s}function a(e,t,n=0){return Math.ceil((t-n)/e)*e+n}const o=new s(0,2*Math.PI),l=(new s(-Math.PI,Math.PI),new s(0,360))},69938(e,t,n){n.d(t,{applyEdits:()=>G,uploadAssets:()=>K});var r=n(52106),s=n(7762),i=n(49186),a=n(4718),o=n(53966),l=n(91869),u=n(74887),c=n(84952),d=n(13069),h=n(17136),p=n(21325),f=n(56512),m=n(65864),g=n(4305),y=n(50954),b=n(52006),w=n(49663),S=n(46068),A=n(15507);const F=1e-6,v=[0,0],E=new Set;class M{constructor(e,t){this.curveStart=e,this.curveEnd=t,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(e,t){this.tStart=0,this.arcStart=e,this.tEndStack.push(1),this.arcEndStack.push(t)}splitAt(e){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(e),this.arcEndStack.push(this.interpolate(e))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(e,{maxDeviation:t,maxSegmentLength:n,maxSegmentsPerCurve:r,minSegmentsPerCurve:s}){const i=n*n,a=t*t,o=1/r,l=this.interpolate(0),u=this.interpolate(1);(0,A.kb)(this.curveStart,l)>F&&e.push(l),this.initialize(l,u);const c=1/s;for(let e=s-1;e>0;e--){const t=e*c;this.pop(),this.splitAt(t)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<o||(0===i||!isFinite(i)||(0,A.kb)(this.arcStart,this.arcEnd)<i)&&(0===a||!isFinite(a)||this.getDeviation2()<a)?(e.push(this.arcEnd),this.next()):this.splitInHalf();return(0,A.kb)(this.curveEnd,u)>F&&e.push([...this.curveEnd]),e}}class k extends M{constructor(e,t){const[n,r,s]=t.b;super(e,n),this._controlPointsStack=[],this._curveControlPoints=[r,s],this._arcControlPoints=[r,s],this._controlPointsStack.push(this._arcControlPoints)}splitAt(e){const{arcStart:t,arcEnd:n,tStart:r,tEnd:s}=this,[i,a]=this._arcControlPoints,o=(e-r)/(s-r),l=(0,A.RS)([],t,i,o),u=(0,A.RS)(v,i,a,o),c=(0,A.RS)([],a,n,o),d=(0,A.RS)([],l,u,o),h=(0,A.RS)([],u,c,o),p=(0,A.RS)([],d,h,o);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([h,c]),this.tEndStack.push(e),this.arcEndStack.push(p),this._arcControlPoints[0]=l,this._arcControlPoints[1]=d,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(e){const{curveStart:t,curveEnd:n}=this,[r,s]=this._curveControlPoints;return(0,g.B4)(t,r,s,n,e)}getDeviation2(){const{arcStart:e,arcEnd:t}=this,[n,r]=this._arcControlPoints;return Math.max((0,A.yE)(n,e,t),(0,A.yE)(r,e,t))}}class I extends M{constructor(e,t){const[n]=t.a;super(e,n),this._derivedEllipse=(0,S.SW)(e,t)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(e){return(0,S.Uk)(this._derivedEllipse,e)}getDeviation2(){return(0,A.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function R(e,t,n,{cx:r,cy:s,radius:i,thetaStart:a,thetaEnd:o,isInvalid:l},{maxDeviation:u,maxSegmentLength:c,maxSegmentsPerCurve:d,minSegmentsPerCurve:h}){if(l)return e.push([...n]),e;const p=2*i,f=[r+i*Math.cos(a),s+i*Math.sin(a)],m=[r+i*Math.cos(o),s+i*Math.sin(o)];(0,A.kb)(t,f)>F&&e.push(f);const g=Math.abs(o-a),y=c>0&&c<p?2*Math.asin(c/p):g,b=u>0&&u<=i?2*Math.acos(1-u/i):g,w=Math.min(y,b),S=Math.min(d,Math.max(h,Math.ceil(Math.abs(g/w)))),v=1/S;for(let t=1;t<S;t++){const n=t*v,l=a*(1-n)+o*n;e.push([r+i*Math.cos(l),s+i*Math.sin(l)])}return e.push(m),(0,A.kb)(n,m)>F&&e.push([...n]),e}function x(e,t,n,r){return new k(t,n).densify(e,r)}function $(e,t,n,r){const s=(0,y.pM)(t,n),[i]=n.c;return R(e,t,i,s,r)}function P(e,t,n,r){const s=(0,w.i)(t,n),[i]=n.a;return R(e,t,i,s,r)}function _(e,t,n,r){const[s,i,a,o,l,u,c]=n.a;return 0===u||0===c?(e.push([...s]),e):new I(t,n).densify(e,r)}const L=(0,f.B)(e=>({maxDeviation:0,maxSegmentLength:100*e,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function O(e,t,r,s){const a=new Set(t);return await async function(e,t,r,s){let a=null;for(const o of e){if(!o||!(0,b.Ed)(o)||null!=o.spatialReference.xyTolerance)continue;const e=!r&&C(o)?E:t;if((0,b.FD)(o).flat().some(t=>j(t,e))){const e=o.spatialReference;if(!e)throw new i.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const t=T(e);if(s.has(t))o.spatialReference=s.get(t);else{a||(a=await Promise.all([n.e(3661),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(9169)]).then(n.bind(n,78125)));const r=a.fromSpatialReference(e),l=r?.getTolerance();if(null==l)throw new i.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const u=o.spatialReference.clone();u.read({xyTolerance:l}),o.spatialReference=u,s.set(t,u)}}}}(e,a,r,s),e.map(e=>{if(!e||!(0,b.Ed)(e))return e;const t=e.spatialReference.xyTolerance;if(null==t)return e;const n=L(t),s=!r&&C(e)?E:a;return(0,m.rS)(function(e,t,n){if(!(0,b.Ed)(e))return e;const r=new Set(t),s=function(e){return{maxSegmentLength:e.maxSegmentLength??0,maxDeviation:e.maxDeviation??0,maxSegmentsPerCurve:e.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(e.minSegmentsPerCurve??1,1)}}(n),i=(0,b.FD)(e),a=[];let o=!1;for(const e of i){const t=[];for(let n=0;n<e.length-1;n++){const i=n+1,a=[...(0,b.yP)(e[n])];0===n&&t.push(a);const l=e[i];(0,b.Xq)(l)?t.push([...l]):(0,b.n1)(l)&&!r.has("cubic-bezier")?x(t,a,l,s):(0,b.aO)(l)&&!r.has("circular-arc")?$(t,a,l,s):(0,b.DA)(l)&&!r.has("elliptic-arc")?P(t,a,l,s):(0,b.wY)(l)&&!r.has("elliptic-arc")?_(t,a,l,s):(t.push((0,b.tk)(l)),o=!0)}a.push(t)}return"curvePaths"in e?{...void 0!==e.hasZ?{hasZ:e.hasZ}:{},...void 0!==e.hasM?{hasM:e.hasM}:{},spatialReference:e.spatialReference,...o?{curvePaths:a}:{paths:a}}:{hasZ:e.hasZ,hasM:e.hasM,spatialReference:e.spatialReference,...o?{curveRings:a}:{rings:a}}}(e,s,n))})}function C(e){if(!(0,b.Ed)(e))return!1;const t=(0,b.zt)(e);if(t.length<2)return!1;const n=(0,b.$3)(t[0])?b.$3:e=>!(0,b.$3)(e);for(let e=1;e<t.length;e++)if(n(t[e]))return!0;return!1}function j(e,t){return!((0,b.Xq)(e)||((0,b.n1)(e)?t.has("cubic-bezier"):(0,b.aO)(e)?t.has("circular-arc"):!(0,b.DA)(e)&&!(0,b.wY)(e)||t.has("elliptic-arc")))}function T(e){if(null!=e.wkid)return`${e.wkid}`;if(null!=e.wkt)return e.wkt;const t="toJSON"in e&&"function"==typeof e.toJSON?e.toJSON():e;return JSON.stringify(t)}var D=n(47685),U=n(60694),V=n(30524),z=n(20557),B=n(77548);function W(e){return null!=e?.applyEdits}const N=new WeakMap;async function G(e,t,n,r={}){let c;const h="gdbVersion"in e?e.gdbVersion:null,p=r.gdbVersion??h;if((0,D.Mk)(e)&&e.url)c=(0,D.Zk)(e.url,e.layerId,p,"original-and-current-features"===r.returnServiceEditsOption);else{c=(0,u.Tw)(),c.promise.then(t=>{(t.addedFeatures.length||t.updatedFeatures.length||t.deletedFeatures.length||t.addedAttachments.length||t.updatedAttachments.length||t.deletedAttachments.length)&&e.emit("edits",t)});const t={result:c.promise};e.emit("apply-edits",t)}try{const{results:u,edits:h}=await async function(e,t,n,r){if(await e.load(),!W(t))throw new i.A(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!(0,B.tk)(e))throw new i.A(`${e.type}-layer:editing-disabled`,"Editing is disabled for layer",{layer:e});const{edits:a,options:u}=await async function(e,t,n){const r=(0,B.BR)(e),a=t&&(t.addFeatures||t.updateFeatures||t.deleteFeatures),u=t&&(t.addAttachments||t.updateAttachments||t.deleteAttachments),c=null!=e.infoFor3D;if(function(e,t,n,r,s,a){if(!(e&&(r||s)||n?.usingTelecomOperations))throw new i.A(`${a}:missing-parameters`,"'addFeatures', 'updateFeatures', 'deleteFeatures', 'addAttachments', 'updateAttachments' or 'deleteAttachments' parameter is required");if(!t.editing.supportsGlobalId&&n?.globalIdUsed&&!n.usingFeatureServiceEndpoint)throw new i.A(`${a}:invalid-parameter`,"This layer does not support 'globalIdUsed' parameter. See: 'capabilities.editing.supportsGlobalId'");if(!t.editing.supportsGlobalId&&s)throw new i.A(`${a}:invalid-parameter`,"'addAttachments', 'updateAttachments' and 'deleteAttachments' are applicable only if the layer supports global ids. See: 'capabilities.editing.supportsGlobalId'");if(!n?.globalIdUsed&&s)throw new i.A(`${a}:invalid-parameter`,"When 'addAttachments', 'updateAttachments' or 'deleteAttachments' is specified, globalIdUsed should be set to true")}(t,r,n,!!a,!!u,`${e.type}-layer`),!r.data.isVersioned&&n?.gdbVersion)throw new i.A(`${e.type}-layer:invalid-parameter`,"'gdbVersion' is applicable only if the layer supports versioned data. See: 'capabilities.data.isVersioned'");if(!r.editing.supportsRollbackOnFailure&&n?.rollbackOnFailureEnabled)throw new i.A(`${e.type}-layer:invalid-parameter`,"This layer does not support 'rollbackOnFailureEnabled' parameter. See: 'capabilities.editing.supportsRollbackOnFailure'");const h={...n};if(null!=h.rollbackOnFailureEnabled||r.editing.supportsRollbackOnFailure||(h.rollbackOnFailureEnabled=!0),h.rollbackOnFailureEnabled||"original-and-current-features"!==h.returnServiceEditsOption||(!1===h.rollbackOnFailureEnabled&&o.A.getLogger("esri.layers.graphics.editingSupport").warn(`${e.type}-layer:invalid-parameter`,"'original-and-current-features' is valid for 'returnServiceEditsOption' only when 'rollBackOnFailure' is true, but 'rollBackOnFailure' was set to false. 'rollBackOnFailure' has been overwritten and set to true."),h.rollbackOnFailureEnabled=!0),!r.editing.supportsReturnServiceEditsInSourceSpatialReference&&h.returnServiceEditsInSourceSR)throw new i.A(`${e.type}-layer:invalid-parameter`,"This layer does not support 'returnServiceEditsInSourceSR' parameter. See: 'capabilities.editing.supportsReturnServiceEditsInSourceSpatialReference'");if(h.returnServiceEditsInSourceSR&&"original-and-current-features"!==h.returnServiceEditsOption)throw new i.A(`${e.type}-layer:invalid-parameter`,"'returnServiceEditsInSourceSR' is valid only when 'returnServiceEditsOption' is set to 'original-and-current-features'");const p=function(e,t,n){const r=function(e){return{addFeatures:Array.from(e?.addFeatures??[]),updateFeatures:Array.from(e?.updateFeatures??[]),deleteFeatures:e&&s.A.isCollection(e.deleteFeatures)?e.deleteFeatures.toArray():e.deleteFeatures||[],addAttachments:e.addAttachments||[],updateAttachments:e.updateAttachments||[],deleteAttachments:e.deleteAttachments||[]}}(e);if(r.addFeatures?.length&&!t.operations.supportsAdd)throw new i.A(`${n}:unsupported-operation`,"Layer does not support adding features.");if(r.updateFeatures?.length&&!t.operations.supportsUpdate)throw new i.A(`${n}:unsupported-operation`,"Layer does not support updating features.");if(r.deleteFeatures?.length&&!t.operations.supportsDelete)throw new i.A(`${n}:unsupported-operation`,"Layer does not support deleting features.");return r.addFeatures=r.addFeatures.map(X),r.updateFeatures=r.updateFeatures.map(X),r.addAssetFeatures=[],r}(t,r,`${e.type}-layer`),f=n?.globalIdUsed||c,m=e.fields.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(f){const{globalIdField:t}=e;if(null==t)throw new i.A(`${e.type}-layer:invalid-parameter`,"Layer does not specify a global id field.");p.addFeatures.forEach(e=>function(e,t){const{attributes:n}=e;null==n[t]&&(n[t]=(0,d.yS)())}(e,t))}p.addFeatures.forEach(t=>function(e,t,n,r){q(e,t,n,r),Z(e,t)}(t,e,f,m)),p.updateFeatures.forEach(t=>function(e,t,n,r){q(e,t,n,r),Z(e,t);const s=(0,B.BR)(t);if("geometry"in e&&null!=e.geometry&&!s?.editing.supportsGeometryUpdate)throw new i.A(`${t.type}-layer:unsupported-operation`,"Layer does not support geometry updates.")}(t,e,f,m)),p.deleteFeatures.forEach(t=>function(e,t,n,r){q(e,t,n,r)}(t,e,f,m)),p.addAttachments.forEach(t=>H(t,e)),p.updateAttachments.forEach(t=>H(t,e)),c&&await async function(e,t){const{infoFor3D:n}=t;if(null==n)return;if(!(0,z.JQ)(n))throw new i.A(`${t.type}-layer:binary-gltf-asset-not-supported`,"3DObjectFeatureLayer requires binary glTF (.glb) support for updating mesh geometry.");e.addAssetFeatures??=[];const{addAssetFeatures:r}=e;for(const t of e.addFeatures??[])Y(t)&&r.push(t);for(const t of e.updateFeatures??[])Y(t)&&r.push(t)}(p,e);const g=(0,l.tE)(N,e,()=>new Map),y=!(0,U.Wo)(e.url);return{edits:await J(p,r.data.supportedCurveTypes??[],y,g),options:h}}(e,n,r);return a.addFeatures?.length||a.updateFeatures?.length||a.deleteFeatures?.length||a.addAttachments?.length||a.updateAttachments?.length||a.deleteAttachments?.length?{edits:a,results:await t.applyEdits(a,u)}:{edits:a,results:{addFeatureResults:[],updateFeatureResults:[],deleteFeatureResults:[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}}(e,t,n,r),p=e=>e.filter(e=>!e.error).map(a.o8),f={edits:h,addedFeatures:p(u.addFeatureResults),updatedFeatures:p(u.updateFeatureResults),deletedFeatures:p(u.deleteFeatureResults),addedAttachments:p(u.addAttachmentResults),updatedAttachments:p(u.updateAttachmentResults),deletedAttachments:p(u.deleteAttachmentResults),exceededTransferLimit:!1,historicMoment:u.editMoment?new Date(u.editMoment):null,globalIdToObjectId:r.globalIdToObjectId};return u.editedFeatureResults?.length&&(f.editedFeatures=u.editedFeatureResults),c.resolve(f),u}catch(e){throw c.reject(e),e}}function q(e,t,n,r){if(n){if("attributes"in e&&!e.attributes[t.globalIdField])throw new i.A(`${t.type}-layer:invalid-parameter`,`Feature should have '${t.globalIdField}' when 'globalIdUsed' is true`);if(!("attributes"in e)&&!e.globalId)throw new i.A(`${t.type}-layer:invalid-parameter`,"`'globalId' of the feature should be passed when 'globalIdUsed' is true")}if(r.length&&"attributes"in e)for(const n of r){const r=e.attributes[n.name];if(void 0!==r&&!(0,V.OG)(n,r))throw new i.A(`${t.type}-layer:invalid-parameter`,`Big-integer field '${n.name}' of the feature must be less than ${Number.MAX_SAFE_INTEGER}`,{feature:e})}if("geometry"in e&&null!=e.geometry){if(e.geometry.hasZ&&!1===t.capabilities?.data.supportsZ)throw new i.A(`${t.type}-layer:z-unsupported`,"Layer does not support z values while feature has z values.");if(e.geometry.hasM&&!1===t.capabilities?.data.supportsM)throw new i.A(`${t.type}-layer:m-unsupported`,"Layer does not support m values while feature has m values.")}}function Z(e,t){if("geometry"in e&&"mesh"===e.geometry?.type&&null!=t.infoFor3D&&null!=t.spatialReference){const{geometry:n}=e,{spatialReference:r,vertexSpace:s}=n,a=t.spatialReference,o="local"===s.type,l=(0,p.EA)(a),u=(0,p.aI)(a,r),c=u||(0,p.oT)(a)&&((0,p.oT)(r)||(0,p.K8)(r));if(!(o&&l&&c||!o&&!l&&u))throw new i.A(`${t.type}-layer:mesh-unsupported`,`Uploading a mesh with a ${s.type} vertex space and a spatial reference wkid:${r.wkid} to a layer with a spatial reference wkid:${a.wkid} is not supported.`)}}function H(e,t){const{feature:n,attachment:r}=e;if(!n||"attributes"in n&&!n.attributes[t.globalIdField])throw new i.A(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to a feature with 'globalId'");if(!("attributes"in n)&&!n.globalId)throw new i.A(`${t.type}-layer:invalid-parameter`,"Attachment should have reference to 'globalId' of the parent feature");if(!r.globalId)throw new i.A(`${t.type}-layer:invalid-parameter`,"Attachment should have 'globalId'");if(!r.data&&!r.uploadId)throw new i.A(`${t.type}-layer:invalid-parameter`,"Attachment should have 'data' or 'uploadId'");if(!(r.data instanceof File&&r.data.name||r.name))throw new i.A(`${t.type}-layer:invalid-parameter`,"'name' is required when attachment is specified as Base64 encoded string using 'data'");if(!t.capabilities?.editing.supportsUploadWithItemId&&r.uploadId)throw new i.A(`${t.type}-layer:invalid-parameter`,"This layer does not support 'uploadId' parameter. See: 'capabilities.editing.supportsUploadWithItemId'");if("string"==typeof r.data){const e=(0,c.r$)(r.data);if(e&&!e.isBase64)throw new i.A(`${t.type}-layer:invalid-parameter`,"Attachment 'data' should be a Blob, File or Base64 encoded string")}}async function J(e,t,n,r){const s=e.addFeatures??[],i=e.updateFeatures??[],a=s.concat(i).map(e=>e.geometry),o=await O(a,t,n,r),l=await(0,h.el)(o),u=s.length,c=i.length;return l.slice(0,u).forEach((e,t)=>s[t].geometry=e),l.slice(u,u+c).forEach((e,t)=>i[t].geometry=e),e}function X(e){const t=new r.A;return e.attributes||(e.attributes={}),t.geometry=e.geometry,t.attributes=e.attributes,t}function Y(e){return"mesh"===e?.geometry?.type}function K(e,t,n,r){if(!W(t))throw new i.A(`${e.type}-layer:no-editing-support`,"Layer source does not support applyEdits capability",{layer:e});if(!t.uploadAssets)throw new i.A(`${e.type}-layer:no-asset-upload-support`,"Layer source does not support uploadAssets capability",{layer:e});return t.uploadAssets(n,r)}},80754(e,t,n){n.d(t,{j7:()=>a,kS:()=>l,kd:()=>o,r8:()=>u});var r=n(82799),s=n(16930),i=n(60408);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const n=u(e);for(const e of n)for(const n of e)n[0]+=t;return e}function u(e){return(0,i.Bi)(e)?e.rings:e.paths}},92300(e,t,n){n.d(t,{V:()=>a,X:()=>i});var r=n(60408),s=n(65864);function i(e){return{geometryType:(0,r.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function a(e,t,n){const r=(0,s.xD)(t);return e.map(e=>{const t=r.fromJSON(e);return t.spatialReference=n,t})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9397,9679],{4197(e,t,r){r.d(t,{Vj:()=>u,cj:()=>l,jh:()=>s,l5:()=>a,xm:()=>o});var i=r(34275),n=r(9093);function s(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function a(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function l(e){return[...e]}function u(e){const t=(0,n.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},5482(e,t,r){function i(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}function n(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var i,n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(void 0===i){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose],r&&(n=i)}if("function"!=typeof i)throw new TypeError("Object not disposable.");n&&(i=function(){try{n.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:i,async:r})}else r&&e.stack.push({async:!0});return t}r.d(t,{Cg:()=>i,hk:()=>o,mS:()=>n}),Object.create,Object.create;var s="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var i=new Error(r);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};function o(e){function t(t){e.error=e.hasError?new s(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,i=0;return function n(){for(;r=e.stack.pop();)try{if(!r.async&&1===i)return i=0,e.stack.push(r),Promise.resolve().then(n);if(r.dispose){var s=r.dispose.call(r.value);if(r.async)return i|=2,Promise.resolve(s).then(n,function(e){return t(e),n()})}else i|=1}catch(e){t(e)}if(1===i)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},8631(e,t,r){r.d(t,{r:()=>p,g:()=>h});var i,n=r(53177),s=r(76357),o=r(5482),a=r(91429),l=r(93223);let u=class extends s.A{static{i=this}constructor(e){super(e),this.type="inherited"}clone(){return new i}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=i=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var c=r(41628);const h={key:"type",base:s.A,typeMap:{range:c.A,"coded-value":n.A,inherited:u}};function p(e){if(!e?.type)return null;switch(e.type){case"range":return c.A.fromJSON(e);case"codedValue":return n.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},9093(e,t,r){function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(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]]}r.d(t,{o8:()=>n,vt:()=>i,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:n,create:i,fromValues:function(e,t,r,i,n,s,o,a,l,u,c,h,p,f,d,y){return[e,t,r,i,n,s,o,a,l,u,c,h,p,f,d,y]}},Symbol.toStringTag,{value:"Module"}))},20437(e,t,r){r.d(t,{A:()=>d});var i,n=r(5482),s=r(66552),o=r(25482),a=r(91429),l=r(56507),u=r(8631),c=r(98453),h=r(36005),p=r(93223);const f=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let d=class extends o.o{static{i=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?f.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"alias",void 0),(0,n.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],d.prototype,"defaultValue",void 0),(0,n.Cg)([(0,a.MZ)()],d.prototype,"description",void 0),(0,n.Cg)([(0,h.w)("description")],d.prototype,"readDescription",null),(0,n.Cg)([(0,a.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],d.prototype,"domain",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"editable",void 0),(0,n.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],d.prototype,"length",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"nullable",void 0),(0,n.Cg)([(0,p.e)(c.m)],d.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)()],d.prototype,"valueType",void 0),(0,n.Cg)([(0,h.w)("valueType",["description"])],d.prototype,"readValueType",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],d.prototype,"visible",void 0),d=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.Field")],d)},21276(e,t,r){r.d(t,{H:()=>s,f:()=>n});var i=r(49186);function n(e){if(e&&"object"==typeof e&&"type"in e&&"mesh"===e.type)throw new i.A("internal:mesh","Mesh geometries are not supported for this operation")}function s(e){e.forEach(n)}},28735(e,t,r){r.d(t,{Cv:()=>g,Gh:()=>b,ci:()=>w,je:()=>m,jg:()=>h,tD:()=>_,y7:()=>y,yw:()=>c});var i=r(4718),n=r(21276),s=r(16930),o=r(79258),a=r(21325);function l(e){return 57.29577951308232*e}function u(e){return.017453292519943*e}function c(e){return e/o.$O.radius}function h(e){return Math.PI/2-2*Math.atan(Math.exp(-e/o.$O.radius))}function p(e){return null!=e.wkid||null!=e.wkt}const f=[0,0];function d(e,t,r,i,n){const s=e,o=n;if(o.spatialReference=r,"x"in s&&"x"in o)[o.x,o.y]=t(s.x,s.y,f,i);else if("xmin"in s&&"xmin"in o)[o.xmin,o.ymin]=t(s.xmin,s.ymin,f,i),[o.xmax,o.ymax]=t(s.xmax,s.ymax,f,i);else if("paths"in s&&"paths"in o||"rings"in s&&"rings"in o){const e="paths"in s?s.paths:s.rings,r=[];let n;for(let s=0;s<e.length;s++){const o=e[s];n=[],r.push(n);for(let e=0;e<o.length;e++)n.push(t(o[e][0],o[e][1],[0,0],i)),o[e].length>2&&n[e].push(o[e][2]),o[e].length>3&&n[e].push(o[e][3])}"paths"in o?o.paths=r:o.rings=r}else if("points"in s&&"points"in o){const e=s.points,r=[];for(let n=0;n<e.length;n++)r[n]=t(e[n][0],e[n][1],[0,0],i),e[n].length>2&&r[n].push(e[n][2]),e[n].length>3&&r[n].push(e[n][3]);o.points=r}return n}function y(e,t){const r=e&&(p(e)?e:e.spatialReference),i=t&&(p(t)?t:t.spatialReference);return!(e&&"type"in e&&"mesh"===e.type||t&&"type"in t&&"mesh"===t.type||!r||!i)&&(!!(0,a.aI)(i,r)||(0,a.K8)(i)&&(0,a.oT)(r)||(0,a.K8)(r)&&(0,a.oT)(i))}function g(e,t){if(null==e)return null;const r=e.spatialReference,n=t&&(p(t)?t:t.spatialReference);return y(r,n)?(0,a.aI)(r,n)?(0,i.o8)(e):(0,a.K8)(n)?d(e,m,s.A.WebMercator,!1,(0,i.o8)(e)):(0,a.oT)(n)?d(e,_,s.A.WGS84,!1,(0,i.o8)(e)):null:null}function m(e,t,r=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);const i=u(t);return r[0]=u(e)*o.$O.radius,r[1]=o.$O.halfSemiMajorAxis*Math.log((1+Math.sin(i))/(1-Math.sin(i))),r}function _(e,t,r=[0,0],i=!1){if(e===a.Mc[0])r[0]=-180;else if(e===a.Mc[1])r[0]=180;else{const t=l(e/o.$O.radius);r[0]=i?t:t-360*Math.floor((t+180)/360)}return r[1]=l(Math.PI/2-2*Math.atan(Math.exp(-t/o.$O.radius))),r}function b(e,t=!1,r=(0,i.o8)(e)){return(0,n.f)(e),(0,n.f)(r),d(e,m,s.A.WebMercator,t,r)}function w(e,t=!1,r=(0,i.o8)(e)){return(0,n.f)(e),(0,n.f)(r),d(e,_,s.A.WGS84,t,r)}},34304(e,t,r){r.d(t,{DF:()=>l,FD:()=>n,Ov:()=>s,ct:()=>u});let i=1e-6;function n(){return i}const s=Math.random,o=Math.PI/180,a=180/Math.PI;function l(e){return e*o}function u(e){return e*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:s,equals:function(e,t){return Math.abs(e-t)<=i*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:n,setEpsilon:function(e){i=e},toDegree:u,toRadian:l},Symbol.toStringTag,{value:"Module"}))},39078(e,t,r){r.r(t),r.d(t,{default:()=>f});var i=r(24326),n=r(16930),s=r(62815),o=(r(70328),r(19419),r(50498),r(20437));r(44208),r(34727),r(21325);class a{constructor(e,t,r){this.uid=e,this.geometry=t,this.attributes=r,this.visible=!0,this.objectId=null,this.centroid=null}}class l{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null}}var u=r(63746);class c{constructor(e){this._options=e,this.featureSet=new l,this.usesShortGeometryTypes=!0,this._queryGeometryType=null,this._queryGeometry=null,this.parseOnly=null,this.missingAttributes=[],this._transformInPlace=null,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._vertex=[],this._part=null,this._parts=null,this._i=0,this._finishVertex=c._finishVertexNonPoint}queryGeometryType(){return this._queryGeometryType}queryGeometry(){return this._queryGeometry}idField(e){"string"==typeof e&&(this.featureSet.objectIdFieldName=e)}finish(){this._options.applyTransform&&(this.featureSet.transform=null);let{spatialReference:e,features:t,fields:r}=this.featureSet;if(!e||e instanceof n.A||(this.featureSet.spatialReference=e=n.A.fromJSON(e)),e)for(const{geometry:r}of t)r&&(r.spatialReference=e);r.forEach((e,t)=>{e instanceof o.A||(r[t]=o.A.fromJSON(e))})}_setVertexTransformer(){const{sourceSpatialReference:e}=this._options,{spatialReference:t,hasZ:r}=this.featureSet,i=r?(0,s.d)(e,t):1;this._transformInPlace??=(0,u.Mv)(this.featureSet,i)}feature(){this._attributesClass??=(0,u._7)(this.featureSet.fields?.map(e=>e.name)??[]),this.featureSet.features.push(new a((0,i.c)(),null,new this._attributesClass)),this._options.applyTransform&&this._setVertexTransformer()}finishFeature(){const{maxStringAttributeLength:e,maxStringAttributeFields:t}=this._options,{attributes:r}=this.featureSet.features.at(-1),i=r[this.featureSet.objectIdFieldName];!function(e,t,r,i){if(t?.size&&null!=r&&e)for(const n in e){if(!t.has(n))continue;const s=e[n];"string"==typeof s&&s.length>r&&(i(n),e[n]="")}}(r,t,e,e=>{null!=i&&this.missingAttributes.push({objectId:i,attribute:e})})}_createPoint(){const{hasZ:e,hasM:t,spatialReference:r}=this.featureSet,i={type:"point",x:0,y:0,spatialReference:r,hasZ:e,hasM:t};return e&&(i.z=0),t&&(i.m=0),i}centroid(e){const{hasZ:t,hasM:r}=this.featureSet,i=this._createPoint();[i.x,i.y]=e,t&&(i.z=e[2]),r&&(i.m=e.at(-1)),this.featureSet.features.at(-1).centroid=i}geometry(e,t,r){this._previousX=this._previousY=0,this._lengths=r;let i,{spatialReference:n,hasZ:s,hasM:o}=this.featureSet;switch(s??=!1,o??=!1,this._vertex=[0,0],s&&this._vertex.push(0),o&&this._vertex.push(0),this._finishVertex=c._finishVertexNonPoint,t){case"esriGeometryPoint":this._point=this._createPoint(),i=this._point,this._finishVertex=s?o?c._finishVertexPointXYZM:c._finishVertexPointXYZ:o?c._finishVertexPointXYM:c._finishVertexPointXY;break;case"esriGeometryMultipoint":i={type:"multipoint",points:[],spatialReference:n,hasZ:s,hasM:o},this._part=i.points,this._parts=[];break;case"esriGeometryPolyline":i={type:"polyline",paths:[],spatialReference:n,hasZ:s,hasM:o},this._parts=i.paths,this._part=[];break;case"esriGeometryPolygon":i={type:"polygon",rings:[],spatialReference:n,hasZ:s,hasM:o},this._parts=i.rings,this._part=[]}1===e?(this._queryGeometry=i,this._queryGeometryType=t,this._options.applyTransform||this._setVertexTransformer()):this.featureSet.features.at(-1).geometry=i}coord(e){const t=this._vertex;t[this._i++]=e,this._i<t.length||(this._i=0,this._transformInPlace&&(t[0]+=this._previousX,t[1]+=this._previousY,[this._previousX,this._previousY]=t,this._transformInPlace(t)),this._finishVertex(this))}static _finishVertexPointXY({_point:e,_vertex:t}){[e.x,e.y]=t}static _finishVertexPointXYZ({_point:e,_vertex:t}){[e.x,e.y,e.z]=t}static _finishVertexPointXYM({_point:e,_vertex:t}){[e.x,e.y,e.m]=t}static _finishVertexPointXYZM({_point:e,_vertex:t}){[e.x,e.y,e.z,e.m]=t}static _finishVertexNonPoint(e){const{_part:t,_parts:r,_lengths:i,_vertex:n}=e;t.push([...n]),t.length<i[r.length]||(e._previousX=e._previousY=0,e._part=[],r.push(t))}}var h=r(66208);class p{_parseFeatureQuery(e){const t=new c(e.options),r=(0,h.m)(e.buffer,t),i={...r,spatialReference:r.spatialReference?.toJSON(),fields:r.fields?r.fields.map(e=>e.toJSON()):void 0,missingAttributes:t.missingAttributes};return Promise.resolve(i)}}function f(){return new p}},39357(e,t,r){r.d(t,{A:()=>a});var i,n=r(5482),s=r(25482),o=r(91429);let a=i=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},41628(e,t,r){r.d(t,{A:()=>l});var i,n=r(5482),s=r(91429),o=r(76357),a=r(93223);let l=class extends o.A{static{i=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new i({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,n.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,n.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=i=(0,n.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],l)},50498(e,t,r){r.d(t,{Ye:()=>h,gy:()=>c,iI:()=>f,yR:()=>p});var i=r(66552),n=r(5443),s=r(91075),o=r(48526),a=r(86738),l=r(39829),u=r(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:s.A,key:"type",typeMap:{extent:n.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}},f=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},51624(e,t,r){r.d(t,{A:()=>u});var i=r(44208),n=r(69397),s=r(93687);const o=4294967296,a=new TextDecoder("utf-8"),l=(0,i.A)("safari")||(0,i.A)("ios")?6:(0,i.A)("ff")?12:32;class u{constructor(e,t,r=0,i=e?.byteLength??0){this._tag=0,this._dataType=99,this._init(e,t,r,i)}[Symbol.dispose](){this.release()}_init(e,t,r,i){this._data=e,this._dataView=t,this._pos=r,this._end=i}get usedMemory(){return 64+(0,n.Qf)(this._data)}asUnsafe(){return this}clone(){return new u(this._data,this._dataView,this._pos,this._end)}clonePooled(){return u.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(e,t,r=0,i=e?.byteLength??0){const n=u.pool.acquire();return n._init(e,t,r,i),n}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getPackedEnd(){const e=this.getUInt32();return this._pos+e}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),r}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,i){const n=this.getMessage(),s=e(n,t,r,i);return n.release(),s}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){const e=this._getLength(),t=u.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){u.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,r=0,i=0;if(this._end-t>=10)do{if(i=e[t++],r|=127&i,!(128&i))break;if(i=e[t++],r|=(127&i)<<7,!(128&i))break;if(i=e[t++],r|=(127&i)<<14,!(128&i))break;if(i=e[t++],r|=(127&i)<<21,!(128&i))break;if(i=e[t++],r+=268435456*(127&i),!(128&i))break;if(i=e[t++],r+=34359738368*(127&i),!(128&i))break;if(i=e[t++],r+=4398046511104*(127&i),!(128&i))break;if(i=e[t++],r+=562949953421312*(127&i),!(128&i))break;if(i=e[t++],r+=72057594037927940*(127&i),!(128&i))break;if(i=e[t++],r+=0x8000000000000000*(127&i),!(128&i))break;throw new Error("Varint too long!")}while(0);else{let n=1;for(;t!==this._end&&(i=e[t],128&i);)++t,r+=(127&i)*n,n*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=i*n}return this._pos=t,r}_decodeSVarint(){const e=this._data;let t,r=0,i=0;const n=1&e[this._pos];if(i=e[this._pos++],r|=127&i,!(128&i))return n?-(r+1)/2:r/2;if(i=e[this._pos++],r|=(127&i)<<7,!(128&i))return n?-(r+1)/2:r/2;if(i=e[this._pos++],r|=(127&i)<<14,!(128&i))return n?-(r+1)/2:r/2;if(i=e[this._pos++],r|=(127&i)<<21,!(128&i))return n?-(r+1)/2:r/2;if(i=e[this._pos++],r+=268435456*(127&i),!(128&i))return n?-(r+1)/2:r/2;if(i=e[this._pos++],r+=34359738368*(127&i),!(128&i))return n?-(r+1)/2:r/2;if(i=e[this._pos++],r+=4398046511104*(127&i),!(128&i))return n?-(r+1)/2:r/2;if(t=BigInt(r),i=e[this._pos++],t+=0x2000000000000n*BigInt(127&i),!(128&i))return Number(n?-(t+1n)/2n:t/2n);if(i=e[this._pos++],t+=0x100000000000000n*BigInt(127&i),!(128&i))return Number(n?-(t+1n)/2n:t/2n);if(i=e[this._pos++],t+=0x8000000000000000n*BigInt(127&i),!(128&i))return Number(n?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>l){const i=e.subarray(t,r);return a.decode(i)}let i="",n="";for(let s=t;s<r;++s){const t=e[s];128&t?n+="%"+t.toString(16):(i+=decodeURIComponent(n)+String.fromCharCode(t),n="")}return n.length&&(i+=decodeURIComponent(n)),i}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}static{this.pool=new s.A(()=>new u(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},53177(e,t,r){r.d(t,{A:()=>c});var i,n=r(5482),s=r(4718),o=r(91429),a=r(39357),l=r(76357),u=r(93223);let c=class extends l.A{static{i=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new i({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,n.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,n.Cg)([(0,u.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],c)},53655(e,t,r){r.d(t,{SH:()=>N,ae:()=>A,cn:()=>y});var i=r(5482),n=r(49186),s=r(51624),o=r(50498);const a=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],l=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],u=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],c=["upperLeft","lowerLeft"];function h(e,t){const r=e.getEnum();return r<t.length?t[r]:void 0}function p(e,t){e.featureSet.geometryType=e.usesShortGeometryTypes?o.gy.fromJSON(t):t}function f(e,t=e.featureSet.geometryType){return e.usesShortGeometryTypes?o.gy.toJSON(t):t}function d(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function y(e){const t=e.asUnsafe(),r={type:l[0]};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=h(t,l);break;case 3:r.alias=t.getString();break;case 4:r.sqlType=h(t,u);break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function g(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}let m=[];function _(e,t,r){let i=f(t),n=0;const s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:1===r?i=f(t,h(s,a)):s.skip();continue;case 2:for(const e=s.getPackedEnd();s.pos()<e;)m[n++]=s.getUInt32();continue;case 3:n>0?(m.length=n,null!=t.geometry(r,i,m)&&(m=[])):t.geometry(r,i,[]);for(const e=s.getPackedEnd();s.pos()<e;)t.coord(s.getSInt64());continue;default:s.skip()}}function b(e,t){const r=[],i=e.asUnsafe();for(;i.next();)if(3!==i.tag())i.skip();else for(const e=i.getPackedEnd();i.pos()<e;)r.push(i.getSInt64());t.centroid(r)}let w=[],v=[],x=[];function M(e,t){const r={stack:[],error:void 0,hasError:!1};try{let n=0;const s=m;let o=0;const a=e.asUnsafe(),l=(0,i.mS)(r,a.clonePooled().asUnsafe(),!1);for(;a.next();)switch(a.tag()){case 2:for(const u=a.getPackedEnd();a.pos()<u;)s[n++]=a.getUInt32();continue;case 3:if(!("curvedGeometry"in t))throw new Error(`Tried to parse curved geometry in a ${t.constructor.name}, which doesn't support them.`);a.processMessageWithArgs(S,o++);continue;case 4:{const c=a.getUInt32(),h=a.pos()+c;if(0===o||0===n||0===c){a.move(h);continue}s.length=n,x.length=v.length=o,t.curvedGeometry(f(t),s,v,x);const{hasZ:p,hasM:d}=t.featureSet,y=[],g=[0,0];function _(){b(),g[0]+=y[0],g[1]+=y[1]}function b(){for(let e=0;e<g.length;++e)y[e]=g[e],g[e]=a.getSInt64()}p&&g.push(0),d&&g.push(0);const M=[0,0],T=[0,0];let k=0;for(let I=0;I<n;++I){g.fill(0),_(),t.startCurvedPart(g);for(const A=k+s[I];k<A;++k){const V=v[k],P=x[k];switch(V){case 0:for(let C=0;C<P;++C)_(),t.lineSegment(y,g);continue;case 1:for(let F=0;F<P;++F){b();const N=M;N[0]=a.getSInt64(),N[1]=a.getSInt64(),t.circularArcSegment(y,g,N)}continue;case 2:for(let R=0;R<P;++R)_(),M[0]=a.getSInt64()+y[0],M[1]=a.getSInt64()+y[1],T[0]=a.getSInt64()+M[0],T[1]=a.getSInt64()+M[1],t.bezierSegment(y,g,M,T);continue;case 3:if(l.move(w[k]),l.getUInt32()<7*P)throw new Error("Not implemented: compressed full circle encoding");for(let G=0;G<P;++G){_();const O=M;O[0]=l.getDouble(),O[1]=l.getDouble();const j=l.getDouble(),q=l.getDouble(),Z=l.getDouble(),E=l.getDouble(),D=l.getDouble();t.ellipticArcSegment(y,g,O,j,q,Z,E,D)}continue}}t.finishCurvedPart(g)}continue}default:a.skip()}}catch(z){r.error=z,r.hasError=!0}finally{(0,i.hk)(r)}}function S(e,t){const r=e.asUnsafe();let i=0,n=0,s=0;for(;r.next();)switch(r.tag()){case 1:i=r.getEnum();continue;case 2:n=r.getUInt32();continue;case 3:s=r.pos(),r.skip();continue;default:r.skip()}if(3===i&&0===s)throw new Error("An elliptic arc segment set did not include a parameters array");v[t]=i,x[t]=n,w[t]=s}function T(e,t){t.feature();const r=t.featureSet.features.at(-1);let i=0;const{fields:n}=t.featureSet;for(;e.next();)switch(e.tag()){case 1:if(null==n)throw new Error("A Feature had attributes but the FeatureResult didn't include any fields");r.attributes[n[i++].name]=e.processMessage(d);continue;case 2:e.processMessageWithArgs(_,t,0);continue;case 4:e.processMessageWithArgs(b,t);continue;case 7:e.processMessageWithArgs(M,t);continue;default:e.skip();continue}t.finishFeature?.()}function k(e){const t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function I(e){const t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function A(e){const t={originPosition:c[0]},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=h(r,c);break;case 2:t.scale=r.processMessage(k);break;case 3:t.translate=r.processMessage(I);break;default:r.skip()}return t}function V(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function P(e){const t={wkid:0};for(;e.next();)switch(e.tag()){case 1:t.wkid=e.getUInt32();break;case 5:t.wkt=e.getString();break;case 2:t.latestWkid=e.getUInt32();break;case 3:t.vcsWkid=e.getUInt32();break;case 4:t.latestVcsWkid=e.getUInt32();break;default:e.skip()}return t}function C(e,t){const r=e.asUnsafe();if(t.featureSet.features.length=0,"features"===t.parseOnly?.type){const e=t.parseOnly.indices.values();let i=0,n=e.next().value;for(;r.next();)15===r.tag()&&i++===n?(n=e.next().value,r.processMessageWithArgs(T,t)):r.skip();return}let i=!1;for("metadata"===t.parseOnly?.type&&(i=!0,t.parseOnly.featureCount=0),p(t,"esriGeometryPoint");r.next();)switch(r.tag()){case 1:t.idField(r.getString());continue;case 3:t.featureSet.globalIdFieldName=r.getString();continue;case 4:t.featureSet.geohashFieldName=r.getString();continue;case 5:t.featureSet.geometryProperties=r.processMessage(V);continue;case 7:p(t,h(r,a));continue;case 8:t.featureSet.spatialReference=r.processMessageWithArgs(P);continue;case 10:t.featureSet.hasZ=r.getBool();continue;case 11:t.featureSet.hasM=r.getBool();continue;case 12:t.featureSet.transform=r.processMessage(A);continue;case 9:t.featureSet.exceededTransferLimit=r.getBool();continue;case 13:t.featureSet.fields??=[],t.featureSet.fields.push(r.processMessage(y));continue;case 15:if(i){++t.parseOnly.featureCount,r.skip();continue}r.processMessageWithArgs(T,t);continue;case 2:t.idField(r.processMessage(g));continue;default:r.skip()}}function F(e,t,r){let i=-1;for(;e.next();)switch(e.tag()){case 4:i=e.pos(),e.skip();continue;case 1:e.processMessageWithArgs(C,t);continue;default:e.skip()}if(-1!==i){if(!t.queryGeometry()){const r=e.pos();e.move(i),e.processMessageWithArgs(_,t,1),e.move(r)}r.queryGeometryType=t.queryGeometryType(),r.queryGeometry=t.queryGeometry()}t.finish(),r.featureResult=t.featureSet}function N(e,t){const r={stack:[],error:void 0,hasError:!1};try{(0,i.mS)(r,{[Symbol.dispose](){m=[],w=[],v=[],x=[]}},!1);try{const r={stack:[],error:void 0,hasError:!1};try{const n=(0,i.mS)(r,s.A.constructPooled(new Uint8Array(e),new DataView(e)),!1);let o;for(;n.next();)2===n.tag()?(o={},n.processMessageWithArgs(F,t,o)):n.skip();return o}catch(e){r.error=e,r.hasError=!0}finally{(0,i.hk)(r)}}catch(e){throw new n.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}catch(e){r.error=e,r.hasError=!0}finally{(0,i.hk)(r)}}},62815(e,t,r){r.d(t,{N:()=>o,d:()=>a});var i=r(86211),n=r(73941),s=r(21325);function o(e,t,r){const i=a(t,r);if(1!==i)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,i);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return}}function a(e,t){return null==e||null==t||t.vcsWkid||(0,s.aI)(e,t)||(0,n.xP)(e)||(0,n.xP)(t)?1:(0,i.G9)(e)/(0,i.G9)(t)}},63746(e,t,r){function i(e){return class{constructor(){for(const t of e)this[t]=null}}}function n(e,t=1){const{transform:r,hasZ:i,hasM:n}=e;if(null==r)return i&&1!==t?e=>{e[2]*=t}:null;const[s,o]=function(e,t,r,i){let{scale:n,translate:s,originPosition:o}=e;return"upperLeft"===o&&(n=n.map((e,t)=>1===t?-e:e)),t&&(n=n.map((e,t)=>2===t?e*i:e)),!t&&r&&(n=n.filter((e,t)=>2!==t),s=s.filter((e,t)=>2!==t)),[n,s]}(r,i,n,t),a=e.hasZ?3:2;return e=>{for(let t=0;t<e.length&&(t!==a||0!==e[t]);++t)e[t]=e[t]*s[t]+o[t]}}r.d(t,{Mv:()=>n,_7:()=>i}),r(53966)},66208(e,t,r){r.d(t,{m:()=>n});var i=r(53655);function n(e,t){const{featureResult:r}=(0,i.SH)(e,t);return r}},69397(e,t,r){r.d(t,{Qf:()=>l,Qh:()=>o,RS:()=>n,Ul:()=>f,lM:()=>s,qK:()=>c});var i=r(34275);const n=16;function s(e){if(!e)return 0;let t=c;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let r=h;for(let i=0;i<t;i++)r+=a(e[i]);return r}(e);let t=c;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?o(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return n;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+(t?(0,i.iu)(t)?t.byteLength+p:Array.isArray(t)?u(t,n):0:0),0)}function u(e,t){return h+e.length*t}const c=32,h=16,p=145,f=64},70328(e,t,r){r.d(t,{BI:()=>b,DC:()=>h,Ej:()=>f,Ie:()=>m,Jt:()=>_,Ne:()=>d,RF:()=>c,aI:()=>v,fA:()=>o,gE:()=>l,hZ:()=>g,iT:()=>p,is:()=>w,qv:()=>x,vI:()=>y,vY:()=>a,v_:()=>M,vt:()=>s,w1:()=>u});var i=r(5443),n=(r(19419),r(4197));function s(e=M){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,i,n,o,a=s()){return a[0]=e,a[1]=t,a[2]=r,a[3]=i,a[4]=n,a[5]=o,a}function a(e,t=s()){return function(e,t,r,i=s()){return g(i,x),function(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),o=Math.min(o,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function l(e,t=(0,n.jh)(24)){const[r,i,s,o,a,l]=e;return t[0]=r,t[1]=i,t[2]=s,t[3]=r,t[4]=i,t[5]=l,t[6]=r,t[7]=a,t[8]=s,t[9]=r,t[10]=a,t[11]=l,t[12]=o,t[13]=i,t[14]=s,t[15]=o,t[16]=i,t[17]=l,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=l,t}function u(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.A(r?{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 c(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 p(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 d(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function y(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function g(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?g(e,x):s(x)}function _(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 b(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function v(e,t,r){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const x=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];s()},76357(e,t,r){r.d(t,{A:()=>u});var i=r(5482),n=r(66552),s=r(25482),o=r(91429),a=r(93223);const l=new n.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},86738(e,t,r){r.d(t,{A:()=>b});var i=r(5482),n=r(69622),s=r(53966),o=r(91429),a=r(56507),l=r(91075),u=r(16930),c=r(21325),h=r(28735);function p({x:e,y:t,spatialReference:r},i=[0,0]){if(r){if((0,c.K8)(r))return(0,h.tD)(e,t,i);if((0,c.EA)(r))return i[0]=e,i[1]=t,i}return null}const f=[0,0];var d,y=r(43937),g=r(36005);const m=[0,0];function _(e){return e&&("esri.geometry.SpatialReference"===e.declaredClass||null!=e.wkid)}let b=d=class extends l.A{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));const r=e._get("spatialReference");t._set("spatialReference",n.A.isFrozen(r)?r:r.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,r,i,n){let o;if(Array.isArray(e))o=e,n=t,e=o[0],t=o[1],r=o[2],i=o[3];else if(e&&"object"==typeof e){if(o=e,e=null!=o.x?o.x:o.longitude,t=null!=o.y?o.y:o.latitude,r=o.z,i=o.m,(n=o.spatialReference)&&"esri.geometry.SpatialReference"!==n.declaredClass&&(n=new u.A(n)),null!=o.longitude||null!=o.latitude)if(null==o.longitude)s.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==o.latitude)s.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&n?.isWebMercator){const r=(0,h.je)(o.longitude,o.latitude,m);e=r[0],t=r[1]}}else _(r)?(n=r,r=null):_(i)&&(n=i,i=null);const a={x:e,y:t};return null==a.x&&null!=a.y?s.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==a.y&&null!=a.x&&s.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=n&&(a.spatialReference=n),null!=r&&(a.z=r),null!=i&&(a.m=i),a}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(e){e!==(void 0!==this._get("m"))&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return void 0!==this.z}set hasZ(e){e!==(void 0!==this._get("z"))&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){return e=this,p(e,f)?.[1]??null;var e}set latitude(e){const{spatialReference:t,x:r}=this;null!=e&&t&&(t.isWebMercator?this._set("y",(0,h.je)(r,e,m)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){return e=this,p(e,f)?.[0]??null;var e}set longitude(e){const{y:t,spatialReference:r}=this;null!=e&&r&&(r.isWebMercator?this._set("x",(0,h.je)(e,t,m)[0]):r.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,r){t[r]=isNaN(e)?"NaN":e}readX(e){return"string"==typeof e?NaN:e}clone(){const e=new d;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return d.copy(e,this),this}equals(e){if(null==e)return!1;const{x:t,y:r,z:i,m:n,spatialReference:s}=this,{z:o,m:a}=e;let{x:l,y:u,spatialReference:c}=e;if(!s.equals(c))if(s.isWebMercator&&c.isWGS84)[l,u]=(0,h.je)(l,u),c=s;else{if(!s.isWGS84||!c.isWebMercator)return!1;[l,u]=(0,h.tD)(l,u),c=s}return t===l&&r===u&&i===o&&n===a&&s.wkid===c.wkid}offset(e,t,r){return this.x+=e,this.y+=t,null!=r&&(this.z=(this.z??0)+r),this}normalize(){if(!this.spatialReference)return this;const e=(0,c.Vp)(this.spatialReference);if(!e)return this;let t=this.x;const[r,i]=e.valid,n=2*i;let s;return t>i?(s=Math.ceil(Math.abs(t-i)/n),t-=s*n):t<r&&(s=Math.ceil(Math.abs(t-r)/n),t+=s*n),this._set("x",t),this}distance(e){return function(e,t){const r=e.x-t.x,i=e.y-t.y,n=null!=e.z&&null!=t.z?e.z-t.z:0;return Math.sqrt(r*r+i*i+n*n)}(this,e)}toArray(){const e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],b.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],b.prototype,"hasM",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],b.prototype,"hasZ",null),(0,i.Cg)([(0,o.MZ)({type:Number})],b.prototype,"latitude",null),(0,i.Cg)([(0,o.MZ)({type:Number})],b.prototype,"longitude",null),(0,i.Cg)([(0,o.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,o.wg)(e=>isNaN(e)?e:(0,a.GB)(e))],b.prototype,"x",void 0),(0,i.Cg)([(0,y.K)("x")],b.prototype,"writeX",null),(0,i.Cg)([(0,g.w)("x")],b.prototype,"readX",null),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],b.prototype,"y",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],b.prototype,"z",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],b.prototype,"m",void 0),b=d=(0,i.Cg)([(0,o.$K)("esri.geometry.Point")],b),b.prototype.toJSON.isDefaultToJSON=!0},91075(e,t,r){r.d(t,{A:()=>l});var i=r(5482),n=r(25482),s=r(91429),o=r(16930),a=r(36005);let l=class extends n.o{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=o.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof o.A)return e;if(null!=e){const r=new o.A;return r.read(e,t),r}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};(0,i.Cg)([(0,s.MZ)()],l.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],l.prototype,"cache",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],l.prototype,"extent",null),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],l.prototype,"hasM",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],l.prototype,"hasZ",void 0),(0,i.Cg)([(0,s.MZ)({type:o.A,json:{write:!0},value:o.A.WGS84})],l.prototype,"spatialReference",void 0),(0,i.Cg)([(0,a.w)("spatialReference")],l.prototype,"readSpatialReference",null),l=(0,i.Cg)([(0,s.$K)("esri.geometry.Geometry")],l)},98453(e,t,r){r.d(t,{m:()=>i});const i=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9397,9679],{4197(e,t,r){r.d(t,{Vj:()=>u,cj:()=>l,jh:()=>s,l5:()=>a,xm:()=>o});var i=r(34275),n=r(9093);function s(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function a(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function l(e){return[...e]}function u(e){const t=(0,n.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},5482(e,t,r){function i(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}function n(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var i,n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(void 0===i){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose],r&&(n=i)}if("function"!=typeof i)throw new TypeError("Object not disposable.");n&&(i=function(){try{n.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:i,async:r})}else r&&e.stack.push({async:!0});return t}r.d(t,{Cg:()=>i,hk:()=>o,mS:()=>n}),Object.create,Object.create;var s="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var i=new Error(r);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};function o(e){function t(t){e.error=e.hasError?new s(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,i=0;return function n(){for(;r=e.stack.pop();)try{if(!r.async&&1===i)return i=0,e.stack.push(r),Promise.resolve().then(n);if(r.dispose){var s=r.dispose.call(r.value);if(r.async)return i|=2,Promise.resolve(s).then(n,function(e){return t(e),n()})}else i|=1}catch(e){t(e)}if(1===i)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},8631(e,t,r){r.d(t,{r:()=>p,g:()=>h});var i,n=r(53177),s=r(76357),o=r(5482),a=r(91429),l=r(93223);let u=class extends s.A{static{i=this}constructor(e){super(e),this.type="inherited"}clone(){return new i}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=i=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var c=r(41628);const h={key:"type",base:s.A,typeMap:{range:c.A,"coded-value":n.A,inherited:u}};function p(e){if(!e?.type)return null;switch(e.type){case"range":return c.A.fromJSON(e);case"codedValue":return n.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},9093(e,t,r){function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(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]]}r.d(t,{o8:()=>n,vt:()=>i,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:n,create:i,fromValues:function(e,t,r,i,n,s,o,a,l,u,c,h,p,f,d,y){return[e,t,r,i,n,s,o,a,l,u,c,h,p,f,d,y]}},Symbol.toStringTag,{value:"Module"}))},20437(e,t,r){r.d(t,{A:()=>d});var i,n=r(5482),s=r(66552),o=r(25482),a=r(91429),l=r(56507),u=r(8631),c=r(98453),h=r(36005),p=r(93223);const f=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let d=class extends o.o{static{i=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?f.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"alias",void 0),(0,n.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],d.prototype,"defaultValue",void 0),(0,n.Cg)([(0,a.MZ)()],d.prototype,"description",void 0),(0,n.Cg)([(0,h.w)("description")],d.prototype,"readDescription",null),(0,n.Cg)([(0,a.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],d.prototype,"domain",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"editable",void 0),(0,n.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],d.prototype,"length",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"nullable",void 0),(0,n.Cg)([(0,p.e)(c.m)],d.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)()],d.prototype,"valueType",void 0),(0,n.Cg)([(0,h.w)("valueType",["description"])],d.prototype,"readValueType",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],d.prototype,"visible",void 0),d=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.Field")],d)},21276(e,t,r){r.d(t,{H:()=>s,f:()=>n});var i=r(49186);function n(e){if(e&&"object"==typeof e&&"type"in e&&"mesh"===e.type)throw new i.A("internal:mesh","Mesh geometries are not supported for this operation")}function s(e){e.forEach(n)}},28735(e,t,r){r.d(t,{Cv:()=>g,Gh:()=>b,ci:()=>v,je:()=>m,jg:()=>h,tD:()=>_,y7:()=>y,yw:()=>c});var i=r(4718),n=r(21276),s=r(16930),o=r(79258),a=r(21325);function l(e){return 57.29577951308232*e}function u(e){return.017453292519943*e}function c(e){return e/o.$O.radius}function h(e){return Math.PI/2-2*Math.atan(Math.exp(-e/o.$O.radius))}function p(e){return null!=e.wkid||null!=e.wkt}const f=[0,0];function d(e,t,r,i,n){const s=e,o=n;if(o.spatialReference=r,"x"in s&&"x"in o)[o.x,o.y]=t(s.x,s.y,f,i);else if("xmin"in s&&"xmin"in o)[o.xmin,o.ymin]=t(s.xmin,s.ymin,f,i),[o.xmax,o.ymax]=t(s.xmax,s.ymax,f,i);else if("paths"in s&&"paths"in o||"rings"in s&&"rings"in o){const e="paths"in s?s.paths:s.rings,r=[];let n;for(let s=0;s<e.length;s++){const o=e[s];n=[],r.push(n);for(let e=0;e<o.length;e++)n.push(t(o[e][0],o[e][1],[0,0],i)),o[e].length>2&&n[e].push(o[e][2]),o[e].length>3&&n[e].push(o[e][3])}"paths"in o?o.paths=r:o.rings=r}else if("points"in s&&"points"in o){const e=s.points,r=[];for(let n=0;n<e.length;n++)r[n]=t(e[n][0],e[n][1],[0,0],i),e[n].length>2&&r[n].push(e[n][2]),e[n].length>3&&r[n].push(e[n][3]);o.points=r}return n}function y(e,t){const r=e&&(p(e)?e:e.spatialReference),i=t&&(p(t)?t:t.spatialReference);return!(e&&"type"in e&&"mesh"===e.type||t&&"type"in t&&"mesh"===t.type||!r||!i)&&(!!(0,a.aI)(i,r)||(0,a.K8)(i)&&(0,a.oT)(r)||(0,a.K8)(r)&&(0,a.oT)(i))}function g(e,t){if(null==e)return null;const r=e.spatialReference,n=t&&(p(t)?t:t.spatialReference);return y(r,n)?(0,a.aI)(r,n)?(0,i.o8)(e):(0,a.K8)(n)?d(e,m,s.A.WebMercator,!1,(0,i.o8)(e)):(0,a.oT)(n)?d(e,_,s.A.WGS84,!1,(0,i.o8)(e)):null:null}function m(e,t,r=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);const i=u(t);return r[0]=u(e)*o.$O.radius,r[1]=o.$O.halfSemiMajorAxis*Math.log((1+Math.sin(i))/(1-Math.sin(i))),r}function _(e,t,r=[0,0],i=!1){if(e===a.Mc[0])r[0]=-180;else if(e===a.Mc[1])r[0]=180;else{const t=l(e/o.$O.radius);r[0]=i?t:t-360*Math.floor((t+180)/360)}return r[1]=l(Math.PI/2-2*Math.atan(Math.exp(-t/o.$O.radius))),r}function b(e,t=!1,r=(0,i.o8)(e)){return(0,n.f)(e),(0,n.f)(r),d(e,m,s.A.WebMercator,t,r)}function v(e,t=!1,r=(0,i.o8)(e)){return(0,n.f)(e),(0,n.f)(r),d(e,_,s.A.WGS84,t,r)}},34304(e,t,r){r.d(t,{DF:()=>l,FD:()=>n,Ov:()=>s,ct:()=>u});let i=1e-6;function n(){return i}const s=Math.random,o=Math.PI/180,a=180/Math.PI;function l(e){return e*o}function u(e){return e*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:s,equals:function(e,t){return Math.abs(e-t)<=i*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:n,setEpsilon:function(e){i=e},toDegree:u,toRadian:l},Symbol.toStringTag,{value:"Module"}))},39078(e,t,r){r.r(t),r.d(t,{default:()=>f});var i=r(24326),n=r(16930),s=r(62815),o=(r(70328),r(19419),r(50498),r(20437));r(44208),r(34727),r(21325);class a{constructor(e,t,r){this.uid=e,this.geometry=t,this.attributes=r,this.visible=!0,this.objectId=null,this.centroid=null}}class l{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null}}var u=r(63746);class c{constructor(e){this._options=e,this.featureSet=new l,this.usesShortGeometryTypes=!0,this._queryGeometryType=null,this._queryGeometry=null,this.parseOnly=null,this.missingAttributes=[],this._transformInPlace=null,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._vertex=[],this._part=null,this._parts=null,this._i=0,this._finishVertex=c._finishVertexNonPoint}queryGeometryType(){return this._queryGeometryType}queryGeometry(){return this._queryGeometry}idField(e){"string"==typeof e&&(this.featureSet.objectIdFieldName=e)}finish(){this._options.applyTransform&&(this.featureSet.transform=null);let{spatialReference:e,features:t,fields:r}=this.featureSet;if(!e||e instanceof n.A||(this.featureSet.spatialReference=e=n.A.fromJSON(e)),e)for(const{geometry:r}of t)r&&(r.spatialReference=e);r.forEach((e,t)=>{e instanceof o.A||(r[t]=o.A.fromJSON(e))})}_setVertexTransformer(){const{sourceSpatialReference:e}=this._options,{spatialReference:t,hasZ:r}=this.featureSet,i=r?(0,s.d)(e,t):1;this._transformInPlace??=(0,u.Mv)(this.featureSet,i)}feature(){this._attributesClass??=(0,u._7)(this.featureSet.fields?.map(e=>e.name)??[]),this.featureSet.features.push(new a((0,i.c)(),null,new this._attributesClass)),this._options.applyTransform&&this._setVertexTransformer()}finishFeature(){const{maxStringAttributeLength:e,maxStringAttributeFields:t}=this._options,{attributes:r}=this.featureSet.features.at(-1),i=r[this.featureSet.objectIdFieldName];!function(e,t,r,i){if(t?.size&&null!=r&&e)for(const n in e){if(!t.has(n))continue;const s=e[n];"string"==typeof s&&s.length>r&&(i(n),e[n]="")}}(r,t,e,e=>{null!=i&&this.missingAttributes.push({objectId:i,attribute:e})})}_createPoint(){const{hasZ:e,hasM:t,spatialReference:r}=this.featureSet,i={type:"point",x:0,y:0,spatialReference:r,hasZ:e,hasM:t};return e&&(i.z=0),t&&(i.m=0),i}centroid(e){const{hasZ:t,hasM:r}=this.featureSet,i=this._createPoint();[i.x,i.y]=e,t&&(i.z=e[2]),r&&(i.m=e.at(-1)),this.featureSet.features.at(-1).centroid=i}geometry(e,t,r){this._previousX=this._previousY=0,this._lengths=r;let i,{spatialReference:n,hasZ:s,hasM:o}=this.featureSet;switch(s??=!1,o??=!1,this._vertex=[0,0],s&&this._vertex.push(0),o&&this._vertex.push(0),this._finishVertex=c._finishVertexNonPoint,t){case"esriGeometryPoint":this._point=this._createPoint(),i=this._point,this._finishVertex=s?o?c._finishVertexPointXYZM:c._finishVertexPointXYZ:o?c._finishVertexPointXYM:c._finishVertexPointXY;break;case"esriGeometryMultipoint":i={type:"multipoint",points:[],spatialReference:n,hasZ:s,hasM:o},this._part=i.points,this._parts=[];break;case"esriGeometryPolyline":i={type:"polyline",paths:[],spatialReference:n,hasZ:s,hasM:o},this._parts=i.paths,this._part=[];break;case"esriGeometryPolygon":i={type:"polygon",rings:[],spatialReference:n,hasZ:s,hasM:o},this._parts=i.rings,this._part=[]}1===e?(this._queryGeometry=i,this._queryGeometryType=t,this._options.applyTransform||this._setVertexTransformer()):this.featureSet.features.at(-1).geometry=i}coord(e){const t=this._vertex;t[this._i++]=e,this._i<t.length||(this._i=0,this._transformInPlace&&(t[0]+=this._previousX,t[1]+=this._previousY,[this._previousX,this._previousY]=t,this._transformInPlace(t)),this._finishVertex(this))}static _finishVertexPointXY({_point:e,_vertex:t}){[e.x,e.y]=t}static _finishVertexPointXYZ({_point:e,_vertex:t}){[e.x,e.y,e.z]=t}static _finishVertexPointXYM({_point:e,_vertex:t}){[e.x,e.y,e.m]=t}static _finishVertexPointXYZM({_point:e,_vertex:t}){[e.x,e.y,e.z,e.m]=t}static _finishVertexNonPoint(e){const{_part:t,_parts:r,_lengths:i,_vertex:n}=e;t.push([...n]),t.length<i[r.length]||(e._previousX=e._previousY=0,e._part=[],r.push(t))}}var h=r(66208);class p{_parseFeatureQuery(e){const t=new c(e.options),r=(0,h.m)(e.buffer,t),i={...r,spatialReference:r.spatialReference?.toJSON(),fields:r.fields?r.fields.map(e=>e.toJSON()):void 0,missingAttributes:t.missingAttributes};return Promise.resolve(i)}}function f(){return new p}},39357(e,t,r){r.d(t,{A:()=>a});var i,n=r(5482),s=r(25482),o=r(91429);let a=i=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},41628(e,t,r){r.d(t,{A:()=>l});var i,n=r(5482),s=r(91429),o=r(76357),a=r(93223);let l=class extends o.A{static{i=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new i({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,n.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,n.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=i=(0,n.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],l)},50498(e,t,r){r.d(t,{Ye:()=>h,gy:()=>c,iI:()=>f,yR:()=>p});var i=r(66552),n=r(5443),s=r(91075),o=r(48526),a=r(86738),l=r(39829),u=r(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:s.A,key:"type",typeMap:{extent:n.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}},f=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},51624(e,t,r){r.d(t,{A:()=>u});var i=r(44208),n=r(69397),s=r(93687);const o=4294967296,a=new TextDecoder("utf-8"),l=(0,i.A)("safari")||(0,i.A)("ios")?6:(0,i.A)("ff")?12:32;class u{constructor(e,t,r=0,i=e?.byteLength??0){this._tag=0,this._dataType=99,this._init(e,t,r,i)}[Symbol.dispose](){this.release()}_init(e,t,r,i){this._data=e,this._dataView=t,this._pos=r,this._end=i}get usedMemory(){return 64+(0,n.Qf)(this._data)}asUnsafe(){return this}clone(){return new u(this._data,this._dataView,this._pos,this._end)}clonePooled(){return u.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(e,t,r=0,i=e?.byteLength??0){const n=u.pool.acquire();return n._init(e,t,r,i),n}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getPackedEnd(){const e=this.getUInt32();return this._pos+e}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),r}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,i){const n=this.getMessage(),s=e(n,t,r,i);return n.release(),s}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){const e=this._getLength(),t=u.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){u.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,r=0,i=0;if(this._end-t>=10)do{if(i=e[t++],r|=127&i,!(128&i))break;if(i=e[t++],r|=(127&i)<<7,!(128&i))break;if(i=e[t++],r|=(127&i)<<14,!(128&i))break;if(i=e[t++],r|=(127&i)<<21,!(128&i))break;if(i=e[t++],r+=268435456*(127&i),!(128&i))break;if(i=e[t++],r+=34359738368*(127&i),!(128&i))break;if(i=e[t++],r+=4398046511104*(127&i),!(128&i))break;if(i=e[t++],r+=562949953421312*(127&i),!(128&i))break;if(i=e[t++],r+=72057594037927940*(127&i),!(128&i))break;if(i=e[t++],r+=0x8000000000000000*(127&i),!(128&i))break;throw new Error("Varint too long!")}while(0);else{let n=1;for(;t!==this._end&&(i=e[t],128&i);)++t,r+=(127&i)*n,n*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=i*n}return this._pos=t,r}_decodeSVarint(){const e=this._data;let t,r=0,i=0;const n=1&e[this._pos];if(i=e[this._pos++],r|=127&i,!(128&i))return n?-(r+1)/2:r/2;if(i=e[this._pos++],r|=(127&i)<<7,!(128&i))return n?-(r+1)/2:r/2;if(i=e[this._pos++],r|=(127&i)<<14,!(128&i))return n?-(r+1)/2:r/2;if(i=e[this._pos++],r|=(127&i)<<21,!(128&i))return n?-(r+1)/2:r/2;if(i=e[this._pos++],r+=268435456*(127&i),!(128&i))return n?-(r+1)/2:r/2;if(i=e[this._pos++],r+=34359738368*(127&i),!(128&i))return n?-(r+1)/2:r/2;if(i=e[this._pos++],r+=4398046511104*(127&i),!(128&i))return n?-(r+1)/2:r/2;if(t=BigInt(r),i=e[this._pos++],t+=0x2000000000000n*BigInt(127&i),!(128&i))return Number(n?-(t+1n)/2n:t/2n);if(i=e[this._pos++],t+=0x100000000000000n*BigInt(127&i),!(128&i))return Number(n?-(t+1n)/2n:t/2n);if(i=e[this._pos++],t+=0x8000000000000000n*BigInt(127&i),!(128&i))return Number(n?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>l){const i=e.subarray(t,r);return a.decode(i)}let i="",n="";for(let s=t;s<r;++s){const t=e[s];128&t?n+="%"+t.toString(16):(i+=decodeURIComponent(n)+String.fromCharCode(t),n="")}return n.length&&(i+=decodeURIComponent(n)),i}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}static{this.pool=new s.A(()=>new u(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},53177(e,t,r){r.d(t,{A:()=>c});var i,n=r(5482),s=r(4718),o=r(91429),a=r(39357),l=r(76357),u=r(93223);let c=class extends l.A{static{i=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new i({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,n.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,n.Cg)([(0,u.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],c)},53655(e,t,r){r.d(t,{SH:()=>N,ae:()=>A,cn:()=>y});var i=r(5482),n=r(49186),s=r(51624),o=r(50498);const a=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],l=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],u=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],c=["upperLeft","lowerLeft"];function h(e,t){const r=e.getEnum();return r<t.length?t[r]:void 0}function p(e,t){e.featureSet.geometryType=e.usesShortGeometryTypes?o.gy.fromJSON(t):t}function f(e,t=e.featureSet.geometryType){return e.usesShortGeometryTypes?o.gy.toJSON(t):t}function d(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function y(e){const t=e.asUnsafe(),r={type:l[0]};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=h(t,l);break;case 3:r.alias=t.getString();break;case 4:r.sqlType=h(t,u);break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function g(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}let m=[];function _(e,t,r){let i=f(t),n=0;const s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:1===r?i=f(t,h(s,a)):s.skip();continue;case 2:for(const e=s.getPackedEnd();s.pos()<e;)m[n++]=s.getUInt32();continue;case 3:n>0?(m.length=n,null!=t.geometry(r,i,m)&&(m=[])):t.geometry(r,i,[]);for(const e=s.getPackedEnd();s.pos()<e;)t.coord(s.getSInt64());continue;default:s.skip()}}function b(e,t){const r=[],i=e.asUnsafe();for(;i.next();)if(3!==i.tag())i.skip();else for(const e=i.getPackedEnd();i.pos()<e;)r.push(i.getSInt64());t.centroid(r)}let v=[],w=[],x=[];function M(e,t){const r={stack:[],error:void 0,hasError:!1};try{let n=0;const s=m;let o=0;const a=e.asUnsafe(),l=(0,i.mS)(r,a.clonePooled().asUnsafe(),!1);for(;a.next();)switch(a.tag()){case 2:for(const u=a.getPackedEnd();a.pos()<u;)s[n++]=a.getUInt32();continue;case 3:if(!("curvedGeometry"in t))throw new Error(`Tried to parse curved geometry in a ${t.constructor.name}, which doesn't support them.`);a.processMessageWithArgs(S,o++);continue;case 4:{const c=a.getUInt32(),h=a.pos()+c;if(0===o||0===n||0===c){a.move(h);continue}s.length=n,x.length=w.length=o,t.curvedGeometry(f(t),s,w,x);const{hasZ:p,hasM:d}=t.featureSet,y=[],g=[0,0];function _(){b(),g[0]+=y[0],g[1]+=y[1]}function b(){for(let e=0;e<g.length;++e)y[e]=g[e],g[e]=a.getSInt64()}p&&g.push(0),d&&g.push(0);const M=[0,0],T=[0,0];let k=0;for(let I=0;I<n;++I){g.fill(0),_(),t.startCurvedPart(g);for(const A=k+s[I];k<A;++k){const P=w[k],V=x[k];switch(P){case 0:for(let C=0;C<V;++C)_(),t.lineSegment(y,g);continue;case 1:for(let F=0;F<V;++F){b();const N=M;N[0]=a.getSInt64(),N[1]=a.getSInt64(),t.circularArcSegment(y,g,N)}continue;case 2:for(let R=0;R<V;++R)_(),M[0]=a.getSInt64()+y[0],M[1]=a.getSInt64()+y[1],T[0]=a.getSInt64()+M[0],T[1]=a.getSInt64()+M[1],t.bezierSegment(y,g,M,T);continue;case 3:if(l.move(v[k]),l.getUInt32()<7*V)throw new Error("Not implemented: compressed full circle encoding");for(let G=0;G<V;++G){_();const O=M;O[0]=l.getDouble(),O[1]=l.getDouble();const j=l.getDouble(),q=l.getDouble(),Z=l.getDouble(),E=l.getDouble(),D=l.getDouble();t.ellipticArcSegment(y,g,O,j,q,Z,E,D)}continue}}t.finishCurvedPart(g)}continue}default:a.skip()}}catch(z){r.error=z,r.hasError=!0}finally{(0,i.hk)(r)}}function S(e,t){const r=e.asUnsafe();let i=0,n=0,s=0;for(;r.next();)switch(r.tag()){case 1:i=r.getEnum();continue;case 2:n=r.getUInt32();continue;case 3:s=r.pos(),r.skip();continue;default:r.skip()}if(3===i&&0===s)throw new Error("An elliptic arc segment set did not include a parameters array");w[t]=i,x[t]=n,v[t]=s}function T(e,t){t.feature();const r=t.featureSet.features.at(-1);let i=0;const{fields:n}=t.featureSet;for(;e.next();)switch(e.tag()){case 1:if(null==n)throw new Error("A Feature had attributes but the FeatureResult didn't include any fields");r.attributes[n[i++].name]=e.processMessage(d);continue;case 2:e.processMessageWithArgs(_,t,0);continue;case 4:e.processMessageWithArgs(b,t);continue;case 7:e.processMessageWithArgs(M,t);continue;default:e.skip();continue}t.finishFeature?.()}function k(e){const t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function I(e){const t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function A(e){const t={originPosition:c[0]},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=h(r,c);break;case 2:t.scale=r.processMessage(k);break;case 3:t.translate=r.processMessage(I);break;default:r.skip()}return t}function P(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function V(e){const t={wkid:0};for(;e.next();)switch(e.tag()){case 1:t.wkid=e.getUInt32();break;case 5:t.wkt=e.getString();break;case 2:t.latestWkid=e.getUInt32();break;case 3:t.vcsWkid=e.getUInt32();break;case 4:t.latestVcsWkid=e.getUInt32();break;default:e.skip()}return t}function C(e,t){const r=e.asUnsafe();if(t.featureSet.features.length=0,"features"===t.parseOnly?.type){const e=t.parseOnly.indices.values();let i=0,n=e.next().value;for(;r.next();)15===r.tag()&&i++===n?(n=e.next().value,r.processMessageWithArgs(T,t)):r.skip();return}let i=!1;for("metadata"===t.parseOnly?.type&&(i=!0,t.parseOnly.featureCount=0),p(t,"esriGeometryPoint");r.next();)switch(r.tag()){case 1:t.idField(r.getString());continue;case 3:t.featureSet.globalIdFieldName=r.getString();continue;case 4:t.featureSet.geohashFieldName=r.getString();continue;case 5:t.featureSet.geometryProperties=r.processMessage(P);continue;case 7:p(t,h(r,a));continue;case 8:t.featureSet.spatialReference=r.processMessageWithArgs(V);continue;case 10:t.featureSet.hasZ=r.getBool();continue;case 11:t.featureSet.hasM=r.getBool();continue;case 12:t.featureSet.transform=r.processMessage(A);continue;case 9:t.featureSet.exceededTransferLimit=r.getBool();continue;case 13:t.featureSet.fields??=[],t.featureSet.fields.push(r.processMessage(y));continue;case 15:if(i){++t.parseOnly.featureCount,r.skip();continue}r.processMessageWithArgs(T,t);continue;case 2:t.idField(r.processMessage(g));continue;default:r.skip()}}function F(e,t,r){let i=-1;for(;e.next();)switch(e.tag()){case 4:i=e.pos(),e.skip();continue;case 1:e.processMessageWithArgs(C,t);continue;default:e.skip()}if(-1!==i){if(!t.queryGeometry()){const r=e.pos();e.move(i),e.processMessageWithArgs(_,t,1),e.move(r)}r.queryGeometryType=t.queryGeometryType(),r.queryGeometry=t.queryGeometry()}t.finish(),r.featureResult=t.featureSet}function N(e,t){const r={stack:[],error:void 0,hasError:!1};try{(0,i.mS)(r,{[Symbol.dispose](){m=[],v=[],w=[],x=[]}},!1);try{const r={stack:[],error:void 0,hasError:!1};try{const n=(0,i.mS)(r,s.A.constructPooled(new Uint8Array(e),new DataView(e)),!1);let o;for(;n.next();)2===n.tag()?(o={},n.processMessageWithArgs(F,t,o)):n.skip();return o}catch(e){r.error=e,r.hasError=!0}finally{(0,i.hk)(r)}}catch(e){throw new n.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}catch(e){r.error=e,r.hasError=!0}finally{(0,i.hk)(r)}}},62815(e,t,r){r.d(t,{N:()=>a,d:()=>l});var i=r(86211),n=r(73941),s=r(21325),o=r(52006);function a(e,t,r){const i=l(t,r);if(1!==i)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const r of e.curvePaths)for(const e of r){const r=(0,o.yP)(e);r.length>2&&(r[2]*=t)}if(e.paths)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}}(e,i);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const r of e.curveRings)for(const e of r){const r=(0,o.yP)(e);r.length>2&&(r[2]*=t)}if(e.rings)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}}(e,i);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,i);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return}}function l(e,t){return null==e||null==t||t.vcsWkid||(0,s.aI)(e,t)||(0,n.xP)(e)||(0,n.xP)(t)?1:(0,i.G9)(e)/(0,i.G9)(t)}},63746(e,t,r){function i(e){return class{constructor(){for(const t of e)this[t]=null}}}function n(e,t=1){const{transform:r,hasZ:i,hasM:n}=e;if(null==r)return i&&1!==t?e=>{e[2]*=t}:null;const[s,o]=function(e,t,r,i){let{scale:n,translate:s,originPosition:o}=e;return"upperLeft"===o&&(n=n.map((e,t)=>1===t?-e:e)),t&&(n=n.map((e,t)=>2===t?e*i:e)),!t&&r&&(n=n.filter((e,t)=>2!==t),s=s.filter((e,t)=>2!==t)),[n,s]}(r,i,n,t),a=e.hasZ?3:2;return e=>{for(let t=0;t<e.length&&(t!==a||0!==e[t]);++t)e[t]=e[t]*s[t]+o[t]}}r.d(t,{Mv:()=>n,_7:()=>i}),r(53966)},66208(e,t,r){r.d(t,{m:()=>n});var i=r(53655);function n(e,t){const{featureResult:r}=(0,i.SH)(e,t);return r}},69397(e,t,r){r.d(t,{Qf:()=>l,Qh:()=>o,RS:()=>n,Ul:()=>f,lM:()=>s,qK:()=>c});var i=r(34275);const n=16;function s(e){if(!e)return 0;let t=c;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return l(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let r=h;for(let i=0;i<t;i++)r+=a(e[i]);return r}(e);let t=c;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?o(e):c;case"string":return function(e){return 32+e.length}(e);case"number":return n;case"boolean":return 4;default:return 8}}function l(...e){return e.reduce((e,t)=>e+(t?(0,i.iu)(t)?t.byteLength+p:Array.isArray(t)?u(t,n):0:0),0)}function u(e,t){return h+e.length*t}const c=32,h=16,p=145,f=64},70328(e,t,r){r.d(t,{BI:()=>b,DC:()=>h,Ej:()=>f,Ie:()=>m,Jt:()=>_,Ne:()=>d,RF:()=>c,aI:()=>w,fA:()=>o,gE:()=>l,hZ:()=>g,iT:()=>p,is:()=>v,qv:()=>x,vI:()=>y,vY:()=>a,v_:()=>M,vt:()=>s,w1:()=>u});var i=r(5443),n=(r(19419),r(4197));function s(e=M){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,i,n,o,a=s()){return a[0]=e,a[1]=t,a[2]=r,a[3]=i,a[4]=n,a[5]=o,a}function a(e,t=s()){return function(e,t,r,i=s()){return g(i,x),function(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),o=Math.min(o,t[r+3*e+2]),a=Math.max(a,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=o,e[3]=a,e[4]=l,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function l(e,t=(0,n.jh)(24)){const[r,i,s,o,a,l]=e;return t[0]=r,t[1]=i,t[2]=s,t[3]=r,t[4]=i,t[5]=l,t[6]=r,t[7]=a,t[8]=s,t[9]=r,t[10]=a,t[11]=l,t[12]=o,t[13]=i,t[14]=s,t[15]=o,t[16]=i,t[17]=l,t[18]=o,t[19]=a,t[20]=s,t[21]=o,t[22]=a,t[23]=l,t}function u(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.A(r?{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 c(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 p(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 d(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function y(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function g(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?g(e,x):s(x)}function _(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 b(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function v(e){return 6===e.length}function w(e,t,r){if(null==e||null==t)return e===t;if(!v(e)||!v(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const x=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];s()},76357(e,t,r){r.d(t,{A:()=>u});var i=r(5482),n=r(66552),s=r(25482),o=r(91429),a=r(93223);const l=new n.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},86738(e,t,r){r.d(t,{A:()=>b});var i=r(5482),n=r(69622),s=r(53966),o=r(91429),a=r(56507),l=r(91075),u=r(16930),c=r(21325),h=r(28735);function p({x:e,y:t,spatialReference:r},i=[0,0]){if(r){if((0,c.K8)(r))return(0,h.tD)(e,t,i);if((0,c.EA)(r))return i[0]=e,i[1]=t,i}return null}const f=[0,0];var d,y=r(43937),g=r(36005);const m=[0,0];function _(e){return e&&("esri.geometry.SpatialReference"===e.declaredClass||null!=e.wkid)}let b=d=class extends l.A{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));const r=e._get("spatialReference");t._set("spatialReference",n.A.isFrozen(r)?r:r.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,r,i,n){let o;if(Array.isArray(e))o=e,n=t,e=o[0],t=o[1],r=o[2],i=o[3];else if(e&&"object"==typeof e){if(o=e,e=null!=o.x?o.x:o.longitude,t=null!=o.y?o.y:o.latitude,r=o.z,i=o.m,(n=o.spatialReference)&&"esri.geometry.SpatialReference"!==n.declaredClass&&(n=new u.A(n)),null!=o.longitude||null!=o.latitude)if(null==o.longitude)s.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==o.latitude)s.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&n?.isWebMercator){const r=(0,h.je)(o.longitude,o.latitude,m);e=r[0],t=r[1]}}else _(r)?(n=r,r=null):_(i)&&(n=i,i=null);const a={x:e,y:t};return null==a.x&&null!=a.y?s.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==a.y&&null!=a.x&&s.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=n&&(a.spatialReference=n),null!=r&&(a.z=r),null!=i&&(a.m=i),a}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(e){e!==(void 0!==this._get("m"))&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return void 0!==this.z}set hasZ(e){e!==(void 0!==this._get("z"))&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){return e=this,p(e,f)?.[1]??null;var e}set latitude(e){const{spatialReference:t,x:r}=this;null!=e&&t&&(t.isWebMercator?this._set("y",(0,h.je)(r,e,m)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){return e=this,p(e,f)?.[0]??null;var e}set longitude(e){const{y:t,spatialReference:r}=this;null!=e&&r&&(r.isWebMercator?this._set("x",(0,h.je)(e,t,m)[0]):r.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,r){t[r]=isNaN(e)?"NaN":e}readX(e){return"string"==typeof e?NaN:e}clone(){const e=new d;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return d.copy(e,this),this}equals(e){if(null==e)return!1;const{x:t,y:r,z:i,m:n,spatialReference:s}=this,{z:o,m:a}=e;let{x:l,y:u,spatialReference:c}=e;if(!s.equals(c))if(s.isWebMercator&&c.isWGS84)[l,u]=(0,h.je)(l,u),c=s;else{if(!s.isWGS84||!c.isWebMercator)return!1;[l,u]=(0,h.tD)(l,u),c=s}return t===l&&r===u&&i===o&&n===a&&s.wkid===c.wkid}offset(e,t,r){return this.x+=e,this.y+=t,null!=r&&(this.z=(this.z??0)+r),this}normalize(){if(!this.spatialReference)return this;const e=(0,c.Vp)(this.spatialReference);if(!e)return this;let t=this.x;const[r,i]=e.valid,n=2*i;let s;return t>i?(s=Math.ceil(Math.abs(t-i)/n),t-=s*n):t<r&&(s=Math.ceil(Math.abs(t-r)/n),t+=s*n),this._set("x",t),this}distance(e){return function(e,t){const r=e.x-t.x,i=e.y-t.y,n=null!=e.z&&null!=t.z?e.z-t.z:0;return Math.sqrt(r*r+i*i+n*n)}(this,e)}toArray(){const e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],b.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],b.prototype,"hasM",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],b.prototype,"hasZ",null),(0,i.Cg)([(0,o.MZ)({type:Number})],b.prototype,"latitude",null),(0,i.Cg)([(0,o.MZ)({type:Number})],b.prototype,"longitude",null),(0,i.Cg)([(0,o.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,o.wg)(e=>isNaN(e)?e:(0,a.GB)(e))],b.prototype,"x",void 0),(0,i.Cg)([(0,y.K)("x")],b.prototype,"writeX",null),(0,i.Cg)([(0,g.w)("x")],b.prototype,"readX",null),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],b.prototype,"y",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],b.prototype,"z",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],b.prototype,"m",void 0),b=d=(0,i.Cg)([(0,o.$K)("esri.geometry.Point")],b),b.prototype.toJSON.isDefaultToJSON=!0},91075(e,t,r){r.d(t,{A:()=>l});var i=r(5482),n=r(25482),s=r(91429),o=r(16930),a=r(36005);let l=class extends n.o{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=o.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof o.A)return e;if(null!=e){const r=new o.A;return r.read(e,t),r}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};(0,i.Cg)([(0,s.MZ)()],l.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],l.prototype,"cache",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],l.prototype,"extent",null),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],l.prototype,"hasM",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],l.prototype,"hasZ",void 0),(0,i.Cg)([(0,s.MZ)({type:o.A,json:{write:!0},value:o.A.WGS84})],l.prototype,"spatialReference",void 0),(0,i.Cg)([(0,a.w)("spatialReference")],l.prototype,"readSpatialReference",null),l=(0,i.Cg)([(0,s.$K)("esri.geometry.Geometry")],l)},98453(e,t,r){r.d(t,{m:()=>i});const i=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})}}]);