@arcgis/core 4.30.0-next.20240213 → 4.30.0-next.20240214

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 (116) hide show
  1. package/TimeExtent.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/051c00021039f20ad935.js +1 -0
  4. package/assets/esri/core/workers/chunks/08ba549f9c4afc42a21c.js +1 -0
  5. package/assets/esri/core/workers/chunks/{a384f29cb3256401962a.js → 1629a8c2085dce59cd1b.js} +1 -1
  6. package/assets/esri/core/workers/chunks/18512caeeb03b9759ab1.js +1 -0
  7. package/assets/esri/core/workers/chunks/{cc1c958aad790a44048b.js → 1ca28af7c516d8283bb0.js} +1 -1
  8. package/assets/esri/core/workers/chunks/1f8a0fb32b96e50f5909.js +1 -0
  9. package/assets/esri/core/workers/chunks/25f7e92cb4934c4930be.js +1 -0
  10. package/assets/esri/core/workers/chunks/2649166d1a462c7f8338.js +1 -0
  11. package/assets/esri/core/workers/chunks/51e4f771bfe352967c97.js +1 -0
  12. package/assets/esri/core/workers/chunks/5467bacd2771e6b1cdfa.js +1 -0
  13. package/assets/esri/core/workers/chunks/5638d95e600ff271c5b1.js +1 -0
  14. package/assets/esri/core/workers/chunks/58f088b08e12c5435dbc.js +1 -0
  15. package/assets/esri/core/workers/chunks/5aef1e898618f8dda2c9.js +1 -0
  16. package/assets/esri/core/workers/chunks/656ec8a14df0e4b68433.js +1 -0
  17. package/assets/esri/core/workers/chunks/66f21348fb68c83b9dc3.js +1108 -0
  18. package/assets/esri/core/workers/chunks/{eb2d6f1ee63b40ae0736.js → 774b655498289b1b36bb.js} +1 -1
  19. package/assets/esri/core/workers/chunks/9310f1de92d9b82dc803.js +1 -0
  20. package/assets/esri/core/workers/chunks/{f03d62ab7806b68d0b62.js → 9fbf61675e2a5374f754.js} +1 -1
  21. package/assets/esri/core/workers/chunks/a0b017a34cafd08ce945.js +1 -0
  22. package/assets/esri/core/workers/chunks/a28711db61c1df2d7bac.js +1 -0
  23. package/assets/esri/core/workers/chunks/aa9b46bcb75c96731de3.js +1 -0
  24. package/assets/esri/core/workers/chunks/c83da4659646ce3f5b50.js +1 -0
  25. package/assets/esri/core/workers/chunks/{05ebb9cec0e1826b283f.js → cafcc53175f9d4c5de2f.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{1c6914ded7db720f7bf7.js → daf6eab5dd198ca9a67b.js} +1 -1
  27. package/assets/esri/core/workers/chunks/e03edeaf3af46495449e.js +1 -0
  28. package/assets/esri/core/workers/chunks/e0c9f29eedfa71554445.js +1 -0
  29. package/assets/esri/core/workers/chunks/e123017c670f22266768.js +1 -0
  30. package/assets/esri/core/workers/chunks/eba3a6f0a66b51b8ec12.js +1 -0
  31. package/assets/esri/core/workers/chunks/ebb294c82207f3ff9f04.js +1 -0
  32. package/assets/esri/core/workers/chunks/{e4da908079417cc2f495.js → ee0c77889059815a31b2.js} +1 -1
  33. package/assets/esri/core/workers/chunks/f36e55302b45e2936a5b.js +1 -0
  34. package/assets/esri/core/workers/chunks/f85e67d4a18603ccaaed.js +1 -0
  35. package/assets/esri/core/workers/chunks/f90bbebd2dc07a77ce09.js +1 -0
  36. package/chunks/vec32.js +1 -1
  37. package/interfaces.d.ts +131 -66
  38. package/layers/WFSLayer.js +1 -1
  39. package/layers/buildingSublayers/BuildingComponentSublayer.js +1 -1
  40. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  41. package/layers/mixins/ArcGISImageService.js +1 -1
  42. package/package.json +1 -1
  43. package/portal/Portal.js +1 -1
  44. package/portal/PortalGroup.js +1 -1
  45. package/portal/PortalUser.js +1 -1
  46. package/portal/support/geometryServiceUtils.js +1 -1
  47. package/rest/knowledgeGraph/wasmInterface/wasmToUpdateResponseFactories.js +1 -1
  48. package/rest/networks/support/Association.js +1 -1
  49. package/rest/places.js +1 -1
  50. package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
  51. package/rest/support/ImageSampleParameters.js +1 -1
  52. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  53. package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
  54. package/support/elevationInfoUtils.js +1 -1
  55. package/support/revision.js +1 -1
  56. package/symbols/cim/cimAnalyzer.js +1 -1
  57. package/symbols/cim/defaultCIMValues.js +1 -1
  58. package/symbols/cim/utils.js +1 -1
  59. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  60. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  61. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  62. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  63. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  64. package/views/3d/layers/SceneLayerView3D.js +1 -1
  65. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  66. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  67. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  68. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  69. package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
  70. package/views/3d/terrain/OverlayRenderer.js +1 -1
  71. package/views/3d/webgl/RenderNode.js +1 -1
  72. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  73. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  74. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +9 -7
  75. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceConstants.js +5 -0
  76. package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +8 -8
  77. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  78. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  79. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  80. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  81. package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
  82. package/views/draw/drawSurfaces.js +1 -1
  83. package/views/layers/ImageryTileLayerView.js +1 -1
  84. package/webdoc/support/webdocLoadUtils.js +1 -1
  85. package/webdoc/support/webdocSaveUtils.js +1 -1
  86. package/widgets/Editor.js +1 -1
  87. package/widgets/FeatureForm.js +1 -1
  88. package/widgets/Print/PrintViewModel.js +1 -1
  89. package/widgets/Search/support/locatorUtils.js +1 -1
  90. package/widgets/Sketch/SketchViewModel.js +1 -1
  91. package/assets/esri/core/workers/chunks/00b9e92f8df245a83921.js +0 -1
  92. package/assets/esri/core/workers/chunks/02ee044597c89c86b934.js +0 -1
  93. package/assets/esri/core/workers/chunks/143ccb14c9e915dd1412.js +0 -1
  94. package/assets/esri/core/workers/chunks/24649b410b757599a549.js +0 -1
  95. package/assets/esri/core/workers/chunks/2519b207894132d5ea91.js +0 -1
  96. package/assets/esri/core/workers/chunks/30f9b2a3417cbcfeecca.js +0 -1
  97. package/assets/esri/core/workers/chunks/42ab9c282bb267c3db03.js +0 -1
  98. package/assets/esri/core/workers/chunks/49afeac45250b15b5f36.js +0 -1
  99. package/assets/esri/core/workers/chunks/50bb67f2eeace5d50673.js +0 -1
  100. package/assets/esri/core/workers/chunks/50cdc59426ba859027e2.js +0 -1
  101. package/assets/esri/core/workers/chunks/58c5861d060c808813a1.js +0 -1
  102. package/assets/esri/core/workers/chunks/5dbb3ef6fdd25ac632ad.js +0 -1
  103. package/assets/esri/core/workers/chunks/61c4bb58ef9f2d99c75e.js +0 -1
  104. package/assets/esri/core/workers/chunks/6e50220f8e2d392e2855.js +0 -1
  105. package/assets/esri/core/workers/chunks/6fd8047741a0df006ddd.js +0 -1
  106. package/assets/esri/core/workers/chunks/7709248f59520aee6f51.js +0 -1
  107. package/assets/esri/core/workers/chunks/8852a64918caf80fc414.js +0 -1
  108. package/assets/esri/core/workers/chunks/94dfb80ab23dda92918b.js +0 -1
  109. package/assets/esri/core/workers/chunks/9ebbc75ba5c623a322aa.js +0 -1
  110. package/assets/esri/core/workers/chunks/a74c59cf5d1c4e63a4e1.js +0 -1
  111. package/assets/esri/core/workers/chunks/be562536212360943388.js +0 -1
  112. package/assets/esri/core/workers/chunks/d06d36815c2121484a13.js +0 -1
  113. package/assets/esri/core/workers/chunks/d5f06a7b0ea7951c8dd0.js +0 -1
  114. package/assets/esri/core/workers/chunks/de6d54df7ae32694fd70.js +0 -1
  115. package/assets/esri/core/workers/chunks/f13c4b9692dad5802a32.js +0 -1106
  116. package/assets/esri/core/workers/chunks/f1e8f7d1a98b9e207b1b.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2296],{44728:(e,t,r)=>{r.d(t,{c:()=>c});var i,n,s=r(46988),o=r(53648),l=r(53368);function a(e){return(0,o.qk)((0,l.Wu)(e),0,255)}function d(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function u(e,t){const r=e.toString(16).padStart(2,"0");return t?r.substring(0,1):r}class p{static blendColors(e,t,r,i=new p){return i.r=Math.round(e.r+(t.r-e.r)*r),i.g=Math.round(e.g+(t.g-e.g)*r),i.b=Math.round(e.b+(t.b-e.b)*r),i.a=e.a+(t.a-e.a)*r,i._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),i=r[1];if("rgb"===i&&3===e.length||"rgba"===i&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),p.fromArray(r,t)}return p.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===i&&3===e.length||"hsla"===i&&4===e.length)return p.fromArray((0,s.ec)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new p){if("#"!==e[0]||isNaN(Number(`0x${e.substring(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.substring(1,2),16),i=parseInt(e.substring(2,3),16),n=parseInt(e.substring(3,4),16),s=5===e.length?15:parseInt(e.substring(4),16);return p.fromArray([r+16*r,i+16*i,n+16*n,(s+16*s)/255],t)}case 7:case 9:{const r=parseInt(e.substring(1,3),16),i=parseInt(e.substring(3,5),16),n=parseInt(e.substring(5,7),16),s=7===e.length?255:parseInt(e.substring(7),16);return p.fromArray([r,i,n,s/255],t)}default:return null}}static fromArray(e,t=new p){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,s.kv)(e)?(0,s.SQ)(e):null;return r&&p.fromArray(r,t)||p.fromRgb(e,t)||p.fromHex(e,t)}static fromJSON(e){return null!=e?new p([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?p.fromString(e,this):Array.isArray(e)?p.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof p||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,i=3===r||4===r,n=4===r||8===r,s=`#${u(this.r,i)}${u(this.g,i)}${u(this.b,i)}${n?u(Math.round(255*this.a),i):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=p.AlphaMode.ALWAYS){const t=a(this.r),r=a(this.g),i=a(this.b);return e===p.AlphaMode.ALWAYS||1!==this.a?[t,r,i,a(255*this.a)]:[t,r,i]}clone(){return new p(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(d(this.r,0,255)),this.g=Math.round(d(this.g,0,255)),this.b=Math.round(d(this.b,0,255)),this.a=d(this.a,0,1),this}_set(e,t,r,i){this.r=e,this.g=t,this.b=r,this.a=i}}p.prototype.declaredClass="esri.Color",(n=(i=p||(p={})).AlphaMode||(i.AlphaMode={}))[n.ALWAYS=0]="ALWAYS",n[n.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const c=p},25228:(e,t,r)=>{r.d(t,{c:()=>m});var i,n=r(41948),s=r(40504),o=r(94360),l=r(1580),a=(r(9456),r(66360),r(72052),r(33600)),d=r(12552),u=r(18996),p=r(28484);let c=i=class extends s.am{static get allTime(){return h}static get empty(){return y}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.aU)(r,e,t));let n=this.end;if(n){const r=(0,o.aU)(n,e,t);n=n.getTime()===r.getTime()?r:(0,o.g1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let o,l;return n>=t&&n<=r?o=n:t>=n&&t<=s&&(o=t),r>=n&&r<=s?l=r:s>=t&&s<=r&&(l=s),null==o||null==l||isNaN(o)||isNaN(l)?i.empty:new i({start:o===-1/0?null:new Date(o),end:l===1/0?null:new Date(l)})}offset(e,t,r=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:s,end:l}=this;return null!=s&&(n.start=(0,o.g1)(s,e,t,r)),null!=l&&(n.end=(0,o.g1)(l,e,t,r)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,n._)([(0,a.E)("end")],c.prototype,"readEnd",null),(0,n._)([(0,u.G)("end")],c.prototype,"writeEnd",null),(0,n._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,n._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,n._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,n._)([(0,a.E)("start")],c.prototype,"readStart",null),(0,n._)([(0,u.G)("start")],c.prototype,"writeStart",null),c=i=(0,n._)([(0,d.c)("esri.TimeExtent")],c);const h=new c,y=new c({start:void 0,end:void 0}),m=c},3856:(e,t,r)=>{r.d(t,{m:()=>p,q:()=>u});var i=r(41948),n=r(43780),s=(r(9456),r(62088)),o=(r(66360),r(70680)),l=r(71448),a=r(20916),d=r(12552);const u=e=>{let t=class extends e{clone(){const e=(0,a.m6)(this);(0,o.EN)(e,"unable to clone instance of non-accessor class");const t=e.metadata,r=e.store,i={},n=new Map;for(const e in t){const o=t[e],a=r?.originOf(e),d=o.clonable;if(o.readOnly||!1===d||a!==l.sT.USER&&a!==l.sT.DEFAULTS&&a!==l.sT.WEB_MAP&&a!==l.sT.WEB_SCENE)continue;const u=this[e];let p=null;p="function"==typeof d?d(u):"reference"===d?u:(0,s.gx)(u),null!=u&&null==p||(a===l.sT.DEFAULTS?n.set(e,p):i[e]=p)}const d=new(0,Object.getPrototypeOf(this).constructor)(i);if(n.size){const e=(0,a.m6)(d)?.store;if(e)for(const[t,r]of n)e.set(t,r,l.sT.DEFAULTS)}return d}};return t=(0,i._)([(0,d.c)("esri.core.Clonable")],t),t};let p=class extends(u(n.c)){};p=(0,i._)([(0,d.c)("esri.core.Clonable")],p)},22156:(e,t,r)=>{r.d(t,{MR:()=>o,qm:()=>l});var i=r(41948),n=r(12552);let s=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return t=(0,i._)([(0,n.c)("esri.core.Identifiable")],t),t},l=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return t=(0,i._)([(0,n.c)("esri.core.NumericIdentifiable")],t),t};let a=class extends(o(class{})){};a=(0,i._)([(0,n.c)("esri.core.Identifiable")],a)},75824:(e,t,r)=>{r.d(t,{Md:()=>s,m0:()=>o,qG:()=>n});var i=r(39452);class n{}function s(e){return e instanceof i.C?e===n.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return s(e)?n.instance:e}n.instance=new i._C("Etc/UTC")},63564:(e,t,r)=>{r.d(t,{Mr:()=>o,cf:()=>s,g1:()=>n});const i="randomUUID"in crypto;function n(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${n().toUpperCase()}}`}function o(){return`{${n()}}`}},13819:(e,t,r)=>{r.d(t,{c:()=>b});var i,n=r(41948),s=r(92400),o=r(14628),l=r(40504),a=r(24296),d=r(69504),u=r(1580),p=(r(9456),r(66360),r(33600)),c=r(12552),h=r(18996);const y=(0,o.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=y.jsonValues.slice();(0,s.sH)(m,"orthometric");const f=(0,o.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=i=class extends l.am{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(function(e,t){return new d.c("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,a.oG)(e)||f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,a._2)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new d.c("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n._)([(0,u.qq)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],g.prototype,"heightModel",void 0),(0,n._)([(0,h.G)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,n._)([(0,p.E)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,n._)([(0,u.qq)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],g.prototype,"heightUnit",void 0),(0,n._)([(0,p.E)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,n._)([(0,p.E)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,n._)([(0,u.qq)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,n._)([(0,p.E)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=i=(0,n._)([(0,c.c)("esri.geometry.HeightModelInfo")],g);const b=g},81436:(e,t,r)=>{r.d(t,{c:()=>b});var i=r(41948),n=(r(60708),r(2600)),s=r(20744),o=r(77860),l=r(22156),a=r(95800),d=r(66360),u=r(10860),p=r(28176),c=r(1580),h=(r(9456),r(72052),r(12552)),y=r(6220),m=r(95247),f=r(56156);let g=0,v=class extends(o.c.EventedMixin((0,l.MR)(a.c))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.c(-180,-90,180,90,f.c.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.c.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(9232).then(r.bind(r,69232))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(2259).then(r.bind(r,12259));try{return await i(t)}catch(e){const r=t&&t.portalItem,i=r?.id||"unset",n=r&&r.portal&&r.portal.url||y.default.portalUrl;throw d.c.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,u.mA)(e)||d.c.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,p.as)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.c)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.c("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,c.qq)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i._)([(0,c.qq)({type:m.c})],v.prototype,"fullExtent",void 0),(0,i._)([(0,c.qq)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i._)([(0,c.qq)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i._)([(0,c.qq)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i._)([(0,c.qq)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i._)([(0,c.qq)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i._)([(0,c.qq)({clonable:!1})],v.prototype,"parent",void 0),(0,i._)([(0,c.qq)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i._)([(0,c.qq)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i._)([(0,c.qq)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i._)([(0,c.qq)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i._)([(0,c.qq)({type:f.c})],v.prototype,"spatialReference",void 0),(0,i._)([(0,c.qq)({type:String})],v.prototype,"title",void 0),(0,i._)([(0,c.qq)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i._)([(0,c.qq)()],v.prototype,"url",void 0),(0,i._)([(0,c.qq)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i._)([(0,h.c)("esri.layers.Layer")],v);const b=v},21680:(e,t,r)=>{r.r(t),r.d(t,{default:()=>te});var i=r(41948),n=r(82692),s=r(2600),o=r(20744),l=r(62088),a=r(66360),d=r(26496),u=r(58820),p=r(10860),c=r(28176),h=r(1580),y=(r(9456),r(33600)),m=r(12552),f=r(18996),g=r(81436),v=r(38724),b=r(16660),w=r(28584),q=r(66576),_=r(98768),S=r(3116),T=r(87072),F=r(53368),I=r(9968),x=r(40504);r(72052);let C=class extends x.am{constructor(e){super(e),this.field=null,this.type=null}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}};(0,i._)([(0,h.qq)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],C.prototype,"field",void 0),(0,i._)([(0,h.qq)({readOnly:!0,nonNullable:!0,json:{read:!1}})],C.prototype,"type",void 0),C=(0,i._)([(0,m.c)("esri.layers.pointCloudFilters.PointCloudFilter")],C);const j=C;var N;let E=N=class extends j{constructor(e){super(e),this.requiredClearBits=null,this.requiredSetBits=null,this.type="bitfield"}clone(){return new N({field:this.field,requiredClearBits:(0,l.ct)(this.requiredClearBits),requiredSetBits:(0,l.ct)(this.requiredSetBits)})}};(0,i._)([(0,h.qq)({type:[F.Ab],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredSetBits}}}}})],E.prototype,"requiredClearBits",void 0),(0,i._)([(0,h.qq)({type:[F.Ab],json:{write:{enabled:!0,overridePolicy(){return{enabled:!0,isRequired:!this.requiredClearBits}}}}})],E.prototype,"requiredSetBits",void 0),(0,i._)([(0,I.G)({pointCloudBitfieldFilter:"bitfield"})],E.prototype,"type",void 0),E=N=(0,i._)([(0,m.c)("esri.layers.pointCloudFilters.PointCloudBitfieldFilter")],E);const O=E;var R;let V=R=class extends j{constructor(e){super(e),this.includedReturns=[],this.type="return"}clone(){return new R({field:this.field,includedReturns:(0,l.ct)(this.includedReturns)})}};(0,i._)([(0,h.qq)({type:[["firstOfMany","last","lastOfMany","single"]],json:{write:{enabled:!0,isRequired:!0}}})],V.prototype,"includedReturns",void 0),(0,i._)([(0,I.G)({pointCloudReturnFilter:"return"})],V.prototype,"type",void 0),V=R=(0,i._)([(0,m.c)("esri.layers.pointCloudFilters.PointCloudReturnFilter")],V);const P=V;var A;let M=A=class extends j{constructor(e){super(e),this.mode="exclude",this.type="value",this.values=[]}clone(){return new A({field:this.field,mode:this.mode,values:(0,l.ct)(this.values)})}};(0,i._)([(0,h.qq)({type:["exclude","include"],json:{write:{enabled:!0,isRequired:!0}}})],M.prototype,"mode",void 0),(0,i._)([(0,I.G)({pointCloudValueFilter:"value"})],M.prototype,"type",void 0),(0,i._)([(0,h.qq)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],M.prototype,"values",void 0),M=A=(0,i._)([(0,m.c)("esri.layers.pointCloudFilters.PointCloudValueFilter")],M);const U={key:"type",base:j,typeMap:{value:M,bitfield:O,return:P}};var D,L=r(21488),B=r(600),k=r(81732),G=r(83336),$=r(12432),z=r(96220);let H=D=class extends z.c{constructor(e){super(e),this.type="point-cloud-rgb",this.field=null}clone(){return new D({...this.cloneProperties(),field:(0,l.ct)(this.field)})}};(0,i._)([(0,I.G)({pointCloudRGBRenderer:"point-cloud-rgb"})],H.prototype,"type",void 0),(0,i._)([(0,h.qq)({type:String,json:{write:!0}})],H.prototype,"field",void 0),H=D=(0,i._)([(0,m.c)("esri.renderers.PointCloudRGBRenderer")],H);const K=H;var Z=r(56185),J=r(53224);const W={key:"type",base:z.c,typeMap:{"point-cloud-class-breaks":$.c,"point-cloud-rgb":K,"point-cloud-stretch":Z.c,"point-cloud-unique-value":J.c},errorContext:"renderer"};var Y=r(69204),X=r(65548);const Q=(0,k.l)();let ee=class extends((0,T.G6)((0,b.u)((0,q.Y)((0,_.K)((0,S.I)((0,d.U)((0,w.G)((0,v.C)(g.c))))))))){constructor(...e){super(...e),this.operationalLayerType="PointCloudLayer",this.popupEnabled=!0,this.popupTemplate=null,this.opacity=1,this.filters=[],this.fields=null,this.fieldsIndex=null,this.outFields=null,this.path=null,this.legendEnabled=!0,this.renderer=null,this.type="point-cloud"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}get defaultPopupTemplate(){return this.attributeStorageInfo?this.createPopupTemplate():null}getFieldDomain(e){const t=this.fieldsIndex.get(e);return t?.domain?t.domain:null}readServiceFields(e,t,r){return Array.isArray(e)?e.map((e=>{const t=new B.c;return"FieldTypeInteger"===e.type&&((e=(0,l.ct)(e)).type="esriFieldTypeInteger"),t.read(e,r),t})):Array.isArray(t.attributeStorageInfo)?t.attributeStorageInfo.map((e=>new B.c({name:e.name,type:"ELEVATION"===e.name?"double":"integer"}))):null}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}writeRenderer(e,t,r,i){(0,u.qQ)("layerDefinition.drawingInfo.renderer",e.write({},i),t)}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(p.CE).then((()=>this._fetchService(t)));return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){const t=(0,X.Ap)(this,e);return t&&(this._formatPopupTemplateReturnsField(t),this._formatPopupTemplateRGBField(t)),t}_formatPopupTemplateReturnsField(e){const t=this.fieldsIndex.get("RETURNS");if(!t)return;const r=e.fieldInfos?.find((e=>e.fieldName===t.name));if(!r)return;const i=new G.c({name:"pcl-returns-decoded",title:t.alias||t.name,expression:`\n var returnValue = $feature.${t.name};\n return (returnValue % 16) + " / " + Floor(returnValue / 16);\n `});e.expressionInfos=[...e.expressionInfos||[],i],r.fieldName="expression/pcl-returns-decoded"}_formatPopupTemplateRGBField(e){const t=this.fieldsIndex.get("RGB");if(!t)return;const r=e.fieldInfos?.find((e=>e.fieldName===t.name));if(!r)return;const i=new G.c({name:"pcl-rgb-decoded",title:t.alias||t.name,expression:`\n var rgb = $feature.${t.name};\n var red = Floor(rgb / 65536, 0);\n var green = Floor((rgb - (red * 65536)) / 256,0);\n var blue = rgb - (red * 65536) - (green * 256);\n\n return "rgb(" + red + "," + green + "," + blue + ")";\n `});e.expressionInfos=[...e.expressionInfos||[],i],r.fieldName="expression/pcl-rgb-decoded"}async queryCachedStatistics(e,t){if(await this.load(t),!this.attributeStorageInfo)throw new o.c("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const r=this.fieldsIndex.get(e);if(!r)throw new o.c("pointcloudlayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.attributeStorageInfo)if(e.name===r.name){const r=(0,c.kn)(this.parsedUrl.path,`./statistics/${e.key}`);return(0,s.c)(r,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then((e=>e.data))}throw new o.c("pointcloudlayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(T.UJ.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"point-cloud"};return this._debouncedSaveOperations(T.UJ.SAVE,e)}validateLayer(e){if(e.layerType&&"PointCloud"!==e.layerType)throw new o.c("pointcloudlayer:layer-type-not-supported","PointCloudLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.c("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"});if(this.version.major>2)throw new o.c("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x-2.x"})}hasCachedStatistics(e){return null!=this.attributeStorageInfo&&this.attributeStorageInfo.some((t=>t.name===e))}_getTypeKeywords(){return["PointCloud"]}_validateElevationInfo(){const e=this.elevationInfo;(0,Y.A$)(a.c.getLogger(this),(0,Y.Ez)("Point cloud layers","absolute-height",e)),(0,Y.A$)(a.c.getLogger(this),(0,Y.W8)("Point cloud layers",e))}};(0,i._)([(0,h.qq)({type:["PointCloudLayer"]})],ee.prototype,"operationalLayerType",void 0),(0,i._)([(0,h.qq)(L.Ou)],ee.prototype,"popupEnabled",void 0),(0,i._)([(0,h.qq)({type:n.c,json:{name:"popupInfo",write:!0}})],ee.prototype,"popupTemplate",void 0),(0,i._)([(0,h.qq)({readOnly:!0,json:{read:!1}})],ee.prototype,"defaultPopupTemplate",null),(0,i._)([(0,h.qq)({readOnly:!0,json:{write:!1,read:!1,origins:{"web-document":{write:!1,read:!1}}}})],ee.prototype,"opacity",void 0),(0,i._)([(0,h.qq)({type:["show","hide"]})],ee.prototype,"listMode",void 0),(0,i._)([(0,h.qq)({types:[U],json:{origins:{service:{read:{source:"filters"}}},name:"layerDefinition.filters",write:!0}})],ee.prototype,"filters",void 0),(0,i._)([(0,h.qq)({type:[B.c]})],ee.prototype,"fields",void 0),(0,i._)([(0,h.qq)(Q.fieldsIndex)],ee.prototype,"fieldsIndex",void 0),(0,i._)([(0,y.E)("service","fields",["fields","attributeStorageInfo"])],ee.prototype,"readServiceFields",null),(0,i._)([(0,h.qq)(Q.outFields)],ee.prototype,"outFields",void 0),(0,i._)([(0,h.qq)({readOnly:!0})],ee.prototype,"attributeStorageInfo",void 0),(0,i._)([(0,h.qq)(L.Kg)],ee.prototype,"elevationInfo",null),(0,i._)([(0,h.qq)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],ee.prototype,"path",void 0),(0,i._)([(0,h.qq)(L.Uj)],ee.prototype,"legendEnabled",void 0),(0,i._)([(0,h.qq)({types:W,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:{target:{"layerDefinition.drawingInfo.renderer":{types:W},"layerDefinition.drawingInfo.transparency":{type:Number}}}}})],ee.prototype,"renderer",void 0),(0,i._)([(0,f.G)("renderer")],ee.prototype,"writeRenderer",null),(0,i._)([(0,h.qq)({json:{read:!1},readOnly:!0})],ee.prototype,"type",void 0),ee=(0,i._)([(0,m.c)("esri.layers.PointCloudLayer")],ee);const te=ee},28584:(e,t,r)=>{r.d(t,{G:()=>o});var i=r(41948),n=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,n.qq)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,s.c)("esri.layers.mixins.CustomParametersMixin")],t),t}},98768:(e,t,r)=>{r.d(t,{K:()=>_});var i=r(41948),n=r(6220),s=r(47620),o=r(2600),l=r(40196),a=r(20744),d=r(66360),u=r(70680),p=r(10860),c=r(28176),h=r(1580),y=(r(9456),r(72052),r(33600)),m=r(12552),f=r(18996),g=r(71068),v=r(54872),b=r(9764),w=r(53039),q=r(46940);const _=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.mG)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await Promise.all([r.e(8828),r.e(4132)]).then(r.bind(r,94132));return(0,p.wp)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,p.mA)(e)||d.c.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,p.CE)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,p.CE)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,q.CI)(r);let n,o;if(i)n=r.portal.url;else try{n=await(0,g.mK)(this.url,t)}catch(e){(0,p.CE)(e)}if(!n||!(0,c.Cs)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.CE)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new b.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,q.CI)(r)}catch(e){(0,p.CE)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.CE)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=v.c.getDefault();if(n&&n.loaded&&(0,c.k7)(n.restUrl)===(0,c.k7)(i))return n.user;const a=`${i}/community/self`,d=null!=e?e.signal:null,u=await(0,l.aG)((0,o.c)(a,{authMode:"no-prompt",query:{f:"json"},signal:d}));return u.ok?w.c.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.c.getDefault());return r&&i&&!(0,c.kF)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.c("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,h.qq)({type:b.default})],t.prototype,"portalItem",null),(0,i._)([(0,y.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,h.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.c)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},3116:(e,t,r)=>{r.d(t,{I:()=>o});var i=r(41948),n=r(1580),s=(r(9456),r(66360),r(72052),r(12552));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,n.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,n.qq)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,n.qq)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,s.c)("esri.layers.mixins.ScaleRangeLayer")],t),t}},600:(e,t,r)=>{r.d(t,{c:()=>f});var i,n=r(41948),s=r(14628),o=r(40504),l=r(1580),a=r(53368),d=(r(72052),r(9456),r(9968)),u=r(33600),p=r(12552),c=r(89812),h=r(36408);const y=new s.O({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=i=class extends o.am{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?y.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n._)([(0,l.qq)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,n._)([(0,l.qq)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,n._)([(0,l.qq)()],m.prototype,"description",void 0),(0,n._)([(0,u.E)("description")],m.prototype,"readDescription",null),(0,n._)([(0,l.qq)({types:c.i2,json:{read:{reader:c.h4},write:!0}})],m.prototype,"domain",void 0),(0,n._)([(0,l.qq)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,n._)([(0,l.qq)({type:a.Ab,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,n._)([(0,l.qq)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,n._)([(0,l.qq)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,n._)([(0,d.G)(h.M)],m.prototype,"type",void 0),(0,n._)([(0,l.qq)()],m.prototype,"valueType",void 0),(0,n._)([(0,u.E)("valueType",["description"])],m.prototype,"readValueType",null),(0,n._)([(0,l.qq)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=i=(0,n._)([(0,p.c)("esri.layers.support.Field")],m);const f=m},16424:(e,t,r)=>{r.d(t,{c:()=>c});var i=r(20744),n=r(40504),s=r(66360),o=r(86916),l=r(75824),a=r(564),d=r(28484),u=r(39452);const p=new Map;class c{static fromJSON(e){return new c(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new c(e.fields??[],f(e))}static fromLayerJSON(e){return new c(e.fields??[],f(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,i=y(t);if(t&&i){const n=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(i,e),r.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.gp)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.iW)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.Mz)(e)||(0,a.w1)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.Mz)(e)||(0,a.w1)(e)||e.nullable||void 0!==(0,a.gB)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(s.c.getLogger("esri.layers.support.FieldsIndex").error(new i.c("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),d.Gw):m.has(t.type)?d.OI:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===d.OI?l.qG.instance:t===d.Gw?u.Kq.utcInstance:(0,o.wJ)(p,t,(()=>u._C.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.eM)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,n.wt)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function y(e){return(0,a.gP)(e)?.toLowerCase()??""}const m=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function f(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:n}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",o=(i?"endField"in i?i.endField:i.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,d.Mt)(e.dateFieldsTimeReference):null,a=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.dateFieldsTimeReference?(0,d.Mt)(n.dateFieldsTimeReference):l??d.Gw:null,u=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.timeReference?(0,d.Mt)(i.timeReference):l:null,p=new Map([[h(n?.creationDateField??""),a],[h(n?.editDateField??""),a],[h(s),u],[h(o),u]]);for(const{name:i,type:n}of e.fields)if(m.has(n))t.set(i,d.OI);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(i,null);else if(r)t.set(i,d.OI);else{const e=p.get(h(i??""))??l;t.set(i,e)}return t}},89812:(e,t,r)=>{r.d(t,{h4:()=>T,i2:()=>S}),r(9456);var i,n=r(41948),s=r(62088),o=r(1580),l=(r(66360),r(9968)),a=r(12552),d=r(40504);r(72052);let u=i=class extends d.am{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n._)([(0,o.qq)({type:[String,Number],json:{write:!0}})],u.prototype,"code",void 0),u=i=(0,n._)([(0,a.c)("esri.layers.support.CodedValue")],u);const p=new(r(14628).O)({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends d.am{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,l.G)(p)],c.prototype,"type",void 0),c=(0,n._)([(0,a.c)("esri.layers.support.Domain")],c);const h=c;var y;let m=y=class extends h{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,s.ct)(this.codedValues),name:this.name})}};(0,n._)([(0,o.qq)({type:[u],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,n._)([(0,l.G)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=y=(0,n._)([(0,a.c)("esri.layers.support.CodedValueDomain")],m);const f=m;var g;r(20744);let v=g=class extends h{constructor(e){super(e),this.type="inherited"}clone(){return new g}};(0,n._)([(0,l.G)({inherited:"inherited"})],v.prototype,"type",void 0),v=g=(0,n._)([(0,a.c)("esri.layers.support.InheritedDomain")],v);const b=v;var w;let q=w=class extends h{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new w({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,o.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],q.prototype,"maxValue",void 0),(0,n._)([(0,o.qq)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],q.prototype,"minValue",void 0),(0,n._)([(0,l.G)({range:"range"})],q.prototype,"type",void 0),q=w=(0,n._)([(0,a.c)("esri.layers.support.RangeDomain")],q);const _=q,S={key:"type",base:h,typeMap:{range:q,"coded-value":f,inherited:b}};function T(e){if(!e?.type)return null;switch(e.type){case"range":return _.fromJSON(e);case"codedValue":return f.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},81732:(e,t,r)=>{r.d(t,{l:()=>a});var i=r(9456),n=r(66360),s=r(600),o=r(16424),l=r(564);function a(){return{fields:{type:[s.c],value:null,set:function(e){if(e&&(0,i.c)("big-integer-warning-enabled")){const t=e.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(t.length){const e=t.map((e=>`'${e.name}'`)).join(", ");n.c.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.c.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||n.c.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.OO)(this.fieldsIndex,e)}}}}},36408:(e,t,r)=>{r.d(t,{M:()=>i});const i=new(r(14628).O)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},12432:(e,t,r)=>{r.d(t,{c:()=>v});var i,n=r(41948),s=r(62088),o=r(1580),l=(r(9456),r(66360),r(9968)),a=r(12552),d=r(96220),u=r(89584),p=r(44728),c=r(40504),h=r(53368);let y=i=class extends c.am{constructor(){super(...arguments),this.description=null,this.label=null,this.minValue=0,this.maxValue=0,this.color=null}clone(){return new i({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,color:(0,s.ct)(this.color)})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,n._)([(0,o.qq)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],y.prototype,"minValue",void 0),(0,n._)([(0,o.qq)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],y.prototype,"maxValue",void 0),(0,n._)([(0,o.qq)({type:p.c,json:{type:[h.Ab],write:!0}})],y.prototype,"color",void 0),y=i=(0,n._)([(0,a.c)("esri.renderers.support.pointCloud.ColorClassBreakInfo")],y);const m=y;var f;let g=f=class extends d.c{constructor(e){super(e),this.type="point-cloud-class-breaks",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.colorClassBreakInfos=null}clone(){return new f({...this.cloneProperties(),field:this.field,fieldTransformType:this.fieldTransformType,colorClassBreakInfos:(0,s.ct)(this.colorClassBreakInfos),legendOptions:(0,s.ct)(this.legendOptions)})}};(0,n._)([(0,l.G)({pointCloudClassBreaksRenderer:"point-cloud-class-breaks"})],g.prototype,"type",void 0),(0,n._)([(0,o.qq)({json:{write:!0},type:String})],g.prototype,"field",void 0),(0,n._)([(0,o.qq)({type:u.i,json:{write:!0}})],g.prototype,"legendOptions",void 0),(0,n._)([(0,o.qq)({type:d.c.fieldTransformTypeKebabDict.apiValues,json:{type:d.c.fieldTransformTypeKebabDict.jsonValues,read:d.c.fieldTransformTypeKebabDict.read,write:d.c.fieldTransformTypeKebabDict.write}})],g.prototype,"fieldTransformType",void 0),(0,n._)([(0,o.qq)({type:[m],json:{write:!0}})],g.prototype,"colorClassBreakInfos",void 0),g=f=(0,n._)([(0,a.c)("esri.renderers.PointCloudClassBreaksRenderer")],g);const v=g},96220:(e,t,r)=>{r.d(t,{c:()=>T});var i,n=r(41948),s=r(14628),o=r(40504),l=r(62088),a=r(1580),d=(r(9456),r(66360),r(12552));r(72052);let u=i=class extends o.am{constructor(){super(...arguments),this.field=null,this.minValue=0,this.maxValue=255}clone(){return new i({field:this.field,minValue:this.minValue,maxValue:this.maxValue})}};(0,n._)([(0,a.qq)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],u.prototype,"minValue",void 0),(0,n._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],u.prototype,"maxValue",void 0),u=i=(0,n._)([(0,d.c)("esri.renderers.support.pointCloud.ColorModulation")],u);const p=u,c=new s.O({pointCloudFixedSizeAlgorithm:"fixed-size",pointCloudSplatAlgorithm:"splat"});let h=class extends o.am{};(0,n._)([(0,a.qq)({type:c.apiValues,readOnly:!0,nonNullable:!0,json:{type:c.jsonValues,read:!1,write:c.write}})],h.prototype,"type",void 0),h=(0,n._)([(0,d.c)("esri.renderers.support.pointCloud.PointSizeAlgorithm")],h);const y=h;var m,f=r(9968);let g=m=class extends y{constructor(){super(...arguments),this.type="fixed-size",this.size=0,this.useRealWorldSymbolSizes=null}clone(){return new m({size:this.size,useRealWorldSymbolSizes:this.useRealWorldSymbolSizes})}};(0,n._)([(0,f.G)({pointCloudFixedSizeAlgorithm:"fixed-size"})],g.prototype,"type",void 0),(0,n._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],g.prototype,"size",void 0),(0,n._)([(0,a.qq)({type:Boolean,json:{write:!0}})],g.prototype,"useRealWorldSymbolSizes",void 0),g=m=(0,n._)([(0,d.c)("esri.renderers.support.pointCloud.PointSizeFixedSizeAlgorithm")],g);const v=g;var b;let w=b=class extends y{constructor(){super(...arguments),this.type="splat",this.scaleFactor=1}clone(){return new b({scaleFactor:this.scaleFactor})}};(0,n._)([(0,f.G)({pointCloudSplatAlgorithm:"splat"})],w.prototype,"type",void 0),(0,n._)([(0,a.qq)({type:Number,value:1,nonNullable:!0,json:{write:!0}})],w.prototype,"scaleFactor",void 0),w=b=(0,n._)([(0,d.c)("esri.renderers.support.pointCloud.PointSizeSplatAlgorithm")],w);const q={key:"type",base:y,typeMap:{"fixed-size":v,splat:w}},_=(0,s.w)()({pointCloudClassBreaksRenderer:"point-cloud-class-breaks",pointCloudRGBRenderer:"point-cloud-rgb",pointCloudStretchRenderer:"point-cloud-stretch",pointCloudUniqueValueRenderer:"point-cloud-unique-value"});let S=class extends o.am{constructor(e){super(e),this.type=void 0,this.pointSizeAlgorithm=null,this.colorModulation=null,this.pointsPerInch=10}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}cloneProperties(){return{pointSizeAlgorithm:(0,l.ct)(this.pointSizeAlgorithm),colorModulation:(0,l.ct)(this.colorModulation),pointsPerInch:(0,l.ct)(this.pointsPerInch)}}};(0,n._)([(0,a.qq)({type:_.apiValues,readOnly:!0,nonNullable:!0,json:{type:_.jsonValues,read:!1,write:_.write}})],S.prototype,"type",void 0),(0,n._)([(0,a.qq)({types:q,json:{write:!0}})],S.prototype,"pointSizeAlgorithm",void 0),(0,n._)([(0,a.qq)({type:p,json:{write:!0}})],S.prototype,"colorModulation",void 0),(0,n._)([(0,a.qq)({json:{write:!0},nonNullable:!0,type:Number})],S.prototype,"pointsPerInch",void 0),S=(0,n._)([(0,d.c)("esri.renderers.PointCloudRenderer")],S),(S||(S={})).fieldTransformTypeKebabDict=new s.O({none:"none",lowFourBit:"low-four-bit",highFourBit:"high-four-bit",absoluteValue:"absolute-value",moduloTen:"modulo-ten"});const T=S},56185:(e,t,r)=>{r.d(t,{c:()=>h});var i,n=r(41948),s=r(62088),o=r(1580),l=(r(9456),r(66360),r(9968)),a=r(12552),d=r(96220),u=r(89584),p=r(83060);let c=i=class extends d.c{constructor(e){super(e),this.type="point-cloud-stretch",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.stops=null}clone(){return new i({...this.cloneProperties(),field:(0,s.ct)(this.field),fieldTransformType:(0,s.ct)(this.fieldTransformType),stops:(0,s.ct)(this.stops),legendOptions:(0,s.ct)(this.legendOptions)})}};(0,n._)([(0,l.G)({pointCloudStretchRenderer:"point-cloud-stretch"})],c.prototype,"type",void 0),(0,n._)([(0,o.qq)({json:{write:!0},type:String})],c.prototype,"field",void 0),(0,n._)([(0,o.qq)({type:u.i,json:{write:!0}})],c.prototype,"legendOptions",void 0),(0,n._)([(0,o.qq)({type:d.c.fieldTransformTypeKebabDict.apiValues,json:{type:d.c.fieldTransformTypeKebabDict.jsonValues,read:d.c.fieldTransformTypeKebabDict.read,write:d.c.fieldTransformTypeKebabDict.write}})],c.prototype,"fieldTransformType",void 0),(0,n._)([(0,o.qq)({type:[p.c],json:{write:!0}})],c.prototype,"stops",void 0),c=i=(0,n._)([(0,a.c)("esri.renderers.PointCloudStretchRenderer")],c);const h=c},53224:(e,t,r)=>{r.d(t,{c:()=>v});var i,n=r(41948),s=r(62088),o=r(1580),l=(r(9456),r(66360),r(9968)),a=r(12552),d=r(96220),u=r(89584),p=r(44728),c=r(40504),h=r(53368);let y=i=class extends c.am{constructor(){super(...arguments),this.description=null,this.label=null,this.values=null,this.color=null}clone(){return new i({description:this.description,label:this.label,values:(0,s.ct)(this.values),color:(0,s.ct)(this.color)})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,n._)([(0,o.qq)({type:[String],json:{write:!0}})],y.prototype,"values",void 0),(0,n._)([(0,o.qq)({type:p.c,json:{type:[h.Ab],write:!0}})],y.prototype,"color",void 0),y=i=(0,n._)([(0,a.c)("esri.renderers.support.pointCloud.ColorUniqueValueInfo")],y);const m=y;var f;let g=f=class extends d.c{constructor(e){super(e),this.type="point-cloud-unique-value",this.field=null,this.fieldTransformType=null,this.colorUniqueValueInfos=null,this.legendOptions=null}clone(){return new f({...this.cloneProperties(),field:(0,s.ct)(this.field),fieldTransformType:(0,s.ct)(this.fieldTransformType),colorUniqueValueInfos:(0,s.ct)(this.colorUniqueValueInfos),legendOptions:(0,s.ct)(this.legendOptions)})}};(0,n._)([(0,l.G)({pointCloudUniqueValueRenderer:"point-cloud-unique-value"})],g.prototype,"type",void 0),(0,n._)([(0,o.qq)({json:{write:!0},type:String})],g.prototype,"field",void 0),(0,n._)([(0,o.qq)({type:d.c.fieldTransformTypeKebabDict.apiValues,json:{type:d.c.fieldTransformTypeKebabDict.jsonValues,read:d.c.fieldTransformTypeKebabDict.read,write:d.c.fieldTransformTypeKebabDict.write}})],g.prototype,"fieldTransformType",void 0),(0,n._)([(0,o.qq)({type:[m],json:{write:!0}})],g.prototype,"colorUniqueValueInfos",void 0),(0,n._)([(0,o.qq)({type:u.i,json:{write:!0}})],g.prototype,"legendOptions",void 0),g=f=(0,n._)([(0,a.c)("esri.renderers.PointCloudUniqueValueRenderer")],g);const v=g},89584:(e,t,r)=>{r.d(t,{i:()=>a});var i,n=r(41948),s=r(40504),o=r(1580),l=(r(9456),r(66360),r(72052),r(12552));let a=i=class extends s.am{constructor(){super(...arguments),this.title=null}clone(){return new i({title:this.title})}};(0,n._)([(0,o.qq)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=i=(0,n._)([(0,l.c)("esri.renderers.support.LegendOptions")],a)},83060:(e,t,r)=>{r.d(t,{c:()=>c});var i,n=r(41948),s=r(44728),o=r(40504),l=r(1580),a=r(53368),d=(r(72052),r(9456),r(12552)),u=r(18996);let p=i=class extends o.am{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,r){t[r]=e??0}clone(){return new i({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,n._)([(0,l.qq)({type:s.c,json:{type:[a.Ab],write:!0}})],p.prototype,"color",void 0),(0,n._)([(0,l.qq)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,n._)([(0,l.qq)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"value",void 0),(0,n._)([(0,u.G)("value")],p.prototype,"writeValue",null),p=i=(0,n._)([(0,d.c)("esri.renderers.visualVariables.support.ColorStop")],p);const c=p},69204:(e,t,r)=>{function i(e,t){return t?.mode?t.mode:function(e){return e?d:u}(e).mode}function n(e,t){return i(null!=e&&e.hasZ,t)}function s(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function o(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function l(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function a(e,t){t&&e.warn(".elevationInfo=",t)}r.d(t,{A$:()=>a,Ez:()=>s,W8:()=>l,ay:()=>o,m6:()=>n}),r(35764);const d={mode:"absolute-height",offset:0},u={mode:"on-the-ground",offset:null}},65548:(e,t,r)=>{r.d(t,{Ap:()=>d});var i=r(82692),n=r(564),s=r(3739),o=(r(73312),r(67300),r(18480),r(72944)),l=(r(53568),r(15024),r(63116),r(13428)),a=r(76992);function d({displayField:e,editFieldsInfo:t,fields:r,objectIdField:a,title:d},h){if(!r)return null;const m=function(e,t){const r=t?.visibleFieldNames;return function(e,t){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),e.sort(p),e}(e.fields??[],t?.ignoreFieldTypes||y).map((t=>new l.c({fieldName:t.name,isEditable:(0,n.Yn)(t,e),label:t.alias,format:c(t),visible:u(t,{...e,visibleFieldNames:r})})))}({editFieldsInfo:t,fields:r,objectIdField:a},h);if(!m.length)return null;const f=function(e){const t=(0,n.G2)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:d,fields:r,displayField:e}),g=[new o.c,new s.c];return new i.c({title:f,content:g,fieldInfos:m})}const u=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.iY)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function c(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.c({digitSeparator:!0,places:0});case"double":return new a.c({digitSeparator:!0,places:2});case"string":return(0,n.Gm)(e.name)?new a.c({digitSeparator:!0,places:0}):null;default:return null}}function h(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const y=["geometry","blob","raster","guid","xml"]}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3912,6147],{25228:(e,t,i)=>{i.d(t,{c:()=>y});var r,l=i(41948),s=i(40504),n=i(94360),o=i(1580),a=(i(9456),i(66360),i(72052),i(33600)),c=i(12552),u=i(18996),p=i(28484);let d=r=class extends s.am{static get allTime(){return h}static get empty(){return g}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,l=e.end?.getTime()??e.end;return t===r&&i===l}expandTo(e,t=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();let i=this.start;i&&(i=(0,n.aU)(i,e,t));let l=this.end;if(l){const i=(0,n.aU)(l,e,t);l=l.getTime()===i.getTime()?i:(0,n.g1)(i,1,e,t)}return new r({start:i,end:l})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,l=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let n,o;return l>=t&&l<=i?n=l:t>=l&&t<=s&&(n=t),i>=l&&i<=s?o=i:s>=t&&s<=i&&(o=s),null==n||null==o||isNaN(n)||isNaN(o)?r.empty:new r({start:n===-1/0?null:new Date(n),end:o===1/0?null:new Date(o)})}offset(e,t,i=p.OX){if(this.isEmpty||this.isAllTime)return this.clone();const l=new r,{start:s,end:o}=this;return null!=s&&(l.start=(0,n.g1)(s,e,t,i)),null!=o&&(l.end=(0,n.g1)(o,e,t,i)),l}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:i})}};(0,l._)([(0,o.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,l._)([(0,a.E)("end")],d.prototype,"readEnd",null),(0,l._)([(0,u.G)("end")],d.prototype,"writeEnd",null),(0,l._)([(0,o.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,l._)([(0,o.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,l._)([(0,o.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,l._)([(0,a.E)("start")],d.prototype,"readStart",null),(0,l._)([(0,u.G)("start")],d.prototype,"writeStart",null),d=r=(0,l._)([(0,c.c)("esri.TimeExtent")],d);const h=new d,g=new d({start:void 0,end:void 0}),y=d},8528:(e,t,i)=>{i.d(t,{c:()=>r,g:()=>l});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},48388:(e,t,i)=>{i.r(t),i.d(t,{default:()=>E});var r,l=i(41948),s=(i(60708),i(2600)),n=i(20744),o=i(14628),a=i(26496),c=i(1580),u=(i(9456),i(66360),i(72052),i(12552)),p=i(56156),d=i(95247),h=i(83372),g=i(81436),y=i(25216),w=i(26916),m=i(3116),f=i(80428),v=i(87576);const b=new(i(11712).g)("0/0/0",0,0,0,void 0);let q=r=class extends((0,y.W)((0,m.I)((0,w.G)(g.c)))){constructor(){super(...arguments),this.tileInfo=v.c.create({spatialReference:p.c.WebMercator,size:256}),this.type="base-tile",this.fullExtent=new d.c(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,p.c.WebMercator),this.spatialReference=p.c.WebMercator}getTileBounds(e,t,i,r){const l=r||(0,h.Su)();return b.level=e,b.row=t,b.col=i,b.extent=l,this.tileInfo.updateTileInfo(b),b.extent=void 0,l}fetchTile(e,t,i,r={}){const{signal:l}=r,n=this.getTileUrl(e,t,i),o={responseType:"image",signal:l,query:{...this.refreshParameters}};return(0,s.c)(n??"",o).then((e=>e.data))}async fetchImageBitmapTile(e,t,i,l={}){const{signal:n}=l;if(this.fetchTile!==r.prototype.fetchTile){const r=await this.fetchTile(e,t,i,l);return(0,f.G)(r,e,t,i,n)}const o=this.getTileUrl(e,t,i)??"",a={responseType:"blob",signal:n,query:{...this.refreshParameters}},{data:c}=await(0,s.c)(o,a);return(0,f.G)(c,e,t,i,n)}getTileUrl(){throw new n.c("basetilelayer:gettileurl-not-implemented","getTileUrl() is not implemented")}};(0,l._)([(0,c.qq)({type:v.c})],q.prototype,"tileInfo",void 0),(0,l._)([(0,c.qq)({type:["show","hide"]})],q.prototype,"listMode",void 0),(0,l._)([(0,c.qq)({readOnly:!0,value:"base-tile"})],q.prototype,"type",void 0),(0,l._)([(0,c.qq)({nonNullable:!0})],q.prototype,"fullExtent",void 0),(0,l._)([(0,c.qq)()],q.prototype,"spatialReference",void 0),q=r=(0,l._)([(0,u.c)("esri.layers.BaseTileLayer")],q);const _=q;var T=i(66576),M=i(22108),x=i(67776);const O=new o.O({BingMapsAerial:"aerial",BingMapsRoad:"road",BingMapsHybrid:"hybrid"});let S=class extends((0,y.W)((0,T.Y)((0,a.U)(_)))){constructor(e){super(e),this.type="bing-maps",this.tileInfo=new v.c({size:[256,256],dpi:96,origin:new x.c({x:-20037508.342787,y:20037508.342787,spatialReference:p.c.WebMercator}),spatialReference:p.c.WebMercator,lods:[new M.c({level:1,resolution:78271.5169639999,scale:295828763.795777}),new M.c({level:2,resolution:39135.7584820001,scale:147914381.897889}),new M.c({level:3,resolution:19567.8792409999,scale:73957190.948944}),new M.c({level:4,resolution:9783.93962049996,scale:36978595.474472}),new M.c({level:5,resolution:4891.96981024998,scale:18489297.737236}),new M.c({level:6,resolution:2445.98490512499,scale:9244648.868618}),new M.c({level:7,resolution:1222.99245256249,scale:4622324.434309}),new M.c({level:8,resolution:611.49622628138,scale:2311162.217155}),new M.c({level:9,resolution:305.748113140558,scale:1155581.108577}),new M.c({level:10,resolution:152.874056570411,scale:577790.554289}),new M.c({level:11,resolution:76.4370282850732,scale:288895.277144}),new M.c({level:12,resolution:38.2185141425366,scale:144447.638572}),new M.c({level:13,resolution:19.1092570712683,scale:72223.819286}),new M.c({level:14,resolution:9.55462853563415,scale:36111.909643}),new M.c({level:15,resolution:4.77731426794937,scale:18055.954822}),new M.c({level:16,resolution:2.38865713397468,scale:9027.977411}),new M.c({level:17,resolution:1.19432856685505,scale:4513.988705}),new M.c({level:18,resolution:.597164283559817,scale:2256.994353}),new M.c({level:19,resolution:.298582141647617,scale:1128.497176}),new M.c({level:20,resolution:.1492910708238085,scale:564.248588})]}),this.key=null,this.style="road",this.culture="en-US",this.region=null,this.portalUrl=null,this.hasAttributionData=!0}get bingMetadata(){return this._get("bingMetadata")}set bingMetadata(e){this._set("bingMetadata",e)}get copyright(){return null!=this.bingMetadata?this.bingMetadata.copyright:null}get operationalLayerType(){return O.toJSON(this.style)}get bingLogo(){return null!=this.bingMetadata?this.bingMetadata.brandLogoUri:null}load(e){return this.key?this.addResolvingPromise(this._getMetadata()):this.portalUrl?this.addResolvingPromise(this._getPortalBingKey().then((()=>this._getMetadata()))):this.addResolvingPromise(Promise.reject(new n.c("bingmapslayer:load","Bing layer must have bing key."))),Promise.resolve(this)}getTileUrl(e,t,i){if(!this.loaded||null==this.bingMetadata)return null;const r=this.bingMetadata.resourceSets[0].resources[0],l=r.imageUrlSubdomains[t%r.imageUrlSubdomains.length],s=this._getQuadKey(e,t,i);return r.imageUrl.replace("{subdomain}",l).replace("{quadkey}",s)}async fetchAttributionData(){return this.load().then((()=>null==this.bingMetadata?null:{contributors:this.bingMetadata.resourceSets[0].resources[0].imageryProviders.map((e=>({attribution:e.attribution,coverageAreas:e.coverageAreas.map((e=>({zoomMin:e.zoomMin,zoomMax:e.zoomMax,score:1,bbox:[e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]]})))})))}))}_getMetadata(){const e={road:"roadOnDemand",aerial:"aerial",hybrid:"aerialWithLabelsOnDemand"}[this.style];return(0,s.c)(`https://dev.virtualearth.net/REST/v1/Imagery/Metadata/${e}`,{responseType:"json",query:{include:"ImageryProviders",uriScheme:"https",key:this.key,suppressStatus:!0,output:"json",culture:this.culture,userRegion:this.region}}).then((e=>{const t=e.data;if(200!==t.statusCode)throw new n.c("bingmapslayer:getmetadata",t.statusDescription);if(this.bingMetadata=t,0===this.bingMetadata.resourceSets.length)throw new n.c("bingmapslayer:getmetadata","no bing resourcesets");if(0===this.bingMetadata.resourceSets[0].resources.length)throw new n.c("bingmapslayer:getmetadata","no bing resources")})).catch((e=>{throw new n.c("bingmapslayer:getmetadata",e.message)}))}_getPortalBingKey(){return(0,s.c)(this.portalUrl??"",{responseType:"json",authMode:"no-prompt",query:{f:"json"}}).then((e=>{if(!e.data.bingKey)throw new n.c("bingmapslayer:getportalbingkey","The referenced Portal does not contain a valid bing key");this.key=e.data.bingKey})).catch((e=>{throw new n.c("bingmapslayer:getportalbingkey",e.message)}))}_getQuadKey(e,t,i){let r="";for(let l=e;l>0;l--){let e=0;const s=1<<l-1;0!=(i&s)&&(e+=1),0!=(t&s)&&(e+=2),r+=e.toString()}return r}};(0,l._)([(0,c.qq)({json:{read:!1,write:!1},value:null})],S.prototype,"bingMetadata",null),(0,l._)([(0,c.qq)({json:{read:!1,write:!1},value:"bing-maps",readOnly:!0})],S.prototype,"type",void 0),(0,l._)([(0,c.qq)({type:v.c})],S.prototype,"tileInfo",void 0),(0,l._)([(0,c.qq)({type:String,readOnly:!0,json:{read:!1,write:!1}})],S.prototype,"copyright",null),(0,l._)([(0,c.qq)({type:String,json:{write:!1,read:!1}})],S.prototype,"key",void 0),(0,l._)([(0,c.qq)({type:O.apiValues,nonNullable:!0,json:{read:{source:"layerType",reader:O.read}}})],S.prototype,"style",void 0),(0,l._)([(0,c.qq)({type:["BingMapsAerial","BingMapsHybrid","BingMapsRoad"]})],S.prototype,"operationalLayerType",null),(0,l._)([(0,c.qq)({type:String,json:{write:!1,read:!1}})],S.prototype,"culture",void 0),(0,l._)([(0,c.qq)({type:String,json:{write:!1,read:!1}})],S.prototype,"region",void 0),(0,l._)([(0,c.qq)({type:String,json:{write:!0,read:!0}})],S.prototype,"portalUrl",void 0),(0,l._)([(0,c.qq)({type:Boolean,json:{write:!1,read:!1}})],S.prototype,"hasAttributionData",void 0),(0,l._)([(0,c.qq)({type:String,readOnly:!0})],S.prototype,"bingLogo",null),S=(0,l._)([(0,u.c)("esri.layers.BingMapsLayer")],S);const E=S},22108:(e,t,i)=>{i.d(t,{c:()=>u});var r,l=i(41948),s=i(40504),n=i(1580),o=i(53368),a=(i(72052),i(9456),i(12552));let c=r=class extends s.am{constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,l._)([(0,n.qq)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"cols",void 0),(0,l._)([(0,n.qq)({type:o.Ab,json:{write:!0}})],c.prototype,"level",void 0),(0,l._)([(0,n.qq)({type:String,json:{write:!0}})],c.prototype,"levelValue",void 0),(0,l._)([(0,n.qq)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"origin",void 0),(0,l._)([(0,n.qq)({type:Number,json:{write:!0}})],c.prototype,"resolution",void 0),(0,l._)([(0,n.qq)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],c.prototype,"rows",void 0),(0,l._)([(0,n.qq)({type:Number,json:{write:!0}})],c.prototype,"scale",void 0),c=r=(0,l._)([(0,a.c)("esri.layers.support.LOD")],c);const u=c},87576:(e,t,i)=>{i.d(t,{c:()=>M});var r,l=i(41948),s=i(14628),n=i(40504),o=i(24296),a=i(1580),c=i(53368),u=(i(72052),i(9456),i(33600)),p=i(12552),d=i(18996),h=i(67776),g=i(56156),y=i(83372),w=i(60544),m=i(29120),f=i(22108),v=i(11712);const b=new s.O({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let q=r=class extends n.am{static create(e={}){const{resolutionFactor:t=1,scales:i,size:l=256,spatialReference:s=g.c.WebMercator,numLODs:n=24}=e;if(!(0,w.U3)(s)){const e=[];if(i)for(let t=0;t<i.length;t++){const r=i[t];e.push(new f.c({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let i=n-1;i>=0;i--)e.unshift(new f.c({level:i,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new h.c(0,0,s),size:[l,l],spatialReference:s})}const a=(0,w.Nq)(s),c=e.origin?new h.c({x:e.origin.x,y:e.origin.y,spatialReference:s}):new h.c(a?{x:a.origin[0],y:a.origin[1],spatialReference:s}:{x:0,y:0,spatialReference:s}),u=1/(39.37*(0,o.k8)(s)*96),p=[];if(i)for(let e=0;e<i.length;e++){const t=i[e],r=t*u;p.push(new f.c({level:e,scale:t,resolution:r}))}else{let e=(0,w.Eb)(s)?512/l*591657527.5917094:256/l*591657527.591555;const i=Math.ceil(n/t);p.push(new f.c({level:0,scale:e,resolution:e*u}));for(let r=1;r<i;r++){const i=e/2**t,l=i*u;p.push(new f.c({level:r,scale:i,resolution:l})),e=i}}return new r({dpi:96,lods:p,origin:c,size:[l,l],spatialReference:s})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const i=(0,w.Nq)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return h.c.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0;const r=[],l=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach((e=>{r.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,l[e.level]=e}))),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const i=Math.floor(e),r=i+1;return t[i]/(t[i]/t[r])**(e-i)}scaleToZoom(e){const t=this.scales,i=t.length-1;let r=0;for(;r<i;r++){const i=t[r],l=t[r+1];if(i<=e)return r;if(l===e)return r+1;if(i>e&&l<e)return r+Math.log(i/e)/Math.log(i/l)}return r}snapScale(e,t=.95){const i=this.scaleToZoom(e);return i%Math.floor(i)>=t?this.zoomToScale(Math.ceil(i)):this.zoomToScale(Math.floor(i))}tileAt(e,t,i,r){const l=this.lodAt(e);if(!l)return null;let s,n;if("number"==typeof t)s=t,n=i;else if((0,w.yK)(t.spatialReference,this.spatialReference))s=t.x,n=t.y,r=i;else{const e=(0,m.yU)(t,this.spatialReference);if(null==e)return null;s=e.x,n=e.y,r=i}const o=l.resolution*this.size[0],a=l.resolution*this.size[1];return r||(r=new v.g(null,0,0,0,(0,y.Su)())),r.level=e,r.row=Math.floor((this.origin.y-n)/a+.001),r.col=Math.floor((s-this.origin.x)/o+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=r.ExtrapolateOptions.NONE){let i=this.lodAt(e.level);if(!i&&t===r.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return;const l=e.level-i.level,s=i.resolution*this.size[0]/2**l,n=i.resolution*this.size[1]/2**l;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,y.Su)()),e.extent[0]=this.origin.x+e.col*s,e.extent[1]=this.origin.y-(e.row+1)*n,e.extent[2]=e.extent[0]+s,e.extent[3]=e.extent[1]+n}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const i=this.lodAt(t.level);if(null==i)return null;const{resolution:r}=i,l=r*this.size[0],s=r*this.size[1];return e[0]=this.origin.x+t.col*l,e[1]=this.origin.y-(t.row+1)*s,e[2]=e[0]+l,e[3]=e[1]+s,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getOrCreateCompatible(e,t){if(256===this.size[0]&&256===this.size[1])return 256===e?this:null;const i=[],l=this.lods.length;for(let e=0;e<l;e++){const r=this.lods[e],l=r.resolution*t;i.push(new f.c({level:r.level,scale:r.scale,resolution:l}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){const r=e[i];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};var _,T;(0,l._)([(0,a.qq)({type:Number,json:{write:!0}})],q.prototype,"compressionQuality",void 0),(0,l._)([(0,a.qq)({type:Number,json:{write:!0}})],q.prototype,"dpi",void 0),(0,l._)([(0,a.qq)({type:String,json:{read:b.read,write:b.write,origins:{"web-scene":{read:!1,write:!1}}}})],q.prototype,"format",void 0),(0,l._)([(0,a.qq)({readOnly:!0})],q.prototype,"isWrappable",null),(0,l._)([(0,a.qq)({type:h.c,json:{write:!0}})],q.prototype,"origin",void 0),(0,l._)([(0,u.E)("origin")],q.prototype,"readOrigin",null),(0,l._)([(0,a.qq)({type:[f.c],value:null,json:{write:!0}})],q.prototype,"lods",null),(0,l._)([(0,a.qq)({readOnly:!0})],q.prototype,"scales",void 0),(0,l._)([(0,a.qq)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],q.prototype,"size",void 0),(0,l._)([(0,u.E)("size",["rows","cols"])],q.prototype,"readSize",null),(0,l._)([(0,d.G)("size",{cols:{type:c.Ab},rows:{type:c.Ab}})],q.prototype,"writeSize",null),(0,l._)([(0,a.qq)({type:g.c,json:{write:!0}})],q.prototype,"spatialReference",void 0),q=r=(0,l._)([(0,p.c)("esri.layers.support.TileInfo")],q),(T=(_=q||(q={})).ExtrapolateOptions||(_.ExtrapolateOptions={}))[T.NONE=0]="NONE",T[T.POWER_OF_TWO=1]="POWER_OF_TWO";const M=q},11712:(e,t,i)=>{i.d(t,{g:()=>r});class r{constructor(e,t,i,r,l=void 0){this.id=e,this.level=t,this.row=i,this.col=r,this.extent=l}}},80428:(e,t,i)=>{i.d(t,{E:()=>s,G:()=>n});var r=i(20744),l=i(10860);async function s(e,t,i){let s;try{s=await createImageBitmap(e)}catch(e){throw new r.c("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,l.wp)(i),s}async function n(e,t,i,s,n){let o;try{o=await createImageBitmap(e)}catch(e){throw new r.c("request:server",`Unable to load tile ${t}/${i}/${s}`,{error:e,level:t,row:i,col:s})}return(0,l.wp)(n),o}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6680],{16976:(e,t,r)=>{r.d(t,{c:()=>s});var n=r(41948),o=(r(66360),r(9456),r(72052),r(20744),r(12552)),i=r(59124);let a=class extends i.c{constructor(e){super(e)}};a=(0,n._)([(0,o.c)("esri.rest.knowledgeGraph.EntityType")],a);const s=a},57968:(e,t,r)=>{r.d(t,{c:()=>l});var n=r(41948),o=r(40504),i=r(1580),a=(r(9456),r(66360),r(72052),r(12552));let s=class extends o.am{constructor(e){super(e),this.name=null,this.unique=null,this.ascending=null,this.description=null,this.fieldNames=null}};(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],s.prototype,"name",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"unique",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"ascending",void 0),(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],s.prototype,"description",void 0),(0,n._)([(0,i.qq)({type:[String],json:{write:!0}})],s.prototype,"fieldNames",void 0),s=(0,n._)([(0,a.c)("esri.rest.knowledgeGraph.FieldIndex")],s);const l=s},59124:(e,t,r)=>{r.d(t,{c:()=>p});var n=r(41948),o=r(40504),i=r(1580),a=(r(9456),r(66360),r(72052),r(12552)),s=r(57968),l=r(83632);let d=class extends o.am{constructor(e){super(e),this.name=null,this.alias=null,this.role=null,this.strict=null,this.properties=null,this.fieldIndexes=null}};(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],d.prototype,"alias",void 0),(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],d.prototype,"role",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],d.prototype,"strict",void 0),(0,n._)([(0,i.qq)({type:[l.c],json:{write:!0}})],d.prototype,"properties",void 0),(0,n._)([(0,i.qq)({type:[s.c],json:{write:!0}})],d.prototype,"fieldIndexes",void 0),d=(0,n._)([(0,a.c)("esri.rest.knowledgeGraph.GraphObjectType")],d);const p=d},83632:(e,t,r)=>{r.d(t,{c:()=>l});var n=r(41948),o=r(40504),i=r(1580),a=(r(9456),r(66360),r(72052),r(12552));let s=class extends o.am{constructor(e){super(e),this.name=null,this.alias=null,this.fieldType=null,this.geometryType=null,this.hasM=null,this.hasZ=null,this.nullable=null,this.editable=null,this.required=null,this.defaultVisibility=null,this.systemMaintained=null,this.role=null,this.defaultValue=null}};(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],s.prototype,"name",void 0),(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],s.prototype,"alias",void 0),(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],s.prototype,"fieldType",void 0),(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],s.prototype,"geometryType",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"hasM",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"hasZ",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"nullable",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"editable",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"required",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"defaultVisibility",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"systemMaintained",void 0),(0,n._)([(0,i.qq)()],s.prototype,"role",void 0),(0,n._)([(0,i.qq)({type:Object,json:{type:String,write:{writer:(e,t)=>{t.defaultValue=null!=e?e.toString():null}}}})],s.prototype,"defaultValue",void 0),s=(0,n._)([(0,a.c)("esri.rest.knowledgeGraph.GraphProperty")],s);const l=s},64640:(e,t,r)=>{r.d(t,{c:()=>l});var n=r(41948),o=r(1580),i=(r(9456),r(66360),r(72052),r(12552)),a=r(59124);let s=class extends a.c{constructor(e){super(e),this.endPoints=[]}};(0,n._)([(0,o.qq)()],s.prototype,"endPoints",void 0),s=(0,n._)([(0,i.c)("esri.rest.knowledgeGraph.RelationshipType")],s);const l=s},76332:(e,t,r)=>{var n,o,i,a,s,l,d;r.d(t,{Kx:()=>l,Oe:()=>a,Qb:()=>s,br:()=>o,cT:()=>d,eU:()=>n,qi:()=>i}),function(e){e[e.Regular=0]="Regular",e[e.Provenance=1]="Provenance",e[e.Document=2]="Document"}(n||(n={})),function(e){e[e.esriFieldTypeSmallInteger=0]="esriFieldTypeSmallInteger",e[e.esriFieldTypeInteger=1]="esriFieldTypeInteger",e[e.esriFieldTypeSingle=2]="esriFieldTypeSingle",e[e.esriFieldTypeDouble=3]="esriFieldTypeDouble",e[e.esriFieldTypeString=4]="esriFieldTypeString",e[e.esriFieldTypeDate=5]="esriFieldTypeDate",e[e.esriFieldTypeOID=6]="esriFieldTypeOID",e[e.esriFieldTypeGeometry=7]="esriFieldTypeGeometry",e[e.esriFieldTypeBlob=8]="esriFieldTypeBlob",e[e.esriFieldTypeRaster=9]="esriFieldTypeRaster",e[e.esriFieldTypeGUID=10]="esriFieldTypeGUID",e[e.esriFieldTypeGlobalID=11]="esriFieldTypeGlobalID",e[e.esriFieldTypeXML=12]="esriFieldTypeXML",e[e.esriFieldTypeBigInteger=13]="esriFieldTypeBigInteger",e[e.esriFieldTypeDateOnly=14]="esriFieldTypeDateOnly",e[e.esriFieldTypeTimeOnly=15]="esriFieldTypeTimeOnly",e[e.esriFieldTypeTimestampOffset=16]="esriFieldTypeTimestampOffset"}(o||(o={})),function(e){e[e.esriGeometryNull=0]="esriGeometryNull",e[e.esriGeometryPoint=1]="esriGeometryPoint",e[e.esriGeometryMultipoint=2]="esriGeometryMultipoint",e[e.esriGeometryPolyline=3]="esriGeometryPolyline",e[e.esriGeometryPolygon=4]="esriGeometryPolygon",e[e.esriGeometryEnvelope=5]="esriGeometryEnvelope",e[e.esriGeometryAny=6]="esriGeometryAny",e[e.esriGeometryMultiPatch=7]="esriGeometryMultiPatch"}(i||(i={})),function(e){e[e.esriMethodHintUNSPECIFIED=0]="esriMethodHintUNSPECIFIED",e[e.esriUUIDESRI=1]="esriUUIDESRI",e[e.esriUUIDRFC4122=2]="esriUUIDRFC4122"}(a||(a={})),function(e){e[e.esriTypeUNSPECIFIED=0]="esriTypeUNSPECIFIED",e[e.esriTypeEntity=1]="esriTypeEntity",e[e.esriTypeRelationship=2]="esriTypeRelationship",e[e.esriTypeBoth=4]="esriTypeBoth"}(s||(s={})),function(e){e[e.esriGraphPropertyUNSPECIFIED=0]="esriGraphPropertyUNSPECIFIED",e[e.esriGraphPropertyRegular=1]="esriGraphPropertyRegular",e[e.esriGraphPropertyDocumentName=2]="esriGraphPropertyDocumentName",e[e.esriGraphPropertyDocumentTitle=3]="esriGraphPropertyDocumentTitle",e[e.esriGraphPropertyDocumentUrl=4]="esriGraphPropertyDocumentUrl",e[e.esriGraphPropertyDocumentText=5]="esriGraphPropertyDocumentText",e[e.esriGraphPropertyDocumentKeywords=6]="esriGraphPropertyDocumentKeywords",e[e.esriGraphPropertyDocumentContentType=7]="esriGraphPropertyDocumentContentType",e[e.esriGraphPropertyDocumentMetadata=8]="esriGraphPropertyDocumentMetadata",e[e.esriGraphPropertyDocumentFileExtension=9]="esriGraphPropertyDocumentFileExtension"}(l||(l={})),function(e){e[e.esriIdentifierInfoTypeUNSPECIFIED=0]="esriIdentifierInfoTypeUNSPECIFIED",e[e.esriIdentifierInfoTypeDatabaseNative=1]="esriIdentifierInfoTypeDatabaseNative",e[e.esriIdentifierInfoTypeUniformProperty=2]="esriIdentifierInfoTypeUniformProperty"}(d||(d={}))},1324:(e,t,r)=>{r.d(t,{gx:()=>l});var n=r(24832),o=r(9456);const i="esri/rest/knowledgeGraph/wasmInterface/";let a,s=null;async function l(){const e=s??a;if(e)return e;const t=(0,o.c)("wasm-simd");return a=d(t),a}async function d(e){if(e){const{default:e}=await r.e(7892).then(r.bind(r,77892)).then((e=>e.a));return e({locateFile:e=>(0,n.O)(i+e)})}const{default:t}=await r.e(296).then(r.bind(r,60296)).then((e=>e.a));return t({locateFile:e=>(0,n.O)(i+e)})}},6680:(e,t,r)=>{r.r(t),r.d(t,{_fetchWrapper:()=>Ge,executeApplyEdits:()=>ge,executeQuery:()=>me,executeQueryStreaming:()=>we,executeSearch:()=>Ee,executeSearchStreaming:()=>qe,fetchKnowledgeGraph:()=>Te,kgRestServices:()=>_e,refreshDataModel:()=>ve,refreshServiceDefinition:()=>Ie}),r(60708);var n=r(47620),o=r(2600),i=r(20744),a=r(66360),s=r(41948),l=r(43780),d=r(1580),p=(r(9456),r(72052),r(12552));let c=class extends l.c{constructor(e){super(e),this.resultRows=[]}};(0,s._)([(0,d.qq)()],c.prototype,"resultRows",void 0),c=(0,s._)([(0,p.c)("esri.rest.knowledgeGraph.GraphQueryResult")],c);const u=c;let y=class extends l.c{constructor(e){super(e),this.resultRowsStream=new ReadableStream}};(0,s._)([(0,d.qq)()],y.prototype,"resultRowsStream",void 0),y=(0,s._)([(0,p.c)("esri.rest.knowledgeGraph.GraphQueryResult")],y);const h=y;var f=r(40504),_=r(56156),g=r(16976),m=r(64640);let w=class extends f.am{constructor(e){super(e),this.timestamp=null,this.spatialReference=null,this.strict=null,this.objectIdField=null,this.globalIdField=null,this.arcgisManaged=null,this.identifierInfo=null,this.searchIndexes=null,this.entityTypes=null,this.relationshipTypes=null}};(0,s._)([(0,d.qq)({type:Date,json:{type:Number,write:{writer:(e,t)=>{t.timestamp=e?.getTime()}}}})],w.prototype,"timestamp",void 0),(0,s._)([(0,d.qq)({type:_.c,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,s._)([(0,d.qq)({type:Boolean,json:{write:!0}})],w.prototype,"strict",void 0),(0,s._)([(0,d.qq)({type:String,json:{write:!0}})],w.prototype,"objectIdField",void 0),(0,s._)([(0,d.qq)({type:String,json:{write:!0}})],w.prototype,"globalIdField",void 0),(0,s._)([(0,d.qq)()],w.prototype,"arcgisManaged",void 0),(0,s._)([(0,d.qq)()],w.prototype,"identifierInfo",void 0),(0,s._)([(0,d.qq)()],w.prototype,"searchIndexes",void 0),(0,s._)([(0,d.qq)({type:[g.c],json:{write:!0}})],w.prototype,"entityTypes",void 0),(0,s._)([(0,d.qq)({type:[m.c],json:{write:!0}})],w.prototype,"relationshipTypes",void 0),w=(0,s._)([(0,p.c)("esri.rest.knowledgeGraph.DataModel")],w);const E=w;let q=class extends f.am{constructor(e){super(e),this.capabilities=[],this.supportsSearch=!1,this.supportedQueryFormats=[],this.allowGeometryUpdates=!1,this.searchMaxRecordCount=null,this.serviceCapabilities=null,this.maxRecordCount=null,this.description="",this.copyrightText="",this.units="",this.spatialReference=null,this.currentVersion=null,this.dateFieldsTimeReference=null,this.serviceItemId="",this.supportsDocuments=!1,this.dataEditingNotSupported=!1,this.schemaEditingNotSupported=!1}};(0,s._)([(0,d.qq)({type:[String],json:{write:!0}})],q.prototype,"capabilities",void 0),(0,s._)([(0,d.qq)({type:Boolean,json:{write:!0}})],q.prototype,"supportsSearch",void 0),(0,s._)([(0,d.qq)({type:[String],json:{write:!0}})],q.prototype,"supportedQueryFormats",void 0),(0,s._)([(0,d.qq)({type:Boolean,json:{write:!0}})],q.prototype,"allowGeometryUpdates",void 0),(0,s._)([(0,d.qq)({type:Number,json:{write:!0}})],q.prototype,"searchMaxRecordCount",void 0),(0,s._)([(0,d.qq)({type:Object,json:{write:!0}})],q.prototype,"serviceCapabilities",void 0),(0,s._)([(0,d.qq)({type:Number,json:{write:!0}})],q.prototype,"maxRecordCount",void 0),(0,s._)([(0,d.qq)({type:String,json:{write:!0}})],q.prototype,"description",void 0),(0,s._)([(0,d.qq)({type:String,json:{write:!0}})],q.prototype,"copyrightText",void 0),(0,s._)([(0,d.qq)({type:String,json:{write:!0}})],q.prototype,"units",void 0),(0,s._)([(0,d.qq)({type:Object,json:{write:!0}})],q.prototype,"spatialReference",void 0),(0,s._)([(0,d.qq)({type:Number,json:{write:!0}})],q.prototype,"currentVersion",void 0),(0,s._)([(0,d.qq)({type:Object,json:{write:!0}})],q.prototype,"dateFieldsTimeReference",void 0),(0,s._)([(0,d.qq)({type:String,json:{write:!0}})],q.prototype,"serviceItemId",void 0),(0,s._)([(0,d.qq)({type:Boolean,json:{write:!0}})],q.prototype,"supportsDocuments",void 0),(0,s._)([(0,d.qq)({type:Boolean,json:{write:!0}})],q.prototype,"dataEditingNotSupported",void 0),(0,s._)([(0,d.qq)({type:Boolean,json:{write:!0}})],q.prototype,"schemaEditingNotSupported",void 0),q=(0,s._)([(0,p.c)("esri.rest.knowledgeGraph.ServiceDefinition")],q);const T=q;let v=class extends f.am{constructor(e){super(e),this.dataModel=null,this.serviceDefinition=null}};(0,s._)([(0,d.qq)({type:String,json:{write:!0}})],v.prototype,"url",void 0),(0,s._)([(0,d.qq)({type:E,json:{write:!0}})],v.prototype,"dataModel",void 0),(0,s._)([(0,d.qq)({type:T,json:{write:!0}})],v.prototype,"serviceDefinition",void 0),v=(0,s._)([(0,p.c)("esri.rest.knowledgeGraph.KnowledgeGraph")],v);const I=v;var G=r(1324),R=r(53004),b=r(67776),S=r(7488),x=r(48516),M=r(50853);function O(e,t){const r=new t.ArrayValue;return r.deleteLater(),e.forEach((e=>{r.add_value(j(e,t))})),r}function k(e,t){const r=new t.ObjectValue;r.deleteLater();for(const[n,o]of Object.entries(e))r.set_key_value(n,j(o,t));return r}function P(e,t){if(e instanceof R.c)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.geometry_type=r.geometry_type=t.esriGeometryType.esriGeometryMultipoint,r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];o[0]=e.points.length;let i=0;return e.points.forEach((e=>{e.forEach((e=>{n[i]=e,i++}))})),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);if(e instanceof b.c)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.geometry_type=t.esriGeometryType.esriGeometryPoint,r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];o[0]=1,n[0]=e.x,n[1]=e.y;let i=2;return e.hasZ&&(n[i]=e.z,i++),e.hasM&&(n[i]=e.m,i++),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);if(e instanceof x.c||e instanceof S.c)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];let i=[];e instanceof x.c?(r.geometry_type=t.esriGeometryType.esriGeometryPolyline,i=e.paths):e instanceof S.c&&(r.geometry_type=t.esriGeometryType.esriGeometryPolygon,i=e.rings);let a=0,s=0;return i.forEach((e=>{let t=0;e.forEach((e=>{t++,e.forEach((e=>{n[s]=e,s++}))})),o[a]=t,a++})),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);throw new i.c("knowledge-graph:unsupported-geometry","Only Point, Multipoint, Polyline, and Polygon geometry are supported by ArcGIS Knowledge",{geometry:e})}function j(e,t){if(null==e)return"";if("object"!=typeof e)return e;if(e instanceof Date)return e;if(e instanceof M.c)return P(e,t);if(Array.isArray(e)){const r=new t.ArrayValue;return r.deleteLater(),e.forEach((e=>{r.add_value(j(e,t))})),r}return k(e,t)}var F=r(8808),D=r(88812);function N(e,t){if(!e.typeName)throw new i.c("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits");if(e instanceof F.c){const r=new t.EntityValue;r.deleteLater(),r.type_name=e.typeName;for(const[n,o]of Object.entries(e.properties))r.set_key_value(n,A(o,t));return e.id&&r.set_id(e.id),r}if(e instanceof D.c){const r=new t.RelationshipValue;r.deleteLater(),r.type_name=e.typeName;for(const[n,o]of Object.entries(e.properties))r.set_key_value(n,A(o,t));return e.id&&r.set_id(e.id),e.originId&&e.destinationId&&r.set_related_entity_ids(e.originId,e.destinationId),r}throw new i.c("knowledge-graph:applyEdits-encoding-failure","Could not determine the type of a named graph object passed to the encoder")}function A(e,t){return null==e?"":"object"!=typeof e||e instanceof Date?e:e instanceof M.c?P(e,t):""}var z=r(57968),C=(r(59124),r(83632));let L=class extends l.c{constructor(e){super(e),this.name=null,this.supportedCategory=null,this.analyzers=[],this.searchProperties=new Map}};(0,s._)([(0,d.qq)()],L.prototype,"name",void 0),(0,s._)([(0,d.qq)()],L.prototype,"supportedCategory",void 0),(0,s._)([(0,d.qq)()],L.prototype,"analyzers",void 0),(0,s._)([(0,d.qq)()],L.prototype,"searchProperties",void 0),L=(0,s._)([(0,p.c)("esri.rest.knowledgeGraph.SearchIndex")],L);const U=L;var Y=r(76332);function Q(e){return e.deleteLater(),new g.c(V(e))}function B(e){return e.deleteLater(),new z.c({name:e.name,unique:e.unique,ascending:e.ascending,description:e.description,fieldNames:Z(e.fields)})}function V(e){return{name:e.name,alias:e.alias,role:Y.eU[e.role.value]?Y.eU[e.role.value]:null,strict:e.strict,properties:$(e.properties),fieldIndexes:J(e.field_indexes)}}function W(e){return e.deleteLater(),new C.c({alias:e.alias,name:e.name,fieldType:Y.br[e.field_type.value]?Y.br[e.field_type.value]:null,geometryType:Y.qi[e.geometry_type.value]?Y.qi[e.geometry_type.value]:null,hasM:e.has_m,hasZ:e.has_z,nullable:e.nullable,editable:e.editable,required:e.required,defaultVisibility:e.default_visibility,systemMaintained:e.system_maintained,role:Y.Kx[e.role.value],defaultValue:e.default_value})}function H(e){e.deleteLater();const t=V(e),r=[];for(let t=0;t<e.end_points.size();t++){const n=e.end_points.get(t);r.push({originEntityType:n.origin_entity_type,destinationEntityType:n.dest_entity_type})}return e.end_points.delete(),new m.c(Object.assign({endPoints:r},t))}function K(e){const t=[];for(let r=0;r<e.size();r++)t.push(Q(e.get(r)));return e.delete(),t}function Z(e){const t=[];for(let r=0;r<e.size();r++)t.push(e.get(r));return e.delete(),t}function $(e){const t=[];for(let r=0;r<e.size();r++)t.push(W(e.get(r)));return e.delete(),t}function J(e){const t=[];for(let r=0;r<e.size();r++)t.push(B(e.get(r)));return e.delete(),t}function X(e){const t=[];for(let r=0;r<e.size();r++)t.push(H(e.get(r)));return e.delete(),t}function ee(e){const t=[];for(let r=0;r<e.size();r++){const r=new U,n=e.get(0);r.name=n.name,r.supportedCategory=Y.Qb[n.supported_category.value];const o=n.analyzers.size();for(let e=0;e<o;e++)r.analyzers.push({name:n.analyzers.get(e).name});n.analyzers.delete();for(let e=0;e<n.search_properties.keys().size();e++){const t=n.search_properties.keys().get(e),o=n.search_properties.get(t),i=[];for(let e=0;e<o.property_names.size();e++)i.push(o.property_names.get(e));r.searchProperties.set(t,{propertyNames:i})}t.push(r)}return e.delete(),t}r(14080);var te,re,ne,oe=r(59940),ie=r(87987);function ae(e,t){const r={spatialReference:t},n=se(e,r),o=e.lengths,a=e.coords;let s="";if(e.geometry_type.value===te.ESRI_GEOMETRY_POLYGON)s="rings";else{if(e.geometry_type.value!==te.ESRI_GEOMETRY_POLYLINE)throw new i.c("KnowledgeGraph:illegal-geometry-type","Illegal Geometry type for multipath conversion");s="paths"}r[s]=[];let l=0;return o.forEach((e=>{const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e[t]=a[l],l++;t.push(e)}r[s].push(t)})),r}function se(e,t){let r=2;return e.has_z?(t.hasZ=e.has_z,r++):t.hasZ=!1,e.has_m?(t.hasM=e.has_m,r++):t.hasM=!1,r}!function(e){e[e.ESRI_GEOMETRY_NULL=0]="ESRI_GEOMETRY_NULL",e[e.ESRI_GEOMETRY_POINT=1]="ESRI_GEOMETRY_POINT",e[e.ESRI_GEOMETRY_MULTIPOINT=2]="ESRI_GEOMETRY_MULTIPOINT",e[e.ESRI_GEOMETRY_POLYLINE=3]="ESRI_GEOMETRY_POLYLINE",e[e.ESRI_GEOMETRY_POLYGON=4]="ESRI_GEOMETRY_POLYGON",e[e.ESRI_GEOMETRY_ENVELOPE=5]="ESRI_GEOMETRY_ENVELOPE",e[e.ESRI_GEOMETRY_ANY=6]="ESRI_GEOMETRY_ANY",e[e.ESRI_GEOMETRY_MULTI_PATCH=7]="ESRI_GEOMETRY_MULTI_PATCH"}(te||(te={})),function(e){e[e.OBJECT=0]="OBJECT",e[e.ENTITY=1]="ENTITY",e[e.RELATIONSHIP=2]="RELATIONSHIP",e[e.PATH=3]="PATH",e[e.ARRAY=4]="ARRAY"}(re||(re={})),function(e){e[e.view=0]="view",e[e.edit=1]="edit"}(ne||(ne={}));const le=()=>a.c.getLogger("esri.rest.knowledgeGraph.WasmToQueryResponseObjConstructors"),de={decodedWasmObjToQueryResponseObj:(e,t,r)=>{if(null==e)return null;if("object"!=typeof e)return e;if("getDate"in e)return e;if("geometry_type"in e)switch(e.geometry_type.value){case null:return null;case te.ESRI_GEOMETRY_POINT:return function(e,t){const r={spatialReference:t};let n=2;se(e,r);const o=e.coords;return r.x=o[0],r.y=o[1],e.has_z&&(r.z=o[n],n++),e.has_m&&(r.m=o[n]),new b.c(r)}(e,r);case te.ESRI_GEOMETRY_MULTIPOINT:return function(e,t){const r={spatialReference:t},n=se(e,r),o=e.lengths,i=e.coords,a=o[0];r.points=[];let s=0;for(let e=0;e<a;e++){const e=[];for(let t=0;t<n;t++)e[t]=i[s],s++;r.points.push(e)}return new R.c(r)}(e,r);case te.ESRI_GEOMETRY_POLYLINE:return function(e,t){return new x.c(ae(e,t))}(e,r);case te.ESRI_GEOMETRY_POLYGON:return function(e,t){return new S.c(ae(e,t))}(e,r);case te.ESRI_GEOMETRY_ENVELOPE:case te.ESRI_GEOMETRY_MULTI_PATCH:return le().warnOnce("Envelope and Multipatch are not supported on knowledge entities, but one of those geometry types was detected. Result interpreted as null"),null;case te.ESRI_GEOMETRY_NULL:case te.ESRI_GEOMETRY_ANY:default:return le().warnOnce("Unknown or blank geometry type returned - Result interpreted as null"),null}else{if(!("object_value_type"in e))return le().warnOnce("A decoded value came back of a type that is not supported. Result interpreted as null"),null;switch(e.object_value_type.value){case re.OBJECT:return function(e,t,r){return new oe.c(ue(e,t,r))}(e,t,r);case re.ENTITY:return ce(e,t,r);case re.RELATIONSHIP:return ye(e,t,r);case re.PATH:return function(e,t,r){const n=e.entity_count(),o=e.relationship_count(),i=[];for(let a=0;a<n;a++)i.push(ce(e.get_entity_at(a),t,r)),a<o&&i.push(ye(e.get_relationship_at(a),t,r));return new ie.c({path:i})}(e,t,r);case re.ARRAY:return function(e,t,r){const n=[],o=e.count();for(let i=0;i<o;i++){const o=e.get_value_at(i);n.push(pe(o,t,r))}return n}(e,t,r);default:return le().warnOnce("Unknown graph object type detected! Result interpreted as null"),null}}}};function pe(e,t,r){return de.decodedWasmObjToQueryResponseObj(e,t,r)}function ce(e,t,r){const n=e.type_name,o=ue(e,t,r),i=e.get_id();return new F.c(Object.assign({typeName:n,id:i},o))}function ue(e,t,r){const n={},o=e.key_count();for(let i=0;i<o;i++)n[e.get_key_at(i)]=pe(e.get_value_at(i),t,r);return{properties:n}}function ye(e,t,r){const n=e.type_name,o=ue(e,t,r);return new D.c(Object.assign({typeName:n,id:e.get_id(),originId:e.get_origin_entity_id(),destinationId:e.get_destination_entity_id()},o))}let he=class extends l.c{constructor(e){super(e),this.hasError=null,this.error=null,this.editResults=[]}};(0,s._)([(0,d.qq)()],he.prototype,"hasError",void 0),(0,s._)([(0,d.qq)()],he.prototype,"error",void 0),(0,s._)([(0,d.qq)()],he.prototype,"editResults",void 0),he=(0,s._)([(0,p.c)("esri.rest.knowledgeGraph.GraphApplyEdits")],he);const fe=he,_e={fetchKnowledgeGraph:async e=>{const t=new I({url:e}),r=[];return r.push(ve(t)),r.push(Ie(t)),await Promise.all(r),t},refreshDataModel:async e=>{e.dataModel=await ke(e)},refreshServiceDefinition:async e=>{const t=(await(0,o.c)(e.url,{query:{f:"json"}})).data;return t.capabilities=t?.capabilities?.split(","),t.supportedQueryFormats=t?.supportedQueryFormats?.split(","),e.serviceDefinition=new T(t),e.serviceDefinition},executeQueryStreaming:async(e,t,r)=>{const n=`${e.url}/graph/query`;await Re(e);const o=await xe(n,r);o.data.body=await async function(e,t){const r=await(0,G.gx)(),n=new r.GraphQueryRequestEncoder;if(n.deleteLater(),e.outputSpatialReference?n.output_spatial_reference={wkid:e.outputSpatialReference.wkid,latestWkid:e.outputSpatialReference.latestWkid,vcsWkid:e.outputSpatialReference.vcsWkid,latestVcsWkid:e.outputSpatialReference.latestVcsWkid,wkt:e.outputSpatialReference.wkt??""}:n.output_spatial_reference=r.SpatialReferenceUtil.WGS84(),n.open_cypher_query=e.openCypherQuery,e.bindParameters)for(const[t,o]of Object.entries(e.bindParameters))Se(t,o,n,r);if(e.bindGeometryQuantizationParameters)!function(e,t){t.input_quantization_parameters={xy_resolution:e.xyResolution,x_false_origin:e.xFalseOrigin,y_false_origin:e.yFalseOrigin,z_resolution:e.zResolution,z_false_origin:e.zFalseOrigin,m_resolution:e.mResolution,m_false_origin:e.mFalseOrigin}}(e.bindGeometryQuantizationParameters,n);else{if(t.dataModel||await ve(t),4326!==t.dataModel?.spatialReference?.wkid)throw new i.c("knowledge-graph:SR-quantization-mismatch","If the DataModel indicates a coordinate system other than WGS84, inputQuantizationParameters must be provided to the query encoder");n.input_quantization_parameters=r.InputQuantizationUtil.WGS84_lossless()}e.outputQuantizationParameters&&function(e,t,r){if(!e.extent)throw new i.c("knowledge-graph:illegal-output-quantization","The Output quantization provided to the encoder had an illegal value as part of its extent",e.extent);if(!e.quantizeMode)throw new i.c("knowledge-graph:illegal-output-quantization","The Output quantization contained an illegal mode setting",e.quantizeMode);if(!e.tolerance)throw new i.c("knowledge-graph:illegal-output-quantization","The Output quantization contained an illegal tolerance setting",e.quantizeMode);t.output_quantization_parameters={extent:{xmax:e.extent.xmax,ymax:e.extent.ymax,xmin:e.extent.xmin,ymin:e.extent.ymin},quantize_mode:r.esriQuantizeMode[e.quantizeMode],tolerance:e.tolerance}}(e.outputQuantizationParameters,n,r);try{n.encode()}catch(e){throw new i.c("knowledge-graph:query-encoding-failed","Attempting to encode the query failed",{error:e})}const o=n.get_encoding_result();if(0!==o.error.error_code)throw new i.c("knowledge-graph:query-encoding-failed","Attempting to encode the query failed",{errorCode:o.error.error_code,errorMessage:o.error.error_message});return structuredClone(o.get_byte_buffer())}(t,e);const a=await Ge(o.data.url,o.data);if(e.dataModel)return new h({resultRowsStream:await Oe(a,e.dataModel,t.outputSpatialReference??void 0)});throw new i.c("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")},executeApplyEdits:async(e,t,r)=>{if(e.serviceDefinition?.dataEditingNotSupported)throw new i.c("knowledge-graph:data-editing-not-supported","The Knowledge Graph Service definition indicated that data editing is not supported");const n=`${e.url}/graph/applyEdits`;await Re(e);const o=await xe(n,r);return o.data.body=await async function(e,t){if(t.dataModel||await ve(t),!t.dataModel)throw new i.c("knowledge-graph:data-model-undefined","Encoding could not proceed because a data model was not provided and it could not be determined from the service");const r=await(0,G.gx)(),n=!!e.options?.cascadeDelete,o=new r.GraphApplyEditsEncoder(r.SpatialReferenceUtil.WGS84(),e.options?.inputQuantizationParameters?function(e){return{xy_resolution:e.xyResolution,x_false_origin:e.xFalseOrigin,y_false_origin:e.yFalseOrigin,z_resolution:e.zResolution,z_false_origin:e.zFalseOrigin,m_resolution:e.mResolution,m_false_origin:e.mFalseOrigin}}(e.options?.inputQuantizationParameters):r.InputQuantizationUtil.WGS84_lossless());o.deleteLater(),o.cascade_delete=n;try{let t;e.entityAdds?.forEach((e=>{t=o.add_entity(N(e,r)),be(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - an entity failed to be added to the encoder")})),e.relationshipAdds?.forEach((e=>{if(!e.originId||!e.destinationId)throw new i.c("knowledge-graph:relationship-origin-destination-missing","When adding a new relationship, you must provide both an origin and destination id on the appropriate class property");t=o.add_relationship(N(e,r)),be(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - a relationship failed to be added to the encoder")})),e.entityUpdates?.forEach((e=>{if(!e.id)throw new i.c("knowledge-graph:entity-id-missing","When updating an entity or relationship, you must specify the id on the class level property");t=o.update_entity(N(e,r)),be(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - an entity failed to be added to the encoder")})),e.relationshipUpdates?.forEach((e=>{if(!e.id)throw new i.c("knowledge-graph:relationship-id-missing","When updating an entity or relationship, you must specify the id on the class level property");t=o.update_relationship(N(e,r)),be(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - a relationship failed to be added to the encoder")})),e.entityDeletes?.forEach((e=>{if(!e.typeName)throw new i.c("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits - delete");const t=o.make_delete_helper(e.typeName,!0);t.deleteLater(),e.ids?.forEach((e=>{t.delete_by_id(e)}))})),e.relationshipDeletes?.forEach((e=>{if(!e.typeName)throw new i.c("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits - delete");const t=o.make_delete_helper(e.typeName,!1);e.ids?.forEach((e=>{t.delete_by_id(e)}))})),o.encode()}catch(e){throw new i.c("knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits failed",{error:e})}const a=o.get_encoding_result();return be(a.error,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits failed"),structuredClone(a.get_byte_buffer())}(t,e),async function(e){const t=e.headers.get("content-type");if(t?.includes("application/x-protobuf")){const t=await e.arrayBuffer(),r=new((await(0,G.gx)()).GraphApplyEditsDecoder);return r.deleteLater(),r.decode(new Uint8Array(t)),function(e){const t=new fe;t.hasError=e.has_error(),t.hasError&&(t.error={errorCode:e.error.error_code,errorMessage:e.error.error_message});const r=e.get_edit_results_count();for(let n=0;n<r;n++){const r=e.get_edit_results_at(n),o=e.get_edit_results_type_name_at(n),i=[],a=[],s=[],l=r.get_add_results_count(),d=r.get_update_results_count(),p=r.get_delete_results_count();for(let e=0;e<l;e++){const t=r.get_add_result_at(e);i.push({id:t.id,error:{errorCode:t.error.error_code,errorMessage:t.error.error_message}})}for(let e=0;e<d;e++){const t=r.get_update_result_at(e);a.push({id:t.id,error:{errorCode:t.error.error_code,errorMessage:t.error.error_message}})}for(let e=0;e<p;e++){const t=r.get_delete_result_at(e);s.push({id:t.id,error:{errorCode:t.error.error_code,errorMessage:t.error.error_message}})}t.editResults.push({typeName:o,adds:i,updates:a,deletes:s})}return t}(r)}throw new i.c("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:t,data:e.text()})}(await Ge(o.data.url,o.data))},executeQuery:async(e,t,r)=>{const n=`${e.url}/graph/query`,a=await(0,o.c)(n,{responseType:"array-buffer",query:{f:"pbf",openCypherQuery:t.openCypherQuery,...r?.query},signal:r?.signal,timeout:r?.timeout}),s=a.getHeader?.("content-type"),l=a.data;if(s?.includes("application/x-protobuf")){const t=new((await(0,G.gx)()).GraphQueryDecoder);if(t.deleteLater(),e.dataModel)return new u({resultRows:Me(t,l,e.dataModel)});throw new i.c("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")}throw new i.c("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:s,data:a.data})},executeSearch:async(e,t,r)=>{const n=t.typeCategoryFilter,a=`${e.url}/graph/search`,s=await(0,o.c)(a,{responseType:"array-buffer",query:{f:"pbf",searchQuery:`"${t.searchQuery}"`,typeCategoryFilter:n,...r?.query},signal:r?.signal,timeout:r?.timeout}),l=s.getHeader?.("content-type"),d=s.data;if(l?.includes("application/x-protobuf")){const t=new((await(0,G.gx)()).GraphQueryDecoder);if(t.deleteLater(),e.dataModel)return new u({resultRows:Me(t,d,e.dataModel)});throw new i.c("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")}throw new i.c("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:l,data:s.data})},executeSearchStreaming:async(e,t,r)=>{const n=`${e.url}/graph/search`;await Re(e);const o=await xe(n,r);o.data.body=await async function(e){const t=await(0,G.gx)(),r=new t.GraphSearchRequestEncoder;if(r.deleteLater(),r.search_query=e.searchQuery,r.type_category_filter=t.esriNamedTypeCategory[e.typeCategoryFilter],!0===e.returnSearchContext&&(r.return_search_context=e.returnSearchContext),null!=e.start&&e.start>0&&(r.start_index=e.start),null!=e.num&&(r.max_num_results=e.num),null!=e.idsFilter&&Array.isArray(e.idsFilter)&&e.idsFilter.length>0)try{r.set_ids_filter(O(e.idsFilter,t))}catch(e){throw new i.c("knowledge-graph:ids-format-error","Attempting to set ids filter failed. This is usually caused by an incorrectly formatted UUID string",{error:e})}e.namedTypesFilter?.forEach((e=>{r.add_named_type_filter(e)}));try{r.encode()}catch(e){throw new i.c("knowledge-graph:search-encoding-failed","Attempting to encode the search failed",{error:e})}const n=r.get_encoding_result();if(0!==n.error.error_code)throw new i.c("knowledge-graph:search-encoding-failed","Attempting to get encoding result from the query failed",{errorCode:n.error.error_code,errorMessage:n.error.error_message});return structuredClone(n.get_byte_buffer())}(t);const a=await Ge(o.data.url,o.data);if(e.dataModel)return new h({resultRowsStream:await Oe(a,e.dataModel)});throw new i.c("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")},_fetchWrapper:async(e,t)=>fetch(e,t)};async function ge(e,t,r){return _e.executeApplyEdits(e,t,r)}async function me(e,t,r){return _e.executeQuery(e,t,r)}async function we(e,t,r){return _e.executeQueryStreaming(e,t,r)}async function Ee(e,t,r){return _e.executeSearch(e,t,r)}async function qe(e,t,r){return _e.executeSearchStreaming(e,t,r)}async function Te(e){return _e.fetchKnowledgeGraph(e)}async function ve(e){return _e.refreshDataModel(e)}async function Ie(e){return _e.refreshServiceDefinition(e)}async function Ge(e,t){return _e._fetchWrapper(e,t)}async function Re(e){const t=n.id?.findCredential(e.url);t||(e.dataModel?await ke(e):await ve(e))}function be(e,t,r){if(0!==e.error_code)throw new i.c(t,r,{errorCode:e.error_code,errorMessage:e.error_message})}function Se(e,t,r,n){null==t?r.set_param_key_value(e,""):"object"!=typeof t||t instanceof Date?r.set_param_key_value(e,t):t instanceof M.c?r.set_param_key_value(e,P(t,n)):t instanceof Array?r.set_param_key_value(e,O(t,n)):r.set_param_key_value(e,k(t,n))}async function xe(e,t){return(0,o.c)(e,{responseType:"native-request-init",method:"post",query:{f:"pbf",...t?.query},body:"x",headers:{"Content-Type":"application/octet-stream"},signal:t?.signal,timeout:t?.timeout})}function Me(e,t,r,n=new _.c({wkid:_.c.WGS84.wkid})){e.push_buffer(new Uint8Array(t));const o=[];let a=0;for(;e.next_row();){a||(a=e.get_header_keys().size());const t=new Array(a);for(let o=0;o<a;o++){const i=e.get_value(o);t[o]=pe(i,r,n)}o.push(t)}if(e.has_error())throw new i.c("knowledge-graph:stream-decoding-error","One or more result rows were not successfully decoded",{errorCode:e.error.error_code,errorMessage:e.error.error_message});return o}async function Oe(e,t,r){const n=e.headers.get("content-type");if(e.headers.get("content-length")&&a.c.getLogger("esri.rest.knowledgeGraph.knowledgeGraphService").warnOnce("Found `Content-Length` header when expecting a streaming HTTP response! Please investigate whether all intermediate HTTP proxies and/or load balancers are configured such that they don't forcefully buffer the entire response before returning it to the client. A valid HTTP streaming response should use Chunked Transfer Encoding and not have a Content Length defined."),n?.includes("application/x-protobuf")){const n=e.body?.getReader(),o=new((await(0,G.gx)()).GraphQueryDecoder);return o.deleteLater(),new ReadableStream({async start(e){try{return function a(){return n?.read().then((({done:s,value:l})=>{if(s){let t;if(o.has_error()&&(t=new i.c("knowledge-graph:stream-decoding-error","One or more result rows were not successfully decoded",{errorCode:o.error.error_code,errorMessage:o.error.error_message})),n.releaseLock(),t)throw e.error(t),t;return void e.close()}const d=Me(o,l,t,r);return d.length>0&&e.enqueue(d),a()}))}()}catch(t){n?.releaseLock(),e.error(new i.c("knowledge-graph:stream-decoding-error","The server returned a valid response, but there was an error decoding the response stream",{error:t})),e.close()}}})}throw new i.c("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:n,data:e.text()})}async function ke(e){const t=`${e.url}/dataModel/queryDataModel`,r=await(0,o.c)(t,{responseType:"array-buffer",query:{f:"pbf"}}),n=r.getHeader?.("content-type"),a=r.data;if(n?.includes("application/x-protobuf")){const e=(await(0,G.gx)()).decode_data_model_from_protocol_buffer(new Uint8Array(a));if(!e)throw new i.c("knowledge-graph:data-model-decode-failure","The server responded to the data model query, but the response failed to be decoded. This typically occurs when the Knowledge JS API (4.26 or later) is used with an unsupported backend (11.0 or earlier)");return function(e){return e.deleteLater(),new E({timestamp:e.timestamp,spatialReference:new _.c(e.spatial_reference),strict:e.strict,objectIdField:e.objectid_property,globalIdField:e.globalid_property,arcgisManaged:e.arcgis_managed,identifierInfo:{identifierMappingInfo:{identifierInfoType:Y.cT[e.identifier_info?.identifier_mapping_info?.identifier_info_type?.value],databaseNativeIdentifier:e.identifier_info?.identifier_mapping_info?.database_native_identifier,uniformPropertyIdentifier:{identifierPropertyName:e.identifier_info?.identifier_mapping_info?.uniform_property_identifier?.identifier_property_name}},identifierGenerationInfo:{uuidMethodHint:Y.Oe[e.identifier_info?.identifier_generation_info?.uuid_method_hint?.value]}},searchIndexes:ee(e.search_indexes),entityTypes:K(e.entity_types),relationshipTypes:X(e.relationship_types)})}(e)}throw new i.c("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:n,data:r.data})}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6680],{16976:(e,t,r)=>{r.d(t,{c:()=>s});var n=r(41948),o=(r(66360),r(9456),r(72052),r(20744),r(12552)),i=r(59124);let a=class extends i.c{constructor(e){super(e)}};a=(0,n._)([(0,o.c)("esri.rest.knowledgeGraph.EntityType")],a);const s=a},57968:(e,t,r)=>{r.d(t,{c:()=>l});var n=r(41948),o=r(40504),i=r(1580),a=(r(9456),r(66360),r(72052),r(12552));let s=class extends o.am{constructor(e){super(e),this.name=null,this.unique=null,this.ascending=null,this.description=null,this.fieldNames=null}};(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],s.prototype,"name",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"unique",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"ascending",void 0),(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],s.prototype,"description",void 0),(0,n._)([(0,i.qq)({type:[String],json:{write:!0}})],s.prototype,"fieldNames",void 0),s=(0,n._)([(0,a.c)("esri.rest.knowledgeGraph.FieldIndex")],s);const l=s},59124:(e,t,r)=>{r.d(t,{c:()=>p});var n=r(41948),o=r(40504),i=r(1580),a=(r(9456),r(66360),r(72052),r(12552)),s=r(57968),l=r(83632);let d=class extends o.am{constructor(e){super(e),this.name=null,this.alias=null,this.role=null,this.strict=null,this.properties=null,this.fieldIndexes=null}};(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],d.prototype,"alias",void 0),(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],d.prototype,"role",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],d.prototype,"strict",void 0),(0,n._)([(0,i.qq)({type:[l.c],json:{write:!0}})],d.prototype,"properties",void 0),(0,n._)([(0,i.qq)({type:[s.c],json:{write:!0}})],d.prototype,"fieldIndexes",void 0),d=(0,n._)([(0,a.c)("esri.rest.knowledgeGraph.GraphObjectType")],d);const p=d},83632:(e,t,r)=>{r.d(t,{c:()=>l});var n=r(41948),o=r(40504),i=r(1580),a=(r(9456),r(66360),r(72052),r(12552));let s=class extends o.am{constructor(e){super(e),this.name=null,this.alias=null,this.fieldType=null,this.geometryType=null,this.hasM=null,this.hasZ=null,this.nullable=null,this.editable=null,this.required=null,this.defaultVisibility=null,this.systemMaintained=null,this.role=null,this.defaultValue=null}};(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],s.prototype,"name",void 0),(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],s.prototype,"alias",void 0),(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],s.prototype,"fieldType",void 0),(0,n._)([(0,i.qq)({type:String,json:{write:!0}})],s.prototype,"geometryType",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"hasM",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"hasZ",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"nullable",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"editable",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"required",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"defaultVisibility",void 0),(0,n._)([(0,i.qq)({type:Boolean,json:{write:!0}})],s.prototype,"systemMaintained",void 0),(0,n._)([(0,i.qq)()],s.prototype,"role",void 0),(0,n._)([(0,i.qq)({type:Object,json:{type:String,write:{writer:(e,t)=>{t.defaultValue=null!=e?e.toString():null}}}})],s.prototype,"defaultValue",void 0),s=(0,n._)([(0,a.c)("esri.rest.knowledgeGraph.GraphProperty")],s);const l=s},64640:(e,t,r)=>{r.d(t,{c:()=>l});var n=r(41948),o=r(1580),i=(r(9456),r(66360),r(72052),r(12552)),a=r(59124);let s=class extends a.c{constructor(e){super(e),this.endPoints=[]}};(0,n._)([(0,o.qq)()],s.prototype,"endPoints",void 0),s=(0,n._)([(0,i.c)("esri.rest.knowledgeGraph.RelationshipType")],s);const l=s},76332:(e,t,r)=>{var n,o,i,a,s,l,d;r.d(t,{Kx:()=>l,Oe:()=>a,Qb:()=>s,br:()=>o,cT:()=>d,eU:()=>n,qi:()=>i}),function(e){e[e.Regular=0]="Regular",e[e.Provenance=1]="Provenance",e[e.Document=2]="Document"}(n||(n={})),function(e){e[e.esriFieldTypeSmallInteger=0]="esriFieldTypeSmallInteger",e[e.esriFieldTypeInteger=1]="esriFieldTypeInteger",e[e.esriFieldTypeSingle=2]="esriFieldTypeSingle",e[e.esriFieldTypeDouble=3]="esriFieldTypeDouble",e[e.esriFieldTypeString=4]="esriFieldTypeString",e[e.esriFieldTypeDate=5]="esriFieldTypeDate",e[e.esriFieldTypeOID=6]="esriFieldTypeOID",e[e.esriFieldTypeGeometry=7]="esriFieldTypeGeometry",e[e.esriFieldTypeBlob=8]="esriFieldTypeBlob",e[e.esriFieldTypeRaster=9]="esriFieldTypeRaster",e[e.esriFieldTypeGUID=10]="esriFieldTypeGUID",e[e.esriFieldTypeGlobalID=11]="esriFieldTypeGlobalID",e[e.esriFieldTypeXML=12]="esriFieldTypeXML",e[e.esriFieldTypeBigInteger=13]="esriFieldTypeBigInteger",e[e.esriFieldTypeDateOnly=14]="esriFieldTypeDateOnly",e[e.esriFieldTypeTimeOnly=15]="esriFieldTypeTimeOnly",e[e.esriFieldTypeTimestampOffset=16]="esriFieldTypeTimestampOffset"}(o||(o={})),function(e){e[e.esriGeometryNull=0]="esriGeometryNull",e[e.esriGeometryPoint=1]="esriGeometryPoint",e[e.esriGeometryMultipoint=2]="esriGeometryMultipoint",e[e.esriGeometryPolyline=3]="esriGeometryPolyline",e[e.esriGeometryPolygon=4]="esriGeometryPolygon",e[e.esriGeometryEnvelope=5]="esriGeometryEnvelope",e[e.esriGeometryAny=6]="esriGeometryAny",e[e.esriGeometryMultiPatch=7]="esriGeometryMultiPatch"}(i||(i={})),function(e){e[e.esriMethodHintUNSPECIFIED=0]="esriMethodHintUNSPECIFIED",e[e.esriUUIDESRI=1]="esriUUIDESRI",e[e.esriUUIDRFC4122=2]="esriUUIDRFC4122"}(a||(a={})),function(e){e[e.esriTypeUNSPECIFIED=0]="esriTypeUNSPECIFIED",e[e.esriTypeEntity=1]="esriTypeEntity",e[e.esriTypeRelationship=2]="esriTypeRelationship",e[e.esriTypeBoth=4]="esriTypeBoth"}(s||(s={})),function(e){e[e.esriGraphPropertyUNSPECIFIED=0]="esriGraphPropertyUNSPECIFIED",e[e.esriGraphPropertyRegular=1]="esriGraphPropertyRegular",e[e.esriGraphPropertyDocumentName=2]="esriGraphPropertyDocumentName",e[e.esriGraphPropertyDocumentTitle=3]="esriGraphPropertyDocumentTitle",e[e.esriGraphPropertyDocumentUrl=4]="esriGraphPropertyDocumentUrl",e[e.esriGraphPropertyDocumentText=5]="esriGraphPropertyDocumentText",e[e.esriGraphPropertyDocumentKeywords=6]="esriGraphPropertyDocumentKeywords",e[e.esriGraphPropertyDocumentContentType=7]="esriGraphPropertyDocumentContentType",e[e.esriGraphPropertyDocumentMetadata=8]="esriGraphPropertyDocumentMetadata",e[e.esriGraphPropertyDocumentFileExtension=9]="esriGraphPropertyDocumentFileExtension"}(l||(l={})),function(e){e[e.esriIdentifierInfoTypeUNSPECIFIED=0]="esriIdentifierInfoTypeUNSPECIFIED",e[e.esriIdentifierInfoTypeDatabaseNative=1]="esriIdentifierInfoTypeDatabaseNative",e[e.esriIdentifierInfoTypeUniformProperty=2]="esriIdentifierInfoTypeUniformProperty"}(d||(d={}))},1324:(e,t,r)=>{r.d(t,{gx:()=>l});var n=r(24832),o=r(9456);const i="esri/rest/knowledgeGraph/wasmInterface/";let a,s=null;async function l(){const e=s??a;if(e)return e;const t=(0,o.c)("wasm-simd");return a=d(t),a}async function d(e){if(e){const{default:e}=await r.e(7892).then(r.bind(r,77892)).then((e=>e.a));return e({locateFile:e=>(0,n.O)(i+e)})}const{default:t}=await r.e(296).then(r.bind(r,60296)).then((e=>e.a));return t({locateFile:e=>(0,n.O)(i+e)})}},6680:(e,t,r)=>{r.r(t),r.d(t,{_fetchWrapper:()=>Ge,executeApplyEdits:()=>ge,executeQuery:()=>me,executeQueryStreaming:()=>we,executeSearch:()=>Ee,executeSearchStreaming:()=>qe,fetchKnowledgeGraph:()=>Te,kgRestServices:()=>_e,refreshDataModel:()=>ve,refreshServiceDefinition:()=>Ie}),r(60708);var n=r(47620),o=r(2600),i=r(20744),a=r(66360),s=r(41948),l=r(43780),d=r(1580),p=(r(9456),r(72052),r(12552));let c=class extends l.c{constructor(e){super(e),this.resultRows=[]}};(0,s._)([(0,d.qq)()],c.prototype,"resultRows",void 0),c=(0,s._)([(0,p.c)("esri.rest.knowledgeGraph.GraphQueryResult")],c);const u=c;let y=class extends l.c{constructor(e){super(e),this.resultRowsStream=new ReadableStream}};(0,s._)([(0,d.qq)()],y.prototype,"resultRowsStream",void 0),y=(0,s._)([(0,p.c)("esri.rest.knowledgeGraph.GraphQueryResult")],y);const h=y;var f=r(40504),_=r(56156),g=r(16976),m=r(64640);let w=class extends f.am{constructor(e){super(e),this.timestamp=null,this.spatialReference=null,this.strict=null,this.objectIdField=null,this.globalIdField=null,this.arcgisManaged=null,this.identifierInfo=null,this.searchIndexes=null,this.entityTypes=null,this.relationshipTypes=null}};(0,s._)([(0,d.qq)({type:Date,json:{type:Number,write:{writer:(e,t)=>{t.timestamp=e?.getTime()}}}})],w.prototype,"timestamp",void 0),(0,s._)([(0,d.qq)({type:_.c,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,s._)([(0,d.qq)({type:Boolean,json:{write:!0}})],w.prototype,"strict",void 0),(0,s._)([(0,d.qq)({type:String,json:{write:!0}})],w.prototype,"objectIdField",void 0),(0,s._)([(0,d.qq)({type:String,json:{write:!0}})],w.prototype,"globalIdField",void 0),(0,s._)([(0,d.qq)()],w.prototype,"arcgisManaged",void 0),(0,s._)([(0,d.qq)()],w.prototype,"identifierInfo",void 0),(0,s._)([(0,d.qq)()],w.prototype,"searchIndexes",void 0),(0,s._)([(0,d.qq)({type:[g.c],json:{write:!0}})],w.prototype,"entityTypes",void 0),(0,s._)([(0,d.qq)({type:[m.c],json:{write:!0}})],w.prototype,"relationshipTypes",void 0),w=(0,s._)([(0,p.c)("esri.rest.knowledgeGraph.DataModel")],w);const E=w;let q=class extends f.am{constructor(e){super(e),this.capabilities=[],this.supportsSearch=!1,this.supportedQueryFormats=[],this.allowGeometryUpdates=!1,this.searchMaxRecordCount=null,this.serviceCapabilities=null,this.maxRecordCount=null,this.description="",this.copyrightText="",this.units="",this.spatialReference=null,this.currentVersion=null,this.dateFieldsTimeReference=null,this.serviceItemId="",this.supportsDocuments=!1,this.dataEditingNotSupported=!1,this.schemaEditingNotSupported=!1}};(0,s._)([(0,d.qq)({type:[String],json:{write:!0}})],q.prototype,"capabilities",void 0),(0,s._)([(0,d.qq)({type:Boolean,json:{write:!0}})],q.prototype,"supportsSearch",void 0),(0,s._)([(0,d.qq)({type:[String],json:{write:!0}})],q.prototype,"supportedQueryFormats",void 0),(0,s._)([(0,d.qq)({type:Boolean,json:{write:!0}})],q.prototype,"allowGeometryUpdates",void 0),(0,s._)([(0,d.qq)({type:Number,json:{write:!0}})],q.prototype,"searchMaxRecordCount",void 0),(0,s._)([(0,d.qq)({type:Object,json:{write:!0}})],q.prototype,"serviceCapabilities",void 0),(0,s._)([(0,d.qq)({type:Number,json:{write:!0}})],q.prototype,"maxRecordCount",void 0),(0,s._)([(0,d.qq)({type:String,json:{write:!0}})],q.prototype,"description",void 0),(0,s._)([(0,d.qq)({type:String,json:{write:!0}})],q.prototype,"copyrightText",void 0),(0,s._)([(0,d.qq)({type:String,json:{write:!0}})],q.prototype,"units",void 0),(0,s._)([(0,d.qq)({type:Object,json:{write:!0}})],q.prototype,"spatialReference",void 0),(0,s._)([(0,d.qq)({type:Number,json:{write:!0}})],q.prototype,"currentVersion",void 0),(0,s._)([(0,d.qq)({type:Object,json:{write:!0}})],q.prototype,"dateFieldsTimeReference",void 0),(0,s._)([(0,d.qq)({type:String,json:{write:!0}})],q.prototype,"serviceItemId",void 0),(0,s._)([(0,d.qq)({type:Boolean,json:{write:!0}})],q.prototype,"supportsDocuments",void 0),(0,s._)([(0,d.qq)({type:Boolean,json:{write:!0}})],q.prototype,"dataEditingNotSupported",void 0),(0,s._)([(0,d.qq)({type:Boolean,json:{write:!0}})],q.prototype,"schemaEditingNotSupported",void 0),q=(0,s._)([(0,p.c)("esri.rest.knowledgeGraph.ServiceDefinition")],q);const T=q;let v=class extends f.am{constructor(e){super(e),this.dataModel=null,this.serviceDefinition=null}};(0,s._)([(0,d.qq)({type:String,json:{write:!0}})],v.prototype,"url",void 0),(0,s._)([(0,d.qq)({type:E,json:{write:!0}})],v.prototype,"dataModel",void 0),(0,s._)([(0,d.qq)({type:T,json:{write:!0}})],v.prototype,"serviceDefinition",void 0),v=(0,s._)([(0,p.c)("esri.rest.knowledgeGraph.KnowledgeGraph")],v);const I=v;var G=r(1324),R=r(53004),b=r(67776),S=r(7488),x=r(48516),M=r(50853);function O(e,t){const r=new t.ArrayValue;return r.deleteLater(),e.forEach((e=>{r.add_value(j(e,t))})),r}function k(e,t){const r=new t.ObjectValue;r.deleteLater();for(const[n,o]of Object.entries(e))r.set_key_value(n,j(o,t));return r}function P(e,t){if(e instanceof R.c)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.geometry_type=r.geometry_type=t.esriGeometryType.esriGeometryMultipoint,r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];o[0]=e.points.length;let i=0;return e.points.forEach((e=>{e.forEach((e=>{n[i]=e,i++}))})),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);if(e instanceof b.c)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.geometry_type=t.esriGeometryType.esriGeometryPoint,r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];o[0]=1,n[0]=e.x,n[1]=e.y;let i=2;return e.hasZ&&(n[i]=e.z,i++),e.hasM&&(n[i]=e.m,i++),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);if(e instanceof x.c||e instanceof S.c)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];let i=[];e instanceof x.c?(r.geometry_type=t.esriGeometryType.esriGeometryPolyline,i=e.paths):e instanceof S.c&&(r.geometry_type=t.esriGeometryType.esriGeometryPolygon,i=e.rings);let a=0,s=0;return i.forEach((e=>{let t=0;e.forEach((e=>{t++,e.forEach((e=>{n[s]=e,s++}))})),o[a]=t,a++})),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);throw new i.c("knowledge-graph:unsupported-geometry","Only Point, Multipoint, Polyline, and Polygon geometry are supported by ArcGIS Knowledge",{geometry:e})}function j(e,t){if(null==e)return"";if("object"!=typeof e)return e;if(e instanceof Date)return e;if(e instanceof M.c)return P(e,t);if(Array.isArray(e)){const r=new t.ArrayValue;return r.deleteLater(),e.forEach((e=>{r.add_value(j(e,t))})),r}return k(e,t)}var F=r(8808),D=r(88812);function N(e,t){if(!e.typeName)throw new i.c("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits");if(e instanceof F.c){const r=new t.EntityValue;r.deleteLater(),r.type_name=e.typeName;for(const[n,o]of Object.entries(e.properties))r.set_key_value(n,A(o,t));return e.id&&r.set_id(e.id),r}if(e instanceof D.c){const r=new t.RelationshipValue;r.deleteLater(),r.type_name=e.typeName;for(const[n,o]of Object.entries(e.properties))r.set_key_value(n,A(o,t));return e.id&&r.set_id(e.id),e.originId&&e.destinationId&&r.set_related_entity_ids(e.originId,e.destinationId),r}throw new i.c("knowledge-graph:applyEdits-encoding-failure","Could not determine the type of a named graph object passed to the encoder")}function A(e,t){return null==e?"":"object"!=typeof e||e instanceof Date?e:e instanceof M.c?P(e,t):""}var z=r(57968),C=(r(59124),r(83632));let L=class extends l.c{constructor(e){super(e),this.name=null,this.supportedCategory=null,this.analyzers=[],this.searchProperties=new Map}};(0,s._)([(0,d.qq)()],L.prototype,"name",void 0),(0,s._)([(0,d.qq)()],L.prototype,"supportedCategory",void 0),(0,s._)([(0,d.qq)()],L.prototype,"analyzers",void 0),(0,s._)([(0,d.qq)()],L.prototype,"searchProperties",void 0),L=(0,s._)([(0,p.c)("esri.rest.knowledgeGraph.SearchIndex")],L);const U=L;var Y=r(76332);function Q(e){return e.deleteLater(),new g.c(V(e))}function B(e){return e.deleteLater(),new z.c({name:e.name,unique:e.unique,ascending:e.ascending,description:e.description,fieldNames:Z(e.fields)})}function V(e){return{name:e.name,alias:e.alias,role:Y.eU[e.role.value]?Y.eU[e.role.value]:null,strict:e.strict,properties:$(e.properties),fieldIndexes:J(e.field_indexes)}}function W(e){return e.deleteLater(),new C.c({alias:e.alias,name:e.name,fieldType:Y.br[e.field_type.value]?Y.br[e.field_type.value]:null,geometryType:Y.qi[e.geometry_type.value]?Y.qi[e.geometry_type.value]:null,hasM:e.has_m,hasZ:e.has_z,nullable:e.nullable,editable:e.editable,required:e.required,defaultVisibility:e.default_visibility,systemMaintained:e.system_maintained,role:Y.Kx[e.role.value],defaultValue:e.default_value})}function H(e){e.deleteLater();const t=V(e),r=[];for(let t=0;t<e.end_points.size();t++){const n=e.end_points.get(t);r.push({originEntityType:n.origin_entity_type,destinationEntityType:n.dest_entity_type})}return e.end_points.delete(),new m.c(Object.assign({endPoints:r},t))}function K(e){const t=[];for(let r=0;r<e.size();r++)t.push(Q(e.get(r)));return e.delete(),t}function Z(e){const t=[];for(let r=0;r<e.size();r++)t.push(e.get(r));return e.delete(),t}function $(e){const t=[];for(let r=0;r<e.size();r++)t.push(W(e.get(r)));return e.delete(),t}function J(e){const t=[];for(let r=0;r<e.size();r++)t.push(B(e.get(r)));return e.delete(),t}function X(e){const t=[];for(let r=0;r<e.size();r++)t.push(H(e.get(r)));return e.delete(),t}function ee(e){const t=[];for(let r=0;r<e.size();r++){const r=new U,n=e.get(0);r.name=n.name,r.supportedCategory=Y.Qb[n.supported_category.value];const o=n.analyzers.size();for(let e=0;e<o;e++)r.analyzers.push({name:n.analyzers.get(e).name});n.analyzers.delete();for(let e=0;e<n.search_properties.keys().size();e++){const t=n.search_properties.keys().get(e),o=n.search_properties.get(t),i=[];for(let e=0;e<o.property_names.size();e++)i.push(o.property_names.get(e));r.searchProperties.set(t,{propertyNames:i})}t.push(r)}return e.delete(),t}r(14080);var te,re,ne,oe=r(59940),ie=r(87987);function ae(e,t){const r={spatialReference:t},n=se(e,r),o=e.lengths,a=e.coords;let s="";if(e.geometry_type.value===te.ESRI_GEOMETRY_POLYGON)s="rings";else{if(e.geometry_type.value!==te.ESRI_GEOMETRY_POLYLINE)throw new i.c("KnowledgeGraph:illegal-geometry-type","Illegal Geometry type for multipath conversion");s="paths"}r[s]=[];let l=0;return o.forEach((e=>{const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e[t]=a[l],l++;t.push(e)}r[s].push(t)})),r}function se(e,t){let r=2;return e.has_z?(t.hasZ=e.has_z,r++):t.hasZ=!1,e.has_m?(t.hasM=e.has_m,r++):t.hasM=!1,r}!function(e){e[e.ESRI_GEOMETRY_NULL=0]="ESRI_GEOMETRY_NULL",e[e.ESRI_GEOMETRY_POINT=1]="ESRI_GEOMETRY_POINT",e[e.ESRI_GEOMETRY_MULTIPOINT=2]="ESRI_GEOMETRY_MULTIPOINT",e[e.ESRI_GEOMETRY_POLYLINE=3]="ESRI_GEOMETRY_POLYLINE",e[e.ESRI_GEOMETRY_POLYGON=4]="ESRI_GEOMETRY_POLYGON",e[e.ESRI_GEOMETRY_ENVELOPE=5]="ESRI_GEOMETRY_ENVELOPE",e[e.ESRI_GEOMETRY_ANY=6]="ESRI_GEOMETRY_ANY",e[e.ESRI_GEOMETRY_MULTI_PATCH=7]="ESRI_GEOMETRY_MULTI_PATCH"}(te||(te={})),function(e){e[e.OBJECT=0]="OBJECT",e[e.ENTITY=1]="ENTITY",e[e.RELATIONSHIP=2]="RELATIONSHIP",e[e.PATH=3]="PATH",e[e.ARRAY=4]="ARRAY"}(re||(re={})),function(e){e[e.view=0]="view",e[e.edit=1]="edit"}(ne||(ne={}));const le=()=>a.c.getLogger("esri.rest.knowledgeGraph.WasmToQueryResponseObjConstructors"),de={decodedWasmObjToQueryResponseObj:(e,t,r)=>{if(null==e)return null;if("object"!=typeof e)return e;if("getDate"in e)return e;if("geometry_type"in e)switch(e.geometry_type.value){case null:return null;case te.ESRI_GEOMETRY_POINT:return function(e,t){const r={spatialReference:t};let n=2;se(e,r);const o=e.coords;return r.x=o[0],r.y=o[1],e.has_z&&(r.z=o[n],n++),e.has_m&&(r.m=o[n]),new b.c(r)}(e,r);case te.ESRI_GEOMETRY_MULTIPOINT:return function(e,t){const r={spatialReference:t},n=se(e,r),o=e.lengths,i=e.coords,a=o[0];r.points=[];let s=0;for(let e=0;e<a;e++){const e=[];for(let t=0;t<n;t++)e[t]=i[s],s++;r.points.push(e)}return new R.c(r)}(e,r);case te.ESRI_GEOMETRY_POLYLINE:return function(e,t){return new x.c(ae(e,t))}(e,r);case te.ESRI_GEOMETRY_POLYGON:return function(e,t){return new S.c(ae(e,t))}(e,r);case te.ESRI_GEOMETRY_ENVELOPE:case te.ESRI_GEOMETRY_MULTI_PATCH:return le().warnOnce("Envelope and Multipatch are not supported on knowledge entities, but one of those geometry types was detected. Result interpreted as null"),null;case te.ESRI_GEOMETRY_NULL:case te.ESRI_GEOMETRY_ANY:default:return le().warnOnce("Unknown or blank geometry type returned - Result interpreted as null"),null}else{if(!("object_value_type"in e))return le().warnOnce("A decoded value came back of a type that is not supported. Result interpreted as null"),null;switch(e.object_value_type.value){case re.OBJECT:return function(e,t,r){return new oe.c(ue(e,t,r))}(e,t,r);case re.ENTITY:return ce(e,t,r);case re.RELATIONSHIP:return ye(e,t,r);case re.PATH:return function(e,t,r){const n=e.entity_count(),o=e.relationship_count(),i=[];for(let a=0;a<n;a++)i.push(ce(e.get_entity_at(a),t,r)),a<o&&i.push(ye(e.get_relationship_at(a),t,r));return new ie.c({path:i})}(e,t,r);case re.ARRAY:return function(e,t,r){const n=[],o=e.count();for(let i=0;i<o;i++){const o=e.get_value_at(i);n.push(pe(o,t,r))}return n}(e,t,r);default:return le().warnOnce("Unknown graph object type detected! Result interpreted as null"),null}}}};function pe(e,t,r){return de.decodedWasmObjToQueryResponseObj(e,t,r)}function ce(e,t,r){const n=e.type_name,o=ue(e,t,r),i=e.get_id();return new F.c(Object.assign({typeName:n,id:i},o))}function ue(e,t,r){const n={},o=e.key_count();for(let i=0;i<o;i++)n[e.get_key_at(i)]=pe(e.get_value_at(i),t,r);return{properties:n}}function ye(e,t,r){const n=e.type_name,o=ue(e,t,r);return new D.c(Object.assign({typeName:n,id:e.get_id(),originId:e.get_origin_entity_id(),destinationId:e.get_destination_entity_id()},o))}let he=class extends l.c{constructor(e){super(e),this.hasError=null,this.error=null,this.editResults=[]}};(0,s._)([(0,d.qq)()],he.prototype,"hasError",void 0),(0,s._)([(0,d.qq)()],he.prototype,"error",void 0),(0,s._)([(0,d.qq)()],he.prototype,"editResults",void 0),he=(0,s._)([(0,p.c)("esri.rest.knowledgeGraph.GraphApplyEdits")],he);const fe=he,_e={fetchKnowledgeGraph:async e=>{const t=new I({url:e}),r=[];return r.push(ve(t)),r.push(Ie(t)),await Promise.all(r),t},refreshDataModel:async e=>{e.dataModel=await ke(e)},refreshServiceDefinition:async e=>{const t=(await(0,o.c)(e.url,{query:{f:"json"}})).data;return t.capabilities=t?.capabilities?.split(","),t.supportedQueryFormats=t?.supportedQueryFormats?.split(","),e.serviceDefinition=new T(t),e.serviceDefinition},executeQueryStreaming:async(e,t,r)=>{const n=`${e.url}/graph/query`;await Re(e);const o=await xe(n,r);o.data.body=await async function(e,t){const r=await(0,G.gx)(),n=new r.GraphQueryRequestEncoder;if(n.deleteLater(),e.outputSpatialReference?n.output_spatial_reference={wkid:e.outputSpatialReference.wkid,latestWkid:e.outputSpatialReference.latestWkid,vcsWkid:e.outputSpatialReference.vcsWkid,latestVcsWkid:e.outputSpatialReference.latestVcsWkid,wkt:e.outputSpatialReference.wkt??""}:n.output_spatial_reference=r.SpatialReferenceUtil.WGS84(),n.open_cypher_query=e.openCypherQuery,e.bindParameters)for(const[t,o]of Object.entries(e.bindParameters))Se(t,o,n,r);if(e.bindGeometryQuantizationParameters)!function(e,t){t.input_quantization_parameters={xy_resolution:e.xyResolution,x_false_origin:e.xFalseOrigin,y_false_origin:e.yFalseOrigin,z_resolution:e.zResolution,z_false_origin:e.zFalseOrigin,m_resolution:e.mResolution,m_false_origin:e.mFalseOrigin}}(e.bindGeometryQuantizationParameters,n);else{if(t.dataModel||await ve(t),4326!==t.dataModel?.spatialReference?.wkid)throw new i.c("knowledge-graph:SR-quantization-mismatch","If the DataModel indicates a coordinate system other than WGS84, inputQuantizationParameters must be provided to the query encoder");n.input_quantization_parameters=r.InputQuantizationUtil.WGS84_lossless()}e.outputQuantizationParameters&&function(e,t,r){if(!e.extent)throw new i.c("knowledge-graph:illegal-output-quantization","The Output quantization provided to the encoder had an illegal value as part of its extent",e.extent);if(!e.quantizeMode)throw new i.c("knowledge-graph:illegal-output-quantization","The Output quantization contained an illegal mode setting",e.quantizeMode);if(!e.tolerance)throw new i.c("knowledge-graph:illegal-output-quantization","The Output quantization contained an illegal tolerance setting",e.quantizeMode);t.output_quantization_parameters={extent:{xmax:e.extent.xmax,ymax:e.extent.ymax,xmin:e.extent.xmin,ymin:e.extent.ymin},quantize_mode:r.esriQuantizeMode[e.quantizeMode],tolerance:e.tolerance}}(e.outputQuantizationParameters,n,r);try{n.encode()}catch(e){throw new i.c("knowledge-graph:query-encoding-failed","Attempting to encode the query failed",{error:e})}const o=n.get_encoding_result();if(0!==o.error.error_code)throw new i.c("knowledge-graph:query-encoding-failed","Attempting to encode the query failed",{errorCode:o.error.error_code,errorMessage:o.error.error_message});return structuredClone(o.get_byte_buffer())}(t,e);const a=await Ge(o.data.url,o.data);if(e.dataModel)return new h({resultRowsStream:await Oe(a,e.dataModel,t.outputSpatialReference??void 0)});throw new i.c("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")},executeApplyEdits:async(e,t,r)=>{if(e.serviceDefinition?.dataEditingNotSupported)throw new i.c("knowledge-graph:data-editing-not-supported","The Knowledge Graph Service definition indicated that data editing is not supported");const n=`${e.url}/graph/applyEdits`;await Re(e);const o=await xe(n,r);return o.data.body=await async function(e,t){if(t.dataModel||await ve(t),!t.dataModel)throw new i.c("knowledge-graph:data-model-undefined","Encoding could not proceed because a data model was not provided and it could not be determined from the service");const r=await(0,G.gx)(),n=!!e.options?.cascadeDelete,o=new r.GraphApplyEditsEncoder(r.SpatialReferenceUtil.WGS84(),e.options?.inputQuantizationParameters?function(e){return{xy_resolution:e.xyResolution,x_false_origin:e.xFalseOrigin,y_false_origin:e.yFalseOrigin,z_resolution:e.zResolution,z_false_origin:e.zFalseOrigin,m_resolution:e.mResolution,m_false_origin:e.mFalseOrigin}}(e.options?.inputQuantizationParameters):r.InputQuantizationUtil.WGS84_lossless());o.deleteLater(),o.cascade_delete=n;try{let t;e.entityAdds?.forEach((e=>{t=o.add_entity(N(e,r)),be(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - an entity failed to be added to the encoder")})),e.relationshipAdds?.forEach((e=>{if(!e.originId||!e.destinationId)throw new i.c("knowledge-graph:relationship-origin-destination-missing","When adding a new relationship, you must provide both an origin and destination id on the appropriate class property");t=o.add_relationship(N(e,r)),be(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - a relationship failed to be added to the encoder")})),e.entityUpdates?.forEach((e=>{if(!e.id)throw new i.c("knowledge-graph:entity-id-missing","When updating an entity or relationship, you must specify the id on the class level property");t=o.update_entity(N(e,r)),be(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - an entity failed to be added to the encoder")})),e.relationshipUpdates?.forEach((e=>{if(!e.id)throw new i.c("knowledge-graph:relationship-id-missing","When updating an entity or relationship, you must specify the id on the class level property");t=o.update_relationship(N(e,r)),be(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - a relationship failed to be added to the encoder")})),e.entityDeletes?.forEach((e=>{if(!e.typeName)throw new i.c("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits - delete");const t=o.make_delete_helper(e.typeName,!0);t.deleteLater(),e.ids?.forEach((e=>{t.delete_by_id(e)}))})),e.relationshipDeletes?.forEach((e=>{if(!e.typeName)throw new i.c("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits - delete");const t=o.make_delete_helper(e.typeName,!1);e.ids?.forEach((e=>{t.delete_by_id(e)}))})),o.encode()}catch(e){throw new i.c("knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits failed",{error:e})}const a=o.get_encoding_result();return be(a.error,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits failed"),structuredClone(a.get_byte_buffer())}(t,e),async function(e){const t=e.headers.get("content-type");if(t?.includes("application/x-protobuf")){const t=await e.arrayBuffer(),r=new((await(0,G.gx)()).GraphApplyEditsDecoder);return r.deleteLater(),r.decode(new Uint8Array(t)),function(e){const t=e.has_error(),r=new fe({hasError:t,error:t?{errorCode:e.error.error_code,errorMessage:e.error.error_message}:null}),n=e.get_edit_results_count();for(let t=0;t<n;t++){const n=e.get_edit_results_at(t),o=e.get_edit_results_type_name_at(t),i=[],a=[],s=[],l=n.get_add_results_count(),d=n.get_update_results_count(),p=n.get_delete_results_count();for(let e=0;e<l;e++){const t=n.get_add_result_at(e);i.push({id:t.id,error:{errorCode:t.error.error_code,errorMessage:t.error.error_message}})}for(let e=0;e<d;e++){const t=n.get_update_result_at(e);a.push({id:t.id,error:{errorCode:t.error.error_code,errorMessage:t.error.error_message}})}for(let e=0;e<p;e++){const t=n.get_delete_result_at(e);s.push({id:t.id,error:{errorCode:t.error.error_code,errorMessage:t.error.error_message}})}r.editResults.push({typeName:o,adds:i,updates:a,deletes:s})}return r}(r)}throw new i.c("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:t,data:e.text()})}(await Ge(o.data.url,o.data))},executeQuery:async(e,t,r)=>{const n=`${e.url}/graph/query`,a=await(0,o.c)(n,{responseType:"array-buffer",query:{f:"pbf",openCypherQuery:t.openCypherQuery,...r?.query},signal:r?.signal,timeout:r?.timeout}),s=a.getHeader?.("content-type"),l=a.data;if(s?.includes("application/x-protobuf")){const t=new((await(0,G.gx)()).GraphQueryDecoder);if(t.deleteLater(),e.dataModel)return new u({resultRows:Me(t,l,e.dataModel)});throw new i.c("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")}throw new i.c("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:s,data:a.data})},executeSearch:async(e,t,r)=>{const n=t.typeCategoryFilter,a=`${e.url}/graph/search`,s=await(0,o.c)(a,{responseType:"array-buffer",query:{f:"pbf",searchQuery:`"${t.searchQuery}"`,typeCategoryFilter:n,...r?.query},signal:r?.signal,timeout:r?.timeout}),l=s.getHeader?.("content-type"),d=s.data;if(l?.includes("application/x-protobuf")){const t=new((await(0,G.gx)()).GraphQueryDecoder);if(t.deleteLater(),e.dataModel)return new u({resultRows:Me(t,d,e.dataModel)});throw new i.c("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")}throw new i.c("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:l,data:s.data})},executeSearchStreaming:async(e,t,r)=>{const n=`${e.url}/graph/search`;await Re(e);const o=await xe(n,r);o.data.body=await async function(e){const t=await(0,G.gx)(),r=new t.GraphSearchRequestEncoder;if(r.deleteLater(),r.search_query=e.searchQuery,r.type_category_filter=t.esriNamedTypeCategory[e.typeCategoryFilter],!0===e.returnSearchContext&&(r.return_search_context=e.returnSearchContext),null!=e.start&&e.start>0&&(r.start_index=e.start),null!=e.num&&(r.max_num_results=e.num),null!=e.idsFilter&&Array.isArray(e.idsFilter)&&e.idsFilter.length>0)try{r.set_ids_filter(O(e.idsFilter,t))}catch(e){throw new i.c("knowledge-graph:ids-format-error","Attempting to set ids filter failed. This is usually caused by an incorrectly formatted UUID string",{error:e})}e.namedTypesFilter?.forEach((e=>{r.add_named_type_filter(e)}));try{r.encode()}catch(e){throw new i.c("knowledge-graph:search-encoding-failed","Attempting to encode the search failed",{error:e})}const n=r.get_encoding_result();if(0!==n.error.error_code)throw new i.c("knowledge-graph:search-encoding-failed","Attempting to get encoding result from the query failed",{errorCode:n.error.error_code,errorMessage:n.error.error_message});return structuredClone(n.get_byte_buffer())}(t);const a=await Ge(o.data.url,o.data);if(e.dataModel)return new h({resultRowsStream:await Oe(a,e.dataModel)});throw new i.c("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")},_fetchWrapper:async(e,t)=>fetch(e,t)};async function ge(e,t,r){return _e.executeApplyEdits(e,t,r)}async function me(e,t,r){return _e.executeQuery(e,t,r)}async function we(e,t,r){return _e.executeQueryStreaming(e,t,r)}async function Ee(e,t,r){return _e.executeSearch(e,t,r)}async function qe(e,t,r){return _e.executeSearchStreaming(e,t,r)}async function Te(e){return _e.fetchKnowledgeGraph(e)}async function ve(e){return _e.refreshDataModel(e)}async function Ie(e){return _e.refreshServiceDefinition(e)}async function Ge(e,t){return _e._fetchWrapper(e,t)}async function Re(e){const t=n.id?.findCredential(e.url);t||(e.dataModel?await ke(e):await ve(e))}function be(e,t,r){if(0!==e.error_code)throw new i.c(t,r,{errorCode:e.error_code,errorMessage:e.error_message})}function Se(e,t,r,n){null==t?r.set_param_key_value(e,""):"object"!=typeof t||t instanceof Date?r.set_param_key_value(e,t):t instanceof M.c?r.set_param_key_value(e,P(t,n)):t instanceof Array?r.set_param_key_value(e,O(t,n)):r.set_param_key_value(e,k(t,n))}async function xe(e,t){return(0,o.c)(e,{responseType:"native-request-init",method:"post",query:{f:"pbf",...t?.query},body:"x",headers:{"Content-Type":"application/octet-stream"},signal:t?.signal,timeout:t?.timeout})}function Me(e,t,r,n=new _.c({wkid:_.c.WGS84.wkid})){e.push_buffer(new Uint8Array(t));const o=[];let a=0;for(;e.next_row();){a||(a=e.get_header_keys().size());const t=new Array(a);for(let o=0;o<a;o++){const i=e.get_value(o);t[o]=pe(i,r,n)}o.push(t)}if(e.has_error())throw new i.c("knowledge-graph:stream-decoding-error","One or more result rows were not successfully decoded",{errorCode:e.error.error_code,errorMessage:e.error.error_message});return o}async function Oe(e,t,r){const n=e.headers.get("content-type");if(e.headers.get("content-length")&&a.c.getLogger("esri.rest.knowledgeGraph.knowledgeGraphService").warnOnce("Found `Content-Length` header when expecting a streaming HTTP response! Please investigate whether all intermediate HTTP proxies and/or load balancers are configured such that they don't forcefully buffer the entire response before returning it to the client. A valid HTTP streaming response should use Chunked Transfer Encoding and not have a Content Length defined."),n?.includes("application/x-protobuf")){const n=e.body?.getReader(),o=new((await(0,G.gx)()).GraphQueryDecoder);return o.deleteLater(),new ReadableStream({async start(e){try{return function a(){return n?.read().then((({done:s,value:l})=>{if(s){let t;if(o.has_error()&&(t=new i.c("knowledge-graph:stream-decoding-error","One or more result rows were not successfully decoded",{errorCode:o.error.error_code,errorMessage:o.error.error_message})),n.releaseLock(),t)throw e.error(t),t;return void e.close()}const d=Me(o,l,t,r);return d.length>0&&e.enqueue(d),a()}))}()}catch(t){n?.releaseLock(),e.error(new i.c("knowledge-graph:stream-decoding-error","The server returned a valid response, but there was an error decoding the response stream",{error:t})),e.close()}}})}throw new i.c("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:n,data:e.text()})}async function ke(e){const t=`${e.url}/dataModel/queryDataModel`,r=await(0,o.c)(t,{responseType:"array-buffer",query:{f:"pbf"}}),n=r.getHeader?.("content-type"),a=r.data;if(n?.includes("application/x-protobuf")){const e=(await(0,G.gx)()).decode_data_model_from_protocol_buffer(new Uint8Array(a));if(!e)throw new i.c("knowledge-graph:data-model-decode-failure","The server responded to the data model query, but the response failed to be decoded. This typically occurs when the Knowledge JS API (4.26 or later) is used with an unsupported backend (11.0 or earlier)");return function(e){return e.deleteLater(),new E({timestamp:e.timestamp,spatialReference:new _.c(e.spatial_reference),strict:e.strict,objectIdField:e.objectid_property,globalIdField:e.globalid_property,arcgisManaged:e.arcgis_managed,identifierInfo:{identifierMappingInfo:{identifierInfoType:Y.cT[e.identifier_info?.identifier_mapping_info?.identifier_info_type?.value],databaseNativeIdentifier:e.identifier_info?.identifier_mapping_info?.database_native_identifier,uniformPropertyIdentifier:{identifierPropertyName:e.identifier_info?.identifier_mapping_info?.uniform_property_identifier?.identifier_property_name}},identifierGenerationInfo:{uuidMethodHint:Y.Oe[e.identifier_info?.identifier_generation_info?.uuid_method_hint?.value]}},searchIndexes:ee(e.search_indexes),entityTypes:K(e.entity_types),relationshipTypes:X(e.relationship_types)})}(e)}throw new i.c("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:n,data:r.data})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4088],{44728:(e,t,r)=>{r.d(t,{c:()=>m});var a,n,i=r(46988),o=r(53648),s=r(53368);function l(e){return(0,o.qk)((0,s.Wu)(e),0,255)}function d(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function c(e,t){const r=e.toString(16).padStart(2,"0");return t?r.substring(0,1):r}class u{static blendColors(e,t,r,a=new u){return a.r=Math.round(e.r+(t.r-e.r)*r),a.g=Math.round(e.g+(t.g-e.g)*r),a.b=Math.round(e.b+(t.b-e.b)*r),a.a=e.a+(t.a-e.a)*r,a._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),a=r[1];if("rgb"===a&&3===e.length||"rgba"===a&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),u.fromArray(r,t)}return u.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===a&&3===e.length||"hsla"===a&&4===e.length)return u.fromArray((0,i.ec)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new u){if("#"!==e[0]||isNaN(Number(`0x${e.substring(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.substring(1,2),16),a=parseInt(e.substring(2,3),16),n=parseInt(e.substring(3,4),16),i=5===e.length?15:parseInt(e.substring(4),16);return u.fromArray([r+16*r,a+16*a,n+16*n,(i+16*i)/255],t)}case 7:case 9:{const r=parseInt(e.substring(1,3),16),a=parseInt(e.substring(3,5),16),n=parseInt(e.substring(5,7),16),i=7===e.length?255:parseInt(e.substring(7),16);return u.fromArray([r,a,n,i/255],t)}default:return null}}static fromArray(e,t=new u){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,i.kv)(e)?(0,i.SQ)(e):null;return r&&u.fromArray(r,t)||u.fromRgb(e,t)||u.fromHex(e,t)}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?u.fromString(e,this):Array.isArray(e)?u.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof u||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,a=3===r||4===r,n=4===r||8===r,i=`#${c(this.r,a)}${c(this.g,a)}${c(this.b,a)}${n?c(Math.round(255*this.a),a):""}`;return t?i.toUpperCase():i}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=u.AlphaMode.ALWAYS){const t=l(this.r),r=l(this.g),a=l(this.b);return e===u.AlphaMode.ALWAYS||1!==this.a?[t,r,a,l(255*this.a)]:[t,r,a]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(d(this.r,0,255)),this.g=Math.round(d(this.g,0,255)),this.b=Math.round(d(this.b,0,255)),this.a=d(this.a,0,1),this}_set(e,t,r,a){this.r=e,this.g=t,this.b=r,this.a=a}}u.prototype.declaredClass="esri.Color",a=u||(u={}),(n=a.AlphaMode||(a.AlphaMode={}))[n.ALWAYS=0]="ALWAYS",n[n.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const m=u},25228:(e,t,r)=>{r.d(t,{c:()=>g});var a,n=r(41948),i=r(40504),o=r(94360),s=r(1580),l=(r(9456),r(66360),r(72052),r(33600)),d=r(12552),c=r(18996),u=r(28484);let m=a=class extends i.am{static get allTime(){return h}static get empty(){return f}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(a.allTime)}get isEmpty(){return this.equals(a.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new a({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,a=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===a&&r===n}expandTo(e,t=u.OX){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.aU)(r,e,t));let n=this.end;if(n){const r=(0,o.aU)(n,e,t);n=n.getTime()===r.getTime()?r:(0,o.g1)(r,1,e,t)}return new a({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return a.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,i=e.end?.getTime()??1/0;let o,s;return n>=t&&n<=r?o=n:t>=n&&t<=i&&(o=t),r>=n&&r<=i?s=r:i>=t&&i<=r&&(s=i),null==o||null==s||isNaN(o)||isNaN(s)?a.empty:new a({start:o===-1/0?null:new Date(o),end:s===1/0?null:new Date(s)})}offset(e,t,r=u.OX){if(this.isEmpty||this.isAllTime)return this.clone();const n=new a,{start:i,end:s}=this;return null!=i&&(n.start=(0,o.g1)(i,e,t,r)),null!=s&&(n.end=(0,o.g1)(s,e,t,r)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new a({start:t,end:r})}};(0,n._)([(0,s.qq)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"end",void 0),(0,n._)([(0,l.E)("end")],m.prototype,"readEnd",null),(0,n._)([(0,c.G)("end")],m.prototype,"writeEnd",null),(0,n._)([(0,s.qq)({readOnly:!0,json:{read:!1}})],m.prototype,"isAllTime",null),(0,n._)([(0,s.qq)({readOnly:!0,json:{read:!1}})],m.prototype,"isEmpty",null),(0,n._)([(0,s.qq)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"start",void 0),(0,n._)([(0,l.E)("start")],m.prototype,"readStart",null),(0,n._)([(0,c.G)("start")],m.prototype,"writeStart",null),m=a=(0,n._)([(0,d.c)("esri.TimeExtent")],m);const h=new m,f=new m({start:void 0,end:void 0}),g=m},48952:(e,t,r)=>{r.d(t,{a:()=>i,b:()=>s,c:()=>o,d:()=>n,e:()=>u,f:()=>l,n:()=>m,s:()=>d,t:()=>c}),r(9456);var a=r(23704);function n(e,t,r){i(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function i(e,t,r,a=3,n=a){if(e.length/a!==Math.ceil(t.length/n))return e;const i=e.length/a,o=r[0],s=r[1],l=r[2],d=r[4],c=r[5],u=r[6],m=r[8],h=r[9],f=r[10],g=r[12],y=r[13],T=r[14];let S=0,p=0;for(let r=0;r<i;r++){const r=t[S],i=t[S+1],A=t[S+2];e[p]=o*r+d*i+m*A+g,e[p+1]=s*r+c*i+h*A+y,e[p+2]=l*r+u*i+f*A+T,S+=n,p+=a}return e}function o(e,t,r){s(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r,n=3,i=n){if(e.length/n!==Math.ceil(t.length/i))return void(0,a.A)().error("source and destination buffers need to have the same number of elements");const o=e.length/n,s=r[0],l=r[1],d=r[2],c=r[3],u=r[4],m=r[5],h=r[6],f=r[7],g=r[8];let y=0,T=0;for(let r=0;r<o;r++){const r=t[y],a=t[y+1],o=t[y+2];e[T]=s*r+c*a+h*o,e[T+1]=l*r+u*a+f*o,e[T+2]=d*r+m*a+g*o,y+=i,T+=n}}function l(e,t,r){d(e.typedBuffer,t,r,e.typedBufferStride)}function d(e,t,r,a=3){const n=Math.min(e.length/a,t.count),i=t.typedBuffer,o=t.typedBufferStride;let s=0,l=0;for(let t=0;t<n;t++)e[l]=r*i[s],e[l+1]=r*i[s+1],e[l+2]=r*i[s+2],s+=o,l+=a}function c(e,t,r,a=3,n=a){const i=e.length/a;if(i!==Math.ceil(t.length/n))return e;let o=0,s=0;for(let l=0;l<i;l++)e[s]=t[o]+r[0],e[s+1]=t[o+1]+r[1],e[s+2]=t[o+2]+r[2],o+=n,s+=a;return e}function u(e,t){m(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function m(e,t,r=3,a=r){const n=Math.min(e.length/r,t.length/a);let i=0,o=0;for(let s=0;s<n;s++){const n=t[i],s=t[i+1],l=t[i+2],d=n*n+s*s+l*l;if(d>0){const t=1/Math.sqrt(d);e[o]=t*n,e[o+1]=t*s,e[o+2]=t*l}i+=a,o+=r}}Object.freeze(Object.defineProperty({__proto__:null,normalize:m,normalizeView:u,scale:d,scaleView:l,shiftRight:function(e,t,r){const a=Math.min(e.count,t.count),n=e.typedBuffer,i=e.typedBufferStride,o=t.typedBuffer,s=t.typedBufferStride;let l=0,d=0;for(let e=0;e<a;e++)n[d]=o[l]>>r,n[d+1]=o[l+1]>>r,n[d+2]=o[l+2]>>r,l+=s,d+=i},transformMat3:s,transformMat3View:o,transformMat4:i,transformMat4View:n,translate:c},Symbol.toStringTag,{value:"Module"}))},46988:(e,t,r)=>{r.d(t,{SQ:()=>i,ec:()=>l,kv:()=>n,uO:()=>o,yU:()=>d});const a={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function n(e){return!!a[e]||!!a[e.toLowerCase()]}function i(e){return a[e]??a[e.toLowerCase()]}function o(e){return[...i(e)]}function s(e,t,r){r<0&&++r,r>1&&--r;const a=6*r;return a<1?e+(t-e)*a:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,a=1){const n=(e%360+360)%360/360,i=r<=.5?r*(t+1):r+t-r*t,o=2*r-i;return[Math.round(255*s(o,i,n+1/3)),Math.round(255*s(o,i,n)),Math.round(255*s(o,i,n-1/3)),a]}function d(e){const t=e.length>5,r=t?8:4,a=(1<<r)-1,n=t?1:17,i=t?9===e.length:5===e.length;let o=Number("0x"+e.substr(1));if(isNaN(o))return null;const s=[0,0,0,1];let l;return i&&(l=o&a,o>>=r,s[3]=n*l/255),l=o&a,o>>=r,s[2]=n*l,l=o&a,o>>=r,s[1]=n*l,l=o&a,o>>=r,s[0]=n*l,s}},3856:(e,t,r)=>{r.d(t,{m:()=>u,q:()=>c});var a=r(41948),n=r(43780),i=(r(9456),r(62088)),o=(r(66360),r(70680)),s=r(71448),l=r(20916),d=r(12552);const c=e=>{let t=class extends e{clone(){const e=(0,l.m6)(this);(0,o.EN)(e,"unable to clone instance of non-accessor class");const t=e.metadata,r=e.store,a={},n=new Map;for(const e in t){const o=t[e],l=r?.originOf(e),d=o.clonable;if(o.readOnly||!1===d||l!==s.sT.USER&&l!==s.sT.DEFAULTS&&l!==s.sT.WEB_MAP&&l!==s.sT.WEB_SCENE)continue;const c=this[e];let u=null;u="function"==typeof d?d(c):"reference"===d?c:(0,i.gx)(c),null!=c&&null==u||(l===s.sT.DEFAULTS?n.set(e,u):a[e]=u)}const d=new(0,Object.getPrototypeOf(this).constructor)(a);if(n.size){const e=(0,l.m6)(d)?.store;if(e)for(const[t,r]of n)e.set(t,r,s.sT.DEFAULTS)}return d}};return t=(0,a._)([(0,d.c)("esri.core.Clonable")],t),t};let u=class extends(c(n.c)){};u=(0,a._)([(0,d.c)("esri.core.Clonable")],u)},9592:(e,t,r)=>{r.d(t,{n:()=>n});var a=r(50504);class n extends a.g{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},94360:(e,t,r)=>{r.d(t,{QJ:()=>d,aU:()=>l,g1:()=>s,iC:()=>o});var a=r(47828),n=r(28484),i=r(39452);const o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function s(e,t,r,o=n.OX){const s=new i._C((0,a.Y9)(o)),l=i.CS.fromJSDate(e,{zone:s}),d="decades"===r||"centuries"===r?"year":c(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),l.plus({[d]:t}).toJSDate()}function l(e,t,r=n.OX){const o=new i._C((0,a.Y9)(r)),s=i.CS.fromJSDate(e,{zone:o});if("decades"===t||"centuries"===t){const e=s.startOf("year"),{year:r}=e,a=r-r%("decades"===t?10:100);return e.set({year:a}).toJSDate()}const l=c(t);return s.startOf(l).toJSDate()}function d(e,t,r){return 0===e?0:e*o[t]/o[r]}function c(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},60708:(e,t,r)=>{r.d(t,{Su:()=>c});var a=r(53368),n=r(95247),i=r(50853),o=r(53004),s=r(67776),l=r(7488),d=r(48516);r(56156),r(97492),r(6704);const c={base:i.c,key:"type",typeMap:{extent:n.c,multipoint:o.c,point:s.c,polyline:d.c,polygon:l.c}};(0,a.S2)(c)},15688:(e,t,r)=>{r.d(t,{Gg:()=>n,cp:()=>i,lL:()=>o,mw:()=>s,qW:()=>l});var a=r(72008);function n(e,t=!1){return e<=a._?t?new Array(e).fill(0):new Array(e):new Float64Array(e)}function i(e){return((0,a.c7)(e)?e.length:e.byteLength/8)<=a._?Array.from(e):new Float64Array(e)}function o(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function s(e,t){for(let r=0;r<t.length;++r)e[r]=t[r];return e}function l(e){return Array.isArray(e)?new Float64Array(e):e}},51232:(e,t,r)=>{r.d(t,{c:()=>c});var a=r(41948),n=r(3856),i=r(40504),o=r(1580),s=(r(9456),r(66360),r(72052),r(9968)),l=r(12552);let d=class extends((0,n.q)(i.am)){constructor(e){super(e),this.type="georeferenced",this.origin=null}};(0,a._)([(0,s.G)({georeferenced:"georeferenced"},{readOnly:!0})],d.prototype,"type",void 0),(0,a._)([(0,o.qq)({type:[Number],nonNullable:!1,json:{write:!0}})],d.prototype,"origin",void 0),d=(0,a._)([(0,l.c)("esri.geometry.support.MeshGeoreferencedVertexSpace")],d);const c=d},13708:(e,t,r)=>{r.d(t,{c:()=>u});var a=r(41948),n=r(3856),i=r(40504),o=r(1580),s=(r(9456),r(66360),r(72052),r(9968)),l=r(12552),d=r(62484);let c=class extends((0,n.q)(i.am)){constructor(e){super(e),this.type="local",this.origin=(0,d.Su)()}};(0,a._)([(0,s.G)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,a._)([(0,o.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,a._)([(0,l.c)("esri.geometry.support.MeshLocalVertexSpace")],c);const u=c},23704:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(66360);const n=()=>a.c.getLogger("esri.views.3d.support.buffer.math")},6704:(e,t,r)=>{r.d(t,{Ce:()=>g,Cs:()=>h,Ul:()=>d,_:()=>c,_x:()=>u,cZ:()=>m,h4:()=>f,uG:()=>T});var a=r(95247),n=r(50853),i=r(53004),o=r(67776),s=r(7488),l=r(48516);function d(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function c(e){return void 0!==e.points}function u(e){return void 0!==e.x&&void 0!==e.y}function m(e){return void 0!==e.paths}function h(e){return void 0!==e.rings}function f(e){return null==e?null:e instanceof n.c?e:u(e)?o.c.fromJSON(e):m(e)?l.c.fromJSON(e):h(e)?s.c.fromJSON(e):c(e)?i.c.fromJSON(e):d(e)?a.c.fromJSON(e):null}function g(e){return e?u(e)?"esriGeometryPoint":m(e)?"esriGeometryPolyline":h(e)?"esriGeometryPolygon":d(e)?"esriGeometryEnvelope":c(e)?"esriGeometryMultipoint":null:null}const y={esriGeometryPoint:o.c,esriGeometryPolyline:l.c,esriGeometryPolygon:s.c,esriGeometryEnvelope:a.c,esriGeometryMultipoint:i.c};function T(e){return e&&y[e]||null}},97492:(e,t,r)=>{r.d(t,{U:()=>n,j:()=>i});var a=r(14628);const n=(0,a.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,a.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},47828:(e,t,r)=>{r.d(t,{C8:()=>y,Cg:()=>A,Y9:()=>w,_m:()=>b});var a=r(14628),n=r(89960),i=r(28484);r(39452),i.Gw;const o={year:"numeric",month:"numeric",day:"numeric"},s={year:"numeric",month:"long",day:"numeric"},l={year:"numeric",month:"short",day:"numeric"},d={year:"numeric",month:"long",weekday:"long",day:"numeric"},c={hour:"numeric",minute:"numeric"},u={...c,second:"numeric"},m={hourCycle:"h23"},h={...c,...m},f={...u,...m},g={"short-date":o,"short-date-short-time":{...o,...c},"short-date-short-time-24":{...o,...h},"short-date-long-time":{...o,...u},"short-date-long-time-24":{...o,...f},"short-date-le":o,"short-date-le-short-time":{...o,...c},"short-date-le-short-time-24":{...o,...h},"short-date-le-long-time":{...o,...u},"short-date-le-long-time-24":{...o,...f},"long-month-day-year":s,"long-month-day-year-short-time":{...s,...c},"long-month-day-year-short-time-24":{...s,...h},"long-month-day-year-long-time":{...s,...u},"long-month-day-year-long-time-24":{...s,...f},"day-short-month-year":l,"day-short-month-year-short-time":{...l,...c},"day-short-month-year-short-time-24":{...l,...h},"day-short-month-year-long-time":{...l,...u},"day-short-month-year-long-time-24":{...l,...f},"long-date":d,"long-date-short-time":{...d,...c},"long-date-short-time-24":{...d,...h},"long-date-long-time":{...d,...u},"long-date-long-time-24":{...d,...f},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":c,"long-time":u},y=(0,a.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),T={ar:"ar-u-nu-latn-ca-gregory"};let S=new WeakMap;const p=g["short-date-short-time"];function A(e){return g[e]}function b(e,t=p){return function(e){let t=S.get(e);if(!t){const r=(0,n.a8)(),a=T[r]||r,o=w(e.timeZone??i.OX),s={...e,timeZone:o};t=new Intl.DateTimeFormat(a,s),S.set(e,t)}return t}(t).format(e)}function w(e){switch(e){case i.OX:return i.sP;case i.OI:return i.Gw;default:return e}}(0,n.uy)((()=>{S=new WeakMap}))},89960:(e,t,r)=>{r.d(t,{a8:()=>s,e2:()=>c,mo:()=>l,uy:()=>m});var a=r(38912);let n;const i=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;function o(){return i??globalThis.navigator?.language??"en"}function s(){return void 0===n&&(n=o()),n}function l(e=s()){const t=/^([a-zA-Z]{2,3})(?:[_\-]\w+)*$/.exec(e);return t?.[1].toLowerCase()}const d=[];function c(e){return d.push(e),(0,a.uU)((()=>d.splice(d.indexOf(e),1)))}const u=[];function m(e){return u.push(e),(0,a.uU)((()=>d.splice(u.indexOf(e),1)))}globalThis.addEventListener?.("languagechange",(function(){const e=o();n!==e&&(n=e,[...u].forEach((t=>{t.call(null,e)})),[...d].forEach((t=>{t.call(null,e)})))}))},28484:(e,t,r)=>{r.d(t,{Mt:()=>c,OX:()=>i,sP:()=>l,SM:()=>d,OI:()=>o,Gw:()=>s});const a=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Almaty"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var n=r(39452);const i="system",o="unknown",s="UTC",l=Intl.DateTimeFormat().resolvedOptions().timeZone;function d(e,t=!1){return{json:{read:{source:e,reader:(t,r)=>r[e]?c(r[e]):null},write:!!t&&{allowNull:!0,writer(t,r){r[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function c(e,t=i){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,t=i){if(!e||!a.has(e.timeZone))return t;const r=a.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?r:function(e){const t=n.CS.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===r?"Etc/UTC":`Etc/GMT${n.Kq.instance(-r).formatOffset(0,"narrow")}`}(r)}(e,t):t}},42200:(e,t,r)=>{r.r(t),r.d(t,{destroyContext:()=>C,dracoDecompressPointCloudData:()=>p,filterObbsForModifications:()=>A,filterObbsForModificationsSync:()=>N,initialize:()=>D,interpretObbModificationResults:()=>_,process:()=>S,project:()=>E,setLegacySchema:()=>w,setModifications:()=>b,setModificationsSync:()=>U,test:()=>B,transformNormals:()=>M});var a,n,i=r(56156),o=r(15688),s=r(51232),l=r(13708),d=r(48952);!function(e){e[e.None=0]="None",e[e.Int16=1]="Int16",e[e.Int32=2]="Int32"}(a||(a={})),function(e){e[e.Replace=0]="Replace",e[e.Outside=1]="Outside",e[e.Inside=2]="Inside",e[e.Finished=3]="Finished"}(n||(n={}));var c=r(24832);function u(e){return(0,c.O)(`esri/libs/i3s/${e}`)}let m;var h,f,g,y,T;async function S(e){v=await O();const t=[e.geometryBuffer];return{result:P(v,e,t),transferList:t}}async function p(e){v=await O();const t=[e.geometryBuffer],{geometryBuffer:r}=e,a=r.byteLength,n=v._malloc(a),i=new Uint8Array(v.HEAPU8.buffer,n,a);i.set(new Uint8Array(r));const o=v.dracoDecompressPointCloudData(n,i.byteLength);if(v._free(n),o.error.length>0)throw new Error(`i3s.wasm: ${o.error}`);const s=o.featureIds?.length>0?o.featureIds.slice():null,l=o.positions.slice();return s&&t.push(s.buffer),t.push(l.buffer),{result:{positions:l,featureIds:s},transferList:t}}async function A(e){await O(),N(e);const t={buffer:e.buffer};return{result:t,transferList:[t.buffer]}}async function b(e){await O(),U(e)}async function w(e){v=await O(),v.setLegacySchema(e.context,e.jsonSchema)}async function E(e){const{localMatrix:t,origin:a,positions:n,vertexSpace:d,localMode:c}=e,u=i.c.fromJSON(e.inSpatialReference),m=i.c.fromJSON(e.outSpatialReference);let h;if("georeferenced"===d.type&&null==d.origin){const[{projectBuffer:e},{initializeProjection:t}]=await Promise.all([Promise.resolve().then(r.bind(r,62880)),Promise.resolve().then(r.bind(r,60074))]);await t(u,m),h=new Float64Array(n.length),e(n,u,0,h,m,0,h.length/3)}else{const e="georeferenced"===d.type?s.c.fromJSON(d):l.c.fromJSON(d),{project:a}=await r.e(4828).then(r.bind(r,54828));h=(0,o.qW)(a({positions:n,transform:t?{localMatrix:t}:void 0,vertexSpace:e,inSpatialReference:u,outSpatialReference:m,localMode:c}))}const f=h.length,[g,y,T]=a;for(let e=0;e<f;e+=3)h[e]-=g,h[e+1]-=y,h[e+2]-=T;return{result:{projected:h,original:n},transferList:[h.buffer,n.buffer]}}async function M({normalMatrix:e,normals:t}){const r=new Float32Array(t.length);return(0,d.b)(r,t,e),(0,d.n)(r,r),{result:{transformed:r,original:t},transferList:[r.buffer,t.buffer]}}function C(e){G(e)}let k,v;function U(e){if(!v)return;const t=e.modifications,r=v._malloc(8*t.length),a=new Float64Array(v.HEAPU8.buffer,r,t.length);for(let e=0;e<t.length;++e)a[e]=t[e];v.setModifications(e.context,r,t.length,e.isGeodetic),v._free(r)}function P(e,t,r){const{context:n,localOrigin:i,globalTrafo:o,mbs:s,obbData:l,elevationOffset:d,geometryBuffer:c,geometryDescriptor:u,indexToVertexProjector:m,vertexToRenderProjector:h}=t,f=e._malloc(c.byteLength),g=e._malloc(33*Float64Array.BYTES_PER_ELEMENT),y=new Uint8Array(e.HEAPU8.buffer,f,c.byteLength);y.set(new Uint8Array(c));const T=new Float64Array(e.HEAPU8.buffer,g,33);L(T,i);let S=T.byteOffset+3*T.BYTES_PER_ELEMENT,p=new Float64Array(T.buffer,S);L(p,o),S+=16*T.BYTES_PER_ELEMENT,p=new Float64Array(T.buffer,S),L(p,s),S+=4*T.BYTES_PER_ELEMENT,l&&(p=new Float64Array(T.buffer,S),L(p,l));const A=u,b={isDraco:!1,isLegacy:!1,color:t.layouts.some((e=>e.some((e=>"color"===e.name)))),normal:t.needNormals&&t.layouts.some((e=>e.some((e=>"normalCompressed"===e.name)))),uv0:t.layouts.some((e=>e.some((e=>"uv0"===e.name)))),uvRegion:t.layouts.some((e=>e.some((e=>"uvRegion"===e.name)))),featureIndex:A.featureIndex},w=e.process(n,!!t.obbData,f,y.byteLength,A,b,g,d,m,h,t.normalReferenceFrame);if(e._free(g),e._free(f),w.error.length>0)throw new Error(`i3s.wasm: ${w.error}`);if(w.discarded)return null;const E=w.componentOffsets.length>0?w.componentOffsets.slice():null,M=w.featureIds.length>0?w.featureIds.slice():null,C=w.anchorIds.length>0?Array.from(w.anchorIds):null,k=w.anchors.length>0?Array.from(w.anchors):null,v=w.interleavedVertedData.slice().buffer,U=w.indicesType===a.Int16?new Uint16Array(w.indices.buffer,w.indices.byteOffset,w.indices.byteLength/2).slice():new Uint32Array(w.indices.buffer,w.indices.byteOffset,w.indices.byteLength/4).slice(),P=w.positions.slice(),_=w.positionIndicesType===a.Int16?new Uint16Array(w.positionIndices.buffer,w.positionIndices.byteOffset,w.positionIndices.byteLength/2).slice():new Uint32Array(w.positionIndices.buffer,w.positionIndices.byteOffset,w.positionIndices.byteLength/4).slice(),N={layout:t.layouts[0],interleavedVertexData:v,indices:U,hasColors:w.hasColors,hasModifications:w.hasModifications,positionData:{data:P,indices:_}};return M&&r.push(M.buffer),E&&r.push(E.buffer),r.push(v),r.push(U.buffer),r.push(P.buffer),r.push(_.buffer),{componentOffsets:E,featureIds:M,anchorIds:C,anchors:k,transformedGeometry:N,obb:w.obb}}function _(e){return 0===e?f.Unmodified:1===e?f.PotentiallyModified:2===e?f.Culled:f.Unknown}function N(e){if(!v)return;const{context:t,buffer:r}=e,a=v._malloc(r.byteLength),n=r.byteLength/Float64Array.BYTES_PER_ELEMENT,i=new Float64Array(v.HEAPU8.buffer,a,n),o=new Float64Array(r);i.set(o),v.filterOBBs(t,a,n),o.set(i),v._free(a)}function G(e){v&&0===v.destroy(e)&&(v=null)}function L(e,t){for(let r=0;r<t.length;++r)e[r]=t[r]}async function D(){v||await O()}function O(){return v?Promise.resolve(v):(k||(k=(m||(m=new Promise((e=>r.e(2064).then(r.bind(r,72064)).then((e=>e.i)).then((({default:t})=>{const r=t({locateFile:u,onRuntimeInitialized:()=>e(r)});delete r.then})))).catch((e=>{throw e}))),m).then((e=>(v=e,k=null,v)))),k)}r(37008),r(84752),r(74776),function(e){e[e.Unmodified=0]="Unmodified",e[e.Culled=1]="Culled",e[e.NotChecked=2]="NotChecked"}(h||(h={})),function(e){e[e.Unmodified=0]="Unmodified",e[e.PotentiallyModified=1]="PotentiallyModified",e[e.Culled=2]="Culled",e[e.Unknown=3]="Unknown",e[e.NotChecked=4]="NotChecked"}(f||(f={})),function(e){e[e.Unknown=0]="Unknown",e[e.Uncached=1]="Uncached",e[e.Cached=2]="Cached"}(g||(g={})),function(e){e[e.None=0]="None",e[e.MaxScreenThreshold=1]="MaxScreenThreshold",e[e.ScreenSpaceRelative=2]="ScreenSpaceRelative",e[e.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",e[e.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(y||(y={})),function(e){e[e.Hole=0]="Hole",e[e.Leaf=1]="Leaf"}(T||(T={}));const B={transform:(e,t)=>v&&P(v,e,t),destroy:G}}}]);