@arcgis/map-components 4.32.0-next.3 → 4.32.0-next.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. package/dist/arcgis-map-components/{FLIQGWQE.js → 24SNAQFB.js} +2 -2
  2. package/dist/arcgis-map-components/{Q3VEG4LZ.js → 2SMPC5MW.js} +2 -2
  3. package/dist/arcgis-map-components/{HI2KTAFJ.js → 2SYOLQYX.js} +2 -2
  4. package/dist/arcgis-map-components/{6QELDRLR.js → 36IQXPWS.js} +2 -2
  5. package/dist/arcgis-map-components/{62KCQDGE.js → 3DQCBGVY.js} +2 -2
  6. package/dist/arcgis-map-components/{ED2X3KMJ.js → 3KZVLYAO.js} +2 -2
  7. package/dist/arcgis-map-components/{ITCPQV4W.js → 3MR7CVQG.js} +2 -2
  8. package/dist/arcgis-map-components/{CXXLK64M.js → 4HIIFIM3.js} +2 -2
  9. package/dist/arcgis-map-components/{P7RGEXXO.js → 4TMX3TR6.js} +2 -2
  10. package/dist/arcgis-map-components/{3DSKXAXC.js → 4TTQIPVW.js} +2 -2
  11. package/dist/arcgis-map-components/{4ONG4MQT.js → 5CI7SDNV.js} +2 -2
  12. package/dist/arcgis-map-components/{ZNPPQB57.js → 5D3VCFGX.js} +2 -2
  13. package/dist/arcgis-map-components/637HEB3H.js +6 -0
  14. package/dist/arcgis-map-components/{CKYC5GML.js → 66TL7NFF.js} +2 -2
  15. package/dist/arcgis-map-components/{YKPN7EV6.js → 73JPRVSI.js} +2 -2
  16. package/dist/arcgis-map-components/{5SEPUASD.js → 7D2YNTSB.js} +2 -2
  17. package/dist/arcgis-map-components/{ZAYVEXCC.js → 7EGR4Y2J.js} +2 -2
  18. package/dist/arcgis-map-components/{27GM6TMI.js → 7RXDJC5R.js} +2 -2
  19. package/dist/arcgis-map-components/7VYUFIXI.js +6 -0
  20. package/dist/arcgis-map-components/{JZVQISNS.js → 7YMDQUB6.js} +2 -2
  21. package/dist/arcgis-map-components/{BLKWSBBC.js → BRHXNTWB.js} +2 -2
  22. package/dist/arcgis-map-components/{33JP7447.js → CETQ53ZP.js} +2 -2
  23. package/dist/arcgis-map-components/{UF3GQO25.js → CJJMVT5E.js} +1 -1
  24. package/dist/arcgis-map-components/{ASAHKP4M.js → CLVHTWNY.js} +2 -2
  25. package/dist/arcgis-map-components/{XAGDSS6M.js → DFXQARET.js} +2 -2
  26. package/dist/arcgis-map-components/E36YZN6W.js +6 -0
  27. package/dist/arcgis-map-components/{4UXCF4OM.js → E5H5HR6J.js} +1 -1
  28. package/dist/arcgis-map-components/{443N6XGY.js → EGJMTV56.js} +2 -2
  29. package/dist/arcgis-map-components/{3SPCVWDW.js → EVT2VRE5.js} +2 -2
  30. package/dist/arcgis-map-components/{7R2QORO5.js → FW3T6ECC.js} +2 -2
  31. package/dist/arcgis-map-components/{JL3UO3KO.js → GMM2W3HQ.js} +2 -2
  32. package/dist/arcgis-map-components/{J3HCS7H5.js → HBFLM7YV.js} +2 -2
  33. package/dist/arcgis-map-components/{7T3FSXQW.js → HE7XC6AR.js} +2 -2
  34. package/dist/arcgis-map-components/{TXCD4CDR.js → HJCXP2WK.js} +2 -2
  35. package/dist/arcgis-map-components/{YOIY3V4Q.js → ISHWWNY2.js} +2 -2
  36. package/dist/arcgis-map-components/{QXMZ555H.js → J4TMVI4E.js} +2 -2
  37. package/dist/arcgis-map-components/{2V3FF3OU.js → J6KFG7TN.js} +2 -2
  38. package/dist/arcgis-map-components/{GEEPX5R5.js → J6NJKKTI.js} +2 -2
  39. package/dist/arcgis-map-components/JJDY7KSD.js +8 -0
  40. package/dist/arcgis-map-components/JNEZWGBE.js +6 -0
  41. package/dist/arcgis-map-components/{CJE6T4C4.js → KSBRMLEN.js} +2 -2
  42. package/dist/arcgis-map-components/{XYXKVL6L.js → LBEXXOWO.js} +2 -2
  43. package/dist/arcgis-map-components/{IUEFMVKN.js → LQUYTA7I.js} +2 -2
  44. package/dist/arcgis-map-components/{ISHF2ZKS.js → LRCZBJDH.js} +2 -2
  45. package/dist/arcgis-map-components/{73XACXR7.js → LW3HUFWO.js} +2 -2
  46. package/dist/arcgis-map-components/{C7QHC5XF.js → NCEH2ZMS.js} +2 -2
  47. package/dist/arcgis-map-components/{7QAPWEN2.js → O5BSYHSV.js} +2 -2
  48. package/dist/arcgis-map-components/{ZZVNYAFB.js → P3SSBSQT.js} +2 -2
  49. package/dist/arcgis-map-components/{BJV7COFA.js → PSXNJOML.js} +2 -2
  50. package/dist/arcgis-map-components/{YORHXSHC.js → QCMZM4AF.js} +2 -2
  51. package/dist/arcgis-map-components/{TVI3FCBK.js → QKDBLRHF.js} +2 -2
  52. package/dist/arcgis-map-components/{YXWDKDOD.js → SZETGIRJ.js} +2 -2
  53. package/dist/arcgis-map-components/{PQWYNCT6.js → TD2XY3FY.js} +2 -2
  54. package/dist/arcgis-map-components/TLO6WHPT.js +6 -0
  55. package/dist/arcgis-map-components/{UMTYNFPZ.js → TOKGIVAQ.js} +2 -2
  56. package/dist/arcgis-map-components/{LMTZHUBA.js → TQHM63NN.js} +2 -2
  57. package/dist/arcgis-map-components/{OXL7PTVB.js → TX7RUHO3.js} +2 -2
  58. package/dist/arcgis-map-components/{I2RWV7WW.js → U3QQOGCX.js} +2 -2
  59. package/dist/arcgis-map-components/UQULOYX4.js +6 -0
  60. package/dist/arcgis-map-components/VG3S52TV.js +6 -0
  61. package/dist/arcgis-map-components/{BECLJD75.js → VLFUOMW6.js} +2 -2
  62. package/dist/arcgis-map-components/{5TUO2PJB.js → VSWD2TKY.js} +2 -2
  63. package/dist/arcgis-map-components/{727Y4EHZ.js → WUVZNI3C.js} +2 -2
  64. package/dist/arcgis-map-components/{XLLCOPOL.js → XI5JYUM4.js} +2 -2
  65. package/dist/arcgis-map-components/{3N74S77Y.js → XK5OY4CK.js} +2 -2
  66. package/dist/arcgis-map-components/{2QNOIF3U.js → YCY6NWIF.js} +2 -2
  67. package/dist/arcgis-map-components/{TPVWPS2P.js → YIXZSQXR.js} +2 -2
  68. package/dist/arcgis-map-components/{MXTMPFAC.js → YR736BSI.js} +2 -2
  69. package/dist/arcgis-map-components/{SNV65KM3.js → YWSTONNA.js} +2 -2
  70. package/dist/arcgis-map-components/{3GXNNJO6.js → YYOBGXDU.js} +2 -2
  71. package/dist/arcgis-map-components/{N2XIIREH.js → ZZMIFGIK.js} +2 -2
  72. package/dist/arcgis-map-components/arcgis-map-components.esm.js +2 -2
  73. package/dist/chunks/component-utils.js +1 -1
  74. package/dist/chunks/disconnected.js +1 -1
  75. package/dist/chunks/globalCss.js +1 -1
  76. package/dist/chunks/runtime.js +1 -1
  77. package/dist/chunks/useViewModel.js +1 -1
  78. package/dist/chunks/useWidget.js +1 -1
  79. package/dist/components/arcgis-area-measurement-2d/customElement.js +5 -5
  80. package/dist/components/arcgis-area-measurement-3d/customElement.js +2 -2
  81. package/dist/components/arcgis-attachments/customElement.js +2 -2
  82. package/dist/components/arcgis-basemap-gallery/customElement.js +2 -2
  83. package/dist/components/arcgis-basemap-layer-list/customElement.js +2 -2
  84. package/dist/components/arcgis-basemap-toggle/customElement.js +2 -2
  85. package/dist/components/arcgis-bookmarks/customElement.js +5 -5
  86. package/dist/components/arcgis-building-explorer/customElement.js +2 -2
  87. package/dist/components/arcgis-catalog-layer-list/customElement.js +2 -2
  88. package/dist/components/arcgis-compass/customElement.js +2 -2
  89. package/dist/components/arcgis-coordinate-conversion/customElement.js +2 -2
  90. package/dist/components/arcgis-daylight/customElement.js +2 -2
  91. package/dist/components/arcgis-directional-pad/customElement.js +2 -2
  92. package/dist/components/arcgis-directions/customElement.js +2 -2
  93. package/dist/components/arcgis-directline-measurement-3d/customElement.js +2 -2
  94. package/dist/components/arcgis-distance-measurement-2d/customElement.js +2 -2
  95. package/dist/components/arcgis-editor/customElement.js +2 -2
  96. package/dist/components/arcgis-elevation-profile/customElement.js +2 -2
  97. package/dist/components/arcgis-expand/customElement.js +2 -2
  98. package/dist/components/arcgis-feature/customElement.js +2 -2
  99. package/dist/components/arcgis-feature-form/customElement.js +2 -2
  100. package/dist/components/arcgis-feature-table/customElement.js +2 -2
  101. package/dist/components/arcgis-feature-templates/customElement.js +2 -2
  102. package/dist/components/arcgis-features/customElement.js +2 -2
  103. package/dist/components/arcgis-floor-filter/customElement.js +2 -2
  104. package/dist/components/arcgis-fullscreen/customElement.js +2 -2
  105. package/dist/components/arcgis-histogram/customElement.js +2 -2
  106. package/dist/components/arcgis-histogram-range-slider/customElement.js +2 -2
  107. package/dist/components/arcgis-home/customElement.js +2 -2
  108. package/dist/components/arcgis-layer-list/customElement.js +2 -2
  109. package/dist/components/arcgis-legend/customElement.js +2 -2
  110. package/dist/components/arcgis-line-of-sight/customElement.js +2 -2
  111. package/dist/components/arcgis-locate/customElement.js +2 -2
  112. package/dist/components/arcgis-map/customElement.d.ts +1 -3
  113. package/dist/components/arcgis-map/customElement.js +11 -11
  114. package/dist/components/arcgis-measurement/customElement.js +2 -2
  115. package/dist/components/arcgis-navigation-toggle/customElement.js +2 -2
  116. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +2 -2
  117. package/dist/components/arcgis-placement/customElement.js +1 -1
  118. package/dist/components/arcgis-print/customElement.js +2 -2
  119. package/dist/components/arcgis-scale-bar/customElement.js +18 -18
  120. package/dist/components/arcgis-scale-range-slider/customElement.js +2 -2
  121. package/dist/components/arcgis-scene/customElement.js +4 -4
  122. package/dist/components/arcgis-search/customElement.js +2 -2
  123. package/dist/components/arcgis-shadow-cast/customElement.js +2 -2
  124. package/dist/components/arcgis-sketch/customElement.js +6 -6
  125. package/dist/components/arcgis-slice/customElement.js +2 -2
  126. package/dist/components/arcgis-slider/customElement.js +2 -2
  127. package/dist/components/arcgis-swipe/customElement.js +2 -2
  128. package/dist/components/arcgis-table-list/customElement.js +6 -6
  129. package/dist/components/arcgis-time-slider/customElement.js +2 -2
  130. package/dist/components/arcgis-track/customElement.js +2 -2
  131. package/dist/components/arcgis-utility-network-associations/customElement.js +2 -2
  132. package/dist/components/arcgis-utility-network-trace/customElement.js +2 -2
  133. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +4 -4
  134. package/dist/components/arcgis-value-picker/customElement.js +2 -2
  135. package/dist/components/arcgis-version-management/customElement.js +2 -2
  136. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  137. package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
  138. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  139. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  140. package/dist/components/arcgis-weather/customElement.js +2 -2
  141. package/dist/components/arcgis-zoom/customElement.js +2 -2
  142. package/dist/docs/docs.json +2 -28
  143. package/dist/docs/manifest.json +2 -23
  144. package/dist/docs/web-types.json +1 -6
  145. package/dist/index.js +1 -1
  146. package/dist/loader.js +2 -2
  147. package/dist/types/lumina.d.ts +1 -1
  148. package/dist/types/preact.d.ts +1 -1
  149. package/dist/types/react.d.ts +1 -1
  150. package/dist/types/stencil.d.ts +1 -1
  151. package/package.json +12 -12
  152. package/dist/arcgis-map-components/2QCUAEYR.js +0 -6
  153. package/dist/arcgis-map-components/4TCWP63S.js +0 -6
  154. package/dist/arcgis-map-components/6V7GUT2B.js +0 -8
  155. package/dist/arcgis-map-components/BLY2ABPE.js +0 -6
  156. package/dist/arcgis-map-components/E4A6DD7W.js +0 -6
  157. package/dist/arcgis-map-components/NWPR6F5M.js +0 -6
  158. package/dist/arcgis-map-components/TL2O77FA.js +0 -6
  159. package/dist/arcgis-map-components/TQXQLXXI.js +0 -6
  160. package/dist/chunks/index.js +0 -728
@@ -1,8 +0,0 @@
1
- /*!
2
- * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
5
- */
6
- function Jo(...e){let t=[];for(let o=0;o<e.length;o++){let s=e[o];if(typeof s=="string")t.push(s);else if(Array.isArray(s))t.push.apply(t,s);else if(typeof s=="object")for(let n in s)s[n]&&t.push(n)}let r=t.join(" ");return t.length=0,r}var b=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};function He(e,t){let r=e;for(;r;){if(r===t)return!0;if(!r.parentNode)return!1;r.parentNode instanceof ShadowRoot?r=r.parentNode.host:r=r.parentNode}return!1}function We(e,t,r){let{subscribe:o}=Be(t);return o(s=>{s.some(i=>He(e,i.target))&&r()})}var _t={};function Be(e){let t=e.join(","),r=_t[t];if(r!==void 0)return r;let o=new Set,s=new MutationObserver(i=>o.forEach(c=>c(i)));globalThis.document&&s.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});let n={subscribe(i){return o.add(i),{remove:()=>{o.delete(i),o.size===0&&(s.disconnect(),_t[t]=void 0)}}}};return _t[t]=n,n}function Fe(e,t){let r=e;for(;r;){let o=r.closest?.(t);if(o)return o;let s=r.getRootNode?.();if(s===globalThis.document)return null;r=s.host}return null}function Ge(e,t,r){return Fe(e,`[${t}]`)?.getAttribute(t)??r}function p(e,t,...r){try{return e?.call(t,...r)}catch(o){console.error(o,e)}}async function I(e,t,...r){try{let o=e?.call(t,...r);return o instanceof Promise?await o:o}catch(o){console.error(o,e)}}var Ke=["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],qe=new Set(Ke),tt="en",Je={pt:"pt-PT",no:"nb",zh:"zh-CN"};async function Ye(e,t,r=""){let o=`${t}/${r}`,s=`${o}${e}.json`;return Et[s]??(Et[s]=Wt(e,o)),await Et[s]}var Et={};async function Wt(e,t){let r=`${t}${e}.json`;try{let o=await fetch(r);if(o.ok)return await o.json()}catch(o){return console.error(o),{}}return e===tt?{}:await Wt(tt,t)}function Ct(e){let t=Ge(e,"lang",globalThis.navigator?.language||tt);return{lang:t,t9nLocale:Bt(t)}}function Bt(e){let[t,r]=e.split("-"),o=t.toLowerCase(),s=o;return r&&(s=`${o}-${r.toUpperCase()}`),s=Je[s]??s,qe.has(s)?s:r?Bt(o):tt}function Ft(e,t,r,o){let s,n=()=>void Qe(e,t,o).then(i=>{(s?.lang!==i.lang||s.t9nLocale!==i.t9nLocale||s.t9nStrings!==i.t9nStrings)&&r(i),s=i}).catch(console.error);return n(),We(e,["lang"],n)}async function Qe(e,t,r=e.tagName.toLowerCase().split("-").slice(1).join("-")){let{lang:o,t9nLocale:s}=Ct(e),n=`${t}/${r}/t9n`,i=`${r}.t9n.`,c=r===null?{}:await Ye(s,n,i);return{lang:o,t9nLocale:s,t9nStrings:c}}var et=e=>e.replace(Ze,(t,r)=>`${r===0?"":"-"}${t.toLowerCase()}`),Ze=/[A-Z]+(?![a-z])|[A-Z]/gu;function Gt(e,t){let r=t>Xe?to:t/eo,o=0,s=setInterval(()=>{o+=r,o>=t&&(clearInterval(s),e())},r);return s}var Xe=4e3,to=2e3,eo=4;function Kt(e){return e!==void 0}function qt(e,t){if(t){let r=e.constructor.elementProperties;e.manager.internals.members=Object.fromEntries(Array.from(r,([o,s])=>s.noAccessor?void 0:[o,[(s.readOnly?2048:0)|(s.state?32:16)]]).filter(Kt))}else{let r=e.constructor,o=r.__registerControllers?.(e)??void 0;if(r.__registerControllers=void 0,typeof o!="object")throw new Error("Failed to retrieve component meta");e.manager.internals.members=Object.fromEntries(Object.entries(o).filter(([s,[n]])=>(n&63)!==0))}}function Jt(e,t=8){return e==null||typeof e=="object"||typeof e=="function"?e:t&4?e==="false"?!1:e===""||!!e:t&2?Number.parseFloat(e):t&1?String(e):e}var $t=(e,t)=>e.manager.internals.members?.[t]?.[0];var st=Symbol.for("controller");var Xt=e=>typeof e=="object"&&e!==null&&(st in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e);var B;function x(e){B!==e&&(B=e,queueMicrotask(()=>{B===e&&(B=void 0)}))}function F(e){return B}var P=[];function nt(e){if(e===void 0){P=[];return}let t=P.indexOf(e);P=t===-1?[...P,e]:P.slice(0,t+1),queueMicrotask(()=>{P=[]})}function te(){return P}var z;function oo(e){z!==e&&(z=e,queueMicrotask(()=>{z===e&&(z=void 0)}))}function ro(){let e=z;return z=void 0,e}var so=async(e,t)=>{let r=Ot(e);if(r===void 0)return e;if(await r.ready,typeof t=="function"){let o=r.watchExports(s=>t(s,o))}return r.exports},no=async e=>{let t=Ot(e);return await t.ready,t},Ot=e=>{let t=ro();if(t!==void 0)return t;let o=F().manager.internals.resolveExports(e);if(o!==void 0)return o;if(Xt(e))return e},$={setter:!1,getter:!1,readOnly:!1},rt=new WeakMap,ee;ee=st;var St=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new b,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[ee]=!0,this.ready=this._ready.promise,this._exports=Qt(this),this._exportWatchers=new Set;let t=e??F(new.target.name);this.component=t,this.component.addController(this),nt(this),this.component.manager===void 0||queueMicrotask(()=>this.catchUpLifecycle())}catchUpLifecycle(){let{manager:e}=this.component;e.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),e._loadCalled&&this.triggerLoad().then(()=>{e.loadedCalled&&this.triggerLoaded()}).catch(console.error)}get exports(){return this._exports}set exports(e){let t=this._exports;t!==e&&(this._exports=e,this._exportWatchers.forEach(p),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,t)),this._ready.resolve(e)}setProvisionalExports(e,t=!0){this._exports=t?Qt(e):e,this._exportWatchers.forEach(p)}watchExports(e){let t=()=>e(this._exports);return this._exportWatchers.add(t),()=>void this._exportWatchers.delete(t)}get use(){return x(this.component),so}get useRef(){return x(this.component),no}get useRefSync(){return x(this.component),Ot}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(e){this._callbacks.hostConnected.push(e)}onDisconnected(e){this._callbacks.hostDisconnected.push(e)}onLoad(e){this._callbacks.hostLoad.push(e)}onLoaded(e){this._callbacks.hostLoaded.push(e)}onUpdate(e){this._callbacks.hostUpdate.push(e)}onUpdated(e){this._callbacks.hostUpdated.push(e)}onDestroy(e){this._callbacks.hostDestroy.push(e)}onLifecycle(e){this._callbacks.hostLifecycle.push(e),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(e)}triggerConnected(){let e=this;e.hostConnected&&p(e.hostConnected,e),this._callbacks.hostConnected.forEach(p),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&p(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(p),this._lifecycleCleanups.forEach(p),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await I(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(I)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&p(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(p),this.loadedCalled=!0}triggerUpdate(e){let t=this;t.hostUpdate&&p(t.hostUpdate,t,e),this._callbacks.hostUpdate.forEach(Yt,e)}triggerUpdated(e){let t=this;t.hostUpdated&&p(t.hostUpdated,t,e),this._callbacks.hostUpdated.forEach(Yt,e)}triggerDestroy(){let e=this;e.hostDestroy&&p(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(p)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){x(this.component);let t=p(e);(Array.isArray(t)?t:[t]).forEach(o=>{typeof o=="function"?this._lifecycleCleanups.push(o):typeof o=="object"&&typeof o.remove=="function"&&this._lifecycleCleanups.push(o.remove)})}};function Yt(e){p(e,void 0,this)}var oe=St;function Qt(e){if(typeof e!="object"&&typeof e!="function"||e===null)return e;let t=new Proxy(e,{get(r,o,s){if(!(io.has(o)&&o in r&&r[o]===t)&&(o in r||o in Promise.prototype||typeof o=="symbol"))return typeof r=="function"?r[o]:Reflect.get(r,o,s)},set:(r,o,s,n)=>Reflect.set(r,o,s,n)});return t}var io=new Set(["exports","_exports"]);function it(e,t,r){let o=Object.keys(e),s=o.length;T===void 0&&queueMicrotask(G),T??(T=new Map);let n=T.get(e);return n===void 0&&(n={callbacks:[],keyCount:s},T.set(e,n)),n.keyCount!==s&&(n.callbacks.forEach(i=>i(o)),n.callbacks=[],n.keyCount=s),n.callbacks.push(i=>{let c=l=>p(t,null,l),a=i[s];a===void 0?c(void 0):e[a]===r?c(a):c(void 0)}),r}var T=void 0;function G(){Array.from(T?.entries()??[]).forEach(([e,{callbacks:t}])=>{let r=Object.keys(e);t.forEach(o=>o(r))}),T=void 0}function K(e,t,r){var o;let s=t,n=e.manager.internals;(o=n.allWatchers)[s]??(o[s]=[]);let i=n.allWatchers[s],c=r,a=(l,d,h)=>p(c,null,l,d,h);return i.push(a),()=>{let l=i.indexOf(a);l!==-1&&i.splice(l,1)}}var ao=class{constructor(e){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;let t=this.component.manager.internals;Object.entries(t.members).forEach(([r,[o]])=>{var s;o&2048&&((s=t.setters)[r]??(s[r]=[]),t.setters[r].push(t.readonlySetter))})},this.trackedValue=Lt,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this.reactiveUtilsIntegrations=new Set,this._exports=new WeakMap,this.readonlySetter=(t,r,o)=>{if($.readOnly)return t;throw new Error(`Cannot assign to read-only property "${o}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=e}firePropTrackers(e,t){let r=this.keyTrackers;this.trackedValue=Lt,this.keyTrackers=[],r.forEach(o=>o(e,t))}getSetProxy(e){let t=this.component,r=t.constructor.prototype;if(this._getSetProxy(r,e,"class"),t.manager.isLit)return;let o=t.el.constructor.prototype;r!==o&&this._getSetProxy(o,e,"html")}_getSetProxy(e,t,r){let o=this.component,s=$t(o,t),n;do n=Object.getOwnPropertyDescriptor(e,t);while(!n&&(e=Object.getPrototypeOf(e)));if(!n)return;let i=n.get,c=n.set,a=ot in i,l=ot in c;if(a&&l)return;let d=!a,h=!l,f=d?function(){let v=i.call(this),E=rt.get(this);if($.getter||E===void 0)return v;let V=E.manager.internals;v=V.accessorGetter[t](v,t);let y=V.getters[t]??At;for(let C=0;C<y.length;C++)v=y[C](v,t);return v}:i,g=h?function(v){let E=i.call(this),V=rt.get(this);if(V===void 0){c.call(this,v);return}let y=V.manager.isLit?v??void 0:Jt(v,s),C=V.manager.internals;if(y===E)c.call(this,y);else{let Ht=$.setter?At:C.setters[t]??At;for(let W=0;W<Ht.length&&(y=Ht[W](y,E,t),y!==E);W++);let ze=y;c.call(this,y),y=C.accessorSetter[t](y,E,t),y!==ze&&c.call(this,y),y!==E&&C.enabledWatchers[t]?.forEach(W=>W(y,E,t))}C.keyTrackers.length>0&&C?.firePropTrackers(t,v)}:c;d&&(f[ot]=!0),h&&(g[ot]=!0),Object.defineProperty(e,t,{...n,get:f,set:g})}markExports(e,t){(typeof t=="object"&&t!==null||typeof t=="function")&&this._exports.set(t,e)}resolveExports(e){if(typeof e=="object"&&e!==null||typeof e=="function")return this._exports.get(e)}},At=[],ot=Symbol(),Lt=Symbol(),Pt=(e,t)=>new co(e,t),co=class extends oe{constructor(e,t){let r="addController"in e,o=new Set;function s(a){o.add(a),!(st in a)&&e.renderRoot&&e.el.isConnected&&a.hostConnected?.()}function n(a){o.delete(a),a.controllerRemoved?.()}let i=e;if(i.addController=s,i.removeController=n,!r){let a=t??e.constructor.__forceUpdate;i.requestUpdate=()=>a(e)}super(e),this.internals=new ao(this.component),this.destroyed=!1,this._updatePromise=new b,this._originalLifecycles={},this.isLit=r,this.component.manager=this,qt(e,r),this._controllers=o,this.exports=void 0,this.hasDestroy=wt in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let c=this.internals;Object.keys(c.members).forEach(a=>{c.accessorGetter[a]=Zt,c.accessorSetter[a]=Zt,c.getSetProxy(a)}),r?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),nt(void 0),x(e),rt.set(e.el,e),rt.set(e,e)}_bindLifecycleMethods(){let e=this.component,t=this.isLit,r=e.el===e;this._originalLifecycles={_connectedCallback:t||r?void 0:e.connectedCallback,_disconnectedCallback:t||r?void 0:e.disconnectedCallback,_load:t?e.load:e.componentWillLoad,_loaded:t?e.loaded:e.componentDidLoad,_willUpdate:t?void 0:e.componentWillUpdate,_updated:t?void 0:e.componentDidUpdate,_destroy:e.destroy};let o=this._connectedCallback.bind(this),s=this._disconnectedCallback.bind(this),n=this._update.bind(this),i=this._updated.bind(this);t?e.constructor.prototype.addController.call(e,{hostConnected:o,hostDisconnected:s,hostUpdate:n,hostUpdated:i}):(e.connectedCallback=o,e.disconnectedCallback=s,e.componentWillLoad=this._load.bind(this),e.componentDidLoad=this._loaded.bind(this),e.componentWillUpdate=n,e.componentDidUpdate=i),this.hasDestroy&&(e.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){let t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${wt} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,G(),e.enableReadonly?.(),this._controllers.forEach(ho),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(po),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){let e=this.internals.reactiveUtilsIntegrations;if(e.size>0)for(let t of e)"triggerLoad"in t?await t.triggerLoad():await I(t.hostLoad,t);await Promise.allSettled(Array.from(this._controllers,uo,e)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&K(this.component,wt,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(fo),this._originalLifecycles._loaded?.call(this.component)}_update(){let e=this.component;this._controllers.forEach(mo,e.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let e=this.component;if(this._controllers.forEach(yo,e.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)e.$changes=new Map;else{let t=this._updatePromise;this._updatePromise=new b,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(go),this._controllers.clear(),await this._originalLifecycles._destroy?.call(this.component)}}_setAutoDestroyTimeout(){if(this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout),!this.component.el.isConnected&&!this.component.autoDestroyDisabled){let e=()=>void this.destroy().catch(console.error);this._autoDestroyTimeout=Gt(e,lo)}}},wt="autoDestroyDisabled",lo=1e3;var Zt=e=>e;function ho(e){"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)}function po(e){"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e)}async function uo(e){this.has(e)||("triggerLoad"in e?await e.triggerLoad():await I(e.hostLoad,e))}function fo(e){"triggerLoaded"in e?e.triggerLoaded():p(e.hostLoaded,e)}function mo(e){"triggerUpdate"in e?e.triggerUpdate(this):p(e.hostUpdate,e,this)}function yo(e){"triggerUpdated"in e?e.triggerUpdated(this):p(e.hostUpdated,e,this)}function go(e){"triggerDestroy"in e?e.triggerDestroy():p(e.hostDestroy,e)}function re(e,t,r){let o=e.manager.internals;return o.trackedValue!==Lt&&o.trackedValue!==r&&o.firePropTrackers(void 0,void 0),o.keyTrackers.length===0&&queueMicrotask(()=>o.firePropTrackers(void 0,void 0)),o.trackedValue=r,o.keyTrackers.push((s,n)=>p(t,void 0,r===n?s:void 0)),r}function se(e,t,r){let o=Array.isArray(e)?e:[e],s=o.length+1,n=c=>{s-=1,c!==void 0&&(s=Math.min(s,0)),s===0&&t(c)};o.forEach(c=>it(c,a=>n(a===void 0?void 0:{key:a,host:c,isReactive:!1}),r));let i=o.find(c=>"manager"in c&&typeof c.manager=="object"&&c.manager.component===c);return i&&re(i,c=>n(c===void 0?void 0:{key:c,host:i,isReactive:$t(i,c)!==void 0}),r),r}function vo(e){$.setter=!0;try{return e()}finally{$.setter=!1}}function bo(e){$.getter=!0;try{return e()}finally{$.getter=!1}}function ne(e){$.readOnly=!0;try{return e()}finally{$.readOnly=!1}}var ie=e=>(...t)=>{let r=te(),o=new e(...t),s=o.exports;nt(r.at(-1));let n=o.component.manager.internals;n.markExports(o,s),o.watchExports(c=>n.markExports(o,c)),oo(o);let i=[o.component,...r].reverse();return se(i,c=>c===void 0?void 0:_o(o,c,s),s)};function _o(e,{host:t,key:r,isReactive:o},s){let n=t,i=n[r]!==e.exports,c=n[r]!==s,a=s!==e.exports;if(i&&!c&&a&&(n[r]=e.exports),t===e.component){if(o){let d=e.component.manager.internals;c&&d.markExports(e,n[r]),K(e.component,r,h=>{h!==e.exports&&d.markExports(e,h)})}e.assignedProperty=o?void 0:r}e.watchExports(()=>{if(n[r]===e.exports)return;let d=e.component.manager;d.internals.setters[r]?.includes(d.internals.readonlySetter)?ne(()=>{n[r]=e.exports}):n[r]=e.exports})}var Tt=e=>Co(void 0,e);var Eo=class extends St{constructor(e,t){super(e);let r=this.exports;try{x(this.component);let o=t(this.component,this),s=this.exports!==r;if(o instanceof Promise){s||this.setProvisionalExports(o);let n=o.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this._ready.reject(i),console.error(i)});this.onLoad(async()=>await n)}else(!s||o!==void 0)&&(this.exports=o),queueMicrotask(()=>super.catchUpLifecycle())}catch(o){this._ready.reject(o),console.error(o)}}catchUpLifecycle(){}},Co=ie(Eo);var yr=Tt;var vr=e=>(t={})=>Tt((r,o)=>{let s=Ct(r.el),n={_lang:s.lang,_t9nLocale:s.t9nLocale,_loading:!0},i=r;o.onLifecycle(()=>Ft(r.el,e("./assets"),({t9nLocale:a,t9nStrings:l,lang:d})=>{let h={...l,_lang:d,_t9nLocale:a,_loading:!1};o.exports=h;let f=l.componentLabel??l.widgetLabel;typeof f=="string"&&"label"in r&&r.label==null&&(r.label??(r.label=f)),c(i.messageOverrides)},t.name));function c(a){let l=o.exports,d=l._original??l,h=ce(d,a);a&&(h._original=d),o.exports=h}if("messageOverrides"in i&&o.onLifecycle(()=>K(i,"messageOverrides",c)),t.blocking){o.setProvisionalExports(n,!1);return}else return n});function ce(e,t){if(!t)return e;let r={...e};return Object.entries(t).forEach(([o,s])=>{typeof s=="object"?r[o]=ce(e[o],s):r[o]=s??e[o]}),r}var br=e=>$o,ae="arcgisPropertyChange",$o=(...e)=>Tt((t,r)=>{let s=t[ae];return t.manager.isLit&&(s=t.constructor.$createEvent(ae,void 0,t)),r.onLoad(()=>r.onLifecycle(()=>e.map(n=>K(t,n,()=>s.emit({name:n}))))),s});var at=globalThis,ct=at.ShadowRoot&&(at.ShadyCSS===void 0||at.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xt=Symbol(),le=new WeakMap,q=class{constructor(t,r,o){if(this._$cssResult$=!0,o!==xt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(ct&&t===void 0){let o=r!==void 0&&r.length===1;o&&(t=le.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&le.set(r,t))}return t}toString(){return this.cssText}},he=e=>new q(typeof e=="string"?e:e+"",void 0,xt),Ao=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((o,s,n)=>o+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+e[n+1],e[0]);return new q(r,e,xt)},Nt=(e,t)=>{if(ct)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let o=document.createElement("style"),s=at.litNonce;s!==void 0&&o.setAttribute("nonce",s),o.textContent=r.cssText,e.appendChild(o)}},lt=ct?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let o of t.cssRules)r+=o.cssText;return he(r)})(e):e;var kt=globalThis,ht=kt.trustedTypes,de=ht?ht.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ut="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,Rt="?"+A,wo=`<${Rt}>`,k=document,Y=()=>k.createComment(""),Q=e=>e===null||typeof e!="object"&&typeof e!="function",Mt=Array.isArray,ge=e=>Mt(e)||typeof e?.[Symbol.iterator]=="function",Dt=`[
7
- \f\r]`,J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pe=/-->/g,ue=/>/g,N=RegExp(`>|${Dt}(?:([^\\s"'>=/]+)(${Dt}*=${Dt}*(?:[^
8
- \f\r"'\`<>=]|("|')|))|$)`,"g"),fe=/'/g,me=/"/g,ve=/^(?:script|style|textarea|title)$/i,jt=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),$r=jt(1),Ar=jt(2),wr=jt(3),m=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),ye=new WeakMap,D=k.createTreeWalker(k,129);function be(e,t){if(!Mt(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return de!==void 0?de.createHTML(t):t}var _e=(e,t)=>{let r=e.length-1,o=[],s,n=t===2?"<svg>":t===3?"<math>":"",i=J;for(let c=0;c<r;c++){let a=e[c],l,d,h=-1,f=0;for(;f<a.length&&(i.lastIndex=f,d=i.exec(a),d!==null);)f=i.lastIndex,i===J?d[1]==="!--"?i=pe:d[1]!==void 0?i=ue:d[2]!==void 0?(ve.test(d[2])&&(s=RegExp("</"+d[2],"g")),i=N):d[3]!==void 0&&(i=N):i===N?d[0]===">"?(i=s??J,h=-1):d[1]===void 0?h=-2:(h=i.lastIndex-d[2].length,l=d[1],i=d[3]===void 0?N:d[3]==='"'?me:fe):i===me||i===fe?i=N:i===pe||i===ue?i=J:(i=N,s=void 0);let g=i===N&&e[c+1].startsWith("/>")?" ":"";n+=i===J?a+wo:h>=0?(o.push(l),a.slice(0,h)+Ut+a.slice(h)+A+g):a+A+(h===-2?c:g)}return[be(e,n+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},Z=class e{constructor({strings:t,_$litType$:r},o){let s;this.parts=[];let n=0,i=0,c=t.length-1,a=this.parts,[l,d]=_e(t,r);if(this.el=e.createElement(l,o),D.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=D.nextNode())!==null&&a.length<c;){if(s.nodeType===1){if(s.hasAttributes())for(let h of s.getAttributeNames())if(h.endsWith(Ut)){let f=d[i++],g=s.getAttribute(h).split(A),S=/([.?@])?(.*)/.exec(f);a.push({type:1,index:n,name:S[2],strings:g,ctor:S[1]==="."?pt:S[1]==="?"?ut:S[1]==="@"?ft:R}),s.removeAttribute(h)}else h.startsWith(A)&&(a.push({type:6,index:n}),s.removeAttribute(h));if(ve.test(s.tagName)){let h=s.textContent.split(A),f=h.length-1;if(f>0){s.textContent=ht?ht.emptyScript:"";for(let g=0;g<f;g++)s.append(h[g],Y()),D.nextNode(),a.push({type:2,index:++n});s.append(h[f],Y())}}}else if(s.nodeType===8)if(s.data===Rt)a.push({type:2,index:n});else{let h=-1;for(;(h=s.data.indexOf(A,h+1))!==-1;)a.push({type:7,index:n}),h+=A.length-1}n++}}static createElement(t,r){let o=k.createElement("template");return o.innerHTML=t,o}};function U(e,t,r=e,o){if(t===m)return t;let s=o!==void 0?r.o?.[o]:r.l,n=Q(t)?void 0:t._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(e),s._$AT(e,r,o)),o!==void 0?(r.o??=[])[o]=s:r.l=s),s!==void 0&&(t=U(e,s._$AS(e,t.values),s,o)),t}var dt=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:o}=this._$AD,s=(t?.creationScope??k).importNode(r,!0);D.currentNode=s;let n=D.nextNode(),i=0,c=0,a=o[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new H(n,n.nextSibling,this,t):a.type===1?l=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(l=new mt(n,this,t)),this._$AV.push(l),a=o[++c]}i!==a?.index&&(n=D.nextNode(),i++)}return D.currentNode=k,s}p(t){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,r),r+=o.strings.length-2):o._$AI(t[r])),r++}},H=class e{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,r,o,s){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=o,this.options=s,this.v=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=U(this,t,r),Q(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==m&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ge(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==u&&Q(this._$AH)?this._$AA.nextSibling.data=t:this.T(k.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:o}=t,s=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=Z.createElement(be(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(r);else{let n=new dt(s,this),i=n.u(this.options);n.p(r),this.T(i),this._$AH=n}}_$AC(t){let r=ye.get(t.strings);return r===void 0&&ye.set(t.strings,r=new Z(t)),r}k(t){Mt(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,s=0;for(let n of t)s===r.length?r.push(o=new e(this.O(Y()),this.O(Y()),this,this.options)):o=r[s],o._$AI(n),s++;s<r.length&&(this._$AR(o&&o._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this.v=t,this._$AP?.(t))}},R=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,o,s,n){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=u}_$AI(t,r=this,o,s){let n=this.strings,i=!1;if(n===void 0)t=U(this,t,r,0),i=!Q(t)||t!==this._$AH&&t!==m,i&&(this._$AH=t);else{let c=t,a,l;for(t=n[0],a=0;a<n.length-1;a++)l=U(this,c[o+a],r,a),l===m&&(l=this._$AH[a]),i||=!Q(l)||l!==this._$AH[a],l===u?t=u:t!==u&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}i&&!s&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},pt=class extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}},ut=class extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}},ft=class extends R{constructor(t,r,o,s,n){super(t,r,o,s,n),this.type=5}_$AI(t,r=this){if((t=U(this,t,r,0)??u)===m)return;let o=this._$AH,s=t===u&&o!==u||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==u&&(o===u||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},mt=class{constructor(t,r,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}},Ee={M:Ut,P:A,A:Rt,C:1,L:_e,R:dt,D:ge,V:U,I:H,H:R,N:ut,U:ft,B:pt,F:mt},Lo=kt.litHtmlPolyfillSupport;Lo?.(Z,H),(kt.litHtmlVersions??=[]).push("3.2.0");var Ce=(e,t,r)=>{let o=r?.renderBefore??t,s=o._$litPart$;if(s===void 0){let n=r?.renderBefore??null;o._$litPart$=s=new H(t.insertBefore(Y(),n),n,void 0,r??{})}return s._$AI(e),s};var{is:Oo,defineProperty:So,getOwnPropertyDescriptor:Po,getOwnPropertyNames:To,getOwnPropertySymbols:xo,getPrototypeOf:No}=Object,gt=globalThis,$e=gt.trustedTypes,Do=$e?$e.emptyScript:"",ko=gt.reactiveElementPolyfillSupport,X=(e,t)=>e,yt={toAttribute(e,t){switch(t){case Boolean:e=e?Do:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Vt=(e,t)=>!Oo(e,t),Ae={attribute:!0,type:String,converter:yt,reflect:!1,hasChanged:Vt};Symbol.metadata??=Symbol("metadata"),gt.litPropertyMetadata??=new WeakMap;var w=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Ae){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let o=Symbol(),s=this.getPropertyDescriptor(t,o,r);s!==void 0&&So(this.prototype,t,s)}}static getPropertyDescriptor(t,r,o){let{get:s,set:n}=Po(this.prototype,t)??{get(){return this[r]},set(i){this[r]=i}};return{get(){return s?.call(this)},set(i){let c=s?.call(this);n.call(this,i),this.requestUpdate(t,c,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ae}static _$Ei(){if(this.hasOwnProperty(X("elementProperties")))return;let t=No(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(X("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(X("properties"))){let r=this.properties,o=[...To(r),...xo(r)];for(let s of o)this.createProperty(s,r[s])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[o,s]of r)this.elementProperties.set(o,s)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let s=this._$Eu(r,o);s!==void 0&&this._$Eh.set(s,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let s of o)r.unshift(lt(s))}else t!==void 0&&r.push(lt(t));return r}static _$Eu(t,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Nt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,o){this._$AK(t,o)}_$EC(t,r){let o=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,o);if(s!==void 0&&o.reflect===!0){let n=(o.converter?.toAttribute!==void 0?o.converter:yt).toAttribute(r,o.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,r){let o=this.constructor,s=o._$Eh.get(t);if(s!==void 0&&this._$Em!==s){let n=o.getPropertyOptions(s),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:yt;this._$Em=s,this[s]=i.fromAttribute(r,n.type),this._$Em=null}}requestUpdate(t,r,o){if(t!==void 0){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Vt)(this[t],r))return;this.P(t,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,r,o){this._$AL.has(t)||this._$AL.set(t,r),o.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[s,n]of o)n.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],n)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(r=>this._$EC(r,this[r])),this._$EU()}updated(t){}firstUpdated(t){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[X("elementProperties")]=new Map,w[X("finalized")]=new Map,ko?.({ReactiveElement:w}),(gt.reactiveElementVersions??=[]).push("2.0.4");var L=class extends w{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=Ce(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return m}};L._$litElement$=!0,L.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:L});var Uo=globalThis.litElementPolyfillSupport;Uo?.({LitElement:L});(globalThis.litElementVersions??=[]).push("4.1.0");var we=";",vt=",",Le=":",Oe=!0,Se=!0,Pe=!0;var _={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},M=e=>(...t)=>({_$litDirective$:e,values:t}),O=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,o){this.t=t,this._$AM=r,this.i=o}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var Te=M(class extends O{constructor(e){if(super(e),e.type!==_.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(t)}let r=e.element.classList;for(let o of this.st)o in t||(r.remove(o),this.st.delete(o));for(let o in t){let s=!!t[o];s===this.st.has(o)||this.nt?.has(o)||(s?(r.add(o),this.st.add(o)):(r.remove(o),this.st.delete(o)))}return m}});var xe="important",Mo=" !"+xe,Ne=M(class extends O{constructor(e){if(super(e),e.type!==_.ATTRIBUTE||e.name!=="style"||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,r)=>{let o=e[r];return o==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let o of this.ft)t[o]==null&&(this.ft.delete(o),o.includes("-")?r.removeProperty(o):r[o]=null);for(let o in t){let s=t[o];if(s!=null){this.ft.add(o);let n=typeof s=="string"&&s.endsWith(Mo);o.includes("-")||n?r.setProperty(o,n?s.slice(0,-11):s,n?xe:""):r[o]=s}}return m}});var{I:ss}=Ee;var De=e=>e.strings===void 0;var jo={},ke=(e,t=jo)=>e._$AH=t;var Vo=M(class extends O{constructor(e){if(super(e),e.type!==_.PROPERTY&&e.type!==_.ATTRIBUTE&&e.type!==_.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!De(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===m||t===u)return t;let r=e.element,o=e.name;if(e.type===_.PROPERTY){if(t===r[o])return m}else if(e.type===_.BOOLEAN_ATTRIBUTE){if(!!t===r.hasAttribute(o))return m}else if(e.type===_.ATTRIBUTE&&r.getAttribute(o)===t+"")return m;return ke(e),t}});var Re=(e="",t={},r=F())=>{let o={emit:s=>{e===""&&G();let n=new CustomEvent(e,{detail:s,cancelable:Se,bubbles:Oe,composed:Pe,...t});return r.el.dispatchEvent(n),n}};return e===""&&it(r,s=>{e=s},o),o},fs=Re.bind(null,"");function Me(e){let t=e;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let r=t;return r.manager?.loadedCalled||r._offspring.push(e),r._postLoad.promise}return!1}var Ue={},vs=(e,t)=>function(o,s){if(!globalThis.customElements)return;let i=(s??o??{}).resourcesUrl;i&&e.setAssetPath(i),Object.entries(t).forEach(zo)};function zo([e,[t,r=""]]){if(customElements.get(e))return;let[o,s,n]=r.split(we),i=o?o?.split(vt).map(je):void 0,c=i?.map(([l])=>l),a=class extends j{static{this.observedAttributes=i?.map(([,l])=>l).filter(l=>l!=="")}static{this._properties=c}static{this._asyncMethods=s?s?.split(vt):void 0}static{this._syncMethods=n?.split(vt)}static{this._name=e}constructor(){!a._loadPromise&&(a._loadPromise=t(),a._initializePrototype()),super()}};customElements.define(e,a)}var bt=Object.defineProperty;function je(e){let t=e.split(Le);return t.length===1?[t[0],et(t[0])]:t}var Ho=globalThis.HTMLElement??je,j=class extends Ho{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new b,this._postLoaded=new b,this._offspring=[],this._saveInstanceProperties();let e=this.constructor;e._LitConstructor?this._initializeComponent({a:e._LitConstructor}):e._loadPromise.then(this._initializeComponent.bind(this)).catch(t=>{this._postLoaded.reject(t),setTimeout(()=>{throw t})})}static{this.lumina=!0}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(e){bt(this.prototype,e,{configurable:!0,enumerable:!0,get(){return this._store[e]},set(t){this._store[e]=t}})}static _bindAsync(e){bt(this.prototype,e,{async value(...t){return this._litElement||await this._postLoaded.promise,await this._litElement[e](...t)},configurable:!0})}static _bindSync(e){bt(this.prototype,e,{value(...t){return this._litElement[e](...t)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let e=this.constructor,t=this;e._properties?.forEach(r=>{Object.hasOwn(this,r)&&(this._store[r]=t[r],delete t[r])})}attributeChangedCallback(e,t,r){this._litElement?.attributeChangedCallback(e,t,r),this._litElement||this._pendingAttributes.push(e)}connectedCallback(){this._litElement?this._litElement.connectedCallback():queueMicrotask(()=>{this._ancestorLoad=Me(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback()}async componentOnReady(){return await this._postLoaded.promise,this._litElement}_initializeComponent(e){let t=this.constructor,r=t._name,o=Object.values(e).find(a=>a.tagName===r),s=`${r}--lazy`;!t._LitConstructor&&(t._LitConstructor=o,o.prototype.removeAttribute=function(a){HTMLElement.prototype.removeAttribute.call(this.el,a)},o.prototype.setAttribute=function(a,l){HTMLElement.prototype.setAttribute.call(this.el,a,l)},bt(o.prototype,"isConnected",{get(){return this.el.isConnected}}),customElements.define(s,o)),o.lazy=this;let i=document.createElement(s);o.lazy=void 0,this._litElement=i,this._pendingAttributes.forEach(a=>{let l=this.getAttribute(a);i.attributeChangedCallback(a,null,l)}),Object.entries(this._store).forEach(Wo,i),this._store=i;let c=this.isConnected;(c||this._ancestorLoad)&&(i.connectedCallback?.(),c||i.disconnectedCallback())}};function Wo([e,t]){this[e]=t}var It=Symbol.for("@arcgis/lumina:observedAttributes"),zt=globalThis,Bo=It in zt;zt[It]??={};var Fo=zt[It];if(!Bo){let e=t=>function(o,...s){if(Fo[this.tagName.toLowerCase()]?.manuallyObserved?.has(o)){let i=this.getAttribute(o),c=t.call(this,o,...s),a=this.getAttribute(o);return this.attributeChangedCallback(o,i,a),c}else return t.call(this,o,...s)};j.prototype.setAttribute=e(j.prototype.setAttribute),j.prototype.toggleAttribute=e(j.prototype.toggleAttribute),j.prototype.removeAttribute=e(j.prototype.removeAttribute)}var Go=()=>{},Ko=class Ve extends L{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=Pt(this),this._postLoad=this.constructor.lazy?._postLoad??new b,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new b,this._enableUpdating=this.enableUpdating,this.enableUpdating=Go;let t=Ve.prototype.shouldUpdate;this.shouldUpdate!==t&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=t),!1}static finalizeStyles(t){let r=super.finalizeStyles(t),s=this.constructor.shadowRootOptions===Ue;return this.runtime?.commonStyles===void 0||s?r:[this.runtime.commonStyles,...r]}static createProperty(t,r){let o=typeof r=="number"?r:Array.isArray(r)?r[0]:0,s=Array.isArray(r)?r[1]:void 0;super.createProperty(t,{attribute:o&1&&typeof t=="string"?et(t):!1,reflect:!!(o&2),type:o&4?Boolean:o&8?Number:void 0,state:!!(o&16),readOnly:!!(o&32),noAccessor:!!(o&64),...s})}static{this.lumina=!0}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=!this.manager.connectedCalled;super.connectedCallback(),t&&queueMicrotask(()=>this._load().catch(r=>{this._postLoaded.reject(r),setTimeout(()=>{throw r})}))}createRenderRoot(){let t=this.el.shadowRoot,r=this.constructor,o=r.shadowRootOptions,n=t??(o===Ue?this.el:this.el.attachShadow(o));if(Object.defineProperty(this,"shadowRoot",{value:n}),t)return L.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=n.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...r.elementStyles.map(c=>"styleSheet"in c?c.styleSheet:c)]}return n}async _load(){let t=this.el._ancestorLoad??Me(this.el);t&&await t,await this.manager._load(),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let r=this._offspring.filter(o=>!o.manager?.loadedCalled);r.length&&await Promise.allSettled(r.map(async o=>await o.componentOnReady())),this._offspring.length=0,this.el.setAttribute(this.constructor.runtime.hydratedAttribute,""),this.manager._loaded(),this._postLoaded.resolve()}shouldUpdate(t){return this.$changes=t,this._originalShouldUpdate?.(t)??!0}listen(t,r,o){let s=r?.bind(this)??r;this.manager.onLifecycle(()=>(this.el.addEventListener(t,s,o),()=>this.el.removeEventListener(t,s,o)))}listenOn(t,r,o,s){let n=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(r,n,s),()=>t.removeEventListener(r,n,s)))}async componentOnReady(){return await this._postLoaded.promise,this}};Ko.$createEvent=Re;function Ie(e){let t,r=s=>{t=new URL(s,globalThis.location?.href).href},o={...e,getAssetPath(s){let n=new URL(s,t);return n.origin!==globalThis.location?.origin?n.href:n.pathname},setAssetPath:r,customElement(s,n){n.runtime=o,n.tagName=s,customElements.get(s)||customElements.define(s,n)}};return r(e.defaultAssetPath),o}var Ls=e=>typeof e=="object"&&e!=null?Te(e):e,Os=e=>typeof e=="object"&&e!=null?Ne(e):e;var Ps=u;var qo=Ie({defaultAssetPath:"https://jsdev.arcgis.com/map-components/next/",hydratedAttribute:"hydrated"}),{customElement:ks,getAssetPath:Us,setAssetPath:Rs}=qo;export{Jo as a,et as b,Gt as c,Kt as d,F as e,St as f,oe as g,K as h,Zt as i,re as j,se as k,vo as l,bo as m,ie as n,yr as o,vr as p,br as q,Ao as r,$r as s,Ar as t,wr as u,u as v,_ as w,M as x,O as y,De as z,fs as A,Ue as B,vs as C,Ko as D,Ls as E,Os as F,Ps as G,qo as H,ks as I,Us as J};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
5
- */
6
- import{a as u}from"./E4A6DD7W.js";import"./TL2O77FA.js";import{d as s,v as l}from"./2QCUAEYR.js";import{d as w}from"./UF3GQO25.js";import{A as r,B as h,D as d,I as n,q as o}from"./6V7GUT2B.js";var c=u(l),i="map-components:arcgis-directions",a=class extends d{constructor(){super(...arguments),this.widget=c(this),this.viewModel=this.widget.viewModel,this.apiKey=this.widget.apiKey,this.autoDestroyDisabled=!1,this.headingLevel=this.widget.headingLevel,this.hideLayerDetails=this.widget.visibleElements.layerDetails,this.hideSaveAsButton=this.widget.visibleElements.saveAsButton,this.hideSaveButton=this.widget.visibleElements.saveButton,this.icon=this.widget.icon,this.label=this.widget.label,this.lastRoute=this.widget.lastRoute,this.layer=this.widget.layer,this.maxStops=this.widget.maxStops,this.position="bottom-left",this.searchProperties=this.widget.searchProperties,this.state=this.viewModel.state,this.unit=this.widget.unit,this.useDefaultRouteLayer=!1,this.arcgisPropertyChange=o()("lastRoute","state"),this.arcgisReady=r()}static{this.properties={apiKey:1,autoDestroyDisabled:5,headingLevel:9,hideLayerDetails:5,hideSaveAsButton:5,hideSaveButton:5,icon:1,label:1,lastRoute:0,layer:0,maxStops:9,position:1,referenceElement:1,routeLayerItemId:1,searchProperties:0,state:0,unit:1,useDefaultRouteLayer:5}}static{this.shadowRootOptions=h}async destroy(){await this.manager.destroy()}async getDirections(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${i} - component not ready to get directions`);return await this.widget?.getDirections()}async save(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${i} - component not ready to save directions`);return await this.widget?.save()}async saveAs(t,e){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${i} - component not ready to save directions as a Portal Item`);return await this.widget?.saveAs(t,e)}async zoomToRoute(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${i} - component not ready to zoom to route`);this.widget?.zoomToRoute()}willUpdate(t){if(t.has("routeLayerItemId")){let e=this.routeLayerItemId;w(e)&&!this.useDefaultRouteLayer?(this.widget.view?.map.remove(this.layer),this._setDefaultLayer()):e&&this.widget&&s({portalItem:{id:e}}).then(y=>{this.layer=y,this.widget.view?.map.add(this.layer)}).catch(console.error)}t.has("useDefaultRouteLayer")&&this._setDefaultLayer()}_setDefaultLayer(){this.useDefaultRouteLayer&&!this.routeLayerItemId&&s({}).then(t=>{this.layer=t,this.widget.view?.map.add(this.layer)}).catch(console.error)}};n("arcgis-directions",a);export{a as ArcgisDirections};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
5
- */
6
- import{b as y,c as a}from"./TL2O77FA.js";import{b as r}from"./UF3GQO25.js";import{h,j as w,n as _}from"./6V7GUT2B.js";var P=(d,s)=>(i,e)=>v(i,d,e),p=class extends y{constructor(s,i,e){super(s,i,e),this._watchedViewModelProperties=new Map,this._watchedVisibleElementsProperties={},this._isBindingViewModel={value:!0},Object.defineProperty(this.exports,"viewModel",{value:a.makeGetterProxy(s,this._watchedViewModelProperties,this._isBindingViewModel)}),Object.defineProperty(this.exports,"visibleElements",{value:this._makeVisibleElementsBinder()})}hostConnected(){super.hostConnected(),this._isBindingViewModel.value=!1,this.component.manager.loadedCalled&&r(this.component)}async hostLoad(){if(this._watchedProperties.delete("viewModel"),await super.hostLoad(),this.component.manager.destroyed)return;this._watchMetaProperties(),this.onLifecycle(()=>this.reactiveUtils.watch(()=>this._instance.viewModel,e=>{this.component.viewModel=e},{initial:!0}));let s=this._instance.viewModel;typeof s=="object"&&(a.watchComponentUpdates(this,s,this._watchedViewModelProperties),a.watchAccessorUpdates(this,s,this._watchedViewModelProperties));let i=Object.entries(this._watchedVisibleElementsProperties);i.length>0&&this.onLifecycle(()=>i.map(([e,t])=>{let o=this._instance.visibleElements??{},n;for(let c of t.slice(0,-1))if(typeof o[c]=="object"&&o[c]!==null)o=o[c];else{n=!!o[c];break}n===void 0&&(n=!!(o[t.slice(-1)[0]]??!0)),e.startsWith("hide");let m=e.startsWith("hide")||e.startsWith("show")?e.startsWith("hide"):n,l=this.component;return typeof l[e]=="boolean"?this._updateWidgetVisibleElement(t,l[e],m):l[e]=!1,h(this.component,e,c=>this._updateWidgetVisibleElement(t,c,m))}))}_updateWidgetVisibleElement(s,i,e){let t=this._instance.visibleElements??{};for(let n of s.slice(0,-1))(typeof t[n]!="object"||t[n]===null)&&(t[n]={}),t=t[n];let o=!!(e?!i:i);t[s.at(-1)]=o}hostLoaded(){let{el:s}=this.component;s.childElem??=document.createElement("div"),this._instance.container=s.childElem;let i=!1,e=this.component.el.view;Object.defineProperty(this.component.el,"view",{get:()=>this._instance.view??this._instance.viewModel?.view,set:t=>{!("view"in this._instance)&&typeof this._instance.viewModel=="object"?this._instance.viewModel.view=t:this._instance.view=t,!("map"in this._instance)&&typeof this._instance.viewModel=="object"?this._instance.viewModel.map=t.map:this._instance.map=t.map,this._watchViewDestroy(),t&&!i&&(i=!0,this.component.arcgisReady.emit())},configurable:!0,enumerable:!0}),e&&(this._instance.view=e),this.component.el.isConnected&&(r(this.component),this._watchViewDestroy())}hostDisconnected(){typeof this.component.el.childElem=="object"&&this.component.el.view?.ui?.remove(this.component.el.childElem)}hostDestroy(){super.hostDestroy(),this._watchViewDestroyHandle?.remove()}_watchMetaProperties(){h(this.component,"position",s=>{this.component.el.childElem!=null&&typeof s=="string"&&r(this.component)}),h(this.component,"referenceElement",()=>r(this.component))}_makeVisibleElementsBinder(){return new Proxy({},{has:(s,i)=>typeof i=="string"||Reflect.has(s,i),get:(s,i)=>{if(typeof i=="symbol"||i in Promise.prototype)return Reflect.get(s,i);let e=[i],t=this._makeRecursiveProxy(e);return w(this.component,o=>{let n=o;this.component[n]=!1,this._watchedVisibleElementsProperties[n]=e},t)}})}_makeRecursiveProxy(s){let i=new Proxy({},{get:(e,t)=>{let o=Reflect.get(e,t);return typeof t=="symbol"||t in Promise.prototype?o:(s.push(t),i)}});return i}_watchViewDestroy(){this._watchViewDestroyHandle?.remove(),this._watchViewDestroyHandle=this.reactiveUtils.when(()=>this.component.el.view?.destroyed===!0,()=>void this.component.destroy().catch(console.error),{sync:!0})}},v=_(p);export{P as a};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
5
- */
6
- import{a,c as g,d as t}from"./TL2O77FA.js";import{e as c,g as m,ja as d}from"./2QCUAEYR.js";import{f as l,g as r}from"./UF3GQO25.js";import{A as s,B as w,D as v,I as p,o,r as n}from"./6V7GUT2B.js";var _=n`.arcgis-map{padding:0;margin:0;height:100%;width:100%}`,f=a(m,{}),E=a(c,{}),h=class extends v{constructor(){super(...arguments),this._map=f(this,{editConstructorProperties:this._editMapProperties}),this.reactiveUtils=o(d),this.view=E(this,{editConstructorProperties:this._editViewProperties}),this.allLayerViews=this.view.allLayerViews,this.autoDestroyDisabled=!1,this.background=this.view.background,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.constraints=this.view.constraints,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.highlightOptions=this.view.highlightOptions,this.highlights=this.view.highlights,this.ipsInfo=this._map.ipsInfo,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.ready=this.view.ready,this.resizeAlign=this.view.resizeAlign,this.resolution=this.view.resolution,this.rotation=this.view.rotation,this.spatialReference=this.view.spatialReference,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.updating=this.view.updating,this.arcgisViewChange=s(),this.arcgisViewClick=t(()=>this.view,"viewClick"),this.arcgisViewDoubleClick=t(()=>this.view,"viewDoubleClick"),this.arcgisViewDrag=t(()=>this.view,"viewDrag"),this.arcgisViewHold=t(()=>this.view,"viewHold"),this.arcgisViewImmediateClick=t(()=>this.view,"viewImmediateClick"),this.arcgisViewImmediateDoubleClick=t(()=>this.view,"viewImmediateDoubleClick"),this.arcgisViewKeyDown=t(()=>this.view,"viewKeyDown"),this.arcgisViewKeyUp=t(()=>this.view,"viewKeyUp"),this.arcgisViewLayerviewCreate=t(()=>this.view,"viewLayerviewCreate"),this.arcgisViewLayerviewCreateError=t(()=>this.view,"viewLayerviewCreateError"),this.arcgisViewLayerviewDestroy=t(()=>this.view,"viewLayerviewDestroy"),this.arcgisViewMouseWheel=t(()=>this.view,"viewMouseWheel"),this.arcgisViewPointerDown=t(()=>this.view,"viewPointerDown"),this.arcgisViewPointerEnter=t(()=>this.view,"viewPointerEnter"),this.arcgisViewPointerLeave=t(()=>this.view,"viewPointerLeave"),this.arcgisViewPointerMove=t(()=>this.view,"viewPointerMove"),this.arcgisViewPointerUp=t(()=>this.view,"viewPointerUp"),this.arcgisViewReadyChange=s()}static{this.properties={view:32,allLayerViews:0,autoDestroyDisabled:5,background:0,basemap:1,basemapView:0,center:1,constraints:0,extent:0,fatalError:0,floors:0,gamepad:32,graphics:0,ground:1,highlightOptions:0,highlights:0,interacting:32,ipsInfo:0,itemId:3,layerViews:0,magnifier:0,map:0,navigating:32,navigation:0,padding:0,popup:0,popupDisabled:5,ready:0,resizeAlign:1,resolution:8,rotation:9,scale:9,spatialReference:0,stationary:32,suspended:7,theme:0,timeExtent:0,timeZone:1,updating:7,viewpoint:0,zoom:9}}static{this.shadowRootOptions=w}static{this.styles=_}get center(){return this.view.center??this._center}set center(i){let e=r(i,this.ready?this.view:void 0);e&&(this.ready&&(this.view.center=e),this._center=e)}get extent(){return this.view.extent??this._extent}set extent(i){this.view.ready||(this._extent=i),i&&!this.extent?.equals(i)&&(this.view.extent=i)}get gamepad(){return this.ready?this.view.input.gamepad:void 0}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id??this._itemId}set itemId(i){this._itemId=i,this.ready&&g.reCreate(this._map,this).then(()=>{this.view.map=this._map}).catch(console.error)}get navigating(){return this.view.navigating}get scale(){return this.view.scale??this._scale}set scale(i){this.ready&&(this.view.scale=i),this._scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint??this._viewpoint}set viewpoint(i){l(this.viewpoint,i)&&(this.ready&&(this.view.viewpoint=i),this._viewpoint=i)}get zoom(){return this.view.zoom??this._zoom}set zoom(i){this.ready&&(this.view.zoom=i),this._zoom=i}async addLayer(i,e){this.map?.add(i,e)}async addLayers(i,e){this.map?.addMany(i,e)}async closePopup(){this.view?.closePopup()}async destroy(){await this.manager.destroy()}async goTo(i,e){return await this.view?.goTo(i,e)}async hitTest(i,e){return await this.view?.hitTest(i,e)}async openPopup(i){await this.view?.openPopup(i)}async takeScreenshot(i){return await this.view?.takeScreenshot(i)}toMap(i){return this.view.toMap(i)}toScreen(i,e){return this.view.toScreen(i,e)}async tryFatalErrorRecovery(){this.view?.tryFatalErrorRecovery()}async whenLayerView(i){return await this.view?.whenLayerView(i)}load(){this.el.childElem=document.createElement("div"),this.el.childElem.classList.add("arcgis-map"),this.el.append(this.el.childElem),this.view.container??=this.el.childElem}loaded(){let{watch:i}=this.reactiveUtils;this.manager.onLifecycle(()=>[i(()=>this.view.stationary,()=>{this.arcgisViewChange.emit()},{initial:!0}),i(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready})])}_editMapProperties(i){this.map&&(this._map=this.map),this.itemId?i.portalItem={id:this.itemId}:this.basemap||(i.basemap="topo-vector");let{basemap:e,...u}=i;e||(i=u);let{ground:y,...V}=i;return y||(i=V),i}_editViewProperties(i){this.view.ui||(i.ui={components:["attribution"]}),i.map??=this._map;let e=r(this.center,void 0);return e&&(i.center=e),this.viewpoint&&(i.viewpoint=this.viewpoint),this.scale!==void 0&&(i.scale=this.scale),this.extent&&(i.extent=this.extent),this.zoom!==void 0&&(i.zoom=this.zoom),i}};p("arcgis-map",h);export{h as ArcgisMap};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
5
- */
6
- import{b as C,d as $,e as L,f as V,g as R,i as m,j as b,k as h,l as P,m as I,n as W}from"./6V7GUT2B.js";var y=typeof window<"u"&&"$arcgis"in window&&typeof window.$arcgis=="object"&&"import"in window.$arcgis&&!("forceESM"in window.$arcgis);function g(t){return t.default!==void 0}async function F(){if(y)return await window.$arcgis.import("esri/core/Accessor");let t=await import("@arcgis/core/core/Accessor.js");return g(t)?t.default:t}async function T(){if(y)return await window.$arcgis.import("esri/core/accessorSupport/decorators");let t=await import("@arcgis/core/core/accessorSupport/decorators.js");return g(t)?t.default:t}async function G(){if(y)return await window.$arcgis.import("esri/core/reactiveUtils");let t=await import("@arcgis/core/core/reactiveUtils.js");return g(t)?t.default:t}var S;async function A(){return S??(S=G()),await S}var v=Promise.all([F(),T()]),D=class extends V{async hostLoad(){let[t,{subclass:e,property:n}]=await v;class i extends t{}function u(w,d){return a[d],w}function r(w,d,l){return a!==void 0&&(a[l]=w),w}let p=this.component,s=p.manager.internals,o=[];if(Object.keys(s.members).forEach(w=>{s.accessorSetter[w]===m&&(o.push(w),s.accessorGetter[w]=u,s.accessorSetter[w]=r,n()(i.prototype,w))}),this._enabledMembers=o,o.length===0)return;let c=e(p.el.tagName)(i),a=new c;this._instance=a}controllerRemoved(){super.controllerRemoved();let t=this.component.manager.internals;this._instance?.destroy(),this._enabledMembers?.forEach(e=>{t.accessorGetter[e]=m,t.accessorSetter[e]=m})}},_=(t,e)=>(n,i)=>k(n,t,i),E=class extends R{constructor(t,e,n){super(t),this._loadAccessor=e,this._options=n,this._watchedProperties=new Map,this._isBinding={value:!0},this.setProvisionalExports(M.makeGetterProxy(t,this._watchedProperties,this._isBinding,this.constructor.allowedPropNameMismatches));let i=t.manager.internals.reactiveUtilsIntegrations;i.add(this);let u=Array.from(i).find(r=>r instanceof D);u&&i.delete(u),i.add(u??new D(this.component)),b(t,r=>{r&&(this._instancePropName=r)},this.exports)}hostConnected(){this._isBinding.value=!1}async hostLoad(){this.reactiveUtils=await A();let t=this.component,e=this._gatherParameters(),n=this._options?.editConstructorProperties?.call(t,e)??e,i=n instanceof Promise?await n:n,u=t,r=typeof this._instancePropName=="string"?u[this._instancePropName]:void 0;r!=null&&r!==this.exports?(this._instance=r,r.set(i)):this._instance=await this._createInstance(i),!t.manager.destroyed&&(M.watchComponentUpdates(this,this._instance,this._watchedProperties),M.watchAccessorUpdates(this,this._instance,this._watchedProperties),this.exports=this._instance)}_gatherParameters(){return Object.fromEntries(Array.from(this._watchedProperties,([n,i])=>[i,this.component[n]]).filter(([,n])=>n!==void 0))}async _createInstance(t){return this._isAccessorConstructor(this._loadAccessor)?new this._loadAccessor(t):await this._loadAccessor(t)}_isAccessorConstructor(t){return"prototype"in t&&"declaredClass"in t.prototype}hostDestroy(){this._instance&&this._instance.destroy()}async reCreate(){this.hostDestroy(),await this.hostLoad()}},k=W(E),M={makeGetterProxy:(t,e,n,i)=>new Proxy({},{has:(u,r)=>typeof r=="string"||r in u,get:(u,r)=>{let p=Reflect.get(u,r);if(typeof r=="symbol"||r in Promise.prototype)return p;let s=r in u,o=n?.value??!0;return s||!o?p:h(t,c=>{c!==void 0&&e.set(c.key,r)},p)}}),watchComponentUpdates(t,e,n){function i(s,o){let c=n.get(o),a=e[c];return typeof a=="boolean"&&c!==o&&o.toLowerCase().includes("disable")?!a:a}let u=(s,o,c)=>{let a=n.get(c),w=e[a],d=typeof w=="boolean"&&a!==c&&c.toLowerCase().includes("disable");if((d?!w:r.manager.isLit?w??void 0:w)===s)return s;e[a]=d?!s:s;let f=e[a];return d?!f:f},r=t.component,p=r.manager.internals;n.forEach((s,o)=>{p.accessorGetter[o]=i,p.accessorSetter[o]=u})},watchAccessorUpdates(t,e,n){let{component:i}=t,u=i,r=e,p=B(e);I(()=>n.forEach((s,o)=>{if(p.has(s))return;let c=u[o],a=r[s];i.manager.isLit&&(a??(a=void 0));let d=typeof c=="boolean"&&s!==o&&o.toLowerCase().includes("disable")?!c:c;d!=null&&a!==d&&(r[s]=d)})),t.onLifecycle(()=>{if(!e.destroyed)return Array.from(n,([s,o])=>t.reactiveUtils.watch(()=>r[o],()=>{let c=r[o],w=typeof c=="boolean"&&o!==s&&s.toLowerCase().includes("disable")?!c:c;P(()=>{u[s]=w})},{initial:!0}))})},reEmitAccessorEvents(t,e,n,i){if(!("on"in e&&typeof e.on=="function"))return;let r=Object.entries(t.component).map(([o,c])=>{let a=c;if(!o.startsWith(i)||o===i||typeof a!="object"||a===null||!("emit"in a)||typeof a.emit!="function")return;let w=a.emit,d=o.slice(i.length);return[C(d).toLowerCase(),w]}).filter($);if(r.length===0)return;let p=e,s=()=>p;t.onLifecycle(()=>{if(!e.destroyed)return r.map(([o,c])=>n.on(s,o,c))})},async reCreate(t,e){let n=e.manager.useRefSync(t);n!==void 0&&await n.reCreate()}};function B(t){let n=Object.entries(t.__accessor__?.metadata??{});return new Set(n.filter(([i,u])=>u?.readOnly===!0).map(([i])=>i))}function q(t,e){let n=L(),i=A(),u=n.manager;u.onLoaded(()=>{i.then(p=>u.onLifecycle(()=>p.on(t,e,r.emit)))});let r=n.constructor.$createEvent(e,void 0,n);return r}export{_ as a,E as b,M as c,q as d};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.3
5
- */
6
- import{a as o}from"./4UXCF4OM.js";import{a as g,b as p}from"./P7RGEXXO.js";import"./TL2O77FA.js";import{H as u}from"./2QCUAEYR.js";import"./UF3GQO25.js";import{A as n,B as c,D as d,E as i,G as m,I as h,a as r,q as l,s}from"./6V7GUT2B.js";var w={base:"esri-fullscreen"},y=p(u),a=class extends d{constructor(){super(...arguments),this.messages=g(),this.viewModel=y(this),this.autoDestroyDisabled=!1,this.element=this.viewModel.element,this.icon="zoom-out-fixed",this.position="top-left",this.state=this.viewModel.state,this.arcgisPropertyChange=l()("state"),this.arcgisReady=n()}static{this.properties={autoDestroyDisabled:5,element:0,icon:3,label:1,messageOverrides:0,position:3,referenceElement:1,state:3}}static{this.shadowRootOptions=c}get fullscreenTitle(){let e=this.viewModel?.state;return e==="active"?this.messages.exit:e==="ready"?this.messages.enter:""}async destroy(){await this.manager.destroy()}_toggle(){this.viewModel.toggle()}render(){let{fullscreenTitle:e,icon:f}=this,t=this.viewModel?.state,b=t==="feature-unsupported",v=t==="ready"||t==="disabled"||t==="feature-unsupported"?"zoom-out-fixed":"zoom-in-fixed";return s`<div class=${i(r(w.base,o.widget))}>${!b&&s`<calcite-button class=${i(o.widgetButton)} .disabled=${t==="disabled"} .iconStart=${(f??v)||""} kind=neutral .label=${e} @click=${this._toggle} title=${e??m}></calcite-button>`||""}</div>`}};h("arcgis-fullscreen",a);export{a as ArcgisFullscreen};