@arcgis/core 4.33.0-next.20250304 → 4.33.0-next.20250305

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 (54) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{e99d7ecb80a9df9ead6d.js → 1e7a70a1871fea29169e.js} +3 -3
  3. package/assets/esri/core/workers/chunks/{618016fc1165bcfc2b0d.js → 42b862550c96cc1be956.js} +7 -9
  4. package/assets/esri/core/workers/chunks/4403b3f08907e88d0d91.js +1 -0
  5. package/assets/esri/core/workers/chunks/{0e2d9cd4e8ee5a62b05c.js → 45eee326f7a649c5a15b.js} +7 -9
  6. package/assets/esri/core/workers/chunks/e3e049311bced533c853.js +1 -0
  7. package/assets/esri/core/workers/chunks/f4111bb5e5a4910b684a.js +1 -0
  8. package/chunks/Clouds.glsl.js +19 -23
  9. package/chunks/ImageMaterial.glsl.js +1 -1
  10. package/core/Accessor.js +1 -1
  11. package/core/accessorSupport/decorators/subclass.js +1 -1
  12. package/core/accessorSupport/interfaces.js +1 -1
  13. package/interfaces.d.ts +8 -4
  14. package/layers/mixins/ArcGISImageService.js +1 -1
  15. package/layers/support/featureLayerUtils.js +1 -1
  16. package/package.json +1 -1
  17. package/request.js +1 -1
  18. package/rest/support/IdentifyParameters.js +1 -1
  19. package/support/revision.js +1 -1
  20. package/views/3d/analysis/Dimension/DimensionTool.js +1 -1
  21. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  22. package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
  23. package/views/3d/analysis/Slice/RotateManipulator.js +1 -1
  24. package/views/3d/environment/Clouds.glsl.js +1 -1
  25. package/views/3d/environment/CloudsParameters.js +1 -1
  26. package/views/3d/environment/CloudsRenderer.js +1 -1
  27. package/views/3d/layers/DynamicLayerView3D.js +1 -1
  28. package/views/3d/layers/MediaLayerView3D.js +1 -1
  29. package/views/3d/layers/support/FeatureTile.js +1 -1
  30. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  31. package/views/3d/support/StreamTextureCollection.js +1 -1
  32. package/views/3d/support/TextureCollection.js +1 -1
  33. package/views/3d/terrain/TerrainRenderer.js +1 -1
  34. package/views/3d/terrain/TerrainSurface.js +1 -1
  35. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +7 -7
  36. package/views/3d/webgl-engine/core/shaderLibrary/util/DoublePrecision.glsl.js +5 -7
  37. package/views/3d/webgl-engine/core/shaderLibrary/util/LookupCloudsFromTextureArray.glsl.js +51 -0
  38. package/views/3d/webgl-engine/lib/GLMaterialParameters.js +5 -0
  39. package/views/3d/webgl-engine/lib/GLMaterialRepository.js +1 -1
  40. package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
  41. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  42. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  43. package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
  44. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  45. package/views/animation/pointToPoint/apex/planning.js +1 -1
  46. package/views/webgl/FramebufferObject.js +1 -1
  47. package/views/webgl/TextureDescriptor.js +1 -1
  48. package/widgets/FeatureForm/FieldInput.js +1 -1
  49. package/widgets/FeatureForm/UtilityNetworkAssociationAddAssociationViewModel.js +1 -1
  50. package/widgets/UtilityNetworkTraceAnalysis/UtilityNetworkTraceAnalysisViewModel.js +1 -1
  51. package/assets/esri/core/workers/chunks/04341d50082f864025aa.js +0 -1
  52. package/assets/esri/core/workers/chunks/10118666a5a5b141ece6.js +0 -1
  53. package/assets/esri/core/workers/chunks/64d3e683872791eb6ae9.js +0 -1
  54. package/views/3d/webgl-engine/core/shaderLibrary/util/LookupCubemapFromTextureArray.glsl.js +0 -39
@@ -1,9 +1,7 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[958],{4341:(t,n,e)=>{e.d(n,{I:()=>o});var r=e(26390);class o{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*i);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,i));t++)this._items.push(this._allocator())}}const i=1024},15976:(t,n,e)=>{e.d(n,{o:()=>i});var r=e(69270),o=e(74333);class i extends o.n{constructor(t,n){super(t,"sampler2D",r.c.Draw,((e,r,o)=>e.bindTexture(t,n(r,o))))}}},16943:(t,n,e)=>{e.d(n,{E:()=>o});var r=e(44208);function o(){return!!(0,r.A)("enable-feature:objectAndLayerId-rendering")}},26425:(t,n,e)=>{e.d(n,{u:()=>o});var r=e(31821);function o({code:t}){t.add(r.H`vec3 dpAdd(vec3 hiA, vec3 loA, vec3 hiB, vec3 loB) {
2
- vec3 t1 = hiA + hiB;
3
- vec3 e = t1 - hiA;
4
- vec3 t2 = ((hiB - e) + (hiA - (t1 - e))) + loA + loB;
5
- vec3 result = t1 + t2;
6
- return result;
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[958],{4341:(t,n,e)=>{e.d(n,{I:()=>o});var r=e(26390);class o{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*i);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,i));t++)this._items.push(this._allocator())}}const i=1024},15976:(t,n,e)=>{e.d(n,{o:()=>i});var r=e(69270),o=e(74333);class i extends o.n{constructor(t,n){super(t,"sampler2D",r.c.Draw,((e,r,o)=>e.bindTexture(t,n(r,o))))}}},16943:(t,n,e)=>{e.d(n,{E:()=>o});var r=e(44208);function o(){return!!(0,r.A)("enable-feature:objectAndLayerId-rendering")}},26425:(t,n,e)=>{e.d(n,{u:()=>i});var r=e(33094),o=e(31821);function i({code:t,uniforms:n},e){n.add(new r.U("dpDummy",(()=>1))),t.add(o.H`vec3 dpAdd(vec3 hiA, vec3 loA, vec3 hiB, vec3 loB) {
2
+ vec3 hiD = hiA + hiB;
3
+ vec3 loD = loA + loB;
4
+ return dpDummy * hiD + loD;
7
5
  }`)}},26835:(t,n,e)=>{e.d(n,{W:()=>o});var r=e(31821);function o(t){t.code.add(r.H`const float MAX_RGBA_FLOAT =
8
6
  255.0 / 256.0 +
9
7
  255.0 / 256.0 / 256.0 +
@@ -31,7 +29,7 @@ return dot(rgba, RGBA_TO_FLOAT_FACTORS);
31
29
  );
32
30
  float uninterpolatedRGBAToFloat(vec4 rgba) {
33
31
  return (dot(round(rgba * 255.0), uninterpolatedRGBAToFloatFactors) - 0.5) * 2.0;
34
- }`)}},27993:(t,n,e)=>{e.d(n,{F:()=>i}),e(57251);var r=e(16930),o=e(65806);function i(t,n,e,r,i){return!(null==n||null==r||t.length<2)&&(c.x=t[0],c.y=t[1],c.z=t[2],c.spatialReference=n,(0,o.g)(c,e,r,i))}const c=function(t,n,e,r){return{x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:r,type:"point"}}(0,0,0,r.A.WGS84)},31821:(t,n,e)=>{function r(t,...n){let e="";for(let r=0;r<n.length;r++)e+=t[r]+n[r];return e+=t[t.length-1],e}function o(t,n,e=""){return t?n:e}e.d(n,{H:()=>r,If:()=>o}),function(t){t.int=function(t){return Math.round(t).toString()},t.float=function(t){return t.toPrecision(8)}}(r)},33079:(t,n,e)=>{e.d(n,{t:()=>i});var r=e(69270),o=e(74333);class i extends o.n{constructor(t,n){super(t,"vec3",r.c.Pass,((e,r,o)=>e.setUniform3fv(t,n(r,o))))}}},35644:(t,n,e)=>{e.d(n,{k:()=>i});var r=e(69270),o=e(74333);class i extends o.n{constructor(t,n){super(t,"mat3",r.c.Pass,((e,r,o)=>e.setUniformMatrix3fv(t,n(r,o))))}}},40710:(t,n,e)=>{e.d(n,{W:()=>i});var r=e(69270),o=e(74333);class i extends o.n{constructor(t,n){super(t,"vec3",r.c.Draw,((e,r,o,i)=>e.setUniform3fv(t,n(r,o,i))))}}},40804:(t,n,e)=>{e.d(n,{U:()=>o});var r=e(34727);function o(t,n,e=0){const o=(0,r.qE)(t,0,a);for(let t=0;t<4;t++)n[e+t]=Math.floor(256*s(o*i[t]))}const i=[1,256,65536,16777216],c=[1/256,1/65536,1/16777216,1/4294967296],a=function(t,n=0){let e=0;for(let r=0;r<4;r++)e+=t[n+r]*c[r];return e}(new Uint8ClampedArray([255,255,255,255]));function s(t){return t-Math.floor(t)}},42583:(t,n,e)=>{e.d(n,{A:()=>i});var r=e(66104),o=e(31821);function i(t){t.vertex.code.add(o.H`
32
+ }`)}},27993:(t,n,e)=>{e.d(n,{F:()=>i}),e(57251);var r=e(16930),o=e(65806);function i(t,n,e,r,i){return!(null==n||null==r||t.length<2)&&(c.x=t[0],c.y=t[1],c.z=t[2],c.spatialReference=n,(0,o.g)(c,e,r,i))}const c=function(t,n,e,r){return{x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:r,type:"point"}}(0,0,0,r.A.WGS84)},31821:(t,n,e)=>{function r(t,...n){let e="";for(let r=0;r<n.length;r++)e+=t[r]+n[r];return e+=t[t.length-1],e}function o(t,n,e=""){return t?n:e}e.d(n,{H:()=>r,If:()=>o}),function(t){t.int=function(t){return Math.round(t).toString()},t.float=function(t){return t.toPrecision(8)}}(r)},33079:(t,n,e)=>{e.d(n,{t:()=>i});var r=e(69270),o=e(74333);class i extends o.n{constructor(t,n){super(t,"vec3",r.c.Pass,((e,r,o)=>e.setUniform3fv(t,n(r,o))))}}},33094:(t,n,e)=>{e.d(n,{U:()=>i});var r=e(69270),o=e(74333);class i extends o.n{constructor(t,n){super(t,"float",r.c.Bind,((e,r)=>e.setUniform1f(t,n(r))))}}},35644:(t,n,e)=>{e.d(n,{k:()=>i});var r=e(69270),o=e(74333);class i extends o.n{constructor(t,n){super(t,"mat3",r.c.Pass,((e,r,o)=>e.setUniformMatrix3fv(t,n(r,o))))}}},40710:(t,n,e)=>{e.d(n,{W:()=>i});var r=e(69270),o=e(74333);class i extends o.n{constructor(t,n){super(t,"vec3",r.c.Draw,((e,r,o,i)=>e.setUniform3fv(t,n(r,o,i))))}}},40804:(t,n,e)=>{e.d(n,{U:()=>o});var r=e(34727);function o(t,n,e=0){const o=(0,r.qE)(t,0,a);for(let t=0;t<4;t++)n[e+t]=Math.floor(256*s(o*i[t]))}const i=[1,256,65536,16777216],c=[1/256,1/65536,1/16777216,1/4294967296],a=function(t,n=0){let e=0;for(let r=0;r<4;r++)e+=t[n+r]*c[r];return e}(new Uint8ClampedArray([255,255,255,255]));function s(t){return t-Math.floor(t)}},42583:(t,n,e)=>{e.d(n,{A:()=>i});var r=e(66104),o=e(31821);function i(t){t.vertex.code.add(o.H`
35
33
  vec4 decodeSymbolColor(vec4 symbolColor, out int colorMixMode) {
36
34
  float symbolAlpha = 0.0;
37
35
 
@@ -55,7 +53,7 @@ return (dot(round(rgba * 255.0), uninterpolatedRGBAToFloatFactors) - 0.5) * 2.0;
55
53
 
56
54
  return vec4(symbolColor.r, symbolColor.g, symbolColor.b, symbolAlpha);
57
55
  }
58
- `)}},49255:(t,n,e)=>{var r;function o(t){return t===r.Shadow||t===r.ShadowHighlight||t===r.ShadowExcludeHighlight||t===r.ViewshedShadow}function i(t){return function(t){return function(t){return s(t)||a(t)}(t)||d(t)}(t)||t===r.Normal}function c(t){return function(t){return u(t)||d(t)}(t)||t===r.Normal}function a(t){return t===r.Highlight||t===r.ObjectAndLayerIdColor}function s(t){return t===r.Color}function l(t){return s(t)||f(t)}function u(t){return l(t)||a(t)}function d(t){return t===r.Depth}function f(t){return t===r.ColorEmission}e.d(n,{LG:()=>f,Mb:()=>u,PJ:()=>o,RN:()=>l,V:()=>r,XY:()=>i,iq:()=>c}),function(t){t[t.Color=0]="Color",t[t.ColorEmission=1]="ColorEmission",t[t.Depth=2]="Depth",t[t.Normal=3]="Normal",t[t.Shadow=4]="Shadow",t[t.ShadowHighlight=5]="ShadowHighlight",t[t.ShadowExcludeHighlight=6]="ShadowExcludeHighlight",t[t.ViewshedShadow=7]="ViewshedShadow",t[t.Highlight=8]="Highlight",t[t.ObjectAndLayerIdColor=9]="ObjectAndLayerIdColor",t[t.COUNT=10]="COUNT"}(r||(r={}))},58029:(t,n,e)=>{e.d(n,{F:()=>i});var r=e(69270),o=e(74333);class i extends o.n{constructor(t,n){super(t,"mat4",r.c.Bind,((e,r)=>e.setUniformMatrix4fv(t,n(r))))}}},65806:(t,n,e)=>{e.d(n,{g:()=>c});var r=e(51850),o=e(57251),i=e(9762);function c(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e)){a[0]=t.x,a[1]=t.y;const o=t.z;return a[2]=o??r??0,(0,i.projectBuffer)(a,t.spatialReference,0,n,e,0)}const c=(0,o.tryProjectWithZConversion)(t,e);return!!c&&(n[0]=c?.x,n[1]=c?.y,n[2]=c?.z??r??0,!0)}const a=(0,r.vt)()},66104:(t,n,e)=>{var r,o;e.d(n,{k5:()=>r}),e(34727),(o=r||(r={}))[o.Multiply=1]="Multiply",o[o.Ignore=2]="Ignore",o[o.Replace=3]="Replace",o[o.Tint=4]="Tint"},69270:(t,n,e)=>{var r;e.d(n,{c:()=>r}),function(t){t[t.Bind=0]="Bind",t[t.Pass=1]="Pass",t[t.Draw=2]="Draw"}(r||(r={}))},71351:(t,n,e)=>{e.d(n,{C:()=>d,Cr:()=>f,LV:()=>u,kb:()=>h,oC:()=>m,vt:()=>s}),e(4576);var r=e(4341),o=(e(77690),e(29242)),i=e(38954),c=e(51850),a=e(32114);function s(t){return t?l((0,c.o8)(t.origin),(0,c.o8)(t.direction)):l((0,c.vt)(),(0,c.vt)())}function l(t,n){return{origin:t,direction:n}}function u(t,n){const e=v.get();return e.origin=t,e.direction=n,e}function d(t,n=s()){return function(t,n,e=s()){return(0,i.c)(e.origin,t),(0,i.c)(e.direction,n),e}(t.origin,t.direction,n)}function f(t,n,e=s()){return(0,i.c)(e.origin,t),(0,i.d)(e.direction,n,t),e}function h(t,n){const e=(0,i.e)(a.rq.get(),(0,i.n)(a.rq.get(),t.direction),(0,i.d)(a.rq.get(),n,t.origin));return(0,i.f)(e,e)}function m(t,n,e){const r=(0,i.f)(t.direction,(0,i.d)(e,n,t.origin));return(0,i.g)(e,t.origin,(0,i.h)(e,t.direction,r)),e}const v=new r.I((()=>s()));(0,c.vt)(),(0,c.vt)(),(0,c.vt)(),(0,o.vt)()},74333:(t,n,e)=>{e.d(n,{n:()=>o}),e(44208);var r=e(69270);class o{constructor(t,n,e,o,i=null){if(this.name=t,this.type=n,this.arraySize=i,this.bind={[r.c.Bind]:null,[r.c.Pass]:null,[r.c.Draw]:null},o)switch(e){case void 0:break;case r.c.Bind:this.bind[r.c.Bind]=o;break;case r.c.Pass:this.bind[r.c.Pass]=o;break;case r.c.Draw:this.bind[r.c.Draw]=o}}equals(t){return this.type===t.type&&this.name===t.name&&this.arraySize===t.arraySize}}},81961:(t,n,e)=>{e.d(n,{V:()=>i});var r=e(69270),o=e(74333);class i extends o.n{constructor(t,n){super(t,"vec4",r.c.Draw,((e,r,o)=>e.setUniform4fv(t,n(r,o))))}}},96336:(t,n,e)=>{e.d(n,{W:()=>r,Y:()=>s});var r,o,i=e(21818),c=e(31821),a=e(46540);function s(t,n){switch(n.normalType){case r.Compressed:t.attributes.add(a.r.NORMALCOMPRESSED,"vec2"),t.vertex.code.add(c.H`vec3 decompressNormal(vec2 normal) {
56
+ `)}},49255:(t,n,e)=>{var r;function o(t){return t===r.Shadow||t===r.ShadowHighlight||t===r.ShadowExcludeHighlight||t===r.ViewshedShadow}function i(t){return function(t){return function(t){return s(t)||a(t)}(t)||d(t)}(t)||t===r.Normal}function c(t){return function(t){return l(t)||d(t)}(t)||t===r.Normal}function a(t){return t===r.Highlight||t===r.ObjectAndLayerIdColor}function s(t){return t===r.Color}function u(t){return s(t)||f(t)}function l(t){return u(t)||a(t)}function d(t){return t===r.Depth}function f(t){return t===r.ColorEmission}e.d(n,{LG:()=>f,Mb:()=>l,PJ:()=>o,RN:()=>u,V:()=>r,XY:()=>i,iq:()=>c}),function(t){t[t.Color=0]="Color",t[t.ColorEmission=1]="ColorEmission",t[t.Depth=2]="Depth",t[t.Normal=3]="Normal",t[t.Shadow=4]="Shadow",t[t.ShadowHighlight=5]="ShadowHighlight",t[t.ShadowExcludeHighlight=6]="ShadowExcludeHighlight",t[t.ViewshedShadow=7]="ViewshedShadow",t[t.Highlight=8]="Highlight",t[t.ObjectAndLayerIdColor=9]="ObjectAndLayerIdColor",t[t.COUNT=10]="COUNT"}(r||(r={}))},58029:(t,n,e)=>{e.d(n,{F:()=>i});var r=e(69270),o=e(74333);class i extends o.n{constructor(t,n){super(t,"mat4",r.c.Bind,((e,r)=>e.setUniformMatrix4fv(t,n(r))))}}},65806:(t,n,e)=>{e.d(n,{g:()=>c});var r=e(51850),o=e(57251),i=e(9762);function c(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e)){a[0]=t.x,a[1]=t.y;const o=t.z;return a[2]=o??r??0,(0,i.projectBuffer)(a,t.spatialReference,0,n,e,0)}const c=(0,o.tryProjectWithZConversion)(t,e);return!!c&&(n[0]=c?.x,n[1]=c?.y,n[2]=c?.z??r??0,!0)}const a=(0,r.vt)()},66104:(t,n,e)=>{var r,o;e.d(n,{k5:()=>r}),e(34727),(o=r||(r={}))[o.Multiply=1]="Multiply",o[o.Ignore=2]="Ignore",o[o.Replace=3]="Replace",o[o.Tint=4]="Tint"},69270:(t,n,e)=>{var r;e.d(n,{c:()=>r}),function(t){t[t.Bind=0]="Bind",t[t.Pass=1]="Pass",t[t.Draw=2]="Draw"}(r||(r={}))},71351:(t,n,e)=>{e.d(n,{C:()=>d,Cr:()=>f,LV:()=>l,kb:()=>h,oC:()=>m,vt:()=>s}),e(4576);var r=e(4341),o=(e(77690),e(29242)),i=e(38954),c=e(51850),a=e(32114);function s(t){return t?u((0,c.o8)(t.origin),(0,c.o8)(t.direction)):u((0,c.vt)(),(0,c.vt)())}function u(t,n){return{origin:t,direction:n}}function l(t,n){const e=v.get();return e.origin=t,e.direction=n,e}function d(t,n=s()){return function(t,n,e=s()){return(0,i.c)(e.origin,t),(0,i.c)(e.direction,n),e}(t.origin,t.direction,n)}function f(t,n,e=s()){return(0,i.c)(e.origin,t),(0,i.d)(e.direction,n,t),e}function h(t,n){const e=(0,i.e)(a.rq.get(),(0,i.n)(a.rq.get(),t.direction),(0,i.d)(a.rq.get(),n,t.origin));return(0,i.f)(e,e)}function m(t,n,e){const r=(0,i.f)(t.direction,(0,i.d)(e,n,t.origin));return(0,i.g)(e,t.origin,(0,i.h)(e,t.direction,r)),e}const v=new r.I((()=>s()));(0,c.vt)(),(0,c.vt)(),(0,c.vt)(),(0,o.vt)()},74333:(t,n,e)=>{e.d(n,{n:()=>o}),e(44208);var r=e(69270);class o{constructor(t,n,e,o,i=null){if(this.name=t,this.type=n,this.arraySize=i,this.bind={[r.c.Bind]:null,[r.c.Pass]:null,[r.c.Draw]:null},o)switch(e){case void 0:break;case r.c.Bind:this.bind[r.c.Bind]=o;break;case r.c.Pass:this.bind[r.c.Pass]=o;break;case r.c.Draw:this.bind[r.c.Draw]=o}}equals(t){return this.type===t.type&&this.name===t.name&&this.arraySize===t.arraySize}}},81961:(t,n,e)=>{e.d(n,{V:()=>i});var r=e(69270),o=e(74333);class i extends o.n{constructor(t,n){super(t,"vec4",r.c.Draw,((e,r,o)=>e.setUniform4fv(t,n(r,o))))}}},96336:(t,n,e)=>{e.d(n,{W:()=>r,Y:()=>s});var r,o,i=e(21818),c=e(31821),a=e(46540);function s(t,n){switch(n.normalType){case r.Compressed:t.attributes.add(a.r.NORMALCOMPRESSED,"vec2"),t.vertex.code.add(c.H`vec3 decompressNormal(vec2 normal) {
59
57
  float z = 1.0 - abs(normal.x) - abs(normal.y);
60
58
  return vec3(normal + sign(normal) * min(z, 0.0), z);
61
59
  }
@@ -65,4 +63,4 @@ return decompressNormal(normalCompressed);
65
63
  return normal;
66
64
  }`);break;case r.ScreenDerivative:t.fragment.code.add(c.H`vec3 screenDerivativeNormal(vec3 positionView) {
67
65
  return normalize(cross(dFdx(positionView), dFdy(positionView)));
68
- }`);break;default:(0,i.Xb)(n.normalType);case r.COUNT:}}(o=r||(r={}))[o.Attribute=0]="Attribute",o[o.Compressed=1]="Compressed",o[o.ScreenDerivative=2]="ScreenDerivative",o[o.COUNT=3]="COUNT"},97937:(t,n,e)=>{e.d(n,{a:()=>y,c:()=>g,e:()=>A,f:()=>_,g:()=>C,i:()=>T,o:()=>B,s:()=>U,w:()=>M}),e(44208),e(53966);var r=e(34727),o=e(58083),i=e(38954),c=e(51850),a=e(87317),s=e(91829),l=e(34304),u=e(88582),d=e(71351);function f(t,n){const e=(0,i.l)(t),o=(0,r.YN)(t[2]/e),c=Math.atan2(t[1]/e,t[0]/e);return(0,i.i)(n,e,o,c),n}var h=e(44280),m=e(32114);const v=g();function g(){return(0,s.vt)()}const p=a.e,b=a.e;function A(t,n){return(0,a.c)(n,t)}function M(t){return t}function C(t){return t[3]}function y(t){return t}function _(t,n,e,r){return(0,s.fA)(t,n,e,r)}function x(t,n,e){if(null==n)return!1;if(!S(t,n,w))return!1;let{t0:r,t1:o}=w;if((r<0||o<r&&o>0)&&(r=o),r<0)return!1;if(e){const{origin:t,direction:o}=n;e[0]=t[0]+o[0]*r,e[1]=t[1]+o[1]*r,e[2]=t[2]+o[2]*r}return!0}const w={t0:0,t1:0};function S(t,n,e){const{origin:r,direction:o}=n,i=R;i[0]=r[0]-t[0],i[1]=r[1]-t[1],i[2]=r[2]-t[2];const c=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===c)return!1;const a=2*(o[0]*i[0]+o[1]*i[1]+o[2]*i[2]),s=a*a-4*c*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-t[3]*t[3]);if(s<0)return!1;const l=Math.sqrt(s);return e.t0=(-a-l)/(2*c),e.t1=(-a+l)/(2*c),!0}const R=(0,c.vt)();function T(t,n){return x(t,n,null)}function P(t,n,e){const r=m.rq.get(),c=m.Rc.get();(0,i.e)(r,n.origin,n.direction);const a=C(t);(0,i.e)(e,r,n.origin),(0,i.h)(e,e,1/(0,i.l)(e)*a);const s=D(t,n.origin),l=(0,h.g7)(n.origin,e);return(0,o.$0)(c,l+s,r),(0,i.t)(e,e,c),e}function O(t,n,e){const r=(0,i.d)(m.rq.get(),n,t),o=(0,i.h)(m.rq.get(),r,t[3]/(0,i.l)(r));return(0,i.g)(e,o,t)}function D(t,n){const e=(0,i.d)(m.rq.get(),n,t),o=(0,i.l)(e),c=C(t),a=c+Math.abs(c-o);return(0,r.XM)(c/a)}const F=(0,c.vt)();function H(t,n,e,r){const o=(0,i.d)(F,n,t);switch(e){case u._.X:{const t=f(o,F)[2];return(0,i.i)(r,-Math.sin(t),Math.cos(t),0)}case u._.Y:{const t=f(o,F),n=t[1],e=t[2],c=Math.sin(n);return(0,i.i)(r,-c*Math.cos(e),-c*Math.sin(e),Math.cos(n))}case u._.Z:return(0,i.n)(r,o);default:return}}function q(t,n){const e=(0,i.d)(N,n,t);return(0,i.l)(e)-t[3]}function B(t,n){const e=(0,i.s)(t,n),r=C(t);return e<=r*r}const N=(0,c.vt)(),k=g(),U=Object.freeze(Object.defineProperty({__proto__:null,NullSphere:v,altitudeAt:q,angleToSilhouette:D,axisAt:H,cameraFrustumCoverage:function(t,n,e,r){const o=C(t),i=o*o,c=n+.5*Math.PI,a=e*e+i-2*Math.cos(c)*e*o,s=Math.sqrt(a),l=a-i;if(l<=0)return.5;const u=Math.sqrt(l),d=Math.acos(u/s)-Math.asin(o/(s/Math.sin(c)));return Math.min(1,(d+.5*r)/r)},clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,n,e){return x(t,n,e)?e:((0,d.oC)(n,t,e),O(t,e,e))},closestPointOnSilhouette:P,containsPoint:B,copy:A,create:g,distanceToSilhouette:function(t,n){const e=(0,i.d)(m.rq.get(),n,t),r=(0,i.k)(e),o=t[3]*t[3];return Math.sqrt(Math.abs(r-o))},elevate:function(t,n,e){return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),e[3]=t[3]+n,e},equals:b,exactEquals:p,fromCenterAndRadius:function(t,n){return(0,s.fA)(t[0],t[1],t[2],n)},fromRadius:function(t,n){return t[0]=t[1]=t[2]=0,t[3]=n,t},fromValues:_,getCenter:y,getExtent:function(t,n){return n},getRadius:C,intersectLine:function(t,n,e){const r=(0,d.Cr)(n,e);if(!S(t,r,w))return[];const{origin:o,direction:a}=r,{t0:s,t1:u}=w,f=n=>{const e=(0,c.vt)();return(0,i.b)(e,o,a,n),O(t,e,e)};return Math.abs(s-u)<(0,l.FD)()?[f(s)]:[f(s),f(u)]},intersectRay:x,intersectRayClosestSilhouette:function(t,n,e){if(x(t,n,e))return e;const r=P(t,n,m.rq.get());return(0,i.g)(e,n.origin,(0,i.h)(m.rq.get(),n.direction,(0,i.j)(n.origin,r)/(0,i.l)(n.direction))),e},intersectsRay:T,projectPoint:O,setAltitudeAt:function(t,n,e,r){const o=q(t,n),c=H(t,n,u._.Z,N),a=(0,i.h)(N,c,e-o);return(0,i.g)(r,n,a)},setExtent:function(t,n,e){return t!==e&&A(t,e),e},tmpSphere:k,union:function(t,n,e=(0,s.vt)()){const r=(0,i.j)(t,n),o=t[3],c=n[3];return r+c<o?((0,a.c)(e,t),e):r+o<c?((0,a.c)(e,n),e):((0,i.m)(e,t,n,(r+c-o)/(2*r)),e[3]=(r+o+c)/2,e)},wrap:M},Symbol.toStringTag,{value:"Module"}))},98353:(t,n,e)=>{e.d(n,{h:()=>i});var r=e(69270),o=e(74333);class i extends o.n{constructor(t,n){super(t,"mat3",r.c.Draw,((e,r,o)=>e.setUniformMatrix3fv(t,n(r,o))))}}}}]);
66
+ }`);break;default:(0,i.Xb)(n.normalType);case r.COUNT:}}(o=r||(r={}))[o.Attribute=0]="Attribute",o[o.Compressed=1]="Compressed",o[o.ScreenDerivative=2]="ScreenDerivative",o[o.COUNT=3]="COUNT"},97937:(t,n,e)=>{e.d(n,{a:()=>C,c:()=>g,e:()=>M,f:()=>x,g:()=>y,i:()=>T,o:()=>q,s:()=>k,w:()=>A}),e(44208),e(53966);var r=e(34727),o=e(58083),i=e(38954),c=e(51850),a=e(87317),s=e(91829),u=e(34304),l=e(88582),d=e(71351);function f(t,n){const e=(0,i.l)(t),o=(0,r.YN)(t[2]/e),c=Math.atan2(t[1]/e,t[0]/e);return(0,i.i)(n,e,o,c),n}var h=e(44280),m=e(32114);const v=g();function g(){return(0,s.vt)()}const p=a.e,b=a.e;function M(t,n){return(0,a.c)(n,t)}function A(t){return t}function y(t){return t[3]}function C(t){return t}function x(t,n,e,r){return(0,s.fA)(t,n,e,r)}function _(t,n,e){if(null==n)return!1;if(!S(t,n,w))return!1;let{t0:r,t1:o}=w;if((r<0||o<r&&o>0)&&(r=o),r<0)return!1;if(e){const{origin:t,direction:o}=n;e[0]=t[0]+o[0]*r,e[1]=t[1]+o[1]*r,e[2]=t[2]+o[2]*r}return!0}const w={t0:0,t1:0};function S(t,n,e){const{origin:r,direction:o}=n,i=R;i[0]=r[0]-t[0],i[1]=r[1]-t[1],i[2]=r[2]-t[2];const c=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===c)return!1;const a=2*(o[0]*i[0]+o[1]*i[1]+o[2]*i[2]),s=a*a-4*c*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-t[3]*t[3]);if(s<0)return!1;const u=Math.sqrt(s);return e.t0=(-a-u)/(2*c),e.t1=(-a+u)/(2*c),!0}const R=(0,c.vt)();function T(t,n){return _(t,n,null)}function D(t,n,e){const r=m.rq.get(),c=m.Rc.get();(0,i.e)(r,n.origin,n.direction);const a=y(t);(0,i.e)(e,r,n.origin),(0,i.h)(e,e,1/(0,i.l)(e)*a);const s=O(t,n.origin),u=(0,h.g7)(n.origin,e);return(0,o.$0)(c,u+s,r),(0,i.t)(e,e,c),e}function P(t,n,e){const r=(0,i.d)(m.rq.get(),n,t),o=(0,i.h)(m.rq.get(),r,t[3]/(0,i.l)(r));return(0,i.g)(e,o,t)}function O(t,n){const e=(0,i.d)(m.rq.get(),n,t),o=(0,i.l)(e),c=y(t),a=c+Math.abs(c-o);return(0,r.XM)(c/a)}const F=(0,c.vt)();function H(t,n,e,r){const o=(0,i.d)(F,n,t);switch(e){case l._.X:{const t=f(o,F)[2];return(0,i.i)(r,-Math.sin(t),Math.cos(t),0)}case l._.Y:{const t=f(o,F),n=t[1],e=t[2],c=Math.sin(n);return(0,i.i)(r,-c*Math.cos(e),-c*Math.sin(e),Math.cos(n))}case l._.Z:return(0,i.n)(r,o);default:return}}function U(t,n){const e=(0,i.d)(B,n,t);return(0,i.l)(e)-t[3]}function q(t,n){const e=(0,i.s)(t,n),r=y(t);return e<=r*r}const B=(0,c.vt)(),N=g(),k=Object.freeze(Object.defineProperty({__proto__:null,NullSphere:v,altitudeAt:U,angleToSilhouette:O,axisAt:H,cameraFrustumCoverage:function(t,n,e,r){const o=y(t),i=o*o,c=n+.5*Math.PI,a=e*e+i-2*Math.cos(c)*e*o,s=Math.sqrt(a),u=a-i;if(u<=0)return.5;const l=Math.sqrt(u),d=Math.acos(l/s)-Math.asin(o/(s/Math.sin(c)));return Math.min(1,(d+.5*r)/r)},clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,n,e){return _(t,n,e)?e:((0,d.oC)(n,t,e),P(t,e,e))},closestPointOnSilhouette:D,containsPoint:q,copy:M,create:g,distanceToSilhouette:function(t,n){const e=(0,i.d)(m.rq.get(),n,t),r=(0,i.k)(e),o=t[3]*t[3];return Math.sqrt(Math.abs(r-o))},elevate:function(t,n,e){return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),e[3]=t[3]+n,e},equals:b,exactEquals:p,fromCenterAndRadius:function(t,n){return(0,s.fA)(t[0],t[1],t[2],n)},fromRadius:function(t,n){return t[0]=t[1]=t[2]=0,t[3]=n,t},fromValues:x,getCenter:C,getExtent:function(t,n){return n},getRadius:y,intersectLine:function(t,n,e){const r=(0,d.Cr)(n,e);if(!S(t,r,w))return[];const{origin:o,direction:a}=r,{t0:s,t1:l}=w,f=n=>{const e=(0,c.vt)();return(0,i.b)(e,o,a,n),P(t,e,e)};return Math.abs(s-l)<(0,u.FD)()?[f(s)]:[f(s),f(l)]},intersectRay:_,intersectRayClosestSilhouette:function(t,n,e){if(_(t,n,e))return e;const r=D(t,n,m.rq.get());return(0,i.g)(e,n.origin,(0,i.h)(m.rq.get(),n.direction,(0,i.j)(n.origin,r)/(0,i.l)(n.direction))),e},intersectsRay:T,projectPoint:P,setAltitudeAt:function(t,n,e,r){const o=U(t,n),c=H(t,n,l._.Z,B),a=(0,i.h)(B,c,e-o);return(0,i.g)(r,n,a)},setExtent:function(t,n,e){return t!==e&&M(t,e),e},tmpSphere:N,union:function(t,n,e=(0,s.vt)()){const r=(0,i.j)(t,n),o=t[3],c=n[3];return r+c<o?((0,a.c)(e,t),e):r+o<c?((0,a.c)(e,n),e):((0,i.m)(e,t,n,(r+c-o)/(2*r)),e[3]=(r+o+c)/2,e)},wrap:A},Symbol.toStringTag,{value:"Module"}))},98353:(t,n,e)=>{e.d(n,{h:()=>i});var r=e(69270),o=e(74333);class i extends o.n{constructor(t,n){super(t,"mat3",r.c.Draw,((e,r,o)=>e.setUniformMatrix3fv(t,n(r,o))))}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2741],{926:(e,r,t)=>{t.d(r,{Jn:()=>i});var s=t(92602),n=t(84952);const o=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]);function a(e){const r=(0,n.$z)(e,!0);return!!r&&r.endsWith(".arcgis.com")&&!o.has(r)&&!e.endsWith("/sharing/rest/generateToken")}function i(e,r){return!(!r&&!s.A.apiKey||!a(e))}},2741:(e,r,t)=>{t.d(r,{s:()=>i});var s=t(92602),n=(t(78888),t(49186)),o=t(53966),a=t(84952);function i(e){if(!s.A.assetsPath)throw o.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.A("assets:path-not-set","config.assetsPath is not set");return(0,a.fj)(s.A.assetsPath,e)}},56058:(e,r,t)=>{t.d(r,{Sx:()=>i,c8:()=>d,m3:()=>f,ql:()=>u,tz:()=>p,xW:()=>h});var s=t(92602),n=t(44208),o=t(74887),a=t(84952);function i(e,r,t=!1,s){return new Promise(((a,i)=>{if((0,o.G4)(s))return void i(l());let c=()=>{p(),i(new Error(`Unable to load ${r}`))},u=()=>{const r=e;p(),a(r)},d=()=>{if(!e)return;const r=e;p(),r.src="",i(l())};const p=()=>{(0,n.A)("esri-image-decode")||(e.removeEventListener("error",c),e.removeEventListener("load",u)),c=null,u=null,e=null,null!=s&&s.removeEventListener("abort",d),d=null,t&&URL.revokeObjectURL(r)};null!=s&&s.addEventListener("abort",d),(0,n.A)("esri-image-decode")?e.decode().then(u,c):(e.addEventListener("error",c),e.addEventListener("load",u))}))}function l(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}const c="Timeout exceeded";function u(){return new Error(c)}function d(e){return"object"==typeof e&&!!e&&"message"in e&&e.message===c}function p(e){s.A.request.crossOriginNoCorsDomains||(s.A.request.crossOriginNoCorsDomains={});const r=s.A.request.crossOriginNoCorsDomains;for(let t of e)t=t.toLowerCase(),/^https?:\/\//.test(t)?r[(0,a.$z)(t)??""]=0:(r[(0,a.$z)("http://"+t)??""]=0,r[(0,a.$z)("https://"+t)??""]=0)}function h(e){const r=s.A.request.crossOriginNoCorsDomains;if(r){let t=(0,a.$z)(e);if(t)return t=t.toLowerCase(),!(0,a.FX)(t,(0,a.Xq)())&&r[t]<Date.now()-36e5}return!1}async function f(e){const r=(0,a.An)(e);e=r.path,"json"===r.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}const t=s.A.request.crossOriginNoCorsDomains,n=(0,a.$z)(e);t&&n&&(t[n.toLowerCase()]=Date.now())}},60694:(e,r,t)=>{t.d(r,{Fi:()=>u,HZ:()=>w,Jf:()=>g,LS:()=>y,Wo:()=>m,bd:()=>v,cr:()=>h,iz:()=>p,qg:()=>d,yG:()=>f});var s=t(84952),n=t(97159);const o={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},a=Object.values(o),i=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${a.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),l=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^/\\n]+)\\/(${a.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function u(e){return i.test(e)}function d(e){if(null==e)return null;const r=(0,s.An)(e),t=r?.path.match(i)||r?.path.match(l);if(!t)return null;const[,n,a,c,u]=t,d=a.indexOf("/");return{title:h(-1!==d?a.slice(d+1):a),serverType:o[c.toLowerCase()],sublayer:null!=u&&""!==u?parseInt(u,10):null,url:{path:n}}}function p(e){const r=(0,s.An)(e).path.match(c);return r?{serviceUrl:r[1],sublayerId:Number(r[2])}:null}function h(e){return(e=e.replaceAll(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function f(e,r){const t=[];if(e){const r=d(e);null!=r&&r.title&&t.push(r.title)}if(r){const e=h(r);t.push(e)}if(2===t.length){if(t[0].toLowerCase().includes(t[1].toLowerCase()))return t[0];if(t[1].toLowerCase().includes(t[0].toLowerCase()))return t[1]}return t.join(" - ")}function m(e){let r=(0,s.$z)(e,!0);return!!r&&(r=r.toLowerCase(),r.endsWith(".arcgis.com")&&(r.startsWith("services")||r.startsWith("tiles")||r.startsWith("features")))}function g(e,r){return e?(0,s.UC)((0,s.zi)(e,r)):e}function w(e){let{url:r}=e;if(!r)return{url:r};r=(0,s.zi)(r,e.logger);const t=(0,s.An)(r),n=d(t.path);let o;if(null!=n)null!=n.sublayer&&null==e.layer.layerId&&(o=n.sublayer),r=n.url.path;else if(e.nonStandardUrlAllowed){const e=p(t.path);null!=e&&(r=e.serviceUrl,o=e.sublayerId)}return{url:(0,s.UC)(r),layerId:o}}function y(e,r,t,o,a){(0,n.w)(r,o,"url",a),o.url&&null!=e.layerId&&(o.url=(0,s.fj)(o.url,t,e.layerId.toString()))}function v(e){if(!e)return!1;const r=e.toLowerCase(),t=r.includes("/services/"),s=r.includes("/mapserver/wmsserver"),n=r.includes("/imageserver/wmsserver"),o=r.includes("/wmsserver");return t&&(s||n||o)}},78888:(e,r,t)=>{t.d(r,{A:()=>m});var s=t(92602),n=t(70333),o=t(49186),a=t(44208),i=t(4718),l=t(91869),c=t(74887),u=t(84952),d=t(60694),p=t(39131),h=t(926),f=t(56058);async function m(e,r){e instanceof URL&&(e=e.toString()),r?.query instanceof URLSearchParams&&(r.query=(0,u.zf)(r.query.toString().replaceAll("+"," ")));const s=(0,u.DB)(e),n=(0,u.w8)(e);n||s||(e=(0,u.S8)(e));const o={url:e,requestOptions:{...r}},i=e=>({data:e,getAllHeaders:S,getHeader:S,httpStatus:200,requestOptions:o.requestOptions,url:o.url}),p=(0,u.sC)(e,w.internalInterceptors);if(p){const e=await L(p,o);if(null!=e)return i(e)}let h=(0,u.sC)(e);if(h){const e=await L(h,o);if(null!=e)return i(e);h.after||h.error||(h=null)}if(e=o.url,"image"===(r=o.requestOptions).responseType&&((0,a.A)("host-webworker")||(0,a.A)("host-node")))throw x("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),o);if("head"===r.method){if(r.body)throw x("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),o);if(s||n)throw x("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),o)}if(await async function(){(0,a.A)("host-webworker")&&!g&&(g=await t.e(369).then(t.bind(t,40369)))}(),g)return g.execute(e,r);const f=new AbortController,m=(0,c.u7)(r,(()=>f.abort())),y={controller:f,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:h,params:o,redoRequest:!1,useIdentity:w.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},v=r.useRequestQueue?async function(e){const r=function(e){let r,t;return"string"==typeof e?(r=(0,u.$z)(e,!0),t=(0,d.Wo)(e)):(r=e.origin,t=(0,d.Wo)(e.toString())),null==r?null:{origin:r,isHosted:t}}(e.params.url);if(!r)return P(e);const{QueueProcessor:s}=await t.e(563).then(t.bind(t,563)),n=(0,l.tE)(U,r.origin,(()=>{const e=r.isHosted?(0,a.A)("request-queue-concurrency-hosted"):(0,a.A)("request-queue-concurrency-non-hosted");return new s({concurrency:e,process:e=>{if((0,c.G4)(e.params.requestOptions))throw x("",(0,c.NK)("Request canceled"),e.params);return P(e)}})}));return n.push(e)}(y):P(y),b=await v.finally((()=>m?.remove()));return h?.after?.(b),b}let g;const w=s.A.request,y="FormData"in globalThis,v=new Set([499,498,403,401]),b=new Set(["COM_0056","COM_0057","SB_0008"]),q=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],S=()=>null,C=Symbol();function O(e){const r=(0,u.$z)(e);return!r||r.endsWith(".arcgis.com")||m._corsServers.includes(r)||(0,u.FL)(r)}function x(e,r,t,s){let n;const a={url:t.url,requestOptions:t.requestOptions,getAllHeaders:S,getHeader:S,ssl:!1};if(r instanceof o.A)return r.details?(r.details=(0,i.o8)(r.details),r.details.url=t.url,r.details.requestOptions=t.requestOptions):r.details=a,r;if(r){const e=s&&(()=>Array.from(s.headers)),t=s&&(e=>s.headers.get(e)),o=s?.status,i=r.message;i&&(n=i),e&&t&&(a.getAllHeaders=e,a.getHeader=t),a.httpStatus=(null!=r.httpCode?r.httpCode:r.code)||o||0,a.subCode=r.subcode,a.messageCode=r.messageCode,"string"==typeof r.details?(a.messages=[r.details],n??=r.details):(a.messages=r.details,n??=a.messages?.[0]),a.raw=C in r?r[C]:r}return n??="Error",(0,c.zf)(r)?(0,c.NK)():new o.A(e,n,a)}async function A(){n.id||await Promise.all([t.e(6285),t.e(7292),t.e(7112)]).then(t.bind(t,67112))}function T(e){return q.some((r=>r.test(e)))}async function k(e){let r=e.params.url;const t=e.params.requestOptions,s=e.fetchOptions??{},o=(0,u.w8)(r)||(0,u.DB)(r),i=t.responseType||"json",l=o?0:null!=t.timeout?t.timeout:w.timeout;let d=!1;if(!o){e.useSSL&&(r=(0,u.lM)(r));let o={...t.query};e.credentialToken&&(o.token=e.credentialToken);let i=(0,u.x0)(o);(0,a.A)("esri-url-encodes-apostrophe")&&(i=i.replaceAll("'","%27"));const l=r.length+1+i.length;let c;d="delete"===t.method||"post"===t.method||"put"===t.method||!!t.body||l>w.maxUrlLength;const h=t.useProxy||!!(0,u.zs)(r);if(h){const e=(0,u.s_)(r);c=e.path,!d&&c.length+1+l>w.maxUrlLength&&(d=!0),e.query&&(o={...e.query,...o})}if("HEAD"===s.method&&(d||h)){if(d){if(l>w.maxUrlLength)throw x("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw x("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(h)throw x("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(d?(s.method="delete"===t.method?"DELETE":"put"===t.method?"PUT":"POST",t.body?r=(0,u.a6)(r,o):(s.body=(0,u.x0)(o),s.headers||(s.headers={}),s.headers["Content-Type"]="application/x-www-form-urlencoded")):r=(0,u.a6)(r,o),h&&(e.useProxy=!0,r=`${c}?${r}`),o.token&&y&&s.body instanceof FormData&&!(0,p.$E)(r)&&s.body.set("token",o.token),t.hasOwnProperty("withCredentials"))e.withCredentials=t.withCredentials;else if(!(0,u.FX)(r,(0,u.Xq)()))if((0,u.FL)(r))e.withCredentials=!0;else if(n.id){const t=n.id.findServerInfo(r);t?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(s.credentials="include",(0,f.xW)(r)&&await(0,f.m3)(d?(0,u.a6)(r,o):r))}let h,g,v=0,b=!1;l>0&&(v=setTimeout((()=>{b=!0,e.controller.abort()}),l));try{if("native-request-init"===t.responseType)g=s,g.url=r,t.signal?g.signal=t.signal:delete g.signal;else if("image"!==t.responseType||"default"!==s.cache||"GET"!==s.method||d||function(e){if(e)for(const r of Object.getOwnPropertyNames(e))if(e[r])return!0;return!1}(t.headers)||!o&&!e.useProxy&&w.proxyUrl&&!O(r)){if(m._beforeFetch&&await m._beforeFetch(r,s),h=await fetch(r,s),m._afterFetch&&await m._afterFetch(h),e.useProxy||function(e){const r=(0,u.$z)(e);r&&!m._corsServers.includes(r)&&m._corsServers.push(r)}(r),"native"===t.responseType)g=h;else if("HEAD"!==s.method)if(h.ok){switch(i){case"array-buffer":g=await h.arrayBuffer();break;case"blob":case"image":g=await h.blob();break;default:g=await h.text()}if(v&&(clearTimeout(v),v=0),"json"===i||"xml"===i||"document"===i)if(g)switch(i){case"json":g=JSON.parse(g);break;case"xml":g=E(g,"application/xml");break;case"document":g=E(g,"text/html")}else g=null;if(g){if("array-buffer"===i||"blob"===i){const e=h.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&g["blob"===i?"size":"byteLength"]<=750)try{const e=await new Response(g).json();e.error&&(g=e)}catch{}}"image"===i&&g instanceof Blob&&(g=await R(URL.createObjectURL(g),e,!0))}}else{g=await h.text();try{g=JSON.parse(g)}catch{}}}else g=await R(r,e)}catch(s){if("AbortError"===s.name){if(b)throw(0,f.ql)();throw(0,c.NK)("Request canceled")}if(!(!h&&s instanceof TypeError&&w.proxyUrl)||t.body||"delete"===t.method||"head"===t.method||"post"===t.method||"put"===t.method||e.useProxy||O(r))throw s;e.redoRequest=!0,(0,u.oy)({proxyUrl:w.proxyUrl,urlPrefix:(0,u.$z)(r)??""})}finally{v&&clearTimeout(v)}return[h,g]}async function L(e,r){if(null!=e.responseData)return e.responseData;if(e.headers&&(r.requestOptions.headers={...r.requestOptions.headers,...e.headers}),e.query&&(r.requestOptions.query={...r.requestOptions.query,...e.query}),e.before){let t,s;try{s=await e.before(r)}catch(e){t=x("request:interceptor",e,r)}if((s instanceof Error||s instanceof o.A)&&(t=x("request:interceptor",s,r)),t)throw e.error&&e.error(t),t;return s}}function E(e,r){let t;try{t=(new DOMParser).parseFromString(e,r)}catch{}if(!t||t.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return t}m._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],m._beforeFetch=void 0,m._afterFetch=void 0;const U=new Map;async function P(e){let r,t;await async function(e){const r=e.params.url,t=e.params.requestOptions,o=e.controller.signal,a=t.body;let i=null,l=null;if(y&&"HTMLFormElement"in globalThis&&(a instanceof FormData?i=a:a instanceof HTMLFormElement&&(i=new FormData(a))),"string"==typeof a&&(l=a),e.fetchOptions={cache:t.cacheBust?"no-cache":"default",credentials:"same-origin",headers:t.headers||{},method:"head"===t.method?"HEAD":"GET",mode:"cors",priority:w.priority,redirect:"follow",signal:o},(i||l)&&(e.fetchOptions.body=i||l),"anonymous"===t.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(r)||t.query?.token||i?.get("token")),!e.hasToken&&(0,h.Jn)(r)&&(t.query||(t.query={}),t.query.token=s.A.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!T(r)&&!(0,c.G4)(o)){let s;"immediate"===t.authMode?(await A(),s=await n.id.getCredential(r,{signal:o}),e.credential=s):"no-prompt"===t.authMode?(await A(),s=await n.id.getCredential(r,{prompt:!1,signal:o}).catch((()=>{})),e.credential=s):n.id&&(s=n.id.findCredential(r)),s&&(e.credentialToken=s.token,e.useSSL=!!s.ssl)}}(e);try{do{[r,t]=await k(e)}while(!await I(e,r,t))}catch(t){const s=x("request:server",t,e.params,r);throw s.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(s),s}const o=e.params.url;if(t&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(o)){if(!e.hasToken&&!e.credentialToken&&t.user?.username&&!(0,u.FL)(o)){const e=(0,u.$z)(o,!0);e&&w.trustedServers.push(e)}Array.isArray(t.authorizedCrossOriginNoCorsDomains)&&(0,f.tz)(t.authorizedCrossOriginNoCorsDomains)}const a=e.credential;if(a&&n.id){const e=n.id.findServerInfo(a.server);let r=e?.owningSystemUrl;if(r){r=r.replace(/\/?$/,"/sharing");const e=n.id.findCredential(r,a.userId);e&&-1===n.id._getIdenticalSvcIdx(r,e)&&e.resources.unshift(r)}}return{data:t,getAllHeaders:r?()=>Array.from(r.headers):S,getHeader:r?e=>r.headers.get(e):S,httpStatus:r?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}async function I(e,r,t){if(e.redoRequest)return e.redoRequest=!1,!1;const s=e.params.requestOptions;if(!r||"native"===s.responseType||"native-request-init"===s.responseType)return!0;let o,a;if(t&&(t.error&&"object"==typeof t.error?o=t.error:"error"===t.status&&Array.isArray(t.messages)&&(o={...t},o[C]=t,o.details=t.messages)),!o&&!r.ok)throw o=new Error(`Unable to load ${r.url} status: ${r.status}`),o[C]=t,o;let i,l=null;o&&(a=Number(o.code),l=o.hasOwnProperty("subcode")?Number(o.subcode):null,i=o.messageCode,i=i?.toUpperCase());const c=s.authMode;if(403===a&&(4===l||o.message?.toLowerCase().includes("ssl")&&!o.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==c||498===a)&&void 0!==a&&v.has(a)&&!T(e.params.url)&&(403!==a||(!i||!b.has(i))&&(null==l||2===l&&e.credentialToken))){await A();try{const r=await n.id.getCredential(e.params.url,{error:x("request:server",o,e.params),prompt:"no-prompt"!==c,signal:e.controller.signal,token:e.credentialToken});return e.credential=r,e.credentialToken=r.token,e.useSSL=e.useSSL||r.ssl,!1}catch(r){if("no-prompt"===c)return e.credential=void 0,e.credentialToken=void 0,!1;o=r}}if(o)throw o;return!0}function R(e,r,t=!1){const s=r.controller.signal,n=new Image;return r.withCredentials?n.crossOrigin="use-credentials":n.crossOrigin="anonymous",n.alt="",n.fetchPriority=w.priority,n.src=e,(0,f.Sx)(n,e,t,s)}},97159:(e,r,t)=>{t.d(r,{M:()=>y,a:()=>g,b:()=>b,e:()=>f,f:()=>a,i:()=>p,p:()=>h,r:()=>l,t:()=>i,w:()=>c});var s=t(70333),n=t(84952),o=t(39131);function a(e,r){const t=r?.url?.path;if(e&&t&&(e=(0,n.s2)(e,t,{preserveProtocolRelative:!0}),r.portalItem&&r.readResourcePaths)){const t=(0,n.V1)(e,r.portalItem.itemUrl);null!=t&&d.test(t)&&r.readResourcePaths.push(r.portalItem.resourceFromPath(t).path)}return(e=m(e,r?.portal))&&u.test(e)?g(e):e}function i(e,r,t=y.YES){if(null==(e=e&&u.test(e)?w(e):e))return e;!(0,n.oP)(e)&&r?.blockedRelativeUrls&&r.blockedRelativeUrls.push(e);let s=(0,n.s2)(e);if(r){const t=r.verifyItemRelativeUrls?.rootPath||r.url?.path;if(t){const o=m(t,r.portal),a=m(s,r.portal);s=(0,n.V1)(a,o,o),null!=s&&s!==a&&s!==e&&r.verifyItemRelativeUrls&&r.verifyItemRelativeUrls.writtenUrls.push(s)}}return s=f(s,r?.portal),(0,n.oP)(s)&&(s=(0,n.S8)(s)),r?.resources&&r?.portalItem&&!(0,n.oP)(s)&&!(0,n.DB)(s)&&t===y.YES&&r.resources.toKeep.push({resource:r.portalItem.resourceFromPath(s),compress:!1}),s}function l(e,r,t){return a(e,t)}function c(e,r,t,s){const n=i(e,s);void 0!==n&&(r[t]=n)}const u=/\/items\/([^/]+)\/resources\/(.*)/,d=/^\.\/resources\//;function p(e){const r=e?.match(u)??null;return r?.[1]??null}function h(e){const r=e?.match(u)??null;if(null==r)return null;const t=r[2],s=t.lastIndexOf("/");if(-1===s){const{path:e,extension:r}=(0,n.xw)(t);return{prefix:null,filename:e,extension:r}}const{path:o,extension:a}=(0,n.xw)(t.slice(s+1));return{prefix:t.slice(0,s),filename:o,extension:a}}function f(e,r){return r&&!r.isPortal&&r.urlKey&&r.customBaseUrl?(0,n.T1)(e,`${r.urlKey}.${r.customBaseUrl}`,r.portalHostname):e}function m(e,r){if(!r||r.isPortal||!r.urlKey||!r.customBaseUrl)return e;const t=`${r.urlKey}.${r.customBaseUrl}`,s=(0,n.Xq)();return(0,n.FX)(s,`${s.scheme}://${t}`)?(0,n.T1)(e,r.portalHostname,t):(0,n.T1)(e,t,r.portalHostname)}function g(e){if(!e)return e||null;let r=e;return r&&s.id&&!s.id.findCredential(r)&&(r=(0,o.qG)(r),r=r.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),r=r.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),r=r.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),r}function w(e){if(!e)return e||null;let r=e;return r=r.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),r=r.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),r=r.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),r&&s.id&&!s.id.findCredential(r)&&(r=(0,o.qG)(r)),r}var y,v;(v=y||(y={}))[v.YES=0]="YES",v[v.NO=1]="NO";const b=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return y},ensureMainOnlineDomain:f,fromCDNUrl:w,fromJSON:a,itemIdFromResourceUrl:p,prefixAndFilenameFromResourceUrl:h,read:l,toCDNUrl:g,toJSON:i,write:c},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4796],{15426:(e,t,r)=>{r.d(t,{Xl:()=>P,ct:()=>L,pc:()=>z,C$:()=>Q,PD:()=>U,VZ:()=>N,mm:()=>F,VA:()=>J,WP:()=>_,iX:()=>x,Nv:()=>k,xd:()=>ee,Vq:()=>G,GA:()=>Y,rQ:()=>K,jp:()=>D,tG:()=>X,lV:()=>E,B5:()=>O,Ye:()=>C,sg:()=>Z,hM:()=>B,S2:()=>R,jD:()=>q,Zm:()=>T,$4:()=>V,Pt:()=>te,bt:()=>M,rn:()=>j,ZJ:()=>re});var n=r(70333),i=r(60999),o=r(49186),s=r(66552),a=r(39516),l=r(13069),u=r(90360),c=r(39357),p=r(53177),d=r(61956);async function y(e,t,r){t=t.clone(),e.capabilities.query.supportsMaxRecordCountFactor&&(t.maxRecordCountFactor=h(e));const n=function(e){return h(e)*function(e){return e.capabilities.query.maxRecordCount||2e3}(e)}(e),i=e.capabilities.query.supportsPagination;t.start=0,t.num=n;let o=null;for(;;){const s=await e.source.queryFeaturesJSON(t,r);if(null==o?o=s:o.features=o.features.concat(s.features),o.exceededTransferLimit=s.exceededTransferLimit,!i||!s.exceededTransferLimit)break;t.start+=n}return o}function h(e){return e.capabilities.query.supportsMaxRecordCountFactor?d.A.MAX_MAX_RECORD_COUNT_FACTOR:1}var m=r(30524),f=r(83531),b=r(96576),w=r(93618),g=r(54546),v=r(41366),A=r(26591),S=r(33910);const x=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function P(e,t,r,n){const i=await $(e);if(await I(e,t,n),!i.addAttachment)throw new o.A(n,"Layer source does not support addAttachment capability");return i.addAttachment(t,r)}function I(e,t,r){const{attributes:n}=t,{objectIdField:i}=e;return e.capabilities?.data?.supportsAttachment?t?n?i&&n[i]?Promise.resolve():Promise.reject(new o.A(r,`feature is missing the identifying attribute ${i}`)):Promise.reject(new o.A(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new o.A(r,"A feature is required to add/delete/update attachments")):Promise.reject(new o.A(r,"this layer doesn't support attachments"))}async function M(e,t,r,n,i){const s=await $(e);if(await I(e,t,i),!s.updateAttachment)throw new o.A(i,"Layer source does not support updateAttachment capability");return s.updateAttachment(t,r,n)}async function L(e,t,n){const{applyEdits:i}=await Promise.all([r.e(8628),r.e(3513)]).then(r.bind(r,78628)),o=await e.load();let s=n;return"feature"===o.type&&o.infoFor3D&&null!=t.deleteFeatures&&null!=o.globalIdField&&(s={...s,globalIdToObjectId:await Y(o,t.deleteFeatures,o.globalIdField)}),i(o,o.source,t,n)}async function j(e,t,n){const{uploadAssets:i}=await Promise.all([r.e(8628),r.e(3513)]).then(r.bind(r,78628)),o=await e.load();return i(o,o.source,t,n)}async function F(e,t,r,n){const i=await $(e);if(await I(e,t,n),!i.deleteAttachments)throw new o.A(n,"Layer source does not support deleteAttachments capability");return i.deleteAttachments(t,r)}async function _(e,t,r){const n=(await e.load({signal:t?.signal})).source;if(!n.fetchRecomputedExtents)throw new o.A(r,"Layer source does not support fetchUpdates capability");return n.fetchRecomputedExtents(t)}async function E(e,t,r,n){t=g.A.from(t),await e.load();const i=e.source,s=e.capabilities;if(!s?.data?.supportsAttachment)throw new o.A(n,"this layer doesn't support attachments");const{attachmentTypes:a,objectIds:l,globalIds:u,num:c,size:p,start:d,where:y}=t;if(!s?.operations?.supportsQueryAttachments&&(a?.length>0||u?.length>0||p?.length>0||c||d||y))throw new o.A(n,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",t);if(!(l?.length||u?.length||y))throw new o.A(n,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",t);if(!i.queryAttachments)throw new o.A(n,"Layer source does not support queryAttachments capability",t);return!s?.attachment?.supportsOrderByFields&&t.orderByFields?.length&&((t=t.clone()).orderByFields=null),i.queryAttachments(t)}async function Z(e,t,r,n){const i=await $(e);if(!i.queryObjectIds)throw new o.A(n,"Layer source does not support queryObjectIds capability");return i.queryObjectIds(d.A.from(t)??e.createQuery(),r)}async function C(e,t,r,n){const i=await $(e);if(!i.queryFeatureCount)throw new o.A(n,"Layer source does not support queryFeatureCount capability");return i.queryFeatureCount(d.A.from(t)??e.createQuery(),r)}async function O(e,t,r,n){const i=await $(e);if(!i.queryExtent)throw new o.A(n,"Layer source does not support queryExtent capability");return i.queryExtent(d.A.from(t)??e.createQuery(),r)}async function B(e,t,r,n){const i=await $(e);if(!i.queryRelatedFeatures)throw new o.A(n,"Layer source does not support queryRelatedFeatures capability");return i.queryRelatedFeatures(A.default.from(t),r)}async function R(e,t,r,n){const i=await $(e);if(!i.queryRelatedFeaturesCount)throw new o.A(n,"Layer source does not support queryRelatedFeaturesCount capability");return i.queryRelatedFeaturesCount(A.default.from(t),r)}async function D(e){const t=e.source;if(t?.refresh)try{const{dataChanged:r,updates:n}=await t.refresh();if(null!=n&&(e.sourceJSON={...e.sourceJSON,...n},e.read(n,{origin:"service",url:e.parsedUrl})),r)return!0}catch{}if(e.definitionExpression)try{return(await(0,a.GP)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function N(e){const t=new d.A;t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,t.outFields=["*"],t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null;const r=e.capabilities?.query;r&&(t.compactGeometryEnabled=r.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=r.supportsDefaultSpatialReference);const n=e.capabilities?.data;n?.supportsZ&&null!=e.returnZ&&(t.returnZ=e.returnZ),n?.supportsM&&null!=e.returnM&&(t.returnM=e.returnM);const{timeOffset:i,timeExtent:o}=e;return t.timeExtent=null!=i&&null!=o?o.offset(-i.value,i.unit):o||null,t}function q(e){const{globalIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeGlobalID"===e.type)return e.name}function T(e){const{objectIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeOID"===e.type)return e.name}function V(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}function G(e,t,r,n){const i=r?.feature,o=!!e.subtypes?.length;if(o&&!r?.excludeImpliedDomains){const r=z(e,t);if(r)return r}const s=o&&k(e,i);if(s){const e=s?.domains?.[t];return"inherited"===e?.type?n:e}const a=ee(e.types,e.typeIdField,i);if(a){const e=a.domains&&a.domains[t];if(e&&"inherited"!==e?.type)return e}if(n)return n;if(!r?.excludeImpliedDomains){const r=function(e,t){const{fieldsIndex:r}=e,{name:n,type:i}=r.get(t)??{};if(!n)return null;if(("typeIdField"in e?r.get(e.typeIdField)?.name:null)===n&&"types"in e&&e.types?.length){const t=e.types.map((e=>new c.H({code:H(e.id,i),name:e.name})));return new p.A({codedValues:t})}return null}(e,t);if(r)return r}return null}function k(e,t){const{subtypes:r,subtypeField:n}=e;if(!t?.attributes||!r?.length||!n)return null;const i=t.attributes[n];return null==i?null:r.find((e=>e.code===i))}function z(e,t){const{fieldsIndex:r,subtypeField:n}=e,{name:i,type:o}=r.get(t)??{};if(!i)return null;if((n&&r.get(n)?.name)===i&&e.subtypes?.length){const t=e.subtypes.map((e=>new c.H({code:H(e.code,o),name:e.name})));if(t?.length)return new p.A({codedValues:t})}return null}function H(e,t){return t?(0,m.yM)({type:t})&&"number"==typeof e?`${e}`:(0,m.R3)({type:t})&&"string"==typeof e?Number.parseInt(e,10):e:e}async function $(e){return(await e.load()).source}async function J(e,t,r){const i=e.parsedUrl?.path;i&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!n.id)return;if(n.id.findCredential(e))return;let r;try{const i=await(0,f.wI)(e,t);i&&(r=await n.id.checkSignInStatus(`${i}/sharing`))}catch(e){}if(r)try{const r=null!=t?t.signal:null;await n.id.getCredential(e,{signal:r})}catch(e){}}(i,r)}function K(e){return!!e?.toLowerCase().includes("current_user")}function Q(e){return!te(e)&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const W=(0,u.C)({types:S.xK});function U(e,t){if(e.defaultSymbol)return e.types?.length?new w.A({defaultSymbol:W(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map((e=>({id:e.id,symbol:W(e.symbol,e,t)})))}):new b.A({symbol:W(e.defaultSymbol,e,t)})}function X(e){let t=e.sourceJSON?.cacheMaxAge;if(!t)return!1;const r=e.editingInfo?.lastEditDate?.getTime();return null==r||(t*=1e3,Date.now()-r<t)}async function Y(e,t,r){if(null==t)return null;const n=[],{objectIdField:o}=e;if(t.forEach((e=>{let t=null;if("attributes"in e){const{attributes:n}=e;t={globalId:n[r],objectId:null!=n[o]&&-1!==n[o]?n[o]:null}}else t={globalId:e.globalId,objectId:null!=e.objectId&&-1!==e.objectId?e.objectId:null};null!=t.globalId&&(null!=t.objectId&&-1!==t.objectId||n.push(t.globalId))})),0===n.length)return null;const s=e.createQuery();s.where=n.map((e=>`${r}='${e}'`)).join(" OR "),s.returnGeometry=!1,s.outFields=[o,r],s.cacheHint=!1;const a=await(0,i.DZ)(y(e,s));if(!a.ok)return null;const u=new Map,c=a.value.features;for(const e of c){const t=e.attributes[r],n=e.attributes[o];null!=t&&null!=n&&-1!==n&&u.set((0,l.AG)(t),n)}return u}function ee(e,t,r){if(!t||!r||!e)return null;const n=r.getAttribute(t);return null==n?null:e.find((e=>{const{id:t}=e;return null!=t&&t.toString()===n.toString()}))??null}function te(e){return e.sourceJSON?.isMultiServicesView||function(e){return!!e.sourceJSON?.capabilities?.toLowerCase().split(",").map((e=>e.trim())).includes("map")}(e)}function re(e,t,r){const n=t?.queryAttributeBins;if(!n)throw new o.A(r,"Layer source does not support binning");switch(e.binParameters.type){case"auto-interval":if(!n.supportsAutoInterval)throw new o.A(r,"Layer source does not support auto-interval binning");if(e.binParameters.normalizationType&&(!n.supportsNormalization||!ne(e.binParameters.normalizationType,n.supportedNormalizationTypes)))throw new o.A(r,"Layer source does not support normalization binning");break;case"date":if(!n.supportsDate)throw new o.A(r,"Layer source does not support date binning");if(e.binParameters.snapToData&&!n.supportsSnapToData)throw new o.A(r,"Layer source does not support snapToData binning");if(e.binParameters.returnFullIntervalBin&&!n.supportsReturnFullIntervalBin)throw new o.A(r,"Layer source does not support returnFullIntervalBin binning");break;case"fixed-boundaries":if(!n.supportsFixedBoundaries)throw new o.A(r,"Layer source does not support fixed-boundaries binning");break;case"fixed-interval":if(!n.supportsFixedInterval)throw new o.A(r,"Layer source does not support fixed-interval binning");if(e.binParameters.normalizationType&&(!n.supportsNormalization||!ne(e.binParameters.normalizationType,n.supportedNormalizationTypes)))throw new o.A(r,"Layer source does not support normalization binning")}if(e.binParameters.stackBy&&!n.supportsStackBy)throw new o.A(r,"Layer source does not support stackBy binning");if(e.binParameters.splitBy&&!n.supportsSplitBy)throw new o.A(r,"Layer source does not support splitBy binning");if(e.binParameters.firstDayOfWeek&&!n.supportsFirstDayOfWeek)throw new o.A(r,"Layer source does not support firstDayOfWeek binning");const i=n?.supportedStatistics;if(e.outStatistics&&i){const t=new Map([["count","count"],["sum","sum"],["min","min"],["max","max"],["avg","avg"],["stddev","stddev"],["var","var"],["percentile-continuous","percentileContinuous"],["percentile-discrete","percentileDiscrete"],["centroid-aggregate","centroid"],["convex-hull-aggregate","convexHull"],["envelope-aggregate","envelope"]]);for(const{statisticType:n}of e.outStatistics){const e=t.get(n);if(e&&!i[e])throw new o.A(r,`Layer source does not support ${n} statistic type`)}}}function ne(e,t){return null!=e&&!!t?.[v.Q.toJSON(e)]}},26591:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var n,i=r(90237),o=r(25482),s=r(4718),a=r(10107),l=r(56507),u=r(40608),c=r(43937),p=r(16930),d=r(27733);let y=class extends o.A{static{n=this}constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new n((0,s.o8)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"cacheHint",void 0),(0,i._)([(0,a.MZ)({type:d.L,json:{write:!0}})],y.prototype,"dynamicDataSource",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"gdbVersion",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"geometryPrecision",void 0),(0,i._)([(0,a.MZ)({type:Date})],y.prototype,"historicMoment",void 0),(0,i._)([(0,c.K)("historicMoment")],y.prototype,"_writeHistoricMoment",null),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],y.prototype,"maxAllowableOffset",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],y.prototype,"objectIds",void 0),(0,i._)([(0,a.MZ)({type:[String],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,i._)([(0,a.MZ)({type:[String],json:{write:!0}})],y.prototype,"outFields",void 0),(0,i._)([(0,a.MZ)({type:p.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],y.prototype,"outSpatialReference",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],y.prototype,"relationshipId",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],y.prototype,"start",void 0),(0,i._)([(0,c.K)("start"),(0,c.K)("num")],y.prototype,"writeStart",null),(0,i._)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],y.prototype,"num",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],y.prototype,"returnGeometry",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnM",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnZ",void 0),(0,i._)([(0,a.MZ)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],y.prototype,"where",void 0),y=n=(0,i._)([(0,u.$)("esri.rest.support.RelationshipQuery")],y),y.from=(0,l.dp)(y);const h=y},30291:(e,t,r)=>{r.d(t,{tn:()=>u});var n=r(13874),i=r(30524),o=r(89893),s=(r(84424),r(80737),r(96808),r(66159)),a=(r(67336),r(92094),r(23721),r(47582),r(41227)),l=r(68780);function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:l,title:u},y){if(!r)return null;const m=function(e,t){const r=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:r}){const n=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===n&&(e=e.slice()),!0!==r&&e.sort(p),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||h,sortDisabled:t?.sortDisabled}).map((t=>new a.A({fieldName:t.name,isEditable:(0,i.R$)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:r})})))}({editFieldsInfo:t,fields:r,objectIdField:l},y);if(!m.length)return null;const f=function(e){const t=(0,i.mB)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:u,fields:r,displayField:e}),b=[new s.A,new o.A];return new n.A({title:f,content:b,fieldInfos:m})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,i.Bz)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:y(e)?-1:y(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":case"single":return new l.A({digitSeparator:!0,places:0});case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,i.JL)(e.name)?new l.A({digitSeparator:!0,places:0}):void 0;default:return}}function y(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const h=["geometry","blob","raster","guid","xml"]},39383:(e,t,r)=>{r.d(t,{w:()=>l,z:()=>c});var n=r(49186),i=r(53966),o=r(46499);const s=()=>i.A.getLogger("esri.layers.support.labelingInfo"),a=/\[([^[\]]+)\]/gi;function l(e,t,r){return e?e.map((e=>{const n=new o.A;if(n.read(e,r),n.labelExpression){const e=t.fields||t.layerDefinition?.fields||this.fields;n.labelExpression=n.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 n=t[e].name;if(n.toLowerCase()===r)return n}return e}(r,e)}]`))}return n})):null}const u={esriGeometryPoint:["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:null,esriGeometryEnvelope:null};function c(e,t){const r=[];for(const i of e){const e=i.labelPlacement,o=u[t];if(!i.symbol)return s().warn("No ILabelClass symbol specified."),[];if(!o)return s().error(new n.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(o.includes(e))r.push(i);else{const n=o[0];e&&s().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${n}`);const a=i.clone();a.labelPlacement=n,r.push(a)}}return r}},46499:(e,t,r)=>{r.d(t,{A:()=>P});var n,i=r(90237),o=(r(44208),r(66552)),s=r(25482),a=r(4718),l=r(90629),u=r(10107),c=(r(53966),r(36005)),p=r(40608),d=r(43937),y=r(73913),h=r(32730),m=r(83531),f=r(59868),b=r(73838),w=r(33910);const g=new o.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 v(e,t,r){return{enabled:!(0,m.TU)(r?.layer)}}function A(e){return!e||"service"!==e.origin&&!("map-image"===e.layer?.type)}function S(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let x=class extends s.A{static{n=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 n=e.split(" ");if(3===n.length)return r(t[n[0]],n[1],n[2]);if(7===n.length){const e=r(t[n[0]],n[1],n[2]),i=n[3],o=r(t[n[4]],n[5],n[6]);switch(i){case"AND":return e&&o;case"OR":return e||o}}return!1}catch(e){}}constructor(e){super(e),this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.repeatLabelDistance=null,this.symbol=f.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,h.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const t=(0,h.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,n){if(null==e&&null!=this.labelExpression&&A(n))e=new y.A({expression:this.getLabelExpressionArcade()});else if(!e)return;const i=e.toJSON(n);i.expression&&(t[r]=i)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}getLabelExpression(){return(0,h.XJ)(this)}getLabelExpressionArcade(){return(0,h.BI)(this)}getLabelExpressionSingleField(){return(0,h.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new n({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,i._)([(0,u.MZ)({type:String,json:{write:!0}})],x.prototype,"name",void 0),(0,i._)([(0,u.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:v}}}}})],x.prototype,"allowOverrun",void 0),(0,i._)([(0,u.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:v}}}}})],x.prototype,"deconflictionStrategy",void 0),(0,i._)([(0,u.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&S(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],x.prototype,"labelExpression",void 0),(0,i._)([(0,c.w)("labelExpression")],x.prototype,"readLabelExpression",null),(0,i._)([(0,d.K)("labelExpression")],x.prototype,"writeLabelExpression",null),(0,i._)([(0,u.MZ)({type:y.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return A(e)||S(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],x.prototype,"labelExpressionInfo",void 0),(0,i._)([(0,d.K)("labelExpressionInfo")],x.prototype,"writeLabelExpressionInfo",null),(0,i._)([(0,u.MZ)({type:g.apiValues,json:{type:g.jsonValues,read:g.read,write:g.write}})],x.prototype,"labelPlacement",void 0),(0,i._)([(0,u.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],x.prototype,"labelPosition",void 0),(0,i._)([(0,u.MZ)({type:Number})],x.prototype,"maxScale",void 0),(0,i._)([(0,d.K)("maxScale")],x.prototype,"writeMaxScale",null),(0,i._)([(0,u.MZ)({type:Number})],x.prototype,"minScale",void 0),(0,i._)([(0,d.K)("minScale")],x.prototype,"writeMinScale",null),(0,i._)([(0,u.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:v}}}}})],x.prototype,"repeatLabel",void 0),(0,i._)([(0,u.MZ)({type:Number,cast:l.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:v}}}}})],x.prototype,"repeatLabelDistance",void 0),(0,i._)([(0,u.MZ)({types:w.em,json:{origins:{"web-scene":{types:w.Rv,write:b.oO,default:null}},write:b.oO,default:null}})],x.prototype,"symbol",void 0),(0,i._)([(0,u.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"useCodedValues",void 0),(0,i._)([(0,u.MZ)({type:String,json:{write:!0}})],x.prototype,"where",void 0),x=n=(0,i._)([(0,p.$)("esri.layers.support.LabelClass")],x);const P=x},54546:(e,t,r)=>{r.d(t,{A:()=>d});var n,i=r(90237),o=r(25482),s=r(4718),a=r(10107),l=r(56507),u=r(40608),c=r(43937);let p=class extends o.A{static{n=this}constructor(e){super(e),this.attachmentTypes=null,this.attachmentsWhere=null,this.cacheHint=void 0,this.keywords=null,this.globalIds=null,this.name=null,this.num=null,this.objectIds=null,this.orderByFields=null,this.returnMetadata=!1,this.size=null,this.start=null,this.where=null}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new n((0,s.o8)({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,cacheHint:this.cacheHint,keywords:this.keywords,where:this.where,globalIds:this.globalIds,name:this.name,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))}};(0,i._)([(0,a.MZ)({type:[String],json:{write:!0}})],p.prototype,"attachmentTypes",void 0),(0,i._)([(0,a.MZ)({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],p.prototype,"attachmentsWhere",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"cacheHint",void 0),(0,i._)([(0,a.MZ)({type:[String],json:{write:!0}})],p.prototype,"keywords",void 0),(0,i._)([(0,a.MZ)({type:[String],json:{write:!0}})],p.prototype,"globalIds",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],p.prototype,"num",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],p.prototype,"objectIds",void 0),(0,i._)([(0,a.MZ)({type:[String],json:{write:!0}})],p.prototype,"orderByFields",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],p.prototype,"returnMetadata",void 0),(0,i._)([(0,a.MZ)({type:[Number],json:{write:!0}})],p.prototype,"size",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],p.prototype,"start",void 0),(0,i._)([(0,c.K)("start"),(0,c.K)("num")],p.prototype,"writeStart",null),(0,i._)([(0,a.MZ)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],p.prototype,"where",void 0),p=n=(0,i._)([(0,u.$)("esri.rest.support.AttachmentQuery")],p),p.from=(0,l.dp)(p);const d=p},73913:(e,t,r)=>{r.d(t,{A:()=>d});var n,i=r(90237),o=r(25482),s=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),l=r(40608),u=r(43937),c=r(32730);let p=class extends o.A{constructor(){super(...arguments),this.expression=null,this.title=null,this.value=null}static{n=this}readExpression(e,t){return t.value?(0,c.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,c.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new n({expression:this.expression,title:this.title,value:this.value})}};(0,i._)([(0,s.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"expression",void 0),(0,i._)([(0,a.w)("expression",["expression","value"])],p.prototype,"readExpression",null),(0,i._)([(0,u.K)("expression")],p.prototype,"writeExpression",null),(0,i._)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"title",void 0),(0,i._)([(0,s.MZ)({json:{read:!1,write:!1}})],p.prototype,"value",void 0),p=n=(0,i._)([(0,l.$)("esri.layers.support.LabelExpressionInfo")],p);const d=p},96576:(e,t,r)=>{r.d(t,{A:()=>y});var n,i=r(90237),o=r(4718),s=r(10107),a=(r(44208),r(53966),r(93223)),l=r(40608),u=r(92438),c=r(63988),p=r(49849);let d=n=class extends((0,c.h)(u.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map((r=>r.collectRequiredFields(e,t))))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}getAttributeHash(){return this.visualVariables?.reduce(((e,t)=>e+t.getAttributeHash()),"")??""}getMeshHash(){return this.symbols.reduce(((e,t)=>e+JSON.stringify(t)),"")}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new n({description:this.description,label:this.label,symbol:(0,o.o8)(this.symbol),visualVariables:(0,o.o8)(this.visualVariables),authoringInfo:(0,o.o8)(this.authoringInfo)})}};(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,i._)([(0,s.MZ)(p.Wp)],d.prototype,"symbol",void 0),(0,i._)([(0,a.e)({simple:"simple"})],d.prototype,"type",void 0),d=n=(0,i._)([(0,l.$)("esri.renderers.SimpleRenderer")],d);const y=d}}]);
@@ -2,14 +2,17 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import has from"../core/has.js";import{lerp as t}from"../core/mathUtils.js";import{create as e}from"../core/libs/gl-matrix-2/factories/mat3f64.js";import{set as a}from"../core/libs/gl-matrix-2/math/vec2.js";import{create as o}from"../core/libs/gl-matrix-2/factories/vec2f64.js";import{RayMarchingSteps as i}from"../views/3d/environment/CloudsTechniqueConfiguration.js";import{atlasSize as s,tileRows as n,tileSize as r,textureScale as l,weatherMapScale as c}from"../views/3d/environment/NoiseTextureAtlasDimensions.js";import{ScreenSpacePass as d}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{Float2PassUniform as u}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{FloatPassUniform as m}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as f}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Matrix3PassUniform as h}from"../views/3d/webgl-engine/core/shaderModules/Matrix3PassUniform.js";import{Texture2DPassUniform as p}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{SphereIntersect as g}from"../views/3d/webgl-engine/shaders/SphereIntersect.glsl.js";import{NoParameters as v}from"../views/webgl/NoParameters.js";import{ShaderBuilder as y}from"../views/webgl/ShaderBuilder.js";class w extends v{constructor(){super(...arguments),this.cloudRadius=0,this.cloudSize=0,this.detailSize=0,this.absorption=0,this.density=0,this.smoothness=0,this.cloudHeight=0,this.coverage=0,this.viewMatrix=e()}}const S=has("esri-mobile")?1024:2048;function x(e){const o=new y;o.include(d,!1);const v=o.fragment;return v.include(g),v.uniforms.add(new m("cloudRadius",(t=>t.cloudRadius)),new m("power",(e=>t(35,120,e.absorption))),new m("sigmaE",(t=>1+t.absorption)),new m("density",(e=>t(0,.3,e.density))),new m("cloudSize",(e=>t(0,.02,Math.max(.01,1-e.cloudSize)))),new m("detailSize",(e=>t(0,.2,Math.max(.01,1-e.detailSize)))),new m("smoothness",(e=>t(0,.5,1-e.smoothness))),new m("cloudHeight",(e=>t(0,1500,e.cloudHeight))),new m("coverage",(t=>t.coverage)),new h("view",(t=>t.viewMatrix)),new p("cloudShapeTexture",(t=>null!=t.noiseTexture?t.noiseTexture.textureAtlas:null)),new u("cloudVariables",(t=>a(D,t.coverage,t.absorption)))),v.constants.add("halfCubeMapSize","float",.5*S),v.code.add(f`
6
- const int STEPS = ${e.steps===i.SIXTEEN?f`16`:e.steps===i.HUNDRED?f`100`:f`200`};
5
+ import has from"../core/has.js";import{lerp as t}from"../core/mathUtils.js";import{create as e}from"../core/libs/gl-matrix-2/factories/mat3f64.js";import{set as a}from"../core/libs/gl-matrix-2/math/vec2.js";import{create as o}from"../core/libs/gl-matrix-2/factories/vec2f64.js";import{RayMarchingSteps as i}from"../views/3d/environment/CloudsTechniqueConfiguration.js";import{atlasSize as s,tileRows as r,tileSize as n,textureScale as l,weatherMapScale as c}from"../views/3d/environment/NoiseTextureAtlasDimensions.js";import{ScreenSpacePass as d}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{BooleanPassUniform as u}from"../views/3d/webgl-engine/core/shaderModules/BooleanPassUniform.js";import{Float2PassUniform as f}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{FloatPassUniform as m}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as h}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{Matrix3PassUniform as p}from"../views/3d/webgl-engine/core/shaderModules/Matrix3PassUniform.js";import{Texture2DPassUniform as g}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{SphereIntersect as v}from"../views/3d/webgl-engine/shaders/SphereIntersect.glsl.js";import{NoParameters as y}from"../views/webgl/NoParameters.js";import{ShaderBuilder as w}from"../views/webgl/ShaderBuilder.js";class S extends y{constructor(){super(...arguments),this.cloudRadius=0,this.cloudSize=0,this.detailSize=0,this.absorption=0,this.density=0,this.smoothness=0,this.cloudHeight=0,this.coverage=0,this.lastSlice=!1,this.viewMatrix=e()}}const x=has("esri-mobile")?1024:2048;function D(e){const o=new w;o.include(d,!1);const y=o.fragment;return y.include(v),y.uniforms.add(new m("cloudRadius",(t=>t.cloudRadius)),new m("power",(e=>t(35,120,e.absorption))),new m("sigmaE",(t=>1+t.absorption)),new m("density",(e=>t(0,.3,e.density))),new m("cloudSize",(e=>t(0,.02,Math.max(.01,1-e.cloudSize)))),new m("detailSize",(e=>t(0,.2,Math.max(.01,1-e.detailSize)))),new m("smoothness",(e=>t(0,.5,1-e.smoothness))),new m("cloudHeight",(e=>t(0,1500,e.cloudHeight))),new m("coverage",(t=>t.coverage)),new p("view",(t=>t.viewMatrix)),new g("cloudShapeTexture",(t=>null!=t.noiseTexture?t.noiseTexture.textureAtlas:null)),new f("cloudVariables",(t=>a(b,t.coverage,t.absorption))),new u("lastSlice",(t=>t.lastSlice))),y.constants.add("halfCubeMapSize","float",.5*x),y.code.add(h`
6
+ const int STEPS = ${e.steps===i.SIXTEEN?h`16`:e.steps===i.HUNDRED?h`100`:h`200`};
7
7
  const int STEPS_LIGHT = 6;
8
8
  const float stepL = 300.0 / float(STEPS_LIGHT);
9
9
  const float cloudStart = 1500.0;
10
10
 
11
11
  vec3 rayDirection(vec2 fragCoord) {
12
- vec2 xy = fragCoord - halfCubeMapSize;
12
+ vec2 xy = fragCoord;
13
+ xy.x -= halfCubeMapSize;
14
+ xy.y = lastSlice ? fragCoord.y - halfCubeMapSize : fragCoord.y;
15
+
13
16
  return normalize(vec3(-xy, -halfCubeMapSize));
14
17
  }
15
18
 
@@ -19,15 +22,15 @@ import has from"../core/has.js";import{lerp as t}from"../core/mathUtils.js";impo
19
22
 
20
23
  float saturate(float x) {
21
24
  return clamp(x, 0.0, 1.0);
22
- }`),v.code.add(f`
25
+ }`),y.code.add(h`
23
26
  float getCloudShape(vec3 pos, float pOffset) {
24
- const float textureWidth = ${f.float(s)};
25
- const float dataWidth = ${f.float(s)};
26
- const float tileRows = ${f.float(n)};
27
- const vec3 atlasDimensions = vec3(${f.float(r)}, ${f.float(r)}, tileRows * tileRows);
27
+ const float textureWidth = ${h.float(s)};
28
+ const float dataWidth = ${h.float(s)};
29
+ const float tileRows = ${h.float(r)};
30
+ const vec3 atlasDimensions = vec3(${h.float(n)}, ${h.float(n)}, tileRows * tileRows);
28
31
 
29
32
  //Change from Y being height to Z being height
30
- vec3 p = float(${f.float(l)}) * pos.xzy;
33
+ vec3 p = float(${h.float(l)}) * pos.xzy;
31
34
 
32
35
  //Pixel coordinates of point in the 3D data
33
36
  vec3 coord = vec3(mod(p - pOffset * atlasDimensions, atlasDimensions));
@@ -46,11 +49,11 @@ import has from"../core/has.js";import{lerp as t}from"../core/mathUtils.js";impo
46
49
 
47
50
  float getCloudMap(vec2 p){
48
51
  // Shift the texture center to origin to avoid seam artifacts
49
- vec2 uv = (${f.float(c)} * p) / ${f.float(s)} + 0.5;
52
+ vec2 uv = (${h.float(c)} * p) / ${h.float(s)} + 0.5;
50
53
 
51
54
  return texture(cloudShapeTexture, uv).a;
52
55
  }
53
- `),v.code.add(f`float clouds(vec3 p) {
56
+ `),y.code.add(h`float clouds(vec3 p) {
54
57
  float cloud = saturate(0.5 * mix(0.0, 1.0, min(2.0 * coverage, 1.0)));
55
58
  if (cloud <= 0.0) {
56
59
  return 0.0;
@@ -71,7 +74,7 @@ if (cloud <= 0.0) {
71
74
  return 0.0;
72
75
  }
73
76
  return density * saturate(remap(cloud, 0.35 * smoothness * getCloudShape(detailSize * p, 0.0), 1.0, 0.0, 1.0));
74
- }`),v.code.add(f`float HenyeyGreenstein(float g, float costh) {
77
+ }`),y.code.add(h`float HenyeyGreenstein(float g, float costh) {
75
78
  return (1.0 / (4.0 * 3.1415)) * ((1.0 - g * g) / pow(1.0 + g * g - 2.0 * g * costh, 1.5));
76
79
  }
77
80
  float multipleOctaves(float extinction, float mu, float stepL) {
@@ -87,7 +90,7 @@ contribution *= 0.6;
87
90
  phaseAttenuation *= 0.5;
88
91
  }
89
92
  return luminance;
90
- }`),v.code.add(f`float lightRay(vec3 org, vec3 p, float phaseFunction, float mu, vec3 sunDirection) {
93
+ }`),y.code.add(h`float lightRay(vec3 org, vec3 p, float phaseFunction, float mu, vec3 sunDirection) {
91
94
  float lightRayDensity = clouds(p);
92
95
  lightRayDensity += clouds(p + sunDirection * 1.0 * stepL);
93
96
  lightRayDensity += clouds(p + sunDirection * 2.0 * stepL);
@@ -96,7 +99,7 @@ lightRayDensity += clouds(p + sunDirection * 4.0 * stepL);
96
99
  lightRayDensity += clouds(p + sunDirection * 5.0 * stepL);
97
100
  float beersLaw = multipleOctaves(lightRayDensity, mu, stepL);
98
101
  return mix(beersLaw * 2.0 * (1.0 - (exp(-stepL * lightRayDensity * 2.0 * sigmaE ))), beersLaw, 0.5 + 0.5 * mu);
99
- }`),v.code.add(f`float mainRay(vec3 org, vec3 dir, vec3 sunDirection, float distToStart, float totalDistance, out float totalTransmittance) {
102
+ }`),y.code.add(h`float mainRay(vec3 org, vec3 dir, vec3 sunDirection, float distToStart, float totalDistance, out float totalTransmittance) {
100
103
  if (dir.z < 0.0) {
101
104
  return 0.0;
102
105
  }
@@ -126,23 +129,16 @@ dist += stepS;
126
129
  p = org + dir * dist;
127
130
  }
128
131
  return shading;
129
- }`),v.main.add(f`if (coverage == 0.0) {
132
+ }`),y.main.add(h`if (coverage == 0.0) {
130
133
  fragColor = vec4(0.0, 1.0, 0.0, 1.0);
131
134
  return;
132
135
  }
133
136
  vec3 rayDir = rayDirection(gl_FragCoord.xy);
134
137
  rayDir = normalize(view * rayDir);
135
138
  vec3 viewPos = vec3(0, 0, cloudRadius + 1.0);
136
- bool hitsPlanet = rayDir.z < 0.0;
137
139
  float hazeFactor = smoothstep(-0.01, mix(0.0, 0.075, cloudVariables.x), abs(dot(rayDir, vec3(0, 0, 1))));
138
140
  float totalTransmittance = 1.0;
139
141
  float shading = 0.0;
140
- if (hitsPlanet) {
141
- shading = clamp(1.0 - cloudVariables.y, 0.6, 1.0) * (1.0 - hazeFactor);
142
- totalTransmittance = hazeFactor;
143
- fragColor = vec4(shading, totalTransmittance, shading, totalTransmittance);
144
- return;
145
- }
146
142
  float cloudDistance = cloudRadius + cloudStart;
147
143
  float rayStartDistance = dot(viewPos, viewPos) - (cloudDistance * cloudDistance);
148
144
  vec2 rayStartIntersect = sphereIntersect(viewPos, rayDir, rayStartDistance);
@@ -154,4 +150,4 @@ vec3 sunDirection = normalize(vec3(0, 0, 1));
154
150
  shading = 0.5 * mainRay(viewPos, rayDir, sunDirection, distToStart, totalDistance, totalTransmittance);
155
151
  shading = mix(clamp(1.0 - cloudVariables.y, 0.6, 1.0), shading, hazeFactor);
156
152
  totalTransmittance = mix(0.0, totalTransmittance, hazeFactor);
157
- fragColor = vec4(shading, totalTransmittance, shading, totalTransmittance);`),o}const D=o(),b=Object.freeze(Object.defineProperty({__proto__:null,CloudsPassParameters:w,build:x,cubeMapSize:S},Symbol.toStringTag,{value:"Module"}));export{w as C,b as a,x as b,S as c};
153
+ fragColor = vec4(shading, totalTransmittance, shading, totalTransmittance);`),o}const b=o(),T=Object.freeze(Object.defineProperty({__proto__:null,CloudsPassParameters:S,build:D,cubeMapSize:x},Symbol.toStringTag,{value:"Module"}));export{S as C,T as a,D as b,x as c};
@@ -7,7 +7,7 @@ import{ShaderOutput as e}from"../views/3d/webgl-engine/core/shaderLibrary/Shader
7
7
  forwardViewPosDepth((view * vec4(vpos, 1.0)).xyz);
8
8
  vTexCoord = uv0;
9
9
  gl_Position = transformPosition(proj, view, vpos);
10
- ${d(j,"gl_Position *= perspectiveDivide;")}`),f.add("vpos","vec3",{invariant:!0}),f.add("vTexCoord","vec2"),b.include(t),b.uniforms.add(new l("opacity",(e=>e.opacity)),new g("tex",(e=>e.texture))).main.add(n`
10
+ ${d(j,"gl_Position *= perspectiveDivide;")}`),f.add("vpos","vec3",{invariant:!0}),f.add("vTexCoord","vec2"),b.include(t),b.uniforms.add(new l("opacity",(e=>e.opacity)),new g("tex",(e=>e.glTexture))).main.add(n`
11
11
  discardBySlice(vpos);
12
12
  discardByTerrainDepth();
13
13
  ${d(h===e.ObjectAndLayerIdColor,"fragColor = vec4(0, 0, 0, 1); return;")}
package/core/Accessor.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{deprecatedFunction as e}from"./deprecate.js";import t from"./Handles.js";import r from"./Logger.js";import{destroyMaybe as s}from"./maybe.js";import{beforeDestroySymbol as o}from"./accessorSupport/beforeDestroy.js";import{get as i}from"./accessorSupport/get.js";import{Lifecycle as c}from"./accessorSupport/interfaces.js";import{getPropertiesMetadata as a}from"./accessorSupport/metadata.js";import n from"./accessorSupport/Properties.js";import{set as _}from"./accessorSupport/set.js";import{getAccessorInterceptor as p}from"./accessorSupport/testSupport.js";import{removeTarget as h,watch as l}from"./accessorSupport/watch.js";import{property as u}from"./accessorSupport/decorators/property.js";import{subclass as d}from"./accessorSupport/decorators/subclass.js";var f,m;function y(e){if(null==e)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}const v=Symbol("Accessor-Handles"),b=Symbol("Accessor-Initialized");class g{static{f=v,m=b}static createSubclass(e={}){if(Array.isArray(e))throw new Error("Multi-inheritance unsupported since 4.16");const{properties:t,declaredClass:r,constructor:s}=e;delete e.declaredClass,delete e.properties,delete e.constructor;const o=this;class i extends o{constructor(...e){super(...e),this.inherited=null,s&&s.apply(this,e)}}a(i.prototype);for(const c in e){const t=e[c];i.prototype[c]="function"==typeof t?function(...e){const r=this.inherited;let s;this.inherited=function(...e){if(o.prototype[c])return o.prototype[c].apply(this,e)};try{s=t.apply(this,e)}catch(i){throw this.inherited=r,i}return this.inherited=r,s}:e[c]}for(const c in t){const e=y(t[c]);u(e)(i.prototype,c)}return d(r)(i)}static freeze(e){return e instanceof g?e.__accessor__.mutable=!1:Object.freeze(e),e}static isFrozen(e){return e instanceof g?!e.__accessor__.mutable:Object.isFrozen(e)}constructor(...e){if(this[f]=null,this[m]=!1,this.constructor===g)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");const t=new n(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:t}),e.length>0&&(t.ctorArgs=this.normalizeCtorArgs?.apply(this,e)??e[0]),p()?.onInstanceConstruct(this)}postscript(){const e=this.__accessor__,t=e.ctorArgs;e.initialize(),t&&(this.set(t),e.ctorArgs=null),e.constructed(),this.initialize(),this[b]=!0}initialize(){}[o](){this[v]=s(this[v])}destroy(){this.destroyed||(h(this),this.__accessor__.destroy(),p()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[b]}get destroyed(){return this.__accessor__?.lifecycle===c.DESTROYED||!1}commitProperty(e){i(this,e)}hasOwnProperty(e){return this.__accessor__?this.__accessor__.has(e):Object.prototype.hasOwnProperty.call(this,e)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(e,t){return _(this,e,t),this}watch(t,s,o){return e(r.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html#watch",warnOnce:!0}),l(this,t,s,o)}addHandles(e,r){if(this.destroyed){const t=Array.isArray(e)?e:[e];for(const e of t)e.remove();return}(this[v]??=new t).add(e,r)}removeHandles(e){this[v]?.remove(e)}removeAllHandles(){this[v]?.removeAll()}removeHandlesReference(e){this[v]?.removeReference(e)}hasHandles(e){return!0===this[v]?.has(e)}_override(e,t){void 0===t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_clearOverride(e){return this.__accessor__.clearOverride(e)}_overrideIfSome(e,t){null==t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_isOverridden(e){return this.__accessor__.isOverridden(e)}notifyChange(e){this.__accessor__.notifyChange(e)}_get(e){return this.__accessor__.internalGet(e)}_set(e,t){return this.__accessor__.internalSet(e,t),this}}export{g as default};
5
+ import{deprecatedFunction as e}from"./deprecate.js";import t from"./Handles.js";import r from"./Logger.js";import{destroyMaybe as s}from"./maybe.js";import{beforeDestroySymbol as o}from"./accessorSupport/beforeDestroy.js";import{get as i}from"./accessorSupport/get.js";import{Lifecycle as c}from"./accessorSupport/interfaces.js";import{getPropertiesMetadata as a}from"./accessorSupport/metadata.js";import n from"./accessorSupport/Properties.js";import{set as _}from"./accessorSupport/set.js";import{getAccessorInterceptor as p}from"./accessorSupport/testSupport.js";import{removeTarget as l,watch as h}from"./accessorSupport/watch.js";import{property as u}from"./accessorSupport/decorators/property.js";import{subclass as d}from"./accessorSupport/decorators/subclass.js";var f,m;function y(e){if(null==e)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}const v=Symbol("Accessor-Handles"),g=Symbol("Accessor-Initialized");class b{static{f=v,m=g}static createSubclass(e={}){if(Array.isArray(e))throw new Error("Multi-inheritance unsupported since 4.16");const{properties:t,declaredClass:r,constructor:s}=e;delete e.declaredClass,delete e.properties,delete e.constructor;const o=this;class i extends o{constructor(...e){super(...e),this.inherited=null,s&&s.apply(this,e)}}a(i.prototype);for(const c in e){const t=e[c];i.prototype[c]="function"==typeof t?function(...e){const r=this.inherited;let s;this.inherited=function(...e){if(o.prototype[c])return o.prototype[c].apply(this,e)};try{s=t.apply(this,e)}catch(i){throw this.inherited=r,i}return this.inherited=r,s}:e[c]}for(const c in t){const e=y(t[c]);u(e)(i.prototype,c)}return d(r)(i)}static freeze(e){return e instanceof b?e.__accessor__.mutable=!1:Object.freeze(e),e}static isFrozen(e){return e instanceof b?!e.__accessor__.mutable:Object.isFrozen(e)}constructor(...e){if(this[f]=null,this[m]=!1,this.constructor===b)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");const t=new n(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:t}),e.length>0&&(t.ctorArgs=this.normalizeCtorArgs?.apply(this,e)??e[0]),p()?.onInstanceConstruct(this)}postscript(){const e=this.__accessor__,t=e.ctorArgs;e.initialize(),t&&(this.set(t),e.ctorArgs=null),e.constructed(),this.initialize(),this[g]=!0}initialize(){}[o](){this[v]=s(this[v])}destroy(){this.destroyed||(l(this),this.__accessor__.destroy(),p()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[g]}get destroyed(){return this.__accessor__?.lifecycle===c.DESTROYED||!1}get destroying(){return this.__accessor__?.lifecycle===c.DESTROYING||!1}commitProperty(e){i(this,e)}hasOwnProperty(e){return this.__accessor__?this.__accessor__.has(e):Object.prototype.hasOwnProperty.call(this,e)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(e,t){return _(this,e,t),this}watch(t,s,o){return e(r.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html#watch",warnOnce:!0}),h(this,t,s,o)}addHandles(e,r){if(this.destroyed){const t=Array.isArray(e)?e:[e];for(const e of t)e.remove();return}(this[v]??=new t).add(e,r)}removeHandles(e){this[v]?.remove(e)}removeAllHandles(){this[v]?.removeAll()}removeHandlesReference(e){this[v]?.removeReference(e)}hasHandles(e){return!0===this[v]?.has(e)}_override(e,t){void 0===t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_clearOverride(e){return this.__accessor__.clearOverride(e)}_overrideIfSome(e,t){null==t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_isOverridden(e){return this.__accessor__.isOverridden(e)}notifyChange(e){this.__accessor__.notifyChange(e)}_get(e){return this.__accessor__.internalGet(e)}_set(e,t){return this.__accessor__.internalSet(e,t),this}}export{b as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import"../../has.js";import e from"../../Logger.js";import{beforeDestroySymbol as t}from"../beforeDestroy.js";import{Lifecycle as r}from"../interfaces.js";import{getPropertiesMetadata as o}from"../metadata.js";import{trackAccess as s}from"../tracking.js";import{processPrototypePropertyMetadata as i}from"../extensions/serializableProperty.js";const n=new Set,c=new Set;function a(e){return r=>{e??="esri.core.Accessor",r.prototype.declaredClass=e,p(r);const s=[],i=[];let a=r.prototype;for(;a;)a.hasOwnProperty("initialize")&&!n.has(a.initialize)&&(n.add(a.initialize),s.push(a.initialize)),a.hasOwnProperty("destroy")&&!c.has(a.destroy)&&(c.add(a.destroy),i.push(a.destroy)),a=Object.getPrototypeOf(a);n.clear(),c.clear();const l=class extends r{constructor(...e){if(super(...e),this.constructor===l&&"function"==typeof this.postscript){if(s.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let e=s.length-1;e>=0;e--)s[e].call(this)}}),i.length){let e=!1;const r=this[t];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!e){e=!0,r.call(this);for(let e=0;e<i.length;e++)i[e].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};l.__accessorMetadata__=o(r.prototype),l.prototype.declaredClass=e;const u=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(l,"name",{value:u,configurable:!0}),l}}function l(e,t){return null==t.get?function(){const t=this.__accessor__,r=t.propertiesByName.get(e);if(void 0===r)return;t.mutable&&s(r);const o=t.store;return o.has(e)?o.get(e):r.metadata.value}:function(){const t=this.__accessor__,r=t.propertiesByName.get(e);if(void 0!==r)return r.getComputed(t)}}function p(e){const t=e.prototype,s=o(t),n={};for(const o of Object.getOwnPropertyNames(s)){const e=s[o];i(e),n[o]={enumerable:!0,configurable:!0,get:l(o,e),set(t){const s=this.__accessor__;if(void 0!==s){if(s.mutable)return s.initialized&&e.readOnly?u("read-only",o):s.lifecycle===r.CONSTRUCTED&&e.constructOnly?u("construct-only",o):void s.set(o,t)}else Object.defineProperty(this,o,{enumerable:!0,configurable:!0,writable:!0,value:t})}}}Object.defineProperties(e.prototype,n)}const u=(t,r)=>{e.getLogger("esri.core.Accessor").error(`cannot assign to ${t} property '${r}'`)};export{p as finalizeClass,a as subclass};
5
+ import"../../has.js";import e from"../../Logger.js";import{beforeDestroySymbol as t}from"../beforeDestroy.js";import{Lifecycle as r}from"../interfaces.js";import{getPropertiesMetadata as o}from"../metadata.js";import{trackAccess as s}from"../tracking.js";import{processPrototypePropertyMetadata as i}from"../extensions/serializableProperty.js";const n=new Set,c=new Set;function a(e){return s=>{e??="esri.core.Accessor",s.prototype.declaredClass=e,p(s);const i=[],a=[];let l=s.prototype;for(;l;)l.hasOwnProperty("initialize")&&!n.has(l.initialize)&&(n.add(l.initialize),i.push(l.initialize)),l.hasOwnProperty("destroy")&&!c.has(l.destroy)&&(c.add(l.destroy),a.push(l.destroy)),l=Object.getPrototypeOf(l);n.clear(),c.clear();const f=class extends s{constructor(...e){if(super(...e),this.constructor===f&&"function"==typeof this.postscript){if(i.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let e=i.length-1;e>=0;e--)i[e].call(this)}}),a.length){let e=!1;const o=this[t];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!e){this.__accessor__.lifecycle=r.DESTROYING,e=!0,o.call(this);for(let e=0;e<a.length;e++)a[e].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};f.__accessorMetadata__=o(s.prototype),f.prototype.declaredClass=e;const u=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(f,"name",{value:u,configurable:!0}),f}}function l(e,t){return null==t.get?function(){const t=this.__accessor__,r=t.propertiesByName.get(e);if(void 0===r)return;t.mutable&&s(r);const o=t.store;return o.has(e)?o.get(e):r.metadata.value}:function(){const t=this.__accessor__,r=t.propertiesByName.get(e);if(void 0!==r)return r.getComputed(t)}}function p(e){const t=e.prototype,s=o(t),n={};for(const o of Object.getOwnPropertyNames(s)){const e=s[o];i(e),n[o]={enumerable:!0,configurable:!0,get:l(o,e),set(t){const s=this.__accessor__;if(void 0!==s){if(s.mutable)return s.initialized&&e.readOnly?f("read-only",o):s.lifecycle===r.CONSTRUCTED&&e.constructOnly?f("construct-only",o):void s.set(o,t)}else Object.defineProperty(this,o,{enumerable:!0,configurable:!0,writable:!0,value:t})}}}Object.defineProperties(e.prototype,n)}const f=(t,r)=>{e.getLogger("esri.core.Accessor").error(`cannot assign to ${t} property '${r}'`)};export{p as finalizeClass,a as subclass};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- var I;!function(I){I[I.INITIALIZING=0]="INITIALIZING",I[I.CONSTRUCTING=1]="CONSTRUCTING",I[I.CONSTRUCTED=2]="CONSTRUCTED",I[I.DESTROYED=3]="DESTROYED"}(I||(I={}));export{I as Lifecycle};
5
+ var I;!function(I){I[I.INITIALIZING=0]="INITIALIZING",I[I.CONSTRUCTING=1]="CONSTRUCTING",I[I.CONSTRUCTED=2]="CONSTRUCTED",I[I.DESTROYING=3]="DESTROYING",I[I.DESTROYED=4]="DESTROYED"}(I||(I={}));export{I as Lifecycle};
package/interfaces.d.ts CHANGED
@@ -70522,7 +70522,7 @@ declare namespace __esri {
70522
70522
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#sublayers Read more...}
70523
70523
  */
70524
70524
  get sublayers(): Collection<Sublayer> | nullish;
70525
- set sublayers(value: CollectionProperties<SublayerProperties> | nullish);
70525
+ set sublayers(value: CollectionProperties<Sublayer> | nullish);
70526
70526
  /**
70527
70527
  * Specify the time extent used by identify.
70528
70528
  *
@@ -70657,7 +70657,7 @@ declare namespace __esri {
70657
70657
  *
70658
70658
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#sublayers Read more...}
70659
70659
  */
70660
- sublayers?: CollectionProperties<SublayerProperties> | nullish;
70660
+ sublayers?: CollectionProperties<Sublayer> | nullish;
70661
70661
  /**
70662
70662
  * Specify the time extent used by identify.
70663
70663
  *
@@ -134747,13 +134747,17 @@ declare namespace __esri {
134747
134747
  *
134748
134748
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTraceAnalysis-UtilityNetworkTraceAnalysisViewModel.html#loadError Read more...}
134749
134749
  */
134750
- readonly loadError: "no-utility-network" | "no-view" | "sceneView-not-supported" | nullish;
134750
+ readonly loadError: | "no-user-type-extension"
134751
+ | "no-utility-network"
134752
+ | "no-view"
134753
+ | "sceneView-not-supported"
134754
+ | nullish;
134751
134755
  /**
134752
134756
  * The viewModel's state.
134753
134757
  *
134754
134758
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTraceAnalysis-UtilityNetworkTraceAnalysisViewModel.html#state Read more...}
134755
134759
  */
134756
- readonly state: "disabled" | "executing" | "failed" | "loading" | "ready";
134760
+ readonly state: "disabled" | "executing" | "loading" | "ready";
134757
134761
  /**
134758
134762
  * Determines the utility network to use.
134759
134763
  *