@arcgis/core 4.33.0-next.20250327 → 4.33.0-next.20250328

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 (185) hide show
  1. package/applications/KnowledgeStudio/layerInternalAccessUtils.d.ts +1 -0
  2. package/applications/KnowledgeStudio/layerInternalAccessUtils.js +1 -1
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/08ea652b7896c1da022d.js +1 -0
  5. package/assets/esri/core/workers/chunks/{66cae76da0582cfa8656.js → 0943695a1dcd21c45e83.js} +1 -1
  6. package/assets/esri/core/workers/chunks/09ca64184bed6abafcd9.js +1 -0
  7. package/assets/esri/core/workers/chunks/{c6bcfa99fb222894fa0e.js → 0a0e5d699ddb7052c5c0.js} +1 -1
  8. package/assets/esri/core/workers/chunks/0a675f9f69b8b13b7443.js +1 -0
  9. package/assets/esri/core/workers/chunks/0eed612e82a279ac8d1e.js +1 -0
  10. package/assets/esri/core/workers/chunks/{cbe22c58b3230b12b31a.js → 13ad4ee2e064d13ca34d.js} +1 -1
  11. package/assets/esri/core/workers/chunks/176e7c7c2a871bcb512e.js +1 -0
  12. package/assets/esri/core/workers/chunks/18d0fe269531b951e309.js +1 -0
  13. package/assets/esri/core/workers/chunks/201db423e3c6f947b77c.js +1 -0
  14. package/assets/esri/core/workers/chunks/213e82a7e3fa5b253ec1.js +1 -0
  15. package/assets/esri/core/workers/chunks/{22618753349eb9d8b3df.js → 222446da9cb58c3c3b7e.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{0f37b3a797d8a55439a4.js → 277b61af8982092a4c81.js} +1 -1
  17. package/assets/esri/core/workers/chunks/2b07bdb6c4c4a5b2f968.js +1 -0
  18. package/assets/esri/core/workers/chunks/2bda2cfc6e81818d7d33.js +1 -0
  19. package/assets/esri/core/workers/chunks/2cbab0c078d0b844934c.js +1 -0
  20. package/assets/esri/core/workers/chunks/{a68b48fd1a529f69705e.js → 2fcfc21ba38d9919730a.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{193b4fecdfee927d6200.js → 37e4f588a6896f98bce3.js} +1 -1
  22. package/assets/esri/core/workers/chunks/392e64a573f67817db02.js +1 -0
  23. package/assets/esri/core/workers/chunks/3a743653b786b010a57f.js +1 -0
  24. package/assets/esri/core/workers/chunks/3be007f32ea1e18b8b3b.js +1 -0
  25. package/assets/esri/core/workers/chunks/451555af283b32a10fef.js +1 -0
  26. package/assets/esri/core/workers/chunks/{835fa4484c58d9b31c78.js → 460afde071df9f35182d.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{26bedec014488e1fc5e4.js → 4816cf647eca2f4cecc2.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{09c9e4e94f09ba9f4c22.js → 4aa0a58ded4465ea28bd.js} +1 -1
  29. package/assets/esri/core/workers/chunks/4d02e211967384994e5e.js +1 -0
  30. package/assets/esri/core/workers/chunks/{82692bff98b4ec781544.js → 4d798da25a726f179089.js} +1 -1
  31. package/assets/esri/core/workers/chunks/51339193abddfe37745d.js +1 -0
  32. package/assets/esri/core/workers/chunks/{0a98dc3ea67ce97a6e7b.js → 5269793822e41dd07fe1.js} +1 -1
  33. package/assets/esri/core/workers/chunks/52d160cb7921ae7a4f57.js +1 -0
  34. package/assets/esri/core/workers/chunks/{630a9afdf0523c27ddb6.js → 555c95b149e3a82a4460.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{eab1e3c101158675abba.js → 5660f479c005149bce8d.js} +1 -1
  36. package/assets/esri/core/workers/chunks/5a51c75a2932d9da001a.js +1 -0
  37. package/assets/esri/core/workers/chunks/{37a3533f004bf2e888da.js → 5d01f0b86566d08ba29d.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{0576b035c1654a43ad5c.js → 5de3aee547113bfd59df.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{45eee326f7a649c5a15b.js → 626db8488f9d931cf55c.js} +2 -2
  40. package/assets/esri/core/workers/chunks/{5a6f7360183693f8490d.js → 6339a24874c698594101.js} +1 -1
  41. package/assets/esri/core/workers/chunks/63dade3e1cc7f5b76846.js +1 -0
  42. package/assets/esri/core/workers/chunks/6c378e7a6ca29d530880.js +1 -0
  43. package/assets/esri/core/workers/chunks/71e46e866c23372b0b58.js +1 -0
  44. package/assets/esri/core/workers/chunks/{c591527543fd75a917d4.js → 72c7126dbd27fa48fcdb.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{d459c790a3b89ac53d2d.js → 759c12b0715279e3c0f6.js} +1 -1
  46. package/assets/esri/core/workers/chunks/75fa861b5757551f8fdc.js +1 -0
  47. package/assets/esri/core/workers/chunks/7655be1470ce39f0e494.js +1 -0
  48. package/assets/esri/core/workers/chunks/796cf1c2ca9955595836.js +1 -0
  49. package/assets/esri/core/workers/chunks/79c4f10da8360ee60cd2.js +1 -0
  50. package/assets/esri/core/workers/chunks/{49c346d2fb8538990f45.js → 7d1c39c2a80e20a0595f.js} +1 -1
  51. package/assets/esri/core/workers/chunks/7f36cffc6ed984b7e467.js +1 -0
  52. package/assets/esri/core/workers/chunks/82353e59ac6d909dcf41.js +1 -0
  53. package/assets/esri/core/workers/chunks/84d301e1b6b0d0b48f51.js +1 -0
  54. package/assets/esri/core/workers/chunks/86931186095c23e47c0c.js +1 -0
  55. package/assets/esri/core/workers/chunks/{59e4e780dcdfed555ca5.js → 8ef5e6f1c606e5e41002.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{55c7c51e56d72f507c22.js → 90afead317186b31b2f9.js} +1 -1
  57. package/assets/esri/core/workers/chunks/90c893959145827961ac.js +1 -0
  58. package/assets/esri/core/workers/chunks/931275cfa2c55eb0f504.js +1 -0
  59. package/assets/esri/core/workers/chunks/{7e0e9ca84490a0c67197.js → 98da74243df03e0cc70d.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{354117429b3a0a0794c9.js → 999e8dbe6f4d0665b3ab.js} +1 -1
  61. package/assets/esri/core/workers/chunks/a348ff2dd936c6bf9399.js +1 -0
  62. package/assets/esri/core/workers/chunks/a53e9f5092de715da025.js +1 -0
  63. package/assets/esri/core/workers/chunks/a9b6377f1fef5826f28d.js +1 -0
  64. package/assets/esri/core/workers/chunks/{8063e35dacf8f99471d8.js → aa404aaec843a4f46ab6.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{21016d58428b15f7427c.js → aa712f850fd129ca5ed8.js} +1 -1
  66. package/assets/esri/core/workers/chunks/ab0113d1269675dcd520.js +1 -0
  67. package/assets/esri/core/workers/chunks/aff7c4477e1f0c31fffa.js +1 -0
  68. package/assets/esri/core/workers/chunks/bf453744067267e84d1b.js +1 -0
  69. package/assets/esri/core/workers/chunks/c2f38c66fae2cdb57445.js +1 -0
  70. package/assets/esri/core/workers/chunks/c7aa4a8263e21f631004.js +1 -0
  71. package/assets/esri/core/workers/chunks/{3be465c653236d6d8c1f.js → d2c7067bb6654c0e2793.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{bc3f42401131a12fce9b.js → d2eb3802fa003c2d497e.js} +1 -1
  73. package/assets/esri/core/workers/chunks/da7c14ae1a25fc7163ce.js +1 -0
  74. package/assets/esri/core/workers/chunks/daa54c8a317c27881763.js +1 -0
  75. package/assets/esri/core/workers/chunks/e15c612caadf7bac4ab9.js +1 -0
  76. package/assets/esri/core/workers/chunks/{a2377969f76640f1d6fe.js → e2029267cddb8e2effab.js} +1 -1
  77. package/assets/esri/core/workers/chunks/e3ef0451dcdc2e966628.js +1 -0
  78. package/assets/esri/core/workers/chunks/e7e987558cf017c62458.js +1 -0
  79. package/assets/esri/core/workers/chunks/eabfab23246d4a052ea3.js +1 -0
  80. package/assets/esri/core/workers/chunks/ed3d1d0465f4a4d8df4a.js +1 -0
  81. package/assets/esri/core/workers/chunks/{ed4afafbcb31491c2049.js → f452ca61842dbe8de9af.js} +1 -1
  82. package/assets/esri/core/workers/chunks/f54546c155fba2fd3a7e.js +1 -0
  83. package/assets/esri/core/workers/chunks/{4c8164955f8d844c09ee.js → f8d1c7df671733c3325c.js} +1 -1
  84. package/assets/esri/core/workers/chunks/{e45404a982e173459990.js → f92d521ed3df3c9f737b.js} +1 -1
  85. package/assets/esri/core/workers/chunks/{b2289c18c02c868a2939.js → f9bedb421d4e115a888f.js} +1 -1
  86. package/assets/esri/core/workers/chunks/{55f7b1de8882569861c0.js → faed301a25252c619cff.js} +1 -1
  87. package/assets/esri/core/workers/chunks/fb22b2e4988ecf4d6376.js +1 -0
  88. package/assets/esri/core/workers/chunks/fb455fd89b74b70a6a2b.js +1 -0
  89. package/assets/esri/core/workers/chunks/{6d77c7e9dec323fc4145.js → fb603edd374e24f366ff.js} +1 -1
  90. package/core/Accessor.js +1 -1
  91. package/core/accessorSupport/utils.js +1 -1
  92. package/core/workers/registry.js +1 -1
  93. package/geometry/support/meshUtils/elevation.js +1 -1
  94. package/geometry/support/meshUtils.js +1 -1
  95. package/interfaces.d.ts +38 -3
  96. package/intl/locale.js +1 -1
  97. package/layers/support/RasterWorker.js +1 -1
  98. package/layers/support/VideoElement.js +1 -1
  99. package/layers/support/rasterDatasets/FunctionRaster.js +1 -1
  100. package/layers/support/rasterFunctions/clipUtils.js +1 -1
  101. package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
  102. package/package.json +2 -2
  103. package/rest/networks/queryAssociations.js +1 -1
  104. package/support/revision.js +1 -1
  105. package/symbols/WebStyleSymbol.js +1 -1
  106. package/symbols/support/symbolUtils.js +1 -1
  107. package/views/2d/LabelManager.js +1 -1
  108. package/views/2d/engine/webgl/Overlay.js +1 -1
  109. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  110. package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
  111. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  112. package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
  113. package/views/3d/terrain/TerrainSurface.js +1 -1
  114. package/views/3d/terrain/TileRenderer.js +1 -1
  115. package/views/DOMContainer.js +1 -1
  116. package/views/FocusArea.js +1 -1
  117. package/views/GroundView.js +1 -1
  118. package/views/PopupView.js +1 -1
  119. package/views/support/GroundViewElevationSampler.js +1 -1
  120. package/views/support/TextureCompressionHelper.js +1 -1
  121. package/views/support/TextureCompressionWorker.js +5 -0
  122. package/views/support/TextureCompressionWorkerHandle.js +5 -0
  123. package/views/support/imageReprojection.js +1 -1
  124. package/webscene/Slide.js +1 -1
  125. package/widgets/CatalogLayerList/CatalogLayerListViewModel.js +1 -1
  126. package/widgets/CatalogLayerList.js +1 -1
  127. package/widgets/Directions.js +1 -1
  128. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
  129. package/widgets/LayerList/ListItem.js +1 -1
  130. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  131. package/widgets/Legend.js +1 -1
  132. package/widgets/TableList/ListItem.js +1 -1
  133. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  134. package/widgets/UtilityNetworkTrace.js +1 -1
  135. package/widgets/ValuePicker.js +1 -1
  136. package/widgets/support/uriUtils.js +1 -1
  137. package/assets/esri/core/workers/chunks/07910d16d1efae41d4bc.js +0 -1
  138. package/assets/esri/core/workers/chunks/0a3c1642cfabf9acd5c5.js +0 -1
  139. package/assets/esri/core/workers/chunks/0b7331613f91a3258352.js +0 -1
  140. package/assets/esri/core/workers/chunks/1a09dfb2c9fd7cd84cd4.js +0 -1
  141. package/assets/esri/core/workers/chunks/1dd6d68d23ba07587ae4.js +0 -1
  142. package/assets/esri/core/workers/chunks/2079f9d28e4199714f22.js +0 -1
  143. package/assets/esri/core/workers/chunks/29ba2022c2978e9bd53e.js +0 -1
  144. package/assets/esri/core/workers/chunks/29fe3e9a0ecab74bb729.js +0 -1
  145. package/assets/esri/core/workers/chunks/35f3eef81fac7924a487.js +0 -1
  146. package/assets/esri/core/workers/chunks/4539a802cba77a7a7cc7.js +0 -1
  147. package/assets/esri/core/workers/chunks/470cf066294b053c2732.js +0 -1
  148. package/assets/esri/core/workers/chunks/4d7bd2bbe9045a2fee7a.js +0 -1
  149. package/assets/esri/core/workers/chunks/50b6be13c270d7ac80d3.js +0 -1
  150. package/assets/esri/core/workers/chunks/54ace3e4802934f3f9f2.js +0 -1
  151. package/assets/esri/core/workers/chunks/5656cc44e3d4547668db.js +0 -1
  152. package/assets/esri/core/workers/chunks/597f450a57750637cb4d.js +0 -1
  153. package/assets/esri/core/workers/chunks/605eddec7aac891ed141.js +0 -1
  154. package/assets/esri/core/workers/chunks/6e7577cb6378ff34e722.js +0 -1
  155. package/assets/esri/core/workers/chunks/6eb8d7edafeafeb10cae.js +0 -1
  156. package/assets/esri/core/workers/chunks/71bd94cc789a55910f92.js +0 -1
  157. package/assets/esri/core/workers/chunks/762567124623f6d11e67.js +0 -1
  158. package/assets/esri/core/workers/chunks/77845cd5d824c1004bfa.js +0 -1
  159. package/assets/esri/core/workers/chunks/78683f1aadc1377be5fd.js +0 -1
  160. package/assets/esri/core/workers/chunks/7a4413a188a8f1affb2f.js +0 -1
  161. package/assets/esri/core/workers/chunks/7d3b2bdc75525d47389c.js +0 -1
  162. package/assets/esri/core/workers/chunks/81f2f1614ea27f4c2e65.js +0 -1
  163. package/assets/esri/core/workers/chunks/901c957c049f53318e87.js +0 -1
  164. package/assets/esri/core/workers/chunks/94f41ef15f6c61562e5e.js +0 -1
  165. package/assets/esri/core/workers/chunks/95f23bd17ce9e07fc8ef.js +0 -1
  166. package/assets/esri/core/workers/chunks/96d7f47ea8fbf345101c.js +0 -1
  167. package/assets/esri/core/workers/chunks/9f312f7284e506a84ed7.js +0 -1
  168. package/assets/esri/core/workers/chunks/ac86d0b31f6368bd1fb1.js +0 -1
  169. package/assets/esri/core/workers/chunks/ad9b3b83aa96db7b79ea.js +0 -1
  170. package/assets/esri/core/workers/chunks/b02ac03503bfff1ff922.js +0 -1
  171. package/assets/esri/core/workers/chunks/b2666b89755323a84fcb.js +0 -1
  172. package/assets/esri/core/workers/chunks/b948fe33b4d650eea796.js +0 -1
  173. package/assets/esri/core/workers/chunks/be002f24beb832a369ce.js +0 -1
  174. package/assets/esri/core/workers/chunks/bf3c4c1bff8b71bc0b13.js +0 -1
  175. package/assets/esri/core/workers/chunks/d45ff061bf71b73e9f26.js +0 -1
  176. package/assets/esri/core/workers/chunks/d8ddff920725acb99200.js +0 -1
  177. package/assets/esri/core/workers/chunks/db4c110ab4c26c4b768c.js +0 -1
  178. package/assets/esri/core/workers/chunks/dfa4be2e07cc4c0938b0.js +0 -1
  179. package/assets/esri/core/workers/chunks/e491daf73ab1264aa1b9.js +0 -1
  180. package/assets/esri/core/workers/chunks/f2a6287c8d28be24f71e.js +0 -1
  181. package/assets/esri/core/workers/chunks/f4861d73c62096f73e48.js +0 -1
  182. package/assets/esri/core/workers/chunks/f70dd16f14279bb7e60d.js +0 -1
  183. package/assets/esri/core/workers/chunks/fa011ad649c05201e92a.js +0 -1
  184. package/views/3d/webgl-engine/lib/TextureCompressionWorker.js +0 -5
  185. package/views/3d/webgl-engine/lib/TextureCompressionWorkerHandle.js +0 -5
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7444],{1364:(e,t,s)=>{s.d(t,{c:()=>i});var n=s(55537);function i(e,t){const s=e.getGeometryType();return s===n.G.enumPoint?e:(0,n.h)(s)?function(e){if(function(e){for(let t=0,s=e.getPathCount();t<s;t++){const s=e.getPathSize(t);if(0===s)return!1;if(1===s){if(0===e.getSegmentCountPath(t))return!1;if(e.getSegmentType(e.getPathStart(t))===n.G.enumLine)return!1;if(!e.isClosedPath(t))return!1}}return!0}(e))return e;const t=e.createInstance();for(let s=0,i=e.getPathCount();s<i;s++){const i=e.getPathSize(s);if(0!==i){if(1===i){if(0===e.getSegmentCountPath(s))continue;if(e.getSegmentType(e.getPathStart(s))===n.G.enumLine)continue;if(!e.isClosedPath(s))continue}t.addPath(e,s,!0)}}return t}(e):s===n.G.enumMultiPoint||s===n.G.enumEnvelope?e:s===n.G.enumMultipatch?((0,n.b)("not implemented for multipatch"),e):e}},37444:(e,t,s)=>{s.r(t),s.d(t,{OperatorGeodesicBuffer:()=>G});var n=s(76061),i=s(55537),r=s(79187),o=s(12189),m=s(90237),a=s(35368),h=s(95213),c=s(11878),u=s(83661),l=s(31139),_=s(1364),f=s(5247);class d{constructor(e){this.m_sr=null,this.m_gcs=null,this.m_transform=null,this.m_a=0,this.m_eSquared=0,this.m_rpu=0,this.m_radTolerance=0,this.m_q90=0,this.m_gcs90=0,this.m_gcs180=0,this.m_gcs360=0,this.m_gcs60=0,this.m_ellipticToGeodesicMaxRatio=0,this.m_curveType=0,this.m_bShapePreserving=!1,this.m_distance=0,this.m_absDistance=0,this.m_convergenceOffset=0,this.m_cornerStep=0,this.m_segmentStep=0,this.m_progressTracker=e}bufferPolygon(e){const t=new a.a,s=new I(this,e,t);return this.processGnomonicBufferPiecesCursor(!0,s)}bufferPolyline(e){const t=new I(this,e,null);return this.processGnomonicBufferPiecesCursor(!0,t)}bufferMultiPoint(e){const t=new E(this,e);return this.processGnomonicBufferPiecesCursor(!1,t)}bufferPoint(e){const t=e.getXY();t.scale(this.m_rpu);let s=new a.a;if(this.bufferPoint2D(t,!1,s)){const e=(0,h.b)(null,s,!0);s=(0,o.y)(s,e,!0,!0,-1,this.m_progressTracker,0,!1)}return s=(new o.v).foldInto360RangeGeodetic(s,this.m_gcs,2),s}processGnomonicBufferPiecesCursor(e,t){const s=t;let n=s.getGnomonic();const i=(0,o.z)((0,o.A)());let m=new o.L,a=(new o.h).executeMany(m,i,this.m_progressTracker,2);const l=(0,u.d)(6,!1),_=(0,u.m)(r.J,6);this.initializeGrid(l,_);const f=[null,null,null,null,null,null],d=[null,null,null,null,null,null],g=[null,null,null,null,null,null];let P,p,b;for(;null!==(P=s.next());){if(p=s.getGnomonic(),p!==n){if(null!==n){let t=a.next();if(m=null,a=null,null!=t){const s=(0,h.b)(i,t,!0),r=(0,h.d)(s);t=n.unproject(t,r,this.m_progressTracker),this.putInGridCursors(e,t,i,!0,l,_,f,d,g)}}null!==p&&(m=new o.L,a=(new o.h).executeMany(m,i,this.m_progressTracker,2)),n=p}if(s.isRunningInGnomonic()){if(p.project(P),s.needsSimplify()){const e=(0,h.b)(null,P,!0);P=(0,o.y)(P,e,!0,!0,-1,this.m_progressTracker,0,!1)}m.tick(v(P)),a.tock()}else this.putInGridCursors(e,P,i,!0,l,_,f,d,g)}let x=!1;for(let e=0;e<6;e++)if(null!=g[e]){x=!0;break}if(x){let t=!1;const r=[null,null,null,null,null,null];if(e){const n=s.m_densified;if(s.m_densified=null,null!==n){const s=new c.T;s.scale(1/this.m_rpu,1/this.m_rpu),n.applyTransformation(s),this.m_distance>0?this.putInGridCursors(e,n,i,!1,l,_,f,d,g):(this.processInGrid(e,n,!1,l,_,f,r),t=!0)}}const u=new o.L,P=(new o.h).executeMany(u,this.m_gcs,this.m_progressTracker,2);if(null!==a){let t=a.next();m=null,a=null;const s=(0,h.b)(i,t,!0),r=(0,h.d)(s);t=n.unproject(t,r,this.m_progressTracker),this.putInGridCursors(e,t,i,!0,l,_,f,d,g)}for(let e=0;e<6;e++)if(null!=g[e]){let s=g[e].next();g[e]=null,d[e]=null,t&&null!==r[e]&&(s=(new o.e).execute(r[e],s,i,this.m_progressTracker));const n=(0,h.b)(i,s,!0),m=(0,h.d)(n);s=f[e].unproject(s,m,this.m_progressTracker),s=(new o.g).execute(s,this.m_gcs,!0,this.m_progressTracker),u.tick(v(s)),P.tock()}b=P.next()}else{let t,r=!1;if(e){let e=s.m_densified;if(s.m_densified=null,null!==e){const s=new c.T;s.scale(1/this.m_rpu,1/this.m_rpu),e.applyTransformation(s),p.project(e);const n=(0,h.b)(null,e,!0);e=(0,o.y)(e,n,!1,!0,-1,this.m_progressTracker,0,!1),this.m_distance>0?(m.tick(v(e)),a.tock()):(t=e,r=!0)}}let u=a.next();m=null,a=null,r&&(u=(new o.e).execute(t,u,i,this.m_progressTracker));const l=(0,h.b)(i,u,!0),_=(0,h.d)(l);b=n.unproject(u,_,this.m_progressTracker),b=(new o.g).execute(b,this.m_gcs,!0,this.m_progressTracker)}return b=(new o.v).foldInto360RangeGeodetic(b,this.m_gcs,2),b}putInGridCursors(e,t,s,n,i,r,m,a,h){const c=[null,null,null,null,null,null];this.processInGrid(e,t,n,i,r,m,c);for(let e=0;e<6;e++)null!==c[e]&&(null===a[e]&&(a[e]=new o.L,h[e]=(new o.h).executeMany(a[e],s,this.m_progressTracker,2)),a[e].tick(v(c[e])),h[e].tock())}processInGrid(e,t,s,n,i,r,m){const a=.01,c=this.insertGeodeticPointsAlongGrid(t,i,a);for(let e=0;e<6;e++){if(n[e])continue;const _=i[e].clone();_.inflateCoords(a,a);const f=(0,h.e)(t,_),d=(0,h.a)(null,f,!1).total();let g=(0,l.c)(c,_,d,Number.NaN,this.m_progressTracker);if(null!==g&&!g.isEmpty()){if(g===c&&(g=g.clone()),null===r[e]){const t=new u.P;e<3?t.setCoords(0,1):t.setCoords(0,-1);const s=new u.P;s.setAdd(i[e].getCenter(),t),r[e]=S(this.m_gcs,s)}r[e].project(g);const t=(0,h.b)(null,g,!0);g=(0,o.y)(g,t,s,!0,-1,this.m_progressTracker,0,!1),m[e]=g}}}insertGeodeticPointsAlongGrid(e,t,s){const n=r.J.construct(t[3].xmin,t[3].ymin,t[2].xmax,t[2].ymax),i=(0,o.B)(this.m_gcs,n,e,!0,this.m_progressTracker),m=new a.E,h=m.addGeometry(i);return(0,o.D)(m,h,this.m_gcs,0,2,!0,t[0].xmax+s),(0,o.D)(m,h,this.m_gcs,0,2,!0,t[1].xmax+s),(0,o.D)(m,h,this.m_gcs,0,2,!1,t[1].ymin+s),0!==s&&((0,o.D)(m,h,this.m_gcs,0,2,!0,t[0].xmax-s),(0,o.D)(m,h,this.m_gcs,0,2,!0,t[1].xmax-s),(0,o.D)(m,h,this.m_gcs,0,2,!1,t[1].ymin-s)),m.getGeometry(h)}initializeGrid(e,t){for(let t=0;t<6;t++)e[t]=!1;t[0].setCoords({xmin:-this.m_gcs180,ymin:0,xmax:-this.m_gcs60,ymax:this.m_gcs90}),t[1].setCoords({xmin:-this.m_gcs60,ymin:0,xmax:this.m_gcs60,ymax:this.m_gcs90}),t[2].setCoords({xmin:this.m_gcs60,ymin:0,xmax:this.m_gcs180,ymax:this.m_gcs90}),t[3].setCoords({xmin:-this.m_gcs180,ymin:-this.m_gcs90,xmax:-this.m_gcs60,ymax:0}),t[4].setCoords({xmin:-this.m_gcs60,ymin:-this.m_gcs90,xmax:this.m_gcs60,ymax:0}),t[5].setCoords({xmin:this.m_gcs60,ymin:-this.m_gcs90,xmax:this.m_gcs180,ymax:0})}checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(e,t,s,n,i,r){const m=e[0],a=e.at(-1),h=m.y<a.y?m.y:a.y,c=m.y>a.y?m.y:a.y,l=o.t.q(this.m_a,this.m_eSquared,h),_=o.t.q(this.m_a,this.m_eSquared,c);if(this.m_q90-(l+t+this.m_absDistance)>.001&&this.m_q90+(_-t-this.m_absDistance)>.001)return!1;const f=s-u.l,d=n+u.l,g=f-Math.PI,x=f+Math.PI,y=d+Math.PI,w=[Number.NaN],C=[Number.NaN],S=[Number.NaN],v=[Number.NaN];let D=!1;if(b(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,m,f,g,a,d,w,C),b(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,a,y,d,m,g,S,v),(d<w[0]&&w[0]<y||d<C[0]&&C[0]<y)&&(D=!0),D||(g<S[0]&&S[0]<f||g<v[0]&&v[0]<f)&&(D=!0),!D&&i)return!1;const I=[];for(let t=e.length-1;t>=0;t--)I.push(e[t]);r.setEmpty(),r.addPathPoint2D(null,0,!0);let E=0;E=P(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,this.m_curveType,e,f,d,i,E,r),E=p(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,a,d,y,this.m_cornerStep,i,E,r,w[0],C[0]),E=P(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,this.m_curveType,I,y,x,i,E,r),E=p(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,m,g,f,this.m_cornerStep,i,E,r,S[0],v[0]);let G=!1;return i||(G=this.checkAndPrepForPole(r)),D||G}bufferPoint2D(e,t,s){s.setEmpty(),s.addPathPoint2D(null,0,!0),p(this.m_a,this.m_eSquared,this.m_rpu,this.m_absDistance,e,-this.m_cornerStep,2*Math.PI,this.m_cornerStep,t,0,s);let n=!1;return t||(n=this.checkAndPrepForPole(s)),n}checkAndPrepForPole(e){const t=this.checkAndPrepForPoleTouch(e),s=this.checkAndPrepForPoleWrap(e);return t||s}checkAndPrepForPoleTouch(e){const t=new r.J;return e.queryEnvelope(t),!(!(0,o.P)(t.ymax,this.m_gcs90)&&!(0,o.P)(t.ymin,-this.m_gcs90)||(this.prepPoleTouch(e),0))}checkAndPrepForPoleWrap(e){const t=e.getXY(0),s=e.getXY(e.getPointCount()-1);return Math.abs(t.x-s.x)>this.m_gcs180?(this.prepSinglePoleWrap(e),!0):this.checkAndPrepForDoublePoleWrap(e)}checkAndPrepForDoublePoleWrap(e){return e.calculateArea2D()<0&&(this.prepDoublePoleWrap(e),!0)}prepPoleTouch(e){const t=new a.a;t.insertPath2D(-1,null,0,0,!0);const s=e.getPathStart(0),n=e.getPathEnd(0),i=n-s;let r=-1;for(r=s;r<n;r++){const t=e.getXY(r),s=(0,o.P)(t.y,this.m_gcs90),n=(0,o.P)(t.y,-this.m_gcs90);if(!s&&!n)break}let m=r,h=!1,c=Number.NaN;do{const n=e.getXY(m),r=(0,o.P)(n.y,this.m_gcs90),a=(0,o.P)(n.y,-this.m_gcs90),l=s+(m+1-s)%i;if(r||a){let s=u.P.construct(c,n.y);t.insertPoint2D(0,-1,s);const i=e.getXY(l),r=(0,o.P)(i.y,this.m_gcs90),m=(0,o.P)(i.y,-this.m_gcs90);r||m||(s=u.P.construct(i.x,n.y),h?t.setXY(t.getPointCount()-1,s):t.insertPoint2D(0,-1,s)),h=!0}else t.insertPoint2D(0,-1,n),c=n.x,h=!1;m=l}while(m!==r);e.setEmpty(),e.add(t,!1)}prepSinglePoleWrap(e){const t=new a.a,s=new a.a,n=new c.T,i=e.getXY(e.getPathStart(0)),m=e.getXY(e.getPathEnd(0)-1),_=this.m_gcs360,f=this.m_gcs180,d=new r.J;d.setCoords({xmin:-this.m_gcs180,ymin:-this.m_gcs90,xmax:this.m_gcs180,ymax:this.m_gcs90});const g=new r.J;e.queryEnvelope(g);const P=Math.ceil(g.width()/_);let p,b;i.x>m.x?(p=-_,b=this.m_gcs90):(p=_,b=-this.m_gcs90),n.setShiftCoords(p,0),t.addPath(e,0,!0),s.add(t,!1);const x=new h.P;for(let e=0;e<P;e++)s.applyTransformation(n),s.getPointByVal(0,x),t.lineToPoint(x),t.addSegmentsFromPath(s,0,0,s.getSegmentCount()-1,!1);const y=t.getXY(0),w=t.getXY(t.getPointCount()-1);y.y=b,w.y=b,t.lineTo(w);const C=new u.P;for(C.setCoordsPoint2D(w),C.x-=.5*p;Math.abs(C.x-y.x)>f;)t.lineTo(C),C.x-=.5*p;t.lineTo(y);const S=d.getCenterX(),v=new r.J;t.queryEnvelope(v);let D=0;const I=v.getCenter().x;I-S>f?D=-Math.ceil((I-S-f)/_):S-I>f&&(D=Math.ceil((S-I-f)/_)),0!==D&&(n.setShiftCoords(D*_,0),t.applyTransformation(n));const E=new a.E,G=E.addGeometry(t);(0,o.D)(E,G,this.m_gcs,0,2,!0,d.xmin),(0,o.D)(E,G,this.m_gcs,0,2,!0,d.xmax);const k=E.getGeometry(G),T=(0,h.e)(k,d);T.inflateCoords(0,1);const M=(0,h.a)(null,T,!0).total(),N=(0,l.c)(k,d,M,Number.NaN,this.m_progressTracker);e.setEmpty(),e.add(N,!1)}prepDoublePoleWrap(e){const t=this.m_gcs360,s=this.m_gcs180,n=new r.J;n.setCoords({xmin:-this.m_gcs180,ymin:-this.m_gcs90,xmax:this.m_gcs180,ymax:this.m_gcs90});const i=n.getCenter().x,m=new r.J;e.queryPathEnvelope(0,m);let _,f=0,d=m.getCenter().x;if(d-i>s?f=-Math.ceil((d-i-s)/t):i-d>s&&(f=Math.ceil((i-d-s)/t)),0!==f){const s=new c.T;s.setShiftCoords(f*t,0),e.getImpl().applyTransformationToPath(s,0),e.queryPathEnvelope(0,m),d=m.getCenter().x}const g=new r.J;n.containsExclusiveEnvelope(m)?(_=!1,g.setCoords({env2D:n})):(_=!0,g.setCoords({env2D:n}),g.xmin-=t,g.xmax+=t);let P=e.createInstance();P.addPathPoint2D(null,0,!0);const p=new u.P;if(p.setCoords(g.xmin,g.ymin),P.insertPoint2D(0,-1,p),p.setCoords(g.xmin,g.ymax),P.insertPoint2D(0,-1,p),p.setCoords(.5*(g.xmin+g.xmax),g.ymax),P.insertPoint2D(0,-1,p),p.setCoords(g.xmax,g.ymax),P.insertPoint2D(0,-1,p),p.setCoords(g.xmax,g.ymin),P.insertPoint2D(0,-1,p),p.setCoords(.5*(g.xmin+g.xmax),g.ymin),P.insertPoint2D(0,-1,p),_){P.addPath(e,0,!0);const s=new c.T;d<i?s.setShiftCoords(t,0):s.setShiftCoords(-t,0),e.getImpl().applyTransformationToPath(s,0),P.addPath(e,0,!0);const r=new a.E,m=r.addGeometry(P);(0,o.D)(r,m,this.m_gcs,0,2,!0,n.xmin),(0,o.D)(r,m,this.m_gcs,0,2,!0,n.xmax),P=r.getGeometry(m);const u=(0,h.e)(P,n);u.inflateCoords(0,1);const _=(0,h.a)(null,u,!0).total();P=(0,l.c)(P,n,_,Number.NaN,this.m_progressTracker)}else P.addPath(e,0,!0);e.setEmpty(),e.add(P,!1)}setMinCornerStep(){const e={stack:[],error:void 0,hasError:!1};try{let t=Math.min(Math.PI*this.m_a-this.m_absDistance,this.m_absDistance);t=Math.min(t,.125*this.m_a*Math.PI);const s=new u.P;s.setCoords(0,10*this.m_rpu);const n=0;let i=45*this.m_rpu;const r=(0,m.b)(e,new u.S(new o.E,new o.E),!1),a=(0,m.b)(e,new u.S(new o.E,new o.E),!1),h=(0,m.b)(e,new u.S(new o.E,new o.E),!1),c=(0,m.b)(e,new u.S(new o.E,new o.E),!1),l=new u.P,_=new u.P,f=new u.P,d=new u.P;for(o.F.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.y,t,n,r.at(0),r.at(1)),l.setCoords(r.at(0).val,r.at(1).val),o.F.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.y,t,i,a.at(0),a.at(1)),_.setCoords(a.at(0).val,a.at(1).val);;){const e={stack:[],error:void 0,hasError:!1};try{const r=.5*(n+i);o.F.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.y,t,r,h.at(0),h.at(1)),f.setCoords(h.at(0).val,h.at(1).val);const u=(0,m.b)(e,new o.E,!1),g=(0,m.b)(e,new o.E,!1);o.F.geodeticDistance(this.m_a,this.m_eSquared,l.x,l.y,_.x,_.y,u,g,null,2),o.F.geodeticCoordinate(this.m_a,this.m_eSquared,l.x,l.y,.5*u.val,g.val,c.at(0),c.at(1),2),d.setCoords(c.at(0).val,c.at(1).val);const P=(0,m.b)(e,new o.E,!1);if(o.F.geodeticDistance(this.m_a,this.m_eSquared,f.x,f.y,d.x,d.y,P,null,null,2),P.val<=this.m_convergenceOffset)break;i*=.9,o.F.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.y,t,i,a.at(0),a.at(1)),_.setCoords(a.at(0).val,a.at(1).val)}catch(t){e.error=t,e.hasError=!0}finally{(0,m.c)(e)}}const g=i-n,P=2*Math.PI/Math.ceil(2*Math.PI/g);this.m_cornerStep=P}catch(t){e.error=t,e.hasError=!0}finally{(0,m.c)(e)}}setMinSegmentStep(){const e={stack:[],error:void 0,hasError:!1};try{let t=Math.min(Math.PI*this.m_a-this.m_absDistance,this.m_absDistance);t=Math.min(t,.125*this.m_a*Math.PI);const s=new u.P,n=new u.P;s.setCoords(0,10*this.m_rpu),n.setCoords(10*this.m_rpu,10*this.m_rpu);const i=(0,m.b)(e,new o.E,!1),r=(0,m.b)(e,new o.E,!1),a=(0,m.b)(e,new o.E,!1);o.F.geodeticDistance(this.m_a,this.m_eSquared,s.x,s.y,n.x,n.y,a,i,r,this.m_curveType);const h=(0,m.b)(e,new u.S(new o.E,new o.E),!1),c=(0,m.b)(e,new u.S(new o.E,new o.E),!1),l=new u.P,_=(0,m.b)(e,new o.E,!1),f=(0,m.b)(e,new u.S(new o.E,new o.E),!1),d=(0,m.b)(e,new u.S(new o.E,new o.E),!1),g=(0,m.b)(e,new u.S(new o.E,new o.E),!1),P=(0,m.b)(e,new u.S(new o.E,new o.E),!1),p=new u.P,b=new u.P,x=new u.P,y=new u.P,w=0;let C=1;const S=i.val,v=r.val,D=S-.5*Math.PI,I=v+.5*Math.PI,E=a.val;for(o.F.geodesicCoordinate(this.m_a,this.m_eSquared,s.x,s.y,t,D,f.at(0),f.at(1)),p.setCoords(f.at(0).val,f.at(1).val),o.F.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,I,d.at(0),d.at(1)),b.setCoords(d.at(0).val,d.at(1).val);;){const e={stack:[],error:void 0,hasError:!1};try{const i=.5*(w+C);o.F.geodeticCoordinate(this.m_a,this.m_eSquared,s.x,s.y,i*E,S,h.at(0),h.at(1),this.m_curveType),l.setCoords(h.at(0).val,h.at(1).val),o.F.geodeticDistance(this.m_a,this.m_eSquared,s.x,s.y,l.x,l.y,null,null,_,this.m_curveType);const r=_.val+.5*Math.PI;o.F.geodesicCoordinate(this.m_a,this.m_eSquared,l.x,l.y,t,r,g.at(0),g.at(1)),x.setCoords(g.at(0).val,g.at(1).val);const a=(0,m.b)(e,new o.E,!1),u=(0,m.b)(e,new o.E,!1);o.F.geodeticDistance(this.m_a,this.m_eSquared,p.x,p.y,b.x,b.y,a,u,null,2),o.F.geodeticCoordinate(this.m_a,this.m_eSquared,p.x,p.y,.5*a.val,u.val,P.at(0),P.at(1),2),y.setCoords(P.at(0).val,P.at(1).val);const f=(0,m.b)(e,new o.E,!1);if(o.F.geodeticDistance(this.m_a,this.m_eSquared,x.x,x.y,y.x,y.y,f,null,null,2),f.val<=this.m_convergenceOffset)break;{const e={stack:[],error:void 0,hasError:!1};try{C*=.9,o.F.geodeticCoordinate(this.m_a,this.m_eSquared,s.x,s.y,C*E,S,c.at(0),c.at(1),this.m_curveType),n.setCoords(c.at(0).val,c.at(1).val);const i=(0,m.b)(e,new o.E,!1);o.F.geodeticDistance(this.m_a,this.m_eSquared,s.x,s.y,n.x,n.y,null,null,i,this.m_curveType);const r=i.val+.5*Math.PI;o.F.geodesicCoordinate(this.m_a,this.m_eSquared,n.x,n.y,t,r,d.at(0),d.at(1)),b.setCoords(d.at(0).val,d.at(1).val)}catch(t){e.error=t,e.hasError=!0}finally{(0,m.c)(e)}}}catch(t){e.error=t,e.hasError=!0}finally{(0,m.c)(e)}}let G=C*E;G>1e5&&(G=1e5),this.m_segmentStep=G}catch(t){e.error=t,e.hasError=!0}finally{(0,m.c)(e)}}setConvergenceOffset(){let e;e=this.m_absDistance>5e4?100:this.m_absDistance>1e4?10:1,this.m_absDistance/e<500&&(e=this.m_absDistance/500),e<.01&&(e=.01),this.m_convergenceOffset=e}}function g(e,t,s,n,m,c,l){if(e.isEmpty())return new a.a({vd:e.getDescription()});let _=e;if((0,i.j)(_)){const e=10*t.getTolerance(0);_=(new f.O).execute(_,0,e,0,l,12e3)}const g=new d(l);g.m_sr=t,g.m_gcs=t.getGCS(),g.m_transform=(0,o.p)(t,g.m_gcs,null);const P=(0,o.G)();g.m_gcs.querySpheroidData(P);const p=new r.J;_.queryEnvelope(p),g.m_a=P.majorSemiAxis,g.m_eSquared=P.e2,g.m_rpu=g.m_gcs.getUnit().getUnitToBaseFactor(),g.m_gcs90=.5*Math.PI/g.m_rpu,g.m_gcs180=Math.PI/g.m_rpu,g.m_gcs360=2*Math.PI/g.m_rpu,g.m_gcs60=g.m_gcs360/6,g.m_q90=o.t.q90(g.m_a,g.m_eSquared),g.m_ellipticToGeodesicMaxRatio=.5*g.m_a*Math.PI/g.m_q90;const b=g.m_gcs.getTolerance(0);g.m_radTolerance=b*g.m_rpu,4===s?(g.m_curveType=2,g.m_bShapePreserving=!0):(g.m_curveType=s,g.m_bShapePreserving=!1),g.m_distance=n,g.m_absDistance=Math.abs(n),Number.isNaN(m)||m<=0?g.setConvergenceOffset():g.m_convergenceOffset=Math.max(m,.001),g.m_convergenceOffset/=c;let x,y=_.getGeometryType();if((0,i.f)(y)){const e=new a.P({vd:_.getDescription()});e.addSegment(_,!0),x=e,y=i.G.enumPolyline}else if(y===i.G.enumEnvelope){const e=_,t=new r.J;e.queryEnvelope(t);const s=(0,h.d)((0,h.a)(g.m_sr,p,!0));if(t.minDimension()<=s)if(0===t.maxDimension()){const t=new h.P({vd:_.getDescription()});e.getCenter(t),x=t,y=i.G.enumPoint}else{const t=new a.P({vd:_.getDescription()});t.addEnvelope(e,!1),x=t,y=i.G.enumPolyline}else{const t=new a.a({vd:_.getDescription()});t.addEnvelope(e,!1),x=t,y=i.G.enumPolygon}}else x=_;if(g.setMinCornerStep(),(0,i.e)(y)||g.setMinSegmentStep(),g.m_absDistance<=.5*g.m_convergenceOffset)return y!==i.G.enumPolygon?new a.a({vd:x.getDescription()}):g.m_bShapePreserving?x:(0,o.u)(x,g.m_sr,g.m_curveType,g.m_segmentStep,-1,l);if(g.m_distance<0&&y!==i.G.enumPolygon)return new a.a({vd:x.getDescription()});if(g.m_bShapePreserving&&(0,i.h)(y)){const e=(0,o.u)(x,t,4,Number.NaN,g.m_convergenceOffset,l);x=(new o.v).execute(e,g.m_transform,l)}else x=(new o.v).execute(x,g.m_transform,l);if(x=(0,o.w)(x,g.m_gcs),x.isEmpty())return new a.a({vd:x.getDescription()});!g.m_bShapePreserving&&(0,i.h)(y)&&(x=(0,o.x)(g.m_rpu,x)),x=function(e,t){const s=e.getGeometryType();let n;if(n=(0,i.h)(s)?e.getPathCount():s===i.G.enumMultiPoint?e.getPointCount():1,1===n)return e;const o=[],m=[];for(let a=0;a<n;a++){o.push(a);const n=new u.P;if((0,i.h)(s)){const t=new r.J;e.queryPathEnvelope(a,t),n.assign(t.getCenter())}else n.assign(e.getXY(a));const h=t.toGeohash(n);m.push(h)}o.sort(((e,t)=>m[e]<m[t]?-1:m[e]>m[t]?1:0));const a=e.createInstance();for(let t=0;t<n;t++){const n=o[t];(0,i.h)(s)?a.addPath(e,n,!0):a.addPoints(e,n,n+1)}return a}(x,g.m_gcs);let w=new a.a;switch(y){case i.G.enumPolygon:w=g.bufferPolygon(x);break;case i.G.enumPolyline:w=g.bufferPolyline(x);break;case i.G.enumMultiPoint:w=g.bufferMultiPoint(x);break;case i.G.enumPoint:w=g.bufferPoint(x);break;default:(0,i.k)("")}const C=(new o.v).execute(w,g.m_transform.getInverse(),l);return C.mergeVertexDescription(x.getDescription()),C}function P(e,t,s,n,i,r,a,h,c,l,_){const f={stack:[],error:void 0,hasError:!1};try{const d=new u.P;d.setNAN(),c||_.getPointCount()>0&&(d.setCoordsPoint2D(_.getXY(_.getPointCount()-1)),d.scale(s));const g=(0,m.b)(f,new o.E,!1),P=(0,m.b)(f,new u.S(new o.E,new o.E),!1),p=new u.P,b=new u.P,y=r.at(-1),w=1/s;for(let s=0;s<r.length;s++){const m=r[s];let u;0===s?u=a:s===r.length-1?u=h:(o.F.geodeticDistance(e,t,y.x,y.y,m.x,m.y,null,null,g,i),u=g.val-.5*Math.PI),o.F.geodesicCoordinate(e,t,m.x,m.y,n,u,P.at(0),P.at(1)),c?b.setCoords(P.at(0).val,P.at(1).val):(p.setCoords(P.at(0).val,P.at(1).val),l=x(m.x,p.x,d.x,l),b.setCoords(l+p.x,p.y),d.setCoordsPoint2D(b)),b.scale(w),_.insertPoint2D(0,-1,b)}return l}catch(e){f.error=e,f.hasError=!0}finally{(0,m.c)(f)}}function p(e,t,s,n,i,r,a,h,c,l,_,f=Number.NaN,d=Number.NaN){const g={stack:[],error:void 0,hasError:!1};try{if(a-r<h)return l;const P=(0,m.b)(g,new u.S(new o.E,new o.E),!1),p=new u.P,b=new u.P,y=new u.P;b.setNAN(),c||_.getPointCount()>0&&(b.setCoordsPoint2D(_.getXY(_.getPointCount()-1)),b.scale(s));let w=Math.ceil(r/h),C=w++*h;C===r&&(C=w++*h);let S=r;const v=1/s;for(;C<a+h&&(S<f&&f<C?(C=f,w--):S<d&&d<C&&(C=d,w--),!(C>=a));)o.F.geodesicCoordinate(e,t,i.x,i.y,n,C,P.at(0),P.at(1)),c?y.setCoords(P.at(0).val,P.at(1).val):(p.setCoords(P.at(0).val,P.at(1).val),l=x(i.x,p.x,b.x,l),y.setCoords(l+p.x,p.y),b.setCoordsPoint2D(y)),y.scale(v),_.insertPoint2D(0,-1,y),S=C,C=w++*h;return l}catch(e){g.error=e,g.hasError=!0}finally{(0,m.c)(g)}}function b(e,t,s,n,i,r,a,h,c,l,_){const f={stack:[],error:void 0,hasError:!1};try{const s=new u.P,d=new u.P,g=(0,m.b)(f,new u.S(new o.E,new o.E),!1);o.F.geodesicCoordinate(e,t,i.x,i.y,n,r,g.at(0),g.at(1)),s.setCoords(g.at(0).val,g.at(1).val),o.F.geodesicCoordinate(e,t,i.x,i.y,n,a,g.at(0),g.at(1)),d.setCoords(g.at(0).val,g.at(1).val);const P=(0,m.b)(f,new o.E,!1);for(o.F.geodeticDistance(e,t,h.x,h.y,s.x,s.y,null,P,null,0),l[0]=P.val,o.F.geodeticDistance(e,t,h.x,h.y,d.x,d.y,null,P,null,0),_[0]=P.val;l[0]<=_[0];)l[0]+=u.k;for(;l[0]>_[0];)l[0]-=u.k;for(;l[0]>=c;)l[0]-=u.k,_[0]-=u.k;for(;l[0]<c;)l[0]+=u.k,_[0]+=u.k}catch(e){f.error=e,f.hasError=!0}finally{(0,m.c)(f)}}function x(e,t,s,n){if(Number.isNaN(s)){for(;n+t-e>Math.PI;)n-=u.k;for(;e-(n+t)>Math.PI;)n+=u.k;return n}return n+t-s>Math.PI?n-=u.k:s-(n+t)>Math.PI&&(n+=u.k),n}function y(e,t,s,n,i,r){const a={stack:[],error:void 0,hasError:!1};try{if(n>=r)return!1;const h=s[0],c=s.at(-1),u=(0,m.b)(a,new o.E,!1),l=(0,m.b)(a,new o.E,!1),_=(0,m.b)(a,new o.E,!1);o.F.greatEllipticDistance(e,t,i.x,i.y,h.x,h.y,u,null,null),o.F.greatEllipticDistance(e,t,i.x,i.y,c.x,c.y,l,null,null),o.F.greatEllipticDistance(e,t,h.x,h.y,c.x,c.y,_,null,null);let f=Math.min(u.val,l.val)+_.val,d=f+n;if(d<r)return!0;const g=(0,m.b)(a,new o.E,!1);f=Math.max(u.val,l.val);for(let n=1;n<s.length-1;n++){const r=s[n];o.F.greatEllipticDistance(e,t,i.x,i.y,r.x,r.y,g,null,null),g.val>f&&(f=g.val)}return d=f+n,d<r}catch(e){a.error=e,a.hasError=!0}finally{(0,m.c)(a)}}function w(e,t,s,n,i,r,m,a){let h;if(n.length%2==0){const e=n.length>>1,t=n[e],s=n[e-1];h=u.P.lerp(t,s,.5)}else h=n[n.length-1>>1].clone();const c=h.clone(),l=(0,o.I)(e,t,c,75/180*Math.PI);return!!y(e,t,n,i,c,l)&&(null!==r&&(r.setCoordsPoint2D(h),r.scale(1/s)),null!==m&&m.setCoordsPoint2D(c),null!==a&&(a[0]=l),!0)}function C(e,t,s,n,i,r){const a={stack:[],error:void 0,hasError:!1};try{if(n>=r)return!1;const h=(0,m.b)(a,new o.E,!1);return o.F.greatEllipticDistance(e,t,i.x,i.y,s.x,s.y,h,null,null),h.val+n<r}catch(e){a.error=e,a.hasError=!0}finally{(0,m.c)(a)}}function S(e,t){return new o.H(e,t)}function v(e){return(0,h.f)(e,0)||(0,h.s)(e,0),e}class D{constructor(e){this.m_bRunningInGnomonic=!1,this.m_bNeedsSimplify=!1,this.m_gnomonic=null,this.m_gnomonicCenterRad=new u.P,this.m_minGnomonicRadius=Number.NaN,this.m_progressTracker=e}isRunningInGnomonic(){return this.m_bRunningInGnomonic}needsSimplify(){return this.m_bNeedsSimplify}getGnomonic(){return this.m_gnomonic}}class I extends D{constructor(e,t,s){super(e.m_progressTracker),this.m_segIter=null,this.m_bNextSegmentCannotJoin=!1,this.m_currentDensifiedDelta=[0],this.m_currentBufferedDelta=0,this.m_lastAzimuth=0,this.m_startAzimuth=[0],this.m_endAzimuth=[0],this.m_numWinds=0,this.m_debugCounter=0,this.m_bufferHelper=new a.a,this.m_densifiedPoints=[],this.m_bufferer=e,this.m_multiPath=t,this.m_densified=s,this.m_bNeedsSimplify=!0;const n=new r.J;this.m_multiPath.queryEnvelope(n);const i=n.getCenter(),m=i.clone();m.scale(this.m_bufferer.m_rpu),this.m_gnomonic=S(this.m_bufferer.m_gcs,i),this.m_gnomonicCenterRad=m.clone(),this.m_minGnomonicRadius=(0,o.I)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,m,75/180*Math.PI)}next(){let e;if(this.m_bNextSegmentCannotJoin)return this.m_bNextSegmentCannotJoin=!1,this.m_segIter.nextSegment(),e=this.m_bufferHelper.clone(),e;if(null===this.m_segIter){if(this.m_segIter=this.m_multiPath.getImpl().querySegmentIterator(),!this.m_segIter.nextPath())return null;null!==this.m_densified&&this.m_densified.addPathPoint2D(null,0,!0)}if(!this.m_segIter.hasNextSegment()){if(!this.m_segIter.nextPath())return null;null!=this.m_densified&&this.m_densified.addPathPoint2D(null,0,!0)}let t=null;this.m_currentBufferedDelta=0,this.m_currentDensifiedDelta=[0],this.m_numWinds=0,this.m_lastAzimuth=Number.NaN,this.m_bNextSegmentCannotJoin=!1,this.m_densifiedPoints.length=0;let s=0;const n=new u.P,i=new u.P;for(;this.m_segIter.hasNextSegment()&&this.m_numWinds<16;){const e=this.m_segIter.nextSegment();if(n.setCoordsPoint2D(e.getStartXY()),i.setCoordsPoint2D(e.getEndXY()),n.scale(this.m_bufferer.m_rpu),i.scale(this.m_bufferer.m_rpu),(0,o.J)(n,i))n.x=i.x;else if((0,o.K)(n,i))i.x=n.x;else{let e=-1,t=-1;const s=this.m_segIter.getPathIndex(),r=this.m_multiPath.getPathStart(s),m=this.m_multiPath.getPathEnd(s);if(e=this.m_segIter.getStartPointIndex()-1,t=this.m_segIter.getEndPointIndex()+1,e<r&&(e=this.m_multiPath.isClosedPath(s)?m-1:-1),t>m-1&&(t=this.m_multiPath.isClosedPath(s)?r:-1),-1!==e){const t=this.m_multiPath.getXY(e);t.scale(this.m_bufferer.m_rpu),(0,o.K)(t,n)&&(n.x=t.x)}if(-1!==t){const e=this.m_multiPath.getXY(t);e.scale(this.m_bufferer.m_rpu),(0,o.J)(i,e)&&(i.x=e.x)}}this.m_densifiedPoints.length=0;const r=(0,o.M)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_curveType,n,i,this.m_bufferer.m_segmentStep,Number.NaN,this.m_bufferer.m_radTolerance,this.m_startAzimuth,this.m_endAzimuth,this.m_densifiedPoints,this.m_currentDensifiedDelta);if(0===s)this.m_bRunningInGnomonic=this.isSegmentBufferInCurrentGnomonic(this.m_densifiedPoints),this.m_bRunningInGnomonic||(this.m_bRunningInGnomonic=this.tryUpdateGnomonic(this.m_densifiedPoints));else if(this.m_bRunningInGnomonic){if(!this.isSegmentBufferInCurrentGnomonic(this.m_densifiedPoints)){this.m_segIter.previousSegment(),this.m_segIter.previousSegment(),this.m_segIter.nextSegment();break}}else if(w(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_densifiedPoints,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,null,null,null)){this.m_segIter.previousSegment(),this.m_segIter.previousSegment(),this.m_segIter.nextSegment();break}if(0===r||(0,o.N)(n,i)?(this.m_bufferHelper.setEmpty(),this.m_bufferer.bufferPoint2D(n,this.m_bRunningInGnomonic,this.m_bufferHelper),this.m_bNextSegmentCannotJoin=!0):(this.m_bufferHelper.setEmpty(),this.m_bNextSegmentCannotJoin=this.checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(r,this.m_bufferHelper)),this.m_bNextSegmentCannotJoin){this.m_segIter.previousSegment(),this.m_segIter.hasPreviousSegment()?(this.m_segIter.previousSegment(),this.m_segIter.nextSegment()):this.m_segIter.resetToFirstSegment(),null!=this.m_densified&&this.m_densified.insertPointsFromPoints(this.m_densified.getPathCount()-1,-1,this.m_densifiedPoints,0,this.m_densifiedPoints.length-1,!0);break}null!=this.m_densified&&this.m_densified.insertPointsFromPoints(this.m_densified.getPathCount()-1,-1,this.m_densifiedPoints,0,this.m_densifiedPoints.length-1,!0),null===t&&(t=new a.a,t.addPathPoint2D(null,0,!0)),this.addJoinAndBufferLeftSide(t),s++}if(this.m_currentDensifiedDelta=[0],s>0){const e=this.m_segIter.getStartPointIndex(),r=this.m_segIter.getPathIndex();for(;s>0;){if(this.m_segIter.previousSegment(),n.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getStartPointIndex())),i.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getEndPointIndex())),n.scale(this.m_bufferer.m_rpu),i.scale(this.m_bufferer.m_rpu),this.m_bRunningInGnomonic)if((0,o.J)(n,i))n.x=i.x;else if((0,o.K)(n,i))i.x=n.x;else{let e=-1,t=-1;const s=this.m_segIter.getPathIndex(),r=this.m_multiPath.getPathStart(s),m=this.m_multiPath.getPathEnd(s);if(e=this.m_segIter.getStartPointIndex()-1,t=this.m_segIter.getEndPointIndex()+1,e<r&&(e=this.m_multiPath.isClosedPath(s)?m-1:-1),t>m-1&&(t=this.m_multiPath.isClosedPath(s)?r:-1),-1!==e){const t=this.m_multiPath.getXY(e);t.scale(this.m_bufferer.m_rpu),(0,o.K)(t,n)&&(n.x=t.x)}if(-1!==t){const e=this.m_multiPath.getXY(t);e.scale(this.m_bufferer.m_rpu),(0,o.J)(i,e)&&(i.x=e.x)}}this.m_densifiedPoints.length=0,(0,o.M)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_curveType,i,n,this.m_bufferer.m_segmentStep,Number.NaN,this.m_bufferer.m_radTolerance,this.m_startAzimuth,this.m_endAzimuth,this.m_densifiedPoints,this.m_currentDensifiedDelta),this.addJoinAndBufferLeftSide(t),s--}return n.setCoordsPoint2D(this.m_multiPath.getXY(this.m_segIter.getStartPointIndex())),n.scale(this.m_bufferer.m_rpu),this.m_currentBufferedDelta=p(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_bufferer.m_absDistance,n,this.m_lastAzimuth+.5*Math.PI,this.m_lastAzimuth+1.5*Math.PI,this.m_bufferer.m_cornerStep,this.m_bRunningInGnomonic,this.m_currentBufferedDelta,t),this.m_segIter.resetToVertex(e,r),this.m_segIter.nextSegment(),t}return this.m_bNextSegmentCannotJoin=!1,this.m_segIter.nextSegment(),e=this.m_bufferHelper.clone(),e}isSegmentBufferInCurrentGnomonic(e){return null!==this.m_gnomonic&&y(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,this.m_gnomonicCenterRad,this.m_minGnomonicRadius)}tryUpdateGnomonic(e){const t=new u.P,s=new u.P,n=[0];return w(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,t,s,n)?(this.m_gnomonicCenterRad.setCoordsPoint2D(s),this.m_minGnomonicRadius=n[0],this.m_gnomonic=S(this.m_bufferer.m_gcs,t),!0):(this.m_gnomonic=null,!1)}checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(e,t){return this.m_bufferer.checkAndPrepSegmentForCrossingAzimuthsOrPoleWrap(this.m_densifiedPoints,e,this.m_startAzimuth[0],this.m_endAzimuth[0],this.m_bRunningInGnomonic,t)}addJoinAndBufferLeftSide(e){const t=this.m_densifiedPoints[0];let s=Number.NaN,n=this.m_startAzimuth[0]-u.l;const i=this.m_endAzimuth[0]+u.l;let r=!1;if(!Number.isNaN(this.m_lastAzimuth)){this.m_lastAzimuth>=this.m_startAzimuth[0]?(s=this.m_lastAzimuth+u.l,n=s+Math.PI-(this.m_lastAzimuth-this.m_startAzimuth[0])):(s=this.m_lastAzimuth+u.l,n=s+Math.PI-(u.k-(this.m_startAzimuth[0]-this.m_lastAzimuth))),r=!(this.m_lastAzimuth>=this.m_startAzimuth[0]&&this.m_lastAzimuth-this.m_startAzimuth[0]<=Math.PI||this.m_lastAzimuth<this.m_startAzimuth[0]&&this.m_startAzimuth[0]-this.m_lastAzimuth>=Math.PI);let i=!1;if(Math.abs(n-s)<=.5*this.m_bufferer.m_cornerStep&&(r||(i=!0)),i){if(e.removePointFromPath(0,e.getPointCount()-1),!this.m_bRunningInGnomonic){const t=new u.P;t.setCoordsPoint2D(e.getXY(e.getPointCount()-1)),t.scale(this.m_bufferer.m_rpu),t.x-this.m_currentBufferedDelta<-Math.PI?this.m_currentBufferedDelta-=u.k:t.x-this.m_currentBufferedDelta>Math.PI&&(this.m_currentBufferedDelta+=u.k)}n=.5*(n+s)}else if(r){const s=new u.P;s.setCoordsPoint2D(t),s.scale(1/this.m_bufferer.m_rpu),e.insertPoint2D(0,-1,s)}else p(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_bufferer.m_absDistance,this.m_densifiedPoints[0],s,n,this.m_bufferer.m_cornerStep,this.m_bRunningInGnomonic,this.m_currentBufferedDelta,e)}this.m_startAzimuth[0]!==this.m_lastAzimuth&&this.m_numWinds++,P(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,this.m_bufferer.m_absDistance,this.m_bufferer.m_curveType,this.m_densifiedPoints,n,i,this.m_bRunningInGnomonic,this.m_currentBufferedDelta,e),this.m_lastAzimuth=this.m_endAzimuth[0]}}class E extends D{constructor(e,t){super(e.m_progressTracker),this.m_pointIndex=-1,this.m_bufferer=e,this.m_multiPoint=t,this.m_bNeedsSimplify=!1;const s=new r.J;this.m_multiPoint.queryEnvelope(s);const n=s.getCenter(),i=n.clone();i.scale(this.m_bufferer.m_rpu),this.m_gnomonic=S(this.m_bufferer.m_gcs,n),this.m_gnomonicCenterRad=i.clone(),this.m_minGnomonicRadius=(0,o.I)(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,i,75/180*Math.PI)}next(){if(this.m_bNeedsSimplify=!1,++this.m_pointIndex===this.m_multiPoint.getPointCount())return null;const e=this.m_multiPoint.getXY(this.m_pointIndex);e.scale(this.m_bufferer.m_rpu),this.m_bRunningInGnomonic=this.isPointBufferInCurrentGnomonic(e),this.m_bRunningInGnomonic||(this.m_bRunningInGnomonic=this.tryUpdateGnomonic(e));const t=new a.a,s=this.m_bufferer.bufferPoint2D(e,this.m_bRunningInGnomonic,t);return this.m_bNeedsSimplify=s,t}isPointBufferInCurrentGnomonic(e){return null!==this.m_gnomonic&&C(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,this.m_gnomonicCenterRad,this.m_minGnomonicRadius)}tryUpdateGnomonic(e){const t=new u.P,s=new u.P,n=[0];return function(e,t,s,n,i,r,m,a){const h=(0,o.I)(e,t,n,75/180*Math.PI);return!!C(e,t,n,i,n,h)&&(null!==r&&(r.setCoordsPoint2D(n),r.scale(1/s)),null!==m&&m.setCoordsPoint2D(n),null!==a&&(a[0]=h),!0)}(this.m_bufferer.m_a,this.m_bufferer.m_eSquared,this.m_bufferer.m_rpu,e,this.m_bufferer.m_absDistance*this.m_bufferer.m_ellipticToGeodesicMaxRatio,t,s,n)?(this.m_gnomonicCenterRad.setCoordsPoint2D(s),this.m_minGnomonicRadius=n[0],this.m_gnomonic=S(this.m_bufferer.m_gcs,t),!0):(this.m_gnomonic=null,!1)}}class G{getOperatorType(){return 10110}supportsCurves(){return!0}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,s,n,i,r,m,a){if(m){const m=new k(e,t,s,n,i,!1,r,a);return(new o.h).executeMany(m,t,a)}return new k(e,t,s,n,i,!1,r,a)}execute(e,t,s,r,o,m,a){const h=new n.S([e]),c=[r],u=this.executeMany(h,t,s,c,o,!1,m,a).next();return u||(0,i.c)("geodesic buffer null output"),u}}class k extends n.G{constructor(e,t,s,n,o,m,a,h){super(),this.m_currentUnionEnvelope2D=new r.J,this.m_index=-1,this.m_dindex=-1,this.m_progressTracker=h,m&&(0,i.b)(""),t||(0,i.t)(""),0===t.getCoordinateSystemType()&&(0,i.t)(""),this.m_inputGeoms=e,this.m_spatialReference=t,this.m_curveType=s,this.m_distances=n,this.m_convergenceOffset=o,this.m_bOutlineOnly=m,this.m_bUnion=a}next(){let e;for(;e=this.m_inputGeoms.next();)return(0,i.d)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.m_dindex+1<this.m_distances.length&&this.m_dindex++,this.geodesicBuffer(e,this.m_distances[this.m_dindex]);return null}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}geodesicBuffer(e,t){return function(e,t,s,n,r,o){n<Number.MAX_VALUE&&n>-Number.MAX_VALUE||(0,i.t)("Geodesic_bufferer.buffer - bad distance"),(0,i.d)(e);const m=(0,_.c)(e),a=m.getGeometryType();if((0,i.i)(a)){const e=m.getPointCount(),h=8e6;if(Math.abs(n)>h&&(e>50||a!==i.G.enumMultiPoint&&4===s&&e>2)){let e=m;const i=n>0?1:-1,a=7e6;let c=n,u=1;do{u++,c=(Math.abs(c)-a)*i}while(Math.abs(c)>h);c=n;for(let n=0;n<u-1;n++)e=g(e,t,s,a*i,r,u,o),c=(Math.abs(c)-a)*i;return e=g(e,t,s,c,r,u,o),e}}return g(m,t,s,n,r,1,o)}(e,this.m_spatialReference,this.m_curveType,t,this.m_convergenceOffset,this.m_progressTracker)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6996],{46996:(_,E,R)=>{R.r(E),R.d(E,{TextureCompressionWorkerOutput:()=>D,compress:()=>L,compressRGBADataToKTX2:()=>P,createTextureDataKTX2:()=>n,initializeBasisEncoder:()=>B,initializeDXTEncoder:()=>t});var A=R(2741);let T;var N=R(92993);let S;var I=R(63907);let C,O,e=null,G=null;class D{constructor(_,E){this.internalFormat=_,this.compressedTexture=E}}async function L(_){const E=function(_,E=!1){const R=new OffscreenCanvas(_.width,_.height),A=R.getContext("2d");return E&&A.scale(1,-1),A.drawImage(_,0,E?-_.height:0),A.getImageData(0,0,R.width,R.height).data}(_.data,_.flipped);if(_.hasS3TC){G||await t();const R=new Uint8Array(E.length);G?.encode(new Uint8Array(E),_.width,_.height,R);const A=function(_){const E=new Int32Array(_.buffer,_.byteOffset,M);let R,A;switch(E[c]){case u:R=8,A=I.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case H:R=16,A=I.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case l:R=16,A=I.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}let T=1,N=E[a],S=E[r];(3&N||3&S)&&(N=N+3&-4,S=S+3&-4);const C=N,O=S;let e,G;E[F]&s&&(T=Math.max(1,E[i]));let D=_.byteOffset+E[U]+4;const L=[];for(let E=0;E<T;++E)G=(N+3>>2)*(S+3>>2)*R,e=new Uint8Array(_.buffer,D,G),L.push(e),D+=G,N=Math.max(1,N>>1),S=Math.max(1,S>>1);return{textureData:{type:"compressed",levels:L},internalFormat:A,width:C,height:O}}(R),T=[R.buffer];return{result:new D(A?.internalFormat??null,A?.textureData??null),transferList:T}}if(_.hasETC){e||await B();const R=await P(E,_.width,_.height,_.hasMipmap),A=R?await n(R):null,T=A?.compressedTexture?.levels.map((_=>_.buffer))||[];return{result:new D(A?.internalFormat??null,A?.compressedTexture??null),transferList:T}}return{result:new D(null,null)}}async function B(){e||(e=await(C??=(T??=(async()=>{const _=await R.e(2372).then(R.bind(R,62372)),E=await _.default({locateFile:_=>(0,A.s)(`esri/libs/basisu/${_}`)});return E.initializeBasis(),E})(),T)))}async function t(){G||(G=await(O??=(S??=(async()=>{const _=await R.e(8714).then(R.bind(R,98714));return await _.default({locateFile:_=>(0,A.s)(`esri/libs/dxtEncoder/${_}`)})})(),S)))}async function P(_,E,R,A,T=255,N=0,S=!1,I=!1){if(!e)return null;const C=new e.BasisEncoder;C.setPerceptual(!I),C.setCheckForAlpha(!0),C.setForceAlpha(!1),C.setRenormalize(I),C.setMipGen(A),C.setMipSRGB(!I),C.setCreateKTX2File(!0),C.setKTX2SRGBTransferFunc(!I),C.setQualityLevel(T),C.setCompressionLevel(N);const O=new Uint8Array(_.byteLength);C.setSliceSourceImage(0,new Uint8Array(_),E,R,S);const G=C.encode(O),D=new Uint8Array(O.buffer,0,G),L=new e.KTX2File(new Uint8Array(D));return L.isValid()?(C.delete(),D):(L.close(),L.delete(),C.delete(),null)}async function n(_){if(!e)return new D(null,null);const E=new e.KTX2File(new Uint8Array(_));E.startTranscoding();const[R,A]=E.getHasAlpha()?[N.n.ETC2_RGBA,I.CQ.COMPRESSED_RGBA8_ETC2_EAC]:[N.n.ETC1_RGB,I.CQ.COMPRESSED_RGB8_ETC2],T=E.getLevels(),S=[];for(let _=0;_<T;_++)S.push(new Uint8Array(E.getImageTranscodedSizeInBytes(_,0,0,R))),E.transcodeImage(S[_],_,0,0,R,0,-1,-1);return E.close(),E.delete(),{internalFormat:A,compressedTexture:{type:"compressed",levels:S}}}const M=31,U=1,F=2,r=3,a=4,i=7,c=21,s=131072;function o(_){return _.charCodeAt(0)+(_.charCodeAt(1)<<8)+(_.charCodeAt(2)<<16)+(_.charCodeAt(3)<<24)}const u=o("DXT1"),H=o("DXT3"),l=o("DXT5")},63907:(_,E,R)=>{var A,T,N,S,I,C,O,e,G,D,L,B,t,P,n,M,U,F,r,a,i,c,s,o;R.d(E,{Ab:()=>M,Ac:()=>e,Ap:()=>P,CQ:()=>X,Cj:()=>B,Fq:()=>l,H0:()=>U,H3:()=>n,Hr:()=>o,MT:()=>D,NV:()=>A,NZ:()=>C,Tb:()=>I,WR:()=>N,Y7:()=>O,_U:()=>a,bh:()=>b,dn:()=>S,eA:()=>L,ld:()=>F,nI:()=>f,pF:()=>t,pe:()=>G,r6:()=>u,vt:()=>s,yI:()=>H,yQ:()=>r}),function(_){_[_.DEPTH=256]="DEPTH",_[_.STENCIL=1024]="STENCIL",_[_.COLOR=16384]="COLOR"}(A||(A={})),function(_){_[_.COLOR=6144]="COLOR",_[_.DEPTH=6145]="DEPTH",_[_.STENCIL=6146]="STENCIL",_[_.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(T||(T={})),function(_){_[_.POINTS=0]="POINTS",_[_.LINES=1]="LINES",_[_.LINE_LOOP=2]="LINE_LOOP",_[_.LINE_STRIP=3]="LINE_STRIP",_[_.TRIANGLES=4]="TRIANGLES",_[_.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",_[_.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(N||(N={})),function(_){_[_.ZERO=0]="ZERO",_[_.ONE=1]="ONE",_[_.SRC_COLOR=768]="SRC_COLOR",_[_.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",_[_.SRC_ALPHA=770]="SRC_ALPHA",_[_.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",_[_.DST_ALPHA=772]="DST_ALPHA",_[_.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",_[_.DST_COLOR=774]="DST_COLOR",_[_.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",_[_.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",_[_.CONSTANT_COLOR=32769]="CONSTANT_COLOR",_[_.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",_[_.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",_[_.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(S||(S={})),function(_){_[_.ADD=32774]="ADD",_[_.MIN=32775]="MIN",_[_.MAX=32776]="MAX",_[_.SUBTRACT=32778]="SUBTRACT",_[_.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(I||(I={})),function(_){_[_.ARRAY_BUFFER=34962]="ARRAY_BUFFER",_[_.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",_[_.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",_[_.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",_[_.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",_[_.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",_[_.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",_[_.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER"}(C||(C={})),function(_){_[_.FRONT=1028]="FRONT",_[_.BACK=1029]="BACK",_[_.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(O||(O={})),function(_){_[_.CW=2304]="CW",_[_.CCW=2305]="CCW"}(e||(e={})),function(_){_[_.BYTE=5120]="BYTE",_[_.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",_[_.SHORT=5122]="SHORT",_[_.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",_[_.INT=5124]="INT",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.FLOAT=5126]="FLOAT",_[_.HALF_FLOAT=5131]="HALF_FLOAT"}(G||(G={})),function(_){_[_.NEVER=512]="NEVER",_[_.LESS=513]="LESS",_[_.EQUAL=514]="EQUAL",_[_.LEQUAL=515]="LEQUAL",_[_.GREATER=516]="GREATER",_[_.NOTEQUAL=517]="NOTEQUAL",_[_.GEQUAL=518]="GEQUAL",_[_.ALWAYS=519]="ALWAYS"}(D||(D={})),function(_){_[_.ZERO=0]="ZERO",_[_.KEEP=7680]="KEEP",_[_.REPLACE=7681]="REPLACE",_[_.INCR=7682]="INCR",_[_.DECR=7683]="DECR",_[_.INVERT=5386]="INVERT",_[_.INCR_WRAP=34055]="INCR_WRAP",_[_.DECR_WRAP=34056]="DECR_WRAP"}(L||(L={})),function(_){_[_.NEAREST=9728]="NEAREST",_[_.LINEAR=9729]="LINEAR",_[_.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",_[_.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",_[_.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",_[_.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(B||(B={})),function(_){_[_.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",_[_.REPEAT=10497]="REPEAT",_[_.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(t||(t={})),function(_){_[_.TEXTURE_2D=3553]="TEXTURE_2D",_[_.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",_[_.TEXTURE_3D=32879]="TEXTURE_3D",_[_.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",_[_.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",_[_.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",_[_.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",_[_.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",_[_.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",_[_.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(P||(P={})),function(_){_[_.MIN_LOD=33082]="MIN_LOD",_[_.MAX_LOD=33083]="MAX_LOD",_[_.BASE_LEVEL=33084]="BASE_LEVEL",_[_.MAX_LEVEL=33085]="MAX_LEVEL",_[_.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE"}(n||(n={})),function(_){_[_.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",_[_.DEPTH_STENCIL=34041]="DEPTH_STENCIL",_[_.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",_[_.ALPHA=6406]="ALPHA",_[_.RGB=6407]="RGB",_[_.RGBA=6408]="RGBA",_[_.LUMINANCE=6409]="LUMINANCE",_[_.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",_[_.RED=6403]="RED",_[_.RG=33319]="RG",_[_.RED_INTEGER=36244]="RED_INTEGER",_[_.RG_INTEGER=33320]="RG_INTEGER",_[_.RGB_INTEGER=36248]="RGB_INTEGER",_[_.RGBA_INTEGER=36249]="RGBA_INTEGER"}(M||(M={})),function(_){_[_.RGBA4=32854]="RGBA4",_[_.R16F=33325]="R16F",_[_.RG16F=33327]="RG16F",_[_.RGB32F=34837]="RGB32F",_[_.RGBA16F=34842]="RGBA16F",_[_.R32F=33326]="R32F",_[_.RG32F=33328]="RG32F",_[_.RGBA32F=34836]="RGBA32F",_[_.R11F_G11F_B10F=35898]="R11F_G11F_B10F",_[_.RGB8=32849]="RGB8",_[_.RGBA8=32856]="RGBA8",_[_.RGB5_A1=32855]="RGB5_A1",_[_.R8=33321]="R8",_[_.RG8=33323]="RG8",_[_.R8I=33329]="R8I",_[_.R8UI=33330]="R8UI",_[_.R16I=33331]="R16I",_[_.R16UI=33332]="R16UI",_[_.R32I=33333]="R32I",_[_.R32UI=33334]="R32UI",_[_.RG8I=33335]="RG8I",_[_.RG8UI=33336]="RG8UI",_[_.RG16I=33337]="RG16I",_[_.RG16UI=33338]="RG16UI",_[_.RG32I=33339]="RG32I",_[_.RG32UI=33340]="RG32UI",_[_.RGB16F=34843]="RGB16F",_[_.RGB9_E5=35901]="RGB9_E5",_[_.SRGB8=35905]="SRGB8",_[_.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",_[_.RGB565=36194]="RGB565",_[_.RGBA32UI=36208]="RGBA32UI",_[_.RGB32UI=36209]="RGB32UI",_[_.RGBA16UI=36214]="RGBA16UI",_[_.RGB16UI=36215]="RGB16UI",_[_.RGBA8UI=36220]="RGBA8UI",_[_.RGB8UI=36221]="RGB8UI",_[_.RGBA32I=36226]="RGBA32I",_[_.RGB32I=36227]="RGB32I",_[_.RGBA16I=36232]="RGBA16I",_[_.RGB16I=36233]="RGB16I",_[_.RGBA8I=36238]="RGBA8I",_[_.RGB8I=36239]="RGB8I",_[_.R8_SNORM=36756]="R8_SNORM",_[_.RG8_SNORM=36757]="RG8_SNORM",_[_.RGB8_SNORM=36758]="RGB8_SNORM",_[_.RGBA8_SNORM=36759]="RGBA8_SNORM",_[_.RGB10_A2=32857]="RGB10_A2",_[_.RGB10_A2UI=36975]="RGB10_A2UI"}(U||(U={})),function(_){_[_.FLOAT=5126]="FLOAT",_[_.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",_[_.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",_[_.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",_[_.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",_[_.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",_[_.BYTE=5120]="BYTE",_[_.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",_[_.SHORT=5122]="SHORT",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.INT=5124]="INT",_[_.HALF_FLOAT=5131]="HALF_FLOAT",_[_.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",_[_.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",_[_.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",_[_.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(F||(F={})),function(_){_[_.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",_[_.STENCIL_INDEX8=36168]="STENCIL_INDEX8",_[_.DEPTH_STENCIL=34041]="DEPTH_STENCIL",_[_.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",_[_.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",_[_.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",_[_.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(r||(r={})),function(_){_[_.STATIC_DRAW=35044]="STATIC_DRAW",_[_.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",_[_.STREAM_DRAW=35040]="STREAM_DRAW",_[_.STATIC_READ=35045]="STATIC_READ",_[_.DYNAMIC_READ=35049]="DYNAMIC_READ",_[_.STREAM_READ=35041]="STREAM_READ",_[_.STATIC_COPY=35046]="STATIC_COPY",_[_.DYNAMIC_COPY=35050]="DYNAMIC_COPY",_[_.STREAM_COPY=35042]="STREAM_COPY"}(a||(a={})),function(_){_[_.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",_[_.VERTEX_SHADER=35633]="VERTEX_SHADER"}(i||(i={})),function(_){_[_.FRAMEBUFFER=36160]="FRAMEBUFFER",_[_.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",_[_.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(c||(c={})),function(_){_[_.Texture=0]="Texture",_[_.BufferObject=1]="BufferObject",_[_.VertexArrayObject=2]="VertexArrayObject",_[_.Shader=3]="Shader",_[_.Program=4]="Program",_[_.FramebufferObject=5]="FramebufferObject",_[_.Renderbuffer=6]="Renderbuffer",_[_.TransformFeedback=7]="TransformFeedback",_[_.Sync=8]="Sync",_[_.UNCOUNTED=9]="UNCOUNTED",_[_.LinesOfCode=9]="LinesOfCode",_[_.Uniform=10]="Uniform",_[_.COUNT=11]="COUNT"}(s||(s={})),function(_){_[_.NONE=0]="NONE",_[_.BACK=1029]="BACK"}(o||(o={}));const u=36064,H=36065,l=36066,f=33306;var X,V,Y,d,h,w,m,b,p;!function(_){_[_.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",_[_.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",_[_.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",_[_.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",_[_.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",_[_.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",_[_.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",_[_.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",_[_.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",_[_.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",_[_.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(X||(X={})),function(_){_[_.FLOAT=5126]="FLOAT",_[_.FLOAT_VEC2=35664]="FLOAT_VEC2",_[_.FLOAT_VEC3=35665]="FLOAT_VEC3",_[_.FLOAT_VEC4=35666]="FLOAT_VEC4",_[_.INT=5124]="INT",_[_.INT_VEC2=35667]="INT_VEC2",_[_.INT_VEC3=35668]="INT_VEC3",_[_.INT_VEC4=35669]="INT_VEC4",_[_.BOOL=35670]="BOOL",_[_.BOOL_VEC2=35671]="BOOL_VEC2",_[_.BOOL_VEC3=35672]="BOOL_VEC3",_[_.BOOL_VEC4=35673]="BOOL_VEC4",_[_.FLOAT_MAT2=35674]="FLOAT_MAT2",_[_.FLOAT_MAT3=35675]="FLOAT_MAT3",_[_.FLOAT_MAT4=35676]="FLOAT_MAT4",_[_.SAMPLER_2D=35678]="SAMPLER_2D",_[_.SAMPLER_CUBE=35680]="SAMPLER_CUBE",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",_[_.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",_[_.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",_[_.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",_[_.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",_[_.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",_[_.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",_[_.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",_[_.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",_[_.SAMPLER_3D=35679]="SAMPLER_3D",_[_.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",_[_.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",_[_.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",_[_.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",_[_.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",_[_.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",_[_.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",_[_.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",_[_.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",_[_.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",_[_.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",_[_.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(V||(V={})),function(_){_[_.OBJECT_TYPE=37138]="OBJECT_TYPE",_[_.SYNC_CONDITION=37139]="SYNC_CONDITION",_[_.SYNC_STATUS=37140]="SYNC_STATUS",_[_.SYNC_FLAGS=37141]="SYNC_FLAGS"}(Y||(Y={})),function(_){_[_.UNSIGNALED=37144]="UNSIGNALED",_[_.SIGNALED=37145]="SIGNALED"}(d||(d={})),function(_){_[_.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",_[_.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",_[_.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",_[_.WAIT_FAILED=37149]="WAIT_FAILED"}(h||(h={})),function(_){_[_.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(w||(w={})),function(_){_[_.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(m||(m={})),function(_){_[_.INVALID_ENUM=1280]="INVALID_ENUM",_[_.INVALID_VALUE=1281]="INVALID_VALUE",_[_.INVALID_OPERATION=1282]="INVALID_OPERATION",_[_.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",_[_.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",_[_.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL"}(b||(b={})),function(_){_[_.COMPLETION_STATUS_KHR=37297]="COMPLETION_STATUS_KHR"}(p||(p={}))},92993:(_,E,R)=>{var A;R.d(E,{n:()=>A}),function(_){_[_.ETC1_RGB=0]="ETC1_RGB",_[_.ETC2_RGBA=1]="ETC2_RGBA",_[_.BC1_RGB=2]="BC1_RGB",_[_.BC3_RGBA=3]="BC3_RGBA",_[_.BC4_R=4]="BC4_R",_[_.BC5_RG=5]="BC5_RG",_[_.BC7_M6_RGB=6]="BC7_M6_RGB",_[_.BC7_M5_RGBA=7]="BC7_M5_RGBA",_[_.PVRTC1_4_RGB=8]="PVRTC1_4_RGB",_[_.PVRTC1_4_RGBA=9]="PVRTC1_4_RGBA",_[_.ASTC_4x4_RGBA=10]="ASTC_4x4_RGBA",_[_.ATC_RGB=11]="ATC_RGB",_[_.ATC_RGBA=12]="ATC_RGBA",_[_.FXT1_RGB=17]="FXT1_RGB",_[_.PVRTC2_4_RGB=18]="PVRTC2_4_RGB",_[_.PVRTC2_4_RGBA=19]="PVRTC2_4_RGBA",_[_.ETC2_EAC_R11=20]="ETC2_EAC_R11",_[_.ETC2_EAC_RG11=21]="ETC2_EAC_RG11",_[_.RGBA32=13]="RGBA32",_[_.RGB565=14]="RGB565",_[_.BGR565=15]="BGR565",_[_.RGBA4444=16]="RGBA4444"}(A||(A={}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1123],{1123:(e,t,n)=>{n.r(t),n.d(t,{invokeGeometryOp:()=>c});var i=n(65864);function r(e,t){let n;return{loaded:!1,load:()=>n??=t().then((t=>{o[e]={loaded:!0,execute:t}}))}}function a(e){return null==e?null:e.toJSON()}const o={disjoint:r("disjoint",(()=>Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(1598)]).then(n.bind(n,7978)).then((e=>e.execute)))),intersects:r("intersects",(()=>Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(7360)]).then(n.bind(n,55284)).then((e=>e.execute)))),touches:r("touches",(()=>Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(2503)]).then(n.bind(n,83547)).then((e=>e.execute)))),crosses:r("crosses",(()=>Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(9700)]).then(n.bind(n,85672)).then((e=>e.execute)))),within:r("within",(()=>Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(9265)]).then(n.bind(n,85445)).then((e=>e.execute)))),contains:r("contains",(()=>Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(1867)]).then(n.bind(n,29127)).then((e=>e.execute)))),overlaps:r("overlaps",(()=>Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(1414)]).then(n.bind(n,46178)).then((e=>e.execute)))),equals:r("equals",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(5180)]).then(n.bind(n,45328));return(t,n)=>e.execute((0,i.rS)(t),(0,i.rS)(n))})),relate:r("relate",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(5552)]).then(n.bind(n,43628));return(t,n,r)=>e.execute((0,i.rS)(t),(0,i.rS)(n),r)})),intersection:r("intersection",(()=>Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(9263)]).then(n.bind(n,49263)).then((e=>e.execute)))),union:r("union",(()=>Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(6339)]).then(n.bind(n,56339)).then((e=>e.executeMany)))),difference:r("difference",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(3054)]).then(n.bind(n,93054));return(t,n)=>a(e.execute((0,i.rS)(t),(0,i.rS)(n)))})),symmetricDifference:r("symmetricDifference",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(9041)]).then(n.bind(n,89041));return(t,n)=>a(e.execute((0,i.rS)(t),(0,i.rS)(n)))})),clip:r("clip",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(4815)]).then(n.bind(n,24815));return(t,n)=>a(e.execute((0,i.rS)(t),(0,i.rS)(n)))})),cut:r("cut",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(7817)]).then(n.bind(n,37817));return(t,n)=>e.execute((0,i.rS)(t),(0,i.rS)(n)).map((e=>a(e)))})),area:r("area",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(3236)]).then(n.bind(n,95624)),{convertFromSpatialReferenceUnit:t,toAreaUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,a)=>{const o=e.execute((0,i.rS)(n));return t(n.spatialReference,r(a),o)}})),geodeticArea:r("geodeticArea",(async()=>{const e=await n.e(9506).then(n.bind(n,89506)),{convert:t,squareMeters:r,toAreaUnit:a}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,o)=>{const c=e.execute((0,i.rS)(n));return t(r,a(o),c)}})),length:r("length",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(7074)]).then(n.bind(n,51190)),{convertFromSpatialReferenceUnit:t,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,r)=>{const a=e.execute(n);return t(n.spatialReference,i(r),a)}})),geodeticLength:r("geodeticLength",(async()=>{const e=await n.e(427).then(n.bind(n,40427)),{convert:t,meters:r,toLengthUnit:a}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,o)=>{const c=e.execute((0,i.rS)(n));return t(r,a(o),c)}})),distance:r("distance",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(9202)]).then(n.bind(n,77038)),{convertFromSpatialReferenceUnit:t,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,a,o)=>{const c=e.execute((0,i.rS)(n),(0,i.rS)(a));return t(n.spatialReference,r(o),c)}})),densify:r("densify",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(8411)]).then(n.bind(n,88411)),{convertToSpatialReferenceUnit:t,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,o,c)=>(o=t(r(c),n.spatialReference,o),a(e.execute((0,i.rS)(n),o)))})),geodeticDensify:r("geodeticDensify",(async()=>{const e=await n.e(4097).then(n.bind(n,64097)),{convert:t,meters:r,toLengthUnit:o}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,c,s)=>(c=t(o(s),r,c),a(e.execute((0,i.rS)(n),c)))})),generalize:r("generalize",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(591)]).then(n.bind(n,60591)),{convertToSpatialReferenceUnit:t,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return(n,o,c,s)=>(o=t(r(c),n.spatialReference,o),a(e.execute((0,i.rS)(n),o,s)))})),buffer:r("buffer",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(6718),n.e(6160)]).then(n.bind(n,46160)),{convertToSpatialReferenceUnit:t,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,r,a)=>(r=t(i(a),n.spatialReference,r),e.execute(n,r))})),geodesicBuffer:r("geodesicBuffer",(async()=>{const e=await n.e(9159).then(n.bind(n,49159)),{convert:t,meters:i,toLengthUnit:r}=await n.e(547).then(n.bind(n,40547));return await e.load(),(n,a,o)=>(a=t(r(o),i,a),e.execute(n,a))})),offset:r("offset",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(5605)]).then(n.bind(n,15605)),{convertToSpatialReferenceUnit:t,toLengthUnit:i}=await n.e(547).then(n.bind(n,40547));return(n,r,a,o)=>(r=t(i(a),n.spatialReference,r),e.execute(n,r,o))})),rotate:r("rotate",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(647)]).then(n.bind(n,50647)),{default:t}=await Promise.all([n.e(1878),n.e(8812)]).then(n.bind(n,78812));return(n,r,o,c)=>{const s=(new t).rotate(r,o,c);return a(e.execute((0,i.rS)(n),s))}})),centroid:r("centroid",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(2657)]).then(n.bind(n,17077));return t=>a(e.execute((0,i.rS)(t)))})),labelPoint:r("labelPoint",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(5913),n.e(5137)]).then(n.bind(n,91421));return t=>a(e.execute((0,i.rS)(t)))})),simplify:r("simplify",(()=>Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(3637)]).then(n.bind(n,3637)).then((e=>e.execute)))),isSimple:r("isSimple",(()=>Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(3637)]).then(n.bind(n,3637)).then((e=>e.isSimple)))),convexHull:r("convexHull",(()=>Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(5666)]).then(n.bind(n,55666)).then((e=>e.execute)))),getNearestCoordinate:r("getNearestCoordinate",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(6468)]).then(n.bind(n,48032));return(t,n,r)=>{const o=e.getNearestCoordinate((0,i.rS)(t),(0,i.rS)(n),r);return{...o,coordinate:a(o.coordinate)}}})),getNearestVertex:r("getNearestVertex",(async()=>{const e=await Promise.all([n.e(1878),n.e(2189),n.e(3299),n.e(6468)]).then(n.bind(n,48032));return(t,n)=>{const r=e.getNearestVertex((0,i.rS)(t),(0,i.rS)(n));return{...r,coordinate:a(r.coordinate)}}}))};function c(e,t){const n=o[e];return n.loaded?n.execute.apply(void 0,t):n.load().then((()=>c(e,t)))}},65864:(e,t,n)=>{n.d(t,{$B:()=>b,Bi:()=>m,Rg:()=>h,U9:()=>u,ZC:()=>l,fT:()=>d,rS:()=>f,xD:()=>x});var i=n(5443),r=n(91075),a=n(48526),o=n(86738),c=n(39829),s=n(82799);function l(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function u(e){return void 0!==e.points}function d(e){return void 0!==e.x&&void 0!==e.y}function h(e){return void 0!==e.paths||void 0!==e.curvePaths}function m(e){return void 0!==e.rings||void 0!==e.curveRings}function f(e){return null==e?null:e instanceof r.A?e:d(e)?o.A.fromJSON(e):h(e)?s.A.fromJSON(e):m(e)?c.A.fromJSON(e):u(e)?a.A.fromJSON(e):l(e)?i.A.fromJSON(e):null}function b(e){return e?d(e)?"esriGeometryPoint":h(e)?"esriGeometryPolyline":m(e)?"esriGeometryPolygon":l(e)?"esriGeometryEnvelope":u(e)?"esriGeometryMultipoint":null:null}const y={esriGeometryPoint:o.A,esriGeometryPolyline:s.A,esriGeometryPolygon:c.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:a.A,esriGeometryMultiPatch:c.A};function x(e){return e&&y[e]||null}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1053,3091],{11053:(t,e,n)=>{n.d(e,{c:()=>r,g:()=>o});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},13091:(t,e,n)=>{n.r(e),n.d(e,{l:()=>c});var r,o,i,a,u=n(11053),f={exports:{}},s=(r||(r=1,o=f,i="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,a=function(t={}){var e,n,r=t;r.ready=new Promise(((t,r)=>{e=t,n=r}));var o=Object.assign({},r),a="object"==typeof window,u="function"==typeof importScripts;"object"==typeof process&&"object"==typeof process.versions&&process.versions.node;var f,s="";(a||u)&&(u?s=self.location.href:"undefined"!=typeof document&&document.currentScript&&(s=document.currentScript.src),i&&(s=i),s=0!==s.indexOf("blob:")?s.substr(0,s.replace(/[?#].*/,"").lastIndexOf("/")+1):"",u&&(f=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}));var c,l,p=r.print||console.log.bind(console),d=r.printErr||console.error.bind(console);Object.assign(r,o),o=null,r.arguments&&r.arguments,r.thisProgram&&r.thisProgram,r.quit&&r.quit,r.wasmBinary&&(c=r.wasmBinary),"object"!=typeof WebAssembly&&_("no native wasm support detected");var h,y,m=!1;function b(){var t=l.buffer;r.HEAP8=new Int8Array(t),r.HEAP16=new Int16Array(t),r.HEAPU8=h=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAP32=new Int32Array(t),r.HEAPU32=y=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=new Float64Array(t)}var g=[],v=[],w=[];function A(t){g.unshift(t)}function E(t){w.unshift(t)}var R=0,P=null;function _(t){r.onAbort?.(t),d(t="Aborted("+t+")"),m=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw n(e),e}var S,H=t=>t.startsWith("data:application/octet-stream;base64,");function T(t){if(t==S&&c)return new Uint8Array(c);if(f)return f(t);throw"both async and sync fetching of the wasm failed"}function C(t,e,n){return function(t){return c||!a&&!u||"function"!=typeof fetch?Promise.resolve().then((()=>T(t))):fetch(t,{credentials:"same-origin"}).then((e=>{if(!e.ok)throw"failed to load wasm binary file at '"+t+"'";return e.arrayBuffer()})).catch((()=>T(t)))}(t).then((t=>WebAssembly.instantiate(t,e))).then((t=>t)).then(n,(t=>{d(`failed to asynchronously prepare wasm: ${t}`),_(t)}))}H(S="libtess.wasm")||(S=function(t){return r.locateFile?r.locateFile(t,s):s+t}(S));var I=t=>{for(;t.length>0;)t.shift()(r)};r.noExitRuntime;var j,O=t=>{var e=(t-l.buffer.byteLength+65535)/65536;try{return l.grow(e),b(),1}catch(t){}},x=[null,[],[]],M="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,W=(t,e)=>{var n=x[t];0===e||10===e?((1===t?p:d)(((t,e)=>{for(var n=e+void 0,r=e;t[r]&&!(r>=n);)++r;if(r-e>16&&t.buffer&&M)return M.decode(t.subarray(e,r));for(var o="";e<r;){var i=t[e++];if(128&i){var a=63&t[e++];if(192!=(224&i)){var u=63&t[e++];if((i=224==(240&i)?(15&i)<<12|a<<6|u:(7&i)<<18|a<<12|u<<6|63&t[e++])<65536)o+=String.fromCharCode(i);else{var f=i-65536;o+=String.fromCharCode(55296|f>>10,56320|1023&f)}}else o+=String.fromCharCode((31&i)<<6|a)}else o+=String.fromCharCode(i)}return o})(n,0)),n.length=0):n.push(e)},F=[],k=t=>{var e=F[t];return e||(t>=F.length&&(F.length=t+1),F[t]=e=j.get(t)),e},U={e:()=>{throw 1/0},g:(t,e,n)=>h.copyWithin(t,e,e+n),f:t=>{var e=h.length,n=2147483648;if((t>>>=0)>n)return!1;for(var r=(t,e)=>t+(e-t%e)%e,o=1;o<=4;o*=2){var i=e*(1+.2/o);i=Math.min(i,t+100663296);var a=Math.min(n,r(Math.max(t,i),65536));if(O(a))return!0}return!1},c:(t,e,n,r)=>{for(var o=0,i=0;i<n;i++){var a=y[e>>2],u=y[e+4>>2];e+=8;for(var f=0;f<u;f++)W(t,h[a+f]);o+=u}return y[r>>2]=o,0},b:function(t,e){var n=L();try{return k(t)(e)}catch(t){if(z(n),t!==t+0)throw t;q(1,0)}},h:function(t,e,n,r){var o=L();try{return k(t)(e,n,r)}catch(t){if(z(o),t!==t+0)throw t;q(1,0)}},d:function(t,e){var n=L();try{k(t)(e)}catch(t){if(z(n),t!==t+0)throw t;q(1,0)}},a:function(t,e,n){var r=L();try{k(t)(e,n)}catch(t){if(z(r),t!==t+0)throw t;q(1,0)}}},B=function(){var t={a:U};function e(t,e){return B=t.exports,l=B.i,b(),j=B.m,function(t){v.unshift(t)}(B.j),function(){if(R--,r.monitorRunDependencies?.(R),0==R&&P){var t=P;P=null,t()}}(),B}if(R++,r.monitorRunDependencies?.(R),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(t){d(`Module.instantiateWasm callback failed with error: ${t}`),n(t)}return function(t,e,n,r){return t||"function"!=typeof WebAssembly.instantiateStreaming||H(e)||"function"!=typeof fetch?C(e,n,r):fetch(e,{credentials:"same-origin"}).then((t=>WebAssembly.instantiateStreaming(t,n).then(r,(function(t){return d(`wasm streaming compile failed: ${t}`),d("falling back to ArrayBuffer instantiation"),C(e,n,r)}))))}(c,S,t,(function(t){e(t.instance)})).catch(n),{}}();r._malloc=t=>(r._malloc=B.k)(t),r._free=t=>(r._free=B.l)(t),r._triangulate=(t,e,n,o,i,a)=>(r._triangulate=B.n)(t,e,n,o,i,a);var D,q=(t,e)=>(q=B.o)(t,e),L=()=>(L=B.p)(),z=t=>(z=B.q)(t);function N(){function t(){D||(D=!0,r.calledRun=!0,m||(I(v),e(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)E(r.postRun.shift());I(w)}()))}R>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)A(r.preRun.shift());I(g)}(),R>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),t()}),1)):t()))}if(P=function t(){D||N(),D||(P=t)},r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();N();let $=null,Y=null,G=null,X=null,J=0;return r.triangulate=(t,e,n)=>{$||($=r._triangulate);let o=r.HEAPF32;const i=r.HEAP32.BYTES_PER_ELEMENT,a=o.BYTES_PER_ELEMENT;n>J&&(J=n,G&&(r._free(G),G=0),Y&&(r._free(Y),Y=0)),G||(G=r._malloc(n*a)),X||(X=r._malloc(4e3*i));const u=2*n;Y||(Y=r._malloc(u*a)),o=r.HEAPF32,o.set(t,G/a),r.HEAP32.set(e,X/i);const f=u/2,s=$(G,X,Math.min(e.length,4e3),2,Y,f),c=2*s;o=r.HEAPF32;const l=o.slice(Y/a,Y/a+c),p={};return p.buffer=l,p.vertexCount=s,p},t.ready},o.exports=a),f.exports);const c=function(t,e){for(var n=0;n<e.length;n++){const r=e[n];if("string"!=typeof r&&!Array.isArray(r))for(const e in r)if("default"!==e&&!(e in t)){const n=Object.getOwnPropertyDescriptor(r,e);n&&Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>r[e]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,u.g)(s)},[s])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3169,6061,8125,9041],{68613:(e,t,n)=>{n.d(t,{fz:()=>y,g7:()=>h,zo:()=>p});var r=n(76061),o=n(55537),s=n(83661),i=n(35368),a=n(79187),u=n(95213),c=n(12189);function m(e,t,n,r){const o=e.getImpl().getAttributeStreamRef(0),i=e.getPointCount(),c=t.getXY(),m=e.createInstance(),l=(0,u.d)(n),f=new a.J;if(e.queryEnvelope(f),f.inflateCoords(l,l),f.contains(c)){const n=l*l;let r=!1;const a=(0,s.d)(i,!1);for(let e=0;e<i;e++){const t=o.read(2*e),s=o.read(2*e+1),i=t-c.x,u=s-c.y;i*i+u*u<=n&&(r=!0,a[e]=!0)}if(r)for(let t=0;t<i;t++)a[t]||m.addPoints(e,t,t+1);else m.addPoints(e,0,i),m.add(t)}else m.addPoints(e,0,i),m.add(t);return m}class l extends r.G{constructor(e,t,n,r){super(),this.m_progressTracker=r,this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=n,this.m_rightGeom=t.next(),this.m_bEmpty=!this.m_rightGeom,(0,o.d)(this.m_rightGeom)}tock(){return!0}getRank(){return 1}next(){if(this.m_bEmpty)return null;const e=this.m_inputGeoms.next();return e?((0,o.d)(e),this.m_index=this.m_inputGeoms.getGeometryID(),function(e,t,n,r){const l=e.getDimension(),f=t.getDimension();if(l!==f)return l>f?e:t;if(e.isEmpty())return t;if(t.isEmpty())return e;const h=new a.J,p=new a.J,y=new a.J;e.queryEnvelope(h),t.queryEnvelope(p),y.setCoords({env2D:h}),y.mergeEnvelope2D(p);const g=(0,u.a)(n,y,!0),G=e.getGeometryType(),d=t.getGeometryType();return G===o.G.enumPoint&&d===o.G.enumPoint?function(e,t,n){const r=(0,u.d)(n),o=r*r,a=e.getXY(),c=t.getXY(),m=new i.M({vd:e.getDescription()});return s.P.sqrDistance(a,c)>o&&(m.add(e),m.add(t)),m}(e,t,g):G===o.G.enumPoint&&d===o.G.enumMultiPoint?m(t,e,g):G===o.G.enumMultiPoint&&d===o.G.enumPoint?m(e,t,g):(0,c.ai)(e,t,n,r)}(e,this.m_rightGeom,this.m_spatialReference,this.m_progressTracker)):null}getGeometryID(){return this.m_index}}const f=new class{getOperatorType(){return 10003}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,r){return new l(e,t,n,r)}execute(e,t,n,s){const i=new r.S([e]),a=new r.S([t]),u=this.executeMany(i,a,n,s).next();return u||(0,o.c)("null output"),u}};function h(e,t,n){return f.execute(e,t,n,null)}function p(e,t,n){const o=f.executeMany(new r.S(e),new r.S([t]),n,null);return Array.from(o)}function y(){return f.supportsCurves()}},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>o});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class o extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>x,fromGeometry:()=>d,fromMultipoint:()=>C,fromPoint:()=>M,fromPolygon:()=>w,fromPolyline:()=>P,fromSpatialReference:()=>_,getSpatialReference:()=>G,toExtent:()=>R,toGeometry:()=>v,toMultipoint:()=>V,toPoint:()=>E,toPolygon:()=>S,toPolyline:()=>Z});var r=n(83661),o=(n(79187),n(55537)),s=n(95213),i=n(35368),a=n(12189),u=n(5443),c=n(48526),m=n(86738),l=n(39829),f=n(82799),h=(n(90293),n(83299));const p="_gxVersion",y=2,g=1;function G(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function d(e){switch(e.type){case"point":return M(e);case"multipoint":return C(e);case"polyline":return P(e);case"polygon":return w(e);case"extent":return x(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function x(e){if(!e.getCacheValue(p)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(y,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(g,0,e.zmin,e.zmax),e.setCacheValue(p,t)}return e.getCacheValue(p)}function C(e){if(!e.getCacheValue(p)){const t=new i.M,n=new s.P,r=e.points,o=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,s=r.length;e<s;e++){const s=r[e];n.setXYCoords(s[0],s[1]),a&&n.setZ(s[2]??0),o&&n.setM(s[u]??NaN),t.add(n)}e.setCacheValue(p,t)}return e.getCacheValue(p)}function M(e){if(!e.getCacheValue(p)){const t=new s.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(p,t)}return e.getCacheValue(p)}function w(e){if(!e.getCacheValue(p)){const{curveRings:t,hasM:n,hasZ:r,rings:o}=e,s=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:o});e.setCacheValue(p,s)}return e.getCacheValue(p)}function P(e){if(!e.getCacheValue(p)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,s=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(p,s)}return e.getCacheValue(p)}function _(e){if(e.wkid)return(0,a.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,a.b)(t):null}function v(e,t){if(e)switch(e.getGeometryType()){case o.G.enumPoint:return E(e,t);case o.G.enumEnvelope:return R(e,t);case o.G.enumMultiPoint:return V(e,t);case o.G.enumPolyline:return Z(e,t);case o.G.enumPolygon:return S(e,t)}return null}function R(e,t){if(e.isEmpty())return null;const n=new u.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(y,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(g,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(p,e),n}function V(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),o=n.hasZ(),i=[],a=new s.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];o&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const u=new c.A({hasM:r,hasZ:o,points:i,spatialReference:t});return u.setCacheValue(p,e),u}function E(e,t){if(e instanceof r.P)return new m.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new m.A({x:e.getX(),y:e.getY(),spatialReference:t}),o=e.getDescription();return o.hasM()&&(n.m=e.getM()),o.hasZ()&&(n.z=e.getZ()),n.setCacheValue(p,e),n}function S(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}function Z(e,t){if(e.isEmpty())return null;const n=f.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}},89041:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>r.e,executeMany:()=>r.a,supportsCurves:()=>r.b}),n(4576),n(68613),n(78125);var r=n(96957)},96957:(e,t,n)=>{n.d(t,{a:()=>a,b:()=>u,e:()=>i,s:()=>c});var r=n(4576),o=n(68613),s=n(78125);function i(e,t){const n=(0,s.getSpatialReference)(e);return(0,s.toGeometry)((0,o.g7)((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(n)),n)}function a(e,t){const n=e.map(s.fromGeometry),i=(0,s.getSpatialReference)(e);return(0,o.zo)(n,(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(i)).map((e=>(0,s.toGeometry)(e,i))).filter(r.Ru)}const u=(0,o.fz)(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:i,executeMany:a,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1878],{11878:(t,s,i)=>{i.d(s,{T:()=>h});var e=i(55537),n=i(83661);class r{constructor(t,s,i){if(t instanceof r)return this.data=t.data,this.N=t.N,this.M=t.M,t.data=null,t.N=0,void(t.M=0);this.data=t,this.N=s,this.M=i}assignCopy(t){return this===t||((0,e.g)(this.N*this.M==t.N*t.M),this.data.set(t.data),this.N=t.N,this.M=t.M),this}setZero(){return this.data?.fill(0),this}setIdentity(){for(let t=0;t<this.N;t++)for(let s=0;s<this.M;s++)this.setRowCol(t,s,t===s?1:0);return this}rows(){return this.N}cols(){return this.M}row(t){return(0,e.g)(0),{}}set(t,s){return this.data[t]=s,this}setRowCol(t,s,i){return this.data[t*this.M+s]=i,this}at(t){return this.data[t]}atRowCol(t,s){return this.data[t*this.M+s]}mulScalar(t,s){(0,e.g)(0)}mul(t,s){if((0,e.g)(this.M===t.rows()),(0,e.g)(this.N===s.rows()),(0,e.g)(t.cols()===s.cols()),s===this){const i=new Float64Array(this.N*this.M),e=new r(i,this.N,this.M);return this.mul(t,e),void s.assignCopy(e)}if(s===t){const i=new Float64Array(t.N*t.M),e=new r(i,t.N,t.M);return this.mul(t,e),void s.assignCopy(e)}const i=t.cols();for(let e=0;e<this.N;e++)for(let n=0;n<i;n++){let i=0;for(let s=0;s<this.M;s++)i+=this.atRowCol(e,s)*t.atRowCol(s,n);s.setRowCol(e,n,i)}}mulTranspose(t,s){if((0,e.g)(this.M===t.cols()),(0,e.g)(this.N===s.rows()),(0,e.g)(t.rows()===s.cols()),s===this){const i=new Float64Array(this.N*this.M),e=new r(i,this.N,this.M);return this.mulTranspose(t,e),void s.assignCopy(e)}if(s===t){const i=new Float64Array(t.N*t.M),e=new r(i,t.N,t.M);return this.mulTranspose(t,e),void s.assignCopy(e)}const i=t.rows();for(let e=0;e<this.N;e++)for(let n=0;n<i;n++){let i=0;for(let s=0;s<this.M;s++)i+=this.atRowCol(e,s)*t.atRowCol(n,s);s.setRowCol(e,n,i)}}mulLeft(t,s){(0,e.g)(0)}mulLeftTranspose(t,s){(0,e.g)(0)}mulDiag(t,s){if((0,e.g)(this.M===t.N*t.M),(0,e.g)(this.N===s.rows()),(0,e.g)(this.M===s.cols()),s===this){const i=new Float64Array(this.N*this.M),e=new r(i,this.N,this.M);return this.mulDiag(t,e),void s.assignCopy(e)}const i=this.M;for(let e=0;e<this.N;e++)for(let n=0;n<i;n++)s.setRowCol(e,n,this.atRowCol(e,n)*t.at(n))}transposeInPlace(){if(this.N===this.M){for(let t=0;t<this.N;t++)for(let s=t+1;s<this.M;s++){const i=this.atRowCol(t,s);this.setRowCol(t,s,this.atRowCol(s,t)),this.setRowCol(s,t,i)}return this}const t=new Float64Array(this.N*this.M),s=new r(t,this.N,this.M);return s.assignCopy(this),this.M=(0,n.b)(this.N,this.N=this.M),s.transpose(this),this}transpose(t){if(this!==t){r.checkDims(t,this.M,this.N);for(let s=0;s<this.N;s++)for(let i=0;i<this.M;i++)t.setRowCol(i,s,this.atRowCol(s,i))}else t.transposeInPlace()}add(t,s){}svd(t,s,i,n=!1){if(r.checkDims(t,this.N,this.M),r.checkDims(s,this.M,1),r.checkDims(i,this.M,this.M),n){if((0,e.g)(this.N===this.M),!this.symmetricEigen(s,i))return!1;for(let t=0;t<this.M;++t)s.at(t)<0&&s.set(t,0);return t.assignCopy(i),!0}let o,h,u,a,l,c,m,y=0,x=0,f=0,d=0,b=0;const v=this.M,_=this.N;t.assignCopy(this);const w=new Float64Array(v),N=new r(w,v,1),p=(t,s)=>s>=0?Math.abs(t):-Math.abs(t),M=(t,s)=>{if((t=Math.abs(t))>(s=Math.abs(s))){const i=s/t;return t*Math.sqrt(i*i+1)}if(s>0){const i=t/s;return s*Math.sqrt(i*i+1)}return 0};for(let i=0;i<v;i++){if(y=i+1,N.set(i,d*f),f=a=d=0,i<_){for(let s=i;s<_;s++)d+=Math.abs(t.atRowCol(s,i));if(d){for(let s=i;s<_;s++)t.setRowCol(s,i,t.atRowCol(s,i)/d),a+=t.atRowCol(s,i)*t.atRowCol(s,i);h=t.atRowCol(i,i),f=-p(Math.sqrt(a),h),u=h*f-a,t.setRowCol(i,i,h-f);for(let s=y;s<v;s++){a=0;for(let e=i;e<_;e++)a+=t.atRowCol(e,i)*t.atRowCol(e,s);h=a/u;for(let e=i;e<_;e++)t.setRowCol(e,s,t.atRowCol(e,s)+h*t.atRowCol(e,i))}for(let s=i;s<_;s++)t.setRowCol(s,i,t.atRowCol(s,i)*d)}}if(s.set(i,d*f),f=a=d=0,i<_&&i!==v-1){for(let s=y;s<v;s++)d+=Math.abs(t.atRowCol(i,s));if(d){for(let s=y;s<v;s++)t.setRowCol(i,s,t.atRowCol(i,s)/d),a+=t.atRowCol(i,s)*t.atRowCol(i,s);h=t.atRowCol(i,y),f=-p(Math.sqrt(a),h),u=h*f-a,t.setRowCol(i,y,h-f);for(let s=y;s<v;s++)N.set(s,t.atRowCol(i,s)/u);for(let s=y;s<_;s++){a=0;for(let e=y;e<v;e++)a+=t.atRowCol(s,e)*t.atRowCol(i,e);for(let i=y;i<v;i++)t.setRowCol(s,i,t.atRowCol(s,i)+a*N.at(i))}for(let s=y;s<v;s++)t.setRowCol(i,s,t.atRowCol(i,s)*d)}}const e=Math.abs(s.at(i))+Math.abs(N.at(i));b=e>b?e:b}for(let s=v-1;s>=0;s--){if(s<v-1){if(f){for(let e=y;e<v;e++)i.setRowCol(e,s,t.atRowCol(s,e)/t.atRowCol(s,y)/f);for(let e=y;e<v;e++){a=0;for(let n=y;n<v;n++)a+=t.atRowCol(s,n)*i.atRowCol(n,e);for(let t=y;t<v;t++)i.setRowCol(t,e,i.atRowCol(t,e)+a*i.atRowCol(t,s))}}for(let t=y;t<v;t++)i.setRowCol(s,t,0),i.setRowCol(t,s,0)}i.setRowCol(s,s,1),f=N.at(s),y=s}for(let i=(_<v?_:v)-1;i>=0;i--){y=i+1,f=s.at(i);for(let s=y;s<v;s++)t.setRowCol(i,s,0);if(f){f=1/f;for(let s=y;s<v;s++){a=0;for(let e=y;e<_;e++)a+=t.atRowCol(e,i)*t.atRowCol(e,s);h=a/t.atRowCol(i,i)*f;for(let e=i;e<_;e++)t.setRowCol(e,s,t.atRowCol(e,s)+h*t.atRowCol(e,i))}for(let s=i;s<_;s++)t.setRowCol(s,i,t.atRowCol(s,i)*f)}else for(let s=i;s<_;s++)t.setRowCol(s,i,0);t.setRowCol(i,i,t.atRowCol(i,i)+1)}for(let e=v-1;e>=0;e--)for(let n=1;;n++){let r=1;for(y=e;y>=0;y--){if(x=y-1,Math.abs(N.at(y))+b===b){r=0;break}if(Math.abs(s.at(x))+b===b)break}if(r){o=0,a=1;for(let i=y;i<=e&&(h=a*N.at(i),N.set(i,N.at(i)*o),Math.abs(h)+b!==b);i++){f=s.at(i),u=M(h,f),s.set(i,u),u=1/u,o=f*u,a=-h*u;for(let s=0;s<_;s++)c=t.atRowCol(s,x),m=t.atRowCol(s,i),t.setRowCol(s,x,c*o+m*a),t.setRowCol(s,i,m*o-c*a)}}if(m=s.at(e),y===e){if(m<0){s.set(e,-m);for(let t=0;t<v;t++)i.setRowCol(t,e,-i.atRowCol(t,e))}break}if(100===n)return!1;l=s.at(y),x=e-1,c=s.at(x),f=N.at(x),u=N.at(e),h=((c-m)*(c+m)+(f-u)*(f+u))/(2*u*c),f=M(h,1),h=((l-m)*(l+m)+u*(c/(h+p(f,h))-u))/l,o=a=1;for(let e=y;e<=x;e++){const n=e+1;f=N.at(n),c=s.at(n),u=a*f,f*=o,m=M(h,u),N.set(e,m),o=h/m,a=u/m,h=l*o+f*a,f=f*o-l*a,u=c*a,c*=o;for(let t=0;t<v;t++)l=i.atRowCol(t,e),m=i.atRowCol(t,n),i.setRowCol(t,e,l*o+m*a),i.setRowCol(t,n,m*o-l*a);m=M(h,u),s.set(e,m),m&&(m=1/m,o=h*m,a=u*m),h=o*f+a*c,l=o*c-a*f;for(let s=0;s<_;s++)c=t.atRowCol(s,e),m=t.atRowCol(s,n),t.setRowCol(s,e,c*o+m*a),t.setRowCol(s,n,m*o-c*a)}N.set(y,0),N.set(e,h),s.set(e,l)}const g=new Float64Array(this.N),C=new Float64Array(this.M),T=new r(g,this.N,1),R=new r(C,this.M,1);let E=1;do{E*=3,E++}while(E<=this.M);do{E/=3,E=Math.trunc(E);for(let e=E;e<this.M;e++){const n=s.at(e);for(let s=0;s<this.N;s++)T.set(s,t.atRowCol(s,e));for(let t=0;t<this.M;t++)R.set(t,i.atRowCol(t,e));let r=e;for(;s.at(r-E)<n;){s.set(r,s.at(r-E));for(let s=0;s<this.N;s++)t.setRowCol(s,r,t.atRowCol(s,r-E));for(let t=0;t<this.M;t++)i.setRowCol(t,r,i.atRowCol(t,r-E));if(r-=E,r<E)break}s.set(r,n);for(let s=0;s<this.N;s++)t.setRowCol(s,r,T.at(s));for(let t=0;t<this.M;t++)i.setRowCol(t,r,R.at(t))}}while(E>1);for(let s=0;s<this.M;s++){let e=0;for(let i=0;i<this.N;i++)t.atRowCol(i,s)<0&&e++;for(let t=0;t<this.M;t++)i.atRowCol(t,s)<0&&e++;if(e>Math.trunc((this.N+this.M)/2)){for(let i=0;i<this.N;i++)t.setRowCol(i,s,-t.atRowCol(i,s));for(let t=0;t<this.M;t++)i.setRowCol(t,s,-i.atRowCol(t,s))}}return!0}isSymmetric(){if(this.N!==this.M)return!1;for(let t=0;t<this.N;t++)for(let s=t+1;s<this.M;s++)if(this.atRowCol(t,s)!==this.atRowCol(s,t))return!1;return!0}isZero(){return(0,e.g)(0),!1}isIdentity(){return(0,e.g)(0),!1}equals(t,s){if(void 0!==s&&(0,e.g)(0),this.N!==t.N||this.M!==t.M)return!1;for(let s=0;s<this.N*this.M;s++)if(this.data[s]!==t.data[s])return!1;return!0}maxElement(){return(0,e.g)(0),0}minElement(){return(0,e.g)(0),0}determinant(){if((0,e.g)(this.N===this.M),1===this.N)return this.data[0];if(2===this.N)return this.data[0]*this.data[3]-this.data[1]*this.data[2];if(3===this.N){const t=this;return t.atRowCol(0,0)*(t.atRowCol(1,1)*t.atRowCol(2,2)-t.atRowCol(1,2)*t.atRowCol(2,1))-t.atRowCol(0,1)*(t.atRowCol(1,0)*t.atRowCol(2,2)-t.atRowCol(2,0)*t.atRowCol(1,2))+t.atRowCol(0,2)*(t.atRowCol(1,0)*t.atRowCol(2,1)-t.atRowCol(1,1)*t.atRowCol(2,0))}const t=new Float64Array(this.N*this.N),s=new r(t,this.N,this.N),i=new Float64Array(this.N);if(!this.luDecomposition(s,i))return 0;let n=1;for(let t=0;t<this.N;t++)n*=s.atRowCol(t,t),i[t]!==t&&(n=-n);return n}submatrix(t,s,i){(0,e.g)(0)}inverse(t){(0,e.g)(0)}pseudoInverse(t,s=!1,i=2220446049250313e-31){if(t.setZero(),1===this.N&&1===this.M)return 0!==this.atRowCol(0,0)?t.setRowCol(0,0,1/this.atRowCol(0,0)):t.setRowCol(0,0,0),!0;if(2===this.N&&2===this.M){const s=this.atRowCol(0,0)*this.atRowCol(1,1)-this.atRowCol(0,1)*this.atRowCol(1,0),i=1e-5*(Math.abs(this.atRowCol(0,0)*this.atRowCol(1,1))+Math.abs(this.atRowCol(0,1)*this.atRowCol(1,0)));if(Math.abs(s)>i)return t.setRowCol(0,0,this.atRowCol(1,1)/s),t.setRowCol(0,1,-this.atRowCol(0,1)/s),t.setRowCol(1,0,-this.atRowCol(1,0)/s),t.setRowCol(1,1,this.atRowCol(0,0)/s),!0}const e=new Float64Array(this.N*this.M),n=new r(e,this.N,this.M),o=new Float64Array(this.M),h=new r(o,this.M,1),u=new Float64Array(this.M*this.M),a=new r(u,this.M,this.M);if(!this.svd(n,h,a,s))return!1;const l=Math.max(this.N,this.M),c=i*Math.abs(h.at(0))*l;for(let t=0;t<this.M;t++)h.at(t)>c?h.set(t,1/h.at(t)):h.set(t,0);return a.mulDiag(h,t),t.mulTranspose(n,t),!0}luDecomposition(t,s){return(0,e.g)(0),!1}symmetricEigen(t,s){(0,e.g)(this.rows()===this.cols()),(0,e.g)(this.rows()===t.rows()),(0,e.g)(s.rows()===s.cols()&&s.rows()===this.rows()),(0,e.g)(this.isSymmetric());const i=new Float64Array(this.N*this.M),n=new r(i,this.N,this.M);n.assignCopy(this);const o=100/Number.EPSILON,h=this.rows(),u=new Float64Array(h),a=new Float64Array(h),l=new r(u,h,1),c=new r(a,h,1);for(let s=0;s<h;s++)l.set(s,n.atRowCol(s,s)),t.set(s,n.atRowCol(s,s)),c.set(s,0);s.setIdentity();const m=()=>{const i=l;s.transposeInPlace();let e=1;do{e*=3,e++}while(e<=h);do{e/=3,e=Math.trunc(e);for(let n=e;n<h;n++){const r=t.at(n),o=Math.abs(r);for(let t=0;t<this.M;t++)i.set(t,s.atRowCol(t,n));let h=n;for(;Math.abs(t.at(h-e))<o;){t.set(h,t.at(h-e));for(let t=0;t<this.M;t++)s.setRowCol(t,h,s.atRowCol(t,h-e));if(h-=e,h<e)break}if(h!==n){t.set(h,r);for(let t=0;t<this.M;t++)s.setRowCol(t,h,i.at(t))}}}while(e>1)};for(let i=1;;i++){let e=0;for(let t=1;t<h;t++)for(let s=0;s<t;s++)e+=Math.abs(n.atRowCol(t,s));if(0===e)return m(),!0;const r=i<4?.2*e/(h*h):0;for(let e=0;e<h;e++)for(let u=e+1;u<h;u++){let a=o*Math.abs(n.atRowCol(u,e));if(i>4&&a<=Math.abs(t.at(e))&&a<=Math.abs(t.at(u)))n.setRowCol(u,e,0);else if(Math.abs(n.atRowCol(u,e))>r){let i,r=t.at(u)-t.at(e);if(a<Math.abs(r))i=n.atRowCol(u,e)/r;else{const t=.5*r/n.atRowCol(u,e);i=1/(Math.abs(t)+Math.sqrt(1+t*t)),t<0&&(i=-i)}const o=1/Math.sqrt(1+i*i),l=i*o,m=l/(1+o);r=i*n.atRowCol(u,e),c.set(e,c.at(e)-r),c.set(u,c.at(u)+r),t.set(e,t.at(e)-r),t.set(u,t.at(u)+r),n.setRowCol(u,e,0);let y=0;for(;y<e;y++)a=n.atRowCol(e,y),r=n.atRowCol(u,y),n.setRowCol(e,y,a-l*(r+a*m)),n.setRowCol(u,y,r+l*(a-r*m));for(y++;y<u;y++)a=n.atRowCol(y,e),r=n.atRowCol(u,y),n.setRowCol(y,e,a-l*(r+a*m)),n.setRowCol(u,y,r+l*(a-r*m));for(y++;y<h;y++)a=n.atRowCol(y,e),r=n.atRowCol(y,u),n.setRowCol(y,e,a-l*(r+a*m)),n.setRowCol(y,u,r+l*(a-r*m));for(y=0;y<h;y++)a=s.atRowCol(e,y),r=s.atRowCol(u,y),s.setRowCol(e,y,a-l*(r+a*m)),s.setRowCol(u,y,r+l*(a-r*m))}}for(let s=0;s<h;s++)l.set(s,l.at(s)+c.at(s)),t.set(s,l.at(s)),c.set(s,0)}}static checkDims(t,s,i){(0,e.g)(t.rows()===s&&t.cols()===i)}}class o extends r{constructor(t){if(t.copy){const s=new Float64Array(t.copy.N*t.copy.M);return super(s,t.copy.N,t.copy.M),this.buffer=s,void this.assignCopy(t.copy)}const s=new Float64Array(t.NN*t.MM);super(s,t.NN,t.MM),this.buffer=s,t.initializerList&&(0,n.a)(this.buffer,t.initializerList,0,0,t.initializerList.length)}assignCopy(t){return this===t||super.assignCopy(t),this}}class h{constructor(t){this.m_TransformationType=1,void 0===t?this.setIdentity():t instanceof h?this.set(t):this.setScale(t)}set(t){return this.xx=t.xx,this.xy=t.xy,this.xd=t.xd,this.yx=t.yx,this.yy=t.yy,this.yd=t.yd,this}clone(){return(new h).set(this)}setZero(){this.xx=0,this.yy=0,this.xy=0,this.yx=0,this.xd=0,this.yd=0}isEqual(t){return this===t||this.xx===t.xx&&this.xy===t.xy&&this.xd===t.xd&&this.yx===t.yx&&this.yy===t.yy&&this.yd===t.yd}transformInPlace(t){const s=this.xx*t.x+this.xy*t.y+this.xd,i=this.yx*t.x+this.yy*t.y+this.yd;t.x=s,t.y=i}transform(t){const s=t.clone();return this.transformInPlace(s),s}queryTransform(t,s){const i=this.xx*t.x+this.xy*t.y+this.xd,e=this.yx*t.x+this.yy*t.y+this.yd;s.setCoords(i,e)}transformEnvInPlace(t){if(t.isEmpty())return;const s=(0,n.m)(n.P,4);t.queryCorners(s),this.transformPoints2D(s,4,s),t.setFromPoints(s,4)}queryTransformEnv(t,s){(0,e.g)(0)}transformPoints2D(t,s,i){for(let e=0;e<s;++e)this.queryTransform(t[e],i[e])}transformInterleavedPoints(t,s,i){s*=2;const e=n.P.getNAN();for(let n=0;n<s;n+=2)e.x=t[n],e.y=t[n+1],this.transformInPlace(e),i[n]=e.x,i[n+1]=e.y}multiply(t){return h.st_multiply(this,t,this),this}mulLeft(t){return(0,e.g)(0),this}static st_multiply(t,s,i){const e=t.xx*s.xx+t.yx*s.xy,n=t.xy*s.xx+t.yy*s.xy,r=t.xd*s.xx+t.yd*s.xy+s.xd,o=t.xx*s.yx+t.yx*s.yy,h=t.xy*s.yx+t.yy*s.yy,u=t.xd*s.yx+t.yd*s.yy+s.yd;i.xx=e,i.xy=n,i.xd=r,i.yx=o,i.yy=h,i.yd=u}getCoefficients(t){(0,e.g)(t.length>=6),t[0]=this.xx,t[1]=this.xy,t[2]=this.xd,t[3]=this.yx,t[4]=this.yy,t[5]=this.yd}setCoefficients(t){(0,e.g)(t.length>=6),this.xx=t[0],this.xy=t[1],this.xd=t[2],this.yx=t[3],this.yy=t[4],this.yd=t[5]}copyTo(t){(0,e.g)(0)}initializeFromRect(t,s){t.isEmpty()||s.isEmpty()||!t.width()||!t.height()?this.setZero():(this.xy=this.yx=0,this.xx=s.width()/t.width(),this.yy=s.height()/t.height(),this.xd=s.xmin-t.xmin*this.xx,this.yd=s.ymin-t.ymin*this.yy)}initializeFromRectIsotropic(t,s){if(t.isEmpty()||!t.width()||!t.height()||s.isEmpty())this.setZero();else{this.yx=0,this.xy=0,this.xx=s.width()/t.width(),this.yy=s.height()/t.height(),this.xx>this.yy?this.xx=this.yy:this.yy=this.xx;const i=s.getCenter(),e=t.getCenter();this.xd=i.x-e.x*this.xx,this.yd=i.y-e.y*this.yy}}initializeFromTwoPointsArray(t,s){if(t[0].equals(s[0])&&t[1].equals(s[1]))return void this.setIdentity();if(t[0].equals(t[1])){if(s[0].equals(s[1]))return void this.setShift(s[0].sub(t[0]));(0,e.t)("")}if(!t[0].equals(t[1])&&s[0].equals(s[1]))return this.setZero(),void this.shift(s[0]);this.setShiftCoords(-t[0].x,-t[0].y);const i=n.P.distance(t[0],t[1]),r=n.P.distance(s[0],s[1]),o=r/i;this.scale(o,o);const h=t[1].sub(t[0]);h.divThis(i);const u=s[1].sub(s[0]);u.divThis(r);const a=h.crossProduct(u),l=h.dotProduct(u);this.rotate(l,a),this.shiftCoords(s[0].x,s[0].y)}initializeFromTwoPoints(t,s,i,e){const n=[t,s],r=[i,e];this.initializeFromTwoPointsArray(n,r)}transformSizeInPlace(t){(0,e.g)(0)}transformSize(t,s){(0,e.g)(0)}transformTol(t){return(0,e.g)(0),0}transformWithoutTranslateArray(t,s,i){for(let e=0;e<s;++e)this.transformWithoutTranslate(t[e],i[e])}transformWithoutTranslateInPlace(t){const s=this.xx*t.x+this.xy*t.y,i=this.yx*t.x+this.yy*t.y;t.setCoords(s,i)}transformWithoutTranslate(t,s){const i=this.xx*t.x+this.xy*t.y,e=this.yx*t.x+this.yy*t.y;s.setCoords(i,e)}setIdentity(){this.xx=1,this.xy=0,this.xd=0,this.yx=0,this.yy=1,this.yd=0}isIdentity(){return!(1!==this.xx||1!==this.yy||this.xy||this.xd||this.yx||this.yd)}isIdentityTol(t){const s=t*t;return!((0,n.s)(this.xd)+(0,n.s)(this.yd)>s||(0,n.s)(this.xy+this.xd)+(0,n.s)(this.yy+this.yd-1)>s||(0,n.s)(this.xx+this.xd-1)+(0,n.s)(this.yx+this.yd)>s)}isReflective(){return this.xx*this.yy-this.yx*this.xy<0}isUniform(t){const s=this.xx*this.xx+this.yx*this.yx,i=this.xy*this.xy+this.yy*this.yy,e=(s+i)*t;return Math.abs(s-i)<=e&&Math.abs(this.xx*this.xy+this.yx*this.yy)<=e}isUniformNoRotation(){return 0!==this.xx&&Math.abs(this.xx)===Math.abs(this.yy)&&0===this.xy&&0===this.yx}isTranslate(){return 1===this.xx&&1===this.yy&&!this.xy&&!this.yx}isTranslateTol(t){const s=new n.P;return s.setCoords(0,1),this.transformWithoutTranslateInPlace(s),s.y-=1,!(s.sqrLength()>t*t)&&(s.setCoords(1,0),this.transformWithoutTranslateInPlace(s),s.x-=1,s.sqrLength()<=t*t)}isOrthonormal(t){const s=new h;return s.xx=this.xx*this.xx+this.xy*this.xy,s.xy=this.xx*this.yx+this.xy*this.yy,s.yx=this.yx*this.xx+this.yy*this.xy,s.yy=this.yx*this.yx+this.yy*this.yy,s.xd=0,s.yd=0,s.isIdentityTol(t)}isDegenerate(t){return Math.abs(this.xx*this.yy-this.yx*this.xy)<=2*t*(Math.abs(this.xx*this.yy)+Math.abs(this.yx*this.xy))}isZero(){return 0===this.xx&&0===this.yy&&0===this.xy&&0===this.yx&&0===this.xd&&0===this.yd}isScaleAndTranslateTol(t){return this.xy*this.xy+this.yx*this.yx<=(this.xx*this.xx+this.yy*this.yy)*t}setTranslate(t,s){return this.xx=1,this.xy=0,this.xd=t,this.yx=0,this.yy=1,this.yd=s,this}setShiftCoords(t,s){return this.xx=1,this.xy=0,this.xd=t,this.yx=0,this.yy=1,this.yd=s,this}setShift(t){return this.xx=1,this.xy=0,this.xd=t.x,this.yx=0,this.yy=1,this.yd=t.y,this}setScaleCoords(t,s){return this.xx=t,this.xy=0,this.xd=0,this.yx=0,this.yy=s,this.yd=0,this}setScale(t){return this.setScaleCoords(t,t),this}setFlipX(t,s){return this.xx=-1,this.xy=0,this.xd=t+s,this.yx=0,this.yy=1,this.yd=0,this}setFlipY(t,s){return this.xx=1,this.xy=0,this.xd=0,this.yx=0,this.yy=-1,this.yd=t+s,this}setShear(t,s){return this.xx=1,this.xy=t,this.xd=0,this.yx=s,this.yy=1,this.yd=0,this}scale(t,s){return this.xx*=t,this.xy*=t,this.xd*=t,this.yx*=s,this.yy*=s,this.yd*=s,this}setRotateAngle(t){return this.setRotate(Math.cos(t),Math.sin(t))}setRotate(t,s){return this.xx=t,this.xy=-s,this.xd=0,this.yx=s,this.yy=t,this.yd=0,this}setRotateAngleAbout(t,s){return this.setRotateAbout(Math.cos(t),Math.sin(t),s)}setRotateAbout(t,s,i){return this.setTranslate(-i.x,-i.y),this.rotate(t,s),this.translate(i.x,i.y)}setSwapCoordinates(){return this.xx=0,this.xy=1,this.xd=0,this.yx=1,this.yy=0,this.yd=0,this}setRotateCw90(){return this.xx=0,this.xy=1,this.xd=0,this.yx=-1,this.yy=0,this.yd=0,this}setRotateCcw90(){return this.xx=0,this.xy=-1,this.xd=0,this.yx=1,this.yy=0,this.yd=0,this}shiftCoords(t,s){return this.xd+=t,this.yd+=s,this}shift(t){return this.xd+=t.x,this.yd+=t.y,this}translate(t,s){return this.xd+=t,this.yd+=s,this}flipX(t,s){return this.xx=-this.xx,this.xy=-this.xy,this.xd=t+s-this.xd,this}flipY(t,s){return this.yx=-this.yx,this.yy=-this.yy,this.yd=t+s-this.yd,this}shear(t,s){const i=new h;return i.setShear(t,s),this.multiply(i)}rotateAngle(t){const s=new h;return s.setRotateAngle(t),this.multiply(s)}rotate(t,s){const i=new h;return i.setRotate(t,s),this.multiply(i)}rotateAbout(t,s,i){return this.translate(-i.x,-i.y),this.rotate(t,s),this.translate(i.x,i.y)}rotateAngleAbout(t,s){return this.rotateAbout(Math.cos(t),Math.sin(t),s)}setInvert(t){return this.set(t),this.invertThis()}invertThis(){let t=this.xx*this.yy-this.xy*this.yx;if(0===t)return this.setZero(),this;t=1/t;const s=(this.xy*this.yd-this.xd*this.yy)*t,i=(this.xd*this.yx-this.xx*this.yd)*t,e=this.yy*t,n=-this.xy*t,r=-this.yx*t,o=this.xx*t;return this.xd=s,this.yd=i,this.xx=e,this.yy=o,this.xy=n,this.yx=r,this}invertPrecise(t){return this.set(t),this.invertPreciseThis()}invertPreciseThis(){const t=n.M.constructDouble(this.xy),s=n.M.constructDouble(this.xx),i=s.mulDouble(this.yy).sub(t.mulDouble(this.yx));if(i.isZero())return this.setZero(),this;const e=i.clone();e.invertThis();const r=n.M.constructDouble(this.xd),o=t.mulDouble(this.yd).sub(r.mulDouble(this.yy)).mul(e).toDouble(),h=r.mulDouble(this.yx).sub(s.mulDouble(this.yd)).mul(e).toDouble(),u=e.mulDouble(this.yy).toDouble(),a=e.mulDouble(-this.xy).toDouble(),l=e.mulDouble(-this.yx).toDouble(),c=e.mulDouble(this.xx).toDouble();return this.xd=o,this.yd=h,this.xx=u,this.yy=c,this.xy=a,this.yx=l,this}extractScaleTransform(t,s){const i=Math.sqrt(this.xx*this.xx+this.xy*this.xy),e=Math.sqrt(this.yx*this.yx+this.yy*this.yy);s.setScaleCoords(1/i,1/e),s.multiply(this),t.setScaleCoords(i,e)}setFromTwoTriangles(t,s){let i=!0;for(let e=0;e<3;++e)i=i&&t[e].equals(s[e]);if(i)return this.setIdentity(),!0;const e=new n.P;e.setSub(t[0],t[1]);const r=new n.P;r.setSub(t[0],t[2]);const o=new n.P;o.setSub(s[0],s[1]);const h=new n.P;h.setSub(s[0],s[2]);const u=4*Number.EPSILON*(Math.abs(e.x*r.y)+Math.abs(r.x*e.y));let a=e.x*r.y-e.y*r.x;return Math.abs(a)>u?(a=1/a,this.xx=(o.x*r.y-e.y*h.x)*a,this.xy=(e.x*h.x-o.x*r.x)*a,this.yx=(o.y*r.y-e.y*h.y)*a,this.yy=(e.x*h.y-o.y*r.x)*a,this.xd=s[0].x-(this.xx*t[0].x+this.xy*t[0].y),this.yd=s[0].y-(this.yx*t[0].x+this.yy*t[0].y),!0):(this.setZero(),!1)}initializeFromControlPoints(t,s,i,r,l=null){return 0===s?(this.setIdentity(),void(l&&l.setIdentity())):1===s?(this.setShift(r[0].sub(i[0])),void(l&&l.setShift(i[0].sub(r[0])))):(s<3&&(t=1),void(4===t&&s>2?function(t,s,i,r,h){const u=n.P.average(i,s),l=n.P.average(r,s),c=new o({NN:2,MM:2});c.setZero();const m=new o({NN:2,MM:2});m.setZero();for(let t=0;t<s;++t)c.setRowCol(0,0,c.atRowCol(0,0)+(i[t].x-u.x)*(i[t].x-u.x)),c.setRowCol(0,1,c.atRowCol(0,1)+(i[t].x-u.x)*(i[t].y-u.y)),c.setRowCol(1,1,c.atRowCol(1,1)+(i[t].y-u.y)*(i[t].y-u.y)),m.setRowCol(0,0,m.atRowCol(0,0)+(r[t].x-l.x)*(i[t].x-u.x)),m.setRowCol(0,1,m.atRowCol(0,1)+(r[t].x-l.x)*(i[t].y-u.y)),m.setRowCol(1,0,m.atRowCol(1,0)+(r[t].y-l.y)*(i[t].x-u.x)),m.setRowCol(1,1,m.atRowCol(1,1)+(r[t].y-l.y)*(i[t].y-u.y));c.setRowCol(1,0,c.atRowCol(0,1));const y=new o({NN:2,MM:2});c.pseudoInverse(y,!0)||(0,e.a)("Failed to compute pseudo inverse"),m.mul(y,m),a(t,m);const x=u.clone();t.transformInPlace(x),t.xd=l.x-x.x,t.yd=l.y-x.y,h&&(m.pseudoInverse(y,!1)||(0,e.a)("Failed to compute pseudo inverse"),a(h,y),h.transformInPlace(l),h.xd=u.x-l.x,h.yd=u.y-l.y)}(this,s,i,r,l):function(t,s,i,r,l,c){(0,e.g)(1===t||0===t||2===t||3===t),s.setIdentity();const m=n.P.average(r,i),y=n.P.average(l,i);if((0,e.g)(t<u.length&&t>0),8&u[t]){const n=new o({NN:2,MM:2});n.setZero();for(let t=0;t<i;++t)n.setRowCol(0,0,n.atRowCol(0,0)+(l[t].x-y.x)*(r[t].x-m.x)),n.setRowCol(1,0,n.atRowCol(1,0)+(l[t].x-y.x)*(r[t].y-m.y)),n.setRowCol(0,1,n.atRowCol(0,1)+(l[t].y-y.y)*(r[t].x-m.x)),n.setRowCol(1,1,n.atRowCol(1,1)+(l[t].y-y.y)*(r[t].y-m.y));const c=new o({NN:2,MM:2}),x=new o({NN:2,MM:1}),f=new o({NN:2,MM:2});n.svd(c,x,f)||(0,e.a)("Failed to compute svd");const d=new o({NN:2,MM:2});c.transpose(d);const b=new o({NN:2,MM:2});f.mul(d,b),32&u[t]||b.determinant()<0&&(d.setRowCol(1,0,-d.atRowCol(1,0)),d.setRowCol(1,1,-d.atRowCol(1,1)),f.mul(d,b));const v=new h;a(v,b),s.set(v)}if(2&u[t]){let t=0,e=0;for(let n=0;n<i;++n){const i=r[n].sub(m);t+=i.sqrLength(),s.transformInPlace(i),e+=i.dotProduct(l[n].sub(y))}if(0===t)0===e?s.setIdentity():s.setZero();else{const i=e/t;s.scale(i,i)}}else(0,e.g)(!(4&u[t]));const x=m.clone();s.transformInPlace(x),s.xd=y.x-x.x,s.yd=y.y-x.y,c&&(c.set(s),c.invertThis(),c.isZero()&&(c.xd=m.x,c.yd=m.y))}(t,this,s,i,r,l)))}calculateErrors(t,s,i,r){(0,e.g)(t>0&&null!==s&&null!==i);let o=0;for(let e=0;e<t;++e){const t=this.transform(s[e]),h=n.P.sqrDistance(i[e],t);o+=h,r&&(r[e]=Math.sqrt(h))}return Math.sqrt(o/t)}}const u=[43,11,41,9,61];function a(t,s){(0,e.g)(!(2!==s.rows()&&3!==s.rows()||2!==s.cols()&&3!==s.rows())),t.xx=s.atRowCol(0,0),t.xy=s.atRowCol(0,1),t.yx=s.atRowCol(1,0),t.yy=s.atRowCol(1,1),3===s.cols()?(t.xd=s.atRowCol(0,2),t.yd=s.atRowCol(1,2)):(t.xd=0,t.yd=0)}},55537:(t,s,i)=>{function e(t,s){try{if(!t)throw new Error(s)}catch(t){throw t}}i.d(s,{A:()=>y,B:()=>k,C:()=>F,D:()=>z,G:()=>l,a:()=>T,b:()=>P,c:()=>A,d:()=>Z,e:()=>x,f:()=>b,g:()=>e,h:()=>_,i:()=>v,j:()=>p,k:()=>g,l:()=>S,m:()=>E,n:()=>D,o:()=>w,p:()=>d,q:()=>f,r:()=>M,s:()=>q,t:()=>C,u:()=>I,v:()=>N,w:()=>G,x:()=>R,y:()=>B,z:()=>L});class n extends Error{constructor(t,s){super(s),this.m_AdditionalMessage=s,this.m_ErrorType=t,this.name="GeometryError"}what(){return function(t){switch(t){case 1:return"Unknown error";case 2:return"Corrupted geometry";case 3:return"Empty geometry";case 4:return"Math singularity";case 5:return"Buffer is too small";case 6:return"Invalid shape type";case 7:return"Projection out of supported range";case 8:return"Non simple geometry";case 9:return"Cannot calculate geodesic";case 10:return"Notation conversion";case 11:return"Missing grid file";case 12:return"Invalid call";case 13:return"Internal error";case 14:return"Not implemented";case 15:return"IO error";case 16:return"Invalid 3D";case 17:return"An ambiguous geography edge with antipodal points";case 18:return"Geocentric coordinates require ellipsoidal height";case 19:return"Geography cannot be projected into a gnomonic plane or a result of an operation cannot fit into a gnomonic plane";case 20:return"Geometry is too large to be exported in to a given format";case 22:return"Operation is canceled by the user";case 21:return"The operation, such as projection or geodetic computation, cannot be performed without pe-wasm loaded";default:return"unknown error"}}(this.m_ErrorType)}additionalMessage(){return this.m_AdditionalMessage?this.m_AdditionalMessage:""}code(){return this.m_ErrorType}}class r extends n{constructor(t){super(2,t),this.name="CorruptedGeometryError"}}class o extends n{constructor(t){super(3,t),this.name="EmptyGeometryError"}}class h extends n{constructor(t){super(4,t),this.name="MathSingularityError"}}class u extends n{constructor(t){super(21,t),this.name="ProjectionEngineNotLoadedError"}}class a extends n{constructor(t){super(8,t),this.name="NonSimpleGeometryError"}}var l,c;(c=l||(l={}))[c.enumUnknown=0]="enumUnknown",c[c.enumPoint=513]="enumPoint",c[c.enumLine=5122]="enumLine",c[c.enumBezier=5123]="enumBezier",c[c.enumEllipticArc=5124]="enumEllipticArc",c[c.enumEnvelope=3077]="enumEnvelope",c[c.enumMultiPoint=8710]="enumMultiPoint",c[c.enumPolyline=25607]="enumPolyline",c[c.enumPolygon=27656]="enumPolygon",c[c.enumMultipatch=40969]="enumMultipatch",c[c.enumGeometryCollection=3594]="enumGeometryCollection",c[c.enumRationalBezier2=5134]="enumRationalBezier2",c[c.enumBezier2=5135]="enumBezier2",c[c.enumRationalBezier23d=5392]="enumRationalBezier23d",c[c.enumGreatArc3d=5393]="enumGreatArc3d";const m=[0,0,1,1,1,2,0,1,2,3,-1,-1,-1,-1,1,1];function y(t){return m[15&t]}function x(t){return!!(512&t)}function f(t){return!!(1024&t)}function d(t){return!!(2048&t)}function b(t){return!!(4096&t)}function v(t){return!!(8192&t)}function _(t){return!!(16384&t)}function w(t){return!!(32768&t)}function N(t){const s=t.getGeometryType();return v(s)?t.getPointCount():t.isEmpty()?0:s===l.enumEnvelope?4:s===l.enumPoint?1:b(s)?2:void A("missing type")}function p(t){const s=t.getGeometryType();if(_(s))return t.hasNonLinearSegments();if(s===l.enumGeometryCollection){const s=t;for(let t=0,i=s.getGeometryCount();t<i;t++)if(p(s.getGeometry(t)))return!0;return!1}return!!b(s)&&s!==l.enumLine}function M(t){throw new u(t)}function g(t){throw new r(t)}function C(t){throw new Error(t)}function T(t){throw new h(t)}function R(){C("Geometry type is not supported for 3D operations.")}function E(t){throw new n(12,t)}function I(t){throw new o(t)}function P(t){throw new n(14,t)}function D(t){throw new Error(t)}function A(t){throw new n(13,t)}function q(t){throw new Error(t)}function z(t){throw new a(t)}function S(t){t&&p(t)&&P("Operation does not support curves.")}function Z(t){t&&w(t.getGeometryType())&&P("Unsupported geometry type.")}function F(t){t===l.enumGeometryCollection&&C("Geometry_collection instances are not supported in this operation")}function k(t){F(t.getGeometryType())}function B(t){C(`bad wkid: ${t}`)}function L(t){let s="bad wkt: ";s+=t,s+="...",C(s)}function G(t,s){t||C(s)}},83661:(t,s,i)=>{i.d(s,{$:()=>N,A:()=>ys,B:()=>at,C:()=>ft,D:()=>vs,E:()=>a,F:()=>c,G:()=>v,H:()=>b,I:()=>jt,J:()=>ws,K:()=>n,L:()=>Ct,M:()=>Ds,N:()=>_s,O:()=>It,P:()=>ks,Q:()=>z,R:()=>S,S:()=>Pt,T:()=>ut,U:()=>xt,V:()=>E,W:()=>I,X:()=>dt,Y:()=>Wt,Z:()=>Z,_:()=>w,a:()=>lt,a0:()=>P,a1:()=>D,a2:()=>A,a3:()=>Vt,a4:()=>At,a5:()=>gs,a6:()=>Es,a7:()=>Ts,a8:()=>Cs,a9:()=>et,aA:()=>Ss,aB:()=>Fs,aC:()=>C,aD:()=>hs,aE:()=>$t,aF:()=>Lt,aG:()=>as,aH:()=>us,aa:()=>nt,ab:()=>St,ac:()=>pt,ad:()=>_,ae:()=>qs,af:()=>As,ag:()=>B,ah:()=>Ms,ai:()=>it,aj:()=>V,ak:()=>L,al:()=>Is,am:()=>bt,an:()=>bs,ao:()=>Jt,ap:()=>ct,aq:()=>os,ar:()=>ls,as:()=>Tt,at:()=>ms,au:()=>gt,av:()=>R,aw:()=>rs,ax:()=>ps,ay:()=>_t,az:()=>Zs,b:()=>mt,c:()=>Ns,d:()=>Et,e:()=>G,f:()=>T,g:()=>ds,h:()=>wt,i:()=>Ht,j:()=>Xt,k:()=>qt,l:()=>zt,m:()=>Mt,n:()=>Dt,o:()=>st,p:()=>Rt,q:()=>q,r:()=>Yt,s:()=>k,t:()=>O,u:()=>vt,v:()=>yt,w:()=>Nt,x:()=>F,y:()=>p,z:()=>g});var e=i(55537);class n{constructor(t){this.sum=t,this.compensation=0}assign(t){return this.compensation=t.compensation,this.sum=t.sum,this}reset(){this.sum=this.compensation=0}resetToStart(t){this.sum=t,this.compensation=0}normalize(){const t=[Number.NaN];this.sum=tt(this.sum,this.compensation,t),this.compensation=t[0]}add(t){const s=this.sum+t;let i;if(Math.abs(this.sum)>=Math.abs(t)){const e=this.sum-s+t;i=this.compensation+e}else{const e=t-s+this.sum;i=this.compensation+e}this.sum=s,this.compensation=i}sub(t){this.add(-t)}addProduct(t,s){const i=[0],e=$(t,s,i);this.add(e),this.add(i[0])}mul(t){const s=new n(0);s.addProduct(this.sum,t),s.addProduct(this.compensation,t),this.assign(s)}getResult(){return this.sum+this.compensation}pe(t){return this.add(t),this}me(t){return this.add(-t),this}}const r=[5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1],o=[-1,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3];function h(t){let s=0;return 65535n&t||(s+=16,t>>=16n),255n&t||(s+=8,t>>=8n),15n&t||(s+=4,t>>=4n),s+r[Number(BigInt.asUintN(4,t))]}function u(t){let s=0;return 4294967295n&t||(s=32,t>>=32n),s+h(BigInt.asUintN(32,t))}class a{constructor(t,s){if(this.m_EnvelopeType=1,void 0!==t){if(t instanceof a)return this.vmin=t.vmin,void(this.vmax=t.vmax);this.vmin=t,this.vmax=s,this.normalize()}else this.setEmpty()}static construct(t,s){return new a(t,s)}static constructEmpty(){return new a}setCoords(t,s){this.vmin=t,this.vmax=s,this.normalize()}setCoordsFromEnvelope(t){this.vmin=t.vmin,this.vmax=t.vmax}setEmpty(){this.vmin=Number.NaN,this.vmax=Number.NaN}getCenter(){return.5*(this.vmin+this.vmax)}equalsRange(t,s){return Vt(this.vmin,t)&&Vt(this.vmax,s)}equals(t,s){return!(!this.isEmpty()||!t.isEmpty())||(void 0!==s?Math.abs(this.vmin-t.vmin)<=s&&Math.abs(this.vmax-t.vmax)<=s:this.vmin===t.vmin&&this.vmax===t.vmax)}width(){return this.vmax-this.vmin}isEmpty(){return Number.isNaN(this.vmin)||Number.isNaN(this.vmax)}isZero(){return this.vmin===this.vmax}setInfinite(){this.vmin=Number.NEGATIVE_INFINITY,this.vmax=Number.POSITIVE_INFINITY}move(t){this.isEmpty()||(this.vmin+=t,this.vmax+=t)}contains(t){return t.vmin>=this.vmin&&t.vmax<=this.vmax}containsCoordinate(t){return t>=this.vmin&&t<=this.vmax}containsRightExclusive(t){return t>=this.vmin&&t<this.vmax}containsExclusiveCoordinate(t){return t>this.vmin&&t<this.vmax}containsExclusive(t){return t.vmin>this.vmin&&t.vmax<this.vmax}isIntersecting(t){return this.vmin<=t.vmin?this.vmax>=t.vmin:t.vmax>=this.vmin}mergeCoordinate(t){if(this.isEmpty())return this.vmin=t,void(this.vmax=t);this.mergeNeCoordinate(t)}merge(t){if(t.isEmpty())return;const s=t.vmin,i=t.vmax;this.mergeCoordinate(s),this.mergeCoordinate(i)}mergeNe(t){const s=t.vmin,i=t.vmax;this.mergeNeCoordinate(s),this.mergeNeCoordinate(i)}mergeNeCoordinate(t){t<this.vmin?this.vmin=t:t>this.vmax&&(this.vmax=t)}intersect(t){this.isEmpty()||t.isEmpty()?this.setEmpty():(this.vmin<t.vmin&&(this.vmin=t.vmin),this.vmax>t.vmax&&(this.vmax=t.vmax),this.vmin>this.vmax&&this.setEmpty())}inflate(t){this.isEmpty()||(this.vmin-=t,this.vmax+=t,this.vmax<this.vmin&&this.setEmpty())}normalize(){this.vmin<=this.vmax||(this.vmin>this.vmax?this.vmax=mt(this.vmin,this.vmin=this.vmax):this.setEmpty())}isValid(){return this.isEmpty()||this.vmin<=this.vmax}snapClip(t){return Ns(t,this.vmin,this.vmax)}calculateToleranceFromEnvelope(){return this.isEmpty()?ds():(Math.abs(this.vmin)+Math.abs(this.vmax)+1)*ds()}static unit(){return l}normalizeNoNAN(){this.vmin>this.vmax&&(this.vmax=mt(this.vmin,this.vmin=this.vmax))}setCoordsNoNAN(t,s){this.vmin=t,this.vmax=s,this.normalizeNoNAN()}clone(){return new a(this.vmin,this.vmax)}}const l=new a(0,1);class c{static getNAN(){return new c(Number.NaN)}constructor(t,s){this.m_value=t??0,this.m_eps=s??0}[Symbol.toPrimitive](t){return this}clone(){return new c(this.m_value,this.m_eps)}assign(t){return this.m_value=t.m_value,this.m_eps=t.m_eps,this}scaleError(t){this.m_eps*=t}setError(t){this.m_eps=t}set(t,s){return this.m_value=t,this.m_eps=s??0,this}setWithEps(t,s){return void 0===s&&(s=1),this.m_value=t,this.m_eps=c.ulp(t)*s,this}setE(t){return this.m_value=t.m_value,this.m_eps=t.m_eps,this}precise(){return new c(this.m_value)}value(){return this.m_value}toDouble(){return this.m_value}eps(){return this.m_eps}resetError(){return this.m_eps=0,this}absThis(){return this.m_value=Math.abs(this.m_value),this}add(t){return this.clone().addThis(t)}addE(t){return this.clone().addThisE(t)}addThisE(t){const s=this.m_value+t.m_value,i=this.m_eps+t.m_eps+c.ulp(s);return this.m_value=s,this.m_eps=i,this}addThis(t){const s=this.m_value+t,i=this.m_eps+c.ulp(s);return this.m_value=s,this.m_eps=i,this}subE(t){return this.clone().subThisE(t)}sub(t){return this.clone().subThis(t)}subThisE(t){const s=this.m_value-t.m_value,i=this.m_eps+t.m_eps+c.ulp(s);return this.m_value=s,this.m_eps=i,this}subThis(t){const s=this.m_value-t,i=this.m_eps+c.ulp(s);return this.m_value=s,this.m_eps=i,this}setAddE(t,s){return this.m_value=t.m_value+s.m_value,this.m_eps=t.m_eps+s.m_eps+c.ulp(this.m_value),this}setAdd(t,s){return this.m_value=t+s,this.m_eps=c.ulp(this.m_value),this}setAddEN(t,s){return this.m_value=t.m_value+s,this.m_eps=t.m_eps+c.ulp(this.m_value),this}setAddNE(t,s){return this.m_value=t+s.m_value,this.m_eps=s.m_eps+c.ulp(this.m_value),this}setSubE(t,s){return this.m_value=t.m_value-s.m_value,this.m_eps=t.m_eps+s.m_eps+c.ulp(this.m_value),this}setSub(t,s){return this.m_value=t-s,this.m_eps=c.ulp(this.m_value),this}setSubEN(t,s){return this.m_value=t.m_value-s,this.m_eps=t.m_eps+c.ulp(this.m_value),this}setSubNE(t,s){return this.m_value=t-s.m_value,this.m_eps=s.m_eps+c.ulp(this.m_value),this}mulThisE(t){const s=this.m_value*t.m_value;return this.m_eps=this.m_eps*Math.abs(t.m_value)+t.m_eps*Math.abs(this.m_value)+this.m_eps*t.m_eps+c.ulp(s),this.m_value=s,this}mulThis(t){const s=this.m_value*t;return this.m_eps=this.m_eps*Math.abs(t)+c.ulp(s),this.m_value=s,this}mul(t){return this.clone().mulThis(t)}mulE(t){return this.clone().mulThisE(t)}setMulE(t,s){const i=t.m_value*s.m_value;return this.m_eps=t.m_eps*Math.abs(s.m_value)+s.m_eps*Math.abs(t.m_value)+t.m_eps*s.m_eps+c.ulp(i),this.m_value=i,this}setMul(t,s){return this.m_value=t*s,this.m_eps=c.ulp(this.m_value),this}setMulEN(t,s){return this.setE(t),this.mulThis(s)}setMulNE(t,s){return this.setE(s),this.mulThis(t)}mulThisByPower2(t){return this.m_value*=t,this.m_eps*=Math.abs(t),this}static st_mulByPower2(t,s){return new c(t.m_value,t.m_eps).mulThisByPower2(s)}divE(t){return this.clone().divThisE(t)}divThisE(t){const s=Math.abs(t.m_value),i=this.m_value/t.m_value;let e=(this.m_eps+Math.abs(i)*t.m_eps)/s;if(t.m_eps>.01*s){const i=t.m_eps/s;e*=1+(1+i)*i}return this.m_value=i,this.m_eps=e+c.ulp(i),this}divThis(t){const s=Math.abs(t);return this.m_value/=t,this.m_eps=this.m_eps/s+c.ulp(this.m_value),this}setDivE(t,s){return this.setE(t),this.divThisE(s)}setDiv(t,s){return this.m_value=t/s,this.m_eps=c.ulp(this.m_value),this}setDivEN(t,s){return this.setE(t),this.divThis(s)}setDivNE(t,s){return this.set(t),this.divThisE(s)}divThisByPower2(t){return this.m_value/=t,this.m_eps/=Math.abs(t),this}invThis(){return this.setE(v.clone().divThisE(this)),this}sqrt(){return this.clone().sqrtThis()}sqrtThis(){let t,s;return this.m_value>=0?(t=Math.sqrt(this.m_value),s=this.m_value>10*this.m_eps?.5*this.m_eps/t:this.m_value>this.m_eps?t-Math.sqrt(this.m_value-this.m_eps):Math.max(t,Math.sqrt(this.m_value+this.m_eps)-t),s+=c.ulp(t)):this.m_value<-this.m_eps?(t=Number.NaN,s=Number.NaN):(t=0,s=Math.sqrt(this.m_eps)),this.m_value=t,this.m_eps=s,this}sqr(){return this.clone().sqrThis()}sqrThis(){const t=this.m_value*this.m_value;return this.m_eps=2*this.m_eps*Math.abs(this.m_value)+this.m_eps*this.m_eps+c.ulp(t),this.m_value=t,this}setSin(t){const s=Math.sin(t.m_value),i=Math.cos(t.m_value);this.m_value=s;const e=Math.abs(s),n=Math.abs(t.value());return this.m_eps=(Math.abs(i)+.5*e*t.m_eps)*t.m_eps+c.ulp(e+n),this}static ulp(t){let s=Gt(t);const i=((0x7ff0000000000000n&s)>>52n)-1075n;return i>-1023n?(s=i+0x3ffn<<52n,function(t){return kt[0]=t,Ft[0]}(s)):0===t?0:Number.MIN_VALUE}setCos(t){const s=Math.sin(t.m_value),i=Math.cos(t.m_value);this.m_value=i;const e=Math.abs(i),n=Math.abs(t.value());return this.m_eps=(Math.abs(s)+.5*e*t.m_eps)*t.m_eps+c.ulp(e+n),this}static st_cosAndSin(t,s,i){const e=Math.sin(t.m_value),n=Math.cos(t.m_value);i.m_value=e,s.m_value=n;const r=Math.abs(e),o=Math.abs(n),h=Math.abs(t.value());i.m_eps=(Math.abs(n)+.5*r*t.m_eps)*t.m_eps+c.ulp(r+h),s.m_eps=(Math.abs(e)+.5*o*t.m_eps)*t.m_eps+c.ulp(o+h)}negate(){return this.clone().negateThis()}negateThis(){return this.m_value=-this.m_value,this}setAbs(){return this.m_value=Math.abs(this.m_value),this}isInInterval(t){return a.construct(this.m_value-this.m_eps,this.m_value+this.m_eps).isIntersecting(t)}eq(t){return Math.abs(this.m_value-t.m_value)<=this.m_eps+t.m_eps}ne(t){return!this.eq(t)}gt(t){return this.m_value-t.m_value>this.m_eps+t.m_eps}lt(t){return t.m_value-this.m_value>this.m_eps+t.m_eps}ge(t){return!this.lt(t)}le(t){return!this.gt(t)}tolEQ(t,s){return Math.abs(this.m_value-t.m_value)<=s||this.eq(t)}tolNE(t,s){return!this.tolEQ(t,s)}tolGT(t,s){return this.m_value-t.m_value>s&&this.gt(t)}tolLT(t,s){return t.m_value-this.m_value>s&&this.lt(t)}tolGE(t,s){return!this.tolLT(t,s)}tolLE(t,s){return!this.tolGT(t,s)}isZero(){return Math.abs(this.m_value)<=this.m_eps}isFuzzyZero(){return this.isZero()&&0!==this.m_eps}tolIsZero(t){return Math.abs(this.m_value)<=Math.max(this.m_eps,t)}setPi(){this.setE(d)}setEuler(){this.set(2.718281828459045,f())}static size(){return 1}}function m(t,s){const i=Ot(t),e=Ot(s),n=53-u(i),r=53-u(e);return(n>=0?n:0)+(r>=0?r:0)<=52}function y(t,s){const i=t+s;return i-t===s&&i-s===t}function x(t,s){const i=t-s;return t-i===s&&s+i===t}function f(){return _s()}c.dimensions=1;const d=new c(Math.PI,.5*f()),b=new c(0,0),v=new c(1,0),_=new c(4,0);function w(t,s,i){return t.addE(s.subE(t).mulE(i))}function N(t,s,i){return s.subE(s.subE(t).mulE(v.subE(i)))}function p(t){let s;if(0===t)s=1;else if(Math.abs(t)>.01)s=function(t){return Math.atanh(t)}(t)/t;else{let i;const e=-36.841361487904734;s=0;const n=t*t;for(let t=2*Math.trunc(e/Math.log(n)+2.5)-1;t>1;t-=2)i=1/t,s=(s+i)*n;s+=1}return s}function M(t){const s=Math.PI*Math.PI/6;let i;if(1===t)i=s;else if(t>1)i=s;else if(0===t)i=t;else if(t<0){const s=1+(t=Math.abs(t)),e=Math.log(s);i=e*e/-2-M(t/s)}else if(t>.5){const e=1-t,n=Math.log(t)*Math.log(e);i=s-M(e)-n}else{i=0;const s=1+Math.trunc(-16*Math.log(10)/Math.log(t)+1.5);let e=s;for(let n=s;n>0;n--,e-=1)i*=t,i+=1/(e*e);i*=t}return i}function g(t,s){const i=s*t;if(Math.abs(s)<.1){let s=0;for(let t=60;t>=1;t--)s*=i,s+=1/t/t;return s*=t,s}return M(i)/s}function C(t,s){return t<s?Dt(t,s):Dt(s,t)}function T(t,s){const i=Math.abs(t);return s>=0?i:-i}function R(t){return Math.round(t)}function E(t,s,i,e,n){n[0]=s[0]+(i[0]-s[0])*e,n[1]=s[1]+(i[1]-s[1])*e,3===t&&(n[2]=s[2]+(i[2]-s[2])*e)}function I(t,s,i,e,n){n[0]=i[0]-(i[0]-s[0])*(1-e),n[1]=i[1]-(i[1]-s[1])*(1-e),3===t&&(n[2]=i[2]-(i[2]-s[2])*(1-e))}function P(t,s,i,e,n){e<=.5?E(t,s,i,e,n):I(t,s,i,e,n)}function D(t,s,i,e,n){n[0]=s[0].addE(i[0].subE(s[0]).mulE(e)),n[1]=s[1].addE(i[1].subE(s[1]).mulE(e))}function A(t,s,i,e,n){n[0]=i[0].subE(i[0].subE(s[0]).mulE(v.subE(e))),n[1]=i[1].subE(i[1].subE(s[1]).mulE(v.subE(e)))}function q(t,s,i){let e;return e=i<=.5?t+(s-t)*i:s-(s-t)*(1-i),e}function z(t,s,i){return t+(s-t)*i}function S(t,s,i){return s-(s-t)*(1-i)}function Z(t,s,i,e){i<=.5?(e.x=t.x+(s.x-t.x)*i,e.y=t.y+(s.y-t.y)*i):(e.x=s.x-(s.x-t.x)*(1-i),e.y=s.y-(s.y-t.y)*(1-i))}function F(t,s,i,e){i<=.5?(e.x=t.x+(s.x-t.x)*i,e.y=t.y+(s.y-t.y)*i,e.z=t.z+(s.z-t.z)*i):(e.x=s.x-(s.x-t.x)*(1-i),e.y=s.y-(s.y-t.y)*(1-i),e.z=s.z-(s.z-t.z)*(1-i))}function k(t){return t*t}function B(t){return t*t*t}function L(t){return 1/Math.sqrt(t)}function G(t){return t<0?-1:t>0?1:0}function O(t,s,i,e){const n=[0],r=[0],o=[0];return tt($(t,i,n),$(s,e,r),o)+(n[0]+r[0]+o[0])}const U=[0],Q=[0];function V(t,s,i){return function(t,s,i,e){const n=tt(t,s,J),r=tt(n,i,K);return tt(r,J[0]+K[0],e)}($(t,s,U),i,U[0],Q)}const j=[0],W=[0],Y=[0],X=[0];function $(t,s,i){const e=t*s;return H(t,j,W),H(s,Y,X),i[0]=W[0]*X[0]-(e-j[0]*Y[0]-W[0]*Y[0]-j[0]*X[0]),e}function H(t,s,i){const e=134217729*t;s[0]=e-(e-t),i[0]=t-s[0]}const J=[0],K=[0];function tt(t,s,i){const e=t+s;return Math.abs(t)>Math.abs(s)?i[0]=t-e+s:i[0]=s-e+t,e}function st(t,s){return t%s}function it(t){const s=1-t;if(0===s)return 1;let i;if(s<=.01){const t=s,e=Math.log(t);i=1+t*(.4431471805599453-.25*e+t*(.05680519270997949-.09375*e+t*(.02183137044373718-.05859375*e+t*(.011544521417308362-.042724609375*e+t*(.00714200031339596-.0336456298828125*e+t*(.004854743337164948-.027757644653320312*e+t*(.003514687963781376-.023627042770385742*e)))))))}else{if(t<.016){const s=t,i=.25,e=.046875,n=.01953125,r=.01068115234375,o=.0067291259765625,h=.004626274108886719,u=.0033752918243408203,a=.0025710230693221092;return Ts()*(1-s*(i+s*(e+s*(n+s*(r+s*(o+s*(h+s*(u+s*a))))))))}i=rt(0,s,1)-t*ot(0,s,1)/3}return Ns(i,1,Ts())}function et(t,s,i=Number.NaN){if((0,e.g)(s>=0&&s<=1),0===s)return t;let n=1,r=t;if(r<0&&(r=-r,n=-1),1===s){const t=Math.round(r/gs()),s=r-t*gs();return n*(2*t+Math.sin(s))}const o=Ts(),h=Math.floor(r/o);1&h?r=(h+1)*o-r:r-=h*o;const u=Math.sin(r),a=Number.isNaN(i)?it(s):i;let l;if(1===u)l=a+Math.sqrt(1-s)*(r-o);else{const t=r*r;if(.01424*Math.pow(t,4)<=2*_s())l=r*(1+t*s*(-1/6+t*((4-3*s)/120-(16+(45*s-60)*s)/5040*t)));else if(s<=.01){const t=Math.sin(2*r),i=Math.sin(4*r),e=Math.sin(6*r),n=Math.sin(8*r),o=Math.sin(10*r);l=r+s*((2*-r+t)/8+s*((-3*r+2*t-.25*i)/64+s*((-20*r+15*t-3*i+e/3)/1024+s*(5*(-140*r+112*t-28*i+16/3*e-.5*n)/65536+7*s*((-63*r+52.5*t-15*i+3.75*e-.625*n+.05*o)/65536+s*(-693*r+594*t-185.625*i+1.375*e-12.375*n+1.8*o-.125*Math.sin(12*r))/1048576)))))}else{const t=u*u,i=Math.cos(r),e=i*i,n=ht(u,i,s);l=u*(rt(e,n,1)-s*t*ot(e,n,1)/3)}}return 1&h?l=a*(h+1)-l:l+=a*h,n*l}function nt(t,s,i=Number.NaN){if(0===t)return 0;let e=1,n=t;t<0&&(n=-n,e=-1);const r=Number.isNaN(i)?it(s):i,o=Math.floor(n/r);1&o?n=(o+1)*r-n:n-=o*r;let h=n<=0?0:n>=r?Ts():function(t,s,i){if(0===s)return t;if(1===s)return Math.asin(t);let e=0,n=!0;if(t<.2){const i=t*t,r=t*(1+i*s*(1/6+i*((13*s-4)/120+(16-284*s+493*s*s)/5040*i))),o=Math.abs(s*(4944*s-64-31224*s*s+37369*s*s*s)/362880*Math.pow(t,9));if(o<Math.abs(r)*_s())return r;e=r,n=o>.1*r}if(n){const n=1-s,r=1-t/i,o=Math.sqrt(r*r+n*n),h=Math.atan2(n,t+_s());e=Ts()+Math.sqrt(o)*(h-Ts())}let r=0;for(let n=0;n<7;n++){r=et(e,s,i);const o=ht(Math.sin(e),Math.cos(e),s);if(e-=(r-t)/Math.sqrt(o),n>0&&Math.abs(r-t)<=4*_s()*t)break}return e}(n,s,r);return 1&o?h=Ts()*(o+1)-h:h+=Ts()*o,e*h}function rt(t,s,i){(0,e.g)((0!==t?1:0)+(0!==s?1:0)+1>1);let n=t,r=s,o=i;for(;;){const t=Math.sqrt(n*r)+Math.sqrt(r*o)+Math.sqrt(o*n);n=.25*(n+t),r=.25*(r+t),o=.25*(o+t);const s=(n+r+o)/3,i=(s-n)/s,e=(s-r)/s,h=(s-o)/s;if(Math.abs(i)<=.0024&&Math.abs(e)<=.0024&&Math.abs(h)<=.0024){const t=i*e-h*h,n=i*e*h;return(1+(1/24*t-.1-3/44*n-5*t*t/208+t*n/16)*t+(1/14+3*n/104)*n)/Math.sqrt(s)}}}function ot(t,s,i){(0,e.g)(0!==t||0!==s);let r=t,o=s,h=i;const u=new n(0);let a=1;for(;;){const t=.2*(r+o+3*h),s=(t-r)/t,i=(t-o)/t,e=(t-h)/t;if(Math.abs(s)<=.0015&&Math.abs(i)<=.0015&&Math.abs(e)<=.0015){const n=s*i,r=e*e,o=n-r,h=n-6*r,l=h+o+o,c=3/26,m=h*(9/22*.25*h-.21428571428571427-1.5*c*e*l),y=e*(1/6*l+e*(-.4090909090909091*o+e*c*n));return 3*u.getResult()+a*(1+m+y)/(t*Math.sqrt(t))}const n=Math.sqrt(r),l=Math.sqrt(o),c=Math.sqrt(h),m=n*(l+c)+l*c;u.add(a/(c*(h+m))),a*=.25,r=.25*(r+m),o=.25*(o+m),h=.25*(h+m)}}function ht(t,s,i){return t<.999?1-i*k(t):1-i+i*k(s)}function ut(t,s,i,n,r){return 0===t?0===n?s:1===n?i:r:1===t?0===n?s:1===n?i:q(s,i,n):(2===t&&(0,e.b)("angular interpolation"),void(0,e.b)(""))}function at(t,s,i,n,r,o,h,u){if(0===t)for(let t=0;t<o;++t)n[t+r]=0===h?s[t]:1===h?i[t]:u;else if(1===t)if(0===h)lt(n,s,r,0,o);else if(1===h)lt(n,i,r,0,o);else for(let t=0;t<o;++t)n[t+r]=q(s[t],i[t],h);else if(2===t)if(0===h)lt(n,s,r,0,o);else if(1===h)lt(n,i,r,0,o);else{let t=0;for(let e=0,u=r;e<o;++e,++u)n[u]=q(s[e],i[e],h),t+=n[u]*n[u];if(t>0){t=Math.sqrt(t);for(let s=r;s<r+o;++s)n[s]/=t}else{for(let t=r;t<r+o;++t)n[t]=0;n[r]=1}}else(0,e.b)("")}function lt(t,s,i,e,n){if(0===n)return;let r=0,o=i,h=e;for(;r++<n;)t[o++]=s[h++]}function ct(t,s,i){let e=0;for(let n=0;!e&&n<i;++n)e=t[n]-s[n];return e}function mt(t,s){return t}function yt(t){t.sort(((t,s)=>t<s?-1:t>s?1:0))}function xt(t,s){const i=t.slice(0,s);yt(i),lt(t,i,0,0,s)}function ft(t,s,i,e){const n=t.slice(s,s+i);n.sort(e),lt(t,n,s,0,i)}function dt(t,s){return t<s?-1:t>s?1:0}function bt(t,s,i,e){return t<i?-1:t>i?1:s<e?-1:s>e?1:0}function vt(t,s){if(t.length<2)return t.length;let i=0;for(let e=1;e<t.length;++e)s(t[e],t[i])||(i++,t[e]=mt(t[i],t[i]=t[e]));return 1+i}function _t(t,s){t[s]=t.at(-1),t.pop()}function wt(t,s=!1){return{[Symbol.dispose](){this.bForget||t()},bForget:s}}function Nt(t,s,i){t.length=s,t.fill(i)}function pt(t,s,i){t.length=i;for(let e=0;e<i;++e)t[e]=new s}function Mt(t,s){const i=new Array(s);for(let e=0;e<s;++e)i[e]=new t;return i}function gt(t,s,i){for(let e=0;e<i;++e)t[e].assign(s[e]);return i}function Ct(t,s){const i=t.slice(0,s);for(let t=0;t<s;++t)i[t]=i[t].clone();return i}function Tt(t){return Array.from({length:t},(()=>null))}function Rt(t,s){return Array.from({length:s},(()=>t()))}function Et(t,s){const i=new Array(t);return i.fill(s),i}function It(t,s){return s in t&&1===Object.getOwnPropertyNames(t).length}class Pt{constructor(...t){this.m_elts=t}get length(){return this.m_elts.length}at(t){return this.m_elts[t]}[Symbol.dispose](){for(const t of this.m_elts)t[Symbol.dispose]()}}function Dt(t,s){return{first:t,second:s}}const At=Math.PI,qt=2*Math.PI,zt=.5*Math.PI;class St{constructor(t,s){this.m_cr=t,this.m_cc=s,this.m_v=Et(t*s,0)}get(t,s){return this.m_v[t*this.m_cc+s]}set(t,s,i){this.m_v[t*this.m_cc+s]=i}inc(t,s){return++this.m_v[t*this.m_cc+s]}}const Zt=new ArrayBuffer(8),Ft=new Float64Array(Zt),kt=new BigUint64Array(Zt),Bt=0x0fffffffffffffn;function Lt(){return Number.EPSILON*fs}function Gt(t){return Ft[0]=t,kt[0]}function Ot(t){return Gt(t)&Bt}function Ut(t){return Number((9218868437227405312n&Gt(t))>>52n)}function Qt(t){if(0n===t)return-1n;if(1n===t||-1n===t)return 0n;t<0n&&(t=-t);let s=0n,i=512n,e=1n<<s+i;for(;t>=e;)s+=i,i<<=1n,e<<=i;let n=s;i>>=1n;let r=n+i;for(;i>0n;)t<1n<<r||(n=r),i>>=1n,r=n+i;return n}function Vt(t,s){return t===s||Number.isNaN(t)&&Number.isNaN(s)}function jt(t,s,i){return t===s||Math.abs(t-s)<=i||Number.isNaN(t)&&Number.isNaN(s)}function Wt(t,s){return t<s?-1:t>s?1:0}function Yt(t,s){if(t<s)return-1;if(t>s)return 1;if(t===s)return 0;{const i=Number.isNaN(t),e=Number.isNaN(s);return i<e?-1:i>e?1:0}}function Xt(){return 2147483647}function $t(){return 32767}function Ht(){return 2147483647}function Jt(){return-2147483648}const Kt=2147483647,ts=BigInt(Kt),ss=2166136261,is=16777619,es=14695981039346656037n,ns=1099511628211n;function rs(t){let s=ss;for(let i=0,e=t.length;i<e;++i)s=(s^t.charCodeAt(i))*is;return s&Kt}function os(t,s){return s+2654435769+(t<<6)+(t>>2)&Kt}function hs(t,s){return os(t,cs(s))}function us(t){return os(3735928559,t)}function as(t,s){return os(t,us(s))}function ls(t){return function(t){let s=ss,i=t;return s=(s^255&i)*is,i>>=8,s=(s^255&i)*is,i>>=8,s=(s^255&i)*is,i>>=8,s=(s^255&i)*is,s&Kt}(t)}function cs(t){return Number(function(t){let s=es,i=t;return s=(s^0xffn&i)*ns,i>>=8n,s=(s^0xffn&i)*ns,i>>=8n,s=(s^0xffn&i)*ns,i>>=8n,s=(s^0xffn&i)*ns,i>>=8n,s=(s^0xffn&i)*ns,i>>=8n,s=(s^0xffn&i)*ns,i>>=8n,s=(s^0xffn&i)*ns,s&ts}(t))}function ms(t){return cs(Gt(function(t){return Is(t)}(t)))}function ys(t){return function(t){return 1103515245*t+12345&2147483647}(t)}const xs=100,fs=100;function ds(){return Number.EPSILON*xs}function bs(){return.38196601125010515}function vs(){return 1.4142135623730951}function _s(){return Number.EPSILON}function ws(t,s,i){return t===s||t===i}function Ns(t,s,i){return t>=s?t<=i?t:i:s}function ps(t,s,i){const e=t[0];if(e>=s){if(e<=i)return!1;t[0]=i}else t[0]=s;return!0}function Ms(t,s){return t>=s?s:t<-s?-s:t}function gs(){return At}function Cs(){return qt}function Ts(){return zt}const Rs=3*Ts();function Es(){return Rs}function Is(t){return t+0}function Ps(t){return{v:t}}class Ds{constructor(){this.m_rn=Ps(0n),this.m_rd=Ps(1n),this.m_bNaN=!1,this.m_bNormalized=!1,this.m_power=0,this.m_sign=0}static constructAssign(t,s){const i=t.clone();return void 0!==s&&i.limitPrecisionThis(s),i}static constructDouble(t){return(new Ds).setDouble(t)}static constructInt64(t){return(new Ds).setInt64(t)}static constructRational(t,s){return(new Ds).setRational(t,s)}static constructInt32(t){return this.constructInt64(BigInt(Math.trunc(t)))}[Symbol.toPrimitive](t){return this}compare(t){return this.lt(t)?-1:this.gt(t)?1:0}assignCopy(t){return this.setThis(t)}abs(){return this.clone().absThis()}absThis(){return this.isNAN()||(this.m_sign*=this.m_sign),this}clone(){return(new Ds).setThis(this)}setThis(t){return this.m_bNaN=t.m_bNaN,this.m_bNormalized=t.m_bNormalized,this.m_rn.v=t.m_rn.v,this.m_rd.v=t.m_rd.v,this.m_power=t.m_power,this.m_sign=t.m_sign,this}setZero(){return this.m_rn.v=0n,this.m_rd.v=1n,this.m_bNaN=!1,this.m_power=0,this.m_bNormalized=!0,this.m_sign=0,this}setDouble(t){if(this.setZero(),0===t)return this;if(Number.isInteger(t)&&Math.abs(t)<2147483647)return this.setInt32(t);const s=Gt(t),i=(s&Ds.s_em)>>52n,n=!!(s&Ds.s_sm),r=s&Ds.s_fm;if(i===Ds.s_emax)return r?(this.m_rn.v=this.m_rd.v=0n,this.m_bNaN=!0,this):(this.m_rn.v=n?-1n:1n,this.m_rd.v=0n,this);0n===i&&(0,e.b)("denormalized numbers not yet implemented");const o=i-1023n,h=o>=0n?o:0n,u=o<0n?-o:0n;return this.m_rn.v=(1n<<52n|r)<<h,this.m_rd.v=1n<<52n+u,this.m_sign=n?-1:1,this.m_bNormalized=!1,this.normalizeThis()}setInt64(t){return 0n===t?this.setZero():(this.m_bNaN=!1,this.m_sign=t>0n?1:-1,this.m_rn.v=t>0n?t:-t,this.m_rd.v=1n,this.m_power=0,this.m_bNormalized=!1,this.normalizeThis())}setRational(t,s){return 0n===t?0n===s?this.setNAN():this.setZero():0n===s?t>0n?this.setPositiveInf():this.setNegativeInf():(this.m_sign=(t>0n?1:-1)*(s>0n?1:-1),this.m_rn.v=t>0n?t:-t,this.m_rd.v=s>0n?s:-s,this.m_power=0,this.m_bNormalized=!1,this.normalizeThis())}setInt32(t){return this.setInt64(BigInt(Math.trunc(t)))}getDouble(){return this.convertToDouble()}toDouble(){return this.convertToDouble()}value(){return this.convertToDouble()}isNAN(){return this.m_bNaN}isPositiveInf(){return!this.isNAN()&&0n===this.m_rd.v&&1===this.m_sign}isNegativeInf(){return!this.isNAN()&&0n===this.m_rd.v&&-1===this.m_sign}isFinite(){return!this.isNAN()&&0n!==this.m_rd.v}setNAN(){return this.m_bNaN=!0,this.m_rn.v=0n,this.m_rd.v=0n,this.m_power=0,this.m_bNormalized=!0,this}setPositiveInf(){return this.m_rn.v=1n,this.m_rd.v=0n,this.m_bNaN=!1,this.m_bNormalized=!0,this.m_sign=1,this.m_power=0,this}setNegativeInf(){return this.m_rn.v=1n,this.m_rd.v=0n,this.m_bNaN=!1,this.m_bNormalized=!0,this.m_sign=-1,this.m_power=0,this}subThis(t){if(t.isNAN()&&this.setNAN(),this.isPositiveInf()&&t.isPositiveInf())this.setNAN();else{if(this.isPositiveInf()&&t.isNegativeInf())return this.setPositiveInf(),this;if(this.isNegativeInf()&&t.isNegativeInf())this.setNAN();else if(this.isNegativeInf()&&t.isPositiveInf())return this.setNegativeInf(),this}return this.isNAN()?this:this.opPlusMinus(t,!1)}thisSubAbs(t){return(0,e.g)(0),this}mulThis(t){return t.isNAN()&&this.setNAN(),this.isNAN()?this:(this.m_sign*=t.m_sign,0===this.m_sign?this.setZero():(this.m_rn.v*=t.m_rn.v,this.m_rd.v*=t.m_rd.v,this.m_power+=t.m_power,this.m_bNormalized=!1,this.normalizeThis(),this))}mulDoubleThis(t){return this.mulThis(Ds.constructDouble(t))}thisMulInt64(t){return(0,e.g)(0),this}thisMulInt32(t){return(0,e.g)(0),this}divThis(t){return this.mulThis(t.clone().invertThis())}divDoubleThis(t){return this.divThis(Ds.constructDouble(t))}addDoubleThis(t){return this.addThis(Ds.constructDouble(t))}subDoubleThis(t){return this.subThis(Ds.constructDouble(t))}mul(t){return this.clone().mulThis(t)}mulBigIntThis(t){return this.mulThis(Ds.constructInt64(t))}mulDouble(t){return this.clone().mulThis(Ds.constructDouble(t))}div(t){return this.clone().divThis(t)}divDouble(t){return this.clone().divDoubleThis(t)}add(t){return this.clone().addThis(t)}fmSubThis(t,s){return this.subThis(t.clone().mulThis(s))}fmAddThis(t,s){return this.addThis(t.clone().mulThis(s))}addThis(t){if(t.isNAN()&&this.setNAN(),this.isPositiveInf()&&t.isPositiveInf())return this.setPositiveInf(),this;if(this.isPositiveInf()&&t.isNegativeInf())this.setNAN();else{if(this.isNegativeInf()&&t.isNegativeInf())return this.setNegativeInf(),this;this.isNegativeInf()&&t.isPositiveInf()&&this.setNAN()}return this.isNAN()?this:this.opPlusMinus(t,!0)}addDouble(t){return this.clone().addThis(Ds.constructDouble(t))}sub(t){return this.clone().subThis(t)}subDouble(t){return this.clone().subThis(Ds.constructDouble(t))}isZero(){return 0===this.m_sign}equals(t){return this.clone().subThis(t).isZero()}lt(t){return!this.isNAN()&&!t.isNAN()&&!(this.isPositiveInf()&&t.isPositiveInf()||this.isNegativeInf()&&t.isNegativeInf())&&!this.isPositiveInf()&&(!!t.isPositiveInf()||this.clone().sub(t).LZ())}absLessAbs(t){return this.abs().lt(t.abs())}gt(t){return this.clone().sub(t).GZ()}lte(t){return this.sub(t).LEZ()}gte(t){return this.sub(t).GEZ()}normalizeThis(){if(this.m_bNormalized)return this;if(0n===this.m_rn.v)return this.setZero();let t=0,s=0xffffffffn;for(;0n===(this.m_rn.v&s)&&s<=this.m_rn.v;)s<<=32n,t+=32;s&=this.m_rn.v,s>>=BigInt(t),t+=h(BigInt.asUintN(32,s))-1;let i=0;for(s=0xffffffffn;0n===(this.m_rd.v&s)&&s<=this.m_rd.v;)s<<=32n,i+=32;return s&=this.m_rd.v,s>>=BigInt(i),i+=h(BigInt.asUintN(32,s))-1,this.m_rn.v>>=BigInt(t),this.m_rd.v>>=BigInt(i),this.m_power+=t-i,this.m_rn.v>1n&&this.m_rd.v>1n&&(this.m_rn.v%this.m_rd.v===0n?(this.m_rn.v/=this.m_rd.v,this.m_rd.v=1n):this.m_rd.v%this.m_rn.v===0n&&(this.m_rd.v/=this.m_rn.v,this.m_rn.v=1n)),this.m_bNormalized=!0,this}negateThis(){return this.isNAN()||(this.m_sign*=-1),this}negate(){return this.clone().negateThis()}invertThis(){return this.isNAN()?this:this.isPositiveInf()||this.isNegativeInf()?(this.setZero(),this):0n===this.m_rn.v?(this.setPositiveInf(),this):(this.m_rd=mt(this.m_rn,this.m_rn=this.m_rd),this.m_power=-this.m_power,this)}limitPrecisionThis(t){if(0===t)return this;if(this.isZero())return this.setZero();if(!this.isFinite())return this;this.normalizeThis();let s=Number(Qt(this.m_rn.v));if(s>t){const i=s-t;this.m_rn.v>>=BigInt(s-t),this.m_power+=i}if(s=Number(Qt(this.m_rd.v)),s>t){const i=s-t;this.m_rd.v>>=BigInt(s-t),this.m_power-=i}return this}hiBitIndex(){return Math.max(Number(Qt(this.m_rn.v)),Number(Qt(this.m_rd.v)))}ldexp(t){return this.clone().ldexpThis(t)}ldexpThis(t){return t&&(this.m_bNormalized=!1,this.m_power+=t,this.normalizeThis()),this}LZ(){return!this.isNAN()&&-1===this.m_sign}GZ(){return!this.isNAN()&&1===this.m_sign}LEZ(){return!this.isNAN()&&this.m_sign<=0}GEZ(){return!this.isNAN()&&this.m_sign>=0}toString(){return this.toDouble().toString()}sqr(){return this.clone().sqrThis()}sqrThis(){return this.mulThis(this.clone())}static sqrt(t,s){if(t.m_sign<0n&&(0,e.n)("MP_value: sqrt(-1)"),t.isZero())return t.clone();let i=52,n=2220446049250313e-31;for(;i<s;)2*i<=s?(n*=n,i*=2):(n*=2220446049250313e-31,i+=52);i+=52;const r=Qt(t.m_rn.v),o=Qt(t.m_rd.v);let h,u=t.m_power+Number(r-o);const a=new Ds;Math.abs(u)>200?(1&Math.abs(u)&&(u+=1),h=Ds.constructAssign(t,53).ldexpThis(-u).value(),a.setThis(t).ldexpThis(-u),(0,e.g)(Number.isFinite(h))):(a.setThis(t),h=a.value(),(0,e.g)(Number.isFinite(h)),u=0),h=Math.sqrt(h);const l=Ds.constructDouble(h),c=Ds.constructDouble(n);c.mulThis(l).ldexpThis(1);const m=n*h*2,y=l.clone(),x=new Ds;let f;for(let t=0;t<10;++t){y.mulThis(l),x.setThis(a).subThis(y).absThis();let t=x.value();if(f=1,t<.9)for(;t>m;)t*=t,++f;else f=4;if(x.lte(c))break;for(let t=0;t<f;t++)y.setThis(l).divThis(a).invertThis().addThis(l).ldexpThis(-1).limitPrecisionThis(i),l.setThis(y)}return l.ldexpThis(u/2)}static cubicRoot(t,s){if(t.isZero())return t.clone();let i=52,e=2220446049250313e-31;for(;i<s;)2*i<=s?(e*=e,i*=2):(e*=2220446049250313e-31,i+=52);i+=52;const n=Math.pow(Math.abs(t.value()),1/3),r=Ds.constructDouble(n),o=r.clone();o.sqrThis().mulDoubleThis(3).mulDoubleThis(e),o.limitPrecisionThis(32),t.LZ()&&r.negateThis();for(let s=0;s<10;++s){const s=r.clone();s.sqrThis().mulThis(r);const e=s.clone();if(e.subThis(t),e.absThis().limitPrecisionThis(32),e.lte(o))break;e.setThis(t),e.ldexpThis(1),e.addThis(s);const n=s.clone();n.ldexpThis(1),n.addThis(t),e.divThis(n),r.mulThis(e),r.limitPrecisionThis(i)}return r}isInTheRangeOfDouble(){return(0,e.g)(0),!1}sign(){return this.m_sign}cosAndSin(t,s){(0,e.g)(0)}static nan(){return(0,e.g)(0),new Ds}convertToDouble(){if(this.m_bNaN)return Number.NaN;if(this.isZero())return 0;if(0n===this.m_rd.v)return 1===this.m_sign?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;const t=-1===this.m_sign,s=this.m_rn.v<<(this.m_power>=0?BigInt(this.m_power):0n);let i=this.m_rd.v<<(this.m_power<0?BigInt(-this.m_power):0n);const e=s/i;let n=Number(e);if(BigInt(n)!==e)return t?-n:n;let r=s-e*i;if(r){let t=Qt(i)-1023n;t>0n&&(i>>=t,r<<=52n,r>>=t);let s=Number(r);Number.isFinite(s)||(r>>=52n,s=Number(r),t=0n),t>0n&&(s/=Math.pow(2,52)),n+=s/Number(i)}return t?-n:n}signVal(){return 1===this.m_sign?1n:-1===this.m_sign?-1n:0n}opPlusMinus(t,s){const i=Math.min(this.m_power,t.m_power);let e,n;this.m_power>i?(e=BigInt(this.m_power-i),n=0n):(e=0n,n=BigInt(t.m_power-i));const r=this.signVal()*this.m_rn.v*t.m_rd.v<<e,o=t.signVal()*t.m_rn.v*this.m_rd.v<<n;return this.m_rn.v=s?r+o:r-o,this.m_rd.v*=t.m_rd.v,this.m_power=i,this.m_sign=1,this.m_rn.v<0n&&(this.m_sign=-1,this.m_rn.v=-this.m_rn.v),this.m_bNormalized=!1,this.normalizeThis(),this}}Ds.s_sm=0x8000000000000000n,Ds.s_em=0x7ff0000000000000n,Ds.s_fm=0x000fffffffffffffn,Ds.s_emax=0x7ffn;const As=Ds.constructInt32(1),qs=Ds.constructInt32(0);function zs(t,s){let i=Ut(t);const e=Ut(s);return i===e?(i-=53-function(t,s){return function(t){let s=0;return 0xffffffff00000000n&t&&(s=32,t>>=32n),s+function(t){let s=0;return 4294901760n&t&&(s+=16,t>>=16n),65280n&t&&(s+=8,t>>=8n),240n&t&&(s+=4,t>>=4n),s+o[Number(BigInt.asUintN(4,t))]+1}(t)}(t^s)}(Ot(t),Ot(s)),i):i>e?i:e}function Ss(t,s){for(let i=0,e=0,n=t.length;i<n;i+=2,e++)s[e].x=t[i],s[e].y=t[i+1]}function Zs(t){const s=new Float64Array(2*t.length);for(let i=0,e=t.length;i<e;++i){const e=i<<1;s[e]=t[i].x,s[e+1]=t[i].y}return s}function Fs(t){const s=Mt(ks,t.length);for(let i=0,e=t.length;i<e;++i)s[i].setCoords(t[i][0],t[i][1]);return s}class ks{static construct(t,s){return new ks(t,s)}constructor(t,s){void 0!==t?(this.x=t,this.y=s):this.x=this.y=Number.NaN}clone(){return new ks(this.x,this.y)}assign(t){this.setCoordsPoint2D(t)}setCoords(t,s){return this.x=t,this.y=s,this}setCoordsPoint2D(t){this.x=t.x,this.y=t.y}isEqualPoint2D(t,s){return void 0!==s?Math.abs(this.x-t.x)<=s&&Math.abs(this.y-t.y)<=s:this.x===t.x&&this.y===t.y}isEqual(t,s,i){return void 0!==i?Math.abs(this.x-t)<=i&&Math.abs(this.y-s)<=i:this.x===t&&this.y===s}equalsPoint2D(t,s){return this.isEqualPoint2D(t,s)}setSub(t,s){this.x=t.x-s.x,this.y=t.y-s.y}addThis(t){return this.x+=t.x,this.y+=t.y,this}setAdd(t,s){return this.x=t.x+s.x,this.y=t.y+s.y,this}absoluteOther(t){}absolute(){return(0,e.g)(0),this}setNegate(){this.x=-this.x,this.y=-this.y}setNegateOther(t){this.x=-t.x,this.y=-t.y}interpolateThis(t,s){}interpolate(t,s,i){(0,e.g)(0)}scaleAddThis(t,s){this.x=this.x*t+s.x,this.y=this.y*t+s.y}setScaleAdd(t,s,i){this.x=s.x*t+i.x,this.y=s.y*t+i.y}scaleOther(t,s){(0,e.g)(0)}scale(t){this.x*=t,this.y*=t}compare(t){return this.y<t.y?-1:this.y>t.y?1:this.x<t.x?-1:this.x>t.x?1:0}compareX(t){return this.x<t.x?-1:this.x>t.x?1:this.y<t.y?-1:this.y>t.y?1:0}normalizeOther(t){(0,e.g)(0)}normalize(){const t=this.length();return t?(this.x/=t,this.y/=t):(this.x=1,this.y=0),this}getUnitVector(){return this.clone().normalize()}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}sqrLength(){return this.x*this.x+this.y*this.y}static averageFast(t,s){return(0,e.g)(0),{}}static average(t,s){const i=new ks;if(0===s)return i.setNAN(),i;if(1===s)return i.assign(t[0]),i;const e=new n(t[0].x),r=new n(t[0].y);for(let i=1;i<s;i++)e.add(t[i].x),r.add(t[i].y),255&i||(e.normalize(),r.normalize());return i.x=e.getResult()/s,i.y=r.getResult()/s,i}static calculateLength(t,s){const i=new n(0);for(let e=1;e<s;e++)i.add(ks.distance(t[e],t[e-1]));return i.getResult()}offset(t,s){const i=ks.distance(t,s),e=ks.construct(this.x,this.y);if(0===i)return ks.distance(e,t);const n=s.clone();return n.subThis(t),e.subThis(t),e.crossProduct(n)/i}side(t,s){return t.equals(s)?this.equals(t)?0:1:ks.orientationRobust(s,t,this)}static sqrDistance(t,s){const i=t.x-s.x,e=t.y-s.y;return i*i+e*e}static sqrDistanceCoords(t,s,i,e){const n=i-t,r=e-s;return n*n+r*r}static distance(t,s){return Math.sqrt(ks.sqrDistance(t,s))}dotProduct(t){return this.x*t.x+this.y*t.y}dotProductAbs(t){return Math.abs(this.x*t.x)+Math.abs(this.y*t.y)}crossProduct(t){return this.x*t.y-this.y*t.x}crossProductAbs(t){return(0,e.g)(0),0}rotateDirect(t,s){const i=this.x*t-this.y*s,e=this.x*s+this.y*t;this.x=i,this.y=e}rotateReverse(t,s){const i=this.x*t+this.y*s,e=-this.x*s+this.y*t;this.x=i,this.y=e}leftPerpendicularThis(){const t=this.x;this.x=-this.y,this.y=t}leftPerpendicularOther(t){const s=t.x;this.x=-t.y,this.y=s}rightPerpendicularThis(){const t=this.x;this.x=this.y,this.y=-t}rightPerpendicularOther(t){const s=t.x;this.x=t.y,this.y=-s}equals(t){return this.x===t.x&&this.y===t.y}notequals(t){return this.x!==t.x||this.y!==t.y}not(){return!this.x&&!this.y}gt(t){return this.y>t.y||this.y===t.y&&this.x>t.x}gte(t){return!this.lt(t)}lt(t){return this.y<t.y||this.y===t.y&&this.x<t.x}lte(t){return!this.gt(t)}subThis(t){return this.x-=t.x,this.y-=t.y,this}divThis(t){return this.x/=t,this.y/=t,this}add(t){return new ks(this.x+t.x,this.y+t.y)}sub(t){return new ks(this.x-t.x,this.y-t.y)}negateThis(){return this.x=-this.x,this.y=-this.y,this}negate(){return new ks(-this.x,-this.y)}mul(t){return new ks(this.x*t,this.y*t)}mulThis(t){return this.x*=t,this.y*=t,this}divide(t){return new ks(this.x/t,this.y/t)}setNAN(){this.x=this.y=Number.NaN}isNAN(){return Number.isNaN(this.x)||Number.isNaN(this.y)}static getNAN(){return new ks(Number.NaN,Number.NaN)}isFinite(){return Number.isFinite(this.x)&&Number.isFinite(this.y)}isZero(){return 0===this.x&&0===this.y}norm(t){switch(t){case 0:{const t=Math.abs(this.x),s=Math.abs(this.y),i=t-s;return i>=0?t:i<=0?s:Number.NaN}case 1:return Math.abs(this.x)+Math.abs(this.y);case 2:return Math.sqrt(this.x*this.x+this.y*this.y);default:(0,e.t)("norm")}}getQuarter(){return ks.getQuarterCoords(this.x,this.y)}static getQuarterCoords(t,s){return t>0?s>=0?1:4:s>0?2:0===t?4:3}static compareVectors(t,s){const i=t.getQuarter(),e=s.getQuarter();return e===i?ks.orientationRobustImpl(ks.construct(0,0),s,t,!0):i<e?-1:1}static compareVectorsOrigin(t,s,i){const e=s.sub(t),n=i.sub(t),r=e.getQuarter(),o=n.getQuarter();return o===r?ks.orientationRobustImpl(t,i,s,!0):r<o?-1:1}static orientationRobust(t,s,i){return ks.orientationRobustImpl(t,s,i,!1)}static orientationRobustEx(t,s,i,e){if(t.equals(s)||i.equals(e))return 0;const n=s.x-t.x,r=s.y-t.y,o=e.x-i.x,h=e.y-i.y;{const t=ks.getQuarterCoords(n,r)-1,s=ks.getQuarterCoords(o,h)-1,i=ks.d[t][s];if(0!==i)return i}const u=n*h,a=r*o,l=4*_s()*(Math.abs(u)+Math.abs(a)),c=u-a;return Math.abs(c)>=l?c<0?-1:c>0?1:0:ks.orientationRobustExMp(t,s,i,e)}static orientationRobustExMp(t,s,i,e){const n=Ds.constructDouble(s.x),r=Ds.constructDouble(e.x);n.subThis(Ds.constructDouble(t.x)),r.subThis(Ds.constructDouble(i.x));const o=Ds.constructDouble(s.y),h=Ds.constructDouble(e.y);return o.subThis(Ds.constructDouble(t.y)),h.subThis(Ds.constructDouble(i.y)),n.mulThis(h),o.mulThis(r),n.subThis(o),n.LZ()?-1:n.GZ()?1:0}static orientationNonRobust(t,s,i){const e=s.sub(t).crossProduct(i.sub(t));return e<0?-1:e>0?1:0}static orientationRobustImpl(t,s,i,e){if(s.isEqualPoint2D(t)||i.isEqualPoint2D(t)||s.isEqualPoint2D(i))return 0;const n=s.x-t.x,r=s.y-t.y,o=i.x-t.x,h=i.y-t.y;if(!e){const t=ks.getQuarterCoords(n,r)-1,s=ks.getQuarterCoords(o,h)-1,i=ks.d[t][s];if(0!==i)return i}const u=(Math.abs(n)+Math.abs(r)+Math.abs(o)+Math.abs(h))*(Math.abs(s.x)+Math.abs(s.y)+Math.abs(i.x)+Math.abs(i.y))*8*f(),a=n*h-r*o;if(Math.abs(a)>u)return a<0?-1:1;if(x(s.x,t.x)&&x(i.y,t.y)&&x(s.y,t.y)&&x(i.x,t.x)&&m(n,h)&&m(r,o)){const t=n*h,s=r*o;if(x(t,s)){const i=t-s;return i<0?-1:i>0?1:0}}return ks.orientationRobustMp(t,s,i)}static orientationRobustMp(t,s,i){const e=Ds.constructDouble(s.x),n=Ds.constructDouble(i.x);{const s=Ds.constructDouble(t.x);e.subThis(s),n.subThis(s)}const r=Ds.constructDouble(i.y),o=Ds.constructDouble(s.y);{const s=Ds.constructDouble(t.y);r.subThis(s),o.subThis(s)}return e.mulThis(r),o.mulThis(n),e.subThis(o),e.LZ()?-1:e.GZ()?1:0}static inCircleRobust(t,s,i,e){const n=new c,r=new c;n.set(t.x),n.subThis(e.x),r.set(t.y),r.subThis(e.y);const o=new c,h=new c;o.set(s.x),o.subThis(e.x),h.set(s.y),h.subThis(e.y);const u=new c,a=new c;u.set(i.x),u.subThis(e.x),a.set(i.y),a.subThis(e.y);const l=n.mulE(h).subE(r.mulE(o)),m=o.mulE(a).subE(h.mulE(u)),y=n.mulE(a).subE(r.mulE(u)),x=n.mulE(n).addE(r.mulE(r)),f=o.mulE(o).addE(h.mulE(h)),d=u.mulE(u).addE(a.mulE(a)),b=x.mulE(m).subE(f.mulE(y)).addE(d.mulE(l));if(!b.isFuzzyZero()){const t=b.value();return t<0?-1:t>0?1:0}return ks.inCircleRobustMp(t,s,i,e)}static inCircleRobustMp(t,s,i,e){do{if(!x(t.x,e.x)||!x(t.y,e.y))break;if(!x(s.x,e.x)||!x(s.y,e.y))break;if(!x(i.x,e.x)||!x(i.y,e.y))break;const n=t.x-e.x,r=t.y-e.y,o=s.x-e.x,h=s.y-e.y,u=i.x-e.x,a=i.y-e.y;if(!m(n,h)||!m(r,o))break;if(!m(o,a)||!m(h,u))break;if(!m(n,a)||!m(r,u))break;if(!m(n,n)||!m(r,r))break;if(!m(o,o)||!m(h,h))break;if(!m(u,u)||!m(a,a))break;const l=n*h,c=r*o,f=o*a,d=h*u,b=n*a,v=r*u,_=n*n,w=r*r,N=o*o,p=h*h,M=u*u,g=a*a;if(!x(l,c))break;if(!x(f,d))break;if(!x(b,v))break;if(!y(_,w))break;if(!y(N,p))break;if(!y(M,g))break;const C=l-c,T=f-d,R=b-v,E=_+w,I=N+p,P=M+g;if(!m(E,T))break;if(!m(I,R))break;if(!m(P,C))break;const D=E*T,A=I*R,q=P*C;if(!x(D,A))break;const z=D-A;if(!y(z,q))break;const S=z+q;return S<0?-1:S>0?1:0}while(0);const n=Ds.constructDouble(e.x),r=Ds.constructDouble(e.y),o=Ds.constructDouble(t.x),h=Ds.constructDouble(t.y);o.subThis(n),h.subThis(r);const u=Ds.constructDouble(s.x),a=Ds.constructDouble(s.y);u.subThis(n),a.subThis(r);const l=Ds.constructDouble(i.x),c=Ds.constructDouble(i.y);l.subThis(n),c.subThis(r);const f=o.mul(a).sub(h.mul(u)),d=u.mul(c).sub(a.mul(l)),b=o.mul(c).sub(h.mul(l)),v=o.mul(o).add(h.mul(h)),_=u.mul(u).add(a.mul(a)),w=l.mul(l).add(c.mul(c)),N=v.mul(d).sub(_.mul(b)).add(w.mul(f));return N.LZ()?-1:N.GZ()?1:0}static inCircleRobustMp3Point(t,s,i){const e=Ds.constructDouble(t.x),n=Ds.constructDouble(t.y),r=Ds.constructDouble(s.x),o=Ds.constructDouble(s.y),h=Ds.constructDouble(i.x),u=Ds.constructDouble(i.y),a=h.mul(h).add(u.mul(u)).sub(h.mul(e).add(u.mul(n)).add(h.mul(r)).add(u.mul(o))).add(e.mul(r).add(n.mul(o)));return a.LZ()?-1:a.GZ()?1:0}static inCircleRobust3Point(t,s,i){const e=new c(t.x),n=new c(t.y),r=new c(s.x),o=new c(s.y),h=new c(i.x),u=new c(i.y),a=h.mulE(h).addE(u.mulE(u)).subE(h.mulE(e).addE(u.mulE(n)).addE(h.mulE(r)).addE(u.mulE(o))).addE(e.mulE(r).addE(n.mulE(o)));if(!a.isFuzzyZero()){const t=a.value();return t<0?-1:t>0?1:0}return ks.inCircleRobustMp3Point(t,s,i)}static calculateCircleCenterFromThreePoints(t,s,i){if(t.equals(i)||t.equals(s)||i.equals(s))return ks.getNAN();const e=function(t,s,i){const e=new c(s.x);e.subThis(t.x);const n=new c(s.y);n.subThis(t.y);const r=new c(i.x);r.subThis(t.x);const o=new c(i.y);o.subThis(t.y);const h=e.clone();h.mulThisE(o);let u=n.clone();if(u.mulThisE(r),h.subThisE(u),0===h.value())return ks.getNAN();h.mulThis(2);const a=e.clone();a.mulThisE(e);const l=n.clone();l.mulThisE(n);const m=a.clone();m.addThisE(l);const y=r.clone();y.mulThisE(r);const x=o.clone();x.mulThisE(o);const f=y.clone();f.addThisE(x);const d=n.clone();d.mulThisE(f),u=o.clone(),u.mulThisE(m),d.subThisE(u),d.divThisE(h);const b=e.clone();b.mulThisE(f),u=r.clone(),u.mulThisE(m),b.subThisE(u),b.divThisE(h);const v=ks.construct(t.x-d.value(),t.y+b.value()),_=t.sub(v).length(),w=s.sub(v).length(),N=i.sub(v).length(),p=1e-15*(_+Math.abs(t.x)+Math.abs(s.x)+Math.abs(i.x)+Math.abs(t.y)+Math.abs(s.y)+Math.abs(i.y));return Math.abs(_-w)<=p&&Math.abs(_-N)<=p&&d.eps()<p&&b.eps()<p?v:ks.getNAN()}(t,s,i);return e.isNAN()?function(t,s,i){const e=Ds.constructDouble(s.x);e.subDoubleThis(t.x);const n=Ds.constructDouble(s.y);n.subDoubleThis(t.y);const r=Ds.constructDouble(i.x);r.subDoubleThis(t.x);const o=Ds.constructDouble(i.y);o.subDoubleThis(t.y);const h=e.clone();h.mulThis(o);let u=n.clone();if(u.mulThis(r),h.subThis(u),h.isZero())return ks.getNAN();h.mulDoubleThis(2);const a=e.clone();a.mulThis(e);const l=n.clone();l.mulThis(n);const c=a.clone();c.addThis(l);const m=r.clone();m.mulThis(r);const y=o.clone();y.mulThis(o);const x=m.clone();x.addThis(y);const f=n.clone();f.mulThis(x),u=o.clone(),u.mulThis(c),f.subThis(u),f.divThis(h);const d=e.clone();return d.mulThis(x),u=r.clone(),u.mulThis(c),d.subThis(u),d.divThis(h),ks.construct(t.x-f.value(),t.y+d.value())}(t,s,i):e}static calculateAngle(t,s){return Math.atan2(t.crossProduct(s),t.dotProduct(s))}static isBisectorRobust(t,s,i){return(0,e.g)(0),!1}static size(){return 2}get 0(){return this.x}get 1(){return this.y}set 0(t){this.x=t}set 1(t){this.y=t}static compareZorder(t,s){const i=ks.c_compare_zorder_xx[t.x<0?1:0]|ks.c_compare_zorder_yy[t.y<0?1:0],e=ks.c_compare_zorder_xx[s.x<0?1:0]|ks.c_compare_zorder_yy[s.y<0?1:0];if(i===e){let i=0,e=0;for(let n=0;n<2;++n){const r=zs(t[n],s[n]);r>i&&(i=r,e=n)}return t[e]<s[e]}return i<e}static lerp(t,s,i){const e=new ks;return Z(t,s,i,e),e}static getClosestCoordinate(t,s,i,e=!1){const n=ks.getNAN();n.setSub(s,t);const r=n.sqrLength();if(0===r)return.5;if(s.isEqualPoint2D(i))return 1;const o=ks.getNAN();o.setSub(i,t);let h=o.dotProduct(n)/r;return e||(h<0?h=0:h>1&&(h=1)),h}static intersectLinesAtOnePoint(t,s,i,e){if(t.equals(s)||i.equals(e))return ks.getNAN();const n=s.x-t.x,r=i.x-e.x,o=s.y-t.y,h=i.y-e.y,u=n*h-r*o;if(!u)return ks.getNAN();const a=u;if(0===a)return ks.getNAN();let l=(i.x-t.x)*h-(i.y-t.y)*r;l/=a;const c=new ks;return Z(t,s,l,c),c.isFinite()?c:ks.getNAN()}toString(){return`[${this.x},${this.y}]`}}ks.dimensions=2,ks.d=[[0,1,0,-1],[-1,0,1,0],[0,-1,0,1],[1,0,-1,0]],ks.c_compare_zorder_xx=[2,0],ks.c_compare_zorder_yy=[1,0]}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1053,9013],{11053:(e,t,r)=>{r.d(t,{c:()=>a,g:()=>n});var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},29013:(e,t,r)=>{r.r(t),r.d(t,{a:()=>s});var a,n=r(11053),o={exports:{}};const i=(0,n.g)(function(){return a||(a=1,e=o,t="undefined"!=typeof document?document.currentScript?.src:void 0,r=function(e={}){var r,a,o,i=e,s=new Promise(((e,t)=>{r=e,a=t})),u=Object.assign({},i),f="./this.program",l="";"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),t&&(l=t),l=l.startsWith("blob:")?"":l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1),o=async e=>{if((e=await fetch(e,{credentials:"same-origin"})).ok)return e.arrayBuffer();throw Error(e.status+" : "+e.url)};var c=i.print||console.log.bind(console),h=i.printErr||console.error.bind(console);Object.assign(i,u),u=null,i.thisProgram&&(f=i.thisProgram);var p,d,m,v,y,g,w,b,$,T,A,C,W=i.wasmBinary,j=!1;function P(){var e=p.buffer;i.HEAP8=m=new Int8Array(e),i.HEAP16=y=new Int16Array(e),i.HEAPU8=v=new Uint8Array(e),i.HEAPU16=g=new Uint16Array(e),i.HEAP32=w=new Int32Array(e),i.HEAPU32=b=new Uint32Array(e),i.HEAPF32=$=new Float32Array(e),i.HEAPF64=C=new Float64Array(e),i.HEAP64=T=new BigInt64Array(e),i.HEAPU64=A=new BigUint64Array(e)}var E=[],O=[],k=[];function S(){var e=i.preRun.shift();E.unshift(e)}var x=0,F=null;function R(e){throw i.onAbort?.(e),h(e="Aborted("+e+")"),j=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),a(e),e}var _,U=e=>e.startsWith("data:application/octet-stream;base64,");class I{name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var M=e=>{for(;0<e.length;)e.shift()(i)},B=i.noExitRuntime||!0;class H{constructor(e){this.ga=e-24}}var D={},V=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function z(e){return this.fromWireType(b[e>>2])}var N,q,L,G={},J={},K={},Q=(e,t,r)=>{function a(t){if((t=r(t)).length!==e.length)throw new N("Mismatched type converter count");for(var a=0;a<e.length;++a)X(e[a],t[a])}e.forEach((e=>K[e]=t));var n=Array(t.length),o=[],i=0;t.forEach(((e,t)=>{J.hasOwnProperty(e)?n[t]=J[e]:(o.push(e),G.hasOwnProperty(e)||(G[e]=[]),G[e].push((()=>{n[t]=J[e],++i===o.length&&a(n)})))})),0===o.length&&a(n)},Y=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},Z=e=>{for(var t="";v[e];)t+=q[v[e++]];return t};function X(e,t,r={}){return function(e,t,r={}){var a=t.name;if(!e)throw new L(`type "${a}" must have a positive integer typeid pointer`);if(J.hasOwnProperty(e)){if(r.La)return;throw new L(`Cannot register type '${a}' twice`)}J[e]=t,delete K[e],G.hasOwnProperty(e)&&(t=G[e],delete G[e],t.forEach((e=>e())))}(e,t,r)}var ee=(e,t,r)=>{switch(t){case 1:return r?e=>m[e]:e=>v[e];case 2:return r?e=>y[e>>1]:e=>g[e>>1];case 4:return r?e=>w[e>>2]:e=>b[e>>2];case 8:return r?e=>T[e>>3]:e=>A[e>>3];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},te=e=>{throw new L(e.ea.ha.fa.name+" instance already deleted")},re=!1,ae=()=>{},ne=(e,t,r)=>t===r?e:void 0===r.ka||null===(e=ne(e,t,r.ka))?null:r.Ea(e),oe={},ie={},se=(e,t)=>{if(!t.ha||!t.ga)throw new N("makeClassHandle requires ptr and ptrType");if(!!t.na!=!!t.ja)throw new N("Both smartPtrType and smartPtr must be specified");return t.count={value:1},ue(Object.create(e,{ea:{value:t,writable:!0}}))},ue=e=>"undefined"==typeof FinalizationRegistry?(ue=e=>e,e):(re=new FinalizationRegistry((e=>{--(e=e.ea).count.value,0===e.count.value&&(e.ja?e.na.oa(e.ja):e.ha.fa.oa(e.ga))})),ae=e=>{re.unregister(e)},(ue=e=>{var t=e.ea;return t.ja&&re.register(e,{ea:t},e),e})(e));function fe(){}var le=(e,t)=>Object.defineProperty(t,"name",{value:e}),ce=(e,t,r)=>{if(void 0===e[t].ia){var a=e[t];e[t]=function(...a){if(!e[t].ia.hasOwnProperty(a.length))throw new L(`Function '${r}' called with an invalid number of arguments (${a.length}) - expects one of (${e[t].ia})!`);return e[t].ia[a.length].apply(this,a)},e[t].ia=[],e[t].ia[a.qa]=a}},he=(e,t,r)=>{if(i.hasOwnProperty(e)){if(void 0===r||void 0!==i[e].ia&&void 0!==i[e].ia[r])throw new L(`Cannot register public name '${e}' twice`);if(ce(i,e,e),i[e].ia.hasOwnProperty(r))throw new L(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`);i[e].ia[r]=t}else i[e]=t,i[e].qa=r};function pe(e,t,r,a,n,o,i,s){this.name=e,this.constructor=t,this.pa=r,this.oa=a,this.ka=n,this.Ga=o,this.ua=i,this.Ea=s,this.Na=[]}var de=(e,t,r)=>{for(;t!==r;){if(!t.ua)throw new L(`Expected null or instance of ${r.name}, got an instance of ${t.name}`);e=t.ua(e),t=t.ka}return e};function me(e,t){if(null===t){if(this.ya)throw new L(`null is not a valid ${this.name}`);return 0}if(!t.ea)throw new L(`Cannot pass "${Y(t)}" as a ${this.name}`);if(!t.ea.ga)throw new L(`Cannot pass deleted object as a pointer of type ${this.name}`);return de(t.ea.ga,t.ea.ha.fa,this.fa)}function ve(e,t){if(null===t){if(this.ya)throw new L(`null is not a valid ${this.name}`);if(this.xa){var r=this.za();return null!==e&&e.push(this.oa,r),r}return 0}if(!t||!t.ea)throw new L(`Cannot pass "${Y(t)}" as a ${this.name}`);if(!t.ea.ga)throw new L(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.wa&&t.ea.ha.wa)throw new L(`Cannot convert argument of type ${t.ea.na?t.ea.na.name:t.ea.ha.name} to parameter type ${this.name}`);if(r=de(t.ea.ga,t.ea.ha.fa,this.fa),this.xa){if(void 0===t.ea.ja)throw new L("Passing raw pointer to smart pointer is illegal");switch(this.Sa){case 0:if(t.ea.na!==this)throw new L(`Cannot convert argument of type ${t.ea.na?t.ea.na.name:t.ea.ha.name} to parameter type ${this.name}`);r=t.ea.ja;break;case 1:r=t.ea.ja;break;case 2:if(t.ea.na===this)r=t.ea.ja;else{var a=t.clone();r=this.Oa(r,Ie((()=>a.delete()))),null!==e&&e.push(this.oa,r)}break;default:throw new L("Unsupporting sharing policy")}}return r}function ye(e,t){if(null===t){if(this.ya)throw new L(`null is not a valid ${this.name}`);return 0}if(!t.ea)throw new L(`Cannot pass "${Y(t)}" as a ${this.name}`);if(!t.ea.ga)throw new L(`Cannot pass deleted object as a pointer of type ${this.name}`);if(t.ea.ha.wa)throw new L(`Cannot convert argument of type ${t.ea.ha.name} to parameter type ${this.name}`);return de(t.ea.ga,t.ea.ha.fa,this.fa)}function ge(e,t,r,a,n,o,i,s,u,f,l){this.name=e,this.fa=t,this.ya=r,this.wa=a,this.xa=n,this.Ma=o,this.Sa=i,this.Ca=s,this.za=u,this.Oa=f,this.oa=l,n||void 0!==t.ka?this.toWireType=ve:(this.toWireType=a?me:ye,this.ma=null)}var we,be,$e=(e,t,r)=>{if(!i.hasOwnProperty(e))throw new N("Replacing nonexistent public symbol");void 0!==i[e].ia&&void 0!==r?i[e].ia[r]=t:(i[e]=t,i[e].qa=r)},Te=[],Ae=(e,t)=>{e=Z(e);var r=Te[t];if(r||(t>=Te.length&&(Te.length=t+1),Te[t]=r=we.get(t)),"function"!=typeof r)throw new L(`unknown function pointer with signature ${e}: ${t}`);return r},Ce=e=>{e=yt(e);var t=Z(e);return wt(e),t},We=(e,t)=>{var r=[],a={};throw t.forEach((function e(t){a[t]||J[t]||(K[t]?K[t].forEach(e):(r.push(t),a[t]=!0))})),new be(`${e}: `+r.map(Ce).join([", "]))};function je(e,t,r,a,n){var o=t.length;if(2>o)throw new L("argTypes array size mismatch! Must at least get return value and 'this' types!");var i=null!==t[1]&&null!==r,s=function(e){for(var t=1;t<e.length;++t)if(null!==e[t]&&void 0===e[t].ma)return!0;return!1}(t),u="void"!==t[0].name,f=o-2,l=Array(f),c=[],h=[];return le(e,(function(...e){if(h.length=0,c.length=i?2:1,c[0]=n,i){var r=t[1].toWireType(h,this);c[1]=r}for(var o=0;o<f;++o)l[o]=t[o+2].toWireType(h,e[o]),c.push(l[o]);if(e=a(...c),s)V(h);else for(o=i?1:2;o<t.length;o++){var p=1===o?r:l[o-2];null!==t[o].ma&&t[o].ma(p)}return u?t[0].fromWireType(e):void 0}))}var Pe,Ee,Oe,ke=(e,t)=>{for(var r=[],a=0;a<e;a++)r.push(b[t+4*a>>2]);return r},Se=e=>{const t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e},xe=(e,t,r)=>{if(!(e instanceof Object))throw new L(`${r} with invalid "this": ${e}`);if(!(e instanceof t.fa.constructor))throw new L(`${r} incompatible with "this" of type ${e.constructor.name}`);if(!e.ea.ga)throw new L(`cannot call emscripten binding method ${r} on deleted object`);return de(e.ea.ga,e.ea.ha.fa,t.fa)},Fe=[],Re=[],_e=e=>{9<e&&0==--Re[e+1]&&(Re[e]=void 0,Fe.push(e))},Ue=e=>{if(!e)throw new L("Cannot use deleted val. handle = "+e);return Re[e]},Ie=e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const t=Fe.pop()||Re.length;return Re[t]=e,Re[t+1]=1,t}},Me={name:"emscripten::val",fromWireType:e=>{var t=Ue(e);return _e(e),t},toWireType:(e,t)=>Ie(t),la:8,readValueFromPointer:z,ma:null},Be=(e,t,r)=>{switch(t){case 1:return r?function(e){return this.fromWireType(m[e])}:function(e){return this.fromWireType(v[e])};case 2:return r?function(e){return this.fromWireType(y[e>>1])}:function(e){return this.fromWireType(g[e>>1])};case 4:return r?function(e){return this.fromWireType(w[e>>2])}:function(e){return this.fromWireType(b[e>>2])};default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},He=(e,t)=>{var r=J[e];if(void 0===r)throw e=`${t} has unknown type ${Ce(e)}`,new L(e);return r},De=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType($[e>>2])};case 8:return function(e){return this.fromWireType(C[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},Ve=Object.assign({optional:!0},Me),ze=(e,t,r)=>{var a=v;if(0<r){r=t+r-1;for(var n=0;n<e.length;++n){var o=e.charCodeAt(n);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++n)),127>=o){if(t>=r)break;a[t++]=o}else{if(2047>=o){if(t+1>=r)break;a[t++]=192|o>>6}else{if(65535>=o){if(t+2>=r)break;a[t++]=224|o>>12}else{if(t+3>=r)break;a[t++]=240|o>>18,a[t++]=128|o>>12&63}a[t++]=128|o>>6&63}a[t++]=128|63&o}}a[t]=0}},Ne="undefined"!=typeof TextDecoder?new TextDecoder:void 0,qe=(e,t=0,r=NaN)=>{var a=t+r;for(r=t;e[r]&&!(r>=a);)++r;if(16<r-t&&e.buffer&&Ne)return Ne.decode(e.subarray(t,r));for(a="";t<r;){var n=e[t++];if(128&n){var o=63&e[t++];if(192==(224&n))a+=String.fromCharCode((31&n)<<6|o);else{var i=63&e[t++];65536>(n=224==(240&n)?(15&n)<<12|o<<6|i:(7&n)<<18|o<<12|i<<6|63&e[t++])?a+=String.fromCharCode(n):(n-=65536,a+=String.fromCharCode(55296|n>>10,56320|1023&n))}}else a+=String.fromCharCode(n)}return a},Le="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Ge=(e,t)=>{for(var r=e>>1,a=r+t/2;!(r>=a)&&g[r];)++r;if(32<(r<<=1)-e&&Le)return Le.decode(v.subarray(e,r));for(r="",a=0;!(a>=t/2);++a){var n=y[e+2*a>>1];if(0==n)break;r+=String.fromCharCode(n)}return r},Je=(e,t,r)=>{if(r??=2147483647,2>r)return 0;var a=t;r=(r-=2)<2*e.length?r/2:e.length;for(var n=0;n<r;++n)y[t>>1]=e.charCodeAt(n),t+=2;return y[t>>1]=0,t-a},Ke=e=>2*e.length,Qe=(e,t)=>{for(var r=0,a="";!(r>=t/4);){var n=w[e+4*r>>2];if(0==n)break;++r,65536<=n?(n-=65536,a+=String.fromCharCode(55296|n>>10,56320|1023&n)):a+=String.fromCharCode(n)}return a},Ye=(e,t,r)=>{if(r??=2147483647,4>r)return 0;var a=t;r=a+r-4;for(var n=0;n<e.length;++n){var o=e.charCodeAt(n);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++n)),w[t>>2]=o,(t+=4)+4>r)break}return w[t>>2]=0,t-a},Ze=e=>{for(var t=0,r=0;r<e.length;++r){var a=e.charCodeAt(r);55296<=a&&57343>=a&&++r,t+=4}return t},Xe=0,et=(e,t,r)=>{var a=[];return e=e.toWireType(a,r),a.length&&(b[t>>2]=Ie(a)),e},tt=[],rt={},at=e=>{var t=rt[e];return void 0===t?Z(e):t},nt=()=>{function e(e){e.$$$embind_global$$$=e;var t="object"==typeof $$$embind_global$$$&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if("object"==typeof globalThis)return globalThis;if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;if("object"==typeof n.c&&e(n.c)?$$$embind_global$$$=n.c:"object"==typeof self&&e(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$)return $$$embind_global$$$;throw Error("unable to get global object.")},ot=Reflect.construct,it={},st=e=>{if(!(e instanceof I||"unwind"==e))throw e},ut=e=>{throw d=e,B||0<Xe||(i.onExit?.(e),j=!0),new I(e)},ft={},lt=()=>{if(!Pe){var e,t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:f||"./this.program"};for(e in ft)void 0===ft[e]?delete t[e]:t[e]=ft[e];var r=[];for(e in t)r.push(`${e}=${t[e]}`);Pe=r}return Pe},ct=[null,[],[]];N=i.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}};for(var ht=Array(256),pt=0;256>pt;++pt)ht[pt]=String.fromCharCode(pt);q=ht,L=i.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(fe.prototype,{isAliasOf:function(e){if(!(this instanceof fe&&e instanceof fe))return!1;var t=this.ea.ha.fa,r=this.ea.ga;e.ea=e.ea;var a=e.ea.ha.fa;for(e=e.ea.ga;t.ka;)r=t.ua(r),t=t.ka;for(;a.ka;)e=a.ua(e),a=a.ka;return t===a&&r===e},clone:function(){if(this.ea.ga||te(this),this.ea.ta)return this.ea.count.value+=1,this;var e=ue,t=Object,r=t.create,a=Object.getPrototypeOf(this),n=this.ea;return(e=e(r.call(t,a,{ea:{value:{count:n.count,sa:n.sa,ta:n.ta,ga:n.ga,ha:n.ha,ja:n.ja,na:n.na}}}))).ea.count.value+=1,e.ea.sa=!1,e},delete(){if(this.ea.ga||te(this),this.ea.sa&&!this.ea.ta)throw new L("Object already scheduled for deletion");ae(this);var e=this.ea;--e.count.value,0===e.count.value&&(e.ja?e.na.oa(e.ja):e.ha.fa.oa(e.ga)),this.ea.ta||(this.ea.ja=void 0,this.ea.ga=void 0)},isDeleted:function(){return!this.ea.ga},deleteLater:function(){if(this.ea.ga||te(this),this.ea.sa&&!this.ea.ta)throw new L("Object already scheduled for deletion");return this.ea.sa=!0,this}}),Object.assign(ge.prototype,{Ha(e){return this.Ca&&(e=this.Ca(e)),e},Aa(e){this.oa?.(e)},la:8,readValueFromPointer:z,fromWireType:function(e){function t(){return this.xa?se(this.fa.pa,{ha:this.Ma,ga:r,na:this,ja:e}):se(this.fa.pa,{ha:this,ga:e})}var r=this.Ha(e);if(!r)return this.Aa(e),null;var a=((e,t)=>{if(void 0===t)throw new L("ptr should not be undefined");for(;e.ka;)t=e.ua(t),e=e.ka;return ie[t]})(this.fa,r);if(void 0!==a)return 0===a.ea.count.value?(a.ea.ga=r,a.ea.ja=e,a.clone()):(a=a.clone(),this.Aa(e),a);if(a=this.fa.Ga(r),!(a=oe[a]))return t.call(this);a=this.wa?a.Da:a.pointerType;var n=ne(r,this.fa,a.fa);return null===n?t.call(this):this.xa?se(a.fa.pa,{ha:a,ga:n,na:this,ja:e}):se(a.fa.pa,{ha:a,ga:n})}}),be=i.UnboundTypeError=(Ee=Error,(Oe=le("UnboundTypeError",(function(e){this.name="UnboundTypeError",this.message=e,void 0!==(e=Error(e).stack)&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(Ee.prototype),Oe.prototype.constructor=Oe,Oe.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},Oe),Re.push(0,1,void 0,1,null,1,!0,1,!1,1),i.count_emval_handles=()=>Re.length/2-5-Fe.length;var dt,mt={m:(e,t,r)=>{var a=new H(e);throw b[a.ga+16>>2]=0,b[a.ga+4>>2]=t,b[a.ga+8>>2]=r,e},O:()=>R(""),r:e=>{var t=D[e];delete D[e];var r=t.za,a=t.oa,n=t.Ba,o=n.map((e=>e.Ka)).concat(n.map((e=>e.Qa)));Q([e],o,(e=>{var o={};return n.forEach(((t,r)=>{var a=e[r],i=t.Ia,s=t.Ja,u=e[r+n.length],f=t.Pa,l=t.Ra;o[t.Fa]={read:e=>a.fromWireType(i(s,e)),write:(e,t)=>{var r=[];f(l,e,u.toWireType(r,t)),V(r)}}})),[{name:t.name,fromWireType:e=>{var t,r={};for(t in o)r[t]=o[t].read(e);return a(e),r},toWireType:(e,t)=>{for(var n in o)if(!(n in t))throw new TypeError(`Missing field: "${n}"`);var i=r();for(n in o)o[n].write(i,t[n]);return null!==e&&e.push(a,i),i},la:8,readValueFromPointer:z,ma:a}]}))},E:(e,t,r)=>{X(e,{name:t=Z(t),fromWireType:e=>e,toWireType:function(e,t){if("bigint"!=typeof t&&"number"!=typeof t)throw new TypeError(`Cannot convert "${Y(t)}" to ${this.name}`);return"number"==typeof t&&(t=BigInt(t)),t},la:8,readValueFromPointer:ee(t,r,-1==t.indexOf("u")),ma:null})},V:(e,t,r,a)=>{X(e,{name:t=Z(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:a},la:8,readValueFromPointer:function(e){return this.fromWireType(v[e])},ma:null})},f:(e,t,r,a,n,o,i,s,u,f,l,c,h)=>{l=Z(l),o=Ae(n,o),s&&=Ae(i,s),f&&=Ae(u,f),h=Ae(c,h);var p=(e=>{var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=t&&57>=t?`_${e}`:e})(l);he(p,(function(){We(`Cannot construct ${l} due to unbound types`,[a])})),Q([e,t,r],a?[a]:[],(t=>{if(t=t[0],a)var r=t.fa,n=r.pa;else n=fe.prototype;t=le(l,(function(...e){if(Object.getPrototypeOf(this)!==i)throw new L("Use 'new' to construct "+l);if(void 0===c.ra)throw new L(l+" has no accessible constructor");var t=c.ra[e.length];if(void 0===t)throw new L(`Tried to invoke ctor of ${l} with invalid number of parameters (${e.length}) - expected (${Object.keys(c.ra).toString()}) parameters instead!`);return t.apply(this,e)}));var i=Object.create(n,{constructor:{value:t}});t.prototype=i;var u,c=new pe(l,t,i,h,r,o,s,f);return c.ka&&((u=c.ka).va??(u.va=[]),c.ka.va.push(c)),r=new ge(l,c,!0,!1,!1),u=new ge(l+"*",c,!1,!1,!1),n=new ge(l+" const*",c,!1,!0,!1),oe[e]={pointerType:u,Da:n},$e(p,t),[r,u,n]}))},v:(e,t,r,a,n,o,i)=>{var s=ke(r,a);t=Z(t),t=Se(t),o=Ae(n,o),Q([],[e],(e=>{function a(){We(`Cannot call ${n} due to unbound types`,s)}var n=`${(e=e[0]).name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var u=e.fa.constructor;return void 0===u[t]?(a.qa=r-1,u[t]=a):(ce(u,t,n),u[t].ia[r-1]=a),Q([],s,(a=>{if(a=je(n,[a[0],null].concat(a.slice(1)),null,o,i),void 0===u[t].ia?(a.qa=r-1,u[t]=a):u[t].ia[r-1]=a,e.fa.va)for(const r of e.fa.va)r.constructor.hasOwnProperty(t)||(r.constructor[t]=a);return[]})),[]}))},g:(e,t,r,a,n,o)=>{var i=ke(t,r);n=Ae(a,n),Q([],[e],(e=>{var r=`constructor ${(e=e[0]).name}`;if(void 0===e.fa.ra&&(e.fa.ra=[]),void 0!==e.fa.ra[t-1])throw new L(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.fa.ra[t-1]=()=>{We(`Cannot construct ${e.name} due to unbound types`,i)},Q([],i,(a=>(a.splice(1,0,null),e.fa.ra[t-1]=je(r,a,null,n,o),[]))),[]}))},a:(e,t,r,a,n,o,i,s)=>{var u=ke(r,a);t=Z(t),t=Se(t),o=Ae(n,o),Q([],[e],(e=>{function a(){We(`Cannot call ${n} due to unbound types`,u)}var n=`${(e=e[0]).name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.fa.Na.push(t);var f=e.fa.pa,l=f[t];return void 0===l||void 0===l.ia&&l.className!==e.name&&l.qa===r-2?(a.qa=r-2,a.className=e.name,f[t]=a):(ce(f,t,n),f[t].ia[r-2]=a),Q([],u,(a=>(a=je(n,a,e,o,i),void 0===f[t].ia?(a.qa=r-2,f[t]=a):f[t].ia[r-2]=a,[]))),[]}))},c:(e,t,r,a,n,o,i,s,u,f)=>{t=Z(t),n=Ae(a,n),Q([],[e],(e=>{var a=`${(e=e[0]).name}.${t}`,l={get(){We(`Cannot access ${a} due to unbound types`,[r,i])},enumerable:!0,configurable:!0};return l.set=u?()=>We(`Cannot access ${a} due to unbound types`,[r,i]):()=>{throw new L(a+" is a read-only property")},Object.defineProperty(e.fa.pa,t,l),Q([],u?[r,i]:[r],(r=>{var i=r[0],l={get(){var t=xe(this,e,a+" getter");return i.fromWireType(n(o,t))},enumerable:!0};if(u){u=Ae(s,u);var c=r[1];l.set=function(t){var r=xe(this,e,a+" setter"),n=[];u(f,r,c.toWireType(n,t)),V(n)}}return Object.defineProperty(e.fa.pa,t,l),[]})),[]}))},T:e=>X(e,Me),n:(e,t,r,a)=>{function n(){}t=Z(t),n.values={},X(e,{name:t,constructor:n,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,t)=>t.value,la:8,readValueFromPointer:Be(t,r,a),ma:null}),he(t,n)},e:(e,t,r)=>{var a=He(e,"enum");t=Z(t),e=a.constructor,a=Object.create(a.constructor.prototype,{value:{value:r},constructor:{value:le(`${a.name}_${t}`,(function(){}))}}),e.values[r]=a,e[t]=a},D:(e,t,r)=>{X(e,{name:t=Z(t),fromWireType:e=>e,toWireType:(e,t)=>t,la:8,readValueFromPointer:De(t,r),ma:null})},X:(e,t,r,a,n,o)=>{var i=ke(t,r);e=Z(e),e=Se(e),n=Ae(a,n),he(e,(function(){We(`Cannot call ${e} due to unbound types`,i)}),t-1),Q([],i,(r=>($e(e,je(e,[r[0],null].concat(r.slice(1)),null,n,o),t-1),[])))},w:(e,t,r,a,n)=>{if(t=Z(t),-1===n&&(n=4294967295),n=e=>e,0===a){var o=32-8*r;n=e=>e<<o>>>o}var i=t.includes("unsigned")?function(e,t){return t>>>0}:function(e,t){return t};X(e,{name:t,fromWireType:n,toWireType:i,la:8,readValueFromPointer:ee(t,r,0!==a),ma:null})},o:(e,t,r)=>{function a(e){return new n(m.buffer,b[e+4>>2],b[e>>2])}var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][t];X(e,{name:r=Z(r),fromWireType:a,la:8,readValueFromPointer:a},{La:!0})},t:e=>{X(e,Ve)},i:(e,t,r,a,n,o,i,s,u,f,l,c)=>{r=Z(r),o=Ae(n,o),s=Ae(i,s),f=Ae(u,f),c=Ae(l,c),Q([e],[t],(e=>(e=e[0],[new ge(r,e.fa,!1,!1,!0,e,a,o,s,f,c)])))},U:(e,t)=>{X(e,{name:t=Z(t),fromWireType:function(e){for(var t,r=b[e>>2],a=e+4,n=a,o=0;o<=r;++o){var i=a+o;o!=r&&0!=v[i]||(n=n?qe(v,n,i-n):"",void 0===t?t=n:(t+=String.fromCharCode(0),t+=n),n=i+1)}return wt(e),t},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var r,a="string"==typeof t;if(!(a||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array))throw new L("Cannot pass non-string to std::string");if(a)for(var n=r=0;n<t.length;++n){var o=t.charCodeAt(n);127>=o?r++:2047>=o?r+=2:55296<=o&&57343>=o?(r+=4,++n):r+=3}else r=t.length;if(o=(n=gt(4+r+1))+4,b[n>>2]=r,a)ze(t,o,r+1);else if(a)for(a=0;a<r;++a){var i=t.charCodeAt(a);if(255<i)throw wt(o),new L("String has UTF-16 code units that do not fit in 8 bits");v[o+a]=i}else for(a=0;a<r;++a)v[o+a]=t[a];return null!==e&&e.push(wt,n),n},la:8,readValueFromPointer:z,ma(e){wt(e)}})},C:(e,t,r)=>{if(r=Z(r),2===t)var a=Ge,n=Je,o=Ke,i=e=>g[e>>1];else 4===t&&(a=Qe,n=Ye,o=Ze,i=e=>b[e>>2]);X(e,{name:r,fromWireType:e=>{for(var r,n=b[e>>2],o=e+4,s=0;s<=n;++s){var u=e+4+s*t;s!=n&&0!=i(u)||(o=a(o,u-o),void 0===r?r=o:(r+=String.fromCharCode(0),r+=o),o=u+t)}return wt(e),r},toWireType:(e,a)=>{if("string"!=typeof a)throw new L(`Cannot pass non-string to C++ string type ${r}`);var i=o(a),s=gt(4+i+t);return b[s>>2]=i/t,n(a,s+4,i+t),null!==e&&e.push(wt,s),s},la:8,readValueFromPointer:z,ma(e){wt(e)}})},s:(e,t,r,a,n,o)=>{D[e]={name:Z(t),za:Ae(r,a),oa:Ae(n,o),Ba:[]}},j:(e,t,r,a,n,o,i,s,u,f)=>{D[e].Ba.push({Fa:Z(t),Ka:r,Ia:Ae(a,n),Ja:o,Qa:i,Pa:Ae(s,u),Ra:f})},W:(e,t)=>{X(e,{Ta:!0,name:t=Z(t),la:0,fromWireType:()=>{},toWireType:()=>{}})},J:()=>{B=!1,Xe=0},l:(e,t,r)=>(e=Ue(e),t=He(t,"emval::as"),et(t,r,e)),y:(e,t)=>(e=Ue(e),(t=He(t,"emval::as")).toWireType(null,e)),Y:(e,t,r,a)=>(e=tt[e])(null,t=Ue(t),r,a),B:(e,t,r,a,n)=>(e=tt[e])(t=Ue(t),t[r=at(r)],a,n),b:_e,G:e=>0===e?Ie(nt()):(e=at(e),Ie(nt()[e])),A:(e,t,r)=>{var a=((e,t)=>{for(var r=Array(e),a=0;a<e;++a)r[a]=He(b[t+4*a>>2],"parameter "+a);return r})(e,t),n=a.shift();e--;var o=Array(e);return t=`methodCaller<(${a.map((e=>e.name)).join(", ")}) => ${n.name}>`,(e=>{var t=tt.length;return tt.push(e),t})(le(t,((t,i,s,u)=>{for(var f=0,l=0;l<e;++l)o[l]=a[l].readValueFromPointer(u+f),f+=a[l].la;return t=1===r?ot(i,o):i.apply(t,o),et(n,s,t)})))},q:(e,t)=>(e=Ue(e),t=Ue(t),Ie(e[t])),h:e=>{9<e&&(Re[e+1]+=1)},I:(e,t)=>(e=Ue(e))instanceof Ue(t),u:e=>"number"==typeof(e=Ue(e)),x:e=>"string"==typeof(e=Ue(e)),F:()=>Ie([]),p:e=>Ie(at(e)),k:e=>{var t=Ue(e);V(t),_e(e)},d:(e,t)=>(e=(e=He(e,"_emval_take_value")).readValueFromPointer(t),Ie(e)),z:e=>(e=Ue(e),Ie(typeof e)),K:(e,t)=>{if(it[e]&&(clearTimeout(it[e].id),delete it[e]),!t)return 0;var r=setTimeout((()=>{delete it[e],(e=>{if(!j)try{if(e(),!(B||0<Xe))try{d=e=d,ut(e)}catch(e){st(e)}}catch(e){st(e)}})((()=>bt(e,performance.now())))}),t);return it[e]={id:r,Ua:t},0},L:(e,t,r,a)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1).getTimezoneOffset();n=new Date(n,6,1).getTimezoneOffset(),b[e>>2]=60*Math.max(o,n),w[t>>2]=Number(o!=n),e=(t=e=>{var t=Math.abs(e);return`UTC${0<=e?"-":"+"}${String(Math.floor(t/60)).padStart(2,"0")}${String(t%60).padStart(2,"0")}`})(o),t=t(n),n<o?(ze(e,r,17),ze(t,a,17)):(ze(e,a,17),ze(t,r,17))},P:e=>{var t=v.length;if(2147483648<(e>>>=0))return!1;for(var r=1;4>=r;r*=2){var a=t*(1+.2/r);a=Math.min(a,e+100663296);e:{a=(Math.min(2147483648,65536*Math.ceil(Math.max(e,a)/65536))-p.buffer.byteLength+65535)/65536|0;try{p.grow(a),P();var n=1;break e}catch(e){}n=void 0}if(n)return!0}return!1},M:(e,t)=>{var r=0;return lt().forEach(((a,n)=>{var o=t+r;for(n=b[e+4*n>>2]=o,o=0;o<a.length;++o)m[n++]=a.charCodeAt(o);m[n]=0,r+=a.length+1})),0},N:(e,t)=>{var r=lt();b[e>>2]=r.length;var a=0;return r.forEach((e=>a+=e.length+1)),b[t>>2]=a,0},S:()=>52,R:function(){return 70},Q:(e,t,r,a)=>{for(var n=0,o=0;o<r;o++){var i=b[t>>2],s=b[t+4>>2];t+=8;for(var u=0;u<s;u++){var f=v[i+u],l=ct[e];0===f||10===f?((1===e?c:h)(qe(l)),l.length=0):l.push(f)}n+=s}return b[a>>2]=n,0},H:ut};!async function(){function e(e){return dt=e.exports,p=dt.Z,P(),we=dt.ca,O.unshift(dt._),x--,i.monitorRunDependencies?.(x),0==x&&F&&(e=F,F=null,e()),dt}x++,i.monitorRunDependencies?.(x);var t={a:mt};if(i.instantiateWasm)try{return i.instantiateWasm(t,e)}catch(e){h(`Module.instantiateWasm callback failed with error: ${e}`),a(e)}_??=U("arcgis-knowledge-client-core.wasm")?"arcgis-knowledge-client-core.wasm":i.locateFile?i.locateFile("arcgis-knowledge-client-core.wasm",l):l+"arcgis-knowledge-client-core.wasm";try{var r=await async function(e){var t=_;if(!W&&"function"==typeof WebAssembly.instantiateStreaming&&!U(t)&&"function"==typeof fetch)try{var r=fetch(t,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(r,e)}catch(e){h(`wasm streaming compile failed: ${e}`),h("falling back to ArrayBuffer instantiation")}return async function(e,t){try{var r=await async function(e){if(!W)try{var t=await o(e);return new Uint8Array(t)}catch{}if(e!=_||!W)throw"both async and sync fetching of the wasm failed";return new Uint8Array(W)}(e);return await WebAssembly.instantiate(r,t)}catch(e){h(`failed to asynchronously prepare wasm: ${e}`),R(e)}}(t,e)}(t);return e(r.instance),r}catch(e){a(e)}}();var vt,yt=e=>(yt=dt.$)(e),gt=e=>(gt=dt.aa)(e),wt=e=>(wt=dt.ba)(e),bt=(e,t)=>(bt=dt.da)(e,t);function $t(){function e(){if(!vt&&(vt=!0,i.calledRun=!0,!j)){if(M(O),r(i),i.onRuntimeInitialized?.(),i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;){var e=i.postRun.shift();k.unshift(e)}M(k)}}if(!(0<x)){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)S();M(E),0<x||(i.setStatus?(i.setStatus("Running..."),setTimeout((()=>{setTimeout((()=>i.setStatus("")),1),e()}),1)):e())}}if(F=function e(){vt||$t(),vt||(F=e)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);0<i.preInit.length;)i.preInit.pop()();return $t(),s},e.exports=r,e.exports.default=r),o.exports;var e,t,r}()),s=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2106],{3904:(e,t,o)=>{o.d(t,{A:()=>y});var r=o(90237),s=o(25482),i=o(10107),l=(o(44208),o(53966),o(87811),o(40608)),n=o(43937);let a=class extends s.A{constructor(e){super(e),this.enabled=!0,this.type=null,this.ignoreDrivers=!1}writeEnabled(e,t,o){e||(t[o]=e)}};(0,r._)([(0,i.MZ)({type:Boolean,json:{read:{source:"enable"},write:{target:"enable"}}})],a.prototype,"enabled",void 0),(0,r._)([(0,n.K)("enabled")],a.prototype,"writeEnabled",null),(0,r._)([(0,i.MZ)({type:["icon","object","line","path","fill","water","extrude","text"],readOnly:!0,json:{write:{isRequired:!0}}})],a.prototype,"type",void 0),a=(0,r._)([(0,l.$)("esri.symbols.Symbol3DLayer")],a);const y=a},3955:(e,t,o)=>{o.d(t,{A:()=>a});var r=o(90237),s=o(25482),i=o(10107),l=(o(44208),o(53966),o(87811),o(40608));let n=class extends s.A{constructor(e){super(e),this.type="style"}clone(){throw new Error("Subclasses of Pattern3D should implement their own clone method.")}};(0,r._)([(0,i.MZ)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),n=(0,r._)([(0,l.$)("esri.symbols.patterns.Pattern3D")],n);const a=n},4595:(e,t,o)=>{o.d(t,{A:()=>a});var r=o(90237),s=o(25482),i=o(10107),l=(o(44208),o(53966),o(87811),o(40608));let n=class extends s.A{constructor(e){super(e),this.visible=!0}clone(){throw new Error("Subclasses of Callout3D should implement their own clone method.")}};(0,r._)([(0,i.MZ)({type:["line"],constructOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,isRequired:!0}}})],n.prototype,"type",void 0),(0,r._)([(0,i.MZ)({readOnly:!0})],n.prototype,"visible",void 0),n=(0,r._)([(0,l.$)("esri.symbols.callouts.Callout3D")],n);const a=n},4792:(e,t,o)=>{o.d(t,{A:()=>h});var r=o(90237),s=o(68197),i=o(25482),l=o(4718),n=o(90629),a=o(10107),y=(o(44208),o(53966),o(40608)),p=o(67222);let c=class extends i.A{constructor(e){super(e),this.color=new s.A([0,0,0,1]),this.extensionLength=0,this.size=(0,n.PN)(1)}clone(){}cloneProperties(){return{color:(0,l.o8)(this.color),size:this.size,extensionLength:this.extensionLength}}};(0,r._)([(0,a.MZ)({type:["solid","sketch"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0,isRequired:!0}}})],c.prototype,"type",void 0),(0,r._)([(0,a.MZ)((0,p.E)({colorRequiredOnWrite:!0}))],c.prototype,"color",void 0),(0,r._)([(0,a.MZ)({...p.p,json:{write:{overridePolicy:e=>({enabled:!!e})}}})],c.prototype,"extensionLength",void 0),(0,r._)([(0,a.MZ)(p.p)],c.prototype,"size",void 0),c=(0,r._)([(0,y.$)("esri.symbols.edges.Edges3D")],c);const h=c},4900:(e,t,o)=>{o.d(t,{A:()=>p});var r,s=o(90237),i=o(25482),l=o(10107),n=(o(44208),o(53966),o(87811),o(40608)),a=o(67222);let y=r=class extends i.A{constructor(e){super(e),this.screenLength=0,this.minWorldLength=0,this.maxWorldLength=null}clone(){return new r({screenLength:this.screenLength,minWorldLength:this.minWorldLength,maxWorldLength:this.maxWorldLength})}};(0,s._)([(0,l.MZ)({...a.p,json:{write:{isRequired:!0}}})],y.prototype,"screenLength",void 0),(0,s._)([(0,l.MZ)({type:Number,nonNullable:!0,json:{write:!0,default:0}})],y.prototype,"minWorldLength",void 0),(0,s._)([(0,l.MZ)({type:Number,json:{write:!0}})],y.prototype,"maxWorldLength",void 0),y=r=(0,s._)([(0,n.$)("esri.symbols.support.Symbol3DVerticalOffset")],y);const p=y},8887:(e,t,o)=>{o.d(t,{Bb:()=>i,Fq:()=>y,M4:()=>p,Nv:()=>c,e:()=>h}),o(44208);var r=o(51850),s=o(70328);function i(e,{isPrimitive:t,width:o,depth:s,height:i}){const l=t?10:1;if(null==o&&null==i&&null==s)return[l*e[0],l*e[1],l*e[2]];const n=(0,r.fA)(o,s,i);let a;for(let t=0;t<3;t++){const o=n[t];if(null!=o){a=o/e[t];break}}for(let t=0;t<3;t++)null==n[t]&&(n[t]=e[t]*a);return n}const l=(0,s.fA)(-.5,-.5,-.5,.5,.5,.5),n=(0,s.fA)(-.5,-.5,0,.5,.5,1),a=(0,s.fA)(-.5,-.5,0,.5,.5,.5);function y(e){switch(e){case"sphere":case"cube":case"diamond":return l;case"cylinder":case"cone":case"inverted-cone":return n;case"tetrahedron":return a;default:return}}const p=["butt","square","round"],c=[...p,"none"],h=["miter","bevel","round"]},8893:(e,t,o)=>{o.d(t,{A:()=>v});var r,s=o(90237),i=o(68197),l=o(4718),n=o(90629),a=o(10107),y=(o(44208),o(53966),o(93223)),p=o(40608),c=o(4595),h=o(25482),u=o(67222);let d=r=class extends h.A{constructor(e){super(e),this.color=new i.A("white")}clone(){return new r({color:(0,l.o8)(this.color)})}};(0,s._)([(0,a.MZ)((0,u.E)({colorRequiredOnWrite:!0}))],d.prototype,"color",void 0),d=r=(0,s._)([(0,p.$)("esri.symbols.callouts.LineCallout3DBorder")],d);const m=d;var b;let g=b=class extends c.A{constructor(e){super(e),this.type="line",this.color=new i.A([0,0,0,1]),this.size=(0,n.PN)(1),this.border=null}get visible(){return this.size>0&&null!=this.color&&this.color.a>0}clone(){return new b({color:(0,l.o8)(this.color),size:this.size,border:(0,l.o8)(this.border)})}};(0,s._)([(0,y.e)({line:"line"})],g.prototype,"type",void 0),(0,s._)([(0,a.MZ)((0,u.E)({colorRequiredOnWrite:!0}))],g.prototype,"color",void 0),(0,s._)([(0,a.MZ)({...u.p,json:{write:{isRequired:!0}}})],g.prototype,"size",void 0),(0,s._)([(0,a.MZ)({type:m,json:{write:!0}})],g.prototype,"border",void 0),(0,s._)([(0,a.MZ)({readOnly:!0})],g.prototype,"visible",null),g=b=(0,s._)([(0,p.$)("esri.symbols.callouts.LineCallout3D")],g);const v=g},10224:(e,t,o)=>{o.d(t,{A:()=>M});var r,s=o(90237),i=o(4718),l=o(10107),n=(o(44208),o(53966),o(93223)),a=o(40608),y=o(43937),p=o(11831),c=o(3904),h=o(67222),u=o(68197),d=o(25482);let m=r=class extends d.A{constructor(){super(...arguments),this.color=new u.A([0,0,0,1]),this.size=0}clone(){const e={color:(0,i.o8)(this.color),size:this.size};return new r(e)}};(0,s._)([(0,l.MZ)((0,h.E)())],m.prototype,"color",void 0),(0,s._)([(0,l.MZ)(h.p)],m.prototype,"size",void 0),m=r=(0,s._)([(0,a.$)("esri.symbols.support.Symbol3DHalo")],m);var b=o(78504),g=o(69540);o(87811);let v=class extends(g.A.ClonableMixin(d.A)){constructor(e){super(e),this.color=null}};(0,s._)([(0,l.MZ)((0,h.E)())],v.prototype,"color",void 0),v=(0,s._)([(0,a.$)("esri.symbols.support.Symbol3DTextBackground")],v);var f,w=o(5760);let _=class extends c.A{static{f=this}constructor(e){super(e),this._userSize=void 0,this.halo=null,this.horizontalAlignment="center",this.lineHeight=1,this.material=null,this.background=null,this.text=null,this.type="text",this.verticalAlignment="baseline"}get font(){return this._get("font")||null}set font(e){null!=e&&null!=this._userSize&&(e.size=this._userSize),this._set("font",e)}writeFont(e,t,o,r){const s={...r,textSymbol3D:!0};t.font=e.write({},s),delete t.font.size}get size(){return null!=this._userSize?this._userSize:null!=this.font?.size?this.font.size:9}set size(e){this._userSize=e,null!=this.font&&(this.font.size=this._userSize),this.notifyChange("size")}clone(){const e=new f({enabled:this.enabled,font:this.font&&(0,i.o8)(this.font),halo:this.halo&&(0,i.o8)(this.halo),horizontalAlignment:this.horizontalAlignment,lineHeight:this.lineHeight,material:null!=this.material?this.material.clone():null,text:this.text,verticalAlignment:this.verticalAlignment,background:(0,i.o8)(this.background)});return e._userSize=this._userSize,e}static fromTextSymbol(e){return new f({font:null!=e.font?e.font.clone():new p.A,halo:A(e.haloColor,e.haloSize),horizontalAlignment:e.horizontalAlignment,lineHeight:e.lineHeight,material:e.color?new b.N({color:e.color.clone()}):null,text:e.text,verticalAlignment:e.verticalAlignment,background:e.backgroundColor?new v({color:e.backgroundColor.clone()}):null})}};function A(e,t){return e&&null!=t&&t>0?new m({color:(0,i.o8)(e),size:t}):null}(0,s._)([(0,l.MZ)({type:p.A,json:{write:!0}})],_.prototype,"font",null),(0,s._)([(0,y.K)("font")],_.prototype,"writeFont",null),(0,s._)([(0,l.MZ)({type:m,json:{write:!0}})],_.prototype,"halo",void 0),(0,s._)([(0,l.MZ)({...w.rM,json:{default:"center",write:!0}})],_.prototype,"horizontalAlignment",void 0),(0,s._)([(0,l.MZ)({...w.Tb,json:{default:1,write:!0}})],_.prototype,"lineHeight",void 0),(0,s._)([(0,l.MZ)({type:b.N,json:{write:!0}})],_.prototype,"material",void 0),(0,s._)([(0,l.MZ)({type:v,json:{write:!0}})],_.prototype,"background",void 0),(0,s._)([(0,l.MZ)(h.p)],_.prototype,"size",null),(0,s._)([(0,l.MZ)({type:String,json:{write:!0}})],_.prototype,"text",void 0),(0,s._)([(0,n.e)({Text:"text"},{readOnly:!0})],_.prototype,"type",void 0),(0,s._)([(0,l.MZ)({...w.x0,json:{default:"baseline",write:!0}})],_.prototype,"verticalAlignment",void 0),_=f=(0,s._)([(0,a.$)("esri.symbols.TextSymbol3DLayer")],_);const M=_},11506:(e,t,o)=>{o.d(t,{A:()=>S});var r=o(90237),s=o(90629),i=o(10107),l=(o(44208),o(53966),o(87811),o(93223)),n=o(40608),a=o(68197),y=o(69540),p=o(25482),c=o(56507),h=o(83213);let u=class extends(y.A.ClonableMixin(p.A)){constructor(e){super(e),this.type="style",this.placement="begin-end",this.style="arrow",this.color=null}equals(e){return null!=e&&e.placement===this.placement&&e.style===this.style&&(null==this.color&&null==e.color||null!=this.color&&null!=e.color&&this.color.toJSON()===e.color.toJSON())}};(0,r._)([(0,i.MZ)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0,isRequired:!0}}})],u.prototype,"type",void 0),(0,r._)([(0,i.MZ)({type:h.x,json:{default:"begin-end",write:!0}})],u.prototype,"placement",void 0),(0,r._)([(0,i.MZ)({type:h.z,json:{default:"arrow",write:!0}})],u.prototype,"style",void 0),(0,r._)([(0,i.MZ)({type:a.A,json:{type:[c.jz],default:null,write:!0}})],u.prototype,"color",void 0),u=(0,r._)([(0,n.$)("esri.symbols.LineStyleMarker3D")],u);const d=u;var m,b=o(3904),g=o(44633),v=o(20603),f=o(33386),w=o(67222),_=o(78504),A=o(8887);let M=class extends b.A{static{m=this}constructor(e){super(e),this.material=null,this.type="line",this.join="miter",this.cap="butt",this.size=(0,s.PN)(1),this.pattern=null,this.marker=null}clone(){const e={enabled:this.enabled,material:null!=this.material?this.material.clone():null,size:this.size,join:this.join,cap:this.cap,pattern:null!=this.pattern?this.pattern.clone():null,marker:null!=this.marker?this.marker.clone():null};return new m(e)}static fromSimpleLineSymbol(e){const t={enabled:!0,size:e.width??(0,s.PN)(1),cap:e.cap||"butt",join:e.join||"miter",pattern:e.style?new g.A({style:e.style}):null,material:new _.N({color:(e.color||f.ON).clone()}),marker:e.marker?new d({placement:e.marker.placement,style:e.marker.style,color:e.marker.color?.clone()??null}):null};return new m(t)}};(0,r._)([(0,i.MZ)({type:_.N,json:{write:!0}})],M.prototype,"material",void 0),(0,r._)([(0,l.e)({Line:"line"},{readOnly:!0})],M.prototype,"type",void 0),(0,r._)([(0,i.MZ)({type:A.e,json:{write:!0,default:"miter"}})],M.prototype,"join",void 0),(0,r._)([(0,i.MZ)({type:A.M4,json:{write:!0,default:"butt"}})],M.prototype,"cap",void 0),(0,r._)([(0,i.MZ)({...w.p,json:{write:{isRequired:!0}}})],M.prototype,"size",void 0),(0,r._)([(0,i.MZ)(v.v)],M.prototype,"pattern",void 0),(0,r._)([(0,i.MZ)({types:{key:"type",base:d,typeMap:{style:d}},json:{write:!0}})],M.prototype,"marker",void 0),M=m=(0,r._)([(0,n.$)("esri.symbols.LineSymbol3DLayer")],M);const S=M},13313:(e,t,o)=>{o.d(t,{A:()=>b});var r,s=o(90237),i=o(5503),l=o(4718),n=o(10107),a=(o(44208),o(53966),o(93223)),y=o(40608),p=o(58185),c=o(10224),h=o(59483),u=o(4900);const d=i.A.ofType({base:null,key:"type",typeMap:{text:c.A}});let m=r=class extends p.A{constructor(e){super(e),this.verticalOffset=null,this.callout=null,this.styleOrigin=null,this.symbolLayers=new d,this.type="label-3d"}supportsCallout(){return!0}hasVisibleCallout(){return(0,h.LH)(this)}hasVisibleVerticalOffset(){return(0,h.Yq)(this)}clone(){return new r({styleOrigin:(0,l.o8)(this.styleOrigin),symbolLayers:(0,l.o8)(this.symbolLayers),thumbnail:(0,l.o8)(this.thumbnail),callout:(0,l.o8)(this.callout),verticalOffset:(0,l.o8)(this.verticalOffset)})}static fromTextSymbol(e){return new r({symbolLayers:new i.A([c.A.fromTextSymbol(e)])})}};(0,s._)([(0,n.MZ)({type:u.A,json:{write:!0}})],m.prototype,"verticalOffset",void 0),(0,s._)([(0,n.MZ)(h.oG)],m.prototype,"callout",void 0),(0,s._)([(0,n.MZ)({json:{read:!1,write:!1}})],m.prototype,"styleOrigin",void 0),(0,s._)([(0,n.MZ)({type:d})],m.prototype,"symbolLayers",void 0),(0,s._)([(0,a.e)({LabelSymbol3D:"label-3d"},{readOnly:!0})],m.prototype,"type",void 0),m=r=(0,s._)([(0,y.$)("esri.symbols.LabelSymbol3D")],m);const b=m},16264:(e,t,o)=>{o.d(t,{A:()=>y});var r,s=o(90237),i=o(10107),l=(o(44208),o(53966),o(87811),o(40608)),n=o(3955);let a=r=class extends n.A{constructor(e){super(e),this.type="style",this.style="solid"}clone(){return new r({style:this.style})}};(0,s._)([(0,i.MZ)({type:["style"],json:{write:{isRequired:!0}}})],a.prototype,"type",void 0),(0,s._)([(0,i.MZ)({type:["backward-diagonal","cross","diagonal-cross","forward-diagonal","horizontal","none","solid","vertical"],json:{read:!0,write:{isRequired:!0}}})],a.prototype,"style",void 0),a=r=(0,s._)([(0,l.$)("esri.symbols.patterns.StylePattern3D")],a);const y=a},20603:(e,t,o)=>{o.d(t,{r:()=>n,v:()=>a});var r=o(36533),s=o(44633),i=o(3955),l=o(16264);const n={types:{key:"type",base:i.A,typeMap:{style:l.A}},json:{write:!0}},a={types:{key:"type",base:r.A,typeMap:{style:s.A}},json:{write:!0}}},26449:(e,t,o)=>{o.d(t,{A:()=>h});var r,s=o(90237),i=o(10107),l=(o(44208),o(53966),o(87811),o(93223)),n=o(40608),a=o(3904),y=o(51734),p=o(78504);let c=class extends a.A{static{r=this}constructor(e){super(e),this.type="extrude",this.size=1,this.material=null,this.castShadows=!0,this.edges=null}clone(){return new r({edges:this.edges?.clone(),enabled:this.enabled,material:this.material?.clone(),castShadows:this.castShadows,size:this.size})}};(0,s._)([(0,l.e)({Extrude:"extrude"},{readOnly:!0})],c.prototype,"type",void 0),(0,s._)([(0,i.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}},nonNullable:!0})],c.prototype,"size",void 0),(0,s._)([(0,i.MZ)({type:p.N,json:{write:!0}})],c.prototype,"material",void 0),(0,s._)([(0,i.MZ)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],c.prototype,"castShadows",void 0),(0,s._)([(0,i.MZ)(y.J)],c.prototype,"edges",void 0),c=r=(0,s._)([(0,n.$)("esri.symbols.ExtrudeSymbol3DLayer")],c);const h=c},27845:(e,t,o)=>{o.d(t,{A:()=>Z});var r,s=o(90237),i=o(10107),l=(o(44208),o(53966),o(87811),o(93223)),n=o(40608),a=o(3904),y=o(51734),p=o(44633),c=o(16264),h=o(20603),u=o(33386),d=(o(49186),o(51850)),m=o(78504);let b=r=class extends m.N{constructor(e){super(e),this.colorMixMode=null}clone(){const e={color:this.color?.clone()??null,emissiveFactor:this.emissiveFactor?(0,d.o8)(this.emissiveFactor):null,colorMixMode:this.colorMixMode};return new r(e)}};(0,s._)([(0,l.e)({multiply:"multiply",replace:"replace",tint:"tint"})],b.prototype,"colorMixMode",void 0),b=r=(0,s._)([(0,n.$)("esri.symbols.support.Symbol3DFillMaterial")],b);var g,v=o(68197),f=o(25482),w=o(90629),_=o(67222),A=o(8887);let M=g=class extends f.A{constructor(e){super(e),this.color=new v.A([0,0,0,1]),this.size=(0,w.PN)(1),this.pattern=null,this.patternCap="butt"}clone(){const e={color:null!=this.color?this.color.clone():null,size:this.size,pattern:null!=this.pattern?this.pattern.clone():null,patternCap:this.patternCap};return new g(e)}};var S;(0,s._)([(0,i.MZ)((0,_.E)({colorRequiredOnWrite:!0}))],M.prototype,"color",void 0),(0,s._)([(0,i.MZ)({..._.p,json:{write:{isRequired:!0}}})],M.prototype,"size",void 0),(0,s._)([(0,i.MZ)(h.v)],M.prototype,"pattern",void 0),(0,s._)([(0,i.MZ)({type:A.M4,json:{default:"butt",write:{overridePolicy(){return{enabled:null!=this.pattern}}}}})],M.prototype,"patternCap",void 0),M=g=(0,s._)([(0,n.$)("esri.symbols.support.Symbol3DOutline")],M);let x=class extends a.A{static{S=this}constructor(e){super(e),this.type="fill",this.material=null,this.pattern=null,this.castShadows=!0,this.outline=null,this.edges=null}clone(){const e={edges:null!=this.edges?this.edges.clone():null,enabled:this.enabled,material:null!=this.material?this.material.clone():null,pattern:null!=this.pattern?this.pattern.clone():null,castShadows:this.castShadows,outline:null!=this.outline?this.outline.clone():null};return new S(e)}static fromSimpleFillSymbol(e){const t=e.outline&&e.outline.style&&"solid"!==e.outline.style?new p.A({style:e.outline.style}):null,o={size:e.outline?.width??0,color:(e.outline?.color??u.ON).clone(),pattern:t};return t&&e.outline?.cap&&(o.patternCap=e.outline.cap),new S({material:new b({color:(e.color??u.u7).clone()}),pattern:e.style&&"solid"!==e.style?new c.A({style:e.style}):null,outline:o})}};(0,s._)([(0,l.e)({Fill:"fill"},{readOnly:!0})],x.prototype,"type",void 0),(0,s._)([(0,i.MZ)({type:b,json:{write:!0}})],x.prototype,"material",void 0),(0,s._)([(0,i.MZ)(h.r)],x.prototype,"pattern",void 0),(0,s._)([(0,i.MZ)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],x.prototype,"castShadows",void 0),(0,s._)([(0,i.MZ)({type:M,json:{write:!0}})],x.prototype,"outline",void 0),(0,s._)([(0,i.MZ)(y.J)],x.prototype,"edges",void 0),x=S=(0,s._)([(0,n.$)("esri.symbols.FillSymbol3DLayer")],x);const Z=x},33386:(e,t,o)=>{o.d(t,{ON:()=>s,U9:()=>l,u7:()=>i});var r=o(68197);const s=new r.A("white"),i=new r.A([255,255,255,0]);function l(e){return 0===e.r&&0===e.g&&0===e.b}},33910:(e,t,o)=>{o.d(t,{dp:()=>U,$y:()=>O,wk:()=>z,Y7:()=>D,wC:()=>k,Ac:()=>$,Bu:()=>P,Es:()=>N,q8:()=>C,em:()=>R,Rv:()=>F,xK:()=>T,On:()=>q});var r,s=o(56507),i=o(90360),l=o(40863),n=o(13313),a=o(97887),y=o(68548),p=o(90237),c=o(4718),h=o(90629),u=o(10107),d=(o(44208),o(53966),o(93223)),m=o(40608),b=o(65851),g=o(77040);let v=r=class extends b.A{constructor(...e){super(...e),this.type="picture-fill",this.url=null,this.xscale=1,this.yscale=1,this.width=12,this.height=12,this.xoffset=0,this.yoffset=0,this.source=null}normalizeCtorArgs(e,t,o,r){if(e&&"string"!=typeof e&&null==e.imageData)return e;const s={};return e&&(s.url=e),t&&(s.outline=t),null!=o&&(s.width=(0,h.cr)(o)),null!=r&&(s.height=(0,h.cr)(r)),s}clone(){const e=new r({color:(0,c.o8)(this.color),height:this.height,outline:(0,c.o8)(this.outline),url:this.url,width:this.width,xoffset:this.xoffset,xscale:this.xscale,yoffset:this.yoffset,yscale:this.yscale});return e._set("source",(0,c.o8)(this.source)),e}hash(){return`${super.hash()}.${this.color?.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`}};(0,p._)([(0,d.e)({esriPFS:"picture-fill"},{readOnly:!0})],v.prototype,"type",void 0),(0,p._)([(0,u.MZ)(g.ku)],v.prototype,"url",void 0),(0,p._)([(0,u.MZ)({type:Number,json:{write:!0}})],v.prototype,"xscale",void 0),(0,p._)([(0,u.MZ)({type:Number,json:{write:!0}})],v.prototype,"yscale",void 0),(0,p._)([(0,u.MZ)({type:Number,cast:h.cr,json:{write:!0}})],v.prototype,"width",void 0),(0,p._)([(0,u.MZ)({type:Number,cast:h.cr,json:{write:!0}})],v.prototype,"height",void 0),(0,p._)([(0,u.MZ)({type:Number,cast:h.cr,json:{write:!0}})],v.prototype,"xoffset",void 0),(0,p._)([(0,u.MZ)({type:Number,cast:h.cr,json:{write:!0}})],v.prototype,"yoffset",void 0),(0,p._)([(0,u.MZ)(g.k7)],v.prototype,"source",void 0),v=r=(0,p._)([(0,m.$)("esri.symbols.PictureFillSymbol")],v);const f=v;var w=o(58592),_=o(75981),A=o(65365),M=o(94985),S=o(31593),x=o(53930),Z=o(20378),j=o(68249),L=o(37757);function O(e){if(!e)return!1;switch(e.type){case"picture-fill":case"picture-marker":case"simple-fill":case"simple-line":case"simple-marker":case"text":case"cim":return!0;default:return!1}}function z(e){switch(e?.type){case"label-3d":case"line-3d":case"mesh-3d":case"point-3d":case"polygon-3d":return!0;default:return!1}}const N={base:Z.A,key:"type",typeMap:{"simple-fill":M.A,"picture-fill":f,"picture-marker":w.A,"simple-line":S.A,"simple-marker":x.A,text:j.A,"label-3d":n.A,"line-3d":a.A,"mesh-3d":y.A,"point-3d":_.A,"polygon-3d":A.A,"web-style":L.A,cim:l.A},errorContext:"symbol"},k=(Z.A,M.A,l.A,{base:Z.A,key:"type",typeMap:{"picture-marker":w.A,"simple-marker":x.A,"point-3d":_.A,cim:l.A},errorContext:"symbol"}),D={base:Z.A,key:"type",typeMap:{"simple-line":S.A,"line-3d":a.A,cim:l.A},errorContext:"symbol"},$={base:Z.A,key:"type",typeMap:{"simple-fill":M.A,"picture-fill":f,"polygon-3d":A.A,cim:l.A},errorContext:"symbol"},C={base:Z.A,key:"type",typeMap:{"picture-marker":w.A,"simple-marker":x.A,text:j.A,"web-style":L.A,cim:l.A},errorContext:"symbol"},P=(0,i.C)({types:N}),T={base:Z.A,key:"type",typeMap:{"simple-fill":M.A,"picture-fill":f,"picture-marker":w.A,"simple-line":S.A,"simple-marker":x.A,text:j.A,"line-3d":a.A,"mesh-3d":y.A,"point-3d":_.A,"polygon-3d":A.A,"web-style":L.A,cim:l.A},errorContext:"symbol"},R={base:Z.A,key:"type",typeMap:{text:j.A,"label-3d":n.A},errorContext:"symbol"},q=(Z.A,n.A,a.A,y.A,_.A,A.A,L.A,{base:Z.A,key:"type",typeMap:{"line-3d":a.A,"mesh-3d":y.A,"point-3d":_.A,"polygon-3d":A.A,"web-style":L.A,cim:l.A},errorContext:"symbol"}),F={base:Z.A,key:"type",typeMap:{"label-3d":n.A},errorContext:"symbol"},U=(0,s.aq)(N)},34723:(e,t,o)=>{o.d(t,{A:()=>u});var r,s=o(90237),i=o(68197),l=o(4718),n=o(10107),a=o(56507),y=o(93223),p=o(40608),c=o(3904);let h=class extends c.A{static{r=this}constructor(e){super(e),this.color=d.clone(),this.type="water",this.waterbodySize="medium",this.waveDirection=null,this.waveStrength="moderate"}clone(){return new r({color:(0,l.o8)(this.color),waterbodySize:this.waterbodySize,waveDirection:this.waveDirection,waveStrength:this.waveStrength})}};(0,s._)([(0,n.MZ)({type:i.A,nonNullable:!0,json:{type:[a.jz],write:(e,t,o)=>t[o]=e.toArray(i.A.AlphaMode.UNLESS_OPAQUE),default:()=>d.clone(),defaultEquals:e=>e.toCss(!0)===d.toCss(!0)}})],h.prototype,"color",void 0),(0,s._)([(0,y.e)({Water:"water"},{readOnly:!0})],h.prototype,"type",void 0),(0,s._)([(0,n.MZ)({type:["small","medium","large"],json:{write:!0,default:"medium"}})],h.prototype,"waterbodySize",void 0),(0,s._)([(0,n.MZ)({type:Number,json:{write:!0,default:null}})],h.prototype,"waveDirection",void 0),(0,s._)([(0,n.MZ)({type:["calm","rippled","slight","moderate"],json:{write:!0,default:"moderate"}})],h.prototype,"waveStrength",void 0),h=r=(0,s._)([(0,p.$)("esri.symbols.WaterSymbol3DLayer")],h);const u=h,d=new i.A([0,119,190])},36533:(e,t,o)=>{o.d(t,{A:()=>a});var r=o(90237),s=o(25482),i=o(10107),l=(o(44208),o(53966),o(87811),o(40608));let n=class extends s.A{constructor(e){super(e)}clone(){throw new Error("Subclasses of LinePattern3D should implement their own clone method.")}};(0,r._)([(0,i.MZ)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),n=(0,r._)([(0,l.$)("esri.symbols.patterns.LinePattern3D")],n);const a=n},37757:(e,t,o)=>{o.d(t,{A:()=>b});var r,s=o(90237),i=o(49186),l=o(53966),n=o(74887),a=o(10107),y=(o(44208),o(87811),o(93223)),p=o(40608),c=o(20655),h=o(97159),u=o(20378),d=o(57212);let m=r=class extends u.A{constructor(e){super(e),this.color=null,this.styleName=null,this.portal=null,this.styleUrl=null,this.thumbnail=null,this.name=null,this.type="web-style"}get _fetchCacheKey(){const e=null!=this.portal?this.portal:c.A.getDefault(),t=e.user?e.user.username:null;return`${this.styleName}:${this.styleUrl}:${this.name}:${t}:${e.url}`}read(e,t){this.portal=t?.portal,super.read(e,t)}clone(){return new r({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}fetchSymbol(e){const t=e&&"acceptedFormats"in e?e.acceptedFormats:["web"];return this._fetchSymbol({...e,acceptedFormats:t})}async fetchCIMSymbol(e){const t=await this.fetchSymbol({...e,acceptedFormats:["cim"]});if("cim"!==t?.type)throw new i.A("webstylesymbol:fetchCIMSymbol","Resolved web style symbol is not of type 'cim'");return t}async _fetchSymbol(e){const t=null!=e?e.cache:null,r=t?this._fetchCacheKey:null;if(null!=t){const e=r&&t.get(r);if(e)return e.clone()}const{resolveWebStyleSymbol:s}=await o.e(7883).then(o.bind(o,27883));(0,n.Te)(e);const i=s(this,{portal:this.portal},e);i.catch((e=>{l.A.getLogger(this).error("#fetchSymbol()","Failed to create symbol from style",e)}));const a=await i;return null!=t&&t.set(r,a.clone()),a}};(0,s._)([(0,a.MZ)({json:{write:!1}})],m.prototype,"color",void 0),(0,s._)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"styleName",void 0),(0,s._)([(0,a.MZ)({type:c.A,json:{write:!1}})],m.prototype,"portal",void 0),(0,s._)([(0,a.MZ)({type:String,json:{read:h.r,write:h.w}})],m.prototype,"styleUrl",void 0),(0,s._)([(0,a.MZ)({type:d.V,json:{read:!1}})],m.prototype,"thumbnail",void 0),(0,s._)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,s._)([(0,y.e)({styleSymbolReference:"web-style"},{readOnly:!0})],m.prototype,"type",void 0),(0,s._)([(0,a.MZ)()],m.prototype,"_fetchCacheKey",null),m=r=(0,s._)([(0,p.$)("esri.symbols.WebStyleSymbol")],m);const b=m},39065:(e,t,o)=>{o.d(t,{A:()=>y});var r,s=o(90237),i=(o(53966),o(44208),o(87811),o(49186),o(93223)),l=o(40608),n=o(4792);let a=r=class extends n.A{constructor(e){super(e),this.type="solid"}clone(){return new r(this.cloneProperties())}};(0,s._)([(0,i.e)({solid:"solid"},{readOnly:!0})],a.prototype,"type",void 0),a=r=(0,s._)([(0,l.$)("esri.symbols.edges.SolidEdges3D")],a);const y=a},40863:(e,t,o)=>{o.d(t,{A:()=>m});var r,s=o(90237),i=o(4718),l=o(799),n=o(10107),a=(o(44208),o(53966),o(93223)),y=o(36005),p=o(40608),c=o(43937),h=o(30524),u=o(20378);let d=r=class extends u.A{constructor(e){super(e),this.data=null,this.type="cim"}readData(e,t){return t}writeData(e,t){Object.assign(t,e)}async collectRequiredFields(e,t){if("CIMSymbolReference"===this.data?.type){const o=this.data.primitiveOverrides;if(o){const r=o.map((o=>{const r=o.valueExpressionInfo;return r?(0,h.Dx)(e,t,r.expression):null}));await Promise.all(r)}}}clone(){return new r({data:(0,i.o8)(this.data)})}hash(){return(0,l.Wm)(JSON.stringify(this.data)).toString()}};(0,s._)([(0,n.MZ)({json:{write:!1}})],d.prototype,"color",void 0),(0,s._)([(0,n.MZ)({json:{write:!0}})],d.prototype,"data",void 0),(0,s._)([(0,y.w)("data",["symbol"])],d.prototype,"readData",null),(0,s._)([(0,c.K)("data",{})],d.prototype,"writeData",null),(0,s._)([(0,a.e)({CIMSymbolReference:"cim"},{readOnly:!0})],d.prototype,"type",void 0),d=r=(0,s._)([(0,p.$)("esri.symbols.CIMSymbol")],d);const m=d},44633:(e,t,o)=>{o.d(t,{A:()=>h});var r,s=o(90237),i=o(66552),l=o(10107),n=(o(44208),o(53966),o(87811),o(93223)),a=o(40608),y=o(36533);const p=(0,i.O)()({dash:"dash","dash-dot":"dash-dot","dash-dot-dot":"long-dash-dot-dot",dot:"dot","long-dash":"long-dash","long-dash-dot":"long-dash-dot",null:"none","short-dash":"short-dash","short-dash-dot":"short-dash-dot","short-dash-dot-dot":"short-dash-dot-dot","short-dot":"short-dot",solid:"solid"});let c=r=class extends y.A{constructor(e){super(e),this.type="style",this.style="solid"}clone(){const e={style:this.style};return new r(e)}};(0,s._)([(0,l.MZ)({type:["style"],json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),(0,s._)([(0,n.e)(p),(0,l.MZ)({type:["dash","dash-dot","dot","long-dash","long-dash-dot","long-dash-dot-dot","none","short-dash","short-dash-dot","short-dash-dot-dot","short-dot","solid"],json:{write:{isRequired:!0}}})],c.prototype,"style",void 0),c=r=(0,s._)([(0,a.$)("esri.symbols.patterns.LineStylePattern3D")],c);const h=c},51216:(e,t,o)=>{o.d(t,{A:()=>w});var r,s=o(90237),i=o(10107),l=(o(44208),o(53966),o(87811),o(93223)),n=o(40608),a=o(3904),y=o(66552),p=o(25482),c=o(97159);const h=(0,y.O)()({sphere:"sphere",cylinder:"cylinder",cube:"cube",cone:"cone",diamond:"diamond",tetrahedron:"tetrahedron",invertedCone:"inverted-cone"});let u=r=class extends p.A{clone(){return new r({href:this.href,primitive:this.primitive})}};(0,s._)([(0,i.MZ)({type:String,json:{read:c.r,write:c.w}})],u.prototype,"href",void 0),(0,s._)([(0,l.e)(h)],u.prototype,"primitive",void 0),u=r=(0,s._)([(0,n.$)("esri.symbols.support.ObjectSymbol3DLayerResource")],u);var d,m=o(69622);let b=d=class extends m.A{constructor(){super(...arguments),this.x=0,this.y=0,this.z=0}clone(){return new d({x:this.x,y:this.y,z:this.z})}};(0,s._)([(0,i.MZ)({type:Number})],b.prototype,"x",void 0),(0,s._)([(0,i.MZ)({type:Number})],b.prototype,"y",void 0),(0,s._)([(0,i.MZ)({type:Number})],b.prototype,"z",void 0),b=d=(0,s._)([(0,n.$)("esri.symbols.support.Symbol3DAnchorPosition3D")],b);var g,v=o(78504);let f=class extends a.A{static{g=this}constructor(e){super(e),this.material=null,this.castShadows=!0,this.resource=null,this.type="object",this.width=void 0,this.height=void 0,this.depth=void 0,this.anchor=void 0,this.anchorPosition=void 0,this.heading=void 0,this.tilt=void 0,this.roll=void 0}clone(){return new g({heading:this.heading,tilt:this.tilt,roll:this.roll,anchor:this.anchor,anchorPosition:this.anchorPosition?.clone(),depth:this.depth,enabled:this.enabled,height:this.height,material:this.material?.clone()??null,castShadows:this.castShadows,resource:this.resource?.clone(),width:this.width})}get isPrimitive(){return!this.resource||"string"!=typeof this.resource.href}};(0,s._)([(0,i.MZ)({type:v.N,json:{write:!0}})],f.prototype,"material",void 0),(0,s._)([(0,i.MZ)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],f.prototype,"castShadows",void 0),(0,s._)([(0,i.MZ)({type:u,json:{write:!0}})],f.prototype,"resource",void 0),(0,s._)([(0,l.e)({Object:"object"},{readOnly:!0})],f.prototype,"type",void 0),(0,s._)([(0,i.MZ)({type:Number,json:{write:!0}})],f.prototype,"width",void 0),(0,s._)([(0,i.MZ)({type:Number,json:{write:!0}})],f.prototype,"height",void 0),(0,s._)([(0,i.MZ)({type:Number,json:{write:!0}})],f.prototype,"depth",void 0),(0,s._)([(0,l.e)({center:"center",top:"top",bottom:"bottom",origin:"origin",relative:"relative"},{default:"origin"})],f.prototype,"anchor",void 0),(0,s._)([(0,i.MZ)({type:b,json:{type:[Number],read:{reader:e=>new b({x:e[0],y:e[1],z:e[2]})},write:{writer:(e,t)=>{t.anchorPosition=[e.x,e.y,e.z]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],f.prototype,"anchorPosition",void 0),(0,s._)([(0,i.MZ)({type:Number,json:{write:!0}})],f.prototype,"heading",void 0),(0,s._)([(0,i.MZ)({type:Number,json:{write:!0}})],f.prototype,"tilt",void 0),(0,s._)([(0,i.MZ)({type:Number,json:{write:!0}})],f.prototype,"roll",void 0),(0,s._)([(0,i.MZ)({readOnly:!0})],f.prototype,"isPrimitive",null),f=g=(0,s._)([(0,n.$)("esri.symbols.ObjectSymbol3DLayer")],f);const w=f},51734:(e,t,o)=>{o.d(t,{J:()=>c});var r,s=o(4792),i=o(90237),l=(o(53966),o(44208),o(87811),o(49186),o(93223)),n=o(40608);let a=r=class extends s.A{constructor(e){super(e),this.type="sketch"}clone(){return new r(this.cloneProperties())}};(0,i._)([(0,l.e)({sketch:"sketch"},{readOnly:!0})],a.prototype,"type",void 0),a=r=(0,i._)([(0,n.$)("esri.symbols.edges.SketchEdges3D")],a);const y=a;var p=o(39065);const c={types:{key:"type",base:s.A,typeMap:{solid:p.A,sketch:y}},json:{write:!0}}},52106:(e,t,o)=>{o.d(t,{A:()=>f});var r,s=o(90237),i=o(13874),l=o(69540),n=o(51447),a=o(25482),y=o(53966),p=o(36708),c=o(24326),h=o(10107),u=(o(44208),o(87811),o(40608)),d=o(65864),m=o(50498),b=o(33910);function g(e){if(null==e)return null;const t={};for(const o in e){const r=e[o];r&&(t[o]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let v=class extends(l.A.ClonableMixin(a.A)){static{r=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.popupTemplate=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,c.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,n.eF)(y.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new r({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const o of[t,this.sourceLayer,this.layer])if(o){if("popupTemplate"in o&&o.popupTemplate)return o.popupTemplate;if(e&&"defaultPopupTemplate"in o&&null!=o.defaultPopupTemplate)return o.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const o=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",o,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:g(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:a.A.isSerializable(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const o={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",o,o,e.action)}}_notifyLayer(e,t,o,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const s={graphic:this,property:e,oldValue:t,newValue:o};"origin-transform"===e&&(s.action=r),"attributes"===e&&(s.attributeName=r),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)((()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0),(({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())})),(0,p.z7)((()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0),(()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)}),{equals:(e,t)=>e===t,sync:!0})])}};(0,s._)([(0,h.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const o in e){const r=(0,d.rS)(e[o]);r&&(t[o]=r)}return 0!==Object.keys(t).length?t:null}}})],v.prototype,"aggregateGeometries",null),(0,s._)([(0,h.MZ)({value:null})],v.prototype,"attributes",null),(0,s._)([(0,h.MZ)({value:null,types:m.yR,json:{read:d.rS}})],v.prototype,"geometry",null),(0,s._)([(0,h.MZ)({type:Boolean})],v.prototype,"isAggregate",void 0),(0,s._)([(0,h.MZ)({clonable:"reference"})],v.prototype,"layer",void 0),(0,s._)([(0,h.MZ)({clonable:"reference"})],v.prototype,"origin",void 0),(0,s._)([(0,h.MZ)({type:i.A})],v.prototype,"popupTemplate",void 0),(0,s._)([(0,h.MZ)({clonable:"reference"})],v.prototype,"sourceLayer",void 0),(0,s._)([(0,h.MZ)({value:null,types:b.Es})],v.prototype,"symbol",null),(0,s._)([(0,h.MZ)({clonable:!1,json:{read:!1,write:!1}})],v.prototype,"_version",void 0),(0,s._)([(0,h.MZ)({type:Boolean,value:!0})],v.prototype,"visible",null),v=r=(0,s._)([(0,u.$)("esri.Graphic")],v);const f=v},57212:(e,t,o)=>{o.d(t,{V:()=>a});var r,s=o(90237),i=o(69622),l=o(10107),n=(o(44208),o(53966),o(87811),o(40608));let a=r=class extends i.A{constructor(){super(...arguments),this.url=""}clone(){return new r({url:this.url})}};(0,s._)([(0,l.MZ)({type:String})],a.prototype,"url",void 0),a=r=(0,s._)([(0,n.$)("esri.symbols.support.Thumbnail")],a)},58185:(e,t,o)=>{o.d(t,{A:()=>N});var r=o(90237),s=o(5503),i=o(62885),l=o(53966),n=o(84952),a=o(67076),y=o(10107),p=o(79901),c=(o(44208),o(87811),o(36005)),h=o(40608),u=o(43937),d=o(20655),m=o(97159),b=o(26449),g=o(27845),v=o(80138),f=o(11506),w=o(51216),_=o(66525),A=o(20378),M=o(3904),S=o(10224),x=o(34723),Z=o(98751),j=o(57212);const L={icon:v.A,object:w.A,line:f.A,path:_.A,fill:g.A,extrude:b.A,text:S.A,water:x.A},O=s.A.ofType({base:M.A,key:"type",typeMap:L,errorContext:"symbol-layer"});let z=class extends A.A{constructor(e){super(e),this.styleOrigin=null,this.thumbnail=null,this.type=null;const t=this.__accessor__&&this.__accessor__.metadata&&this.__accessor__.metadata.symbolLayers,o=t?.type,r=o||s.A;this._set("symbolLayers",new r)}get color(){return null}set color(e){this.constructed&&l.A.getLogger(this).error("Symbol3D does not support colors on the symbol level. Colors may be set on individual symbol layer materials instead.")}set symbolLayers(e){(0,i.V)(e,this._get("symbolLayers"))}readStyleOrigin(e,t,o){if(e.styleUrl&&e.name){const t=(0,m.f)(e.styleUrl,o);return new Z.A({styleUrl:t,name:e.name})}if(e.styleName&&e.name)return new Z.A({portal:o?.portal||d.A.getDefault(),styleName:e.styleName,name:e.name});o?.messages&&o.messages.push(new a.A("symbol3d:incomplete-style-origin","Style origin requires either a 'styleUrl' or 'styleName' and a 'name' property",{context:o,definition:e}))}writeStyleOrigin(e,t,o,r){if(e.styleUrl&&e.name){let o=(0,m.t)(e.styleUrl,r);(0,n.oP)(o)&&(o=(0,n.S8)(o)),t.styleOrigin={styleUrl:o,name:e.name}}else e.styleName&&e.name&&(e.portal&&r?.portal&&!(0,n.ut)(e.portal.restUrl,r.portal.restUrl)?r?.messages&&r.messages.push(new a.A("symbol:cross-portal","The symbol style origin cannot be persisted because it refers to an item on a different portal than the one being saved to.",{symbol:this})):t.styleOrigin={styleName:e.styleName,name:e.name})}normalizeCtorArgs(e){return e instanceof M.A||e&&L[e.type]?{symbolLayers:[e]}:Array.isArray(e)?{symbolLayers:e}:e}};(0,r._)([(0,y.MZ)({json:{read:!1,write:!1}})],z.prototype,"color",null),(0,r._)([(0,y.MZ)({type:O,nonNullable:!0,json:{write:!0}}),(0,p.w)(i.H)],z.prototype,"symbolLayers",null),(0,r._)([(0,y.MZ)({type:Z.A})],z.prototype,"styleOrigin",void 0),(0,r._)([(0,c.w)("styleOrigin")],z.prototype,"readStyleOrigin",null),(0,r._)([(0,u.K)("styleOrigin",{"styleOrigin.styleUrl":{type:String},"styleOrigin.styleName":{type:String},"styleOrigin.name":{type:String}})],z.prototype,"writeStyleOrigin",null),(0,r._)([(0,y.MZ)({type:j.V,json:{read:!1}})],z.prototype,"thumbnail",void 0),(0,r._)([(0,y.MZ)({type:["point-3d","line-3d","polygon-3d","mesh-3d","label-3d"],readOnly:!0})],z.prototype,"type",void 0),z=(0,r._)([(0,h.$)("esri.symbols.Symbol3D")],z);const N=z},58592:(e,t,o)=>{o.d(t,{A:()=>d});var r,s=o(90237),i=o(4718),l=o(90629),n=o(10107),a=(o(44208),o(53966),o(93223)),y=o(36005),p=o(40608),c=o(89420),h=o(77040);let u=r=class extends c.A{constructor(...e){super(...e),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(e,t,o){if(e&&"string"!=typeof e&&null==e.imageData)return e;const r={};return e&&(r.url=e),null!=t&&(r.width=(0,l.cr)(t)),null!=o&&(r.height=(0,l.cr)(o)),r}readHeight(e,t){return t.size||e}readWidth(e,t){return t.size||e}clone(){const e=new r({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return e._set("source",(0,i.o8)(this.source)),e}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,s._)([(0,n.MZ)({json:{write:!1}})],u.prototype,"color",void 0),(0,s._)([(0,a.e)({esriPMS:"picture-marker"},{readOnly:!0})],u.prototype,"type",void 0),(0,s._)([(0,n.MZ)(h.ku)],u.prototype,"url",void 0),(0,s._)([(0,n.MZ)(h.k7)],u.prototype,"source",void 0),(0,s._)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],u.prototype,"height",void 0),(0,s._)([(0,y.w)("height",["height","size"])],u.prototype,"readHeight",null),(0,s._)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],u.prototype,"width",void 0),(0,s._)([(0,n.MZ)({json:{write:!1}})],u.prototype,"size",void 0),u=r=(0,s._)([(0,p.$)("esri.symbols.PictureMarkerSymbol")],u);const d=u},59483:(e,t,o)=>{o.d(t,{LH:()=>l,Yq:()=>i,oG:()=>n});var r=o(4595),s=o(8893);function i(e){if(!e)return!1;const t=e.verticalOffset;return!(!t||t.screenLength<=0||null!=t.maxWorldLength&&t.maxWorldLength<=0)}function l(e){if(!e||!e.supportsCallout||!e.supportsCallout())return!1;const t=e.callout;return!!t?.visible&&!!i(e)}const n={types:{key:"type",base:r.A,typeMap:{line:s.A}},json:{write:!0}}},62885:(e,t,o)=>{o.d(t,{H:()=>i,V:()=>s});var r=o(5503);function s(e,t,o=r.A){return t||(t=new o),t===e||(t.removeAll(),(s=e)&&(Array.isArray(s)||"items"in s&&Array.isArray(s.items))?t.addMany(e):e&&t.add(e)),t;var s}function i(e){return e}},65365:(e,t,o)=>{o.d(t,{A:()=>M});var r,s=o(90237),i=o(5503),l=o(51447),n=o(4718),a=o(53966),y=o(36708),p=o(10107),c=(o(44208),o(93223)),h=o(40608),u=o(26449),d=o(27845),m=o(80138),b=o(11506),g=o(51216),v=o(58185),f=o(10224),w=o(34723);const _=i.A.ofType({base:null,key:"type",typeMap:{extrude:u.A,fill:d.A,icon:m.A,line:b.A,object:g.A,text:f.A,water:w.A}});let A=r=class extends v.A{constructor(e){super(e),this.symbolLayers=new _,this.type="polygon-3d"}initialize(){const e=e=>{"line"===e.type&&(0,l.io)(a.A.getLogger(this),"LineSymbol3DLayer can not be used as a SymbolLayer with a PolygonSymbol3D symbol anymore.",{replacement:"Use FillSymbol3DLayer.outline instead.",version:"4.28"}),"text"===e.type&&(0,l.io)(a.A.getLogger(this),"TextSymbol3DLayer can not be used as a SymbolLayer with a PolygonSymbol3D symbol anymore.",{replacement:"Use Labels instead.",version:"4.28"})};for(const t of this.symbolLayers)e(t);this.addHandles((0,y.on)((()=>this.symbolLayers),"after-add",(({item:t})=>e(t)),y.OH))}clone(){return new r({styleOrigin:(0,n.o8)(this.styleOrigin),symbolLayers:(0,n.o8)(this.symbolLayers),thumbnail:(0,n.o8)(this.thumbnail)})}static fromJSON(e){const t=new r;if(t.read(e),2===t.symbolLayers.length&&"fill"===t.symbolLayers.at(0).type&&"line"===t.symbolLayers.at(1).type){const o=t.symbolLayers.at(0),r=t.symbolLayers.at(1);!r.enabled||e.symbolLayers?.[1]&&!1===e.symbolLayers[1].enable||(o.outline={size:r.size,color:null!=r.material?r.material.color:null}),t.symbolLayers.removeAt(1)}return t}static fromSimpleFillSymbol(e){return new r({symbolLayers:new i.A([d.A.fromSimpleFillSymbol(e)])})}};(0,s._)([(0,p.MZ)({type:_,json:{write:!0}})],A.prototype,"symbolLayers",void 0),(0,s._)([(0,c.e)({PolygonSymbol3D:"polygon-3d"},{readOnly:!0})],A.prototype,"type",void 0),A=r=(0,s._)([(0,h.$)("esri.symbols.PolygonSymbol3D")],A);const M=A},66525:(e,t,o)=>{o.d(t,{A:()=>u});var r,s=o(90237),i=o(10107),l=(o(44208),o(53966),o(87811),o(93223)),n=o(36005),a=o(40608),y=o(3904),p=o(78504),c=o(8887);let h=class extends y.A{static{r=this}constructor(e){super(e),this.material=null,this.castShadows=!0,this.type="path",this.profile="circle",this.join="miter",this.cap="butt",this.width=void 0,this.height=void 0,this.anchor="center",this.profileRotation="all"}readWidth(e,t){return null!=e?e:null==t.height&&null!=t.size?t.size:void 0}readHeight(e,t){return null!=e?e:null==t.width&&null!=t.size?t.size:void 0}clone(){return new r({enabled:this.enabled,material:null!=this.material?this.material.clone():null,castShadows:this.castShadows,profile:this.profile,join:this.join,cap:this.cap,width:this.width,height:this.height,profileRotation:this.profileRotation,anchor:this.anchor})}};(0,s._)([(0,i.MZ)({type:p.N,json:{write:!0}})],h.prototype,"material",void 0),(0,s._)([(0,i.MZ)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],h.prototype,"castShadows",void 0),(0,s._)([(0,l.e)({Path:"path"},{readOnly:!0})],h.prototype,"type",void 0),(0,s._)([(0,i.MZ)({type:["circle","quad"],json:{write:!0,default:"circle"}})],h.prototype,"profile",void 0),(0,s._)([(0,i.MZ)({type:c.e,json:{write:!0,default:"miter"}})],h.prototype,"join",void 0),(0,s._)([(0,i.MZ)({type:c.Nv,json:{write:!0,default:"butt"}})],h.prototype,"cap",void 0),(0,s._)([(0,i.MZ)({type:Number,json:{write:{enabled:!0,target:{width:{type:Number},size:{type:Number}}}}})],h.prototype,"width",void 0),(0,s._)([(0,n.w)("width",["width","size","height"])],h.prototype,"readWidth",null),(0,s._)([(0,i.MZ)({type:Number,json:{write:!0}})],h.prototype,"height",void 0),(0,s._)([(0,n.w)("height",["height","size","width"])],h.prototype,"readHeight",null),(0,s._)([(0,i.MZ)({type:["center","bottom","top"],json:{write:!0,default:"center"}})],h.prototype,"anchor",void 0),(0,s._)([(0,i.MZ)({type:["heading","all"],json:{write:!0,default:"all"}})],h.prototype,"profileRotation",void 0),h=r=(0,s._)([(0,a.$)("esri.symbols.PathSymbol3DLayer")],h);const u=h},67222:(e,t,o)=>{o.d(t,{E:()=>y,p:()=>p});var r=o(68197),s=o(90629),i=o(56507),l=o(78553);function n(e,t){const o=null!=t.transparency?(0,l.D)(t.transparency):1,s=t.color;return s&&Array.isArray(s)?new r.A([s[0]||0,s[1]||0,s[2]||0,o]):null}function a(e,t){t.color=e.toJSON().slice(0,3);const o=(0,l.p)(e.a);0!==o&&(t.transparency=o)}function y(e){return{type:r.A,nonNullable:e?.nonNullable,json:{type:[i.jz],default:null,read:{source:["color","transparency"],reader:n},write:{target:{color:{type:[i.jz],isRequired:e?.colorRequiredOnWrite},transparency:{type:i.jz}},writer:a}}}}const p={type:Number,cast:s.cr,json:{write:!0}}},68548:(e,t,o)=>{o.d(t,{A:()=>d});var r,s=o(90237),i=o(5503),l=o(4718),n=o(10107),a=(o(44208),o(53966),o(93223)),y=o(40608),p=o(27845),c=o(58185);const h=i.A.ofType({base:null,key:"type",typeMap:{fill:p.A}});let u=r=class extends c.A{constructor(e){super(e),this.symbolLayers=new h,this.type="mesh-3d"}clone(){return new r({styleOrigin:(0,l.o8)(this.styleOrigin),symbolLayers:(0,l.o8)(this.symbolLayers),thumbnail:(0,l.o8)(this.thumbnail)})}static fromSimpleFillSymbol(e){return new r({symbolLayers:new i.A([p.A.fromSimpleFillSymbol(e)])})}};(0,s._)([(0,n.MZ)({type:h})],u.prototype,"symbolLayers",void 0),(0,s._)([(0,a.e)({MeshSymbol3D:"mesh-3d"},{readOnly:!0})],u.prototype,"type",void 0),u=r=(0,s._)([(0,y.$)("esri.symbols.MeshSymbol3D")],u);const d=u},75981:(e,t,o)=>{o.d(t,{A:()=>w});var r,s=o(90237),i=o(68197),l=o(5503),n=o(4718),a=o(10107),y=(o(44208),o(53966),o(93223)),p=o(40608),c=o(80138),h=o(51216),u=o(58185),d=o(10224),m=o(59483),b=o(8893),g=o(4900);const v=l.A.ofType({base:null,key:"type",typeMap:{icon:c.A,object:h.A,text:d.A}});let f=r=class extends u.A{constructor(e){super(e),this.verticalOffset=null,this.callout=null,this.symbolLayers=new v,this.type="point-3d"}supportsCallout(){if((this.symbolLayers?this.symbolLayers.length:0)<1)return!1;for(const e of this.symbolLayers.items)switch(e.type){case"icon":case"text":case"object":continue;default:return!1}return!0}hasVisibleCallout(){return(0,m.LH)(this)}hasVisibleVerticalOffset(){return(0,m.Yq)(this)}clone(){return new r({verticalOffset:(0,n.o8)(this.verticalOffset),callout:(0,n.o8)(this.callout),styleOrigin:(0,n.o8)(this.styleOrigin),symbolLayers:(0,n.o8)(this.symbolLayers),thumbnail:(0,n.o8)(this.thumbnail)})}static fromSimpleMarkerSymbol(e){return new r({symbolLayers:new l.A([c.A.fromSimpleMarkerSymbol(e)])})}static fromPictureMarkerSymbol(e){return new r({symbolLayers:new l.A([c.A.fromPictureMarkerSymbol(e)])})}static fromCIMSymbol(e){const t=e.data?.symbol?.type;if("CIMPointSymbol"!==t)return null;const o=e.data.symbol;return new r(o?.callout?{symbolLayers:new l.A([c.A.fromCIMSymbol(e)]),callout:new b.A({size:.5,color:new i.A([0,0,0])}),verticalOffset:new g.A({screenLength:40})}:{symbolLayers:new l.A([c.A.fromCIMSymbol(e)])})}static fromTextSymbol(e){return new r({symbolLayers:new l.A([d.A.fromTextSymbol(e)])})}};(0,s._)([(0,a.MZ)({type:g.A,json:{write:!0}})],f.prototype,"verticalOffset",void 0),(0,s._)([(0,a.MZ)(m.oG)],f.prototype,"callout",void 0),(0,s._)([(0,a.MZ)({type:v,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"symbolLayers",void 0),(0,s._)([(0,y.e)({PointSymbol3D:"point-3d"},{readOnly:!0})],f.prototype,"type",void 0),f=r=(0,s._)([(0,p.$)("esri.symbols.PointSymbol3D")],f);const w=f},77040:(e,t,o)=>{o.d(t,{k7:()=>n,ku:()=>l});var r=o(84952),s=o(97159);function i(e,t){if(!(0,r.oP)(e)){const o=function(e){if(!e)return null;const{origin:t,layer:o}=e;if("service"!==t&&"portal-item"!==t)return null;const r=o?.type;return"feature"===r||"stream"===r?o.parsedUrl?.path:"map-image"===r||"tile"===r?e.url?.path:null}(t);if(o)return(0,r.fj)(o,"images",e)}return(0,s.f)(e,t)}const l={json:{read:{source:["imageData","url"],reader:function(e,t,o){return t.imageData?(0,r.Hg)({mediaType:t.contentType||"image/png",isBase64:!0,data:t.imageData}):i(t.url,o)}},write:{writer(e,t,o,i){!function(e,t,o,i){if((0,r.DB)(e)){const l=(0,r.r$)(e);if(!l)return;t.contentType=l.mediaType,t.imageData=l.data,o&&o.imageData===t.imageData&&o.url&&(0,s.w)(o.url,t,"url",i)}else(0,s.w)(e,t,"url",i)}(e,t,this.source,i)}}}},n={readOnly:!0,json:{read:{source:["imageData","url"],reader(e,t,o){const r={};return t.imageData&&(r.imageData=t.imageData),t.contentType&&(r.contentType=t.contentType),t.url&&(r.url=i(t.url,o)),r}}}}},78504:(e,t,o)=>{o.d(t,{N:()=>p});var r,s=o(90237),i=o(25482),l=o(10107),n=(o(44208),o(53966),o(87811),o(40608)),a=o(51850),y=o(67222);let p=r=class extends i.A{constructor(e){super(e),this.color=null,this.emissiveFactor=null}clone(){const e={color:this.color?.clone()??null,emissiveFactor:this.emissiveFactor?(0,a.o8)(this.emissiveFactor):null};return new r(e)}};(0,s._)([(0,l.MZ)((0,y.E)())],p.prototype,"color",void 0),(0,s._)([(0,l.MZ)({type:[Number],json:{write:!1}})],p.prototype,"emissiveFactor",void 0),p=r=(0,s._)([(0,n.$)("esri.symbols.support.Symbol3DMaterial")],p)},80138:(e,t,o)=>{o.d(t,{A:()=>k});var r,s=o(90237),i=o(4718),l=o(53966),n=o(84952),a=o(10107),y=(o(44208),o(93223)),p=o(40608),c=o(3904),h=o(33386),u=o(66552),d=o(25482),m=(o(87811),o(36005)),b=o(43937),g=o(97159);const v=(0,u.O)()({circle:"circle",square:"square",cross:"cross",x:"x",kite:"kite",triangle:"triangle"});let f=r=class extends d.A{constructor(e){super(e)}readHref(e,t,o){return e?(0,g.f)(e,o):t.dataURI}writeHref(e,t,o,r){e&&((0,n.DB)(e)?t.dataURI=e:(t.href=(0,g.t)(e,r),(0,n.oP)(t.href)&&(t.href=(0,n.S8)(t.href))))}clone(){return new r({href:this.href,primitive:this.primitive})}};(0,s._)([(0,a.MZ)({type:String,json:{write:!0,read:{source:["href","dataURI"]}}})],f.prototype,"href",void 0),(0,s._)([(0,m.w)("href")],f.prototype,"readHref",null),(0,s._)([(0,b.K)("href",{href:{type:String},dataURI:{type:String}})],f.prototype,"writeHref",null),(0,s._)([(0,y.e)(v)],f.prototype,"primitive",void 0),f=r=(0,s._)([(0,p.$)("esri.symbols.support.IconSymbol3DLayerResource")],f);var w,_=o(67222),A=o(69622);let M=w=class extends A.A{constructor(){super(...arguments),this.x=0,this.y=0}clone(){return new w({x:this.x,y:this.y})}};(0,s._)([(0,a.MZ)({type:Number})],M.prototype,"x",void 0),(0,s._)([(0,a.MZ)({type:Number})],M.prototype,"y",void 0),M=w=(0,s._)([(0,p.$)("esri.symbols.support.Symbol3DAnchorPosition2D")],M);var S,x=o(68197),Z=o(90629);let j=S=class extends d.A{constructor(e){super(e),this.color=new x.A([0,0,0,1]),this.size=(0,Z.PN)(1)}clone(){const e={color:null!=this.color?this.color.clone():null,size:this.size};return new S(e)}};(0,s._)([(0,a.MZ)((0,_.E)({colorRequiredOnWrite:!0}))],j.prototype,"color",void 0),(0,s._)([(0,a.MZ)({..._.p,json:{write:{isRequired:!0}}})],j.prototype,"size",void 0),j=S=(0,s._)([(0,p.$)("esri.symbols.support.Symbol3DIconOutline")],j);var L,O=o(78504);const z="esri.symbols.IconSymbol3DLayer";let N=class extends c.A{static{L=this}constructor(e){super(e),this.material=null,this.resource=null,this.type="icon",this.size=12,this.anchor="center",this.anchorPosition=null,this.outline=null,this.angle=0}clone(){return new L({anchor:this.anchor,anchorPosition:(0,i.o8)(this.anchorPosition),enabled:this.enabled,material:(0,i.o8)(this.material),outline:(0,i.o8)(this.outline),resource:(0,i.o8)(this.resource),angle:this.angle,size:this.size})}static fromSimpleMarkerSymbol(e){const t=e.color||h.ON,o=D(e),r=e.outline&&e.outline.width>0?{size:e.outline.width,color:(e.outline.color||h.ON).clone()}:null;return new L({size:e.size,angle:e.angle,resource:{primitive:P(e.style)},material:{color:t},outline:r,anchor:o?"relative":void 0,anchorPosition:o})}static fromPictureMarkerSymbol(e){const t=!e.color||(0,h.U9)(e.color)?h.ON:e.color,o=D(e);return new L({size:e.width<=e.height?e.height:e.width,angle:e.angle,resource:{href:e.url},material:{color:t.clone()},anchor:o?"relative":void 0,anchorPosition:o})}static fromCIMSymbol(e){return new L({resource:{href:(0,n.Hg)({mediaType:"application/json",data:JSON.stringify(e.data)})}})}};(0,s._)([(0,a.MZ)({type:O.N,json:{write:!0}})],N.prototype,"material",void 0),(0,s._)([(0,a.MZ)({type:f,json:{write:!0}})],N.prototype,"resource",void 0),(0,s._)([(0,y.e)({Icon:"icon"},{readOnly:!0})],N.prototype,"type",void 0),(0,s._)([(0,a.MZ)({..._.p,json:{write:{isRequired:!0}}})],N.prototype,"size",void 0),(0,s._)([(0,y.e)({center:"center",left:"left",right:"right",top:"top",bottom:"bottom",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",relative:"relative"},{default:"center"})],N.prototype,"anchor",void 0),(0,s._)([(0,a.MZ)({type:M,json:{type:[Number],read:{reader:e=>new M({x:e[0],y:e[1]})},write:{writer:(e,t)=>{t.anchorPosition=[e.x,e.y]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],N.prototype,"anchorPosition",void 0),(0,s._)([(0,a.MZ)({type:j,json:{write:!0}})],N.prototype,"outline",void 0),(0,s._)([(0,a.MZ)({type:Number,json:{write:!0,default:0}})],N.prototype,"angle",void 0),N=L=(0,s._)([(0,p.$)(z)],N);const k=N;function D(e){const t="width"in e?e.width:e.size,o="height"in e?e.height:e.size,r=$(e.xoffset),s=$(e.yoffset);return(r||s)&&t&&o?{x:-r/t,y:s/o}:null}function $(e){return isFinite(e)?e:0}const C={circle:"circle",cross:"cross",diamond:"kite",square:"square",x:"x",triangle:"triangle",path:null};function P(e){return C[e]||(l.A.getLogger(z).warn(`${e} cannot be mapped to Icon symbol. Fallback to "circle"`),"circle")}},97887:(e,t,o)=>{o.d(t,{A:()=>b});var r,s=o(90237),i=o(5503),l=o(4718),n=o(10107),a=(o(44208),o(53966),o(93223)),y=o(40608),p=o(11506),c=o(66525),h=o(58185);const u=i.A.ofType({base:null,key:"type",typeMap:{line:p.A,path:c.A}}),d=i.A.ofType({base:null,key:"type",typeMap:{line:p.A,path:c.A}});let m=r=class extends h.A{constructor(e){super(e),this.symbolLayers=new u,this.type="line-3d"}clone(){return new r({styleOrigin:(0,l.o8)(this.styleOrigin),symbolLayers:(0,l.o8)(this.symbolLayers),thumbnail:(0,l.o8)(this.thumbnail)})}static fromSimpleLineSymbol(e){return new r({symbolLayers:new i.A([p.A.fromSimpleLineSymbol(e)])})}};(0,s._)([(0,n.MZ)({type:u,json:{type:d}})],m.prototype,"symbolLayers",void 0),(0,s._)([(0,a.e)({LineSymbol3D:"line-3d"},{readOnly:!0})],m.prototype,"type",void 0),m=r=(0,s._)([(0,y.$)("esri.symbols.LineSymbol3D")],m);const b=m},98751:(e,t,o)=>{o.d(t,{A:()=>p});var r,s=o(90237),i=o(69622),l=o(10107),n=(o(44208),o(53966),o(87811),o(40608)),a=o(20655);let y=r=class extends i.A{constructor(e){super(e),this.name=null,this.styleUrl=null,this.styleName=null,this.portal=null}clone(){return new r({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}};(0,s._)([(0,l.MZ)({type:String})],y.prototype,"name",void 0),(0,s._)([(0,l.MZ)({type:String})],y.prototype,"styleUrl",void 0),(0,s._)([(0,l.MZ)({type:String})],y.prototype,"styleName",void 0),(0,s._)([(0,l.MZ)({type:a.A})],y.prototype,"portal",void 0),y=r=(0,s._)([(0,n.$)("esri.symbols.support.StyleOrigin")],y);const p=y}}]);