@arcgis/core 5.2.0-next.127 → 5.2.0-next.128

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 (132) hide show
  1. package/WebScene.js +1 -1
  2. package/applications/SceneViewer/sceneViewerUtils.d.ts +14 -1
  3. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  4. package/applications/WebEditor/sketchUtils.js +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/038d2b80d96237c25b6f.js +1 -0
  7. package/assets/esri/core/workers/chunks/3f045f09ac95e7f22a97.js +1 -0
  8. package/assets/esri/core/workers/chunks/500f6d6f0ffa235cae85.js +1 -0
  9. package/assets/esri/core/workers/chunks/{e6637f9176566382ed3e.js → 606cca69eaea84bfcdc6.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{26995de0c18bef8db590.js → 6267a1fe1603daa399b4.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{2c7fc24649d91552e68a.js → 67fd2cdb2e6834bfa710.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{50c29d10ec53f0e48e8a.js → 75294f515c7f8393181c.js} +1 -1
  13. package/assets/esri/core/workers/chunks/761ea719ec1b4d562db2.js +1 -0
  14. package/assets/esri/core/workers/chunks/89dad6c1bfd81e4d7f8e.js +1 -0
  15. package/assets/esri/core/workers/chunks/{8daed13400d9e63e65ae.js → 8a842cde240aef12e417.js} +1 -1
  16. package/assets/esri/core/workers/chunks/92509dd25996c6390a31.js +1 -0
  17. package/assets/esri/core/workers/chunks/9ccc2c8f7416943cc373.js +29 -0
  18. package/assets/esri/core/workers/chunks/a0a9c41400ae98df1912.js +1 -0
  19. package/assets/esri/core/workers/chunks/d1187ad6cc4959683819.js +1 -0
  20. package/assets/esri/core/workers/chunks/d94a2b3b2ef49af9c2e3.js +1 -0
  21. package/assets/esri/core/workers/chunks/ec187933b42fe65594b7.js +1 -0
  22. package/assets/esri/core/workers/chunks/eec5a93dbc258a90b6de.js +1 -0
  23. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-arabic.woff2 +0 -0
  24. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-cyrillic.woff2 +0 -0
  25. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-ext.woff2 +0 -0
  26. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-georgian.woff2 +0 -0
  27. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-greek.woff2 +0 -0
  28. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-hebrew.woff2 +0 -0
  29. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-math.woff2 +0 -0
  30. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-thai.woff2 +0 -0
  31. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02-vietnamese.woff2 +0 -0
  32. package/assets/esri/themes/base/fonts/fonts/09ab0626-bb45-4650-acc8-0182d693df02.woff2 +0 -0
  33. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-arabic.woff2 +0 -0
  34. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-cyrillic.woff2 +0 -0
  35. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-ext.woff2 +0 -0
  36. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-georgian.woff2 +0 -0
  37. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-greek.woff2 +0 -0
  38. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-hebrew.woff2 +0 -0
  39. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-math.woff2 +0 -0
  40. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-thai.woff2 +0 -0
  41. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7-vietnamese.woff2 +0 -0
  42. package/assets/esri/themes/base/fonts/fonts/0c8a5d21-8a14-4451-8145-695071809cb7.woff2 +0 -0
  43. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-arabic.woff2 +0 -0
  44. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-cyrillic.woff2 +0 -0
  45. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-ext.woff2 +0 -0
  46. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-georgian.woff2 +0 -0
  47. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-greek.woff2 +0 -0
  48. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-hebrew.woff2 +0 -0
  49. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-math.woff2 +0 -0
  50. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-thai.woff2 +0 -0
  51. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688-vietnamese.woff2 +0 -0
  52. package/assets/esri/themes/base/fonts/fonts/12f4c786-0bef-4a48-b7c0-eebaa7591688.woff2 +0 -0
  53. package/assets/esri/themes/base/fonts/fonts/3ae1e25e-3aa6-4061-a016-a079159f9d65.woff2 +0 -0
  54. package/assets/esri/themes/base/fonts/fonts/41331c3c-3759-4462-8695-33c9a21b6a5b.woff2 +0 -0
  55. package/assets/esri/themes/base/fonts/fonts/94aa531e-7746-4df0-bb6e-349891f2eda5.woff2 +0 -0
  56. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-arabic.woff2 +0 -0
  57. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-cyrillic.woff2 +0 -0
  58. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-ext.woff2 +0 -0
  59. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-georgian.woff2 +0 -0
  60. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-greek.woff2 +0 -0
  61. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-hebrew.woff2 +0 -0
  62. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-math.woff2 +0 -0
  63. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-thai.woff2 +0 -0
  64. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939-vietnamese.woff2 +0 -0
  65. package/assets/esri/themes/base/fonts/fonts/b8b15cdf-85d1-4120-8daa-48863d803939.woff2 +0 -0
  66. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-cyrillic.woff2 +0 -0
  67. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-ext.woff2 +0 -0
  68. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-greek.woff2 +0 -0
  69. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-hebrew.woff2 +0 -0
  70. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-math.woff2 +0 -0
  71. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d-vietnamese.woff2 +0 -0
  72. package/assets/esri/themes/base/fonts/fonts/b9c5b839-db56-4419-8fcb-6ab661babb1d.woff2 +0 -0
  73. package/assets/esri/themes/base/fonts/fonts.scss +0 -0
  74. package/assets/esri/themes/base/widgets/_Tooltip.scss +5 -3
  75. package/assets/esri/themes/dark/main.css +1 -1
  76. package/assets/esri/themes/light/main.css +1 -1
  77. package/assets/esri/themes/light/view.css +1 -1
  78. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
  79. package/config.js +1 -1
  80. package/core/units.js +1 -1
  81. package/geometry/HeightModelInfo.js +1 -1
  82. package/geometry/ellipsoidUtils.js +1 -1
  83. package/geometry/support/heightModelInfoUtils.js +1 -1
  84. package/interfaces.d.ts +1 -0
  85. package/kernel.js +1 -1
  86. package/layers/ElevationLayer.js +1 -1
  87. package/layers/OrientedImageryLayer.js +1 -1
  88. package/layers/graphics/dehydratedFeatures.js +1 -1
  89. package/layers/graphics/transferFeatures.js +2 -0
  90. package/layers/mixins/FeatureLayerBase.js +1 -1
  91. package/layers/mixins/HeightModelInfoMixin.js +2 -0
  92. package/layers/mixins/SceneService.js +1 -1
  93. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  94. package/layers/raster/datasets/RasterFactory.js +1 -1
  95. package/package.json +2 -2
  96. package/rest/query/operations/pbfDehydratedFeatureSet.js +1 -1
  97. package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
  98. package/support/revision.js +1 -1
  99. package/views/3d/camera/constraintUtils/surfaceCollision.js +1 -1
  100. package/views/3d/camera/intersectionUtils.js +1 -1
  101. package/views/3d/layers/I3SMeshView3D.js +1 -1
  102. package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
  103. package/views/3d/layers/support/featureReference.js +1 -1
  104. package/views/3d/navigation/modes/GroundNavigationMode3D.js +1 -1
  105. package/views/3d/state/Constraints.js +1 -1
  106. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  107. package/views/3d/support/PBFDecoder.js +1 -1
  108. package/views/3d/support/PBFDecoderWorker.js +1 -1
  109. package/views/3d/support/QualityProfile.js +1 -1
  110. package/views/3d/terrain/TerrainRenderer.js +1 -1
  111. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  112. package/views/SceneView.js +1 -1
  113. package/views/ToolViewManager.js +1 -1
  114. package/views/interactive/options/TooltipVisibleElements.d.ts +11 -1
  115. package/views/interactive/options/TooltipVisibleElements.js +1 -1
  116. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  117. package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
  118. package/widgets/BatchAttributeForm.js +1 -1
  119. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  120. package/widgets/OrientedImageryViewer/utils.js +1 -1
  121. package/assets/esri/core/workers/chunks/0a2b7c691a577cb3d189.js +0 -1
  122. package/assets/esri/core/workers/chunks/2146c25c01c9fc11b16c.js +0 -1
  123. package/assets/esri/core/workers/chunks/4678a8170d8a3ccd1a7b.js +0 -1
  124. package/assets/esri/core/workers/chunks/56e97b98dcb8a3f2bcb7.js +0 -1
  125. package/assets/esri/core/workers/chunks/6e75f09fb9452bd5f9fb.js +0 -1
  126. package/assets/esri/core/workers/chunks/7441d121f00ce747c08e.js +0 -1
  127. package/assets/esri/core/workers/chunks/76548469fe1b9c3b2051.js +0 -1
  128. package/assets/esri/core/workers/chunks/82ce034b5ba54de9b970.js +0 -29
  129. package/assets/esri/core/workers/chunks/ba435cc73956d9c64a11.js +0 -1
  130. package/assets/esri/core/workers/chunks/c77496c350004ee66eb2.js +0 -1
  131. package/assets/esri/core/workers/chunks/d371d9279b30548efa02.js +0 -1
  132. package/assets/esri/core/workers/chunks/e5ee64e2fb5bfcb716d8.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5854,8768],{80200(e,t,r){r.d(t,{d:()=>c});const i={Base64:0,Hex:1,String:2,Raw:3};function a(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function s(e,t,r,i,s,n){return a(function(e,t){return e<<t|e>>>32-t}(a(a(t,e),a(i,n)),s),r)}function n(e,t,r,i,a,n,o){return s(t&r|~t&i,e,t,a,n,o)}function o(e,t,r,i,a,n,o){return s(t&i|r&~i,e,t,a,n,o)}function l(e,t,r,i,a,n,o){return s(t^r^i,e,t,a,n,o)}function u(e,t,r,i,a,n,o){return s(r^(t|~i),e,t,a,n,o)}function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,s=-1732584194,d=271733878;for(let t=0;t<e.length;t+=16){const c=r,p=i,y=s,h=d;r=n(r,i,s,d,e[t],7,-680876936),d=n(d,r,i,s,e[t+1],12,-389564586),s=n(s,d,r,i,e[t+2],17,606105819),i=n(i,s,d,r,e[t+3],22,-1044525330),r=n(r,i,s,d,e[t+4],7,-176418897),d=n(d,r,i,s,e[t+5],12,1200080426),s=n(s,d,r,i,e[t+6],17,-1473231341),i=n(i,s,d,r,e[t+7],22,-45705983),r=n(r,i,s,d,e[t+8],7,1770035416),d=n(d,r,i,s,e[t+9],12,-1958414417),s=n(s,d,r,i,e[t+10],17,-42063),i=n(i,s,d,r,e[t+11],22,-1990404162),r=n(r,i,s,d,e[t+12],7,1804603682),d=n(d,r,i,s,e[t+13],12,-40341101),s=n(s,d,r,i,e[t+14],17,-1502002290),i=n(i,s,d,r,e[t+15],22,1236535329),r=o(r,i,s,d,e[t+1],5,-165796510),d=o(d,r,i,s,e[t+6],9,-1069501632),s=o(s,d,r,i,e[t+11],14,643717713),i=o(i,s,d,r,e[t],20,-373897302),r=o(r,i,s,d,e[t+5],5,-701558691),d=o(d,r,i,s,e[t+10],9,38016083),s=o(s,d,r,i,e[t+15],14,-660478335),i=o(i,s,d,r,e[t+4],20,-405537848),r=o(r,i,s,d,e[t+9],5,568446438),d=o(d,r,i,s,e[t+14],9,-1019803690),s=o(s,d,r,i,e[t+3],14,-187363961),i=o(i,s,d,r,e[t+8],20,1163531501),r=o(r,i,s,d,e[t+13],5,-1444681467),d=o(d,r,i,s,e[t+2],9,-51403784),s=o(s,d,r,i,e[t+7],14,1735328473),i=o(i,s,d,r,e[t+12],20,-1926607734),r=l(r,i,s,d,e[t+5],4,-378558),d=l(d,r,i,s,e[t+8],11,-2022574463),s=l(s,d,r,i,e[t+11],16,1839030562),i=l(i,s,d,r,e[t+14],23,-35309556),r=l(r,i,s,d,e[t+1],4,-1530992060),d=l(d,r,i,s,e[t+4],11,1272893353),s=l(s,d,r,i,e[t+7],16,-155497632),i=l(i,s,d,r,e[t+10],23,-1094730640),r=l(r,i,s,d,e[t+13],4,681279174),d=l(d,r,i,s,e[t],11,-358537222),s=l(s,d,r,i,e[t+3],16,-722521979),i=l(i,s,d,r,e[t+6],23,76029189),r=l(r,i,s,d,e[t+9],4,-640364487),d=l(d,r,i,s,e[t+12],11,-421815835),s=l(s,d,r,i,e[t+15],16,530742520),i=l(i,s,d,r,e[t+2],23,-995338651),r=u(r,i,s,d,e[t],6,-198630844),d=u(d,r,i,s,e[t+7],10,1126891415),s=u(s,d,r,i,e[t+14],15,-1416354905),i=u(i,s,d,r,e[t+5],21,-57434055),r=u(r,i,s,d,e[t+12],6,1700485571),d=u(d,r,i,s,e[t+3],10,-1894986606),s=u(s,d,r,i,e[t+10],15,-1051523),i=u(i,s,d,r,e[t+1],21,-2054922799),r=u(r,i,s,d,e[t+8],6,1873313359),d=u(d,r,i,s,e[t+15],10,-30611744),s=u(s,d,r,i,e[t+6],15,-1560198380),i=u(i,s,d,r,e[t+13],21,1309151649),r=u(r,i,s,d,e[t+4],6,-145523070),d=u(d,r,i,s,e[t+11],10,-1120210379),s=u(s,d,r,i,e[t+2],15,718787259),i=u(i,s,d,r,e[t+9],21,-343485551),r=a(r,c),i=a(i,p),s=a(s,y),d=a(d,h)}return[r,i,s,d]}function c(e,t=i.Hex){const r=t||i.Base64,a=d(function(e){const t=[];for(let r=0,i=8*e.length;r<i;r+=8)t[r>>5]|=(255&e.charCodeAt(r/8))<<r%32;return t}(e),8*e.length);switch(r){case i.Raw:return a;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,a=4*e.length;i<a;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(a);case i.String:return function(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=8)t.push(String.fromCharCode(e[r>>5]>>>r%32&255));return t.join("")}(a);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let a=0;a<4;a++)8*r+6*a>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-a)&63))}return t.join("")}(a)}}r.d(t,["T",0,i])},87024(e,t,r){r.d(t,{P:()=>y});var i=r(49186),a=r(80200),s=r(76553),n=r(84952),o=r(13069),l=r(96156),u=r(35666),d=r(10107),c=r(85648),p=r(97159);function y(e){const t=e?.origins??[void 0];return(r,i)=>{const a=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,l.z4)(t,r);return{type:String,read:(e,t,r)=>{const a=(0,p.r)(e,t,r);return i.type===String?a:"function"==typeof i.type?new i.type({url:a}):void 0},write:{isRequired:i.json?.write?.isRequired,writer(t,a,o,l){if(!l?.resources)return"string"==typeof t?void(a[o]=(0,p.t)(t,l)):void(a[o]=t.write({},l));const d=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),y=(0,p.t)(d,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),m=i.type!==String&&(!(0,s.H)(this)||l?.origin&&this.originIdOf(r)>(0,u.aB)(l.origin)),v={object:this,propertyName:r,value:t,targetUrl:y,dest:a,targetPropertyName:o,context:l,params:e};l?.portalItem&&y&&!(0,n.oP)(y)?m&&e?.contentAddressed?h(v):m?function(e){const{context:t,targetUrl:r,params:i,value:a,dest:s,targetPropertyName:o}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),u=f(a,r,t),d=(0,c.n)(u),p=(0,n.Zo)(l.path),y=i?.compress??!1;d===p?(t.resources&&g({...e,resource:l,content:u,compress:y,updates:t.resources.toUpdate}),s[o]=r):h(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(v):l?.portalItem&&(null==y||null!=(0,p.i)(y)||(0,n.w8)(y)||m)?h(v):a[o]=y}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=p.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,d.rM)(r,e,i);for(const e in a)t[e]=a[e]}}}function h(e){const{targetUrl:t,params:r,value:s,context:l,dest:u,targetPropertyName:d}=e;if(!l.portalItem)return;const y=(0,p.p)(t),h=f(s,t,l);if(r?.contentAddressed&&"json"!==h.type)return void l.messages?.push(new i.A("persistable:contentAddressingUnsupported",`Property "${d}" is trying to serializing a resource with content of type ${h.type} with content addressing. Content addressing is only supported for json resources.`,{content:h}));const m=r?.contentAddressed&&"json"===h.type?(0,a.d)(h.jsonString):y?.filename??(0,o.lk)(),v=(0,n.fj)(r?.prefix??y?.prefix,m),b=`${v}.${(0,c.n)(h)}`;if(r?.contentAddressed&&l.resources&&"json"===h.type){const e=l.resources.toKeep.find(({resource:e})=>e.path===b)??l.resources.toAdd.find(({resource:e})=>e.path===b);if(e)return void(u[d]=e.resource.itemRelativeUrl)}const w=l.portalItem.resourceFromPath(b);(0,n.w8)(t)&&l.resources&&l.resources.pendingOperations.push((0,n.tk)(t).then(e=>{w.path=`${v}.${(0,c.n)({type:"blob",blob:e})}`,u[d]=w.itemRelativeUrl}).catch(()=>{}));const L=r?.compress??!1;l.resources&&g({...e,resource:w,content:h,compress:L,updates:l.resources.toAdd}),u[d]=w.itemRelativeUrl}function g({object:e,propertyName:t,updates:r,resource:i,content:a,compress:s}){r.push({resource:i,content:a,compress:s,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function f(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},58083(e,t,r){r.d(t,{$0:()=>m,$h:()=>F,B8:()=>d,C:()=>s,D_:()=>o,N9:()=>b,O7:()=>C,Qw:()=>u,Tl:()=>p,X_:()=>I,e$:()=>h,eL:()=>g,hM:()=>v,hZ:()=>n,hs:()=>y,kN:()=>f,l:()=>S,lw:()=>c,mg:()=>l,o1:()=>A,sC:()=>M,t2:()=>O,t5:()=>T,tZ:()=>P,ut:()=>E});var i=r(51850),a=r(34304);function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function n(e,t,r,i,a,s,n,o,l,u,d,c,p,y,h,g,f){return e[0]=t,e[1]=r,e[2]=i,e[3]=a,e[4]=s,e[5]=n,e[6]=o,e[7]=l,e[8]=u,e[9]=d,e[10]=c,e[11]=p,e[12]=y,e[13]=h,e[14]=g,e[15]=f,e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function l(e,t){if(e===t){const r=t[1],i=t[2],a=t[3],s=t[6],n=t[7],o=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=s,e[11]=t[14],e[12]=a,e[13]=n,e[14]=o}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function u(e,t){return d(e,t)||o(e),e}function d(e,t){const r=t[0],i=t[1],a=t[2],s=t[3],n=t[4],o=t[5],l=t[6],u=t[7],d=t[8],c=t[9],p=t[10],y=t[11],h=t[12],g=t[13],f=t[14],m=t[15],v=r*o-i*n,b=r*l-a*n,w=r*u-s*n,L=i*l-a*o,M=i*u-s*o,I=a*u-s*l,S=d*g-c*h,A=d*f-p*h,C=d*m-y*h,F=c*f-p*g,T=c*m-y*g,x=p*m-y*f;let O=v*x-b*T+w*F+L*C-M*A+I*S;return O?(O=1/O,e[0]=(o*x-l*T+u*F)*O,e[1]=(a*T-i*x-s*F)*O,e[2]=(g*I-f*M+m*L)*O,e[3]=(p*M-c*I-y*L)*O,e[4]=(l*C-n*x-u*A)*O,e[5]=(r*x-a*C+s*A)*O,e[6]=(f*w-h*I-m*b)*O,e[7]=(d*I-p*w+y*b)*O,e[8]=(n*T-o*C+u*S)*O,e[9]=(i*C-r*T-s*S)*O,e[10]=(h*M-g*w+m*v)*O,e[11]=(c*w-d*M-y*v)*O,e[12]=(o*A-n*F-l*S)*O,e[13]=(r*F-i*A+a*S)*O,e[14]=(g*b-h*L-f*v)*O,e[15]=(d*L-c*b+p*v)*O,e):null}function c(e,t,r){const i=t[0],a=t[1],s=t[2],n=t[3],o=t[4],l=t[5],u=t[6],d=t[7],c=t[8],p=t[9],y=t[10],h=t[11],g=t[12],f=t[13],m=t[14],v=t[15];let b=r[0],w=r[1],L=r[2],M=r[3];return e[0]=b*i+w*o+L*c+M*g,e[1]=b*a+w*l+L*p+M*f,e[2]=b*s+w*u+L*y+M*m,e[3]=b*n+w*d+L*h+M*v,b=r[4],w=r[5],L=r[6],M=r[7],e[4]=b*i+w*o+L*c+M*g,e[5]=b*a+w*l+L*p+M*f,e[6]=b*s+w*u+L*y+M*m,e[7]=b*n+w*d+L*h+M*v,b=r[8],w=r[9],L=r[10],M=r[11],e[8]=b*i+w*o+L*c+M*g,e[9]=b*a+w*l+L*p+M*f,e[10]=b*s+w*u+L*y+M*m,e[11]=b*n+w*d+L*h+M*v,b=r[12],w=r[13],L=r[14],M=r[15],e[12]=b*i+w*o+L*c+M*g,e[13]=b*a+w*l+L*p+M*f,e[14]=b*s+w*u+L*y+M*m,e[15]=b*n+w*d+L*h+M*v,e}function p(e,t,r){const i=r[0],a=r[1],s=r[2];if(t===e)e[12]=t[0]*i+t[4]*a+t[8]*s+t[12],e[13]=t[1]*i+t[5]*a+t[9]*s+t[13],e[14]=t[2]*i+t[6]*a+t[10]*s+t[14],e[15]=t[3]*i+t[7]*a+t[11]*s+t[15];else{const r=t[0],n=t[1],o=t[2],l=t[3],u=t[4],d=t[5],c=t[6],p=t[7],y=t[8],h=t[9],g=t[10],f=t[11];e[0]=r,e[1]=n,e[2]=o,e[3]=l,e[4]=u,e[5]=d,e[6]=c,e[7]=p,e[8]=y,e[9]=h,e[10]=g,e[11]=f,e[12]=r*i+u*a+y*s+t[12],e[13]=n*i+d*a+h*s+t[13],e[14]=o*i+c*a+g*s+t[14],e[15]=l*i+p*a+f*s+t[15]}return e}function y(e,t,r){const i=r[0],a=r[1],s=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function h(e,t,r,i){let n=i[0],o=i[1],l=i[2],u=Math.sqrt(n*n+o*o+l*l);if(u<=(0,a.FD)())return void s(e,t);u=1/u,n*=u,o*=u,l*=u;const d=Math.sin(r),c=Math.cos(r),p=1-c,y=t[0],h=t[1],g=t[2],f=t[3],m=t[4],v=t[5],b=t[6],w=t[7],L=t[8],M=t[9],I=t[10],S=t[11],A=n*n*p+c,C=o*n*p+l*d,F=l*n*p-o*d,T=n*o*p-l*d,x=o*o*p+c,O=l*o*p+n*d,E=n*l*p+o*d,P=o*l*p-n*d,j=l*l*p+c;e[0]=y*A+m*C+L*F,e[1]=h*A+v*C+M*F,e[2]=g*A+b*C+I*F,e[3]=f*A+w*C+S*F,e[4]=y*T+m*x+L*O,e[5]=h*T+v*x+M*O,e[6]=g*T+b*x+I*O,e[7]=f*T+w*x+S*O,e[8]=y*E+m*P+L*j,e[9]=h*E+v*P+M*j,e[10]=g*E+b*P+I*j,e[11]=f*E+w*P+S*j,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15])}function g(e,t,r){const i=Math.sin(r),a=Math.cos(r),s=t[4],n=t[5],o=t[6],l=t[7],u=t[8],d=t[9],c=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*a+u*i,e[5]=n*a+d*i,e[6]=o*a+c*i,e[7]=l*a+p*i,e[8]=u*a-s*i,e[9]=d*a-n*i,e[10]=c*a-o*i,e[11]=p*a-l*i,e}function f(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function m(e,t,r){if(0===t)return o(e);let i=r[0],s=r[1],n=r[2],l=Math.sqrt(i*i+s*s+n*n);if(l<=(0,a.FD)())return null;l=1/l,i*=l,s*=l,n*=l;const u=Math.sin(t),d=Math.cos(t),c=1-d;return e[0]=i*i*c+d,e[1]=s*i*c+n*u,e[2]=n*i*c-s*u,e[3]=0,e[4]=i*s*c-n*u,e[5]=s*s*c+d,e[6]=n*s*c+i*u,e[7]=0,e[8]=i*n*c+s*u,e[9]=s*n*c-i*u,e[10]=n*n*c+d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function v(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function b(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function w(e,t,r){const i=t[0],a=t[1],s=t[2],n=t[3],o=i+i,l=a+a,u=s+s,d=i*o,c=i*l,p=i*u,y=a*l,h=a*u,g=s*u,f=n*o,m=n*l,v=n*u;return e[0]=1-(y+g),e[1]=c+v,e[2]=p-m,e[3]=0,e[4]=c-v,e[5]=1-(d+g),e[6]=h+f,e[7]=0,e[8]=p+m,e[9]=h-f,e[10]=1-(d+y),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const L=(0,i.vt)();function M(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function I(e,t){const r=t[0],i=t[1],a=t[2],s=t[4],n=t[5],o=t[6],l=t[8],u=t[9],d=t[10];return e[0]=Math.sqrt(r*r+i*i+a*a),e[1]=Math.sqrt(s*s+n*n+o*o),e[2]=Math.sqrt(l*l+u*u+d*d),e}function S(e,t){const r=t[0]+t[5]+t[10];let i=0;return r>0?(i=2*Math.sqrt(r+1),e[3]=.25*i,e[0]=(t[6]-t[9])/i,e[1]=(t[8]-t[2])/i,e[2]=(t[1]-t[4])/i):t[0]>t[5]&&t[0]>t[10]?(i=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/i,e[0]=.25*i,e[1]=(t[1]+t[4])/i,e[2]=(t[8]+t[2])/i):t[5]>t[10]?(i=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/i,e[0]=(t[1]+t[4])/i,e[1]=.25*i,e[2]=(t[6]+t[9])/i):(i=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/i,e[0]=(t[8]+t[2])/i,e[1]=(t[6]+t[9])/i,e[2]=.25*i),e}function A(e,t,r,i){const a=t[0],s=t[1],n=t[2],o=t[3],l=a+a,u=s+s,d=n+n,c=a*l,p=a*u,y=a*d,h=s*u,g=s*d,f=n*d,m=o*l,v=o*u,b=o*d,w=i[0],L=i[1],M=i[2];return e[0]=(1-(h+f))*w,e[1]=(p+b)*w,e[2]=(y-v)*w,e[3]=0,e[4]=(p-b)*L,e[5]=(1-(c+f))*L,e[6]=(g+m)*L,e[7]=0,e[8]=(y+v)*M,e[9]=(g-m)*M,e[10]=(1-(c+h))*M,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function C(e,t,r,i,a){const s=t[0],n=t[1],o=t[2],l=t[3],u=s+s,d=n+n,c=o+o,p=s*u,y=s*d,h=s*c,g=n*d,f=n*c,m=o*c,v=l*u,b=l*d,w=l*c,L=i[0],M=i[1],I=i[2],S=a[0],A=a[1],C=a[2],F=(1-(g+m))*L,T=(y+w)*L,x=(h-b)*L,O=(y-w)*M,E=(1-(p+m))*M,P=(f+v)*M,j=(h+b)*I,R=(f-v)*I,_=(1-(p+g))*I;return e[0]=F,e[1]=T,e[2]=x,e[3]=0,e[4]=O,e[5]=E,e[6]=P,e[7]=0,e[8]=j,e[9]=R,e[10]=_,e[11]=0,e[12]=r[0]+S-(F*S+O*A+j*C),e[13]=r[1]+A-(T*S+E*A+R*C),e[14]=r[2]+C-(x*S+P*A+_*C),e[15]=1,e}function F(e,t,r,i,a,s,n){const o=1/(r-t),l=1/(a-i),u=1/(s-n);return e[0]=2*s*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*s*l,e[6]=0,e[7]=0,e[8]=(r+t)*o,e[9]=(a+i)*l,e[10]=(n+s)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=n*s*2*u,e[15]=0,e}function T(e,t,r,i){const s=t[0],n=t[1],l=t[2];let u=s-r[0],d=n-r[1],c=l-r[2];const p=(0,a.FD)();if(Math.abs(u)<p&&Math.abs(d)<p&&Math.abs(c)<p)return void o(e);let y=1/Math.sqrt(u*u+d*d+c*c);u*=y,d*=y,c*=y;const h=i[0],g=i[1],f=i[2];let m=g*c-f*d,v=f*u-h*c,b=h*d-g*u;y=Math.sqrt(m*m+v*v+b*b),y?(y=1/y,m*=y,v*=y,b*=y):(m=0,v=0,b=0);let w=d*b-c*v,L=c*m-u*b,M=u*v-d*m;y=Math.sqrt(w*w+L*L+M*M),y?(y=1/y,w*=y,L*=y,M*=y):(w=0,L=0,M=0),e[0]=m,e[1]=w,e[2]=u,e[3]=0,e[4]=v,e[5]=L,e[6]=d,e[7]=0,e[8]=b,e[9]=M,e[10]=c,e[11]=0,e[12]=-(m*s+v*n+b*l),e[13]=-(w*s+L*n+M*l),e[14]=-(u*s+d*n+c*l),e[15]=1}function x(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function O(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function E(e){const t=(0,a.FD)(),r=e[0],i=e[1],s=e[2],n=e[4],o=e[5],l=e[6],u=e[8],d=e[9],c=e[10];return Math.abs(1-(r*r+n*n+u*u))<=t&&Math.abs(1-(i*i+o*o+d*d))<=t&&Math.abs(1-(s*s+l*l+c*c))<=t}function P(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const j=c,R=x;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){const r=t[0],i=t[1],a=t[2],s=t[3],n=t[4],o=t[5],l=t[6],u=t[7],d=t[8],c=t[9],p=t[10],y=t[11],h=t[12],g=t[13],f=t[14],m=t[15];return e[0]=o*(p*m-y*f)-c*(l*m-u*f)+g*(l*y-u*p),e[1]=-(i*(p*m-y*f)-c*(a*m-s*f)+g*(a*y-s*p)),e[2]=i*(l*m-u*f)-o*(a*m-s*f)+g*(a*u-s*l),e[3]=-(i*(l*y-u*p)-o*(a*y-s*p)+c*(a*u-s*l)),e[4]=-(n*(p*m-y*f)-d*(l*m-u*f)+h*(l*y-u*p)),e[5]=r*(p*m-y*f)-d*(a*m-s*f)+h*(a*y-s*p),e[6]=-(r*(l*m-u*f)-n*(a*m-s*f)+h*(a*u-s*l)),e[7]=r*(l*y-u*p)-n*(a*y-s*p)+d*(a*u-s*l),e[8]=n*(c*m-y*g)-d*(o*m-u*g)+h*(o*y-u*c),e[9]=-(r*(c*m-y*g)-d*(i*m-s*g)+h*(i*y-s*c)),e[10]=r*(o*m-u*g)-n*(i*m-s*g)+h*(i*u-s*o),e[11]=-(r*(o*y-u*c)-n*(i*y-s*c)+d*(i*u-s*o)),e[12]=-(n*(c*f-p*g)-d*(o*f-l*g)+h*(o*p-l*c)),e[13]=r*(c*f-p*g)-d*(i*f-a*g)+h*(i*p-a*c),e[14]=-(r*(o*f-l*g)-n*(i*f-a*g)+h*(i*l-a*o)),e[15]=r*(o*p-l*c)-n*(i*p-a*c)+d*(i*l-a*o),e},copy:s,determinant:function(e){const t=e[0],r=e[1],i=e[2],a=e[3],s=e[4],n=e[5],o=e[6],l=e[7],u=e[8],d=e[9],c=e[10],p=e[11],y=e[12],h=e[13],g=e[14],f=e[15];return(t*n-r*s)*(c*f-p*g)-(t*o-i*s)*(d*f-p*h)+(t*l-a*s)*(d*g-c*h)+(r*o-i*n)*(u*f-p*y)-(r*l-a*n)*(u*g-c*y)+(i*l-a*o)*(u*h-d*y)},equals:function(e,t){if(e===t)return!0;const r=e[0],i=e[1],s=e[2],n=e[3],o=e[4],l=e[5],u=e[6],d=e[7],c=e[8],p=e[9],y=e[10],h=e[11],g=e[12],f=e[13],m=e[14],v=e[15],b=t[0],w=t[1],L=t[2],M=t[3],I=t[4],S=t[5],A=t[6],C=t[7],F=t[8],T=t[9],x=t[10],O=t[11],E=t[12],P=t[13],j=t[14],R=t[15],_=(0,a.FD)();return Math.abs(r-b)<=_*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-w)<=_*Math.max(1,Math.abs(i),Math.abs(w))&&Math.abs(s-L)<=_*Math.max(1,Math.abs(s),Math.abs(L))&&Math.abs(n-M)<=_*Math.max(1,Math.abs(n),Math.abs(M))&&Math.abs(o-I)<=_*Math.max(1,Math.abs(o),Math.abs(I))&&Math.abs(l-S)<=_*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-A)<=_*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(d-C)<=_*Math.max(1,Math.abs(d),Math.abs(C))&&Math.abs(c-F)<=_*Math.max(1,Math.abs(c),Math.abs(F))&&Math.abs(p-T)<=_*Math.max(1,Math.abs(p),Math.abs(T))&&Math.abs(y-x)<=_*Math.max(1,Math.abs(y),Math.abs(x))&&Math.abs(h-O)<=_*Math.max(1,Math.abs(h),Math.abs(O))&&Math.abs(g-E)<=_*Math.max(1,Math.abs(g),Math.abs(E))&&Math.abs(f-P)<=_*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(m-j)<=_*Math.max(1,Math.abs(m),Math.abs(j))&&Math.abs(v-R)<=_*Math.max(1,Math.abs(v),Math.abs(R))},exactEquals:O,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){const r=t[0],i=t[1],a=t[2],s=t[3],n=r+r,o=i+i,l=a+a,u=r*n,d=i*n,c=i*o,p=a*n,y=a*o,h=a*l,g=s*n,f=s*o,m=s*l;return e[0]=1-c-h,e[1]=d+m,e[2]=p-f,e[3]=0,e[4]=d-m,e[5]=1-u-h,e[6]=y+g,e[7]=0,e[8]=p+f,e[9]=y-g,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){const r=L,i=-t[0],a=-t[1],s=-t[2],n=t[3],o=t[4],l=t[5],u=t[6],d=t[7],c=i*i+a*a+s*s+n*n;return c>0?(r[0]=2*(o*n+d*i+l*s-u*a)/c,r[1]=2*(l*n+d*a+u*i-o*s)/c,r[2]=2*(u*n+d*s+o*a-l*i)/c):(r[0]=2*(o*n+d*i+l*s-u*a),r[1]=2*(l*n+d*a+u*i-o*s),r[2]=2*(u*n+d*s+o*a-l*i)),w(e,t,r),e},fromRotation:m,fromRotationTranslation:w,fromRotationTranslationScale:A,fromRotationTranslationScaleOrigin:C,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:f,fromXRotation:v,fromYRotation:function(e,t){const r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:b,frustum:F,getRotation:S,getScale:I,getTranslation:M,hasIdentityRotation:P,identity:o,invert:d,invertOrIdentity:u,isOrthoNormal:E,lookAt:T,mul:j,multiply:c,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e[4]=t[4]+r[4]*i,e[5]=t[5]+r[5]*i,e[6]=t[6]+r[6]*i,e[7]=t[7]+r[7]*i,e[8]=t[8]+r[8]*i,e[9]=t[9]+r[9]*i,e[10]=t[10]+r[10]*i,e[11]=t[11]+r[11]*i,e[12]=t[12]+r[12]*i,e[13]=t[13]+r[13]*i,e[14]=t[14]+r[14]*i,e[15]=t[15]+r[15]*i,e},ortho:function(e,t,r,i,a,s,n){const o=1/(t-r),l=1/(i-a),u=1/(s-n);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*o,e[13]=(a+i)*l,e[14]=(n+s)*u,e[15]=1,e},perspective:function(e,t,r,i,a){const s=1/Math.tan(t/2);let n;return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=a&&a!==1/0?(n=1/(i-a),e[10]=(a+i)*n,e[14]=2*a*i*n):(e[10]=-1,e[14]=-2*i),e},perspectiveFromFieldOfView:function(e,t,r,i){const a=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),n=Math.tan(t.leftDegrees*Math.PI/180),o=Math.tan(t.rightDegrees*Math.PI/180),l=2/(n+o),u=2/(a+s);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(n-o)*l*.5,e[9]=(a-s)*u*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e},rotate:h,rotateX:g,rotateY:function(e,t,r){const i=Math.sin(r),a=Math.cos(r),s=t[0],n=t[1],o=t[2],l=t[3],u=t[8],d=t[9],c=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*a-u*i,e[1]=n*a-d*i,e[2]=o*a-c*i,e[3]=l*a-p*i,e[8]=s*i+u*a,e[9]=n*i+d*a,e[10]=o*i+c*a,e[11]=l*i+p*a,e},rotateZ:function(e,t,r){const i=Math.sin(r),a=Math.cos(r),s=t[0],n=t[1],o=t[2],l=t[3],u=t[4],d=t[5],c=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*a+u*i,e[1]=n*a+d*i,e[2]=o*a+c*i,e[3]=l*a+p*i,e[4]=u*a-s*i,e[5]=d*a-n*i,e[6]=c*a-o*i,e[7]=p*a-l*i,e},scale:y,set:n,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:R,subtract:x,targetTo:function(e,t,r,i){const a=t[0],s=t[1],n=t[2],o=i[0],l=i[1],u=i[2];let d=a-r[0],c=s-r[1],p=n-r[2],y=d*d+c*c+p*p;y>0&&(y=1/Math.sqrt(y),d*=y,c*=y,p*=y);let h=l*p-u*c,g=u*d-o*p,f=o*c-l*d;return y=h*h+g*g+f*f,y>0&&(y=1/Math.sqrt(y),h*=y,g*=y,f*=y),e[0]=h,e[1]=g,e[2]=f,e[3]=0,e[4]=c*f-p*g,e[5]=p*h-d*f,e[6]=d*g-c*h,e[7]=0,e[8]=d,e[9]=c,e[10]=p,e[11]=0,e[12]=a,e[13]=s,e[14]=n,e[15]=1,e},translate:p,transpose:l},Symbol.toStringTag,{value:"Module"}))},54239(e,t,r){r.d(t,{A:()=>m});var i,a=r(32198),s=r(4576),n=r(66552),o=r(25482),l=r(86211),u=r(67076),d=r(91429),c=r(97348),p=r(43937),y=r(36005);const h=(0,n.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=h.jsonValues.slice();(0,s.Xy)(g,"orthometric");const f=(0,n.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=i=class extends o.o{constructor(e){super(e),this.origin=0,this.associatedSpatialReference=null,this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}read(e,t){super.read(e,t),"service"!==t?.origin&&"web-scene"!==t?.origin||(this.origin="service"===t.origin?2:1,this.associatedSpatialReference=null)}writeHeightModel(e,t,r){return h.write(e,t,r)}readHeightModel(e,t,r){return h.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS,origin:this.origin,associatedSpatialReference:this.associatedSpatialReference})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:r}=e;if(!r)return null;const a=(null!=t?c.B.get(t):null)??c.B.get(r);return a?new i({heightModel:0===a.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(a.unit.name),vertCRS:a.datum,origin:3,associatedSpatialReference:e}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,a.Cg)([(0,d.MZ)()],m.prototype,"origin",void 0),(0,a.Cg)([(0,d.MZ)()],m.prototype,"associatedSpatialReference",void 0),(0,a.Cg)([(0,d.MZ)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],m.prototype,"heightModel",void 0),(0,a.Cg)([(0,p.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,a.Cg)([(0,y.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,a.Cg)([(0,d.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:{writer:f.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,a.Cg)([(0,y.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,a.Cg)([(0,y.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,a.Cg)([(0,d.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,a.Cg)([(0,y.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=i=(0,a.Cg)([(0,d.$K)("esri.geometry.HeightModelInfo")],m)},73836(e,t,r){r.d(t,{A:()=>y});var i=r(32198),a=r(69540),s=r(25482),n=r(91429),o=r(58083),l=r(9093),u=r(67026),d=r(82534),c=r(51850),p=r(24770);let y=class extends((0,a.OU)(s.o)){constructor(e){super(e),this.translation=(0,c.vt)(),this.rotationAxis=(0,c.ci)(p.up),this.rotationAngle=0,this.scale=(0,c.fA)(1,1,1)}get rotation(){return(0,p.i4)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,c.o8)((0,p.yo)(e)),this.rotationAngle=(0,p.g7)(e)}get localMatrix(){const e=(0,l.vt)();return(0,u.x8)(h,(0,p.yo)(this.rotation),(0,p.$I)(this.rotation)),(0,o.o1)(e,h,this.translation,this.scale),e}get localMatrixInverse(){return(0,o.B8)((0,l.vt)(),this.localMatrix)}equals(e){return this===e||null!=e&&(0,o.t2)(this.localMatrix,e.localMatrix)}};(0,i.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"translation",void 0),(0,i.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"rotationAxis",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],y.prototype,"rotationAngle",void 0),(0,i.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"scale",void 0),(0,i.Cg)([(0,n.MZ)()],y.prototype,"rotation",null),(0,i.Cg)([(0,n.MZ)()],y.prototype,"localMatrix",null),(0,i.Cg)([(0,n.MZ)()],y.prototype,"localMatrixInverse",null),y=(0,i.Cg)([(0,n.$K)("esri.geometry.support.MeshTransform")],y);const h=(0,d.vt)()},24770(e,t,r){r.d(t,{$I:()=>f,AU:()=>y,g7:()=>g,i4:()=>d,ui:()=>c,vt:()=>u,yo:()=>h});var i=r(34727),a=r(58083),s=r(67026),n=r(82534),o=r(35522),l=r(51850);function u(e=v){return[e[0],e[1],e[2],e[3]]}function d(e,t,r=u()){return(0,o.C)(r,e),r[3]=t,r}function c(e,t=u()){const r=(0,a.l)(b,e);return m(t,(0,i.KJ)((0,s.Xd)(t,r))),t}function p(e,t,r=u()){return(0,s.x8)(b,e,f(e)),(0,s.x8)(w,t,f(t)),(0,s.lw)(b,w,b),m(r,(0,i.KJ)((0,s.Xd)(r,b)))}function y(e,t,r,i=u()){return d(l.Cw,e,L),d(l.JP,t,M),d(l.Cb,r,I),p(L,M,L),p(L,I,i),i}function h(e){return e}function g(e){return e[3]}function f(e){return(0,i.kU)(e[3])}function m(e,t){return e[3]=t,e}const v=[0,0,1,0],b=(0,n.vt)(),w=(0,n.vt)(),L=(u(),u()),M=u(),I=u();r.d(t,["up",0,v])},2e4(e,t,r){r.r(t),r.d(t,{default:()=>_e});var i=r(32198),a=r(52106),s=r(37838),n=r(69540),o=r(7762),l=r(49186),u=r(36563),d=r(53966),c=r(97768),p=r(25728),y=r(17676),h=r(36708),g=r(91429),f=r(88620),m=r(86738),v=r(99917),b=r(55156),w=r(60950),L=r(89808),M=r(99959);const I=Symbol("isSceneGraphicOrigin");var S;class A extends M.A{get[(S=I,w.ym)](){return this.layer}get[b.e](){return this.layer}get[L.Q](){return this.layer}constructor(e){super(),this[S]=!0,this.type="scene",this.layer=e}get id(){return this.layer.id}}var C=r(4146),F=r(55726),T=r(52136),x=r(18768),O=r(69208),E=r(47685),P=r(34287),j=r(8303),R=r(25036),_=r(58947),U=r(82935),Z=r(60694),G=r(92009),D=r(4071),q=r(10873),$=r(15426),N=r(67202),k=r(17036),V=r(95466),H=r(30524),K=r(50805),W=r(20557),B=r(46499),Q=r(39383),J=r(37352),z=r(2976),Y=r(86390),X=r(25482);let ee=class extends X.o{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,i.Cg)([(0,g.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],ee.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],ee.prototype,"field",void 0),(0,i.Cg)([(0,g.MZ)({type:[Number],json:{read:!0,write:!0}})],ee.prototype,"currentRangeExtent",void 0),(0,i.Cg)([(0,g.MZ)({type:[Number],json:{read:!0,write:!0}})],ee.prototype,"fullRangeExtent",void 0),(0,i.Cg)([(0,g.MZ)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ee.prototype,"type",void 0),ee=(0,i.Cg)([(0,g.$K)("esri.layers.support.RangeInfo")],ee);var te,re=r(56507),ie=r(4718),ae=r(87024),se=r(67076),ne=r(39829);let oe=te=class extends((0,X.T)(o.A.ofType(ne.A))){constructor(e){super(e)}clone(){return new te(this.items.map(e=>e.clone()))}write(e,t){return this.toJSON(t)}toJSON(e){const t=e?.layer?.spatialReference;return t?this.toArray().map(r=>{if(!t.equals(r.spatialReference)){if(!(0,v.canProjectWithoutEngine)(r.spatialReference,t))return e?.messages?.push(new se.A("scenefilter:unsupported","Scene filters with incompatible spatial references are not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),null;const i=new ne.A;(0,v.projectPolygon)(r,i,t),r=i}const i=r.toJSON(e);return delete i.spatialReference,i}).filter(e=>null!=e):this.toArray().map(t=>t.toJSON(e))}static fromJSON(e,t){const r=new te;return e.forEach(e=>r.add(ne.A.fromJSON(e,t))),r}};oe=te=(0,i.Cg)([(0,g.$K)("esri.layers.support.PolygonCollection")],oe);const le=oe;var ue,de=r(97159),ce=r(36005);let pe=ue=class extends X.o{constructor(e){super(e),this.spatialRelationship="disjoint",this.geometries=new le,this._geometriesSource=null}initialize(){this.addHandles((0,h.on)(()=>this.geometries,"after-changes",()=>this.geometries=this.geometries,h.OH))}readGeometries(e,t,r){Array.isArray(e)?this.geometries=le.fromJSON(e,r):"web-scene"!==r.origin&&"portal-item"!==r.origin||(this._geometriesSource={url:(0,de.f)(e,r),context:r})}async loadGeometries(e,t){if(null==this._geometriesSource)return;const{url:r,context:i}=this._geometriesSource,a=await(0,re.A)(r,{responseType:"json",signal:t?.signal}),s=e.toJSON(),n=a.data.map(e=>({...e,spatialReference:s}));this.geometries=le.fromJSON(n,i),this._geometriesSource=null}clone(){const e=new ue({geometries:(0,ie.o8)(this.geometries),spatialRelationship:this.spatialRelationship});return e._geometriesSource=this._geometriesSource,e}};(0,i.Cg)([(0,g.MZ)({type:["disjoint","contains"],nonNullable:!0,json:{write:{isRequired:!0}}})],pe.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,g.MZ)({type:le,nonNullable:!0,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),(0,ae.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"geometries",contentAddressed:!0})],pe.prototype,"geometries",void 0),(0,i.Cg)([(0,ce.w)(["web-scene","portal-item","service"],"geometries")],pe.prototype,"readGeometries",null),pe=ue=(0,i.Cg)([(0,g.$K)("esri.layers.support.SceneFilter")],pe);const ye=pe;function he({associatedLayer:e,serviceUpdateTimeStamp:t}){const r=e?.editingInfo?.lastEditDate,i=e?.serverGens,a=null!=r,s=null!=t,n=a&&s&&t.lastUpdate!==r.getTime();return a&&(n||!s&&i?.minServerGen!==i?.serverGen)}var ge=r(84952);let fe=class extends X.o{constructor(){super(...arguments),this.endTimeField=null,this.startTimeField=null}};(0,i.Cg)([(0,g.MZ)({type:String})],fe.prototype,"endTimeField",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],fe.prototype,"startTimeField",void 0),fe=(0,i.Cg)([(0,g.$K)("esri.layers.support.SceneServiceTimeInfo")],fe);var me=r(96184),ve=r(8947),be=r(41214),we=r(97552),Le=r(24212),Me=r(30291);async function Ie(e){const t=[];for(const r of e)r.name.toLowerCase().endsWith(".zip")?t.push(Se(r)):t.push(Promise.resolve(r));return(await Promise.all(t)).flat()}async function Se(e){const{BlobReader:t,ZipReader:i,BlobWriter:a}=await Promise.all([r.e(511),r.e(9588)]).then(()=>r(9588)),s=[],n=new i(new t(e));return(await n.getEntries()).forEach(e=>{if(e.directory||/^__MACOS/i.test(e.filename))return;const t=new a;s.push(e.getData(t).then(t=>new File([t],e.filename)))}),Promise.all(s)}var Ae=r(79677),Ce=r(10184),Fe=r(66480),Te=r(45671),xe=r(78553);const Oe=new Set(["3DObject","Point"]),Ee=(0,k.p)();let Pe=class extends((0,E.w6)((0,_.w6)((0,x.b)((0,P.q)((0,j.A)((0,R.j)((0,p.M)((0,O.d)((0,T.p)((0,n.OU)(C.A))))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.graphicOrigin=new A(this),this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new o.A,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.attributeTableTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0,this.serviceTimeInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._set("renderer",null),this.associatedLayer=(0,c.pR)(this.associatedLayer)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getField(e)?.domain??null;return this.associatedLayer?(0,$.Vq)(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new V.A(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:K.W4.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&(0,$.C$)(this.associatedLayer)}get geometryType(){return Re[this.profile]||"mesh"}set renderer(e){(0,H.yp)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e=null!=e?e:D.P;const{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:a,supportsUploadWithItemId:s,supportsGeometryUpdate:n,supportsReturnServiceEditsInSourceSpatialReference:o},data:{supportsZ:l,supportsM:u,isVersioned:d,supportsAttachment:c},operations:{supportsEditing:p,supportsAdd:y,supportsUpdate:h,supportsDelete:g,supportsQuery:f,supportsQueryAttachments:m,supportsAsyncConvert3D:v},attachment:b}=e,w=e.operations.supportsChangeTracking,L=!!this.associatedLayer?.infoFor3D;return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:o,supportsRollbackOnFailure:a,supportsGeometryUpdate:L&&n,supportsUploadWithItemId:s},data:{supportsAttachment:c,supportsZ:l,supportsM:u,isVersioned:d,queryFormats:e.data.queryFormats,sourceFormats:e.data.sourceFormats},operations:{supportsQuery:f,supportsQueryAttachments:m,supportsEditing:p&&w,supportsAdd:L&&y&&w,supportsDelete:L&&g&&w,supportsUpdate:h&&w,supportsAsyncConvert3D:v},attachment:b}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e)),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e)),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){const r=t.store.profile;return null!=r&&je[r]?je[r]:(d.A.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}get useViewTime(){return this.associatedLayer?.useViewTime??!0}set useViewTime(e){this._override("useViewTime",e)}get timeInfo(){const e=this.associatedLayer?.timeInfo;if(null==e)return null;const t=e.clone();return(0,H.sv)(t,this.fieldsIndex),t}set timeInfo(e){(0,H.sv)(e,this.fieldsIndex),this._override("timeInfo",e)}get timeExtent(){return this.associatedLayer?.timeExtent}set timeExtent(e){this._override("timeExtent",e)}get timeOffset(){return this.associatedLayer?.timeOffset}set timeOffset(e){this._override("timeOffset",e)}get datesInUnknownTimezone(){return this.associatedLayer?.datesInUnknownTimezone??!1}set datesInUnknownTimezone(e){this._override("datesInUnknownTimezone",e)}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const t=e?.signal;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(y.QP),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await this.loadTimeInfoFromService(e),await(0,ve.L)(this,{origin:"service"},t),(0,H.yp)(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){d.A.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){const e=new we.A;return"mesh"===this.geometryType?this.capabilities.query.supportsReturnMesh&&(e.returnGeometry=!0):(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryExtent(e||this.createQuery(),t))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatureCount(e||this.createQuery(),t))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatures(e||this.createQuery(),t)).then(e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}async queryModels(e,t){const[i,{queryModels:a}]=await Promise.all([this._getAssociatedLayerForQuery(),Promise.all([r.e(893),r.e(2387)]).then(()=>r(41653))]);return a(this,i,e,t)}async queryModel(e,t){const[i,{queryModel:a}]=await Promise.all([this._getAssociatedLayerForQuery(),Promise.all([r.e(893),r.e(2387)]).then(()=>r(41653))]);return a(this,i,e,t)}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){const r=(0,H.hL)(this.fieldsIndex,await(0,Te.TO)(this,(0,Te.D8)(this)));return(0,Fe.s1)(this.parsedUrl?.path??"",this.attributeStorageInfo??[],e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new l.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const i=new a.A;return i.attributes=r[0],i.layer=this,i.sourceLayer=this,i.origin=this.graphicOrigin,i}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryObjectIds(e||this.createQuery(),t))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryAttachments(e,t))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(d.A.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,Me.tn)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new l.A("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some(t=>t.name===e)}async queryCachedStatistics(e,t){return await this.load(t),await this.fetchStatistics(e,t)}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(0,e)}async applyEdits(e,t){const{applyEdits:i}=await r.e(6247).then(()=>r(78628));let a=t;await this.load();const s=this.associatedLayer;if(!s)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");await s.load();const{globalIdField:n}=s,o=!!s.infoFor3D,u=a?.globalIdUsed??!0;if(o&&null==n)throw new l.A(`${this.type}-layer:not-editable`,"Valid globalIdField expected on editable SceneLayer");if(o&&!u)throw new l.A(`${this.type}-layer:globalid-required`,"globalIdUsed must not be false for SceneLayer editing as globalIds are required.");return(0,Z.Wo)(s.url)&&o&&null!=e.deleteFeatures&&null!=n&&(a={...a,globalIdToObjectId:await(0,$.GA)(s,e.deleteFeatures,n)}),i(this,s.source,e,a)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}async convertMesh(e,t){t??={};const i=e=>{throw d.A.getLogger(this).error(".convertMesh()",e.message),e};await this.load(t),this.infoFor3D||i(new l.A("invalid:layer","SceneLayer has no capability for mesh conversion"));const a=await this.extractAndFilterFiles(e);(0,y.Te)(t);const s=a.reduce((e,t)=>(0,W.oF)(this.infoFor3D,t)?e+1:e,0);0===s&&i(new F.VP),s>1&&i(new F.XQ);const n=this.spatialReference,o=t.origin,u=await(0,v.projectAsync)(o??t.defaultOrigin??new m.A({x:0,y:0,z:0,spatialReference:n}),n,t),c=n.isGeographic?"local":"georeferenced",{createWithExternalSource:p}=await Promise.all([r.e(6860),r.e(118),r.e(3354)]).then(()=>r(40118));(0,y.Te)(t);const h=p(u,{type:"client",files:a},{vertexSpace:c,transform:(0,Y.Z)(n),unitConversionDisabled:!0}),[g]=await this.uploadAssets([h],{...t,useAssetOrigin:!o});return g}async extractAndFilterFiles(e){await this.load();const t=this.infoFor3D;return t?(await Ie(e)).filter(e=>(0,W.fu)(t,e)):e}validateLayer(e){if(e.layerType&&!Oe.has(e.layerType))throw new l.A("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new l.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new l.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const a=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=a;break;case"vertex-reference-frame":r=!0,i=!a;break;default:r=!1}}if(!r)throw new l.A("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new l.A("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}get isUsedAsGroundLayer(){return!1}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new l.A("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!!this.attributeStorageInfo?.some(t=>t.name===e.name),r=!!this.associatedLayer?.fields?.some(t=>t&&e.name===t.name),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPropertyOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPropertyOverrides(){if(!this.associatedLayer)return;const e=["popupTemplate","popupEnabled","attributeTableTemplate"],t=(0,f.oY)(this);for(let r=0;r<e.length;r++){const i=e[r],a=this.originIdOf(i),s=this.associatedLayer.originIdOf(i);a<s&&(2===s||3===s)&&t.setAtOrigin(i,this.associatedLayer[i],s)}}_applyAssociatedLayerExtentOverride(){const e=this.associatedLayer?.getAtOrigin("fullExtent","service");null!=this.associatedLayer?.infoFor3D&&e&&(0,Z.Wo)(this.associatedLayer?.url)&&he(this)&&(0,f.oY)(this).setAtOrigin("fullExtent",e.clone(),2)}_applyAssociatedLayerPrivileges(){const e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{const{serverUrl:t,layerId:r,portalItem:i}=await(0,G.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e}),a=await z.U.FeatureLayer();this.associatedLayer=new a({url:t,customParameters:this.customParameters,apiKey:this.apiKey,layerId:r,portalItem:i}),await this.associatedLayer.load()}catch(e){(0,y.zf)(e)||this._logWarningOnPopupEnabled().catch(()=>{})}}async _logWarningOnPopupEnabled(){const e=new AbortController;this.addHandles((0,u.rE)(e));try{await(0,h.C_)(()=>this.popupEnabled&&null!=this.popupTemplate,e.signal)}catch(e){return void(0,y.jH)(e)}const t=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?d.A.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${t}`):d.A.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${t}`)}_validateElevationInfo(){const e=this.elevationInfo;"mesh-pyramids"===this.profile&&(0,Le.XF)(d.A.getLogger(this),(0,Le.$7)("Mesh scene layers","relative-to-scene",e)),(0,Le.XF)(d.A.getLogger(this),(0,Le.tW)("Scene layers",e))}async fetchStatistics(e,t){return await async function({fieldName:e,statisticsInfo:t,errorContext:r,fieldsIndex:i,path:a,customParameters:s,apiKey:n,signal:o}){if(null==t)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics are not available for this layer");const u=i.get(e);if(null==u)throw new l.A(`${r}:field-unexisting`,`Field '${e}' does not exist on the layer`);const d=t.find(e=>e.name===u.name);if(null==d)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics for this attribute are not available");const c=(0,ge.fj)(a,d.href),{data:p}=await(0,re.A)(c,{query:{f:"json",...s,token:n},responseType:"json",signal:o});return p}({fieldName:e,statisticsInfo:this.statisticsInfo,errorContext:"scenelayer",fieldsIndex:this.fieldsIndex,path:this.parsedUrl?.path??"",customParameters:this.customParameters,apiKey:this.apiKey,signal:t?.signal})}async loadTimeInfoFromService(e){const{serviceTimeInfo:t}=this;if(null==t)return;const{startTimeField:r,endTimeField:i}=t;if(null==r&&null==i)return;if(he({associatedLayer:this.associatedLayer,serviceUpdateTimeStamp:this.serviceUpdateTimeStamp}))return;const a=async t=>{let i=null;try{const r=await this.fetchStatistics(t,e);i=r?.stats}catch{}if(null==i)return null;const{minTimeStr:a,min:s,maxTimeStr:n,max:o}=i,l=t===r?a??s:n??o;return null!=l?new Date(l):null},[s,n]=await Promise.all([a(r),a(i)]);if(null!=r&&null==s||null!=i&&null==n)return;const o=new Ae.A({start:s,end:n});this.setAtOrigin("timeInfo",new me.A({endField:i,startField:r,fullTimeExtent:o}),"service")}};(0,i.Cg)([(0,g.MZ)({types:{key:"type",base:null,typeMap:{selection:N.A}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:{allowNull:!0}},"portal-item":{name:"layerDefinition.featureReduction",write:{allowNull:!0}}}}})],Pe.prototype,"featureReduction",void 0),(0,i.Cg)([(0,g.MZ)({type:[ee],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}},clonable:!1})],Pe.prototype,"rangeInfos",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1}})],Pe.prototype,"associatedLayer",void 0),(0,i.Cg)([(0,g.MZ)({type:["show","hide"]})],Pe.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)({type:["ArcGISSceneServiceLayer"]})],Pe.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1},readOnly:!0})],Pe.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({...Ee.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"fields",void 0),(0,i.Cg)([(0,g.MZ)()],Pe.prototype,"types",null),(0,i.Cg)([(0,g.MZ)()],Pe.prototype,"typeIdField",null),(0,i.Cg)([(0,g.MZ)()],Pe.prototype,"templates",null),(0,i.Cg)([(0,g.MZ)()],Pe.prototype,"formTemplate",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Pe.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,clonable:!1})],Pe.prototype,"fieldsIndex",null),(0,i.Cg)([(0,g.MZ)({type:J.A,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Pe.prototype,"floorInfo",void 0),(0,i.Cg)([(0,g.MZ)(Ee.outFields)],Pe.prototype,"outFields",void 0),(0,i.Cg)([(0,g.MZ)({type:K.W4,readOnly:!0,json:{read:!1},clonable:!1})],Pe.prototype,"nodePages",void 0),(0,i.Cg)([(0,ce.w)("service","nodePages",["nodePages","pointNodePages"])],Pe.prototype,"readNodePages",null),(0,i.Cg)([(0,g.MZ)({type:[K.uV],readOnly:!0,clonable:!1})],Pe.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[K.Ot],readOnly:!0,clonable:!1})],Pe.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[K.L0],readOnly:!0,clonable:!1})],Pe.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Pe.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Pe.prototype,"attributeStorageInfo",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Pe.prototype,"statisticsInfo",void 0),(0,i.Cg)([(0,g.MZ)({type:o.A.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],Pe.prototype,"excludeObjectIds",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Pe.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,g.MZ)({type:ye,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],Pe.prototype,"filter",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Pe.prototype,"path",void 0),(0,i.Cg)([(0,g.MZ)(q.Yj)],Pe.prototype,"elevationInfo",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Pe.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,g.MZ)({type:String})],Pe.prototype,"geometryType",null),(0,i.Cg)([(0,g.MZ)(q.kF)],Pe.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,g.MZ)({type:[B.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:Q.w},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:Q.w},write:!0}})],Pe.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,g.MZ)(q.fV)],Pe.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?(0,xe.D)(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],Pe.prototype,"opacity",void 0),(0,i.Cg)([(0,g.MZ)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"priority",void 0),(0,i.Cg)([(0,g.MZ)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"semantic",void 0),(0,i.Cg)([(0,g.MZ)({types:be.XJ,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],Pe.prototype,"renderer",null),(0,i.Cg)([(0,g.MZ)({json:{read:!1}})],Pe.prototype,"cachedDrawingInfo",void 0),(0,i.Cg)([(0,ce.w)("service","cachedDrawingInfo")],Pe.prototype,"readCachedDrawingInfo",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"capabilities",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{read:!1}})],Pe.prototype,"editingEnabled",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{write:!1,read:!1}})],Pe.prototype,"infoFor3D",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{write:!1,read:!1}})],Pe.prototype,"relationships",null),(0,i.Cg)([(0,g.MZ)(q.M6)],Pe.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],Pe.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Pe.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,g.MZ)(q.zQ)],Pe.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{read:!1}})],Pe.prototype,"objectIdField",void 0),(0,i.Cg)([(0,ce.w)("service","objectIdField",["objectIdField","fields"])],Pe.prototype,"readObjectIdField",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{read:!1}})],Pe.prototype,"globalIdField",void 0),(0,i.Cg)([(0,ce.w)("service","globalIdField",["globalIdField","fields"])],Pe.prototype,"readGlobalIdField",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:String,json:{read:!1}})],Pe.prototype,"displayField",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{read:!1}})],Pe.prototype,"profile",void 0),(0,i.Cg)([(0,ce.w)("service","profile",["store.profile"])],Pe.prototype,"readProfile",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],Pe.prototype,"normalReferenceFrame",void 0),(0,i.Cg)([(0,g.MZ)(q.PY)],Pe.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1,origins:{service:{read:!0}}}})],Pe.prototype,"serviceItemId",void 0),(0,i.Cg)([(0,g.MZ)(U.B)],Pe.prototype,"useViewTime",null),(0,i.Cg)([(0,g.MZ)((0,q.U$)({disableServiceOrigin:!0,webDocumentOrigin:"web-scene"}))],Pe.prototype,"timeInfo",null),(0,i.Cg)([(0,g.MZ)({type:Ae.A,json:{read:!1,write:!1}})],Pe.prototype,"timeExtent",null),(0,i.Cg)([(0,g.MZ)({type:Ce.A,json:{read:!1,write:!1}})],Pe.prototype,"timeOffset",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,nonNullable:!0,json:{read:!1,write:!1}})],Pe.prototype,"datesInUnknownTimezone",null),(0,i.Cg)([(0,g.MZ)({type:fe,readOnly:!0,json:{read:{source:"timeInfo"}},clonable:!1})],Pe.prototype,"serviceTimeInfo",void 0),(0,i.Cg)([(0,g.MZ)()],Pe.prototype,"isUsedAsGroundLayer",null),Pe=(0,i.Cg)([(0,g.$K)("esri.layers.SceneLayer")],Pe);const je={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},Re={"mesh-pyramids":"mesh",points:"point"},_e=Pe},55726(e,t,r){r.d(t,{$1:()=>u,H2:()=>y,MT:()=>h,VP:()=>g,WF:()=>d,Wt:()=>n,XQ:()=>f,hK:()=>p,nS:()=>c,uh:()=>o,xY:()=>l});var i=r(49186);const a="upload-assets",s=()=>new Error;class n extends i.A{constructor(){super(`${a}:unsupported`,"Layer does not support asset uploads.",s())}}class o extends i.A{constructor(){super(`${a}:no-glb-support`,"Layer does not support glb.",s())}}class l extends i.A{constructor(){super(`${a}:no-supported-source`,"No supported external source found",s())}}class u extends i.A{constructor(){super(`${a}:not-base-64`,"Expected gltf data in base64 format after conversion.",s())}}class d extends i.A{constructor(){super(`${a}:unable-to-prepare-options`,"Unable to prepare uploadAsset request options.",s())}}class c extends i.A{constructor(e,t){super(`${a}:bad-response`,`Bad response. Uploaded ${e} items and received ${t} results.`,s())}}class p extends i.A{constructor(e,t){super(`${a}-layer:upload-failed`,`Failed to upload mesh file ${e}. Error code: ${t?.code??"-1"}. Error message: ${t?.messages??"unknown"}`,s())}}class y extends i.A{constructor(e){super(`${a}-layer:unsupported-format`,`The service allowed us to upload an asset of FormatID ${e}, but it does not list it in its supported formats.`,s())}}class h extends i.A{constructor(){super(`${a}:convert3D-failed`,"convert3D failed.")}}class g extends i.A{constructor(){super("invalid-input:no-model","No supported model found")}}class f extends i.A{constructor(){super("invalid-input:multiple-models","Multiple supported models found")}}},18768(e,t,r){var i=r(32198),a=r(53966),s=r(91429),n=r(60694);r.d(t,["b",0,e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,n.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,n.Jf)(e,a.A.getLogger(this)))}};return(0,i.Cg)([(0,s.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,s.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(e,t,r){var i=r(32198),a=r(91429);r.d(t,["d",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,a.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},47685(e,t,r){r.d(t,{Mk:()=>y,Zk:()=>c});var i=r(32198),a=r(65529),s=r(4718),n=r(91429),o=r(20816);const l=new a.bk;function u(e){return l.on("apply-edits",new WeakRef(e))}function d(e){return l.on("update-moment",new WeakRef(e))}function c(e,t,r=null,i=!1){const a=Promise.withResolvers();return i=null==t||i,l.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:a.promise}),a}const p=Symbol();function y(e){return null!=e&&"object"==typeof e&&p in e}function h(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function g(e,t,r){const i=new URL(e).host,a=o.Z3.get(i),s=e=>!e||e===a;return s(t)&&s(r)||t===r}r.d(t,["w6",0,e=>{var t;const r=e;let a=class extends r{static{t=p}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:a,result:n}=e,o=t===this.url,l=null!=r&&null!=this.layerId&&r===this.layerId,u=null!=r&&this.relationships?.some(e=>e.relatedTableId===r),d=h(this),c=h(this)&&g(t,i,this.gdbVersion);if(!o||d&&!c||!l&&!u&&!a)return;const p=n.then(e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,s.o8)(e)),e;const r=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(r){const{adds:t,updates:i,deletes:a}=r.editedFeatures,n={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:a?a.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:i?i.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,s.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.o8)(e.historicMoment)};return this.emit("edits",n),n}const a={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,s.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,s.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,a.historicMoment)&&this.emit("edits",a),a}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));p.catch(()=>{}),this.emit("apply-edits",{result:p})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:r,moment:i}=e,a=t===this.url,s=h(this),n=h(this)&&g(t,r,this.gdbVersion),o=h(this)&&!g(t,this.gdbVersion,null);a&&s&&n&&o&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(d(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,o.w5)(e,t)}};return(0,i.Cg)([(0,n.MZ)()],a.prototype,"lastEditsEventDate",void 0),a=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.EditBusLayer")],a),a}])},85707(e,t,r){var i=r(32198),a=r(91429),s=r(54239);r.d(t,["a",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.heightModelInfo=null}read(e,t){super.read(e,t),"service"===t?.origin&&2===this.heightModelInfo?.origin&&(this.heightModelInfo.associatedSpatialReference=this.getAtOrigin("spatialReference","service"))}};return(0,i.Cg)([(0,a.MZ)({readOnly:!0,type:s.A})],r.prototype,"heightModelInfo",void 0),r=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.HeightModelInfoMixin")],r),r}])},34287(e,t,r){var i=r(32198),a=r(49186),s=r(84952),n=r(91429),o=r(78888),l=r(89317),u=r(45917),d=r(49422),c=r(10873),p=r(6345),y=r(79677),h=r(59923),g=r(36005),f=r(43937);r.d(t,["q",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.persistenceEnabled=!0,this.title=null}readId(e,t,r){return"Group Layer"===r?.portalItem?.type?void 0:e}writeListMode(e,t,r,i){(i&&"ground"===i.layerContainerType||e&&(0,d.R)(this,r,{},i))&&(t[r]=e)}writeOperationalLayerType(e,t,r){e&&(t[r]=e)}writeTitle(e,t){t.title=e??"Layer"}readVisibilityTimeExtent(e){return e?y.A.fromArray(e):null}writeVisibilityTimeExtent(e,t,r,i){e&&"tables"!==i.layerContainerType&&(e.isEmpty?i?.messages&&i.messages.push(new a.A("layer:invalid-visibilityTimeExtent","visibilityTimeExtent cannot be empty")):t[r]=e.toArray())}read(e,t){t&&(t.layer=this),(0,u.t)(this,e,t=>super.read(e,t),t)}write(e,t){if(!this.persistenceEnabled&&!t?.ignorePersistenceEnabled)return null;if(t?.origin&&!(0,p.Bu)(t,this.operationalLayerType,this.type))return(0,h.U4)(t,this),null;const r=super.write(e,{...t,layer:this}),i=!!t&&!!t.messages&&!!t.messages.filter(e=>e instanceof a.A&&"web-document-write:property-required"===e.name).length;return(0,s.w8)(r?.url)?(t?.messages?.push(new a.A("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&i?null:r}beforeSave(){}};return(0,i.Cg)([(0,n.MZ)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],r.prototype,"id",void 0),(0,i.Cg)([(0,g.w)("id",["id"])],r.prototype,"readId",null),(0,i.Cg)([(0,n.MZ)(c.C1)],r.prototype,"listMode",void 0),(0,i.Cg)([(0,f.K)("listMode")],r.prototype,"writeListMode",null),(0,i.Cg)([(0,n.MZ)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1},"web-scene":{name:"layerType",read:!1,write:{enabled:!0,ignoreOrigin:!0,layerContainerTypes:l.K,isRequired:!0}}}}})],r.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,f.K)("operationalLayerType")],r.prototype,"writeOperationalLayerType",null),(0,i.Cg)([(0,n.MZ)(c.ke)],r.prototype,"opacity",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,readOnly:!1})],r.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],r.prototype,"title",void 0),(0,i.Cg)([(0,f.K)("title"),(0,f.K)(["web-scene"],"title")],r.prototype,"writeTitle",null),(0,i.Cg)([(0,n.MZ)({type:y.A,json:{origins:{"web-scene":{write:{layerContainerTypes:l.K}}}}})],r.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,g.w)("visibilityTimeExtent")],r.prototype,"readVisibilityTimeExtent",null),(0,i.Cg)([(0,f.K)(["portal-item","web-map","web-scene"],"visibilityTimeExtent",{visibilityTimeExtent:{type:[[o.jz,o.Uv]]}})],r.prototype,"writeVisibilityTimeExtent",null),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{name:"visibility",write:{layerContainerTypes:l.K}}})],r.prototype,"visible",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.OperationalLayer")],r),r}])},8303(e,t,r){var i=r(32198),a=r(92602),s=r(70333),n=r(56507),o=r(60999),l=r(49186),u=r(36563),d=r(53966),c=r(97768),p=r(17676),y=r(84952),h=r(91429),g=r(77548),f=r(20655),m=r(80812),v=r(41318),b=r(10407),w=r(36005),L=r(43937);const M={credential:null,user:null};r.d(t,["A",0,e=>{const t=e;let I=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(()=>r(41204));return(0,p.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||d.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;const i=t?.signal?null:new AbortController;try{const{reload:a}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,u.rE)(i),"reloadFromPortal"),await a({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:i.signal})}catch(e){throw(0,p.zf)(e)||d.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{i&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!a.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:a}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",a)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!s.id?.findCredential(this.url),a=e===r.id;if(a&&r.portal.user)return this._getUserPrivileges(r,i);let n,o;if(a)n=r.portal.url;else try{n=await(0,g.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!n||!(0,y.b8)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,u=!1,d=!1;if(!o)return{features:{edit:l,fullEdit:u},content:{updateItem:d}};try{if(a?await r.reload():(r=new m.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:d}}}_getUserPrivileges(e,t){const r=(0,b.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,a=f.A.getDefault();if(a&&a.loaded&&(0,y.S8)(a.restUrl)===(0,y.S8)(i))return a.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,d=await(0,o.Ke)((0,n.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return d.ok?v.A.fromJSON(d.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||f.A.getDefault());return r&&i&&!(0,y.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,h.MZ)({type:m.default})],I.prototype,"portalItem",null),(0,i.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],I.prototype,"readPortalItem",null),(0,i.Cg)([(0,L.K)("web-document","portalItem",{itemId:{type:String}})],I.prototype,"writePortalItem",null),(0,i.Cg)([(0,h.MZ)({clonable:!1})],I.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasUpdateItemPrivileges",void 0),I=(0,i.Cg)([(0,h.$K)("esri.layers.mixins.PortalLayer")],I),I}])},25036(e,t,r){var i=r(32198),a=r(91429);r.d(t,["j",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},82935(e,t,r){var i=r(32198),a=r(91429),s=r(30524),n=r(96184),o=r(73133),l=r(79677),u=r(10184),d=r(36005);const c={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,c,"e",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,a=o.j.fromJSON(r.timeOffsetUnits);return i&&a?new u.A({value:i,unit:a}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,a.MZ)({type:l.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,a.MZ)({type:u.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,d.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,a.MZ)({value:null,type:n.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,a.MZ)(c)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},67202(e,t,r){r.d(t,{A:()=>o});var i,a=r(32198),s=r(25482),n=r(91429);let o=i=class extends s.o{constructor(e){super(e),this.type="selection"}clone(){return new i}};(0,a.Cg)([(0,n.MZ)({type:["selection"],readOnly:!0,json:{write:!0}})],o.prototype,"type",void 0),o=i=(0,a.Cg)([(0,n.$K)("esri.layers.support.FeatureReductionSelection")],o)},37352(e,t,r){r.d(t,{A:()=>l});var i,a=r(32198),s=r(7762),n=r(25482),o=r(91429);let l=i=class extends n.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new s.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,a.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"floorField",void 0),(0,a.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllMode",void 0),(0,a.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllLevelIds",void 0),l=i=(0,a.Cg)([(0,o.$K)("esri.layers.support.LayerFloorInfo")],l)},17036(e,t,r){r.d(t,{p:()=>l});var i=r(44208),a=r(53966),s=r(20437),n=r(95466),o=r(30524);function l(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");a.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return n.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||a.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,o.DB)(this.fieldsIndex,e)}}}}},20557(e,t,r){r.d(t,{Fm:()=>l,Hz:()=>f,JQ:()=>g,JZ:()=>A,ND:()=>v,R_:()=>n,U9:()=>h,_h:()=>w,be:()=>c,fE:()=>y,fu:()=>a,nr:()=>m,oF:()=>s,qv:()=>S,rP:()=>p,rq:()=>u,z$:()=>d});const i=[["binary","application/octet-stream","bin",""]];function a(e,t){return null!=L(t.name,e?.supportedFormats??[])}function s(e,t){if(!e)return!1;const r=u(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function n(e,t){return M(function(e,t){const r=e.toLowerCase();return b(t).find(e=>I(e)===r)}(e,t))}function o(e,t){return M(L(e,t))}function l(e,t){return I(w(e,t))}function u(e,t){return o(e.name,t)??n(e.type,t)}function d(e,t,r){return n(e,r)??o(t,r)}function c(e,t){if(!e||!w(e,t))return;const r=/^3d_(.+)$/iu.exec(e)?.[1]?.toLowerCase();return r||void 0}function p(e,t){return(e??[]).map(e=>c(e,t)).filter(e=>!!e)}function y(e,t){return M(t.find(r=>c(M(r),t)===e))}function h({supportedFormats:e}){return d("model/gltf-binary","glb",e)}function g(e){const t=h(e);return null!=t&&e.editFormats.includes(t)}function f(e){if(!e)return null;const t=h(e),r=function({supportedFormats:e}){return d("model/gltf+json","gltf",e)}(e);let i=null;for(const a of e.queryFormats){if(a===t)return a;a===r&&(i=a)}return i}function m({supportedFormats:e}){return d("application/esri3do-SR_world","wld",e)}function v({supportedFormats:e}){return d("application/esri3do-SR_prj","prj",e)}function b(e){return[...i,...e]}function w(e,t){return b(t).find(t=>M(t)===e)}function L(e,t){const r=e.toLowerCase();return b(t).find(e=>S(e).some(e=>r.endsWith(e)))}function M(e){return e?.[0]}function I(e){return e?.[1].toLowerCase()}function S(e){return e?.[2].split(",").map(e=>e.toLowerCase())??[]}function A(e){return e.tables?.find(e=>"assetMaps"===e.role)}},6345(e,t,r){r.d(t,{Bu:()=>b,VH:()=>v});var i=r(44208);const a={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},s={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",ArcGISVideoLayer:"VideoLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",get ParquetLayer(){return(0,i.A)("parquetlayer-persistence-enabled")?"ParquetLayer":"UnsupportedLayer"},SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},n={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},o={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},l={IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer"},u={ArcGISTiledElevationServiceLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},d={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CSV:"CSVLayer",CatalogLayer:"CatalogLayer",GaussianSplatLayer:"GaussianSplatLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",Object3DTilesLayer:"UnsupportedLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},c={ArcGISFeatureLayer:"FeatureLayer"},p={...s,LinkChartLayer:"LinkChartLayer"},y=a,h=n,g={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",BuildingSceneLayer:"BuildingSceneLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",MediaLayer:"MediaLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",SubtypeGroupLayer:"SubtypeGroupLayer",WCS:"WCSLayer"},f=n;function m(e){switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap-base-layers":return o;case"basemap-ground-layers":return l;case"ground":return u;case"tables":return c;default:return d}case"link-chart":switch(e.layerContainerType){case"basemap-base-layers":return y;case"tables":return h;default:return p}default:switch(e.layerContainerType){case"basemap-base-layers":return a;case"tables":return n;case"ground":case"basemap-ground-layers":return;default:return s}}}function v(e,t){if(!t)return"UnknownLayer";if("DefaultTileLayer"===t){let t="UnknownLayer";if("web-scene"===e.origin)switch(e.layerContainerType){case"operational-layers":case"basemap-base-layers":t="TileLayer";break;case"ground":t="ElevationLayer"}else switch(e.layerContainerType){case"basemap-base-layers":case"operational-layers":t="TileLayer"}return t}return m(e)?.[t]??"UnknownLayer"}function b(e,t,r){if(!e?.origin)return!1;switch(e.origin){case"web-map":case"link-chart":if("operational-layers"===e.layerContainerType&&"ArcGISDimensionLayer"===t&&"dimension-feature"!==r)return!1;break;case"web-scene":if("operational-layers"===e.layerContainerType)switch(t){case"ArcGISDimensionLayer":if("dimension"!==r)return!1;break;case"ArcGISTiledElevationServiceLayer":return!1}break;case"portal-item":if("ArcGISDimensionLayer"===t&&"dimension-feature"!==r)return!1}const i=function(e){if("portal-item"===e.origin)switch(e.layerContainerType){case"basemap-base-layers":case"ground":case"basemap-ground-layers":return;case"tables":return f;default:return g}return m(e)}(e)?.[t];return null!=i&&"UnknownLayer"!==i&&"UnsupportedLayer"!==i}},86390(e,t,r){r.d(t,{Z:()=>s});var i=r(86211),a=r(73836);function s(e){const t=1/(0,i.GA)(e,1);return 1!==t?new a.A({scale:[t,t,t]}):void 0}},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var i=r(4718),a=r(53966),s=r(84952),n=r(60694),o=r(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:r}=e??{},s=(0,i.o8)(o.OZ),l=s.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,i,a){(0,n.LS)(this,e,r,t,a)}),{...s,set:function(e){if(null==e)return void this._set("url",e);const r=(0,n.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:a.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){const{separator:r}=t??{},i=(0,s.An)(e.url);return null!=i&&(null!=e.dynamicDataSource?i.path=(0,s.fj)(i.path,"dynamicLayer"):null!=e.layerId&&(i.path=(0,s.fj)(i.path,r??"",e.layerId.toString()))),i}},10407(e,t,r){r.d(t,{It:()=>y,LG:()=>n,OM:()=>u,Sm:()=>d,Y:()=>o,bK:()=>l,sQ:()=>c});var i=r(99917),a=r(16930),s=r(28735);function n(e,t){if(!o(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function o(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return o(e,p.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function d(e,t,r){r?n(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const r=a.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const p={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function y(e){const{portal:t,isOrgItem:r,itemControl:i}=e,a=t.user?.privileges;let s=!a||a.includes("features:user:edit"),n=!!r&&!!a?.includes("features:user:fullEdit");const o="update"===i||"admin"===i;return o?n=s=!0:n&&(s=!0),{features:{edit:s,fullEdit:n},content:{updateItem:o}}}r.d(t,["mm",0,p])},85648(e,t,r){r.d(t,{n:()=>a});var i=r(84952);function a(e){return s[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.Zo)(e);return l[t]||n}(e.url)}(e)]||o}const s={},n="text/plain",o=s[n],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)s[l[e]]=e},8947(e,t,r){r.d(t,{L:()=>n});var i=r(60999),a=r(17676),s=r(67076);async function n(e,t,r){const n=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(n&&"unique-value"===n.type&&n.styleOrigin){const o=await(0,i.Ke)(n.populateFromStyle());if((0,a.Te)(r),!1===o.ok){const r=o.error;t?.messages&&t.messages.push(new s.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},20816(e,t,r){r.d(t,{We:()=>o,ZJ:()=>l,w5:()=>u});var i=r(56507);const a=(0,r(13069).vD)(),s=new Map,n=new Map;async function o(e,t,r){if(!e||!r)return!1;if(!t)return!0;const a=new URL(e).host;let n=s.get(a);if(!n){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");n=(await(0,i.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return n===t}async function l(e,t,i=!1){if(!e||!t)return!0;const s=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),o=n.get(s)?.entries();if(o)for(const[e,n]of o)if(n.name===t){const t=!n.stack?.hasForwardEdits();if(!t&&i){const[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(2186).then(()=>r(32186)),r.e(2558).then(()=>r(32558))]),o=await t(s,e,new i({sessionId:a,moment:n.moment}));return o.success&&n.stack?.clearForwardEdits(),o.success}return t}return!0}function u(e,t){if(!e)return!1;const r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=n.get(r)?.entries();if(i)for(const[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map,r.d(t,["TA",0,a,"Z3",0,s])},45671(e,t,r){r.d(t,{D8:()=>s,TO:()=>a});var i=r(30524);async function a(e,t=e.popupTemplate){if(null==t)return[];const r=await t.getRequiredFields(e.fieldsIndex),{lastEditInfoEnabled:a}=t,{objectIdField:s,typeIdField:n,globalIdField:o,relationships:l}=e;if(r.includes("*"))return["*"];const u=a?(0,i.eX)(e):[],d=(0,i.DB)(e.fieldsIndex,[...r,...u]);return n&&d.push(n),d&&s&&e.fieldsIndex?.has(s)&&!d.includes(s)&&d.push(s),d&&o&&e.fieldsIndex?.has(o)&&!d.includes(o)&&d.push(o),l?.forEach(t=>{const{keyField:r}=t;d&&r&&e.fieldsIndex?.has(r)&&!d.includes(r)&&d.push(r)}),d}function s(e,t){return e&&"object"==typeof e?t?.checkPopupEnabled&&"popupEnabled"in e&&!e.popupEnabled?null:"popupTemplate"in e&&e.popupTemplate?e.popupTemplate:null!=t&&t.defaultPopupTemplateEnabled&&"defaultPopupTemplate"in e&&e.defaultPopupTemplate?e.defaultPopupTemplate:null:null}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,4500,5651],{19334(e,t,r){r.d(t,{e:()=>s});var o=r(54639),i=r(14112);class n{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function s(e){if(null==e)return null;switch(e.type){case"point":if((0,i.e6)(e))return null;break;case"polygon":if((0,i.Wq)(e))return null;break;case"polyline":if((0,i.IY)(e))return null;break;case"multipoint":if((0,i.DG)(e))return null;break;case"extent":if((0,i.As)(e))return null;break;default:return null}const t=o.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new n(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>p,p:()=>u});var o=r(54639),i=r(14112),n=r(16930),s=r(60408),a=r(65864);class l{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){const t=(0,a.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function p(e,t){if(null==e||"object"!=typeof e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof n.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new n.A,r.read(e.spatialReference))),null==r)throw new Error("Spatial reference required");return(0,s.fT)(e)?u("point",e,r):(0,s.Rg)(e)?u("polyline",e,r):(0,s.Bi)(e)?u("polygon",e,r):(0,s.U9)(e)?u("multipoint",e,r):(0,s.ZC)(e)?u("extent",e,r):null}function u(e,t,r){if(null==t)return null;let n=!1,s=!1;switch(e){case"point":if((0,i.e6)(t))return null;n=void 0!==t.z,s=void 0!==t.m;break;case"polygon":if((0,i.Wq)(t))return null;n=!0===t.hasZ,s=!0===t.hasM;break;case"polyline":if((0,i.IY)(t))return null;n=!0===t.hasZ,s=!0===t.hasM;break;case"multipoint":if((0,i.DG)(t))return null;n=!0===t.hasZ,s=!0===t.hasM;break;case"extent":if((0,i.As)(t))return null;n=null!=t.zmin&&null!=t.zmax,s=null!=t.mmin&&null!=t.mmax;break;default:throw new Error("Unsupported geometry type: "+t.type)}return o.R.of(e,r,n,s,new l(t))}},14112(e,t,r){function o(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function i(e){if(0===(e.curveRings??e.rings).length)return!0;for(const t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function n(e){if(0===(e.curvePaths??e.paths).length)return!0;for(const t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function s(e){return 0===e.points.length}function a(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>a,DG:()=>s,IY:()=>n,Wq:()=>i,e6:()=>o})},16852(e,t,r){r.r(t),r.d(t,{default:()=>Z});var o=r(32198),i=r(49186),n=r(93637),s=r(91429),a=r(16930),l=r(55156),p=r(60950),u=r(89808),c=r(99959);const y=Symbol("isOrientedImageryGraphicOrigin");var d;class f extends c.A{get[(d=y,p.ym)](){return this.layer}get[l.e](){return this.layer}get[u.Q](){return this.layer}constructor(e){super(),this[d]=!0,this.type="oriented-imagery",this.layer=e}get id(){return this.layer.id}}var g=r(18589),m=r(23281),h=r(20437),v=r(43440),w=r(79677);const C=new Set(["demPathPrefix","demPathSuffix","depthImagePathPrefix","depthImagePathSuffix","elevationSource","horizontalMeasurementUnit","imageGeometryField","imageReferenceField","referenceIDField","sequenceOrderField","sequenceOrderFields","verticalMeasurementUnit","videoPathPrefix","videoPathSuffix","timeAnimation","visibilityTimeExtent"]),b=new Set(["elevationSource"]),M=(e,t)=>!C.has(t)&&e;function x(e,t,r,o){const{name:i,write:n,read:s}=((e,t,r)=>{const o=`orientedImageryProperties.${e}`,i={allowNull:b.has(e),ignoreOrigin:!0};return{name:o,write:t?{...i,target:o,writer:t}:i,read:r?{ignoreOrigin:!0,source:o,reader:r}:{ignoreOrigin:!0}}})(e,t,r),a={name:i,write:n,read:s,origins:{service:{name:`orientedImageryInfo.${i}`,write:t,read:r},"web-scene":{name:i,write:M(n,e),read:M(s,e)},"web-map":{name:i,write:n,read:s}}};return o&&a.origins?(a.type=o,a.origins["web-map"].type=o,a.origins["web-scene"].type=o,a):a}let S=class extends g.default{constructor(e){super(e),this.attributeTableTemplate=null,this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.graphicOrigin=new f(this),this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imageGeometryField="ImageGeometry",this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageReferenceField="OIObjectID",this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.referenceIDField="OBJECTID",this.sequenceOrderField="SequenceOrder",this.sequenceOrderFields=[],this.subtypeField=null,this.subtypes=null,this.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),this.type="oriented-imagery",this.timeIntervalUnit="days",this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.verticalSearchRange=null,this.videoPathPrefix=null,this.videoPathSuffix=null,this.virtualCacheDirectory=null,this.dataStoreID=null,this.imageAccessPaths=null,this.visibilityTimeExtent=null}get effectiveElevationSource(){const{elevationSource:e,demPathPrefix:t,demPathSuffix:r}=this;return(0,m.eR)(e,t,r)}get effectiveSequenceOrderField(){const{sequenceOrderField:e,fields:t,sequenceOrderFields:r}=this;return(0,m.o)(e,t,r)}get fieldConfigurations(){return super.fieldConfigurations}set fieldConfigurations(e){super.fieldConfigurations=e}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}findFirstValidLayerId(e){return e.layers?.find(({type:e})=>!!e&&this.supportedSourceTypes.has(e))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new i.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};(0,o.Cg)([(0,s.MZ)({type:v.A,json:{write:!1,read:!1}})],S.prototype,"attributeTableTemplate",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:x("cameraHeading")})],S.prototype,"cameraHeading",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:x("cameraHeight")})],S.prototype,"cameraHeight",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:x("cameraPitch")})],S.prototype,"cameraPitch",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:x("cameraRoll")})],S.prototype,"cameraRoll",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:x("coveragePercent")})],S.prototype,"coveragePercent",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:x("demPathPrefix")})],S.prototype,"demPathPrefix",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:x("demPathSuffix")})],S.prototype,"demPathSuffix",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:x("depthImagePathPrefix")})],S.prototype,"depthImagePathPrefix",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:x("depthImagePathSuffix")})],S.prototype,"depthImagePathSuffix",void 0),(0,o.Cg)([(0,s.MZ)({type:Object,json:x("elevationSource")})],S.prototype,"elevationSource",void 0),(0,o.Cg)([(0,s.MZ)({readOnly:!0})],S.prototype,"effectiveElevationSource",null),(0,o.Cg)([(0,s.MZ)({readOnly:!0})],S.prototype,"effectiveSequenceOrderField",null),(0,o.Cg)([(0,s.MZ)({type:Number,json:x("farDistance")})],S.prototype,"farDistance",void 0),(0,o.Cg)([(0,s.MZ)({type:[h.A]})],S.prototype,"fields",void 0),(0,o.Cg)([(0,s.MZ)()],S.prototype,"geometryType",void 0),(0,o.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],S.prototype,"graphicOrigin",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:x("horizontalFieldOfView")})],S.prototype,"horizontalFieldOfView",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:x("horizontalMeasurementUnit")})],S.prototype,"horizontalMeasurementUnit",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{...x("imageGeometryField"),default:"ImageGeometry"}})],S.prototype,"imageGeometryField",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:x("imagePathPrefix")})],S.prototype,"imagePathPrefix",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:x("imagePathSuffix")})],S.prototype,"imagePathSuffix",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{...x("imageReferenceField"),default:"OIObjectID"}})],S.prototype,"imageReferenceField",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:x("imageRotation")})],S.prototype,"imageRotation",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:x("maximumDistance")})],S.prototype,"maximumDistance",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:x("nearDistance")})],S.prototype,"nearDistance",void 0),(0,o.Cg)([(0,s.MZ)({type:["OrientedImageryLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0}}}}})],S.prototype,"operationalLayerType",void 0),(0,o.Cg)([(0,s.MZ)({json:{...x("orientationAccuracy",(e,t,r)=>{(0,n.sM)(r,e.join(";"),t)},e=>{const t=e?.split(";")?.map(Number);return(0,m.Qv)(t)?(0,m.Yp)(t):[0,0,0,0,0,0,0,0]},String)}})],S.prototype,"orientationAccuracy",void 0),(0,o.Cg)([(0,s.MZ)({json:{...x("orientedImageryType",m.fs.write,m.fs.read,m.fs.jsonValues.slice(1))}})],S.prototype,"orientedImageryType",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{...x("referenceIDField"),default:"OBJECTID"}})],S.prototype,"referenceIDField",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{...x("sequenceOrderField"),default:"SequenceOrder"}})],S.prototype,"sequenceOrderField",void 0),(0,o.Cg)([(0,s.MZ)({json:{...x("sequenceOrderFields",function(e,t,r){e?.length&&(0,n.sM)(r,e,t)}),default:[]}})],S.prototype,"sequenceOrderFields",void 0),(0,o.Cg)([(0,s.MZ)({type:a.A})],S.prototype,"spatialReference",void 0),(0,o.Cg)([(0,s.MZ)({readOnly:!0})],S.prototype,"subtypeField",void 0),(0,o.Cg)([(0,s.MZ)({readOnly:!0})],S.prototype,"subtypes",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],S.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({type:m.RR.apiValues,json:{...x("timeIntervalUnit",m.RR.write,m.RR.read,m.RR.jsonValues)}})],S.prototype,"timeIntervalUnit",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:x("verticalFieldOfView")})],S.prototype,"verticalFieldOfView",void 0),(0,o.Cg)([(0,s.MZ)({type:m.l6.apiValues,json:{...x("verticalMeasurementUnit",m.l6.write,m.l6.read,m.l6.jsonValues)}})],S.prototype,"verticalMeasurementUnit",void 0),(0,o.Cg)([(0,s.MZ)({type:Number,json:x("verticalSearchRange")})],S.prototype,"verticalSearchRange",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:x("videoPathPrefix")})],S.prototype,"videoPathPrefix",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:x("videoPathSuffix")})],S.prototype,"videoPathSuffix",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.orientedImageryProperties.virtualCacheDirectory",read:!0}}}})],S.prototype,"virtualCacheDirectory",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.dsid",read:!0}}}})],S.prototype,"dataStoreID",void 0),(0,o.Cg)([(0,s.MZ)({type:Object,readOnly:!0,json:{read:!1,write:!1,origins:{service:{name:"orientedImageryInfo.imageAccessPaths",read:!0}}}})],S.prototype,"imageAccessPaths",void 0),(0,o.Cg)([(0,s.MZ)({type:w.A,json:{origins:{"web-scene":{write:!1,read:!1}}}})],S.prototype,"visibilityTimeExtent",void 0),S=(0,o.Cg)([(0,s.$K)("esri.layers.OrientedImageryLayer")],S);const Z=S},32756(e,t,r){r.d(t,{Rr:()=>a});var o=r(32198),i=r(93637),n=r(91429),s=r(91880);function a(e,t,r){if(!e)return null;const o=e.find(e=>!!e.field);if(!o)return null;const i=new s.A;return i.read(o,r),[i]}const l={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,o){const n=e.find(e=>!!e.field);n&&(0,i.sM)(r,[n.toJSON()],t)}}}};r.d(t,["fY",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,o.Cg)([(0,n.MZ)(l)],r.prototype,"orderBy",void 0),r=(0,o.Cg)([(0,n.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,l])},63490(e,t,r){r.d(t,{Mr:()=>l,TH:()=>a});var o=r(32198),i=r(69540),n=r(25482),s=r(91429);let a=class extends((0,i.OU)(n.o)){constructor(){super(...arguments),this.url=null}};(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],a.prototype,"lod",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"rasterFunction",void 0),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=(0,o.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],a);let l=class extends((0,i.OU)(n.o)){constructor(e){super(e),this.constantElevation=null}};(0,o.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],l.prototype,"constantElevation",void 0),l=(0,o.Cg)([(0,s.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],l),r.d(t,["E1",0,e=>null!=e&&"number"==typeof e.constantElevation])},23281(e,t,r){r.d(t,{eR:()=>M,Qv:()=>I,fs:()=>Z,Yp:()=>O,o:()=>E,RR:()=>x,l6:()=>S});var o=r(66552),i=(r(86211),r(28735),r(32198)),n=r(69540),s=r(25482),a=r(91429),l=r(69622),p=r(21325);let u=class extends l.A{set horizontalWKID(e){e?(0,p.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,p.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:o,tangentialDistortionCoefficients:i}=this;return e?.length>1&&!Number.isNaN(t)&&r?.length>1&&o?.length>1&&i?.length>1}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"affineTransformations",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"focalLength",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"principalOffsetPoint",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"radialDistortionCoefficients",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"tangentialDistortionCoefficients",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"horizontalWKID",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"verticalWKID",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"x",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"y",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"z",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientation")],u);const c=u;let y=class extends((0,n.OU)((0,s.T)(c))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:r,x:o,y:i,z:n,heading:s,pitch:a,roll:l,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:y,tangentialDistortionCoefficients:d}=this,f=[e,t,r,o,i,n,s,a,l];return this.isAdvanced&&(p?.forEach(e=>f.push(e)),f.push(u),c?.forEach(e=>f.push(e)),y?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],y.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],y.prototype,"affineTransformations",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"focalLength",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],y.prototype,"principalOffsetPoint",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],y.prototype,"radialDistortionCoefficients",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],y.prototype,"tangentialDistortionCoefficients",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"heading",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"pitch",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"roll",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"x",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"y",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"z",void 0),y=(0,i.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],y);const d=y;let f=class extends((0,n.OU)((0,s.T)(c))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:r,ellipsoidRadius:o,squaredEccentricity:i,properties:n}=this,s=`${n}`.split("|");return s.splice(1,1),`${e}|${t}|${r}|${o}|${i}|${s.join("|")}`}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],f.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"latitude",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"longitude",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"ellipsoidRadius",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"squaredEccentricity",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],f.prototype,"properties",void 0),f=(0,i.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],f);const g=f;let m=class extends((0,n.OU)((0,s.T)(c))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:r,x:o,y:i,z:n,omega:s,phi:a,kappa:l,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:y,tangentialDistortionCoefficients:d}=this,f=[e,t,r,o,i,n,s,a,l];return this.isAdvanced&&(p?.forEach(e=>f.push(e)),f.push(u),c?.forEach(e=>f.push(e)),y?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e))),f.map(e=>isNaN(e)?"":e).join("|")}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],m.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],m.prototype,"affineTransformations",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"focalLength",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],m.prototype,"principalOffsetPoint",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],m.prototype,"radialDistortionCoefficients",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],m.prototype,"tangentialDistortionCoefficients",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"omega",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"phi",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"kappa",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"x",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"y",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],m.prototype,"z",void 0),m=(0,i.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],m);const h=m;let v=class extends((0,n.OU)((0,s.T)(c))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:o,tangentialDistortionCoefficients:i}=this;return e?.length>1||!Number.isNaN(t)||r?.length>1||o?.length>1||i?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:r,x:o,y:i,z:n,yaw:s,pitch:a,roll:l,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:y,tangentialDistortionCoefficients:d}=this,f=[e,t,r,o,i,n,s,a,l];return this.isAdvanced&&(p?.forEach(e=>f.push(e)),f.push(u),c?.forEach(e=>f.push(e)),c?.forEach(e=>f.push(e)),y?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"yaw",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,i.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],v);const w=v,C=new Map;C.set("2",{desc:"Using Omega Phi Kappa",constructor:h}),C.set("1",{desc:"Using Heading, Pitch and Roll",constructor:d}),C.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:w}),C.set("4",{desc:"Using Local Tangent Plane",constructor:g});var b=r(63490);function M(e,t,r){return e?(0,b.E1)(e)?new b.Mr(e):function(e,t,r){let{url:o}=e;return o?(o=function(e,t,r){return t&&(e=`${t}${e}`),r&&(e+=`${r}`),e}(o,t,r),new b.TH({...e,url:o})):null}(e,t,r):e}const x=new o.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),S=new o.J({Feet:"feet",Meter:"meter"}),Z=new o.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),j=new Map;j.set("1",function(e){const[t,r,o,i,n,s,a,l,p,u,c,y,d,f,g,m,h,v,w,C,b,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:o,y:i,z:n,heading:s,pitch:a,roll:l,...N([p,u,c,y,d,f],[m,h],[v,w,C],[b,M],g)}}),j.set("3",function(e){const[t,r,o,i,n,s,a,l,p,u,c,y,d,f,g,m,h,v,w,C,b,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:o,y:i,z:n,yaw:s,pitch:a,roll:l,...N([p,u,c,y,d,f],[m,h],[v,w,C],[b,M],g)}}),j.set("2",function(e){const[t,r,o,i,n,s,a,l,p,u,c,y,d,f,g,m,h,v,w,C,b,M]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:o,y:i,z:n,omega:s,phi:a,kappa:l,...N([p,u,c,y,d,f],[m,h],[v,w,C],[b,M],g)}}),j.set("4",function(e){const[t,r,o,i,n,...s]=e.slice(1),a=j.get(n),l=C.get(n)?.constructor;return a&&l?{latitude:t,longitude:r,ellipsoidRadius:o,squaredEccentricity:i,properties:new l(a([n,"",...s]))}:null});const P=e=>{const t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function N(e,t,r,o,i){const n=P(e),s=P(t),a=P(r),l=P(o);return{affineTransformations:6===n?.length?n:void 0,focalLength:6===n?.length?parseFloat(i):void 0,principalOffsetPoint:2!==s?.length?[0,0]:s,radialDistortionCoefficients:3!==a?.length?[0,0,0]:a,tangentialDistortionCoefficients:2!==l?.length?[0,0]:l}}function I(e){return Array.isArray(e)&&e?.length>5&&!e.some(isNaN)}function O(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}function E(e,t,r){const o=function(e,t){return e?.length?e.map(({field:e,order:r})=>{const o=t.find(t=>t.name.toLowerCase()===e.toLowerCase());return o?{fieldName:o.name,sortOrder:"desc"===r?.toLowerCase()?"desc":"asc"}:null}).filter(e=>null!=e):null}(r,t);if(o?.length)return o;if(!e){const e=t.find(e=>e.name.toLocaleLowerCase()==="sequenceorder".toLocaleLowerCase());return e?[{fieldName:e.name,sortOrder:"asc"}]:null}const i=t.find(t=>t.name.toLowerCase()===e.trim().toLowerCase());return i?[{fieldName:i.name,sortOrder:"asc"}]:null}},29005(e,t,r){r.d(t,{A:()=>p});var o=r(32198),i=r(69540),n=r(66552),s=r(25482),a=r(91429);const l=new n.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],p.prototype,"description",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:l.read,write:l.write}})],p.prototype,"drawingTool",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,o.Cg)([(0,a.$K)("esri.layers.support.FeatureTemplate")],p)},33143(e,t,r){r.d(t,{A:()=>c});var o=r(32198),i=r(69540),n=r(25482),s=r(91429),a=r(8631),l=r(29005),p=r(36005),u=r(43937);let c=class extends((0,i.OU)(n.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,a.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],c.prototype,"id",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,o.Cg)([(0,s.MZ)({json:{write:!0}})],c.prototype,"domains",void 0),(0,o.Cg)([(0,p.w)("domains")],c.prototype,"readDomains",null),(0,o.Cg)([(0,u.K)("domains")],c.prototype,"writeDomains",null),(0,o.Cg)([(0,s.MZ)({type:[l.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,o.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],c)},46499(e,t,r){r.d(t,{A:()=>S});var o,i,n=r(32198),s=(r(44208),r(66552)),a=r(25482),l=r(4718),p=r(90629),u=r(91429),c=r(90360),y=r(73913),d=r(32730),f=r(77548),g=r(59868),m=r(73838),h=r(33910),v=r(36005),w=r(43937);const C=new s.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function b(e,t,r){return{enabled:!(0,f.TU)(r?.layer)}}function M(e){return!e||"service"!==e.origin&&!("map-image"===e.layer?.type)}function x(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let S=class extends a.o{static{o=d.vK}static{i=this}static evaluateWhere(e,t){const r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;const o=e.split(" ");if(3===o.length)return r(t[o[0]],o[1],o[2]);if(7===o.length){const e=r(t[o[0]],o[1],o[2]),i=o[3],n=r(t[o[4]],o[5],o[6]);switch(i){case"AND":return e&&n;case"OR":return e||n}}return!1}catch(e){}}constructor(e){super(e),this[o]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=g.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){const r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,d.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const t=(0,d.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,o){if(null==e&&null!=this.labelExpression&&M(o))e=new y.A({expression:this.getLabelExpressionArcade()});else if(!e)return;const i=e.toJSON(o);i.expression&&(t[r]=i)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,d.XJ)(this)}getLabelExpressionArcade(){return(0,d.BI)(this)}getLabelExpressionSingleField(){return(0,d.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new i({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,l.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,l.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"name",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:b}}}}})],S.prototype,"allowOverrun",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:b}}}}})],S.prototype,"deconflictionStrategy",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&x(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],S.prototype,"labelExpression",void 0),(0,n.Cg)([(0,v.w)("labelExpression")],S.prototype,"readLabelExpression",null),(0,n.Cg)([(0,w.K)("labelExpression")],S.prototype,"writeLabelExpression",null),(0,n.Cg)([(0,u.MZ)({type:y.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return M(e)||x(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],S.prototype,"labelExpressionInfo",void 0),(0,n.Cg)([(0,w.K)("labelExpressionInfo")],S.prototype,"writeLabelExpressionInfo",null),(0,n.Cg)([(0,u.MZ)({type:C.apiValues,json:{type:C.jsonValues,read:C.read,write:C.write}})],S.prototype,"labelPlacement",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],S.prototype,"offsetDistance",void 0),(0,n.Cg)([(0,u.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],S.prototype,"labelPosition",void 0),(0,n.Cg)([(0,u.MZ)({type:Number})],S.prototype,"maxScale",void 0),(0,n.Cg)([(0,w.K)("maxScale")],S.prototype,"writeMaxScale",null),(0,n.Cg)([(0,u.MZ)({type:Number})],S.prototype,"minScale",void 0),(0,n.Cg)([(0,w.K)("minScale")],S.prototype,"writeMinScale",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:b}}}}})],S.prototype,"repeatLabel",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,cast:p.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:b}}}}})],S.prototype,"repeatLabelDistance",null),(0,n.Cg)([(0,u.MZ)({types:h.em,json:{types:h.em,origins:{"portal-item":{types:h.em,read:{reader:(0,c.C)({types:h.em})},default:null},"web-scene":{types:h.Rv,read:{reader:(0,c.C)({types:h.Rv})},write:m.oO,default:null}},write:m.oO,default:null}})],S.prototype,"symbol",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"useCodedValues",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"where",void 0),S=i=(0,n.Cg)([(0,u.$K)("esri.layers.support.LabelClass")],S)},73913(e,t,r){r.d(t,{A:()=>u});var o,i=r(32198),n=r(25482),s=r(91429),a=r(32730),l=r(36005),p=r(43937);let u=class extends n.o{static{o=this}constructor(e){super(e),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,a.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,a.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new o({expression:this.expression,title:this.title,value:this.value})}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],u.prototype,"expression",void 0),(0,i.Cg)([(0,l.w)("expression",["expression","value"])],u.prototype,"readExpression",null),(0,i.Cg)([(0,p.K)("expression")],u.prototype,"writeExpression",null),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],u.prototype,"value",void 0),u=o=(0,i.Cg)([(0,s.$K)("esri.layers.support.LabelExpressionInfo")],u)},91880(e,t,r){r.d(t,{A:()=>p});var o,i=r(32198),n=r(66552),s=r(25482),a=r(91429);const l=new n.J({asc:"ascending",desc:"descending"});let p=class extends s.o{static{o=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new o({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,i.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],p.prototype,"order",void 0),p=o=(0,i.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],p)},41560(e,t,r){r.d(t,{Ch:()=>s,mW:()=>n});var o=r(34727),i=r(39516);function n(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){const n=function(e){if("manual"===p(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:o}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],c(o));return t}(e);if(n&&((0,o.gg)(t,n[0])||(0,o.ZH)(r,n[1])))return"";const s=Array.from(a(e,t,r)),l=function(e,t,r){if(0===e.length)return!0;const i=u(e.at(0)?.minScale),n=c(e.at(-1)?.maxScale);if((0,o.ZH)(i,t)||(0,o.gg)(n,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],i=e[t+1];if((0,o.ZH)(u(i.minScale),c(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,i.IW)(e,t),"");return l&&"1=1"!==l?l:""}function*a(e,t,r){if("manual"===p(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const o of e.filters)l(o.minScale,o.maxScale,t,r)&&(yield o)}}function l(e,t,r,i){return e=u(e),r=u(r),t=c(t),!(!(0,o.Sp)(r,e)&&(i??r)>e||(0,o.Hx)(t,r)||void 0!==i&&(0,o.Sp)(i,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||Number.POSITIVE_INFINITY}function c(e){return e||0}},39383(e,t,r){r.d(t,{w:()=>l,z:()=>c});var o=r(49186),i=r(53966),n=r(46499);const s=()=>i.A.getLogger("esri.layers.support.labelingInfo"),a=/\[([^[\]]+)\]/gi;function l(e,t,r){return e?e.map(e=>{const o=new n.A;if(o.read(e,r),o.labelExpression){const e=t.fields||t.layerDefinition?.fields||this.fields;o.labelExpression=o.labelExpression.replaceAll(a,(t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const o=t[e].name;if(o.toLowerCase()===r)return o}return e}(r,e)}]`)}return o}):null}const p=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],u={esriGeometryPoint:p,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:p,esriGeometryEnvelope:null};function c(e,t){const r=[];for(const i of e){const e=i.labelPlacement,n=u[t];if(!i.symbol)return s().warn("No ILabelClass symbol specified."),[];if(!n)return s().error(new o.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(n.includes(e))r.push(i);else{const o=n[0];e&&s().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${o}`);const a=i.clone();a.labelPlacement=o,r.push(a)}}return r}},22671(e,t,r){r.d(t,{A:()=>v});var o,i=r(32198),n=r(52106),s=r(66552),a=r(25482),l=r(4718),p=r(91429),u=r(16930),c=r(60408),y=r(65864),d=r(50498),f=r(20437),g=r(36005),m=r(43937);const h=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=o=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,o){if(e)return void h.write(e,t,r,o);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void h.write(e.geometry.type,t,r,o)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,o=(0,y.rS)(e);return o&&!r&&t.spatialReference&&(o.spatialReference=u.A.fromJSON(t.spatialReference)),o}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new o(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const o=t.features[r];if(o.geometry){const t=e?.[r];o.geometry=t?.toJSON()||o.geometry}}return t}quantize(e){const{scale:[t,r],translate:[o,i]}=e,n=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-o)/t),e=>Math.round((i-e)/r));for(let e=0,t=n.length;e<t;e++)s?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[o,i],scale:[n,s]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,e=>e*n+o,e=>i-e*s,a,l);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const o=u.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const n=e[t],s=r.fromJSON(n),a=n.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=o);const l=n.aggregateGeometries,p=s.aggregateGeometries;if(l&&null!=p)for(const e in p){const t=p[e],r=l[e],i=r?.spatialReference;null==t||i||(t.spatialReference=o)}i.push(s)}return i}_quantizePoints(e,t,r){let o,i;const n=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=r(a[1]);e===o&&s===i||(n.push([e-o,s-i]),o=e,i=s)}else o=t(a[0]),i=r(a[1]),n.push([o,i])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const o=(0,c.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,n=o.length;e<n;e++){const n=o[e],s=this._quantizePoints(n,t,r);s&&i.push(s)}return i.length>0?((0,c.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const o=this._quantizePoints(e.points,t,r);return o&&o.length>0?(e.points=o,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,o,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),o&&(e.z=o(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,c.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,o=n.length;e<o;e++){const o=n[e];for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(s+=i[0],a+=i[1]):(s=i[0],a=i[1]),i[0]=t(s),i[1]=r(a)}}if(o&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2]),r[3]=i(r[3])}}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),o&&null!=e.zmax&&null!=e.zmin&&(e.zmax=o(e.zmax),e.zmin=o(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let s,a;for(let e=0,o=n.length;e<o;e++){const o=n[e];e>0?(s+=o[0],a+=o[1]):(s=o[0],a=o[1]),o[0]=t(s),o[1]=r(a)}if(o&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=o(t[2]),t[3]=i(t[3])}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=o(t[2])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,p.MZ)({type:[n.A],json:{write:!0}})],v.prototype,"features",void 0),(0,i.Cg)([(0,g.w)("features")],v.prototype,"readFeatures",null),(0,i.Cg)([(0,p.MZ)({type:[f.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:h.read}}})],v.prototype,"geometryType",void 0),(0,i.Cg)([(0,m.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,i.Cg)([(0,p.MZ)({types:d.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,g.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,p.MZ)({type:u.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,i.Cg)([(0,m.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=o=(0,i.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7283],{54239(e,t,i){i.d(t,{A:()=>v});var r,o=i(32198),s=i(4576),n=i(66552),l=i(25482),d=i(86211),a=i(67076),p=i(91429),u=i(97348),c=i(43937),g=i(36005);const h=(0,n.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),y=h.jsonValues.slice();(0,s.Xy)(y,"orthometric");const f=(0,n.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let v=r=class extends l.o{constructor(e){super(e),this.origin=0,this.associatedSpatialReference=null,this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}read(e,t){super.read(e,t),"service"!==t?.origin&&"web-scene"!==t?.origin||(this.origin="service"===t.origin?2:1,this.associatedSpatialReference=null)}writeHeightModel(e,t,i){return h.write(e,t,i)}readHeightModel(e,t,i){return h.read(e)||(i?.messages&&i.messages.push(function(e,t){return new a.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return f.read(e)||(i?.messages&&i.messages.push(m(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,d.LA)(e)||f.read(e)||(i?.messages&&i.messages.push(m(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS,origin:this.origin,associatedSpatialReference:this.associatedSpatialReference})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static fromSpatialReference(e){const{latestVcsWkid:t,vcsWkid:i}=e;if(!i)return null;const o=(null!=t?u.B.get(t):null)??u.B.get(i);return o?new r({heightModel:0===o.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,d.LA)(o.unit.name),vertCRS:o.datum,origin:3,associatedSpatialReference:e}):null}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function m(e,t){return new a.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o.Cg)([(0,p.MZ)()],v.prototype,"origin",void 0),(0,o.Cg)([(0,p.MZ)()],v.prototype,"associatedSpatialReference",void 0),(0,o.Cg)([(0,p.MZ)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y,default:"ellipsoidal",write:{isRequired:!0}}}}})],v.prototype,"heightModel",void 0),(0,o.Cg)([(0,c.K)("web-scene","heightModel")],v.prototype,"writeHeightModel",null),(0,o.Cg)([(0,g.w)(["web-scene","service"],"heightModel")],v.prototype,"readHeightModel",null),(0,o.Cg)([(0,p.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:{writer:f.write,isRequired:!0}}}}})],v.prototype,"heightUnit",void 0),(0,o.Cg)([(0,g.w)("web-scene","heightUnit")],v.prototype,"readHeightUnit",null),(0,o.Cg)([(0,g.w)("service","heightUnit")],v.prototype,"readHeightUnitService",null),(0,o.Cg)([(0,p.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],v.prototype,"vertCRS",void 0),(0,o.Cg)([(0,g.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],v.prototype,"readVertCRS",null),v=r=(0,o.Cg)([(0,p.$K)("esri.geometry.HeightModelInfo")],v)},10086(e,t,i){i.d(t,{j:()=>R});var r=i(32198),o=i(7762),s=i(4718),n=i(84952),l=i(91429),d=i(89317),a=i(35666),p=i(5443),u=i(16930),c=i(85707),g=i(10873),h=i(28032),y=i(69540),f=i(25482);let v=class extends((0,y.OU)(f.o)){constructor(e){super(e)}};(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],v.prototype,"name",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],v.prototype,"fields",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],v.prototype,"isAscending",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],v.prototype,"indexType",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],v.prototype,"isUnique",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],v.prototype,"description",void 0),v=(0,r.Cg)([(0,l.$K)("esri.layers.support.FeatureIndex")],v);var m=i(15426),C=i(86211);let M=class extends((0,y.OU)(f.o)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],M.prototype,"shapeAreaField",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],M.prototype,"shapeLengthField",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:e=>C.dk.read(e)||C.Sk.read(e)}})],M.prototype,"units",void 0),M=(0,r.Cg)([(0,l.$K)("esri.layers.support.GeometryFieldsInfo")],M);var I=i(37352),w=i(77548),S=i(73179),F=i(45067),Z=i(6666),b=i(8631),O=i(36005),x=i(43937);let U=class extends((0,y.OU)(f.o)){constructor(e){super(e),this.code=null,this.defaultValues={},this.domains=null,this.name=null}readDomains(e){if(!e)return null;const t={};for(const i of Object.keys(e))t[i]=(0,b.r)(e[i]);return t}writeDomains(e,t){if(!e)return;const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],U.prototype,"code",void 0),(0,r.Cg)([(0,l.MZ)({type:Object,json:{write:!0}})],U.prototype,"defaultValues",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],U.prototype,"domains",void 0),(0,r.Cg)([(0,O.w)("domains")],U.prototype,"readDomains",null),(0,r.Cg)([(0,x.K)("domains")],U.prototype,"writeDomains",null),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],U.prototype,"name",void 0),U=(0,r.Cg)([(0,l.$K)("esri.layers.support.Subtype")],U);var j=i(10407),A=i(56400);const R=e=>{const t=(0,c.a)(e);let i=class extends t{constructor(){super(...arguments),this.cacheMaxAge=0,this.capabilities=null,this.copyright=null,this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.definitionExpression=null,this.displayField=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.fieldsIndex=null,this.floorInfo=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.globalIdField=null,this.hasM=void 0,this.hasZ=void 0,this.historicMoment=null,this.indexes=new(o.A.ofType(v)),this.isTable=!1,this.layerId=void 0,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.preferredTimeZone=null,this.relationships=null,this.returnM=void 0,this.returnZ=void 0,this.serviceDefinitionExpression=null,this.serviceItemId=null,this.sourceJSON=null,this.spatialReference=u.A.WGS84,this.subtypeField=null,this.subtypes=null,this.timeInfo=null,this.trackIdField=null,this.uniqueIdFields=null,this.url=null,this.version=void 0,this._isUrlHostModified=!1,this._isUrlHostModificationEnabled=!1}getFieldDomain(e,t){throw new Error("Not implemented")}getField(e){return this.fieldsIndex.get(e)}get authenticationTriggerEvent(){if(!this.url)return null;const{capabilities:e}=this;if(e){const{query:t,operations:i,editing:r}=e;if(!t.supportsQueryByOthers||!t.supportsQueryByAnonymous)return"load";if(i.supportsEditing&&!(r.supportsUpdateByOthers&&r.supportsUpdateByAnonymous&&r.supportsDeleteByOthers&&r.supportsDeleteByAnonymous))return"load"}if((0,m.rQ)(this.serviceDefinitionExpression)||(0,m.rQ)(this.definitionExpression))return"load";if(this.userHasUpdateItemPrivileges){if((0,m.tG)(this))return"load";if(this.hasUpdateItemRestrictions)return e.operations.supportsQuery?"editing":"load"}if(this.userHasFullEditingPrivileges&&this.hasFullEditingRestrictions)return"editing";const t=this.editFieldsInfo;return(t?.creatorField||t?.editorField)&&e?.operations.supportsEditing?"editing":null}readCapabilitiesFromService(e,t){return(0,Z.S$)(t,this.url)}readEditingInfo(e,t){const{editingInfo:i}=t;return i?{lastEditDate:null!=i.lastEditDate?new Date(i.lastEditDate):null}:null}get effectiveCapabilities(){const e=this.capabilities;if(!e)return null;const t=(0,s.o8)(e),{operations:i,editing:r}=t;return(0,m.Pt)(this)?(this.userHasUpdateItemPrivileges&&(i.supportsQuery=!0),t):this.userHasUpdateItemPrivileges?(i.supportsAdd=i.supportsDelete=i.supportsEditing=i.supportsQuery=i.supportsUpdate=r.supportsDeleteByOthers=r.supportsGeometryUpdate=r.supportsUpdateByOthers=!0,t):(this.userHasFullEditingPrivileges&&i.supportsEditing&&(i.supportsAdd=i.supportsDelete=i.supportsUpdate=r.supportsGeometryUpdate=!0),t)}get effectiveEditingEnabled(){return!1}get effectiveUniqueIdFields(){return this.uniqueIdFields?[...this.uniqueIdFields]:[this.objectIdField]}readGlobalIdFieldFromService(e,t){return(0,m.jD)(t)}get hasFullEditingRestrictions(){const e=this.capabilities;if(!e||(0,m.Pt)(this))return!1;const{operations:t,editing:i}=e;return t.supportsEditing&&!(t.supportsAdd&&t.supportsDelete&&t.supportsUpdate&&i.supportsGeometryUpdate)}get hasUpdateItemRestrictions(){const e=this.capabilities;if(!e)return!1;const{operations:t,editing:i}=e;return(0,m.Pt)(this)?!t.supportsQuery:!(t.supportsAdd&&t.supportsDelete&&t.supportsEditing&&t.supportsQuery&&t.supportsUpdate&&i.supportsDeleteByOthers&&i.supportsGeometryUpdate&&i.supportsUpdateByOthers)}readIsTableFromService(e,t){return"Table"===t.type}readMaxScale(e,t){return t.effectiveMaxScale||e||0}readMinScale(e,t){return t.effectiveMinScale||e||0}readObjectIdFieldFromService(e,t){return(0,m.Zm)(t)}get parsedUrl(){return(0,S.h)(this)}readServiceDefinitionExpression(e,t){return t.definitionQuery||t.definitionExpression}readUniqueIdFields(e,t){return t.uniqueIdInfo?.OIDFieldContainsHashValue?t.uniqueIdInfo.fields:null}readVersion(e,t){return(0,m.$4)(t)}get isUrlHostModified(){const{loaded:e,url:t,_isUrlHostModified:i}=this;if(i)return!0;if(!e||!t)return!1;if(this.originIdOf("url")<7)return!1;const r=this.sourceJSON?.preferredHost;if(!r)return!1;if(!(0,n.FX)(t,`https://${r}`,!0))return!1;for(let e=6;e>=3;e--){const i=this.getAtOrigin("url",(0,a.OL)(e));if(i)return!(0,n.FX)(t,i,!0)}return!1}applyPreferredHost(e){const{url:t,portalItem:i}=this;if(!t||!(0,w.OP)(i))return;const r=(0,w.$x)();r&&this._isUrlHostModificationEnabled&&(this._set("url",r),this._isUrlHostModified=!0,i&&(0,w.Gh)(i,(0,w.G$)()))}applyHostFromPortalItem(){const{url:e,portalItem:t}=this;if(!e||7===this.originIdOf("url")||!t?.url||!(0,w.OP)(t)||!(0,j.Y)(t,j.mm.HOSTED_SERVICE)||(0,n.FX)(e,t.url,!0)||!this._isUrlHostModificationEnabled)return;const i=(0,n.Ln)(t.url);this._set("url",(0,n.hf)(e,i)),this._isUrlHostModified=!0}};return(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"authenticationTriggerEvent",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0,json:{read:e=>e/60}})],i.prototype,"cacheMaxAge",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","isDataBranchVersioned","isDataVersioned","maxRecordCount","maxRecordCountFactor","maxUniqueIDCount","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","standardMaxRecordCountNoGeometry","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"]}}}}})],i.prototype,"capabilities",void 0),(0,r.Cg)([(0,O.w)("service","capabilities")],i.prototype,"readCapabilitiesFromService",null),(0,r.Cg)([(0,l.MZ)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],i.prototype,"copyright",void 0),(0,r.Cg)([(0,l.MZ)((0,A.P6)("dateFieldsTimeReference"))],i.prototype,"dateFieldsTimeZone",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean})],i.prototype,"datesInUnknownTimezone",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],i.prototype,"definitionExpression",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],i.prototype,"displayField",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,type:h.A})],i.prototype,"editFieldsInfo",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"editingInfo",void 0),(0,r.Cg)([(0,O.w)("editingInfo")],i.prototype,"readEditingInfo",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"effectiveCapabilities",null),(0,r.Cg)([(0,l.MZ)()],i.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0,type:[String]})],i.prototype,"effectiveUniqueIdFields",null),(0,r.Cg)([(0,l.MZ)((()=>{const e=(0,s.o8)(g.Yj),t=e.json.origins;return t["web-map"]={read:!1,write:!1},t["portal-item"]={read:!1,write:!1},e})())],i.prototype,"elevationInfo",void 0),(0,r.Cg)([(0,l.MZ)()],i.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,l.MZ)({type:I.A,json:{name:"layerDefinition.floorInfo",write:{layerContainerTypes:d.K}}})],i.prototype,"floorInfo",void 0),(0,r.Cg)([(0,l.MZ)({type:p.A,json:{origins:{service:{read:{source:"extent"}}}}})],i.prototype,"fullExtent",void 0),(0,r.Cg)([(0,l.MZ)()],i.prototype,"gdbVersion",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,type:M,json:{read:{source:"geometryProperties"}}})],i.prototype,"geometryFieldsInfo",void 0),(0,r.Cg)([(0,l.MZ)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:m.iX.read}}}})],i.prototype,"geometryType",void 0),(0,r.Cg)([(0,l.MZ)({type:String})],i.prototype,"globalIdField",void 0),(0,r.Cg)([(0,O.w)("service","globalIdField",["globalIdField","fields"])],i.prototype,"readGlobalIdFieldFromService",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"hasFullEditingRestrictions",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],i.prototype,"hasM",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"hasUpdateItemRestrictions",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],i.prototype,"hasZ",void 0),(0,r.Cg)([(0,l.MZ)({type:Date})],i.prototype,"historicMoment",void 0),(0,r.Cg)([(0,l.MZ)({type:o.A.ofType(v),readOnly:!0})],i.prototype,"indexes",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"isTable",void 0),(0,r.Cg)([(0,O.w)("service","isTable",["type"])],i.prototype,"readIsTableFromService",null),(0,r.Cg)([(0,l.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],i.prototype,"layerId",void 0),(0,r.Cg)([(0,l.MZ)(g.hG)],i.prototype,"maxScale",void 0),(0,r.Cg)([(0,O.w)("service","maxScale",["maxScale","effectiveMaxScale"])],i.prototype,"readMaxScale",null),(0,r.Cg)([(0,l.MZ)(g.hn)],i.prototype,"minScale",void 0),(0,r.Cg)([(0,O.w)("service","minScale",["minScale","effectiveMinScale"])],i.prototype,"readMinScale",null),(0,r.Cg)([(0,l.MZ)({type:String})],i.prototype,"objectIdField",void 0),(0,r.Cg)([(0,O.w)("service","objectIdField",["objectIdField","fields"])],i.prototype,"readObjectIdFieldFromService",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"parsedUrl",null),(0,r.Cg)([(0,l.MZ)((0,A.P6)("preferredTimeReference"))],i.prototype,"preferredTimeZone",void 0),(0,r.Cg)([(0,l.MZ)({type:[F.A],readOnly:!0})],i.prototype,"relationships",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean})],i.prototype,"returnM",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean})],i.prototype,"returnZ",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,json:{write:!1}})],i.prototype,"serverGens",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"serviceDefinitionExpression",void 0),(0,r.Cg)([(0,O.w)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],i.prototype,"readServiceDefinitionExpression",null),(0,r.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],i.prototype,"serviceItemId",void 0),(0,r.Cg)([(0,l.MZ)()],i.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,l.MZ)({type:u.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],i.prototype,"spatialReference",void 0),(0,r.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],i.prototype,"subtypeField",void 0),(0,r.Cg)([(0,l.MZ)({type:[U],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],i.prototype,"subtypes",void 0),(0,r.Cg)([(0,l.MZ)((0,g.U$)())],i.prototype,"timeInfo",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],i.prototype,"trackIdField",void 0),(0,r.Cg)([(0,l.MZ)({type:[String]})],i.prototype,"uniqueIdFields",void 0),(0,r.Cg)([(0,O.w)("service","uniqueIdFields",["uniqueIdInfo.OIDFieldContainsHashValue","uniqueIdInfo.fields"])],i.prototype,"readUniqueIdFields",null),(0,r.Cg)([(0,l.MZ)((0,S.b)({nonStandardUrlAllowed:!0}))],i.prototype,"url",void 0),(0,r.Cg)([(0,l.MZ)({json:{origins:{service:{read:!0}},read:!1}})],i.prototype,"version",void 0),(0,r.Cg)([(0,O.w)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],i.prototype,"readVersion",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"isUrlHostModified",null),i=(0,r.Cg)([(0,l.$K)("esri.layers.mixins.FeatureLayerBase")],i),i}},99644(e,t,i){var r=i(32198),o=i(36563),s=i(17676),n=i(91429),l=i(77548),d=i(20655),a=i(80812);const p="reload";i.d(t,["z",0,e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this._pendingReloadCount=0,this._reloadServiceItemState=null,this._debounceReload=(0,s.sg)(async()=>{if(this.destroyed||!this.loaded||!this.canReload())return!1;const e=new AbortController;this.addHandles((0,o.rE)(e),p);try{let t,i=null;if(this.portalItem?.id)t=await this.reloadFromPortal({supportedTypes:this.supportedPortalItemTypes},{signal:e.signal});else{const r=await this._shouldReloadFromServiceItem(e.signal);t=r.updated,i=r.state}return t&&(await this.reloadFromService(e.signal),i&&(this._reloadServiceItemState=i)),e.signal.throwIfAborted(),t}finally{this.removeHandles(p)}})}get reloading(){return this._pendingReloadCount>0}reload(){return!this.destroyed&&this.loaded&&this.canReload()?(this._pendingReloadCount++,this._debounceReload().finally(()=>{this._pendingReloadCount--})):Promise.resolve(!1)}canReload(){return null!=this.url}async _shouldReloadFromServiceItem(e){const{serviceItemId:t,url:i}=this;if(!t||!i)return{state:null,updated:!0};try{const r=await(0,l.wI)(i,{signal:e});if(!r)return{state:null,updated:!0};const o=new d.A({url:r}),s=new a.default({apiKey:this.apiKey,id:t,portal:o});await s.load({signal:e});const n=s.modified?.getTime();if(null==n)return{state:null,updated:!0};const p={id:t,modified:n,portalUrl:o.url},u=this._reloadServiceItemState;return{state:p,updated:null==u||u.id!==p.id||u.portalUrl!==p.portalUrl||u.modified!==p.modified}}catch(e){return(0,s.QP)(e),{state:null,updated:!0}}}};return(0,r.Cg)([(0,n.MZ)({clonable:!1})],i.prototype,"_pendingReloadCount",void 0),(0,r.Cg)([(0,n.MZ)({readOnly:!0})],i.prototype,"reloading",null),i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.FeatureLayerReload")],i),i}])},85707(e,t,i){var r=i(32198),o=i(91429),s=i(54239);i.d(t,["a",0,e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.heightModelInfo=null}read(e,t){super.read(e,t),"service"===t?.origin&&2===this.heightModelInfo?.origin&&(this.heightModelInfo.associatedSpatialReference=this.getAtOrigin("spatialReference","service"))}};return(0,r.Cg)([(0,o.MZ)({readOnly:!0,type:s.A})],i.prototype,"heightModelInfo",void 0),i=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.HeightModelInfoMixin")],i),i}])},82935(e,t,i){var r=i(32198),o=i(91429),s=i(30524),n=i(96184),l=i(73133),d=i(79677),a=i(10184),p=i(36005);const u={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};i.d(t,["B",0,u,"e",0,e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const r=i.timeOffset,o=l.j.fromJSON(i.timeOffsetUnits);return r&&o?new a.A({value:r,unit:o}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r.Cg)([(0,o.MZ)({type:d.A,json:{write:!1}})],i.prototype,"timeExtent",void 0),(0,r.Cg)([(0,o.MZ)({type:a.A})],i.prototype,"timeOffset",void 0),(0,r.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],i.prototype,"readOffset",null),(0,r.Cg)([(0,o.MZ)({value:null,type:n.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],i.prototype,"timeInfo",null),(0,r.Cg)([(0,o.MZ)(u)],i.prototype,"useViewTime",void 0),i=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.TemporalLayer")],i),i}])},17036(e,t,i){i.d(t,{p:()=>d});var r=i(44208),o=i(53966),s=i(20437),n=i(95466),l=i(30524);function d(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,r.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");o.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return n.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const i=this.fieldsIndex?.has(t);i||o.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},73179(e,t,i){i.d(t,{b:()=>d,h:()=>a});var r=i(4718),o=i(53966),s=i(84952),n=i(60694),l=i(10873);function d(e){const{nonStandardUrlAllowed:t=!1,separator:i}=e??{},s=(0,r.o8)(l.OZ),d=s.json?.write;return"object"==typeof d&&d&&(d.writer=function(e,t,r,o){(0,n.LS)(this,e,i,t,o)}),{...s,set:function(e){if(null==e)return void this._set("url",e);const i=(0,n.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:o.A.getLogger(this)});this._set("url",i.url),null!=i.layerId&&this._set("layerId",i.layerId)}}}function a(e,t){const{separator:i}=t??{},r=(0,s.An)(e.url);return null!=r&&(null!=e.dynamicDataSource?r.path=(0,s.fj)(r.path,"dynamicLayer"):null!=e.layerId&&(r.path=(0,s.fj)(r.path,i??"",e.layerId.toString()))),r}},91908(e,t,i){i.d(t,{D:()=>s});var r=i(60694);const o=[];function s(e,t){if((0,r.Wo)(e.url??""))return!0;const{wkid:i}=t;for(const t of o){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}o.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),o.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),o.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),o.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),o.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])}}]);
File without changes
@@ -7,9 +7,9 @@
7
7
  --calcite-input-height: 1.5rem;
8
8
 
9
9
  // Tooltip variables
10
- --field-height: 0.875rem;
10
+ --field-height: 1rem;
11
11
  --field-height--input: var(--calcite-input-height);
12
- --field-row-gap: 1px;
12
+ --field-row-gap: 2px;
13
13
  --field-column-gap: var(--calcite-spacing-xs);
14
14
  --field-input-width: 6.5rem;
15
15
  --field-title-extra-margin: var(--calcite-spacing-lg);
@@ -89,6 +89,7 @@
89
89
  // In input mode we activate pointer events which are disabled by default on the overlay surface.
90
90
  &--input {
91
91
  --field-height: var(--field-height--input);
92
+ --field-row-gap: 1px;
92
93
 
93
94
  backdrop-filter: none;
94
95
  background: var(--calcite-color-foreground-1);
@@ -150,6 +151,7 @@
150
151
  margin-inline-start: var(--field-column-gap);
151
152
 
152
153
  calcite-icon {
154
+ opacity: var(--calcite-opacity-half);
153
155
  width: var(--elevation-mode-icon-size--feedback);
154
156
  min-width: var(--elevation-mode-icon-size--feedback);
155
157
  height: var(--elevation-mode-icon-size--feedback);
@@ -292,7 +294,7 @@
292
294
  &:only-child {
293
295
  border-block-start: none;
294
296
  border-block-end: none;
295
- padding-block-start: var(--field-row-gap);
297
+ padding-block-start: 1px;
296
298
  }
297
299
 
298
300
  &__icon {