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

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 (88) hide show
  1. package/applications/Components/reactiveUtils.d.ts +4 -0
  2. package/applications/Components/reactiveUtils.js +1 -1
  3. package/applications/MapViewer/templateUtils.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/{5269793822e41dd07fe1.js → 0b6ceb0194a07bbc3433.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{458f4c6c8820c1f62f69.js → 1322096a72e910f23167.js} +1 -1
  7. package/assets/esri/core/workers/chunks/1cd9b5ef62582b25df9b.js +1 -0
  8. package/assets/esri/core/workers/chunks/1cf8a431e5da946c7d27.js +1 -0
  9. package/assets/esri/core/workers/chunks/{add0770399a63b7635b5.js → 1df34b7fd68f5ab55bd3.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{e1b42fc5c1d89333e834.js → 239821543abbd63c5787.js} +2 -2
  11. package/assets/esri/core/workers/chunks/2a654d8de99be40dd0e6.js +1 -0
  12. package/assets/esri/core/workers/chunks/{fdc9bd8f309af610fa62.js → 48ad7beb48dcc2693cc3.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{1e631e34ee495eb0e76e.js → 49ed3ab9bd6d7c52e864.js} +1 -1
  14. package/assets/esri/core/workers/chunks/5e79642851e888eddfe4.js +1 -0
  15. package/assets/esri/core/workers/chunks/738e4f46feb3758456e0.js +1 -0
  16. package/assets/esri/core/workers/chunks/77660e18ea793ae85f83.js +1 -0
  17. package/assets/esri/core/workers/chunks/{4d02e211967384994e5e.js → 82493f51a2182f76dd2f.js} +1 -1
  18. package/assets/esri/core/workers/chunks/879d672d12f9ef2e1b50.js +1 -0
  19. package/assets/esri/core/workers/chunks/921b41b101957cfc1cfd.js +1 -0
  20. package/assets/esri/core/workers/chunks/{f128d3431da86e484117.js → 94292c7afff18694d55e.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{c0400c25c53fd90fc90e.js → 9e156e135f34f9b06032.js} +1 -1
  22. package/assets/esri/core/workers/chunks/9f18de17fbcad0e5c140.js +1 -0
  23. package/assets/esri/core/workers/chunks/{4eb1a2433f675bde12ad.js → a01c86910fe4984eb788.js} +1 -1
  24. package/assets/esri/core/workers/chunks/ba4d91816f6a0bf0d812.js +1 -0
  25. package/assets/esri/core/workers/chunks/da8a002d18544def5383.js +1 -0
  26. package/assets/esri/core/workers/chunks/dde03a893f9cef8e0f45.js +1 -0
  27. package/assets/esri/core/workers/chunks/{fc7ce48c7b31a4665a9b.js → e792603b7cc3ddd133f3.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{0c9e933b392616460e62.js → f0c864425f000ab87a7b.js} +1 -1
  29. package/assets/esri/core/workers/chunks/fc5ca7b08915177c5e33.js +1 -0
  30. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList.json +1 -1
  31. package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_en.json +1 -1
  32. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList.json +1 -1
  33. package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_en.json +1 -1
  34. package/assets/esri/widgets/LayerList/t9n/LayerList.json +1 -1
  35. package/assets/esri/widgets/LayerList/t9n/LayerList_en.json +1 -1
  36. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  37. package/geometry/operators/polygonOverlayOperator.js +1 -1
  38. package/interfaces.d.ts +114 -13
  39. package/intl/locale.js +1 -1
  40. package/layers/OrientedImageryLayer.js +1 -1
  41. package/layers/SceneLayer.js +1 -1
  42. package/layers/graphics/sources/WFSSourceWorker.js +1 -1
  43. package/layers/support/commonProperties.js +1 -1
  44. package/networks/RulesTable.js +1 -1
  45. package/networks/UtilityNetwork.js +1 -1
  46. package/networks/support/utils.js +1 -1
  47. package/package.json +1 -1
  48. package/portal/schemas/definitions.js +1 -1
  49. package/portal/schemas/sceneLayerItem.js +1 -1
  50. package/support/actions/actionUtils.js +1 -1
  51. package/support/revision.js +1 -1
  52. package/tables/AttributeTableTemplate.js +1 -1
  53. package/tables/elements/AttributeTableAttachmentElement.js +1 -1
  54. package/tables/elements/AttributeTableFieldElement.js +1 -1
  55. package/tables/elements/AttributeTableGroupElement.js +1 -1
  56. package/tables/elements/AttributeTableRelationshipElement.js +1 -1
  57. package/tables/support/FieldOrder.js +5 -0
  58. package/tables/support/tablesUtils.js +1 -1
  59. package/views/3d/terrain/TerrainSurface.js +1 -1
  60. package/views/3d/terrain/Tile.js +1 -1
  61. package/views/3d/terrain/TileRenderer.js +1 -1
  62. package/views/VideoView.js +1 -1
  63. package/views/webgl/Texture.js +1 -1
  64. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  65. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  66. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  67. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  68. package/widgets/FeatureTable.js +1 -1
  69. package/widgets/Features/FeaturesDrillIn.js +1 -1
  70. package/widgets/Features.js +1 -1
  71. package/widgets/LayerList/LayerListItem.js +1 -1
  72. package/widgets/Search.js +1 -1
  73. package/widgets/Widget.js +1 -1
  74. package/widgets/support/tests.js +1 -1
  75. package/assets/esri/core/workers/chunks/08ea652b7896c1da022d.js +0 -1
  76. package/assets/esri/core/workers/chunks/09ca64184bed6abafcd9.js +0 -1
  77. package/assets/esri/core/workers/chunks/18d0fe269531b951e309.js +0 -1
  78. package/assets/esri/core/workers/chunks/2bb508701ad8ccc3d6ab.js +0 -1
  79. package/assets/esri/core/workers/chunks/2ce80c764cca9e6a20cd.js +0 -1
  80. package/assets/esri/core/workers/chunks/2f23fc27d005ffa18f47.js +0 -1
  81. package/assets/esri/core/workers/chunks/2fcfc21ba38d9919730a.js +0 -1
  82. package/assets/esri/core/workers/chunks/74541f1a6d4228275c52.js +0 -1
  83. package/assets/esri/core/workers/chunks/75ec4d2ae9d427a1434f.js +0 -1
  84. package/assets/esri/core/workers/chunks/85a9025c2990a8bbd61b.js +0 -1
  85. package/assets/esri/core/workers/chunks/90afead317186b31b2f9.js +0 -1
  86. package/assets/esri/core/workers/chunks/aa404aaec843a4f46ab6.js +0 -1
  87. package/assets/esri/core/workers/chunks/aff7c4477e1f0c31fffa.js +0 -1
  88. /package/assets/esri/core/workers/chunks/{e1b42fc5c1d89333e834.js.LICENSE.txt → 239821543abbd63c5787.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2507],{10838:(a,t,e)=>{e.d(t,{ao:()=>l,ud:()=>u,xO:()=>T});var n=e(49186),r=e(36563),i=e(74887),o=e(73444);const s={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function d(a){if(function(a){return a in s}(a)){const t=s[a];return!0===t?a:t}return null}const m=[],c=new Map;function h(a){for(const t of c.keys())S(a.pattern,t)&&c.delete(t)}function l(a){return m.includes(a)||(h(a),m.unshift(a)),(0,r.hA)((()=>{const t=m.indexOf(a);t>-1&&(m.splice(t,1),h(a))}))}async function u(a){const t=(0,o.JK)();c.has(a)||c.set(a,async function(a,t){const e=[];for(const n of m)if(S(n.pattern,a))try{return await n.fetchMessageBundle(a,t)}catch(a){e.push(a)}if(e.length)throw new n.A("intl:message-bundle-error",`Errors occurred while loading "${a}"`,{errors:e});throw new n.A("intl:no-message-bundle-loader",`No loader found for message bundle "${a}"`)}(a,t));const e=c.get(a);return e&&await A.add(e),e}function T(a){const t=(0,o.ZS)(a);return t?d(a)??d(t.language):null}function S(a,t){return"string"==typeof a?t.startsWith(a):a.test(t)}(0,o.Ml)((()=>{c.clear()}));const A=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(a){return this._increase(),a.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,i.Tw)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},56400:(a,t,e)=>{e.d(t,{ZS:()=>d,hv:()=>m,wr:()=>c,P6:()=>s});var n=e(98623);const r=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/Bishkek"],["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 i=e(96285);const o="shortOffset";function s(a,t=!1){return{json:{read:{source:a,reader:(t,e)=>e[a]?d(e[a]):null},write:!!t&&{allowNull:!0,writer(t,e){e[a]=t?function(a){return{timeZoneIANA:a}}(t):null}}}}}function d(a,t=n.qU){return a?"timeZoneIANA"in a?a.timeZoneIANA:function(a,t=n.qU){if(!a||!r.has(a.timeZone))return t;const e=r.get(a.timeZone);return a.timeZone.startsWith("UTC")||a.respectsDaylightSaving?e:function(a){const t=i.c9.local().setZone(a),e=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===e?"Etc/UTC":`Etc/GMT${i.mQ.instance(-e).formatOffset(0,"narrow")}`}(e)}(a,t):t}function m(a,t,e,r,i){if(t&&"date"===i)return{timeZone:n.n$,timeZoneName:void 0};const s=r.timeStyle||r.hour,d=e===n.L5;return{timeZone:d?"timestamp-offset"===i?void 0:a??n.n$:e,timeZoneName:d&&s?o:void 0}}function c(a){const t=new Set(["etc/utc","etc/gmt","gmt"]),e=new Set(Intl.supportedValuesOf("timeZone").map((a=>a.toLowerCase())));return a===n.qU||a===n.L5||t.has(a.toLowerCase())||e.has(a.toLowerCase())}},65529:(a,t,e)=>{e.d(t,{A:()=>s});var n=e(90237),r=e(69622),i=e(36563),o=e(40608);class s{constructor(){this._emitter=new s.EventEmitter(this)}emit(a,t){return this._emitter.emit(a,t)}on(a,t){return this._emitter.on(a,t)}once(a,t){return this._emitter.once(a,t)}hasEventListener(a){return this._emitter.hasEventListener(a)}}!function(a){class t{constructor(a=null){this._target=a,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(a,t){let e=this._listenersMap?.get(a);if(!e)return!1;const n=this._target||this;let r=!1;for(const a of e.slice()){const e="deref"in a?a.deref():a;e?e?.call(n,t):r=!0}return r&&(e=e.filter((a=>!("deref"in a)||null!=a.deref())),this._listenersMap.set(a,e)),e.length>0}on(a,t){if(Array.isArray(a)){const e=a.map((a=>this.on(a,t)));return(0,i.vE)(e)}if(a.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const e=this._listenersMap.get(a)||[];return e.push(t),this._listenersMap.set(a,e),(0,i.hA)((()=>{const e=this._listenersMap?.get(a),n=e?.indexOf(t)??-1;n>=0&&e.splice(n,1)}))}once(a,t){const e=this.on(a,(a=>{e.remove();const n="deref"in t?t.deref():t;n?.call(null,a)}));return e}hasEventListener(a){const t=this._listenersMap?.get(a);return null!=t&&t.length>0}}a.EventEmitter=t,a.EventedMixin=a=>{let e=class extends a{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(a,t){return this._emitter.emit(a,t)}on(a,t){return this._emitter.on(a,t)}once(a,t){return this._emitter.once(a,t)}hasEventListener(a){return this._emitter.hasEventListener(a)}};return e=(0,n._)([(0,o.$)("esri.core.Evented")],e),e};let e=class extends r.A{constructor(){super(...arguments),this._emitter=new s.EventEmitter(this)}destroy(){this._emitter.clear()}emit(a,t){return this._emitter.emit(a,t)}on(a,t){return this._emitter.on(a,t)}once(a,t){return this._emitter.once(a,t)}hasEventListener(a){return this._emitter.hasEventListener(a)}};e=(0,n._)([(0,o.$)("esri.core.Evented.EventedAccessor")],e),a.EventedAccessor=e}(s)},66552:(a,t,e)=>{e.d(t,{J:()=>r,O:()=>o});var n=e(93637);class r{constructor(a,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=a,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(a){const t={};for(const e in a)t[a[e]]=e;return t}(a),this.apiValues=i(this._apiToJSON),this.jsonValues=i(this._jsonToAPI),this.read=a=>this.fromJSON(a),this.write=(a,t,e)=>{const r=this.toJSON(a);void 0!==r&&(0,n.sM)(e,r,t)},this.write.isJSONMapWriter=!0}toJSON(a){if(null==a)return null;if(this._apiToJSON.hasOwnProperty(a)){const t=this._apiToJSON[a];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?null:a}fromJSON(a){return null!=a&&this._jsonToAPI.hasOwnProperty(a)?this._jsonToAPI[a]:this._options.ignoreUnknown?void 0:a}}function i(a){const t=[];for(const e in a)t.push(e);return t.sort(),t}function o(){return function(a,t){return new r(a,{ignoreUnknown:!0,...t})}}},73444:(a,t,e)=>{e.d(t,{JK:()=>d,Ml:()=>T,ZS:()=>c,oQ:()=>l});var n=e(36563);let r;const i=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,o=globalThis.document?.documentElement;function s(){const a=o?.getAttribute("lang"),t=globalThis.navigator?.language;return i??a??t??"en"}function d(){return void 0===r&&(r=s()),r}const m=/^(?<language>[a-z]{2,3})(?:-[a-z]{3})?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(a=d()){return m.exec(a)?.groups}const h=[];function l(a){return h.push(a),(0,n.hA)((()=>h.splice(h.indexOf(a),1)))}const u=[];function T(a){return u.push(a),(0,n.hA)((()=>u.splice(u.indexOf(a),1)))}function S(){const a=s();r!==a&&([...u].forEach((t=>t(a))),r=a,[...h].forEach((t=>t(a))))}globalThis.addEventListener?.("languagechange",S),o&&new MutationObserver((()=>{S()})).observe(o,{attributeFilter:["lang"]})},79901:(a,t,e)=>{e.d(t,{w:()=>d});var n=e(56507),r=e(96156);const i=Object.prototype.toString;function o(a){const t="__accessorMetadata__"in a?(0,n.dp)(a):a;return function(...a){if(a.push(t),"number"==typeof a[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return s.apply(this,a)}}function s(a,t,e,n){(0,r.z4)(a,t).cast=n}function d(...a){if(3!==a.length||"string"!=typeof a[1])return 1===a.length&&"[object Function]"===i.call(a[0])?o(a[0]):1===a.length&&"string"==typeof a[0]?function(a){return(t,e)=>{(0,r.z4)(t,a).cast=t[e]}}(a[0]):void 0}},97770:(a,t,e)=>{e.d(t,{Ey:()=>b,F8:()=>w,J2:()=>C,Yq:()=>v,_v:()=>p,iS:()=>k,wj:()=>U});var n=e(66552),r=e(73444),i=e(98623),o=(e(56400),e(96285));const s={year:void 0,month:void 0,day:void 0,weekday:void 0},d={hour:void 0,minute:void 0,second:void 0},m={timeZone:i.n$},c={year:"numeric",month:"numeric",day:"numeric"},h={year:"numeric",month:"long",day:"numeric"},l={year:"numeric",month:"short",day:"numeric"},u={year:"numeric",month:"long",weekday:"long",day:"numeric"},T={hour:"numeric",minute:"numeric"},S={...T,second:"numeric"},A={hourCycle:"h23"},g={...T,...A},f={...S,...A},y={"short-date":c,"short-date-short-time":{...c,...T},"short-date-short-time-24":{...c,...g},"short-date-long-time":{...c,...S},"short-date-long-time-24":{...c,...f},"short-date-le":c,"short-date-le-short-time":{...c,...T},"short-date-le-short-time-24":{...c,...g},"short-date-le-long-time":{...c,...S},"short-date-le-long-time-24":{...c,...f},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...T},"long-month-day-year-short-time-24":{...h,...g},"long-month-day-year-long-time":{...h,...S},"long-month-day-year-long-time-24":{...h,...f},"day-short-month-year":l,"day-short-month-year-short-time":{...l,...T},"day-short-month-year-short-time-24":{...l,...g},"day-short-month-year-long-time":{...l,...S},"day-short-month-year-long-time-24":{...l,...f},"long-date":u,"long-date-short-time":{...u,...T},"long-date-short-time-24":{...u,...g},"long-date-long-time":{...u,...S},"long-date-long-time-24":{...u,...f},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":T,"long-time":S},p=(0,n.O)()({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"}),E={ar:"ar-u-nu-latn-ca-gregory"};let M=new WeakMap;const _=y["short-date-short-time"];function C(a){return y[a]}function v(a,t=_){return function(a){let t=M.get(a);if(!t){const e=(0,r.JK)(),n=E[e]||e,o=U(a.timeZone??i.qU),s={...a,timeZone:o};t=new Intl.DateTimeFormat(n,s),M.set(a,t)}return t}(t).format(a)}function k(a,t=_){return v(new Date(a),{...t,...m,...d})}function w(a,t=_){return v(new Date(`1970-01-01T${a}Z`),{...t,...m,...s})}function b(a,t=_){if(t.timeZone)return v(new Date(a),t);const e=o.c9.fromISO(a,{setZone:!0}),n=(0,r.JK)(),s=E[n]??n,d=0===e.offset?i.n$:t.timeZone,m={...t,timeZone:d};return e.toLocaleString(m,{locale:s})}function U(a){switch(a){case i.qU:return i.N5;case i.L5:return i.n$;default:return a}}(0,r.Ml)((()=>{M=new WeakMap}))},98623:(a,t,e)=>{e.d(t,{L5:()=>r,N5:()=>o,n$:()=>i,qU:()=>n});const n="system",r="unknown",i="UTC",o=Intl.DateTimeFormat().resolvedOptions().timeZone}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2507],{10838:(a,t,e)=>{e.d(t,{ao:()=>l,ud:()=>u,xO:()=>T});var n=e(49186),r=e(36563),i=e(74887),o=e(73444);const s={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function d(a){if(function(a){return a in s}(a)){const t=s[a];return!0===t?a:t}return null}const m=[],c=new Map;function h(a){for(const t of c.keys())S(a.pattern,t)&&c.delete(t)}function l(a){return m.includes(a)||(h(a),m.unshift(a)),(0,r.hA)((()=>{const t=m.indexOf(a);t>-1&&(m.splice(t,1),h(a))}))}async function u(a){const t=(0,o.JK)();c.has(a)||c.set(a,async function(a,t){const e=[];for(const n of m)if(S(n.pattern,a))try{return await n.fetchMessageBundle(a,t)}catch(a){e.push(a)}if(e.length)throw new n.A("intl:message-bundle-error",`Errors occurred while loading "${a}"`,{errors:e});throw new n.A("intl:no-message-bundle-loader",`No loader found for message bundle "${a}"`)}(a,t));const e=c.get(a);return e&&await A.add(e),e}function T(a){const t=(0,o.ZS)(a);return t?d(a)??d(t.language):null}function S(a,t){return"string"==typeof a?t.startsWith(a):a.test(t)}(0,o.Ml)((()=>{c.clear()}));const A=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(a){return this._increase(),a.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,i.Tw)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},56400:(a,t,e)=>{e.d(t,{ZS:()=>d,hv:()=>m,wr:()=>c,P6:()=>s});var n=e(98623);const r=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/Bishkek"],["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 i=e(96285);const o="shortOffset";function s(a,t=!1){return{json:{read:{source:a,reader:(t,e)=>e[a]?d(e[a]):null},write:!!t&&{allowNull:!0,writer(t,e){e[a]=t?function(a){return{timeZoneIANA:a}}(t):null}}}}}function d(a,t=n.qU){return a?"timeZoneIANA"in a?a.timeZoneIANA:function(a,t=n.qU){if(!a||!r.has(a.timeZone))return t;const e=r.get(a.timeZone);return a.timeZone.startsWith("UTC")||a.respectsDaylightSaving?e:function(a){const t=i.c9.local().setZone(a),e=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===e?"Etc/UTC":`Etc/GMT${i.mQ.instance(-e).formatOffset(0,"narrow")}`}(e)}(a,t):t}function m(a,t,e,r,i){if(t&&"date"===i)return{timeZone:n.n$,timeZoneName:void 0};const s=r.timeStyle||r.hour,d=e===n.L5;return{timeZone:d?"timestamp-offset"===i?void 0:a??n.n$:e,timeZoneName:d&&s?o:void 0}}function c(a){const t=new Set(["etc/utc","etc/gmt","gmt"]),e=new Set(Intl.supportedValuesOf("timeZone").map((a=>a.toLowerCase())));return a===n.qU||a===n.L5||t.has(a.toLowerCase())||e.has(a.toLowerCase())}},65529:(a,t,e)=>{e.d(t,{A:()=>s});var n=e(90237),r=e(69622),i=e(36563),o=e(40608);class s{constructor(){this._emitter=new s.EventEmitter(this)}emit(a,t){return this._emitter.emit(a,t)}on(a,t){return this._emitter.on(a,t)}once(a,t){return this._emitter.once(a,t)}hasEventListener(a){return this._emitter.hasEventListener(a)}}!function(a){class t{constructor(a=null){this._target=a,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(a,t){let e=this._listenersMap?.get(a);if(!e)return!1;const n=this._target||this;let r=!1;for(const a of e.slice()){const e="deref"in a?a.deref():a;e?e?.call(n,t):r=!0}return r&&(e=e.filter((a=>!("deref"in a)||null!=a.deref())),this._listenersMap.set(a,e)),e.length>0}on(a,t){if(Array.isArray(a)){const e=a.map((a=>this.on(a,t)));return(0,i.vE)(e)}if(a.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const e=this._listenersMap.get(a)||[];return e.push(t),this._listenersMap.set(a,e),(0,i.hA)((()=>{const e=this._listenersMap?.get(a),n=e?.indexOf(t)??-1;n>=0&&e.splice(n,1)}))}once(a,t){const e=this.on(a,(a=>{e.remove();const n="deref"in t?t.deref():t;n?.call(null,a)}));return e}hasEventListener(a){const t=this._listenersMap?.get(a);return null!=t&&t.length>0}}a.EventEmitter=t,a.EventedMixin=a=>{let e=class extends a{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(a,t){return this._emitter.emit(a,t)}on(a,t){return this._emitter.on(a,t)}once(a,t){return this._emitter.once(a,t)}hasEventListener(a){return this._emitter.hasEventListener(a)}};return e=(0,n._)([(0,o.$)("esri.core.Evented")],e),e};let e=class extends r.A{constructor(){super(...arguments),this._emitter=new s.EventEmitter(this)}destroy(){this._emitter.clear()}emit(a,t){return this._emitter.emit(a,t)}on(a,t){return this._emitter.on(a,t)}once(a,t){return this._emitter.once(a,t)}hasEventListener(a){return this._emitter.hasEventListener(a)}};e=(0,n._)([(0,o.$)("esri.core.Evented.EventedAccessor")],e),a.EventedAccessor=e}(s)},66552:(a,t,e)=>{e.d(t,{J:()=>r,O:()=>o});var n=e(93637);class r{constructor(a,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=a,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(a){const t={};for(const e in a)t[a[e]]=e;return t}(a),this.apiValues=i(this._apiToJSON),this.jsonValues=i(this._jsonToAPI),this.read=a=>this.fromJSON(a),this.write=(a,t,e)=>{const r=this.toJSON(a);void 0!==r&&(0,n.sM)(e,r,t)},this.write.isJSONMapWriter=!0}toJSON(a){if(null==a)return null;if(this._apiToJSON.hasOwnProperty(a)){const t=this._apiToJSON[a];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?null:a}fromJSON(a){return null!=a&&this._jsonToAPI.hasOwnProperty(a)?this._jsonToAPI[a]:this._options.ignoreUnknown?void 0:a}}function i(a){const t=[];for(const e in a)t.push(e);return t.sort(),t}function o(){return function(a,t){return new r(a,{ignoreUnknown:!0,...t})}}},73444:(a,t,e)=>{e.d(t,{JK:()=>d,Ml:()=>T,ZS:()=>c,oQ:()=>l});var n=e(36563);let r;e(44208);const i=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,o=globalThis.document?.documentElement;function s(){const a=o?.getAttribute("lang"),t=globalThis.navigator?.language;return i??a??t??"en"}function d(){return void 0===r&&(r=s()),r}const m=/^(?<language>[a-z]{2,3})(?:-[a-z]{3})?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(a=d()){return m.exec(a)?.groups}const h=[];function l(a){return h.push(a),(0,n.hA)((()=>{h.splice(h.indexOf(a),1)}))}new Map;const u=[];function T(a){return u.push(a),(0,n.hA)((()=>u.splice(u.indexOf(a),1)))}function S(){const a=s();r!==a&&([...u].forEach((t=>t(a))),r=a,[...h].forEach((t=>t(a))))}globalThis.addEventListener?.("languagechange",S),o&&new MutationObserver((()=>{S()})).observe(o,{attributeFilter:["lang"]})},79901:(a,t,e)=>{e.d(t,{w:()=>d});var n=e(56507),r=e(96156);const i=Object.prototype.toString;function o(a){const t="__accessorMetadata__"in a?(0,n.dp)(a):a;return function(...a){if(a.push(t),"number"==typeof a[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return s.apply(this,a)}}function s(a,t,e,n){(0,r.z4)(a,t).cast=n}function d(...a){if(3!==a.length||"string"!=typeof a[1])return 1===a.length&&"[object Function]"===i.call(a[0])?o(a[0]):1===a.length&&"string"==typeof a[0]?function(a){return(t,e)=>{(0,r.z4)(t,a).cast=t[e]}}(a[0]):void 0}},97770:(a,t,e)=>{e.d(t,{Ey:()=>b,F8:()=>k,J2:()=>C,Yq:()=>v,_v:()=>p,iS:()=>w,wj:()=>U});var n=e(66552),r=e(73444),i=e(98623),o=(e(56400),e(96285));const s={year:void 0,month:void 0,day:void 0,weekday:void 0},d={hour:void 0,minute:void 0,second:void 0},m={timeZone:i.n$},c={year:"numeric",month:"numeric",day:"numeric"},h={year:"numeric",month:"long",day:"numeric"},l={year:"numeric",month:"short",day:"numeric"},u={year:"numeric",month:"long",weekday:"long",day:"numeric"},T={hour:"numeric",minute:"numeric"},S={...T,second:"numeric"},A={hourCycle:"h23"},g={...T,...A},f={...S,...A},y={"short-date":c,"short-date-short-time":{...c,...T},"short-date-short-time-24":{...c,...g},"short-date-long-time":{...c,...S},"short-date-long-time-24":{...c,...f},"short-date-le":c,"short-date-le-short-time":{...c,...T},"short-date-le-short-time-24":{...c,...g},"short-date-le-long-time":{...c,...S},"short-date-le-long-time-24":{...c,...f},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...T},"long-month-day-year-short-time-24":{...h,...g},"long-month-day-year-long-time":{...h,...S},"long-month-day-year-long-time-24":{...h,...f},"day-short-month-year":l,"day-short-month-year-short-time":{...l,...T},"day-short-month-year-short-time-24":{...l,...g},"day-short-month-year-long-time":{...l,...S},"day-short-month-year-long-time-24":{...l,...f},"long-date":u,"long-date-short-time":{...u,...T},"long-date-short-time-24":{...u,...g},"long-date-long-time":{...u,...S},"long-date-long-time-24":{...u,...f},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":T,"long-time":S},p=(0,n.O)()({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"}),E={ar:"ar-u-nu-latn-ca-gregory"};let M=new WeakMap;const _=y["short-date-short-time"];function C(a){return y[a]}function v(a,t=_){return function(a){let t=M.get(a);if(!t){const e=(0,r.JK)(),n=E[e]||e,o=U(a.timeZone??i.qU),s={...a,timeZone:o};t=new Intl.DateTimeFormat(n,s),M.set(a,t)}return t}(t).format(a)}function w(a,t=_){return v(new Date(a),{...t,...m,...d})}function k(a,t=_){return v(new Date(`1970-01-01T${a}Z`),{...t,...m,...s})}function b(a,t=_){if(t.timeZone)return v(new Date(a),t);const e=o.c9.fromISO(a,{setZone:!0}),n=(0,r.JK)(),s=E[n]??n,d=0===e.offset?i.n$:t.timeZone,m={...t,timeZone:d};return e.toLocaleString(m,{locale:s})}function U(a){switch(a){case i.qU:return i.N5;case i.L5:return i.n$;default:return a}}(0,r.Ml)((()=>{M=new WeakMap}))},98623:(a,t,e)=>{e.d(t,{L5:()=>r,N5:()=>o,n$:()=>i,qU:()=>n});const n="system",r="unknown",i="UTC",o=Intl.DateTimeFormat().resolvedOptions().timeZone}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3562],{751:(e,t,r)=>{r.d(t,{CJ:()=>f});var a=r(49186),n=r(4718),i=r(93637),s=r(67124),o=r(83531);const l=new Set(["bing-maps","imagery","imagery-tile","map-image","open-street-map","tile","unknown","unsupported","vector-tile","web-tile","wcs","wms","wmts"]),c=new Set(["catalog","csv","feature","geo-rss","geojson","group","imagery","imagery-tile","kml","knowledge-graph","map-image","map-notes","media","ogc-feature","oriented-imagery","route","stream","subtype-group","tile","unknown","unsupported","vector-tile","web-tile","wcs","wfs","wms","wmts"]),u=new Set([...c,"link-chart"]);function y(e,t){if(t.restrictedWebMapWriting){const r=function(e){switch(e.layerContainerType){case"basemap":return l;case"operational-layers":return"link-chart"===e.origin?u:c;default:return null}}(t);return null==r||r.has(e.type)&&!(0,o.Ov)(e)}return!0}function p(e,t){"maxScale"in e&&(t.maxScale=(0,s.B)(e.maxScale)??void 0),"minScale"in e&&(t.minScale=(0,s.B)(e.minScale)??void 0)}function f(e,t,r){if(!e.persistenceEnabled)return null;if(!("write"in e)||!e.write)return r?.messages&&r.messages.push(new a.A("layer:unsupported",`Layers (${e.title}, ${e.id}) of type '${e.declaredClass}' cannot be persisted`,{layer:e})),null;if((0,o.Ov)(e)&&!e.isTable)t=e.resourceInfo;else if(y(e,r)){const t={};return e.write(t,r)?t:null}return null!=t&&function(e,t){if(function(e,t){if(t)if((0,o.Ov)(e)){const r=(0,i.wc)("featureCollection.layers",t),a=r?.[0]?.layerDefinition;a&&p(e,a)}else"group"!==e.type&&p(e,t)}(e,t),t&&(t.id=e.id,"blendMode"in e&&(t.blendMode=e.blendMode,"normal"===t.blendMode&&delete t.blendMode),t.opacity=(0,s.B)(e.opacity)??void 0,t.title=e.title||"Layer",t.visibility=e.visible,"legendEnabled"in e&&"wmts"!==e.type))if((0,o.Ov)(e)){const r=t.featureCollection;r&&(r.showLegend=e.legendEnabled)}else t.showLegend=e.legendEnabled}(e,t=(0,n.o8)(t)),t}},8303:(e,t,r)=>{r.d(t,{A:()=>S});var a=r(90237),n=r(92602),i=r(70333),s=r(78888),o=r(60999),l=r(49186),c=r(53966),u=r(97768),y=r(74887),p=r(84952),f=r(10107),d=(r(44208),r(87811),r(36005)),h=r(40608),m=r(43937),g=r(83531),v=r(20655),L=r(80812),b=r(41318),w=r(10407);const S=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.pR)(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 L.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:a}=await r.e(1204).then(r.bind(r,41204));return(0,y.Te)(t),await a({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,y.zf)(e)||c.A.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,y.QP)(e),!0))))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:a},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",a),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,y.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const a=!i.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,a);let s,o;if(n)s=r.portal.url;else try{s=await(0,g.wI)(this.url,t)}catch(e){(0,y.QP)(e)}if(!s||!(0,p.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(i.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,y.QP)(e)}const l=!0,c=!1,u=!1;if(!o)return{features:{edit:l,fullEdit:c},content:{updateItem:u}};try{if(n?await r.reload():(r=new L.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,a)}catch(e){(0,y.QP)(e)}return{features:{edit:l,fullEdit:c},content:{updateItem:u}}}_getUserPrivileges(e,t){const r=(0,w.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,y.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?i.id?.findCredential(this.url):null;if(!t)return!0;const r=A.credential===t?A.user:await this._fetchEditingUser(e);return A.credential=t,A.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=i.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const a=`${r.owningSystemUrl}/sharing/rest`,n=v.A.getDefault();if(n&&n.loaded&&(0,p.S8)(n.restUrl)===(0,p.S8)(a))return n.user;const l=`${a}/community/self`,c=null!=e?e.signal:null,u=await(0,o.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:c}));return u.ok?b.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,a=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&a&&!(0,p.ut)(a.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,a._)([(0,f.MZ)({type:L.default})],t.prototype,"portalItem",null),(0,a._)([(0,d.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,a._)([(0,m.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,a._)([(0,f.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,a._)([(0,f.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,a._)([(0,f.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,a._)([(0,f.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,a._)([(0,h.$)("esri.layers.mixins.PortalLayer")],t),t},A={credential:null,user:null}},8947:(e,t,r)=>{r.d(t,{L:()=>s});var a=r(60999),n=r(74887),i=r(67076);async function s(e,t,r){const s=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(s&&"unique-value"===s.type&&s.styleOrigin){const o=await(0,a.Ke)(s.populateFromStyle());if((0,n.Te)(r),!1===o.ok){const r=o.error;t?.messages&&t.messages.push(new i.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},22429:(e,t,r)=>{r.d(t,{v:()=>n});var a=r(24183);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,t){const r=this._serviceMetadatas.get(e);if(r)return r;const n=await(0,a.V)(e,t);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:t}=e;if(!t)return null;const{_itemDatas:r}=this;if(r.has(t))return r.get(t);const a=await e.fetchData();return r.set(t,a),a}async fetchCustomParameters(e,t){const r=await this.fetchItemData(e);return r&&"object"==typeof r&&(t?t(r):r.customParameters)||null}}},25036:(e,t,r)=>{r.d(t,{j:()=>s});var a=r(90237),n=r(10107),i=(r(44208),r(53966),r(87811),r(40608));const s=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,a._)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,a._)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,a._)([(0,n.MZ)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,a._)([(0,i.$)("esri.layers.mixins.ScaleRangeLayer")],t),t}},26121:(e,t,r)=>{r.d(t,{c:()=>s,d:()=>n});var a=r(49186);async function n(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}const i=new Set(["layer:unsupported","property:unsupported","symbol:unsupported","symbol-layer:unsupported","url:unsupported"]);function s(e,t,r){let n=(e.messages??[]).filter((({type:e})=>"error"===e)).map((({name:e,message:t,details:r})=>new a.A(e,t,r)));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map((e=>new a.A("url:unsupported",`Relative url '${e}' is not supported`))))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:a}=r;e&&(n=n.filter((({name:e})=>!(i.has(e)||t.includes(e))))),a&&(n=n.filter((e=>"web-document-write:property-required"!==e.name)))}if(n.length>0)throw new a.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}},36708:(e,t,r)=>{r.d(t,{C_:()=>p,OH:()=>h,Vh:()=>m,on:()=>y,pc:()=>g,wB:()=>l,z7:()=>c});var a=r(37955),n=r(36563),i=r(97768),s=r(74887),o=r(14012);function l(e,t,r={}){return u(e,t,r,f)}function c(e,t,r={}){return u(e,t,r,d)}function u(e,t,r={},a){let n=null;const s=r.once?(e,r)=>{a(e)&&((0,i.xt)(n),t(e,r))}:(e,r)=>{a(e)&&t(e,r)};if(n=(0,o.Cn)(e,s,r.sync,r.equals),r.initial){const t=e();s(t,t)}return n}function y(e,t,r,s={}){let o=null,c=null,u=null;function y(){o&&c&&(c.remove(),s.onListenerRemove?.(o),o=null,c=null)}function p(e){s.once&&s.once&&(0,i.xt)(u),r(e)}const f=l(e,((e,r)=>{y(),(0,a.wb)(e)&&(o=e,c=(0,a.on)(e,t,p),s.onListenerAdd?.(e))}),{sync:s.sync,initial:!0});return u=(0,n.hA)((()=>{f.remove(),y()})),u}function p(e,t){return function(e,t,r){if((0,s.G4)(r))return Promise.reject((0,s.NK)());const a=e();if(t?.(a))return Promise.resolve(a);let o=null;function l(){o=(0,i.xt)(o)}return new Promise(((a,i)=>{o=(0,n.vE)([(0,s.u7)(r,(()=>{l(),i((0,s.NK)())})),u(e,(e=>{l(),a(e)}),{sync:!1,once:!0},t??f)])}))}(e,d,t)}function f(e){return!0}function d(e){return!!e}r(80559);const h={sync:!0},m={initial:!0},g={sync:!0,initial:!0}},38961:(e,t,r)=>{r.d(t,{A:()=>u});var a=r(90237),n=r(5503),i=r(36708),s=r(10107),o=r(40608),l=r(80559);let c=class extends n.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,l.fm)((()=>this._refresh()),i.OH))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new n.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const a of t)if(a){if(r(a)){const t=this.indexOf(a,e);t>=0?t!==e&&this.reorder(a,e):this.add(a,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(a);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,a._)([(0,s.MZ)()],c.prototype,"getCollections",void 0),(0,a._)([(0,s.MZ)()],c.prototype,"getChildrenFunction",void 0),(0,a._)([(0,s.MZ)()],c.prototype,"itemFilterFunction",void 0),c=(0,a._)([(0,o.$)("esri.core.CollectionFlattener")],c);const u=c},45613:(e,t,r)=>{r.d(t,{fromItem:()=>p,n:()=>f});var a=r(49186),n=r(92009),i=r(23154),s=r(22429),o=r(83531),l=r(4513),c=r(80812),u=r(66964),y=r(10407);async function p(e){let{portalItem:t}=e;!t||t instanceof c.default||(t=new c.default(t));const r=await async function(e){await e.load();const t=new s.v;return async function(e){const t=e.className,r=l.S[t];return{constructor:await r(),properties:e.properties}}(await f(e,t))}(t);return new(0,r.constructor)({portalItem:t,...r.properties})}async function f(e,t){switch(e.type){case"3DTiles Service":return e.typeKeywords.includes("3DObject")?{className:"UnsupportedLayer"}:{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const t=(0,y.Y)(e,"Map Notes"),r=(0,y.Y)(e,"Markup");if(t||r)return{className:"MapNotesLayer"};if((0,y.Y)(e,"Route Layer"))return{className:"RouteLayer"};const a=await e.fetchData();return 1===(0,u.XH)(a)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,t){const r=await d(e,t);if("object"==typeof r){const{sourceJSON:e,className:t}=r,a={sourceJSON:e};return null!=r.id&&(a.layerId=r.id),{className:t||"FeatureLayer",properties:a}}return{className:"GroupLayer"}}(e,t);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,t){await e.load();const r=e.typeKeywords?.map((e=>e.toLowerCase()))??[];if(r.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(r.includes("tiled imagery"))return{className:"ImageryTileLayer"};const a=await t.fetchItemData(e),n=a?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const i=await t.fetchServiceMetadata(e.url,{customParameters:await t.fetchCustomParameters(e)}),s=i.cacheType?.toLowerCase(),o=i.capabilities?.toLowerCase().includes("tilesonly"),l=i.tileInfo?.format?.toLowerCase()??"",c=null==s&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(l);return"map"===s||c||o?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,t);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,t){return await async function(e,t){const{tileInfo:r}=await t.fetchServiceMetadata(e.url,{customParameters:await t.fetchCustomParameters(e)});return r}(e,t)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,t);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,t){const r=await d(e,t,(async()=>{try{if(!e.url)return[];const{serverUrl:r}=await(0,n.L)(e.url,{sceneLayerItem:e}),a=await t.fetchServiceMetadata(r);return a?.tables??[]}catch{return[]}}));if("object"==typeof r){const a={};let n;if(null!=r.id?(a.layerId=r.id,n=`${e.url}/layers/${r.id}`):n=e.url,e.typeKeywords?.length)for(const t of Object.keys(o.XX))if(e.typeKeywords.includes(t))return{className:o.XX[t]};const i=await t.fetchServiceMetadata(n,{customParameters:await t.fetchCustomParameters(e,(e=>(0,u.pJ)(e)?.customParameters))});return{className:o.XX[i?.layerType]||"SceneLayer",properties:a}}if(!1===r){const r=await t.fetchServiceMetadata(e.url);if("Voxel"===r?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,t);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new a.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function d(e,t,r){const{url:a,type:n}=e,s="Feature Service"===n;if(!a)return{};if(/\/\d+$/.test(a)){if(s){const r=await t.fetchServiceMetadata(a,{customParameters:await t.fetchCustomParameters(e,(e=>(0,u.pJ)(e)?.customParameters))});return{id:r.id,className:(0,i.K)(r.type),sourceJSON:r}}return{}}await e.load();let o=await t.fetchItemData(e);if(s){const e=await(0,u.bO)(o,a,t),r=h(e);if("object"==typeof r){const t=(0,u.rc)(e,r.id);r.className=(0,u.K8)(t?.layerType)}return r}if("Scene Service"===n&&(o=await(0,u.nu)(e,o,t)),(0,u.XH)(o)>0)return h(o);const l=await t.fetchServiceMetadata(a);return r&&(l.tables=await r()),h(l)}function h(e){return 1===(0,u.XH)(e)&&{id:(0,u.pJ)(e)?.id}}},62885:(e,t,r)=>{r.d(t,{H:()=>i,V:()=>n});var a=r(5503);function n(e,t,r=a.A){return t||(t=new r),t===e||(t.removeAll(),(n=e)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?t.addMany(e):e&&t.add(e)),t;var n}function i(e){return e}},63074:(e,t,r)=>{r.d(t,{LF:()=>u,dM:()=>y,sU:()=>l});var a=r(90237),n=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),s=r(89317),o=r(76369);const l={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:s.K}},"portal-item":{read:!0,write:{layerContainerTypes:s.K}}}}},c={read:{reader:o.LF},write:{allowNull:!0,writer:o.M9,layerContainerTypes:s.K}},u={json:{read:!1,write:!1,origins:{"web-map":c,"portal-item":c}}},y=e=>{let t=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,a._)([(0,n.MZ)(l)],t.prototype,"blendMode",void 0),(0,a._)([(0,n.MZ)(u)],t.prototype,"effect",void 0),t=(0,a._)([(0,i.$)("esri.layers.mixins.BlendLayer")],t),t}},66964:(e,t,r)=>{r.d(t,{Ju:()=>c,K8:()=>p,XH:()=>u,_r:()=>i,bO:()=>s,l:()=>y,nu:()=>f,pJ:()=>o,rc:()=>l});var a=r(92009),n=r(23154);function i(e){const t={id:e.id,name:e.name},r=(0,n.K)(e.type);return"FeatureLayer"!==r&&(t.layerType=r),t}async function s(e,t,r){if(null==e?.layers||null==e?.tables){const a=await r.fetchServiceMetadata(t,{customParameters:o(e)?.customParameters});(e=e||{}).layers=e.layers||a?.layers?.map(i),e.tables=e.tables||a?.tables?.map(i)}return e}function o(e){if(!e)return null;const{layers:t,tables:r}=e;return t?.length?t[0]:r?.length?r[0]:null}function l(e,t){return null==t?null:[...e.layers||[],...e.tables||[]].find((e=>e.id===t))}function c(e,t){return[...e.layers||[],...e.tables||[]].filter((({layerType:e})=>e?t.includes(e):t.includes("ArcGISFeatureLayer")))}function u(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function y(e){switch(e){case"catalog":return["CatalogLayer"];case"feature":return["ArcGISFeatureLayer"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function p(e){switch(e){case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return"FeatureLayer"}async function f(e,t,r){if(!e?.url)return t??{};if(t??={},!t.layers){const a=await r.fetchServiceMetadata(e.url);t.layers=a.layers?.map(i)}const{serverUrl:n,portalItem:s}=await(0,a.L)(e.url,{sceneLayerItem:e,customParameters:o(t)?.customParameters}).catch((()=>({serverUrl:null,portalItem:null})));if(null==n)return t.tables=[],t;if(!t.tables&&s){const e=await s.fetchData().catch((()=>null));if(e?.tables)t.tables=e.tables.map(i);else{const a=await r.fetchServiceMetadata(n,{customParameters:o(e)?.customParameters}).catch((()=>null));t.tables=a?.tables?.map(i)}}if(t.tables)for(const e of t.tables)e.url=`${n}/${e.id}`;return t}},69540:(e,t,r)=>{r.d(t,{A:()=>p});var a=r(90237),n=r(69622),i=(r(44208),r(4718)),s=(r(53966),r(97768)),o=r(35666),l=r(88620),c=r(40608);const u=e=>{let t=class extends e{clone(){const e=(0,l.oY)(this);(0,s.Lw)(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 s=t[e],l=r?.originOf(e),c=s.clonable;if(s.readOnly||!1===c||l!==o.Gr.USER&&l!==o.Gr.DEFAULTS&&l!==o.Gr.WEB_MAP&&l!==o.Gr.WEB_SCENE)continue;const u=this[e];let y=null;y="function"==typeof c?c(u):"reference"===c?u:(0,i.TU)(u),null!=u&&null==y||(l===o.Gr.DEFAULTS?n.set(e,y):a[e]=y)}const c=new(0,Object.getPrototypeOf(this).constructor)(a);if(n.size){const e=(0,l.oY)(c)?.store;if(e)for(const[t,r]of n)e.set(t,r,o.Gr.DEFAULTS)}return c}};return t=(0,a._)([(0,c.$)("esri.core.Clonable")],t),t};let y=class extends(u(n.A)){};y=(0,a._)([(0,c.$)("esri.core.Clonable")],y),(y||(y={})).ClonableMixin=u;const p=y},75356:(e,t,r)=>{r.d(t,{N:()=>M,populateOperationalLayers:()=>u});var a=r(5503),n=(r(44208),r(22429)),i=r(4513),s=r(80812);function o(e,t){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===t}var l=r(45613),c=r(8947);async function u(e,t,r){if(!t)return;const a=t.map((e=>async function(e,t){return async function(e,t,r){const a=new e;return a.read(t,r.context),"group"===a.type&&("GroupLayer"===t.layerType?await M(a,t,r):A(t)?function(e,t,r){t.itemId&&(e.portalItem=new s.default({id:t.itemId,portal:r?.portal}),e.when((()=>{const a=a=>{const n=a.layerId;C(a,e,t,n,r);const i=t.featureCollection?.layers?.[n];i&&a.read(i,r)};e.layers?.forEach(a),e.tables?.forEach(a)})))}(a,t,r.context):S(t)&&await async function(e,t,r){const a=i.S.FeatureLayer,n=await a(),s=t.featureCollection,o=s?.showLegend,l=s?.layers?.map(((a,i)=>{const s=new n;s.read(a,r);const l={...r,ignoreDefaults:!0};return C(s,e,t,i,l),null!=o&&s.read({showLegend:o},l),s}));e.layers.addMany(l??[])}(a,t,r.context)),await(0,c.L)(a,r.context),a}(await w(e,t),e,t)}(e,r))),n=await Promise.allSettled(a);for(const t of n)"rejected"===t.status||t.value&&e.add(t.value)}const y={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",Object3DTilesLayer:"UnsupportedLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},p={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},f={ArcGISFeatureLayer:"FeatureLayer"},d={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",DefaultTileLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},h={ArcGISAnnotationLayer:"UnsupportedLayer",ArcGISDimensionLayer:"UnsupportedLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},m={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},g={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",DefaultTileLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},v={...h,LinkChartLayer:"LinkChartLayer"},L={...m},b={...g};async function w(e,t){const r=t.context,a=I(r);let c=e.layerType||e.type;!c&&t?.defaultLayerType&&(c=t.defaultLayerType);const u=a[c];let y=u?i.S[u]:i.S.UnknownLayer;if(A(e)){const t=r?.portal;if(e.itemId){const r=new s.default({id:e.itemId,portal:t});await r.load();const a=(await(0,l.n)(r,new n.v)).className||"UnknownLayer";y=i.S[a]}}else"ArcGISFeatureLayer"===c?function(e){return o(e,"notes")}(e)||function(e){return o(e,"markup")}(e)?y=i.S.MapNotesLayer:function(e){return o(e,"route")}(e)?y=i.S.RouteLayer:S(e)&&(y=i.S.GroupLayer):e.wmtsInfo?.url&&e.wmtsInfo.layerIdentifier?y=i.S.WMTSLayer:"WFS"===c&&"2.0.0"!==e.wfsInfo?.version&&(y=i.S.UnsupportedLayer);return y()}function S(e){return"ArcGISFeatureLayer"===e.layerType&&!A(e)&&(e.featureCollection?.layers?.length??0)>1}function A(e){return"Feature Collection"===e.type}function I(e){let t;switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap":t=d;break;case"ground":t=p;break;case"tables":t=f;break;default:t=y}break;case"link-chart":switch(e.layerContainerType){case"basemap":t=b;break;case"tables":t=L;break;default:t=v}break;default:switch(e.layerContainerType){case"basemap":t=g;break;case"tables":t=m;break;default:t=h}}return t}async function M(e,t,r){const n=new a.A,i=u(n,Array.isArray(t.layers)?t.layers:[],r);try{try{if(await i,"group"===e.type)return e.layers.addMany(n),e}catch(t){e.destroy();for(const e of n)e.destroy();throw t}}catch(e){throw e}}function C(e,t,r,a,n){e.read({id:`${t.id}-sublayer-${a}`,visibility:r.visibleLayers?.includes(a)??!0},n)}},76369:(e,t,r)=>{r.d(t,{LF:()=>A,M9:()=>I});var a=r(49186),n=r(93637),i=r(40876),s=r(59247),o=r(27865);function l(e,t,r,a){var n=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(n,l.prototype),n.expected=t,n.found=r,n.location=a,n.name="SyntaxError",n}function c(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}function u(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=y(e);return t&&0!==t.length?t:null}const t=e.map((e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new a.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:y(e.value)}}));t.sort(((e,t)=>t.effects.length-e.effects.length));for(let e=0;e<t.length-1;e++){if(!(0,o.mj)(t[e].effects,t[e+1].effects))throw new a.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,o.O9)(t[e].effects,t[e+1].effects)}return t.sort(((e,t)=>t.scale-e.scale)),t}function y(e){let t;if(!e)return[];try{t=function(e,t){var r,a={},n=(t=void 0!==t?t:{}).grammarSource,i={start:Be},s=Be,o="none",c=")",u=",",y="(",p="%",f="px",d="cm",h="mm",m="in",g="pt",v="pc",L="deg",b="rad",w="grad",S="turn",A="#",I=".",M="e",C=/^[ \t\n\r]/,T=/^[a-z\-]/,x=/^[0-9a-fA-F]/,_=/^[+\-]/,G=/^[0-9]/,F=Re("none"),P=Ve("none",!1),O=Ve(")",!1),E=Ve(",",!1),$=Re("whitespace"),N=We([" ","\t","\n","\r"],!1,!1),U=Re("function"),k=Ve("(",!1),V=Re("identifier"),W=We([["a","z"],"-"],!1,!1),R=Re("percentage"),D=Ve("%",!1),j=Re("length"),H=Ve("px",!1),B=Ve("cm",!1),K=Ve("mm",!1),Z=Ve("in",!1),J=Ve("pt",!1),X=Ve("pc",!1),q=Re("angle"),z=Ve("deg",!1),Q=Ve("rad",!1),Y=Ve("grad",!1),ee=Ve("turn",!1),te=Re("number"),re=Re("color"),ae=Ve("#",!1),ne=We([["0","9"],["a","f"],["A","F"]],!1,!1),ie=We(["+","-"],!1,!1),se=We([["0","9"]],!1,!1),oe=Ve(".",!1),le=Ve("e",!1),ce=function(){return[]},ue=function(e,t){return{type:"function",name:e,parameters:t||[]}},ye=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map((function(e){return e[3]}))}(t))}(e,t):[e]},pe=function(e){return{type:"quantity",value:e.value,unit:e.unit}},fe=function(e){return{type:"color",colorType:e.type,value:e.value}},de=function(e){return e},he=function(){return ke()},me=function(e){return{value:e,unit:"%"}},ge=function(e){return{value:e,unit:"px"}},ve=function(e){return{value:e,unit:"cm"}},Le=function(e){return{value:e,unit:"mm"}},be=function(e){return{value:e,unit:"in"}},we=function(e){return{value:e,unit:"pt"}},Se=function(e){return{value:e,unit:"pc"}},Ae=function(e){return{value:e,unit:"deg"}},Ie=function(e){return{value:e,unit:"rad"}},Me=function(e){return{value:e,unit:"grad"}},Ce=function(e){return{value:e,unit:"turn"}},Te=function(e){return{value:e,unit:null}},xe=function(){return{type:"hex",value:ke()}},_e=function(e){return{type:"function",value:e}},Ge=function(){return{type:"named",value:ke()}},Fe=function(){return parseFloat(ke())},Pe=0|t.peg$currPos,Oe=Pe,Ee=[{line:1,column:1}],$e=Pe,Ne=t.peg$maxFailExpected||[],Ue=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');s=i[t.startRule]}function ke(){return e.substring(Oe,Pe)}function Ve(e,t){return{type:"literal",text:e,ignoreCase:t}}function We(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Re(e){return{type:"other",description:e}}function De(t){var r,a=Ee[t];if(a)return a;if(t>=Ee.length)r=Ee.length-1;else for(r=t;!Ee[--r];);for(a={line:(a=Ee[r]).line,column:a.column};r<t;)10===e.charCodeAt(r)?(a.line++,a.column=1):a.column++,r++;return Ee[t]=a,a}function je(e,t,r){var a=De(e),i=De(t);return{source:n,start:{offset:e,line:a.line,column:a.column},end:{offset:t,line:i.line,column:i.column}}}function He(e){Pe<$e||(Pe>$e&&($e=Pe,Ne=[]),Ne.push(e))}function Be(){var e;return(e=Ke())===a&&(e=function(){var e,t;if(e=[],(t=Ze())!==a)for(;t!==a;)e.push(t),t=Ze();else e=a;return e}()),e}function Ke(){var t,r;return Ue++,t=Pe,Xe(),e.substr(Pe,4)===o?(r=o,Pe+=4):(r=a,0===Ue&&He(P)),r!==a?(Xe(),Oe=t,t=ce()):(Pe=t,t=a),Ue--,t===a&&0===Ue&&He(F),t}function Ze(){var t,r,n,i;return t=Pe,Xe(),(r=function(){var t,r,n;return Ue++,t=Pe,(r=qe())!==a?(40===e.charCodeAt(Pe)?(n=y,Pe++):(n=a,0===Ue&&He(k)),n!==a?(Oe=t,t=de(r)):(Pe=t,t=a)):(Pe=t,t=a),Ue--,t===a&&(r=a,0===Ue&&He(U)),t}())!==a?(Xe(),(n=function(){var t,r,n,i,s,o,l,c;if(t=Pe,(r=Je())!==a){for(n=[],i=Pe,s=Xe(),44===e.charCodeAt(Pe)?(o=u,Pe++):(o=a,0===Ue&&He(E)),o===a&&(o=null),l=Xe(),(c=Je())!==a?i=s=[s,o,l,c]:(Pe=i,i=a);i!==a;)n.push(i),i=Pe,s=Xe(),44===e.charCodeAt(Pe)?(o=u,Pe++):(o=a,0===Ue&&He(E)),o===a&&(o=null),l=Xe(),(c=Je())!==a?i=s=[s,o,l,c]:(Pe=i,i=a);Oe=t,t=ye(r,n)}else Pe=t,t=a;return t}())===a&&(n=null),Xe(),41===e.charCodeAt(Pe)?(i=c,Pe++):(i=a,0===Ue&&He(O)),i!==a?(Xe(),Oe=t,t=ue(r,n)):(Pe=t,t=a)):(Pe=t,t=a),t}function Je(){var e,t;return e=Pe,(t=ze())===a&&(t=Qe())===a&&(t=Ye())===a&&(t=function(){var e,t;return Ue++,e=Pe,Xe(),(t=tt())!==a?(Oe=e,e=Te(t)):(Pe=e,e=a),Ue--,e===a&&0===Ue&&He(te),e}()),t!==a&&(Oe=e,t=pe(t)),(e=t)===a&&(e=Pe,(t=et())!==a&&(Oe=e,t=fe(t)),e=t),e}function Xe(){var t,r;for(Ue++,t=[],r=e.charAt(Pe),C.test(r)?Pe++:(r=a,0===Ue&&He(N));r!==a;)t.push(r),r=e.charAt(Pe),C.test(r)?Pe++:(r=a,0===Ue&&He(N));return Ue--,r=a,0===Ue&&He($),t}function qe(){var t,r,n;if(Ue++,t=Pe,r=[],n=e.charAt(Pe),T.test(n)?Pe++:(n=a,0===Ue&&He(W)),n!==a)for(;n!==a;)r.push(n),n=e.charAt(Pe),T.test(n)?Pe++:(n=a,0===Ue&&He(W));else r=a;return r!==a&&(Oe=t,r=he()),Ue--,(t=r)===a&&(r=a,0===Ue&&He(V)),t}function ze(){var t,r,n;return Ue++,t=Pe,Xe(),(r=tt())!==a?(37===e.charCodeAt(Pe)?(n=p,Pe++):(n=a,0===Ue&&He(D)),n!==a?(Oe=t,t=me(r)):(Pe=t,t=a)):(Pe=t,t=a),Ue--,t===a&&0===Ue&&He(R),t}function Qe(){var t,r,n;return Ue++,t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===f?(n=f,Pe+=2):(n=a,0===Ue&&He(H)),n!==a?(Oe=t,t=ge(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===d?(n=d,Pe+=2):(n=a,0===Ue&&He(B)),n!==a?(Oe=t,t=ve(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===h?(n=h,Pe+=2):(n=a,0===Ue&&He(K)),n!==a?(Oe=t,t=Le(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===m?(n=m,Pe+=2):(n=a,0===Ue&&He(Z)),n!==a?(Oe=t,t=be(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===g?(n=g,Pe+=2):(n=a,0===Ue&&He(J)),n!==a?(Oe=t,t=we(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===v?(n=v,Pe+=2):(n=a,0===Ue&&He(X)),n!==a?(Oe=t,t=Se(r)):(Pe=t,t=a)):(Pe=t,t=a)))))),Ue--,t===a&&0===Ue&&He(j),t}function Ye(){var t,r,n;return Ue++,t=Pe,(r=tt())!==a?(e.substr(Pe,3)===L?(n=L,Pe+=3):(n=a,0===Ue&&He(z)),n!==a?(Oe=t,t=Ae(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,(r=tt())!==a?(e.substr(Pe,3)===b?(n=b,Pe+=3):(n=a,0===Ue&&He(Q)),n!==a?(Oe=t,t=Ie(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,(r=tt())!==a?(e.substr(Pe,4)===w?(n=w,Pe+=4):(n=a,0===Ue&&He(Y)),n!==a?(Oe=t,t=Me(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,(r=tt())!==a?(e.substr(Pe,4)===S?(n=S,Pe+=4):(n=a,0===Ue&&He(ee)),n!==a?(Oe=t,t=Ce(r)):(Pe=t,t=a)):(Pe=t,t=a)))),Ue--,t===a&&(r=a,0===Ue&&He(q)),t}function et(){var t,r,n,i;if(Ue++,t=Pe,35===e.charCodeAt(Pe)?(r=A,Pe++):(r=a,0===Ue&&He(ae)),r!==a){if(n=[],i=e.charAt(Pe),x.test(i)?Pe++:(i=a,0===Ue&&He(ne)),i!==a)for(;i!==a;)n.push(i),i=e.charAt(Pe),x.test(i)?Pe++:(i=a,0===Ue&&He(ne));else n=a;n!==a?(Oe=t,t=xe()):(Pe=t,t=a)}else Pe=t,t=a;return t===a&&(t=Pe,(r=Ze())!==a&&(Oe=t,r=_e(r)),(t=r)===a&&(t=Pe,(r=qe())!==a&&(Oe=t,r=Ge()),t=r)),Ue--,t===a&&(r=a,0===Ue&&He(re)),t}function tt(){var t,r,n,i,s,o,l,c;for(t=Pe,r=e.charAt(Pe),_.test(r)?Pe++:(r=a,0===Ue&&He(ie)),r===a&&(r=null),n=Pe,i=[],s=e.charAt(Pe),G.test(s)?Pe++:(s=a,0===Ue&&He(se));s!==a;)i.push(s),s=e.charAt(Pe),G.test(s)?Pe++:(s=a,0===Ue&&He(se));if(46===e.charCodeAt(Pe)?(s=I,Pe++):(s=a,0===Ue&&He(oe)),s!==a){if(o=[],l=e.charAt(Pe),G.test(l)?Pe++:(l=a,0===Ue&&He(se)),l!==a)for(;l!==a;)o.push(l),l=e.charAt(Pe),G.test(l)?Pe++:(l=a,0===Ue&&He(se));else o=a;o!==a?n=i=[i,s,o]:(Pe=n,n=a)}else Pe=n,n=a;if(n===a)if(n=[],i=e.charAt(Pe),G.test(i)?Pe++:(i=a,0===Ue&&He(se)),i!==a)for(;i!==a;)n.push(i),i=e.charAt(Pe),G.test(i)?Pe++:(i=a,0===Ue&&He(se));else n=a;if(n!==a){if(i=Pe,101===e.charCodeAt(Pe)?(s=M,Pe++):(s=a,0===Ue&&He(le)),s!==a){if(o=e.charAt(Pe),_.test(o)?Pe++:(o=a,0===Ue&&He(ie)),o===a&&(o=null),l=[],c=e.charAt(Pe),G.test(c)?Pe++:(c=a,0===Ue&&He(se)),c!==a)for(;c!==a;)l.push(c),c=e.charAt(Pe),G.test(c)?Pe++:(c=a,0===Ue&&He(se));else l=a;l!==a?i=s=[s,o,l]:(Pe=i,i=a)}else Pe=i,i=a;i===a&&(i=null),Oe=t,t=Fe()}else Pe=t,t=a;return t}if(r=s(),t.peg$library)return{peg$result:r,peg$currPos:Pe,peg$FAILED:a,peg$maxFailExpected:Ne,peg$maxFailPos:$e};if(r!==a&&Pe===e.length)return r;throw r!==a&&Pe<e.length&&He({type:"end"}),function(e,t,r){return new l(l.buildMessage(e,t),e,t,r)}(Ne,$e<e.length?e.charAt($e):null,$e<e.length?je($e,$e+1):je($e,$e))}(e)}catch(t){throw new a.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map((e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return p(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0])),new s.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return p(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0])),new s.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return p(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=h[e.unit]))throw new a.A("effect:type-error",`Expected <angle>, Actual: ${f(e)}`,{term:e})}(e),e.value*h[e.unit]||0}(e.parameters[0])),new s.Nd(t)}(e);case"blur":return function(e){let t=0;return p(e.parameters,1),1===e.parameters.length&&(t=v(e.parameters[0]),d(t,e.parameters[0])),new s.Fk(t)}(e);case"drop-shadow":return function(e){const t=[];let r=null;for(const n of e.parameters)if("color"===n.type){if(t.length&&Object.freeze(t),r)throw new a.A("effect:type-error","Accepts only one color",{});r=L(n)}else{const e=v(n);if(Object.isFrozen(t))throw new a.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&d(e,n)}if(t.length<2||t.length>3)throw new a.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new s.$b(t[0],t[1],t[2]||0,r||b("black"))}(e);case"bloom":return function(e){let t=1,r=0,a=0;return p(e.parameters,3),e.parameters[0]&&(t=g(e.parameters[0])),e.parameters[1]&&(r=v(e.parameters[1]),d(r,e.parameters[1])),e.parameters[2]&&(a=g(e.parameters[2])),new s.bv(t,r,a)}(e)}}catch(t){throw t.details.filter=e,t}throw new a.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e)))}function p(e,t){if(e.length>t)throw new a.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function f(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in m)return"<length>";if(e.unit in h)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function d(e,t){if(e<0)throw new a.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}(function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r})(l,Error),l.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var r,a=null;for(r=0;r<e.length;r++)if(e[r].source===this.location.source){a=e[r].text.split(/\r\n|\n|\r/g);break}var n=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(n):n,s=this.location.source+":"+i.line+":"+i.column;if(a){var o=this.location.end,l=c("",i.line.toString().length," "),u=a[n.line-1],y=(n.line===o.line?o.column:u.length+1)-n.column||1;t+="\n --\x3e "+s+"\n"+l+" |\n"+i.line+" | "+u+"\n"+l+" | "+c("",n.column-1," ")+c("",y,"^")}else t+="\n at "+s}return t},l.buildMessage=function(e,t){var r={literal:function(e){return'"'+n(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e)}));return"["+(e.inverted?"^":"")+t.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function a(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+a(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+a(e)}))}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+a(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+a(e)}))}function s(e){return r[e.type](e)}return"Expected "+function(e){var t,r,a=e.map(s);if(a.sort(),a.length>0){for(t=1,r=1;t<a.length;t++)a[t-1]!==a[t]&&(a[r]=a[t],r++);a.length=r}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(e)+" but "+function(e){return e?'"'+n(e)+'"':"end of input"}(t)+" found."};const h={deg:1,grad:.9,rad:180/Math.PI,turn:360},m={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new a.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${f(e)}`,{term:e})}(e);const t=e.value;return d(t,e),"%"===e.unit?.01*t:t}function v(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=m[e.unit]))throw new a.A("effect:type-error",`Expected <length>, Actual: ${f(e)}`,{term:e})}(e),e.value*m[e.unit]||0}function L(e){switch(e.colorType){case"hex":return(0,i.qh)(e.value);case"named":return b(e.value);case"function":return function(e){if(p(e.parameters,4),w.test(e.name))return[g(e.parameters[0]),g(e.parameters[1]),g(e.parameters[2]),e.parameters[3]?g(e.parameters[3]):1];if(S.test(e.name))return(0,i.z$)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new a.A("effect:type-error",`Expected <double>, Actual: ${f(e)}`,{term:e})}(e),d(e.value,e),e.value}(e.parameters[0]),g(e.parameters[1]),g(e.parameters[2]),e.parameters[3]?g(e.parameters[3]):1);throw new a.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function b(e){if(!(0,i.V6)(e))throw new a.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,i.c4)(e)}const w=/^rgba?/i,S=/^hsla?/i;function A(e,t,r){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:M(r.value)});return t}return M(e)}(e)}catch(e){r?.messages?.push(e)}return null}function I(e,t,r,a){try{const a=function(e){const t=u(e);return t?(0,o.dw)(t)?t.map((e=>e.toJSON())):t.map((({scale:e,effects:t})=>({scale:e,value:t.map((e=>e.toJSON()))}))):null}(e);(0,n.sM)(r,a,t)}catch(e){a.messages&&a.messages.push(e)}}function M(e){if(!e?.length)return"";const t=[];for(const r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[C(r,"amount")];break;case"blur":e=[C(r,"radius","pt")];break;case"hue-rotate":e=[C(r,"angle","deg")];break;case"drop-shadow":e=[C(r,"xoffset","pt"),C(r,"yoffset","pt"),C(r,"blurRadius","pt"),T(r,"color")];break;case"bloom":e=[C(r,"strength"),C(r,"radius","pt"),C(r,"threshold")]}const a=`${r.type}(${e.filter(Boolean).join(" ")})`;u(a),t.push(a)}return t.join(" ")}function C(e,t,r){if(null==e[t])throw new a.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function T(e,t){if(null==e[t])throw new a.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},78553:(e,t,r)=>{r.d(t,{D:()=>i,p:()=>n});var a=r(56507);function n(e){const t=(0,a.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function i(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},81583:(e,t,r)=>{r.d(t,{L:()=>o,g:()=>s});var a=r(60999),n=r(5503),i=r(92474);async function s(e,t){return await e.load(),o(e,t)}async function o(e,t){const r=[],s=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?s(...t):n.A.isCollection(t)?t.forEach((e=>s(e))):i.A.isLoadable(t)&&r.push(t))};t(s);let o=null;if(await(0,a.Tj)(r,(async e=>{const t=await(0,a.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||o||(o=t)})),o)throw o.error;return e}},85989:(e,t,r)=>{r.r(t),r.d(t,{default:()=>N});var a=r(90237),n=r(38961),i=r(81583),s=r(53966),o=r(92071),l=r(74887),c=r(36708),u=r(10107),y=(r(44208),r(87811),r(88620)),p=r(36005),f=r(40608),d=r(43937),h=r(35666),m=r(4146),g=r(63074),v=r(16131),L=r(8303),b=r(25036),w=r(75356),S=r(4513),A=r(80812),I=r(5503),M=r(62885);function C(e,t,r){let a,n;if(e)for(let i=0,s=e.length;i<s;i++){if(a=e.at(i),a?.[t]===r)return a;if("group"===a?.type&&(n=C(a.layers,t,r),n))return n}}const T=e=>{let t=class extends e{constructor(...e){super(...e),this.layers=new I.A;const t=e=>{e.parent=this,this.layerAdded(e),"elevation"!==e.type&&"base-elevation"!==e.type||s.A.getLogger(this).error(`Layer 'title:${e.title}, id:${e.id}' of type '${e.type}' is not supported as an operational layer and will therefore be ignored.`)},r=e=>{e.parent=null,this.layerRemoved(e)};this.addHandles([this.layers.on("before-add",(e=>{if(e.item===this)return e.preventDefault(),void s.A.getLogger(this).error("#add()","Cannot add layer to itself.");(e=>{e.parent&&"remove"in e.parent&&e.parent.remove(e)})(e.item)})),this.layers.on("after-add",(e=>t(e.item))),this.layers.on("after-remove",(e=>r(e.item)))])}destroy(){const e=this.layers.toArray();for(const t of e)t.destroy();this.layers.destroy()}set layers(e){this._set("layers",(0,M.V)(e,this._get("layers")))}add(e,t){const r=this.layers;if(t=r.getNextIndex(t),e instanceof m.A){const a=e;a.parent===this?this.reorder(a,t):r.add(a,t)}else(0,l.$X)(e)?e.then((e=>{this.destroyed||this.add(e,t)})):s.A.getLogger(this).error("#add()","The item being added is not a Layer or a Promise that resolves to a Layer.")}addMany(e,t){const r=this.layers;let a=r.getNextIndex(t);e.slice().forEach((e=>{e.parent!==this?(r.add(e,a),a+=1):this.reorder(e,a)}))}findLayerById(e){return C(this.layers,"id",e)}findLayerByUid(e){return C(this.layers,"uid",e)}remove(e){return this.layers.remove(e)}removeMany(e){return this.layers.removeMany(e)}removeAll(){return this.layers.removeAll()}reorder(e,t){return this.layers.reorder(e,t)}layerAdded(e){}layerRemoved(e){}};return(0,a._)([(0,u.MZ)()],t.prototype,"layers",null),t=(0,a._)([(0,f.$)("esri.support.LayersMixin")],t),t},x=new Set(["feature","subtype-group"]);function _(e,t,r){if(e)for(let a=0,n=e.length;a<n;a++){const n=e.at(a);if(n[t]===r)return n;if("group"===n?.type){const e=_(n.tables,t,r);if(e)return e}}}const G=e=>{let t=class extends e{constructor(...e){super(...e),this.tables=new I.A,this.addHandles([this.tables.on("after-add",(e=>{const t=e.item;t.parent&&t.parent!==this&&"tables"in t.parent&&t.parent.tables.remove(t),t.parent=this,x.has(t.type)||s.A.getLogger(this).error(`Layer 'title:${t.title}, id:${t.id}' of type '${t.type}' is not supported as a table and will therefore be ignored.`)})),this.tables.on("after-remove",(e=>{e.item.parent=null}))])}destroy(){const e=this.tables.toArray();for(const t of e)t.destroy();this.tables.destroy()}set tables(e){this._set("tables",(0,M.V)(e,this._get("tables")))}findTableById(e){return _(this.tables,"id",e)}findTableByUid(e){return _(this.tables,"uid",e)}};return(0,a._)([(0,u.MZ)()],t.prototype,"tables",null),t=(0,a._)([(0,f.$)("esri.support.TablesMixin")],t),t},F=Symbol("WebScene");var P=r(92935),O=r(26121),E=r(751);let $=class extends((0,g.dM)((0,b.j)((0,v.q)((0,L.A)(G(T((0,o.P)(m.A)))))))){constructor(e){var t;super(e),this.allLayers=new n.A({getCollections:()=>[this.layers],getChildrenFunction:e=>"layers"in e?e.layers:null}),this.allTables=(t=this,new n.A({getCollections:()=>[t.tables,t.layers],getChildrenFunction:e=>{const t=[];return"tables"in e&&t.push(e.tables),"layers"in e&&t.push(e.layers),t},itemFilterFunction:e=>{const t=e.parent;return!!t&&"tables"in t&&t.tables.includes(e)}})),this.fullExtent=void 0,this.operationalLayerType="GroupLayer",this.spatialReference=void 0,this.type="group",this._debouncedSaveOperations=(0,l.sg)((async(e,t,a)=>{const{save:n,saveAs:i}=await r.e(2958).then(r.bind(r,32958));switch(e){case P.X.SAVE:return n(this,t);case P.X.SAVE_AS:return i(this,a,t)}}))}initialize(){this._enforceVisibility(this.visibilityMode,this.visible),this.addHandles([(0,c.wB)((()=>{let e=this.parent;for(;e&&"parent"in e&&e.parent;)e=e.parent;return e&&F in e}),(e=>{const t="prevent-adding-tables";this.removeHandles(t),e&&(this.tables.removeAll(),this.addHandles((0,c.on)((()=>this.tables),"before-add",(e=>{e.preventDefault(),s.A.getLogger(this).errorOnce("tables","tables in group layers in a webscene are not supported. Please move the tables from the group layer to the webscene if you want to persist them.")})),t))}),c.pc),(0,c.wB)((()=>this.visible),this._onVisibilityChange.bind(this),c.OH)])}destroy(){this.allLayers.destroy(),this.allTables.destroy()}get sourceIsPortalItem(){return this.portalItem&&this.originIdOf("portalItem")===h.Gr.USER}_writeLayers(e,t,r,a){const n=[];if(!e)return n;e.forEach((e=>{const t=(0,E.CJ)(e,a.webmap?a.webmap.getLayerJSONFromResourceInfo(e):null,a);t?.layerType&&n.push(t)})),t.layers=n}set portalItem(e){this._set("portalItem",e)}readPortalItem(e,t,r){const{itemId:a,layerType:n}=t;if("GroupLayer"===n&&a)return new A.default({id:a,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}set visibilityMode(e){const t=this._get("visibilityMode")!==e;this._set("visibilityMode",e),t&&this._enforceVisibility(e,this.visible)}async beforeSave(){return(0,O.d)(this)}load(e){const t=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Group Layer","Scene Service"],layerModuleTypeMap:S.S,populateGroupLayer:w.N},e).catch((e=>{if((0,l.QP)(e),this.sourceIsPortalItem)throw e}));return this.addResolvingPromise(t),Promise.resolve(this)}async loadAll(){return(0,i.g)(this,(e=>{e(this.layers,this.tables)}))}async save(e){return this._debouncedSaveOperations(P.X.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(P.X.SAVE_AS,t,e)}layerAdded(e){e.visible&&"exclusive"===this.visibilityMode?this._turnOffOtherLayers(e):"inherited"===this.visibilityMode&&(e.visible=this.visible),this.hasHandles(e.uid)?console.error(`Layer read to Grouplayer: uid=${e.uid}`):this.addHandles((0,c.wB)((()=>e.visible),(t=>this._onChildVisibilityChange(e,t)),c.OH),e.uid)}layerRemoved(e){this.removeHandles(e.uid),this._enforceVisibility(this.visibilityMode,this.visible)}_turnOffOtherLayers(e){this.layers.forEach((t=>{t!==e&&(t.visible=!1)}))}_enforceVisibility(e,t){if(!(0,y.oY)(this).initialized)return;const r=this.layers;let a=r.find((e=>e.visible));switch(e){case"exclusive":r.length&&!a&&(a=r.at(0),a.visible=!0),this._turnOffOtherLayers(a);break;case"inherited":r.forEach((e=>{e.visible=t}))}}_onVisibilityChange(e){"inherited"===this.visibilityMode&&this.layers.forEach((t=>{t.visible=e}))}_onChildVisibilityChange(e,t){switch(this.visibilityMode){case"exclusive":t?this._turnOffOtherLayers(e):this._isAnyLayerVisible()||(e.visible=!0);break;case"inherited":e.visible=this.visible}}_isAnyLayerVisible(){return this.layers.some((e=>e.visible))}};(0,a._)([(0,u.MZ)({readOnly:!0,dependsOn:[]})],$.prototype,"allLayers",void 0),(0,a._)([(0,u.MZ)({readOnly:!0})],$.prototype,"allTables",void 0),(0,a._)([(0,u.MZ)({json:{read:!0,write:!0}})],$.prototype,"blendMode",void 0),(0,a._)([(0,u.MZ)()],$.prototype,"fullExtent",void 0),(0,a._)([(0,u.MZ)({readOnly:!0})],$.prototype,"sourceIsPortalItem",null),(0,a._)([(0,u.MZ)({json:{read:!1,write:{ignoreOrigin:!0}}})],$.prototype,"layers",void 0),(0,a._)([(0,d.K)("layers")],$.prototype,"_writeLayers",null),(0,a._)([(0,u.MZ)({type:["GroupLayer"]})],$.prototype,"operationalLayerType",void 0),(0,a._)([(0,u.MZ)({json:{origins:{"web-map":{read:!1,write:{overridePolicy(e,t,r){return{enabled:"Group Layer"===e?.type&&r?.initiator!==this}}}},"web-scene":{read:!1,write:!1}}}})],$.prototype,"portalItem",null),(0,a._)([(0,p.w)("web-map","portalItem",["itemId"])],$.prototype,"readPortalItem",null),(0,a._)([(0,d.K)("web-map","portalItem",{itemId:{type:String}})],$.prototype,"writePortalItem",null),(0,a._)([(0,u.MZ)()],$.prototype,"spatialReference",void 0),(0,a._)([(0,u.MZ)({json:{read:!1},readOnly:!0,value:"group"})],$.prototype,"type",void 0),(0,a._)([(0,u.MZ)({type:["independent","inherited","exclusive"],value:"independent",json:{write:!0,origins:{"web-map":{type:["independent","exclusive"],write:(e,t,r)=>{"inherited"!==e&&(t[r]=e)}}}}})],$.prototype,"visibilityMode",null),$=(0,a._)([(0,f.$)("esri.layers.GroupLayer")],$);const N=$},92935:(e,t,r)=>{var a;r.d(t,{X:()=>a}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(a||(a={}))}}]);
@@ -1 +1 @@
1
- {"widgetLabel":"Basemap Layer List","baseHeading":"Base","basemapTitle":"Basemap title","referenceHeading":"Reference","noItemsToDisplay":"There are currently no items to display.","noReferenceLayers":"No reference layers","noBaseLayers":"No base layers","layerVisibility":"Visibility","layerInvisibleAtScale":"Invisible at current map scale","layerInvisibleAtTime":"Invisible at current map time","layerError":"An error occurred loading this layer","untitledLayer":"Untitled layer","layerIncompatible":"Incompatible with basemap","layerIncompatibleTooltip":"This layer's spatial reference is incompatible with the spatial reference of the basemap.","temporary":"Temporary","tables":"Tables","catalogLayers":"Catalog layers"}
1
+ {"widgetLabel":"Basemap Layer List","baseHeading":"Base","basemapTitle":"Basemap title","referenceHeading":"Reference","noItemsToDisplay":"There are currently no items to display.","noReferenceLayers":"No reference layers","noBaseLayers":"No base layers","layerVisibility":"Visibility","showLayer":"Show {layerName}","hideLayer":"Hide {layerName}","layerInvisibleAtScale":"Invisible at current map scale","layerInvisibleAtTime":"Invisible at current map time","layerError":"An error occurred loading this layer","untitledLayer":"Untitled layer","layerIncompatible":"Incompatible with basemap","layerIncompatibleTooltip":"This layer's spatial reference is incompatible with the spatial reference of the basemap.","temporary":"Temporary","tables":"Tables","catalogLayers":"Catalog layers"}
@@ -1 +1 @@
1
- {"widgetLabel":"Basemap Layer List","baseHeading":"Base","basemapTitle":"Basemap title","referenceHeading":"Reference","noItemsToDisplay":"There are currently no items to display.","noReferenceLayers":"No reference layers","noBaseLayers":"No base layers","layerVisibility":"Visibility","layerInvisibleAtScale":"Invisible at current map scale","layerInvisibleAtTime":"Invisible at current map time","layerError":"An error occurred loading this layer","untitledLayer":"Untitled layer","layerIncompatible":"Incompatible with basemap","layerIncompatibleTooltip":"This layer's spatial reference is incompatible with the spatial reference of the basemap.","temporary":"Temporary","tables":"Tables","catalogLayers":"Catalog layers"}
1
+ {"widgetLabel":"Basemap Layer List","baseHeading":"Base","basemapTitle":"Basemap title","referenceHeading":"Reference","noItemsToDisplay":"There are currently no items to display.","noReferenceLayers":"No reference layers","noBaseLayers":"No base layers","layerVisibility":"Visibility","showLayer":"Show {layerName}","hideLayer":"Hide {layerName}","layerInvisibleAtScale":"Invisible at current map scale","layerInvisibleAtTime":"Invisible at current map time","layerError":"An error occurred loading this layer","untitledLayer":"Untitled layer","layerIncompatible":"Incompatible with basemap","layerIncompatibleTooltip":"This layer's spatial reference is incompatible with the spatial reference of the basemap.","temporary":"Temporary","tables":"Tables","catalogLayers":"Catalog layers"}
@@ -1 +1 @@
1
- {"widgetLabel":"Catalog Layer List","noItemsToDisplay":"There are currently no items to display.","layerInvisibleAtScale":"Invisible at current scale","layerInvisibleAtTime":"Invisible at current map time","layerError":"An error occurred loading this layer","untitledLayer":"Untitled layer","layerVisibility":"Visibility","layerIncompatible":"Incompatible with basemap","layerIncompatibleTooltip":"This layer's spatial reference is incompatible with the spatial reference of the basemap.","temporary":"Temporary","tables":"Tables","catalogLayers":"Catalog layers"}
1
+ {"widgetLabel":"Catalog Layer List","noItemsToDisplay":"There are currently no items to display.","layerInvisibleAtScale":"Invisible at current scale","layerInvisibleAtTime":"Invisible at current map time","layerError":"An error occurred loading this layer","untitledLayer":"Untitled layer","layerVisibility":"Visibility","showLayer":"Show {layerName}","hideLayer":"Hide {layerName}","layerIncompatible":"Incompatible with basemap","layerIncompatibleTooltip":"This layer's spatial reference is incompatible with the spatial reference of the basemap.","temporary":"Temporary","tables":"Tables","catalogLayers":"Catalog layers"}
@@ -1 +1 @@
1
- {"widgetLabel":"Catalog Layer List","noItemsToDisplay":"There are currently no items to display.","layerInvisibleAtScale":"Invisible at current scale","layerInvisibleAtTime":"Invisible at current map time","layerError":"An error occurred loading this layer","untitledLayer":"Untitled layer","layerVisibility":"Visibility","layerIncompatible":"Incompatible with basemap","layerIncompatibleTooltip":"This layer's spatial reference is incompatible with the spatial reference of the basemap.","temporary":"Temporary","tables":"Tables","catalogLayers":"Catalog layers"}
1
+ {"widgetLabel":"Catalog Layer List","noItemsToDisplay":"There are currently no items to display.","layerInvisibleAtScale":"Invisible at current scale","layerInvisibleAtTime":"Invisible at current map time","layerError":"An error occurred loading this layer","untitledLayer":"Untitled layer","layerVisibility":"Visibility","showLayer":"Show {layerName}","hideLayer":"Hide {layerName}","layerIncompatible":"Incompatible with basemap","layerIncompatibleTooltip":"This layer's spatial reference is incompatible with the spatial reference of the basemap.","temporary":"Temporary","tables":"Tables","catalogLayers":"Catalog layers"}
@@ -1 +1 @@
1
- {"widgetLabel":"Layer List","noItemsToDisplay":"There are currently no items to display.","layerInvisibleAtScale":"Invisible at current scale","layerInvisibleAtTime":"Invisible at current map time","layerError":"An error occurred loading this layer","untitledLayer":"Untitled layer","layerVisibility":"Visibility","layerIncompatible":"Incompatible with basemap","layerIncompatibleTooltip":"This layer's spatial reference is incompatible with the spatial reference of the basemap.","temporary":"Temporary","tables":"Tables","catalogLayers":"Catalog layers"}
1
+ {"widgetLabel":"Layer List","noItemsToDisplay":"There are currently no items to display.","layerInvisibleAtScale":"Invisible at current scale","layerInvisibleAtTime":"Invisible at current map time","layerError":"An error occurred loading this layer","untitledLayer":"Untitled layer","layerVisibility":"Visibility","showLayer":"Show {layerName}","hideLayer":"Hide {layerName}","layerIncompatible":"Incompatible with basemap","layerIncompatibleTooltip":"This layer's spatial reference is incompatible with the spatial reference of the basemap.","temporary":"Temporary","tables":"Tables","catalogLayers":"Catalog layers"}
@@ -1 +1 @@
1
- {"widgetLabel":"Layer List","noItemsToDisplay":"There are currently no items to display.","layerInvisibleAtScale":"Invisible at current scale","layerInvisibleAtTime":"Invisible at current map time","layerError":"An error occurred loading this layer","untitledLayer":"Untitled layer","layerVisibility":"Visibility","layerIncompatible":"Incompatible with basemap","layerIncompatibleTooltip":"This layer's spatial reference is incompatible with the spatial reference of the basemap.","temporary":"Temporary","tables":"Tables","catalogLayers":"Catalog layers"}
1
+ {"widgetLabel":"Layer List","noItemsToDisplay":"There are currently no items to display.","layerInvisibleAtScale":"Invisible at current scale","layerInvisibleAtTime":"Invisible at current map time","layerError":"An error occurred loading this layer","untitledLayer":"Untitled layer","layerVisibility":"Visibility","showLayer":"Show {layerName}","hideLayer":"Hide {layerName}","layerIncompatible":"Incompatible with basemap","layerIncompatibleTooltip":"This layer's spatial reference is incompatible with the spatial reference of the basemap.","temporary":"Temporary","tables":"Tables","catalogLayers":"Catalog layers"}
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{O as t,S as e}from"../../../chunks/SimpleGeometryCursor.js";import{t as s,d as i,G as r,g as h}from"../../../chunks/Geometry.js";import{Envelope2D as n}from"../../../chunks/Envelope2D.js";import{a as o}from"../../../chunks/Envelope.js";import{E as a,k as m,n as p}from"../../../chunks/QuadraticBezier.js";import{C as _,k as c,s as u,ar as l,l as g,ap as d,aq as G,an as C,at as y,au as I,av as f}from"../../../chunks/ProjectionTransformation.js";import{v as x}from"../../../chunks/Point2D.js";function k(t){t&&t.checkProgress()}class v{getOperatorType(){return 10012}accelerateGeometry(t,e,s){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,e,s,i){return new S(t,e,s,i)}}class S extends t{constructor(t,e,i,r){super(),this.m_shape=null,this.m_topoGraph=null,this.m_curveStitcher=null,this.m_stitchMaxDeviation=0,this.m_chainStack=[],this.m_bitsetToChains=null,this.m_chainsLists=null,this.m_visitedChainsIndex=-1,this.m_index=-1,this.m_geometryIndex=-1,this.m_progressCounter=0,this.m_currentIds=[],this.m_currentEdgeIds=[],t||s(""),this.m_progressTracker=r,this.m_options=0!==i?i:3,(this.m_options<=0||this.m_options>63)&&s("options"),this.m_inputGeometryCursor=t,this.m_sr=e}tock(){return!0}getRank(){return 1}next(){if(-1===this.m_index){this.m_shape=new a;const t=new n;t.setEmpty(),this.m_geometryIndex=this.m_shape.createGeometryUserIndex();for(let o=this.m_inputGeometryCursor.next();null!==o;o=this.m_inputGeometryCursor.next()){i(o);const e=this.m_shape.addGeometry(o);o.getGeometryType()!==r.enumPolygon&&s("Polygon Overlay only supports Polygons"),this.m_shape.setGeometryUserIndex(e,this.m_geometryIndex,this.m_inputGeometryCursor.getGeometryID());const h=this.m_inputGeometryCursor.getRank();h>m&&this.m_shape.assignRankToGeometryVertices(e,h);const a=new n;o.queryLooseEnvelope(a),t.mergeEnvelope2D(a),k(this.m_progressTracker)}this.m_inputGeometryCursor=null;const e=o(this.m_sr,t,!0),h=o(this.m_sr,t,!1);t.inflate(10*e.total()),this.m_shape.forceSetEnvelope2D(t),this.m_stitchMaxDeviation=0;let f=0;if(this.m_shape.hasCurves()){this.m_curveStitcher=new _;const s=c(e.total(),t);this.m_stitchMaxDeviation=u(e.total()),f=l(s,this.m_stitchMaxDeviation),g(this.m_shape,s,e.total(),12e3,this.m_curveStitcher,null,this.m_progressTracker)}if(d(this.m_shape,h,this.m_progressTracker)){G(this.m_shape,e.add(f),this.m_progressTracker,!0,!1);for(let t=this.m_shape.getFirstGeometry();t!==p;t=this.m_shape.getNextGeometry(t))this.m_shape.getGeometryType(t)===r.enumPolygon&&C(this.m_shape,t,-1,!1,p,this.m_progressTracker)}this.m_topoGraph=new y,this.m_topoGraph.buildGeometryParentageSets(),this.m_topoGraph.setEditShape(this.m_shape,this.m_progressTracker);const x=this.m_topoGraph.getFirstChain();for(let s=this.m_topoGraph.getChainFirstIsland(x);s!==p;s=this.m_topoGraph.getChainNextInParent(s))for(let t=this.m_topoGraph.getChainFirstIsland(s);t!==p;t=this.m_topoGraph.getChainNextInParent(t))this.m_chainStack.push(t);if(16&this.m_options){this.m_visitedChainsIndex=this.m_topoGraph.createUserIndexForChains(),this.m_bitsetToChains=new Map,this.m_chainsLists=new I;const t=[],e=this.m_topoGraph.getFirstChain();for(t.push(e);t.length>0;){const e=t.at(-1);t.pop();for(let s=this.m_topoGraph.getChainFirstIsland(e);s!==p;s=this.m_topoGraph.getChainNextInParent(s))for(let e=this.m_topoGraph.getChainFirstIsland(s);e!==p;e=this.m_topoGraph.getChainNextInParent(e)){const s=this.m_topoGraph.getChainBitSet(e);if(null!==s&&!s.isZero()){let t;this.m_bitsetToChains.has(s)?t=this.m_bitsetToChains.get(s):(t=this.m_chainsLists.createList(),this.m_bitsetToChains.set(s,t)),this.m_chainsLists.addElement(t,e)}t.push(e)}}}}return this.makeNextGeometry()}getGeometryID(){return this.m_index}getGeometryIDs(){return this.m_currentIds.slice()}getBoundaryIDs(){return this.m_currentEdgeIds.slice()}buildIdsFromBitset(t,e){if(!t)return;const s=this.m_topoGraph.getGeometriesFromBits(t);if(s.length>0){for(let t=0,i=s.length;t<i;t++)e.push(this.m_shape.getGeometryUserIndex(s[t],this.m_geometryIndex));x(e)}}makeGeometryFromChainSinglePart(t){this.m_index++;const e=new a;null!==this.m_curveStitcher&&e.setCurveStitcherPointer(this.m_curveStitcher);const s=this.m_topoGraph.extractPolygonFromChainAndIslands(e,p,t,p);return null!==this.m_curveStitcher&&this.m_curveStitcher.stitchCurves(e,s,this.m_stitchMaxDeviation,!1),e.getGeometry(s)}makeGeometryFromChainMultiPart(t,e){this.m_index++;const s=new a;null!==this.m_curveStitcher&&s.setCurveStitcherPointer(this.m_curveStitcher);const i=this.m_bitsetToChains.has(e);h(i);const r=this.m_bitsetToChains.get(e);let n=p;for(let h=this.m_chainsLists.getFirst(r);h!==I.st_nullNode();h=this.m_chainsLists.getNext(h)){const t=this.m_chainsLists.getElement(h);n=this.m_topoGraph.extractPolygonFromChainAndIslands(s,n,t,p),this.m_topoGraph.setChainUserIndex(t,this.m_visitedChainsIndex,1)}return null!==this.m_curveStitcher&&this.m_curveStitcher.stitchCurves(s,n,this.m_stitchMaxDeviation,!1),s.getGeometry(n)}makeNextGeometry(){for(k(this.m_progressTracker);this.m_chainStack.length>0;){this.m_currentIds.length=0,this.m_currentEdgeIds.length=0;const t=this.m_chainStack.at(-1);this.m_chainStack.pop();const e=this.m_topoGraph.getChainArea(t);if(0!==e)if(e<0)for(let s=this.m_topoGraph.getChainFirstIsland(t);s!==p;s=this.m_topoGraph.getChainNextInParent(s))this.m_topoGraph.getChainArea(s)>0&&this.m_chainStack.push(s);else{for(let i=this.m_topoGraph.getChainFirstIsland(t);i!==p;i=this.m_topoGraph.getChainNextInParent(i))this.m_topoGraph.getChainArea(i)<0&&this.m_chainStack.push(i);if(-1!==this.m_visitedChainsIndex&&1===this.m_topoGraph.getChainUserIndex(t,this.m_visitedChainsIndex))continue;const e=t=>{const e=t.getUnorderedBitIterator();let s=0;for(;e.next()!==f.npos();)if(s++,s>1)return s;return s},s=e(this.m_topoGraph.getChainBitSet(t));if(s>0){if(1===s&&2&this.m_options||s>1&&1&this.m_options){const e=this.m_topoGraph.getChainBitSet(t);return this.buildIdsFromBitset(e,this.m_currentIds),16&this.m_options?this.makeGeometryFromChainMultiPart(t,e):this.makeGeometryFromChainSinglePart(t)}}else{if(!(12&~this.m_options)){if(32&this.m_options){const e=this.m_topoGraph.getChainBoundaryBitSet(t);this.buildIdsFromBitset(e,this.m_currentEdgeIds)}return this.makeGeometryFromChainSinglePart(t)}if(4&this.m_options){const s=this.m_topoGraph.getChainBoundaryBitSet(t);if(e(s)>1)return 32&this.m_options&&this.buildIdsFromBitset(s,this.m_currentEdgeIds),this.makeGeometryFromChainSinglePart(t);continue}if(8&this.m_options){const s=this.m_topoGraph.getChainBoundaryBitSet(t);if(1===e(s))return 32&this.m_options&&this.buildIdsFromBitset(s,this.m_currentEdgeIds),this.makeGeometryFromChainSinglePart(t);continue}}}}return null}}const F=new v;function P(t,s,i){const r=F.executeMany(new e(t),s,i,null);return Array.from(r)}function T(){return F.supportsCurves()}export{P as executeMany,T as supportsCurves};
5
+ import{O as t,S as e}from"../../../chunks/SimpleGeometryCursor.js";import{t as s,d as i,G as r,g as h}from"../../../chunks/Geometry.js";import{Envelope2D as n}from"../../../chunks/Envelope2D.js";import{a as o}from"../../../chunks/Envelope.js";import{E as a,k as m,n as p}from"../../../chunks/QuadraticBezier.js";import{C as _,k as c,s as u,ar as l,l as g,ap as d,aq as G,an as C,at as y,au as I,av as x}from"../../../chunks/ProjectionTransformation.js";import{v as f}from"../../../chunks/Point2D.js";function k(t){t&&t.checkProgress()}class v{getOperatorType(){return 10012}accelerateGeometry(t,e,s){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,e,s,i){return new S(t,e,s,i)}}class S extends t{constructor(t,e,i,r){super(),this.m_shape=null,this.m_topoGraph=null,this.m_curveStitcher=null,this.m_stitchMaxDeviation=0,this.m_chainStack=[],this.m_bitsetToChains=null,this.m_chainsLists=null,this.m_visitedChainsIndex=-1,this.m_index=-1,this.m_geometryIndex=-1,this.m_progressCounter=0,this.m_currentIds=[],this.m_currentEdgeIds=[],t||s(""),this.m_progressTracker=r,this.m_options=0!==i?i:3,(this.m_options<=0||this.m_options>63)&&s("options"),this.m_inputGeometryCursor=t,this.m_sr=e}tock(){return!0}getRank(){return 1}next(){if(-1===this.m_index){this.m_shape=new a;const t=new n;t.setEmpty(),this.m_geometryIndex=this.m_shape.createGeometryUserIndex();for(let o=this.m_inputGeometryCursor.next();null!==o;o=this.m_inputGeometryCursor.next()){i(o);const e=this.m_shape.addGeometry(o);o.getGeometryType()!==r.enumPolygon&&s("Polygon Overlay only supports Polygons"),this.m_shape.setGeometryUserIndex(e,this.m_geometryIndex,this.m_inputGeometryCursor.getGeometryID());const h=this.m_inputGeometryCursor.getRank();h>m&&this.m_shape.assignRankToGeometryVertices(e,h);const a=new n;o.queryLooseEnvelope(a),t.mergeEnvelope2D(a),k(this.m_progressTracker)}this.m_inputGeometryCursor=null;const e=o(this.m_sr,t,!0),h=o(this.m_sr,t,!1);t.inflate(10*e.total()),this.m_shape.forceSetEnvelope2D(t),this.m_stitchMaxDeviation=0;let x=0;if(this.m_shape.hasCurves()){this.m_curveStitcher=new _;const s=c(e.total(),t);this.m_stitchMaxDeviation=u(e.total()),x=l(s,this.m_stitchMaxDeviation),g(this.m_shape,s,e.total(),12e3,this.m_curveStitcher,null,this.m_progressTracker)}if(d(this.m_shape,h,this.m_progressTracker)){G(this.m_shape,e.add(x),this.m_progressTracker,!0,!1);for(let t=this.m_shape.getFirstGeometry();t!==p;t=this.m_shape.getNextGeometry(t))this.m_shape.getGeometryType(t)===r.enumPolygon&&C(this.m_shape,t,-1,!1,p,this.m_progressTracker)}this.m_topoGraph=new y,this.m_topoGraph.buildGeometryParentageSets(),this.m_topoGraph.setEditShape(this.m_shape,this.m_progressTracker);const f=this.m_topoGraph.getFirstChain();for(let s=this.m_topoGraph.getChainFirstIsland(f);s!==p;s=this.m_topoGraph.getChainNextInParent(s))for(let t=this.m_topoGraph.getChainFirstIsland(s);t!==p;t=this.m_topoGraph.getChainNextInParent(t))this.m_chainStack.push(t);if(16&this.m_options){this.m_visitedChainsIndex=this.m_topoGraph.createUserIndexForChains(),this.m_bitsetToChains=new Map,this.m_chainsLists=new I;const t=[],e=this.m_topoGraph.getFirstChain();for(t.push(e);t.length>0;){const e=t.at(-1);t.pop();for(let s=this.m_topoGraph.getChainFirstIsland(e);s!==p;s=this.m_topoGraph.getChainNextInParent(s))for(let e=this.m_topoGraph.getChainFirstIsland(s);e!==p;e=this.m_topoGraph.getChainNextInParent(e)){const s=this.m_topoGraph.getChainBitSet(e);if(null!==s&&!s.isZero()){let t;this.m_bitsetToChains.has(s)?t=this.m_bitsetToChains.get(s):(t=this.m_chainsLists.createList(),this.m_bitsetToChains.set(s,t)),this.m_chainsLists.addElement(t,e)}t.push(e)}}}}return this.makeNextGeometry()}getGeometryID(){return this.m_index}getGeometryIDs(){return this.m_currentIds.slice()}getBoundaryIDs(){return this.m_currentEdgeIds.slice()}buildIdsFromBitset(t,e){if(!t)return;const s=this.m_topoGraph.getGeometriesFromBits(t);if(s.length>0){for(let t=0,i=s.length;t<i;t++)e.push(this.m_shape.getGeometryUserIndex(s[t],this.m_geometryIndex));f(e)}}makeGeometryFromChainSinglePart(t){this.m_index++;const e=new a;null!==this.m_curveStitcher&&e.setCurveStitcherPointer(this.m_curveStitcher);const s=this.m_topoGraph.extractPolygonFromChainAndIslands(e,p,t,p);return null!==this.m_curveStitcher&&this.m_curveStitcher.stitchCurves(e,s,this.m_stitchMaxDeviation,!1),e.getGeometry(s)}makeGeometryFromChainMultiPart(t,e){this.m_index++;const s=new a;null!==this.m_curveStitcher&&s.setCurveStitcherPointer(this.m_curveStitcher);const i=this.m_bitsetToChains.has(e);h(i);const r=this.m_bitsetToChains.get(e);let n=p;for(let h=this.m_chainsLists.getFirst(r);h!==I.st_nullNode();h=this.m_chainsLists.getNext(h)){const t=this.m_chainsLists.getElement(h);n=this.m_topoGraph.extractPolygonFromChainAndIslands(s,n,t,p),this.m_topoGraph.setChainUserIndex(t,this.m_visitedChainsIndex,1)}return null!==this.m_curveStitcher&&this.m_curveStitcher.stitchCurves(s,n,this.m_stitchMaxDeviation,!1),s.getGeometry(n)}makeNextGeometry(){for(k(this.m_progressTracker);this.m_chainStack.length>0;){this.m_currentIds.length=0,this.m_currentEdgeIds.length=0;const t=this.m_chainStack.at(-1);this.m_chainStack.pop();const e=this.m_topoGraph.getChainArea(t);if(0!==e)if(e<0)for(let s=this.m_topoGraph.getChainFirstIsland(t);s!==p;s=this.m_topoGraph.getChainNextInParent(s))this.m_topoGraph.getChainArea(s)>0&&this.m_chainStack.push(s);else{for(let i=this.m_topoGraph.getChainFirstIsland(t);i!==p;i=this.m_topoGraph.getChainNextInParent(i))this.m_topoGraph.getChainArea(i)<0&&this.m_chainStack.push(i);if(-1!==this.m_visitedChainsIndex&&1===this.m_topoGraph.getChainUserIndex(t,this.m_visitedChainsIndex))continue;const e=t=>{const e=t.getUnorderedBitIterator();let s=0;for(;e.next()!==x.npos();)if(s++,s>1)return s;return s},s=e(this.m_topoGraph.getChainBitSet(t));if(s>0){if(1===s&&2&this.m_options||s>1&&1&this.m_options){const e=this.m_topoGraph.getChainBitSet(t);return this.buildIdsFromBitset(e,this.m_currentIds),16&this.m_options?this.makeGeometryFromChainMultiPart(t,e):this.makeGeometryFromChainSinglePart(t)}}else{if(!(12&~this.m_options)){if(32&this.m_options){const e=this.m_topoGraph.getChainBoundaryBitSet(t);this.buildIdsFromBitset(e,this.m_currentEdgeIds)}return this.makeGeometryFromChainSinglePart(t)}if(4&this.m_options){const s=this.m_topoGraph.getChainBoundaryBitSet(t);if(e(s)>1)return 32&this.m_options&&this.buildIdsFromBitset(s,this.m_currentEdgeIds),this.makeGeometryFromChainSinglePart(t);continue}if(8&this.m_options){const s=this.m_topoGraph.getChainBoundaryBitSet(t);if(1===e(s))return 32&this.m_options&&this.buildIdsFromBitset(s,this.m_currentEdgeIds),this.makeGeometryFromChainSinglePart(t);continue}}}}return null}}const F=new v;function P(t,s,i){return F.executeMany(new e(t),s,i,null)}function T(){return F.supportsCurves()}export{P as executeMany,T as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as r}from"../../core/arrayUtils.js";import{supportsCurves as o,executeMany as t}from"./gx/operatorPolygonOverlay.js";import{fromGeometry as e,getSpatialReference as s,fromSpatialReference as p,toPolygon as a}from"./support/apiConverter.js";function l(o,l){let m=0;l&&(l.overlaps&&(m|=1),l.noOverlaps&&(m|=2),l.gaps&&(m|=4),l.holes&&(m|=8),l.multiPart&&(m|=16));const n=o.map(e),i=s(o);return t(n,p(i),m).map((r=>a(r,i))).filter(r)}const m=o();export{l as executeMany,m as supportsCurves};
5
+ import{supportsCurves as o,executeMany as r}from"./gx/operatorPolygonOverlay.js";import{getSpatialReference as s,fromSpatialReference as t,fromPolygon as e,toPolygon as p}from"./support/apiConverter.js";function a(o,a){const{overlaps:n=!0,noOverlaps:u=!0,gaps:l,holes:m,multiPart:i}=a??{};let c=0;n&&(c|=1),u&&(c|=2),l&&(c|=4),m&&(c|=8),i&&(c|=16);const v=s(o),f=r(o.map(e),t(v),c),g=[],x=[];let y;for(;y=f.next();)g.push(p(y,v)),x.push(f.getGeometryIDs());return{results:g,ids:x}}const n=o();export{a as executeMany,n as supportsCurves};
package/interfaces.d.ts CHANGED
@@ -203,8 +203,21 @@ declare namespace __esri {
203
203
  mutate(mutateFn: (value: T) => void): void;
204
204
  }
205
205
 
206
+ export interface __ReactiveObservable {
207
+ notify(): void;
208
+ }
209
+
210
+ export interface __ReactiveTrackingTarget {
211
+ clear(): void;
212
+ destroy(): void;
213
+ }
214
+
206
215
  interface ComponentsReactiveUtils {
207
216
  signal<T>(initialValue: T, equalityFunction?: (a: T, b: T) => boolean): Signal<T>;
217
+ createObservable(): __ReactiveObservable;
218
+ createTrackingTarget(callback: () => void): __ReactiveTrackingTarget;
219
+ trackAccess(observable: __ReactiveObservable): void;
220
+ runTracked<T>(target: __ReactiveTrackingTarget, callback: () => T): T | null;
208
221
  }
209
222
 
210
223
  export const ComponentsReactiveUtils: ComponentsReactiveUtils;
@@ -10182,21 +10195,31 @@ declare namespace __esri {
10182
10195
  /**
10183
10196
  * Performs the topological overlay of the geometry set in the XY plane.
10184
10197
  *
10185
- * @param geometries The set of geometries to overlay. All the geometries must have the same spatial reference.
10198
+ * @param polygons The set of polygons to overlay. All the polygons must have the same spatial reference.
10186
10199
  * @param options Additional options.
10187
10200
  * @param options.gaps Create polygons to fill gaps. Gaps are empty areas between different polygons, that have a closed boundary.
10188
10201
  * @param options.holes Create polygons to fill holes. Holes are empty areas completely enclosed by a single polygon. In addition to regular holes formed by the interior rings, the operator considers any empty area that has a closed boundary formed by the segments of same polygon to be a hole. For example, a gap between two or more exterior rings of same polygon is also considered a hole.
10189
10202
  * @param options.noOverlaps Output non-overlapping areas of polygons.
10190
10203
  * @param options.overlaps Output overlapping areas of polygons.
10191
- * @param options.multiPart Output multipart polygons. This option must be combined with other options. Multipart output requires more processing. If the option is not set, the output will contain single part polygons (one exterior ring and zero or more holes).
10204
+ * @param options.multiPart Output multipart polygons. Multipart output requires more processing. If the option is not set, the output will contain single part polygons (one exterior ring and zero or more holes).
10192
10205
  *
10193
10206
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-polygonOverlayOperator.html#executeMany Read more...}
10194
10207
  */
10195
- executeMany(geometries: GeometryUnion[], options?: polygonOverlayOperatorExecuteManyOptions): Polygon[];
10208
+ executeMany(polygons: Polygon[], options?: polygonOverlayOperatorExecuteManyOptions): ExecuteManyResult;
10196
10209
  }
10197
10210
 
10198
10211
  export const polygonOverlayOperator: polygonOverlayOperator;
10199
10212
 
10213
+ /**
10214
+ * Object returned by the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-polygonOverlayOperator.html#executeMany executeMany()} method.
10215
+ *
10216
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-operators-polygonOverlayOperator.html#ExecuteManyResult Read more...}
10217
+ */
10218
+ export interface ExecuteManyResult {
10219
+ results: Polygon[];
10220
+ ids: number[][];
10221
+ }
10222
+
10200
10223
  export interface polygonOverlayOperatorExecuteManyOptions {
10201
10224
  gaps?: boolean;
10202
10225
  holes?: boolean;
@@ -28897,6 +28920,13 @@ declare namespace __esri {
28897
28920
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html Read more...}
28898
28921
  */
28899
28922
  constructor(properties?: SceneLayerProperties);
28923
+ /**
28924
+ * This property is used to configure the associated layer's {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html FeatureTable}.
28925
+ *
28926
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#attributeTableTemplate Read more...}
28927
+ */
28928
+ get attributeTableTemplate(): AttributeTableTemplate | nullish;
28929
+ set attributeTableTemplate(value: AttributeTableTemplateProperties | nullish);
28900
28930
  /**
28901
28931
  * Specifies how features are placed on the vertical axis (z).
28902
28932
  *
@@ -29187,6 +29217,12 @@ declare namespace __esri {
29187
29217
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#apiKey Read more...}
29188
29218
  */
29189
29219
  apiKey?: APIKeyMixinProperties["apiKey"];
29220
+ /**
29221
+ * This property is used to configure the associated layer's {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html FeatureTable}.
29222
+ *
29223
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#attributeTableTemplate Read more...}
29224
+ */
29225
+ attributeTableTemplate?: AttributeTableTemplateProperties | nullish;
29190
29226
  /**
29191
29227
  * The copyright text as defined by the scene service.
29192
29228
  *
@@ -90521,12 +90557,6 @@ declare namespace __esri {
90521
90557
  }
90522
90558
 
90523
90559
  export class AttributeTableTemplate {
90524
- /**
90525
- * An Array of {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-tables-AttributeTableTemplate.html#FieldOrder FieldOrder} objects indicating the records' sort order.
90526
- *
90527
- * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-tables-AttributeTableTemplate.html#orderByFields Read more...}
90528
- */
90529
- orderByFields: FieldOrder[] | nullish;
90530
90560
  /**
90531
90561
  * An `AttributeTableTemplate` manages the configuration of how the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html FeatureTable} widget displays its columns.
90532
90562
  *
@@ -90553,6 +90583,13 @@ declare namespace __esri {
90553
90583
  | (AttributeTableRelationshipElementProperties & { type: "relationship" })
90554
90584
  )[]
90555
90585
  | nullish);
90586
+ /**
90587
+ * An Array of {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-tables-AttributeTableTemplate.html#FieldOrder FieldOrder} objects indicating the records' sort order.
90588
+ *
90589
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-tables-AttributeTableTemplate.html#orderByFields Read more...}
90590
+ */
90591
+ get orderByFields(): FieldOrder[] | nullish;
90592
+ set orderByFields(value: FieldOrderProperties[] | nullish);
90556
90593
  /**
90557
90594
  * Creates a deep clone of the AttributeTableTemplate class.
90558
90595
  *
@@ -90596,7 +90633,7 @@ declare namespace __esri {
90596
90633
  *
90597
90634
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-tables-AttributeTableTemplate.html#orderByFields Read more...}
90598
90635
  */
90599
- orderByFields?: FieldOrder[] | nullish;
90636
+ orderByFields?: FieldOrderProperties[] | nullish;
90600
90637
  }
90601
90638
 
90602
90639
  /**
@@ -90604,9 +90641,19 @@ declare namespace __esri {
90604
90641
  *
90605
90642
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-tables-AttributeTableTemplate.html#FieldOrder Read more...}
90606
90643
  */
90607
- export interface FieldOrder {
90608
- field?: string;
90609
- order?: "asc" | "desc";
90644
+ export interface FieldOrderProperties {
90645
+ field?: string | nullish;
90646
+ order?: "asc" | "desc" | nullish;
90647
+ }
90648
+
90649
+ /**
90650
+ * This object sets a field and sort order for how records display within the table.
90651
+ *
90652
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-tables-AttributeTableTemplate.html#FieldOrder Read more...}
90653
+ */
90654
+ export interface FieldOrder extends AnonymousAccessor {
90655
+ field: string | nullish;
90656
+ order: "asc" | "desc" | nullish;
90610
90657
  }
90611
90658
 
90612
90659
  /**
@@ -114473,6 +114520,12 @@ declare namespace __esri {
114473
114520
  readonly columns: Collection<
114474
114521
  Column | FieldColumn | GroupColumn | ActionColumn | AttachmentsColumn | RelationshipColumn
114475
114522
  >;
114523
+ /**
114524
+ * The SQL where clause used to filter features visible in the table.
114525
+ *
114526
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#definitionExpression Read more...}
114527
+ */
114528
+ definitionExpression: string | nullish;
114476
114529
  /**
114477
114530
  * Text displayed in the table header, under the title.
114478
114531
  *
@@ -114716,6 +114769,36 @@ declare namespace __esri {
114716
114769
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#state Read more...}
114717
114770
  */
114718
114771
  readonly state: "disabled" | "loading" | "loaded" | "ready" | "error";
114772
+ /**
114773
+ * Indicates whether the table and associated layer support adding attachments with the current configuration.
114774
+ *
114775
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#supportsAddAttachments Read more...}
114776
+ */
114777
+ readonly supportsAddAttachments: boolean;
114778
+ /**
114779
+ * Indicates whether the table and associated layer support viewing attachments with the current configuration.
114780
+ *
114781
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#supportsAttachments Read more...}
114782
+ */
114783
+ readonly supportsAttachments: boolean;
114784
+ /**
114785
+ * Indicates whether the table and associated layer support deleting attachments with the current configuration.
114786
+ *
114787
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#supportsDeleteAttachments Read more...}
114788
+ */
114789
+ readonly supportsDeleteAttachments: boolean;
114790
+ /**
114791
+ * Indicates whether the table and associated layer support resizing attachments with the current configuration.
114792
+ *
114793
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#supportsResizeAttachments Read more...}
114794
+ */
114795
+ readonly supportsResizeAttachments: boolean;
114796
+ /**
114797
+ * Indicates whether the table and associated layer support updating attachments with the current configuration.
114798
+ *
114799
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#supportsUpdateAttachments Read more...}
114800
+ */
114801
+ readonly supportsUpdateAttachments: boolean;
114719
114802
  /**
114720
114803
  * A reference to top-level controller table.
114721
114804
  *
@@ -115019,6 +115102,12 @@ declare namespace __esri {
115019
115102
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#columnReorderingEnabled Read more...}
115020
115103
  */
115021
115104
  columnReorderingEnabled?: boolean;
115105
+ /**
115106
+ * The SQL where clause used to filter features visible in the table.
115107
+ *
115108
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#definitionExpression Read more...}
115109
+ */
115110
+ definitionExpression?: string | nullish;
115022
115111
  /**
115023
115112
  * Text displayed in the table header, under the title.
115024
115113
  *
@@ -115520,6 +115609,12 @@ declare namespace __esri {
115520
115609
  readonly columns: Collection<
115521
115610
  Column | FieldColumn | GroupColumn | ActionColumn | AttachmentsColumn | RelationshipColumn
115522
115611
  >;
115612
+ /**
115613
+ * The SQL where clause used to filter features visible in the table.
115614
+ *
115615
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#definitionExpression Read more...}
115616
+ */
115617
+ definitionExpression: string | nullish;
115523
115618
  /**
115524
115619
  * Indicates whether editing is enabled on the data within the feature table.
115525
115620
  *
@@ -116012,6 +116107,12 @@ declare namespace __esri {
116012
116107
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#autoRefreshEnabled Read more...}
116013
116108
  */
116014
116109
  autoRefreshEnabled?: boolean;
116110
+ /**
116111
+ * The SQL where clause used to filter features visible in the table.
116112
+ *
116113
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#definitionExpression Read more...}
116114
+ */
116115
+ definitionExpression?: string | nullish;
116015
116116
  /**
116016
116117
  * Indicates whether editing is enabled on the data within the feature table.
116017
116118
  *
package/intl/locale.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{makeHandle as e}from"../core/handleUtils.js";let n,t;const o=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,i=globalThis.document?.documentElement;function l(){const e=i?.getAttribute("lang"),n=globalThis.navigator?.language;return o??e??n??"en"}function a(){return void 0===t&&(t=l()),t}function r(e){n=e||void 0,v()}const s=/^(?<language>[a-z]{2,3})(?:-[a-z]{3})?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(e=a()){return s.exec(e)?.groups}function u(e=a()){const n=c(e)?.language;return"he"===n||"ar"===n}const g=[];function d(){const e=g.length;0!==e&&console.warn(`Still ${e} locale change listeners active. This typically means a widget or view model was not properly destroyed. Also do not create widgets or view models at the module top-level or suite functions since that means they are alive until the suite runs.`)}function h(n){return g.push(n),e((()=>g.splice(g.indexOf(n),1)))}const f=[];function p(n){return f.push(n),e((()=>f.splice(f.indexOf(n),1)))}function v(){const e=n??l();t!==e&&([...f].forEach((n=>n(e))),t=e,[...g].forEach((n=>n(e))))}if(globalThis.addEventListener?.("languagechange",v),i){new MutationObserver((()=>{v()})).observe(i,{attributeFilter:["lang"]})}export{d as assertNoLocaleChangeListeners,p as beforeLocaleChange,l as getDefaultLocale,a as getLocale,c as getLocaleParts,h as onLocaleChange,u as prefersRTL,r as setLocale};
5
+ import{makeHandle as e}from"../core/handleUtils.js";import"../core/has.js";let n,t;const o=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,r=globalThis.document?.documentElement;function a(){const e=r?.getAttribute("lang"),n=globalThis.navigator?.language;return o??e??n??"en"}function i(){return void 0===t&&(t=a()),t}function l(e){n=e||void 0,m()}const c=/^(?<language>[a-z]{2,3})(?:-[a-z]{3})?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function s(e=i()){return c.exec(e)?.groups}function u(e=i()){const n=s(e)?.language;return"he"===n||"ar"===n}const g=[],f=new Map;function h(){const e=Array.from(f.values())[0];f.clear();const n=g.length;if(0!==n)throw new Error(`Unexpected ${n} locale change listeners still active.${e?` For example:\n${e}`:" Set enableListenerTracing in esri/intl/locale.ts to include a stack trace."}`)}function d(n){return g.push(n),e((()=>{g.splice(g.indexOf(n),1)}))}const p=[];function b(n){return p.push(n),e((()=>p.splice(p.indexOf(n),1)))}function m(){const e=n??a();t!==e&&([...p].forEach((n=>n(e))),t=e,[...g].forEach((n=>n(e))))}if(globalThis.addEventListener?.("languagechange",m),r){new MutationObserver((()=>{m()})).observe(r,{attributeFilter:["lang"]})}export{h as assertNoLocaleChangeListeners,b as beforeLocaleChange,a as getDefaultLocale,i as getLocale,s as getLocaleParts,d as onLocaleChange,u as prefersRTL,l as setLocale};