@arcgis/map-components 5.2.0-next.96 → 5.2.0-next.97

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 (178) hide show
  1. package/dist/cdn/{GIQDIWW4.js → 22VFTYTN.js} +1 -1
  2. package/dist/cdn/367Z3TKY.js +2 -0
  3. package/dist/cdn/{QTGJ2TIJ.js → 454H3MLO.js} +1 -1
  4. package/dist/cdn/{FRAZUJ7K.js → 4MSBOUHQ.js} +1 -1
  5. package/dist/cdn/{SK4OCYH7.js → 4YU2AF7S.js} +1 -1
  6. package/dist/cdn/5FWT3N7B.js +2 -0
  7. package/dist/cdn/6KYWLAYH.js +2 -0
  8. package/dist/cdn/6SEM26SM.js +2 -0
  9. package/dist/cdn/6ZE7BJTS.js +2 -0
  10. package/dist/cdn/72HH6FSN.js +2 -0
  11. package/dist/cdn/{LPB2JMJ5.js → 7F2DXC54.js} +1 -1
  12. package/dist/cdn/{Y56FOEA4.js → A3KD2UAY.js} +1 -1
  13. package/dist/cdn/{MXYWUI34.js → ASVNFERZ.js} +1 -1
  14. package/dist/cdn/{PWY44JI6.js → B4KOVXN3.js} +1 -1
  15. package/dist/cdn/{7TTSWTGP.js → BHENVS42.js} +1 -1
  16. package/dist/cdn/{VHHRBGXN.js → CJLML2XS.js} +1 -1
  17. package/dist/cdn/CKO4VE36.js +2 -0
  18. package/dist/cdn/{I3VQ46FA.js → EAQV7AZQ.js} +1 -1
  19. package/dist/cdn/{CEMBX25Q.js → EXIPQBCY.js} +1 -1
  20. package/dist/cdn/FCNNRX3Q.js +2 -0
  21. package/dist/cdn/FCVLHRLJ.js +2 -0
  22. package/dist/cdn/{3CHIGFZL.js → GLMK45AB.js} +1 -1
  23. package/dist/cdn/{S5XIZ2L4.js → HXNLIDLQ.js} +1 -1
  24. package/dist/cdn/{7ZZWKH2U.js → IPT3YBSG.js} +2 -2
  25. package/dist/cdn/{UAGCCYQB.js → IXDLJKJA.js} +1 -1
  26. package/dist/cdn/{B5FTF7WR.js → J624KHFL.js} +1 -1
  27. package/dist/cdn/{G2BLA5NQ.js → JAQYZZRT.js} +1 -1
  28. package/dist/cdn/{XAZNEI2W.js → LCG5BEEY.js} +1 -1
  29. package/dist/cdn/{VWV6XWSU.js → LW6SRLBI.js} +1 -1
  30. package/dist/cdn/{5SVULVBJ.js → MAILUSIQ.js} +1 -1
  31. package/dist/cdn/NRT2ZCWC.js +2 -0
  32. package/dist/cdn/{HOKDRJ4R.js → NSUQXUWH.js} +1 -1
  33. package/dist/cdn/{V42KBFW7.js → OCAPESF3.js} +1 -1
  34. package/dist/cdn/{F3JDX4A7.js → OMEJFPK7.js} +1 -1
  35. package/dist/cdn/{D6BWGR3Z.js → P5CQYFPA.js} +1 -1
  36. package/dist/cdn/R5GMCIAH.js +2 -0
  37. package/dist/cdn/{AKNAVXKD.js → RC7BSNQ3.js} +1 -1
  38. package/dist/cdn/SA4IYYIE.js +2 -0
  39. package/dist/cdn/{QD3GVN2C.js → SDY4E3WA.js} +1 -1
  40. package/dist/cdn/{CJ536VHT.js → SGU4TP7V.js} +1 -1
  41. package/dist/cdn/TDGEDT35.js +2 -0
  42. package/dist/cdn/{66PT52ED.js → TZEAPNBI.js} +1 -1
  43. package/dist/cdn/{CA5LXWO6.js → UOZG2EH7.js} +1 -1
  44. package/dist/cdn/{GMSIYMNC.js → UPJTKQR3.js} +1 -1
  45. package/dist/cdn/{2JLMOWRT.js → VULA5TJD.js} +1 -1
  46. package/dist/cdn/VZXCU47M.js +2 -0
  47. package/dist/cdn/{FRSROWP4.js → W6IFUQTQ.js} +1 -1
  48. package/dist/cdn/{SVJ7AEMP.js → WAFRMU5C.js} +1 -1
  49. package/dist/cdn/WLGR4IHZ.js +2 -0
  50. package/dist/cdn/{CX3OZJEH.js → WMK7RLBA.js} +1 -1
  51. package/dist/cdn/{4FVOBVTD.js → YEN7K65V.js} +2 -2
  52. package/dist/cdn/YVQJ4XD4.js +2 -0
  53. package/dist/cdn/{FZDURX2Y.js → YWOTHCBH.js} +1 -1
  54. package/dist/cdn/{N5VJ4SAX.js → ZCRUGROJ.js} +1 -1
  55. package/dist/cdn/{VT2IDAHB.js → ZUWNZX6G.js} +1 -1
  56. package/dist/cdn/assets/layer-list-next/t9n/messages.en.json +1 -1
  57. package/dist/cdn/index.js +1 -1
  58. package/dist/chunks/layer-list-utils.js +23 -17
  59. package/dist/chunks/svgUtils.js +1 -1
  60. package/dist/chunks/univariateUtils.js +1 -1
  61. package/dist/chunks/utils2.js +66 -50
  62. package/dist/chunks/utils3.js +50 -13
  63. package/dist/chunks/utils4.js +13 -45
  64. package/dist/chunks/utils5.js +51 -0
  65. package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +21 -0
  66. package/dist/components/arcgis-area-measurement-2d/customElement.js +5 -5
  67. package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +16 -0
  68. package/dist/components/arcgis-area-measurement-3d/customElement.js +10 -10
  69. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +6 -5
  70. package/dist/components/arcgis-catalog-layer-list-next/customElement.js +1 -1
  71. package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +18 -0
  72. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
  73. package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +19 -0
  74. package/dist/components/arcgis-distance-measurement-2d/customElement.js +5 -5
  75. package/dist/components/arcgis-layer-list-item-indicator/customElement.js +6 -6
  76. package/dist/components/arcgis-layer-list-item-panel/customElement.js +20 -16
  77. package/dist/components/arcgis-layer-list-next/customElement.d.ts +16 -0
  78. package/dist/components/arcgis-layer-list-next/customElement.js +49 -45
  79. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +134 -10
  80. package/dist/components/arcgis-layer-list-next/types.d.ts +5 -0
  81. package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
  82. package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
  83. package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
  84. package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
  85. package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
  86. package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
  87. package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
  88. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +1 -1
  89. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.js +1 -1
  90. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  91. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  92. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  93. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  94. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  95. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  96. package/dist/components/arcgis-table-list-next/customElement.js +5 -5
  97. package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/customElement.d.ts +2 -1
  98. package/dist/components/arcgis-utility-network-elements-result-item/customElement.d.ts +1 -1
  99. package/dist/components/arcgis-utility-network-elements-result-item/customElement.js +1 -1
  100. package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.d.ts +11 -0
  101. package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.js +76 -78
  102. package/dist/components/arcgis-utility-network-trace-results-next/customElement.d.ts +10 -4
  103. package/dist/components/arcgis-utility-network-trace-results-next/customElement.js +17 -25
  104. package/dist/components/arcgis-volume-measurement/customElement.d.ts +37 -0
  105. package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
  106. package/dist/docs/api.json +1 -1
  107. package/dist/docs/docs.json +1 -1
  108. package/dist/docs/vscode.html-custom-data.json +1 -1
  109. package/dist/docs/web-types.json +1 -1
  110. package/dist/loader.js +7 -7
  111. package/dist/types/lumina.d.ts +9 -9
  112. package/dist/types/preact.d.ts +9 -9
  113. package/dist/types/react.d.ts +9 -9
  114. package/dist/types/stencil.d.ts +9 -9
  115. package/dist/utils/layer-list-utils.d.ts +1 -1
  116. package/package.json +6 -6
  117. package/dist/cdn/376WTHOL.js +0 -2
  118. package/dist/cdn/4YFREAQ2.js +0 -2
  119. package/dist/cdn/ECXHREHJ.js +0 -2
  120. package/dist/cdn/FIIA3N5X.js +0 -2
  121. package/dist/cdn/HISWL3K3.js +0 -2
  122. package/dist/cdn/HPLMTKLF.js +0 -2
  123. package/dist/cdn/JKOIMKKL.js +0 -2
  124. package/dist/cdn/JOPAUFUX.js +0 -2
  125. package/dist/cdn/LDDAJOTV.js +0 -2
  126. package/dist/cdn/LMNH2RHA.js +0 -2
  127. package/dist/cdn/MBFY4GDJ.js +0 -2
  128. package/dist/cdn/PI55I5L7.js +0 -2
  129. package/dist/cdn/RCQKTBVC.js +0 -2
  130. package/dist/cdn/YDP5A3EP.js +0 -2
  131. package/dist/cdn/ZSDNX326.js +0 -2
  132. package/dist/chunks/layer-list-item.js +0 -181
  133. /package/dist/cdn/{WKBILCAY.js → 2ZG7S6GM.js} +0 -0
  134. /package/dist/cdn/{4WURS3DM.js → 3VWL4SN7.js} +0 -0
  135. /package/dist/cdn/{4GIRSQMC.js → 4F6FNH6V.js} +0 -0
  136. /package/dist/cdn/{KYWZUC6M.js → 4J6DMRVO.js} +0 -0
  137. /package/dist/cdn/{FVZJPOWC.js → 5OBSJYCP.js} +0 -0
  138. /package/dist/cdn/{5CB7FWG6.js → 657KH5W3.js} +0 -0
  139. /package/dist/cdn/{ESYSNSNH.js → 6B4ROFUM.js} +0 -0
  140. /package/dist/cdn/{RKXHWHFR.js → 6RT7GRX4.js} +0 -0
  141. /package/dist/cdn/{3ZXNGXHC.js → 7DI2ZSB3.js} +0 -0
  142. /package/dist/cdn/{4AEFZEGM.js → 7JKYXV7H.js} +0 -0
  143. /package/dist/cdn/{NDWLSQ4W.js → 7NO3F7GQ.js} +0 -0
  144. /package/dist/cdn/{4KYPBCNM.js → AA2HLLIM.js} +0 -0
  145. /package/dist/cdn/{BU5HRIOW.js → ADZF7IHV.js} +0 -0
  146. /package/dist/cdn/{B4RNNO6A.js → B6JLKBMG.js} +0 -0
  147. /package/dist/cdn/{ZOGRVFHK.js → D2FVI5JG.js} +0 -0
  148. /package/dist/cdn/{HW5YYDPC.js → D5LP3DJA.js} +0 -0
  149. /package/dist/cdn/{OJOQP2IU.js → DNQGXWL3.js} +0 -0
  150. /package/dist/cdn/{QU5PA5MZ.js → DSPV4EIK.js} +0 -0
  151. /package/dist/cdn/{FV7FUSTO.js → E3AEBH36.js} +0 -0
  152. /package/dist/cdn/{2EDZ2LNR.js → FRGVEQAZ.js} +0 -0
  153. /package/dist/cdn/{ZXEH6MEU.js → G7DHB4QN.js} +0 -0
  154. /package/dist/cdn/{MGILHYX4.js → GJAC7GKP.js} +0 -0
  155. /package/dist/cdn/{G42D353L.js → GLZMKGGW.js} +0 -0
  156. /package/dist/cdn/{WRKX7F2G.js → H3RDAWS7.js} +0 -0
  157. /package/dist/cdn/{YFM2SKWI.js → HDYBFSI5.js} +0 -0
  158. /package/dist/cdn/{NGQUETWM.js → HH4A44WX.js} +0 -0
  159. /package/dist/cdn/{5EU3QVP7.js → HRTVHZHG.js} +0 -0
  160. /package/dist/cdn/{7427KHVF.js → IU63DGNP.js} +0 -0
  161. /package/dist/cdn/{O3SPKYBG.js → J3KTKVLP.js} +0 -0
  162. /package/dist/cdn/{BV52G5DA.js → JHF7SGKM.js} +0 -0
  163. /package/dist/cdn/{GLKTAVV5.js → JU4MCJPU.js} +0 -0
  164. /package/dist/cdn/{77ZD2RFI.js → KVIE42LT.js} +0 -0
  165. /package/dist/cdn/{W2UZH6QI.js → LG3G4BFF.js} +0 -0
  166. /package/dist/cdn/{VDTRRLON.js → MDTNPISF.js} +0 -0
  167. /package/dist/cdn/{XYRTRBXU.js → OO4SKY7C.js} +0 -0
  168. /package/dist/cdn/{SNX6WY7J.js → OTTKYEPK.js} +0 -0
  169. /package/dist/cdn/{J4VKIBXE.js → QH4RNPEX.js} +0 -0
  170. /package/dist/cdn/{IHWFNEBS.js → QJBQ3JLC.js} +0 -0
  171. /package/dist/cdn/{KG3HVAZY.js → SE4NXMGA.js} +0 -0
  172. /package/dist/cdn/{AZWQWNTK.js → SOOVHYLT.js} +0 -0
  173. /package/dist/cdn/{KMNELKA3.js → T5QDEAAE.js} +0 -0
  174. /package/dist/cdn/{W2YB27M6.js → TKEBTPPA.js} +0 -0
  175. /package/dist/cdn/{6URW6H47.js → TTBQBEDS.js} +0 -0
  176. /package/dist/cdn/{BIKEUMV7.js → VFHHDNXC.js} +0 -0
  177. /package/dist/cdn/{QZHFPTSI.js → X2MAQDWV.js} +0 -0
  178. /package/dist/cdn/{LGNLLGA6.js → YWQU6EBN.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as b}from"./7427KHVF.js";import{J as _,M as T,N as I,f as L,g as y,m as U,o as H}from"./RKXHWHFR.js";import{a as J}from"./H6RQVSYM.js";var Z={};J(Z,{StyleRule:()=>j,StyleSheet:()=>P,addClass:()=>mt,addEventListener:()=>k,addSpacing:()=>Ot,alternativeColor:()=>R,blur:()=>ot,brighten:()=>F,capitalizeFirst:()=>It,cleanFormat:()=>Tt,contains:()=>z,decimalPlaces:()=>wt,escapeForRgex:()=>Dt,focus:()=>it,get12Hours:()=>Lt,getBrightnessStep:()=>kt,getDayFromWeek:()=>Rt,getEventKey:()=>ht,getEventTarget:()=>lt,getFormat:()=>St,getLightnessStep:()=>g,getMonthWeek:()=>$t,getPointerId:()=>nt,getRendererEvent:()=>st,getSafeResolution:()=>_t,getShadowRoot:()=>dt,getStyle:()=>ct,getTimeZone:()=>Ut,getTimezoneOffset:()=>Ht,getWeek:()=>O,getWeekYear:()=>Ft,getYearDay:()=>Mt,hslToHsv:()=>Nt,hslToRgb:()=>w,hsvToHsl:()=>At,iOS:()=>B,isLight:()=>C,isLocalEvent:()=>ft,isTouchEvent:()=>ut,lighten:()=>M,mergeTags:()=>zt,onZoom:()=>rt,padString:()=>m,plainText:()=>jt,ready:()=>tt,relativeToValue:()=>xt,removeClass:()=>bt,removeElement:()=>et,rgbToHsl:()=>v,sameBounds:()=>Bt,sanitizeHTML:()=>Pt,saturate:()=>$,setInteractive:()=>pt,setStyle:()=>at,splitString:()=>Ct,stripFormatTags:()=>Et,stripTags:()=>W,supports:()=>x,trim:()=>D,trimLeft:()=>G,trimRight:()=>Y,truncateTextWithEllipsis:()=>vt});function tt(t){if(document.readyState!=="loading")t();else{let e=()=>{document.readyState!=="loading"&&(document.removeEventListener("readystatechange",e),t())};document.addEventListener("readystatechange",e)}}function et(t){t.parentNode&&t.parentNode.removeChild(t)}function k(t,e,r,n){return t.addEventListener(e,r,n||!1),new I(()=>{t.removeEventListener(e,r,n||!1)})}function rt(t){return k(window,"resize",e=>{t()})}function x(t){switch(t){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function nt(t){return t.pointerId||0}function ot(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let t=document.createElement("button");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}}function it(t){t&&t.focus()}function st(t){if(x("pointerevents"))return t;if(x("touchevents"))switch(t){case"pointerover":return"touchstart";case"pointerout":return"touchend";case"pointerleave":return"touchend";case"pointerdown":return"touchstart";case"pointermove":return"touchmove";case"pointerup":return"touchend";case"click":return"click";case"dblclick":return"dblclick"}else if(x("mouseevents"))switch(t){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return t}function ut(t){if(typeof Touch<"u"&&t instanceof Touch)return!0;if(typeof PointerEvent<"u"&&t instanceof PointerEvent&&t.pointerType!=null)switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(t.type!=null&&t.type.match(/^mouse/))return!1;return!0}function at(t,e,r){t.style[e]=r}function ct(t,e){return t.style[e]}function lt(t){if(t.composedPath){let e=t.composedPath();return e.length===0?null:e[0]}else return t.target}function z(t,e){let r=e;for(;;){if(t===r)return!0;if(r.parentNode===null){if(r.host==null)return!1;r=r.host}else r=r.parentNode}}function ft(t,e){return t.target&&z(e.root.dom,t.target)}function pt(t,e){e?t.style.pointerEvents="auto":t.style.pointerEvents="none"}function ht(t){if(t.key!==void 0)return t.key;switch(t.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+t.keyCode}function dt(t){let e=t;for(;;){if(e.parentNode===null)return e.host!=null?e:null;e=e.parentNode}}var E;function yt(t,e,r=""){let n=document.createElement("style");return n.type="text/css",r!=""&&n.setAttribute("nonce",r),n.textContent=e,t===null?document.head.appendChild(n):t.appendChild(n),n}function gt(t,e=""){if(t===null){if(E==null){let r=document.createElement("style");r.type="text/css",e!=""&&r.setAttribute("nonce",e),document.head.appendChild(r),E=r.sheet}return E}else{let r=document.createElement("style");return r.type="text/css",e!=""&&r.setAttribute("nonce",e),t.appendChild(r),r.sheet}}function A(t,e){let r=t.cssRules.length;return t.insertRule(e+"{}",r),t.cssRules[r]}var j=class extends T{constructor(e,r,n,o=""){super(),this._root=gt(e,o);try{this._rule=A(this._root,r)}catch{this._rule=A(this._root,":not(*)")}_(n,(i,s)=>{this.setStyle(i,s)})}set selector(e){this._rule.selectorText=e}get selector(){return this._rule.selectorText}_dispose(){let e=U(this._root.cssRules,this._rule);if(e===-1)throw new Error("Could not dispose StyleRule");this._root.deleteRule(e)}_setVendorPrefixName(e,r){let n=this._rule.style;n.setProperty("-webkit-"+e,r,""),n.setProperty("-moz-"+e,r,""),n.setProperty("-ms-"+e,r,""),n.setProperty("-o-"+e,r,""),n.setProperty(e,r,"")}setStyle(e,r){e==="transition"?this._setVendorPrefixName(e,r):this._rule.style.setProperty(e,r,"")}},P=class extends T{constructor(e,r,n=""){super(),this._element=yt(e,r,n)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}};function mt(t,e){if(t)if(t.classList){let r=e.split(" ");H(r,n=>{t.classList.add(n)})}else{let r=t.getAttribute("class");r?t.setAttribute("class",r.split(" ").filter(n=>n!==e).join(" ")+" "+e):t.setAttribute("class",e)}}function bt(t,e){if(t)if(t.classList)t.classList.remove(e);else{let r=t.getAttribute("class");r&&t.setAttribute("class",r.split(" ").filter(n=>n!==e).join(" "))}}function B(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function _t(){return B()?1:void 0}function xt(t,e){return y(t)?t:t!=null&&y(t.value)&&y(e)?e*t.value:0}function wt(t){let e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function m(t,e=0,r="0"){return typeof t!="string"&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(r)+t:t}function G(t){return t.replace(/^[\s]*/,"")}function Y(t){return t.replace(/[\s]*$/,"")}function D(t){return G(Y(t))}function vt(t,e,r=!1,n="..."){if(t.length>e){let o=e-1;for(;o>=0&&t.charAt(o).match(/\w/);)o--;return o>=0&&r==!1?t.substring(0,o+1)+"...":t.substring(0,e)+n}else return t}function St(t){if(typeof t>"u")return"string";t=t.toLowerCase().replace(/^\[[^\]]*\]/,""),t=t.replace(/\[[^\]]+\]/,""),t=t.trim();let e=t.match(/\/(date|number|duration)$/);return e?e[1]:t==="number"?"number":t==="date"?"date":t==="duration"?"duration":t.match(/[#0]/)?"number":t.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function Tt(t){return t.replace(/\/(date|number|duration)$/i,"")}function W(t){return t&&t.replace(/<[^>]*>/g,"")}function Et(t){return t&&t.replace(/\[[^\]]*\]/g,"")}function jt(t){return t&&W((""+t).replace(/[\n\r]+/g,". "))}var N="script|iframe|frame|frameset|object|embed|applet|noscript|template|link|meta|base|form";function Pt(t){return t==null||t===""?t:(""+t).replace(new RegExp("<\\s*("+N+")\\b[^>]*>[\\s\\S]*?<\\s*\\/\\s*\\1\\s*>","gi"),"").replace(new RegExp("<\\s*\\/?\\s*(?:"+N+")\\b[^>]*>","gi"),"").replace(/\son[a-z]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,"").replace(/((?:href|src|xlink:href|action|formaction|data|background|poster|srcdoc|ping)\s*=\s*)(?:"[\s]*j[\s]*a[\s]*v[\s]*a[\s]*s[\s]*c[\s]*r[\s]*i[\s]*p[\s]*t[\s]*:[^"]*"|'[\s]*j[\s]*a[\s]*v[\s]*a[\s]*s[\s]*c[\s]*r[\s]*i[\s]*p[\s]*t[\s]*:[^']*'|(?:javascript|vbscript|livescript|mocha):[^\s>]*)/gi,'$1"#"').replace(/\ssrcdoc\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,"").replace(/\sstyle\s*=\s*(?:"[^"]*(?:expression|javascript:|vbscript:|behavior|-moz-binding)[^"]*"|'[^']*(?:expression|javascript:|vbscript:|behavior|-moz-binding)[^']*')/gi,"")}function Dt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Ot(t){let e="";for(let r=0;r<t.length;r++){let n=t.charAt(r);n.toUpperCase()==n&&r!=0&&(e+=" "),e+=n}return e}function Ct(t){let e=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/,r=/([^اأدذرزو]*[اأدذرزو])/gi,n=t.split(/(\s+)/),o=[];return n.forEach(i=>{if(i.match(/^\s+$/))(i=" ")&&(i=" "),o.push(i);else if(e.test(i)){let s=i.split(r).filter(u=>u!=="");o=o.concat(s)}else o=o.concat([...i])}),o}function Mt(t,e=!1){let r=new Date(t.getFullYear(),0,0),n=t.getTime()-r.getTime()+(r.getTimezoneOffset()-t.getTimezoneOffset())*60*1e3,o=1e3*60*60*24;return Math.floor(n/o)}function O(t,e=!1){let r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),n=r.getUTCDay()||7;r.setUTCDate(r.getUTCDate()+4-n);let o=new Date(Date.UTC(r.getUTCFullYear(),0,1));return Math.ceil(((r.getTime()-o.getTime())/864e5+1)/7)}function Ft(t,e=!1){let r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),n=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+4-n),new Date(Date.UTC(r.getUTCFullYear(),0,1)).getFullYear()}function $t(t,e=!1){let r=O(new Date(t.getFullYear(),t.getMonth(),1),e),n=O(t,e);return n==1&&(n=53),n-r+1}function Rt(t,e,r=1,n=!1){let o=new Date(e,0,4,0,0,0,0);return n&&o.setUTCFullYear(e),t*7+r-((o.getDay()||7)+3)}function Lt(t,e){return t>12?t-=12:t===0&&(t=12),e!=null?t+(e-1):t}function Ut(t,e=!1,r=!1,n=!1,o){if(n)return e?"Coordinated Universal Time":"UTC";if(o){let u=t.toLocaleString("en-US",{timeZone:o}),c=t.toLocaleString("en-US",{timeZone:o,timeZoneName:e?"long":"short"});return D(c.substr(u.length))}let i=t.toLocaleString("UTC"),s=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(i.length);return r===!1&&(s=s.replace(/ (standard|daylight|summer|winter) /i," ")),D(s)}function Ht(t,e){let r=e||new Date(Date.UTC(2012,0,1,0,0,0,0)),n=new Date(r.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(r.toLocaleString("en-US",{timeZone:t})).getTime()-n.getTime())/6e4*-1}function It(t){return t.charAt(0).toUpperCase()+t.slice(1)}function w(t){let e,r,n,o=t.h,i=t.s,s=t.l;if(i==0)e=r=n=s;else{let u=function(l,S,f){return f<0&&(f+=1),f>1&&(f-=1),f<.16666666666666666?l+(S-l)*6*f:f<.5?S:f<.6666666666666666?l+(S-l)*(.6666666666666666-f)*6:l},c=s<.5?s*(1+i):s+i-s*i,a=2*s-c;e=u(a,c,o+1/3),r=u(a,c,o),n=u(a,c,o-1/3)}return{r:Math.round(e*255),g:Math.round(r*255),b:Math.round(n*255)}}function v(t){let e=t.r/255,r=t.g/255,n=t.b/255,o=Math.max(e,r,n),i=Math.min(e,r,n),s=0,u=0,c=(o+i)/2;if(o===i)s=u=0;else{let a=o-i;switch(u=c>.5?a/(2-o-i):a/(o+i),o){case e:s=(r-n)/a+(r<n?6:0);break;case r:s=(n-e)/a+2;break;case n:s=(e-r)/a+4;break}s/=6}return{h:s,s:u,l:c}}function At(t){let e=t.v*(1-t.s/2),r=e===0||e===1?0:(t.v-e)/Math.min(e,1-e);return{h:t.h,s:r,l:e,a:t.a}}function Nt(t){let e=t.l+t.s*Math.min(t.l,1-t.l),r=e===0?0:2*(1-t.l/e);return{h:t.h,s:r,v:e,a:t.a}}function M(t,e){return t&&{r:Math.max(0,Math.min(255,t.r+g(t.r,e))),g:Math.max(0,Math.min(255,t.g+g(t.g,e))),b:Math.max(0,Math.min(255,t.b+g(t.b,e))),a:t.a}}function g(t,e){let r=e>0?255-t:t;return Math.round(r*e)}function F(t,e){if(t){let r=Math.min(Math.max(t.r,t.g,t.b),230),n=g(r,e);return{r:Math.max(0,Math.min(255,Math.round(t.r+n))),g:Math.max(0,Math.min(255,Math.round(t.g+n))),b:Math.max(0,Math.min(255,Math.round(t.b+n))),a:t.a}}else return t}function kt(t,e){return Math.round(255*e)}function C(t){return(t.r*299+t.g*587+t.b*114)/1e3>=128}function $(t,e){if(t===void 0||e==1)return t;let r=v(t);return r.s=e,w(r)}function R(t,e={r:255,g:255,b:255},r={r:255,g:255,b:255}){let n=e,o=r;return C(r)&&(n=r,o=e),C(t)?o:n}function zt(t,e){return t||(t=[]),[...t,...e].filter((r,n,o)=>o.indexOf(r)===n)}function Bt(t,e){return!(!e||t.left!=e.left||t.right!=e.right||t.top!=e.top||t.bottom!=e.bottom)}function V(t,e,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(h){try{a(n.next(h))}catch(l){s(l)}}function c(h){try{a(n.throw(h))}catch(l){s(l)}}function a(h){h.done?i(h.value):o(h.value).then(u,c)}a((n=n.apply(t,e||[])).next())})}function te(t){return V(this,void 0,void 0,function*(){if(t!==void 0){let e=[];_(t,(r,n)=>{e.push(n.waitForStop())}),yield Promise.all(e)}})}function p(t,e,r){return e+t*(r-e)}function Gt(t,e,r){return t>=1?r:e}function Yt(t,e,r){return new b(p(t,e.percent,r.percent))}function Wt(t,e,r){return d.interpolate(t,e,r)}function ee(t,e){return typeof t=="number"&&typeof e=="number"?p:t instanceof b&&e instanceof b?Yt:t instanceof d&&e instanceof d?Wt:Gt}var K;(function(t){t[t.Stopped=0]="Stopped",t[t.Playing=1]="Playing",t[t.Paused=2]="Paused"})(K||(K={}));function q(t){return t[0]==="#"&&(t=t.substr(1)),t.length==3&&(t=t[0].repeat(2)+t[1].repeat(2)+t[2].repeat(2)),parseInt(t,16)}function Zt(t){t=t.replace(/[ ]/g,"");let e=t.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return 0;let r="";for(let n=1;n<=3;n++){let o=parseInt(e[n]).toString(16);o.length==1&&(o="0"+o),r+=o}return q(r)}function oe(t){return d.fromAny(t)}var d=class t{constructor(e){this._hex=e|0}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return this._hex&255}toCSS(e=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+e+")"}toCSSHex(){return"#"+m(this.r.toString(16),2)+m(this.g.toString(16),2)+m(this.b.toString(16),2)}toHSL(e=1){return v({r:this.r,g:this.g,b:this.b,a:e})}static fromHSL(e,r,n){let o=w({h:e,s:r,l:n});return this.fromRGB(o.r,o.g,o.b)}toString(){return this.toCSSHex()}static fromHex(e){return new t(e)}static fromRGB(e,r,n){return new t((n|0)+(r<<8)+(e<<16))}static fromString(e){return new t(q(e))}static fromCSS(e){return new t(Zt(e))}static fromAny(e){if(L(e)){if(e[0]=="#")return t.fromString(e);if(e.substr(0,3)=="rgb")return t.fromCSS(e)}else{if(y(e))return t.fromHex(e);if(e instanceof t)return t.fromHex(e.hex)}throw new Error("Unknown color syntax: "+e)}static alternative(e,r,n){let o=R({r:e.r,g:e.g,b:e.b},r?{r:r.r,g:r.g,b:r.b}:void 0,n?{r:n.r,g:n.g,b:n.b}:void 0);return this.fromRGB(o.r,o.g,o.b)}static interpolate(e,r,n,o="rgb"){if(o=="hsl"){let i=r.toHSL(),s=n.toHSL();return t.fromHSL(p(e,i.h,s.h),p(e,i.s,s.s),p(e,i.l,s.l))}else return t.fromRGB(p(e,r.r,n.r),p(e,r.g,n.g),p(e,r.b,n.b))}static lighten(e,r){let n=M({r:e.r,g:e.g,b:e.b},r);return t.fromRGB(n.r,n.g,n.b)}static brighten(e,r){let n=F({r:e.r,g:e.g,b:e.b},r);return t.fromRGB(n.r,n.g,n.b)}static saturate(e,r){let n=$({r:e.r,g:e.g,b:e.b},r);return t.fromRGB(n.r,n.g,n.b)}};export{V as a,tt as b,et as c,k as d,rt as e,x as f,nt as g,ot as h,it as i,st as j,ut as k,at as l,ct as m,lt as n,ft as o,pt as p,ht as q,dt as r,j as s,_t as t,xt as u,wt as v,m as w,D as x,vt as y,St as z,Tt as A,W as B,Et as C,Pt as D,Dt as E,Ct as F,Mt as G,O as H,Ft as I,$t as J,Rt as K,Lt as L,Ut as M,Ht as N,It as O,zt as P,Bt as Q,Z as R,oe as S,d as T,te as U,Yt as V,ee as W,K as X};
2
+ import{a as b}from"./IU63DGNP.js";import{J as _,M as T,N as I,f as L,g as y,m as U,o as H}from"./6RT7GRX4.js";import{a as J}from"./H6RQVSYM.js";var Z={};J(Z,{StyleRule:()=>j,StyleSheet:()=>P,addClass:()=>mt,addEventListener:()=>k,addSpacing:()=>Ot,alternativeColor:()=>R,blur:()=>ot,brighten:()=>F,capitalizeFirst:()=>It,cleanFormat:()=>Tt,contains:()=>z,decimalPlaces:()=>wt,escapeForRgex:()=>Dt,focus:()=>it,get12Hours:()=>Lt,getBrightnessStep:()=>kt,getDayFromWeek:()=>Rt,getEventKey:()=>ht,getEventTarget:()=>lt,getFormat:()=>St,getLightnessStep:()=>g,getMonthWeek:()=>$t,getPointerId:()=>nt,getRendererEvent:()=>st,getSafeResolution:()=>_t,getShadowRoot:()=>dt,getStyle:()=>ct,getTimeZone:()=>Ut,getTimezoneOffset:()=>Ht,getWeek:()=>O,getWeekYear:()=>Ft,getYearDay:()=>Mt,hslToHsv:()=>Nt,hslToRgb:()=>w,hsvToHsl:()=>At,iOS:()=>B,isLight:()=>C,isLocalEvent:()=>ft,isTouchEvent:()=>ut,lighten:()=>M,mergeTags:()=>zt,onZoom:()=>rt,padString:()=>m,plainText:()=>jt,ready:()=>tt,relativeToValue:()=>xt,removeClass:()=>bt,removeElement:()=>et,rgbToHsl:()=>v,sameBounds:()=>Bt,sanitizeHTML:()=>Pt,saturate:()=>$,setInteractive:()=>pt,setStyle:()=>at,splitString:()=>Ct,stripFormatTags:()=>Et,stripTags:()=>W,supports:()=>x,trim:()=>D,trimLeft:()=>G,trimRight:()=>Y,truncateTextWithEllipsis:()=>vt});function tt(t){if(document.readyState!=="loading")t();else{let e=()=>{document.readyState!=="loading"&&(document.removeEventListener("readystatechange",e),t())};document.addEventListener("readystatechange",e)}}function et(t){t.parentNode&&t.parentNode.removeChild(t)}function k(t,e,r,n){return t.addEventListener(e,r,n||!1),new I(()=>{t.removeEventListener(e,r,n||!1)})}function rt(t){return k(window,"resize",e=>{t()})}function x(t){switch(t){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function nt(t){return t.pointerId||0}function ot(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let t=document.createElement("button");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}}function it(t){t&&t.focus()}function st(t){if(x("pointerevents"))return t;if(x("touchevents"))switch(t){case"pointerover":return"touchstart";case"pointerout":return"touchend";case"pointerleave":return"touchend";case"pointerdown":return"touchstart";case"pointermove":return"touchmove";case"pointerup":return"touchend";case"click":return"click";case"dblclick":return"dblclick"}else if(x("mouseevents"))switch(t){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return t}function ut(t){if(typeof Touch<"u"&&t instanceof Touch)return!0;if(typeof PointerEvent<"u"&&t instanceof PointerEvent&&t.pointerType!=null)switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(t.type!=null&&t.type.match(/^mouse/))return!1;return!0}function at(t,e,r){t.style[e]=r}function ct(t,e){return t.style[e]}function lt(t){if(t.composedPath){let e=t.composedPath();return e.length===0?null:e[0]}else return t.target}function z(t,e){let r=e;for(;;){if(t===r)return!0;if(r.parentNode===null){if(r.host==null)return!1;r=r.host}else r=r.parentNode}}function ft(t,e){return t.target&&z(e.root.dom,t.target)}function pt(t,e){e?t.style.pointerEvents="auto":t.style.pointerEvents="none"}function ht(t){if(t.key!==void 0)return t.key;switch(t.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+t.keyCode}function dt(t){let e=t;for(;;){if(e.parentNode===null)return e.host!=null?e:null;e=e.parentNode}}var E;function yt(t,e,r=""){let n=document.createElement("style");return n.type="text/css",r!=""&&n.setAttribute("nonce",r),n.textContent=e,t===null?document.head.appendChild(n):t.appendChild(n),n}function gt(t,e=""){if(t===null){if(E==null){let r=document.createElement("style");r.type="text/css",e!=""&&r.setAttribute("nonce",e),document.head.appendChild(r),E=r.sheet}return E}else{let r=document.createElement("style");return r.type="text/css",e!=""&&r.setAttribute("nonce",e),t.appendChild(r),r.sheet}}function A(t,e){let r=t.cssRules.length;return t.insertRule(e+"{}",r),t.cssRules[r]}var j=class extends T{constructor(e,r,n,o=""){super(),this._root=gt(e,o);try{this._rule=A(this._root,r)}catch{this._rule=A(this._root,":not(*)")}_(n,(i,s)=>{this.setStyle(i,s)})}set selector(e){this._rule.selectorText=e}get selector(){return this._rule.selectorText}_dispose(){let e=U(this._root.cssRules,this._rule);if(e===-1)throw new Error("Could not dispose StyleRule");this._root.deleteRule(e)}_setVendorPrefixName(e,r){let n=this._rule.style;n.setProperty("-webkit-"+e,r,""),n.setProperty("-moz-"+e,r,""),n.setProperty("-ms-"+e,r,""),n.setProperty("-o-"+e,r,""),n.setProperty(e,r,"")}setStyle(e,r){e==="transition"?this._setVendorPrefixName(e,r):this._rule.style.setProperty(e,r,"")}},P=class extends T{constructor(e,r,n=""){super(),this._element=yt(e,r,n)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}};function mt(t,e){if(t)if(t.classList){let r=e.split(" ");H(r,n=>{t.classList.add(n)})}else{let r=t.getAttribute("class");r?t.setAttribute("class",r.split(" ").filter(n=>n!==e).join(" ")+" "+e):t.setAttribute("class",e)}}function bt(t,e){if(t)if(t.classList)t.classList.remove(e);else{let r=t.getAttribute("class");r&&t.setAttribute("class",r.split(" ").filter(n=>n!==e).join(" "))}}function B(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function _t(){return B()?1:void 0}function xt(t,e){return y(t)?t:t!=null&&y(t.value)&&y(e)?e*t.value:0}function wt(t){let e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function m(t,e=0,r="0"){return typeof t!="string"&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(r)+t:t}function G(t){return t.replace(/^[\s]*/,"")}function Y(t){return t.replace(/[\s]*$/,"")}function D(t){return G(Y(t))}function vt(t,e,r=!1,n="..."){if(t.length>e){let o=e-1;for(;o>=0&&t.charAt(o).match(/\w/);)o--;return o>=0&&r==!1?t.substring(0,o+1)+"...":t.substring(0,e)+n}else return t}function St(t){if(typeof t>"u")return"string";t=t.toLowerCase().replace(/^\[[^\]]*\]/,""),t=t.replace(/\[[^\]]+\]/,""),t=t.trim();let e=t.match(/\/(date|number|duration)$/);return e?e[1]:t==="number"?"number":t==="date"?"date":t==="duration"?"duration":t.match(/[#0]/)?"number":t.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function Tt(t){return t.replace(/\/(date|number|duration)$/i,"")}function W(t){return t&&t.replace(/<[^>]*>/g,"")}function Et(t){return t&&t.replace(/\[[^\]]*\]/g,"")}function jt(t){return t&&W((""+t).replace(/[\n\r]+/g,". "))}var N="script|iframe|frame|frameset|object|embed|applet|noscript|template|link|meta|base|form";function Pt(t){return t==null||t===""?t:(""+t).replace(new RegExp("<\\s*("+N+")\\b[^>]*>[\\s\\S]*?<\\s*\\/\\s*\\1\\s*>","gi"),"").replace(new RegExp("<\\s*\\/?\\s*(?:"+N+")\\b[^>]*>","gi"),"").replace(/\son[a-z]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,"").replace(/((?:href|src|xlink:href|action|formaction|data|background|poster|srcdoc|ping)\s*=\s*)(?:"[\s]*j[\s]*a[\s]*v[\s]*a[\s]*s[\s]*c[\s]*r[\s]*i[\s]*p[\s]*t[\s]*:[^"]*"|'[\s]*j[\s]*a[\s]*v[\s]*a[\s]*s[\s]*c[\s]*r[\s]*i[\s]*p[\s]*t[\s]*:[^']*'|(?:javascript|vbscript|livescript|mocha):[^\s>]*)/gi,'$1"#"').replace(/\ssrcdoc\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,"").replace(/\sstyle\s*=\s*(?:"[^"]*(?:expression|javascript:|vbscript:|behavior|-moz-binding)[^"]*"|'[^']*(?:expression|javascript:|vbscript:|behavior|-moz-binding)[^']*')/gi,"")}function Dt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Ot(t){let e="";for(let r=0;r<t.length;r++){let n=t.charAt(r);n.toUpperCase()==n&&r!=0&&(e+=" "),e+=n}return e}function Ct(t){let e=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/,r=/([^اأدذرزو]*[اأدذرزو])/gi,n=t.split(/(\s+)/),o=[];return n.forEach(i=>{if(i.match(/^\s+$/))(i=" ")&&(i=" "),o.push(i);else if(e.test(i)){let s=i.split(r).filter(u=>u!=="");o=o.concat(s)}else o=o.concat([...i])}),o}function Mt(t,e=!1){let r=new Date(t.getFullYear(),0,0),n=t.getTime()-r.getTime()+(r.getTimezoneOffset()-t.getTimezoneOffset())*60*1e3,o=1e3*60*60*24;return Math.floor(n/o)}function O(t,e=!1){let r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),n=r.getUTCDay()||7;r.setUTCDate(r.getUTCDate()+4-n);let o=new Date(Date.UTC(r.getUTCFullYear(),0,1));return Math.ceil(((r.getTime()-o.getTime())/864e5+1)/7)}function Ft(t,e=!1){let r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),n=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+4-n),new Date(Date.UTC(r.getUTCFullYear(),0,1)).getFullYear()}function $t(t,e=!1){let r=O(new Date(t.getFullYear(),t.getMonth(),1),e),n=O(t,e);return n==1&&(n=53),n-r+1}function Rt(t,e,r=1,n=!1){let o=new Date(e,0,4,0,0,0,0);return n&&o.setUTCFullYear(e),t*7+r-((o.getDay()||7)+3)}function Lt(t,e){return t>12?t-=12:t===0&&(t=12),e!=null?t+(e-1):t}function Ut(t,e=!1,r=!1,n=!1,o){if(n)return e?"Coordinated Universal Time":"UTC";if(o){let u=t.toLocaleString("en-US",{timeZone:o}),c=t.toLocaleString("en-US",{timeZone:o,timeZoneName:e?"long":"short"});return D(c.substr(u.length))}let i=t.toLocaleString("UTC"),s=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(i.length);return r===!1&&(s=s.replace(/ (standard|daylight|summer|winter) /i," ")),D(s)}function Ht(t,e){let r=e||new Date(Date.UTC(2012,0,1,0,0,0,0)),n=new Date(r.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(r.toLocaleString("en-US",{timeZone:t})).getTime()-n.getTime())/6e4*-1}function It(t){return t.charAt(0).toUpperCase()+t.slice(1)}function w(t){let e,r,n,o=t.h,i=t.s,s=t.l;if(i==0)e=r=n=s;else{let u=function(l,S,f){return f<0&&(f+=1),f>1&&(f-=1),f<.16666666666666666?l+(S-l)*6*f:f<.5?S:f<.6666666666666666?l+(S-l)*(.6666666666666666-f)*6:l},c=s<.5?s*(1+i):s+i-s*i,a=2*s-c;e=u(a,c,o+1/3),r=u(a,c,o),n=u(a,c,o-1/3)}return{r:Math.round(e*255),g:Math.round(r*255),b:Math.round(n*255)}}function v(t){let e=t.r/255,r=t.g/255,n=t.b/255,o=Math.max(e,r,n),i=Math.min(e,r,n),s=0,u=0,c=(o+i)/2;if(o===i)s=u=0;else{let a=o-i;switch(u=c>.5?a/(2-o-i):a/(o+i),o){case e:s=(r-n)/a+(r<n?6:0);break;case r:s=(n-e)/a+2;break;case n:s=(e-r)/a+4;break}s/=6}return{h:s,s:u,l:c}}function At(t){let e=t.v*(1-t.s/2),r=e===0||e===1?0:(t.v-e)/Math.min(e,1-e);return{h:t.h,s:r,l:e,a:t.a}}function Nt(t){let e=t.l+t.s*Math.min(t.l,1-t.l),r=e===0?0:2*(1-t.l/e);return{h:t.h,s:r,v:e,a:t.a}}function M(t,e){return t&&{r:Math.max(0,Math.min(255,t.r+g(t.r,e))),g:Math.max(0,Math.min(255,t.g+g(t.g,e))),b:Math.max(0,Math.min(255,t.b+g(t.b,e))),a:t.a}}function g(t,e){let r=e>0?255-t:t;return Math.round(r*e)}function F(t,e){if(t){let r=Math.min(Math.max(t.r,t.g,t.b),230),n=g(r,e);return{r:Math.max(0,Math.min(255,Math.round(t.r+n))),g:Math.max(0,Math.min(255,Math.round(t.g+n))),b:Math.max(0,Math.min(255,Math.round(t.b+n))),a:t.a}}else return t}function kt(t,e){return Math.round(255*e)}function C(t){return(t.r*299+t.g*587+t.b*114)/1e3>=128}function $(t,e){if(t===void 0||e==1)return t;let r=v(t);return r.s=e,w(r)}function R(t,e={r:255,g:255,b:255},r={r:255,g:255,b:255}){let n=e,o=r;return C(r)&&(n=r,o=e),C(t)?o:n}function zt(t,e){return t||(t=[]),[...t,...e].filter((r,n,o)=>o.indexOf(r)===n)}function Bt(t,e){return!(!e||t.left!=e.left||t.right!=e.right||t.top!=e.top||t.bottom!=e.bottom)}function V(t,e,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(h){try{a(n.next(h))}catch(l){s(l)}}function c(h){try{a(n.throw(h))}catch(l){s(l)}}function a(h){h.done?i(h.value):o(h.value).then(u,c)}a((n=n.apply(t,e||[])).next())})}function te(t){return V(this,void 0,void 0,function*(){if(t!==void 0){let e=[];_(t,(r,n)=>{e.push(n.waitForStop())}),yield Promise.all(e)}})}function p(t,e,r){return e+t*(r-e)}function Gt(t,e,r){return t>=1?r:e}function Yt(t,e,r){return new b(p(t,e.percent,r.percent))}function Wt(t,e,r){return d.interpolate(t,e,r)}function ee(t,e){return typeof t=="number"&&typeof e=="number"?p:t instanceof b&&e instanceof b?Yt:t instanceof d&&e instanceof d?Wt:Gt}var K;(function(t){t[t.Stopped=0]="Stopped",t[t.Playing=1]="Playing",t[t.Paused=2]="Paused"})(K||(K={}));function q(t){return t[0]==="#"&&(t=t.substr(1)),t.length==3&&(t=t[0].repeat(2)+t[1].repeat(2)+t[2].repeat(2)),parseInt(t,16)}function Zt(t){t=t.replace(/[ ]/g,"");let e=t.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return 0;let r="";for(let n=1;n<=3;n++){let o=parseInt(e[n]).toString(16);o.length==1&&(o="0"+o),r+=o}return q(r)}function oe(t){return d.fromAny(t)}var d=class t{constructor(e){this._hex=e|0}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return this._hex&255}toCSS(e=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+e+")"}toCSSHex(){return"#"+m(this.r.toString(16),2)+m(this.g.toString(16),2)+m(this.b.toString(16),2)}toHSL(e=1){return v({r:this.r,g:this.g,b:this.b,a:e})}static fromHSL(e,r,n){let o=w({h:e,s:r,l:n});return this.fromRGB(o.r,o.g,o.b)}toString(){return this.toCSSHex()}static fromHex(e){return new t(e)}static fromRGB(e,r,n){return new t((n|0)+(r<<8)+(e<<16))}static fromString(e){return new t(q(e))}static fromCSS(e){return new t(Zt(e))}static fromAny(e){if(L(e)){if(e[0]=="#")return t.fromString(e);if(e.substr(0,3)=="rgb")return t.fromCSS(e)}else{if(y(e))return t.fromHex(e);if(e instanceof t)return t.fromHex(e.hex)}throw new Error("Unknown color syntax: "+e)}static alternative(e,r,n){let o=R({r:e.r,g:e.g,b:e.b},r?{r:r.r,g:r.g,b:r.b}:void 0,n?{r:n.r,g:n.g,b:n.b}:void 0);return this.fromRGB(o.r,o.g,o.b)}static interpolate(e,r,n,o="rgb"){if(o=="hsl"){let i=r.toHSL(),s=n.toHSL();return t.fromHSL(p(e,i.h,s.h),p(e,i.s,s.s),p(e,i.l,s.l))}else return t.fromRGB(p(e,r.r,n.r),p(e,r.g,n.g),p(e,r.b,n.b))}static lighten(e,r){let n=M({r:e.r,g:e.g,b:e.b},r);return t.fromRGB(n.r,n.g,n.b)}static brighten(e,r){let n=F({r:e.r,g:e.g,b:e.b},r);return t.fromRGB(n.r,n.g,n.b)}static saturate(e,r){let n=$({r:e.r,g:e.g,b:e.b},r);return t.fromRGB(n.r,n.g,n.b)}};export{V as a,tt as b,et as c,k as d,rt as e,x as f,nt as g,ot as h,it as i,st as j,ut as k,at as l,ct as m,lt as n,ft as o,pt as p,ht as q,dt as r,j as s,_t as t,xt as u,wt as v,m as w,D as x,vt as y,St as z,Tt as A,W as B,Et as C,Pt as D,Dt as E,Ct as F,Mt as G,O as H,Ft as I,$t as J,Rt as K,Lt as L,Ut as M,Ht as N,It as O,zt as P,Bt as Q,Z as R,oe as S,d as T,te as U,Yt as V,ee as W,K as X};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./3ZXNGXHC.js";import{N as o,T as h,b as m}from"./RM4OPQBM.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:d},{f:u}])=>{var n=class extends o{constructor(){super(...arguments),this._dpi=1}static{this.properties={_dpi:16,viewModel:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[d(()=>this.viewModel.templateOptions.dpi,e=>this._dpi=e<=0?1:e,{initial:!0})])}_handleDPIChange(e){let i=this.viewModel.templateOptions,t=Number(e.target.value);if(Number.isNaN(t)||t<=0||!Number.isFinite(t)){e.target.value=`${this._dpi}`;return}if(u(i.layout)){let a=i.dpi>0?i.dpi:this._dpi,r=i.width,s=i.height;if(a>0&&typeof r=="number"&&typeof s=="number"&&Number.isFinite(r)&&Number.isFinite(s)&&t!==a){let p=t/a;i.width=Math.max(1,Math.round(r*p)),i.height=Math.max(1,Math.round(s*p))}}i.dpi=t}render(){return m`<div><calcite-label>${this.messages.dpi}<calcite-input-number data-input-name=dpi min=1 .value=${`${this._dpi}`} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberChange=${this._handleDPIChange}></calcite-input-number></calcite-label></div>`}};h("arcgis-print-dpi-input",n);return n},"core/reactiveUtils",a)
2
+ import a from"./7DI2ZSB3.js";import{N as o,T as h,b as m}from"./RM4OPQBM.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:d},{f:u}])=>{var n=class extends o{constructor(){super(...arguments),this._dpi=1}static{this.properties={_dpi:16,viewModel:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[d(()=>this.viewModel.templateOptions.dpi,e=>this._dpi=e<=0?1:e,{initial:!0})])}_handleDPIChange(e){let i=this.viewModel.templateOptions,t=Number(e.target.value);if(Number.isNaN(t)||t<=0||!Number.isFinite(t)){e.target.value=`${this._dpi}`;return}if(u(i.layout)){let a=i.dpi>0?i.dpi:this._dpi,r=i.width,s=i.height;if(a>0&&typeof r=="number"&&typeof s=="number"&&Number.isFinite(r)&&Number.isFinite(s)&&t!==a){let p=t/a;i.width=Math.max(1,Math.round(r*p)),i.height=Math.max(1,Math.round(s*p))}}i.dpi=t}render(){return m`<div><calcite-label>${this.messages.dpi}<calcite-input-number data-input-name=dpi min=1 .value=${`${this._dpi}`} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberChange=${this._handleDPIChange}></calcite-input-number></calcite-label></div>`}};h("arcgis-print-dpi-input",n);return n},"core/reactiveUtils",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"./HOKDRJ4R.js";import d from"./FVZJPOWC.js";import c from"./4RYR4YDD.js";import{e as w}from"./6ERK6Z6K.js";import"./M6LV7VM5.js";import"./QUZTFUWM.js";import"./HYRFW7KG.js";import{N as b,P as t,T as g,a as y,b as a}from"./RM4OPQBM.js";import"./H6RQVSYM.js";export default $arcgis.t(([,,{a:u,b:s,c:x,d:o,e:$}])=>{var S=y`.layer-row{display:flex;align-items:center}.symbol{display:block;margin:auto}.symbol-container{position:relative}.ramp-labels{display:flex;flex-flow:column nowrap;justify-content:space-between}.layer-cell{padding:var(--calcite-space-2xs) 0;min-width:100px;vertical-align:middle;word-break:break-word}.layer-cell-info{padding-right:var(--calcite-space-sm);padding-left:var(--calcite-space-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.univariate-color-ramp-card{position:relative}.univariate-color-ramp-card:before{content:"";border-left:var(--calcite-border-width-sm) solid var(--calcite-color-surface-1);border-right:var(--calcite-border-width-sm) solid var(--calcite-color-surface-1);width:100%;height:15px;display:block;position:absolute;top:var(--calcite-border-width-sm)}.univariate-above-below-symbol{display:flex;align-items:center;justify-content:center}`,c=class extends b{constructor(){super(...arguments),this._direction=w(),this.legendElement=null,this.opacity=1}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=S}render(){let{legendElement:E,opacity:l}=this,{sizeRampElement:e,colorRampElement:n}=$(E,this.messages,l,"horizontal");if(!e)return null;let z=x(e,"full",!0,"horizontal"),L=o(e,"above",!0,"horizontal"),k=o(e,"below",!0,"horizontal"),d=12,p=this.messages?.previewColorRampAriaLabel,m=s(n,{width:L,height:d,rampAlignment:"horizontal",opacity:l,type:"above",cssEffectFilter:this.cssEffectFilter,ariaLabel:p}),A=s(n,{width:k,height:d,rampAlignment:"horizontal",opacity:l,type:"below",cssEffectFilter:this.cssEffectFilter,ariaLabel:p}),f=u(e,"card"),v=e.infos.map(i=>i.label),F=v.length-1,R=v.map((i,h)=>h===0||h===F?a`<div>${i}</div>`:null),C={display:"flex",flexDirection:"column"},D={display:"flex",flexDirection:"row"},r={marginTop:"3px",display:"flex"};this._direction==="rtl"?r.marginRight=`${f}px`:r.marginLeft=`${f}px`;let j={width:`${z}px`,display:"flex",flexDirection:"row",justifyContent:"space-between"};return a`<div class="layer-row" style=${t(C)}><div class="symbol-container" style=${t(D)}>${e.infos.map(i=>a`<div class="symbol">${i.preview}</div>`)}</div>${m?a`<div class="univariate-color-ramp-card" style=${t(r)}><div>${m}</div><div>${A}</div></div>`:null}<div class="layer-cell layer-cell-info"><div class="ramp-labels" style=${t(j)}>${R}</div></div></div>`}};g("arcgis-legend-card-univariate-above-and-below-ramp",c);return c},c,d,e)
2
+ import e from"./NSUQXUWH.js";import d from"./5OBSJYCP.js";import c from"./4RYR4YDD.js";import{e as w}from"./6ERK6Z6K.js";import"./M6LV7VM5.js";import"./QUZTFUWM.js";import"./HYRFW7KG.js";import{N as b,P as t,T as g,a as y,b as a}from"./RM4OPQBM.js";import"./H6RQVSYM.js";export default $arcgis.t(([,,{a:u,b:s,c:x,d:o,e:$}])=>{var S=y`.layer-row{display:flex;align-items:center}.symbol{display:block;margin:auto}.symbol-container{position:relative}.ramp-labels{display:flex;flex-flow:column nowrap;justify-content:space-between}.layer-cell{padding:var(--calcite-space-2xs) 0;min-width:100px;vertical-align:middle;word-break:break-word}.layer-cell-info{padding-right:var(--calcite-space-sm);padding-left:var(--calcite-space-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.univariate-color-ramp-card{position:relative}.univariate-color-ramp-card:before{content:"";border-left:var(--calcite-border-width-sm) solid var(--calcite-color-surface-1);border-right:var(--calcite-border-width-sm) solid var(--calcite-color-surface-1);width:100%;height:15px;display:block;position:absolute;top:var(--calcite-border-width-sm)}.univariate-above-below-symbol{display:flex;align-items:center;justify-content:center}`,c=class extends b{constructor(){super(...arguments),this._direction=w(),this.legendElement=null,this.opacity=1}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=S}render(){let{legendElement:E,opacity:l}=this,{sizeRampElement:e,colorRampElement:n}=$(E,this.messages,l,"horizontal");if(!e)return null;let z=x(e,"full",!0,"horizontal"),L=o(e,"above",!0,"horizontal"),k=o(e,"below",!0,"horizontal"),d=12,p=this.messages?.previewColorRampAriaLabel,m=s(n,{width:L,height:d,rampAlignment:"horizontal",opacity:l,type:"above",cssEffectFilter:this.cssEffectFilter,ariaLabel:p}),A=s(n,{width:k,height:d,rampAlignment:"horizontal",opacity:l,type:"below",cssEffectFilter:this.cssEffectFilter,ariaLabel:p}),f=u(e,"card"),v=e.infos.map(i=>i.label),F=v.length-1,R=v.map((i,h)=>h===0||h===F?a`<div>${i}</div>`:null),C={display:"flex",flexDirection:"column"},D={display:"flex",flexDirection:"row"},r={marginTop:"3px",display:"flex"};this._direction==="rtl"?r.marginRight=`${f}px`:r.marginLeft=`${f}px`;let j={width:`${z}px`,display:"flex",flexDirection:"row",justifyContent:"space-between"};return a`<div class="layer-row" style=${t(C)}><div class="symbol-container" style=${t(D)}>${e.infos.map(i=>a`<div class="symbol">${i.preview}</div>`)}</div>${m?a`<div class="univariate-color-ramp-card" style=${t(r)}><div>${m}</div><div>${A}</div></div>`:null}<div class="layer-cell layer-cell-info"><div class="ramp-labels" style=${t(j)}>${R}</div></div></div>`}};g("arcgis-legend-card-univariate-above-and-below-ramp",c);return c},c,d,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{E as L,F as $,P as y,R,h as x}from"./ECXHREHJ.js";import{P as b,S as V,d as D,f as E,o as G,q as P,u as w}from"./66PT52ED.js";import{a as S}from"./7427KHVF.js";import{P as M,g as m,o as B}from"./RKXHWHFR.js";var c=class extends ${_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let e=this.width(),t=this.height(),s=e/Math.abs(e),n=t/Math.abs(t),i=0,a=0,l=this.get("strokeWidth",0);this.get("containStroke",!1)&&(e-=s*l,t-=n*l,i+=s*l/2,a+=n*l/2);let r=e,h=t;if(m(r)&&m(h)){let o=Math.min(r,h)/2,u=w(this.get("cornerRadiusTL",8),o),d=w(this.get("cornerRadiusTR",8),o),g=w(this.get("cornerRadiusBR",8),o),_=w(this.get("cornerRadiusBL",8),o),f=Math.min(Math.abs(r/2),Math.abs(h/2));u=x(u,0,f),d=x(d,0,f),g=x(g,0,f),_=x(_,0,f);let p=this._display;p.moveTo(i+u*s,a),p.lineTo(i+r-d*s,a),d>0&&p.arcTo(i+r,a,i+r,a+d*n,d),p.lineTo(i+r,a+h-g*n),g>0&&p.arcTo(i+r,a+h,i+r-g*s,a+h,g),p.lineTo(i+_*s,a+h),_>0&&p.arcTo(i,a+h,i,a+h-_*n,_),p.lineTo(i,a+u*n),u>0&&p.arcTo(i,a,i+u*s,a,u),p.closePath()}}};c.className="RoundedRectangle";c.classNames=$.classNames.concat([c.className]);var v=class extends y{_afterNew(){this._settings.themeTags=b(this._settings.themeTags,["button"]),super._afterNew(),this._setDefaultTagged("background",b(this._settings.themeTags,["background"]),()=>c.new(this._root,{})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){let e=this._prevSettings.icon,t=this.get("icon");t!==e&&(this._disposeProperty("icon"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.icon=t)}if(this.isDirty("label")){let e=this._prevSettings.label,t=this.get("label");t!==e&&(this._disposeProperty("label"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.label=t)}}};v.className="Button";v.classNames=y.classNames.concat([v.className]);var T=class extends R{_afterNew(){super._afterNew();let e=this.children.push(y.new(this._root,{html:'<textarea class="am5-editable-label"></textarea>',isMeasured:!1}));e.hide(),this.setPrivate("input",e),this._setDefaultTagged("background",["editablelabel","background"],()=>c.new(this._root,{}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();let e=this.get("editOn","click");e!="none"&&(this._editOnEvents=new M([this.getPrivate("input").events.on(e,t=>{}),this.events.on(e,t=>{this.set("active",!0)})]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){let e=this.get("active",!1);e?this._startEditing():this._stopEditing();let t=this.get("background");t&&t.set("active",e)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){let e=this.getPrivate("input");if(e&&e.getPrivate("htmlElement")){let s=e.getPrivate("htmlElement").querySelector(".am5-editable-label");s&&(this.setPrivate("textarea",s),s.addEventListener("input",n=>{this.get("multiLine")===!1&&(s.value=s.value.replace(/\n/g," ")),this.set("text",s.value),this._syncStyle()}),s.addEventListener("blur",n=>this.set("active",!1)),E("keyboardevents")&&this._disposers.push(D(document,"keydown",n=>{P(n)=="Escape"&&this.set("active",!1)})),this._disposers.push(D(document,"keydown",n=>{P(n)=="Enter"&&this.get("multiLine")===!1&&(n.preventDefault(),this.set("active",!1))})),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited()){this.events.once("inited",()=>{this._startEditing()});return}this._text.set("opacity",0);let e=this.getPrivate("input"),t=this.getPrivate("textarea");t&&(this.get("text","")==""&&this.set("text"," "),e.show(0),this.setTimeout(()=>{this._syncStyle(),t.focus()},100))}_stopEditing(){if(!this._isInited()){this.events.once("inited",()=>{this._stopEditing()});return}let e=this.getPrivate("input"),t=this.getPrivate("textarea");t&&(this.set("text",t.value),e.hide(0),this._text.set("opacity",1))}_syncStyle(){let e=this.getPrivate("input"),t=this.getPrivate("textarea"),s=e.getPrivate("htmlElement");if(t&&s){let n=window.getComputedStyle(t);B(n,d=>{t.style[d]="initial"}),t.style.color=this.get("fill",V(0)).toCSS(this.get("fillOpacity",1)),t.style.backgroundColor="rgba(0, 0, 0, 0)",t.style.border="none",t.style.outline="none",t.style.padding="0",t.wrap="off",t.style.resize="none",t.style.overflow="hidden";let i=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);i>0?t.style.maxWidth=i+"px":t.style.minWidth="",t.style.height="auto",t.style.minHeight=t.scrollHeight+"px",this.get("width")&&(t.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",t.style.minWidth="");let a=this.get("lineHeight");a?a instanceof S?t.style.lineHeight=a.value+"":m(a)&&(t.style.lineHeight=a+""):t.style.lineHeight="1.2";let l=this.get("fontFamily");l||(l=getComputedStyle(s,"font-family").getPropertyValue("font-family")),t.style.fontFamily=l;let r=this.get("fontSize");r?m(r)?r=r+"px":r=r:r=getComputedStyle(s,"font-size").getPropertyValue("font-size"),t.style.fontSize=r;let h=this.get("fontWeight");h?h=h:h=getComputedStyle(s,"font-weight").getPropertyValue("font-weight"),t.style.fontWeight=h;let o=this.get("fontStyle");o?o=o:o=getComputedStyle(s,"font-style").getPropertyValue("font-style"),t.style.fontStyle=o,this.get("oversizedBehavior")=="wrap"?t.style.whiteSpace="pre-wrap":t.style.whiteSpace="nowrap",this._root.events.on("frameended",()=>{t.style.minWidth==""&&(t.style.minWidth=t.scrollWidth+20+"px");let d=this.get("textAlign","start");d=="center"?(t.style.textAlign="center",!s.style.transform.match(/translateX/)&&!this.get("width")&&(s.style.transform+=" translateX(-50%)")):d=="end"?(t.style.textAlign="right",!s.style.transform.match(/translateX/)&&!this.get("width")&&(s.style.transform+=" translateX(-100%)")):t.style.textAlign=d})}}_syncText(){let e=this.getPrivate("textarea"),t=this.get("text","");t==" "&&(t=""),e&&(e.value=t)}};T.className="EditableLabel";T.classNames=R.classNames.concat([T.className]);var C=class extends y{constructor(){super(...arguments),this.thumb=this._makeThumb(),this.startGrip=this._makeButton(),this.endGrip=this._makeButton(),this._thumbBusy=!1,this._startDown=!1,this._endDown=!1,this._thumbDown=!1}_addOrientationClass(){this._settings.themeTags=b(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._setDefaultTagged("background",b(this._settings.themeTags,["main","background"]),()=>c.new(this._root,{}))}_makeButton(){return this.children.push(v.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:L.new(this._root,{themeTags:["icon"]})._markC("themeTags")})._markC("themeTags","icon"))}_makeThumb(){return this.children.push(c.new(this._root,{themeTags:["thumb",this.get("orientation")]})._markC("themeTags"))}_handleAnimation(e){e&&this._disposers.push(e.events.on("stopped",()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1}))}_afterNew(){this._addOrientationClass(),super._afterNew();let e=this.startGrip,t=this.endGrip,s=this.thumb,n=this.get("background");n&&this._disposers.push(n.events.on("click",i=>{this.setPrivateRaw("isBusy",!0);let a=this._display.toLocal(i.point),l=this.width(),r=this.height(),h=this.get("orientation"),o;h=="vertical"?o=(a.y-s.height()/2)/r:o=(a.x-s.width()/2)/l;let u,d;h=="vertical"?(u=o*r,d="y"):(u=o*l,d="x");let g=this.get("animationDuration",0);g>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:d,to:u,duration:g,easing:this.get("animationEasing")}))):(this.thumb._setC(d,u),this._root.events.once("frameended",()=>{this.setPrivateRaw("isBusy",!1)}))})),this._disposers.push(s.events.on("dblclick",i=>{if(!G(i.originalEvent,this))return;let a=this.get("animationDuration",0),l=this.get("animationEasing");this.animate({key:"start",to:0,duration:a,easing:l}),this.animate({key:"end",to:1,duration:a,easing:l})})),this._disposers.push(e.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"})),this._disposers.push(t.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"})),this._disposers.push(s.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0})),this._disposers.push(e.events.on("globalpointerup",()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1})),this._disposers.push(t.events.on("globalpointerup",()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1})),this._disposers.push(s.events.on("globalpointerup",()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1})),this._disposers.push(e.on("x",()=>{this._updateThumb()})),this._disposers.push(t.on("x",()=>{this._updateThumb()})),this._disposers.push(e.on("y",()=>{this._updateThumb()})),this._disposers.push(t.on("y",()=>{this._updateThumb()})),this._disposers.push(s.events.on("positionchanged",()=>{this._updateGripsByThumb()})),this.get("orientation")=="vertical"?(e._setC("x",0),t._setC("x",0),this._disposers.push(s.adapters.add("y",i=>Math.max(Math.min(Number(i),this.height()-s.height()),0))),this._disposers.push(s.adapters.add("x",i=>this.width()/2)),this._disposers.push(e.adapters.add("x",i=>this.width()/2)),this._disposers.push(t.adapters.add("x",i=>this.width()/2)),this._disposers.push(e.adapters.add("y",i=>Math.max(Math.min(Number(i),this.height()),0))),this._disposers.push(t.adapters.add("y",i=>Math.max(Math.min(Number(i),this.height()),0)))):(e._setC("y",0),t._setC("y",0),this._disposers.push(s.adapters.add("x",i=>Math.max(Math.min(Number(i),this.width()-s.width()),0))),this._disposers.push(s.adapters.add("y",i=>this.height()/2)),this._disposers.push(e.adapters.add("y",i=>this.height()/2)),this._disposers.push(t.adapters.add("y",i=>this.height()/2)),this._disposers.push(e.adapters.add("x",i=>Math.max(Math.min(Number(i),this.width()),0))),this._disposers.push(t.adapters.add("x",i=>Math.max(Math.min(Number(i),this.width()),0))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){let e="rangechanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){let e="released";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}updateGrips(){let e=this.startGrip,t=this.endGrip,s=this.get("orientation"),n=this.height(),i=this.width();s=="vertical"?(e._setC("y",n*this.get("start",0)),t._setC("y",n*this.get("end",1))):(e._setC("x",i*this.get("start",0)),t._setC("x",i*this.get("end",1)));let a=this.getPrivate("positionTextFunction"),l=Math.round(this.get("start",0)*100),r=Math.round(this.get("end",0)*100),h,o;a?(h=a.call(this,this.get("start",0)),o=a.call(this,this.get("end",0))):(h=l+"%",o=r+"%"),e._setC("ariaLabel",this._t("From %1",void 0,h)),e._setC("ariaValueNow",""+l),e._setC("ariaValueText",l+"%"),e._setC("ariaValueMin","0"),e._setC("ariaValueMax","100"),t._setC("ariaLabel",this._t("To %1",void 0,o)),t._setC("ariaValueNow",""+r),t._setC("ariaValueText",r+"%"),t._setC("ariaValueMin","0"),t._setC("ariaValueMax","100")}_updateThumb(){let e=this.thumb,t=this.startGrip,s=this.endGrip,n=this.height(),i=this.width(),a=t.x(),l=s.x(),r=t.y(),h=s.y(),o=0,u=1;this.get("orientation")=="vertical"?m(r)&&m(h)&&(!this._thumbBusy&&!e.isDragging()&&(e._setC("height",h-r),e._setC("y",r)),o=r/n,u=h/n):m(a)&&m(l)&&(!this._thumbBusy&&!e.isDragging()&&(e._setC("width",l-a),e._setC("x",a)),o=a/i,u=l/i),this.getPrivate("isBusy")&&(this.get("start")!=o||this.get("end")!=u)&&(this._setC("start",o),this._setC("end",u));let d=this.getPrivate("positionTextFunction"),g=Math.round(this.get("start",0)*100),_=Math.round(this.get("end",0)*100),f,p;d?(f=d.call(this,this.get("start",0)),p=d.call(this,this.get("end",0))):(f=g+"%",p=_+"%"),e._setC("ariaLabel",this._t("From %1 to %2",void 0,f,p)),e._setC("ariaValueNow",""+g),e._setC("ariaValueText",g+"%")}_updateGripsByThumb(){let e=this.thumb,t=this.startGrip,s=this.endGrip;if(this.get("orientation")=="vertical"){let n=e.height();t._setC("y",e.y()),s._setC("y",e.y()+n)}else{let n=e.width();t._setC("x",e.x()),s._setC("x",e.x()+n)}}};C.className="Scrollbar";C.classNames=y.classNames.concat([C.className]);export{c as a,v as b,T as c,C as d};
2
+ import{E as L,F as $,P as y,R,h as x}from"./YVQJ4XD4.js";import{P as b,S as V,d as D,f as E,o as G,q as P,u as w}from"./TZEAPNBI.js";import{a as S}from"./IU63DGNP.js";import{P as M,g as m,o as B}from"./6RT7GRX4.js";var c=class extends ${_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let e=this.width(),t=this.height(),s=e/Math.abs(e),n=t/Math.abs(t),i=0,a=0,l=this.get("strokeWidth",0);this.get("containStroke",!1)&&(e-=s*l,t-=n*l,i+=s*l/2,a+=n*l/2);let r=e,h=t;if(m(r)&&m(h)){let o=Math.min(r,h)/2,u=w(this.get("cornerRadiusTL",8),o),d=w(this.get("cornerRadiusTR",8),o),g=w(this.get("cornerRadiusBR",8),o),_=w(this.get("cornerRadiusBL",8),o),f=Math.min(Math.abs(r/2),Math.abs(h/2));u=x(u,0,f),d=x(d,0,f),g=x(g,0,f),_=x(_,0,f);let p=this._display;p.moveTo(i+u*s,a),p.lineTo(i+r-d*s,a),d>0&&p.arcTo(i+r,a,i+r,a+d*n,d),p.lineTo(i+r,a+h-g*n),g>0&&p.arcTo(i+r,a+h,i+r-g*s,a+h,g),p.lineTo(i+_*s,a+h),_>0&&p.arcTo(i,a+h,i,a+h-_*n,_),p.lineTo(i,a+u*n),u>0&&p.arcTo(i,a,i+u*s,a,u),p.closePath()}}};c.className="RoundedRectangle";c.classNames=$.classNames.concat([c.className]);var v=class extends y{_afterNew(){this._settings.themeTags=b(this._settings.themeTags,["button"]),super._afterNew(),this._setDefaultTagged("background",b(this._settings.themeTags,["background"]),()=>c.new(this._root,{})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){let e=this._prevSettings.icon,t=this.get("icon");t!==e&&(this._disposeProperty("icon"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.icon=t)}if(this.isDirty("label")){let e=this._prevSettings.label,t=this.get("label");t!==e&&(this._disposeProperty("label"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.label=t)}}};v.className="Button";v.classNames=y.classNames.concat([v.className]);var T=class extends R{_afterNew(){super._afterNew();let e=this.children.push(y.new(this._root,{html:'<textarea class="am5-editable-label"></textarea>',isMeasured:!1}));e.hide(),this.setPrivate("input",e),this._setDefaultTagged("background",["editablelabel","background"],()=>c.new(this._root,{}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();let e=this.get("editOn","click");e!="none"&&(this._editOnEvents=new M([this.getPrivate("input").events.on(e,t=>{}),this.events.on(e,t=>{this.set("active",!0)})]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){let e=this.get("active",!1);e?this._startEditing():this._stopEditing();let t=this.get("background");t&&t.set("active",e)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){let e=this.getPrivate("input");if(e&&e.getPrivate("htmlElement")){let s=e.getPrivate("htmlElement").querySelector(".am5-editable-label");s&&(this.setPrivate("textarea",s),s.addEventListener("input",n=>{this.get("multiLine")===!1&&(s.value=s.value.replace(/\n/g," ")),this.set("text",s.value),this._syncStyle()}),s.addEventListener("blur",n=>this.set("active",!1)),E("keyboardevents")&&this._disposers.push(D(document,"keydown",n=>{P(n)=="Escape"&&this.set("active",!1)})),this._disposers.push(D(document,"keydown",n=>{P(n)=="Enter"&&this.get("multiLine")===!1&&(n.preventDefault(),this.set("active",!1))})),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited()){this.events.once("inited",()=>{this._startEditing()});return}this._text.set("opacity",0);let e=this.getPrivate("input"),t=this.getPrivate("textarea");t&&(this.get("text","")==""&&this.set("text"," "),e.show(0),this.setTimeout(()=>{this._syncStyle(),t.focus()},100))}_stopEditing(){if(!this._isInited()){this.events.once("inited",()=>{this._stopEditing()});return}let e=this.getPrivate("input"),t=this.getPrivate("textarea");t&&(this.set("text",t.value),e.hide(0),this._text.set("opacity",1))}_syncStyle(){let e=this.getPrivate("input"),t=this.getPrivate("textarea"),s=e.getPrivate("htmlElement");if(t&&s){let n=window.getComputedStyle(t);B(n,d=>{t.style[d]="initial"}),t.style.color=this.get("fill",V(0)).toCSS(this.get("fillOpacity",1)),t.style.backgroundColor="rgba(0, 0, 0, 0)",t.style.border="none",t.style.outline="none",t.style.padding="0",t.wrap="off",t.style.resize="none",t.style.overflow="hidden";let i=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);i>0?t.style.maxWidth=i+"px":t.style.minWidth="",t.style.height="auto",t.style.minHeight=t.scrollHeight+"px",this.get("width")&&(t.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",t.style.minWidth="");let a=this.get("lineHeight");a?a instanceof S?t.style.lineHeight=a.value+"":m(a)&&(t.style.lineHeight=a+""):t.style.lineHeight="1.2";let l=this.get("fontFamily");l||(l=getComputedStyle(s,"font-family").getPropertyValue("font-family")),t.style.fontFamily=l;let r=this.get("fontSize");r?m(r)?r=r+"px":r=r:r=getComputedStyle(s,"font-size").getPropertyValue("font-size"),t.style.fontSize=r;let h=this.get("fontWeight");h?h=h:h=getComputedStyle(s,"font-weight").getPropertyValue("font-weight"),t.style.fontWeight=h;let o=this.get("fontStyle");o?o=o:o=getComputedStyle(s,"font-style").getPropertyValue("font-style"),t.style.fontStyle=o,this.get("oversizedBehavior")=="wrap"?t.style.whiteSpace="pre-wrap":t.style.whiteSpace="nowrap",this._root.events.on("frameended",()=>{t.style.minWidth==""&&(t.style.minWidth=t.scrollWidth+20+"px");let d=this.get("textAlign","start");d=="center"?(t.style.textAlign="center",!s.style.transform.match(/translateX/)&&!this.get("width")&&(s.style.transform+=" translateX(-50%)")):d=="end"?(t.style.textAlign="right",!s.style.transform.match(/translateX/)&&!this.get("width")&&(s.style.transform+=" translateX(-100%)")):t.style.textAlign=d})}}_syncText(){let e=this.getPrivate("textarea"),t=this.get("text","");t==" "&&(t=""),e&&(e.value=t)}};T.className="EditableLabel";T.classNames=R.classNames.concat([T.className]);var C=class extends y{constructor(){super(...arguments),this.thumb=this._makeThumb(),this.startGrip=this._makeButton(),this.endGrip=this._makeButton(),this._thumbBusy=!1,this._startDown=!1,this._endDown=!1,this._thumbDown=!1}_addOrientationClass(){this._settings.themeTags=b(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._setDefaultTagged("background",b(this._settings.themeTags,["main","background"]),()=>c.new(this._root,{}))}_makeButton(){return this.children.push(v.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:L.new(this._root,{themeTags:["icon"]})._markC("themeTags")})._markC("themeTags","icon"))}_makeThumb(){return this.children.push(c.new(this._root,{themeTags:["thumb",this.get("orientation")]})._markC("themeTags"))}_handleAnimation(e){e&&this._disposers.push(e.events.on("stopped",()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1}))}_afterNew(){this._addOrientationClass(),super._afterNew();let e=this.startGrip,t=this.endGrip,s=this.thumb,n=this.get("background");n&&this._disposers.push(n.events.on("click",i=>{this.setPrivateRaw("isBusy",!0);let a=this._display.toLocal(i.point),l=this.width(),r=this.height(),h=this.get("orientation"),o;h=="vertical"?o=(a.y-s.height()/2)/r:o=(a.x-s.width()/2)/l;let u,d;h=="vertical"?(u=o*r,d="y"):(u=o*l,d="x");let g=this.get("animationDuration",0);g>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:d,to:u,duration:g,easing:this.get("animationEasing")}))):(this.thumb._setC(d,u),this._root.events.once("frameended",()=>{this.setPrivateRaw("isBusy",!1)}))})),this._disposers.push(s.events.on("dblclick",i=>{if(!G(i.originalEvent,this))return;let a=this.get("animationDuration",0),l=this.get("animationEasing");this.animate({key:"start",to:0,duration:a,easing:l}),this.animate({key:"end",to:1,duration:a,easing:l})})),this._disposers.push(e.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"})),this._disposers.push(t.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"})),this._disposers.push(s.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0})),this._disposers.push(e.events.on("globalpointerup",()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1})),this._disposers.push(t.events.on("globalpointerup",()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1})),this._disposers.push(s.events.on("globalpointerup",()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1})),this._disposers.push(e.on("x",()=>{this._updateThumb()})),this._disposers.push(t.on("x",()=>{this._updateThumb()})),this._disposers.push(e.on("y",()=>{this._updateThumb()})),this._disposers.push(t.on("y",()=>{this._updateThumb()})),this._disposers.push(s.events.on("positionchanged",()=>{this._updateGripsByThumb()})),this.get("orientation")=="vertical"?(e._setC("x",0),t._setC("x",0),this._disposers.push(s.adapters.add("y",i=>Math.max(Math.min(Number(i),this.height()-s.height()),0))),this._disposers.push(s.adapters.add("x",i=>this.width()/2)),this._disposers.push(e.adapters.add("x",i=>this.width()/2)),this._disposers.push(t.adapters.add("x",i=>this.width()/2)),this._disposers.push(e.adapters.add("y",i=>Math.max(Math.min(Number(i),this.height()),0))),this._disposers.push(t.adapters.add("y",i=>Math.max(Math.min(Number(i),this.height()),0)))):(e._setC("y",0),t._setC("y",0),this._disposers.push(s.adapters.add("x",i=>Math.max(Math.min(Number(i),this.width()-s.width()),0))),this._disposers.push(s.adapters.add("y",i=>this.height()/2)),this._disposers.push(e.adapters.add("y",i=>this.height()/2)),this._disposers.push(t.adapters.add("y",i=>this.height()/2)),this._disposers.push(e.adapters.add("x",i=>Math.max(Math.min(Number(i),this.width()),0))),this._disposers.push(t.adapters.add("x",i=>Math.max(Math.min(Number(i),this.width()),0))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){let e="rangechanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){let e="released";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}updateGrips(){let e=this.startGrip,t=this.endGrip,s=this.get("orientation"),n=this.height(),i=this.width();s=="vertical"?(e._setC("y",n*this.get("start",0)),t._setC("y",n*this.get("end",1))):(e._setC("x",i*this.get("start",0)),t._setC("x",i*this.get("end",1)));let a=this.getPrivate("positionTextFunction"),l=Math.round(this.get("start",0)*100),r=Math.round(this.get("end",0)*100),h,o;a?(h=a.call(this,this.get("start",0)),o=a.call(this,this.get("end",0))):(h=l+"%",o=r+"%"),e._setC("ariaLabel",this._t("From %1",void 0,h)),e._setC("ariaValueNow",""+l),e._setC("ariaValueText",l+"%"),e._setC("ariaValueMin","0"),e._setC("ariaValueMax","100"),t._setC("ariaLabel",this._t("To %1",void 0,o)),t._setC("ariaValueNow",""+r),t._setC("ariaValueText",r+"%"),t._setC("ariaValueMin","0"),t._setC("ariaValueMax","100")}_updateThumb(){let e=this.thumb,t=this.startGrip,s=this.endGrip,n=this.height(),i=this.width(),a=t.x(),l=s.x(),r=t.y(),h=s.y(),o=0,u=1;this.get("orientation")=="vertical"?m(r)&&m(h)&&(!this._thumbBusy&&!e.isDragging()&&(e._setC("height",h-r),e._setC("y",r)),o=r/n,u=h/n):m(a)&&m(l)&&(!this._thumbBusy&&!e.isDragging()&&(e._setC("width",l-a),e._setC("x",a)),o=a/i,u=l/i),this.getPrivate("isBusy")&&(this.get("start")!=o||this.get("end")!=u)&&(this._setC("start",o),this._setC("end",u));let d=this.getPrivate("positionTextFunction"),g=Math.round(this.get("start",0)*100),_=Math.round(this.get("end",0)*100),f,p;d?(f=d.call(this,this.get("start",0)),p=d.call(this,this.get("end",0))):(f=g+"%",p=_+"%"),e._setC("ariaLabel",this._t("From %1 to %2",void 0,f,p)),e._setC("ariaValueNow",""+g),e._setC("ariaValueText",g+"%")}_updateGripsByThumb(){let e=this.thumb,t=this.startGrip,s=this.endGrip;if(this.get("orientation")=="vertical"){let n=e.height();t._setC("y",e.y()),s._setC("y",e.y()+n)}else{let n=e.width();t._setC("x",e.x()),s._setC("x",e.x()+n)}}};C.className="Scrollbar";C.classNames=y.classNames.concat([C.className]);export{c as a,v as b,T as c,C as d};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as o}from"./E3ILZB5S.js";import j from"./A3DPBGUE.js";import"./VJVKFKSG.js";import i from"./IE7XJM27.js";import{a as y}from"./5UVZPECS.js";import f from"./WFPR2VUW.js";import e from"./YOIVWFJK.js";import{g as p}from"./6ERK6Z6K.js";import"./M6LV7VM5.js";import b from"./JVC76RB3.js";import"./QUZTFUWM.js";import"./HYRFW7KG.js";import{M as c,N as u,T as d,a as h,b as a,o as g,w as r}from"./RM4OPQBM.js";import"./H6RQVSYM.js";export default $arcgis.t(([$,{when:T},_,,,,b,{a:m}])=>{var x=h`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}arcgis-utility-network-trace-inputs-next[mode=default]{height:auto}calcite-tabs{display:flex;flex-direction:column;height:100%}calcite-tab{--calcite-tab-content-space-y: 0;min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-tab:not([selected]){flex:0}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-notice{margin:var(--calcite-spacing-md)}.inputs-tab-container{display:flex;flex-direction:column;height:100%}.trace-inputs-warning{flex:none;height:fit-content;calcite-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0}}`,R=b(_),l=class extends u{constructor(){super(...arguments),this._messages=y({blocking:!0}),this.#e=R(this),this._activeTab="input",this._showMissingTerminalWarning=!1,this._showNoStartingPointsWarning=!1,this._mode="default",this.autoDestroyDisabled=!1,this.aggregatedGeometryGraphicsColor=new $([255,255,0,.6]),this.disableHighlightFeatureResults=!1,this.hideActionBar=!1,this.hideGraphics=!1,this.hidePlaceholder=!1,this.hideFeatureResults=!1,this.includeDefaultActionsDisabled=!1,this.state=this.#e.state,this.view=this.#e.view,this.arcgisHideGraphicsChange=r(),this.arcgisPropertyChange=p()("aggregatedGeometryGraphicsColor","hideGraphics"),this.arcgisReady=r(),this.arcgisTriggerAction=r(),this.arcgisTraceLocationSelectEnd=r(),this.arcgisTraceLocationSelectStart=r(),this.arcgisTraceResultClear=r(),this.arcgisTraceResultFeaturesReady=r()}static{this.properties={_activeTab:16,_traceError:16,_traceResult:16,_showMissingTerminalWarning:16,_showNoStartingPointsWarning:16,_mode:16,actions:0,autoDestroyDisabled:5,beforeTraceLocationSelectStart:0,aggregatedGeometryGraphicsColor:0,disableHighlightFeatureResults:5,hideActionBar:5,hideGraphics:5,hidePlaceholder:5,hideFeatureResults:5,includeDefaultActionsDisabled:5,label:3,messageOverrides:0,traceResultFeatures:32,referenceElement:1,state:32,view:0}}static{this.styles=x}#e;#t;#i;get#r(){let{view:t}=this;return t?.map?t.map.allLayers.toArray().concat(t.map.allTables.toArray()):[]}#n;get traceResultFeatures(){return this.#i?.traceResultFeatures??[]}async destroy(){await this.#i?.destroy(),await this.#t?.destroy(),await this.manager.destroy()}load(){this.manager.onLifecycle(()=>[T(()=>!this.#e.utilityNetwork,()=>this.#a("input"))])}#s(){this._traceResult=void 0,this.#i?.clearResults()}#c(){if(!this.#t)return;let{traceLocations:t,traceLocationFlagInfos:e,traceConfiguration:s,isSubnetworkNameTraceSelected:i}=this.#t,v=!!s?.subnetworkName,f=t?.some(n=>n.type==="starting-point"),w=e?.some(n=>!!n.flagProperties.terminalConfiguration&&!n.flagProperties.selectedTerminals?.size)??!1;this._traceError=void 0,this._showNoStartingPointsWarning=!i&&!f||i&&!v,this._showMissingTerminalWarning=w}#a(t){this._activeTab=t}#o(t){let{_messages:e}=this;switch(t){case"no-user-type-extension":return e.errors.loadErrors.noUserTypeExtension;case"no-utility-network":return e.errors.loadErrors.noUtilityNetwork;case"no-view":return e.errors.loadErrors.noView;case"sceneView-not-supported":return e.errors.loadErrors.sceneViewNotSupported;default:return t}}async#l(){let t=this.#t?.selectedNamedTraceConfiguration,e=this.#t?.traceConfiguration;if(!(t?.traceType&&e)){g("error",this,"Trace configuration not found");return}let s=this.#t?.traceLocations;try{this._traceResult=await this.#e.executeTraceConfiguration({traceType:t.traceType,traceConfiguration:e,traceLocations:s??[],resultTypes:t.resultTypes,outSpatialReference:this.view?.spatialReference})}catch(i){m(i,this,"Error while running trace"),this._traceError=i,this._traceResult=void 0}}#h(){this.#c(),!(this._showNoStartingPointsWarning||this._showMissingTerminalWarning)&&(this._showNoStartingPointsWarning=!1,this._showMissingTerminalWarning=!1,this.#s(),this.#a("results"),this.#l())}#g(t){t&&(this.#t=t)}#u(t){t&&(this.#i=t)}#d(t){let{detail:e,target:s}=t;e.name==="aggregatedGeometryGraphicsColor"?(t.stopPropagation(),this.aggregatedGeometryGraphicsColor=s[e.name]):e.name==="hideGraphics"&&(t.stopPropagation(),this.hideGraphics=s[e.name],this.arcgisHideGraphicsChange.emit(this.hideGraphics))}#p(t){t.stopPropagation(),this.arcgisTraceLocationSelectStart.emit(t.detail).defaultPrevented&&t.preventDefault()}#m(t){t.stopPropagation(),this.arcgisTraceLocationSelectEnd.emit()}#y(t){t.stopPropagation(),this.arcgisTraceResultFeaturesReady.emit()}#b(t){t.stopPropagation(),this.arcgisTriggerAction.emit(t.detail)}#v(){this._showNoStartingPointsWarning=!1,this._showMissingTerminalWarning=!1}#f(){this.#e.utilityNetwork=this.#t?.selectedUtilityNetwork}#w(){let{_messages:t}=this;return a`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${()=>this._showMissingTerminalWarning=!1}><div slot=title>${t.errors.missingTerminalTitle}</div><div slot=message>${t.errors.missingTerminalBody}</div></calcite-notice></calcite-panel>`}#$(){let{_messages:t}=this;return a`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${()=>this._showNoStartingPointsWarning=!1}><div slot=title>${t.errors.noStartingPointsTitle}</div><div slot=message>${t.errors.noStartingPointsBody}</div></calcite-notice></calcite-panel>`}#T(){return o(`${this.el.id}__results-tab-item`,a`<calcite-tab .selected=${this._activeTab==="results"}>${this.state==="executing"?a`<calcite-panel><calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader></calcite-panel>`:a`<arcgis-utility-network-trace-results-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .aggregatedGeometryGraphicsColor=${this.aggregatedGeometryGraphicsColor} .disableHighlightFeatureResults=${this.disableHighlightFeatureResults} .heading=${this.#n?.title} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .hidePlaceholder=${this.hidePlaceholder} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .layers=${this.#r} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .traceError=${this._traceError} .traceResult=${this._traceResult} .utilityNetwork=${this.#e.utilityNetwork??void 0} .view=${this.view??void 0} @arcgisPropertyChange=${this.#d} @arcgisTraceResultFeaturesReady=${this.#y} @arcgisTriggerAction=${this.#b} ${c(this.#u)}></arcgis-utility-network-trace-results-next>`}</calcite-tab>`)}#_(){let{_messages:t,_traceResult:e}=this,s=!!(e?.elements.length||e?.globalFunctionResults.length||e?.aggregatedGeometry)&&this.#i?.state==="ready",i=this.#i?.numFeatureResults??0;return a`<calcite-button appearance=outline width=full @click=${()=>{this.#a("input"),this.#s(),this.arcgisTraceResultClear.emit()}} .disabled=${!s} slot=footer>${i>0&&!this.hideFeatureResults&&this.state!=="executing"?t.buttons.clearResultsCustom.replace("{number}",i.toString()):t.buttons.clearResultsGeneric}</calcite-button>`}#x(){let{_mode:t}=this,{loadError:e}=this.#e,s=(e==="no-user-type-extension"||e==="sceneView-not-supported"?a`<calcite-notice kind=danger open scale=s slot=content-top width=auto><div slot=message>${this.#o(e)}</div></calcite-notice>`:void 0)??a`${this._showNoStartingPointsWarning&&t==="default"&&this.#$()||""}${this._showMissingTerminalWarning&&t==="default"&&this.#w()||""}<arcgis-utility-network-trace-inputs-next .autoDestroyDisabled=${this.autoDestroyDisabled} .hideActionBar=${this.hideActionBar} .referenceElement=${this.referenceElement} .view=${this.view??void 0} .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisPropertyChange=${i=>{i.stopPropagation(),i.detail.name==="mode"&&(this._mode=i.target.mode)}} @arcgisSelectedNamedTraceConfigurationChange=${this.#v} @arcgisTraceLocationSelectEnd=${this.#m} @arcgisTraceLocationSelectStart=${this.#p} @arcgisUtilityNetworkChange=${this.#f} ${c(this.#g)}></arcgis-utility-network-trace-inputs-next>`;return o(`${this.el.id}__inputs-tab-item`,a`<calcite-tab .selected=${this._activeTab==="input"}><div class="inputs-tab-container">${s}</div></calcite-tab>`)}#R(){let{state:t}=this;if(this._mode!=="default")return null;let e=t==="disabled"||t==="loading"||!this.#t?.traceConfiguration;return a`<calcite-button appearance=solid width=full @click=${this.#h} slot=footer .disabled=${e}>${this._messages.buttons.getResults}</calcite-button>`}render(){let{_activeTab:t,state:e}=this;return a`<calcite-panel><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @click=${()=>this.#a("input")} .selected=${t==="input"}>${this._messages.tabs.inputTab}</calcite-tab-title><calcite-tab-title @click=${()=>this.#a("results")} .selected=${t==="results"} .disabled=${e==="disabled"||e==="loading"}>${this._messages.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.#x()}${this.#T()}</calcite-tabs>${t==="input"?this.#R():null}${t==="results"?this.#_():null}</calcite-panel>`}};d("arcgis-utility-network-trace-analysis-next",l);return l},"Color","core/reactiveUtils","networks/UtilityNetworkTraceAnalysis",b,e,f,i,j)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./3ZXNGXHC.js";import{N as r,T as c,a as o,b as i}from"./RM4OPQBM.js";import"./H6RQVSYM.js";export default $arcgis.t(([{a:n}])=>{var u=o`.export-button-container{display:flex;flex-direction:column;align-items:center;gap:.5rem}`,s=class extends r{static{this.properties={viewModel:0,messages:0,fileName:1,selectExportsTab:0}}static{this.styles=u}loaded(){this.manager.onLifecycle(()=>[])}async _handlePrintMap(){this.viewModel.export(this.fileName||this.messages.untitled),this.selectExportsTab()}render(){let{messages:t}=this,{layout:a,layoutItem:e,format:p}=this.viewModel.templateOptions,d=this.viewModel.state!=="ready"||!(a||e),m=n.test(this.viewModel.portal?.url),l=`5 ${t.credits}`,h=!!e?.id;return i`<div class="export-button-container">${m&&h?i`<calcite-chip icon=credits kind=neutral .label=${l} scale=s>${l}</calcite-chip>`:null}<calcite-button .ariaLabel=${t.exportDescription} .disabled=${d||!(a||e?.id)&&!p} @click=${this._handlePrintMap} scale=l width=full>${t.export}</calcite-button></div>`}};c("arcgis-print-export-button",s);return s},a)
2
+ import a from"./7DI2ZSB3.js";import{N as r,T as c,a as o,b as i}from"./RM4OPQBM.js";import"./H6RQVSYM.js";export default $arcgis.t(([{a:n}])=>{var u=o`.export-button-container{display:flex;flex-direction:column;align-items:center;gap:.5rem}`,s=class extends r{static{this.properties={viewModel:0,messages:0,fileName:1,selectExportsTab:0}}static{this.styles=u}loaded(){this.manager.onLifecycle(()=>[])}async _handlePrintMap(){this.viewModel.export(this.fileName||this.messages.untitled),this.selectExportsTab()}render(){let{messages:t}=this,{layout:a,layoutItem:e,format:p}=this.viewModel.templateOptions,d=this.viewModel.state!=="ready"||!(a||e),m=n.test(this.viewModel.portal?.url),l=`5 ${t.credits}`,h=!!e?.id;return i`<div class="export-button-container">${m&&h?i`<calcite-chip icon=credits kind=neutral .label=${l} scale=s>${l}</calcite-chip>`:null}<calcite-button .ariaLabel=${t.exportDescription} .disabled=${d||!(a||e?.id)&&!p} @click=${this._handlePrintMap} scale=l width=full>${t.export}</calcite-button></div>`}};c("arcgis-print-export-button",s);return s},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{T as e}from"./66PT52ED.js";import"./7427KHVF.js";import{X as t}from"./RKXHWHFR.js";import"./H6RQVSYM.js";var r=class extends t{setupDefaultRules(){super.setupDefaultRules(),this.rule("InterfaceColors").setAll({stroke:e.fromHex(0),fill:e.fromHex(2829099),primaryButton:e.lighten(e.fromHex(6788316),-.2),primaryButtonHover:e.lighten(e.fromHex(6779356),-.2),primaryButtonDown:e.lighten(e.fromHex(6872181),-.2),primaryButtonActive:e.lighten(e.fromHex(6872182),-.2),primaryButtonText:e.fromHex(16777215),primaryButtonStroke:e.lighten(e.fromHex(6788316),-.2),secondaryButton:e.fromHex(3881787),secondaryButtonHover:e.lighten(e.fromHex(3881787),.1),secondaryButtonDown:e.lighten(e.fromHex(3881787),.15),secondaryButtonActive:e.lighten(e.fromHex(3881787),.2),secondaryButtonText:e.fromHex(12303291),secondaryButtonStroke:e.lighten(e.fromHex(3881787),-.2),grid:e.fromHex(12303291),background:e.fromHex(0),alternativeBackground:e.fromHex(16777215),text:e.fromHex(16777215),alternativeText:e.fromHex(0),disabled:e.fromHex(11382189),positive:e.fromHex(5288704),negative:e.fromHex(11730944)})}};var b=r;export{b as default};
2
+ import{T as e}from"./TZEAPNBI.js";import"./IU63DGNP.js";import{X as t}from"./6RT7GRX4.js";import"./H6RQVSYM.js";var r=class extends t{setupDefaultRules(){super.setupDefaultRules(),this.rule("InterfaceColors").setAll({stroke:e.fromHex(0),fill:e.fromHex(2829099),primaryButton:e.lighten(e.fromHex(6788316),-.2),primaryButtonHover:e.lighten(e.fromHex(6779356),-.2),primaryButtonDown:e.lighten(e.fromHex(6872181),-.2),primaryButtonActive:e.lighten(e.fromHex(6872182),-.2),primaryButtonText:e.fromHex(16777215),primaryButtonStroke:e.lighten(e.fromHex(6788316),-.2),secondaryButton:e.fromHex(3881787),secondaryButtonHover:e.lighten(e.fromHex(3881787),.1),secondaryButtonDown:e.lighten(e.fromHex(3881787),.15),secondaryButtonActive:e.lighten(e.fromHex(3881787),.2),secondaryButtonText:e.fromHex(12303291),secondaryButtonStroke:e.lighten(e.fromHex(3881787),-.2),grid:e.fromHex(12303291),background:e.fromHex(0),alternativeBackground:e.fromHex(16777215),text:e.fromHex(16777215),alternativeText:e.fromHex(0),disabled:e.fromHex(11382189),positive:e.fromHex(5288704),negative:e.fromHex(11730944)})}};var b=r;export{b as default};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import s from"./NRT2ZCWC.js";import"./367Z3TKY.js";import{a as Q}from"./JCRPP54Z.js";import r from"./72HH6FSN.js";import o from"./R5GMCIAH.js";import n from"./MH324PA6.js";import{a as S,b as U,g as G,h as v,j as H,k as q,m as c,n as $}from"./FCNNRX3Q.js";import{a as N}from"./SLS6H5OI.js";import{a as m}from"./E3ILZB5S.js";import j from"./ZOZSYLAP.js";import i from"./MZWO5JYA.js";import h from"./A3DPBGUE.js";import"./VJVKFKSG.js";import f from"./IE7XJM27.js";import{a as O}from"./5UVZPECS.js";import{a as L}from"./JD74LG7K.js";import{a as k}from"./PFP7KVAD.js";import e from"./WFPR2VUW.js";import b from"./YOIVWFJK.js";import{g as B}from"./6ERK6Z6K.js";import"./M6LV7VM5.js";import a from"./JVC76RB3.js";import"./QUZTFUWM.js";import{d as P}from"./HYRFW7KG.js";import{A as M,L as d,M as g,N as R,O as p,Q as _,R as w,T as A,a as C,b as l,w as y}from"./RM4OPQBM.js";import"./H6RQVSYM.js";export default $arcgis.t(([se,b,{on:ae,watch:re},,,{a:x},D,,,,,{i:j},,{a:z,b:J,c:K}])=>{var u={...Q,section:"section",editing:"editing",editingForm:"editing-form"},le=C`:host{--arcgis-layer-list-visibility-icon: hidden}.editing-form{display:flex;height:100%}.editing{padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-sm)}`,V="nested",oe=".*\\S+.*",W="data-basemap-layer-type",ne=D(se),F=class extends R{constructor(){super(...arguments),this._baseListRef=d(),this._referenceListRef=d(),this._editTitleInputRef=d(),this._layerFlowItemRef=d(),this._panelFlowItemRef=d(),this._rootFlowItemRef=d(),this._editingFlowItemRef=d(),this._lastDragDetail=null,this._selectedDragItemLayerUid=null,this._rootGroupUid=`basemap-${M()}`,this._openedLayersController=null,this._focusRootFlowItem=!1,this._focusPanelFlowItem=!1,this._focusLayerFlowItem=null,this._focusEditingFlowItem=!1,this.messages=O(),this.viewModel=ne(this),this.arcgisClose=k(this),this._canMove=({dragEl:e,fromEl:t,toEl:i},s)=>{let a=s==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,o=c(e,this._allItems);if(!o?.sortable)return!1;let r=c(t,this._allItems),n=$(t),h=c(i,this._allItems),f=$(i),I=!!n&&!!f&&n===f,Y={selected:o,from:r,to:h},Z=t.group,ee=i.group,te=r?.layer?.type??"",ie=h?.layer?.type??"",T=new Set(["map-image","catalog","knowledge-graph"]);return Z&&ee&&typeof a=="function"?a(Y):I&&!T.has(te)&&!T.has(ie)&&o.layer?.type!=="sublayer"},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer),this._focusLayerFlowItem=e.layer?.uid??null},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent),this._focusLayerFlowItem=e.layer?.uid??null},this._onPanelOpen=()=>{this._focusPanelFlowItem=!0},this._clearActiveItem=()=>{this._activeItem=null},this._setCurrentActiveItem=e=>{this._activeItem=e},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(i=>i.classList?.contains(u.item));this._activeItem=c(t,this._allItems)??null},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._toggleEditingTitle=()=>{let e=!this.editingTitle;this.editingTitle=e,e?this._focusEditingFlowItem=!0:this._focusRootFlowItem=!0},this._formSubmit=e=>{e.preventDefault();let t=this._editTitleInputRef.value?.value;t?.trim()&&(this.basemapTitle=t),this._toggleEditingTitle()},this._activeItem=null,this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.openedLayerLists=new b,this.autoDestroyDisabled=!1,this.baseFilterText="",this.baseItemCreatedFunction=this.viewModel.baseItemCreatedFunction,this.basemapTitle=this.viewModel.basemapTitle,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.editingTitle=!1,this.filterPlaceholder="",this.headingLevel=2,this.hideBaseLayers=!1,this.hideCatalogLayerList=!1,this.hideHeading=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideReferenceLayers=!1,this.hideStatusIndicators=!1,this.icon="layers",this.layerTablesEnabled=new b(["knowledge-graph"]),this.listModeDisabled=this.viewModel.listModeDisabled,this.minFilterItems=U,this.openedLayers=new b,this.referenceFilterText="",this.referenceItemCreatedFunction=this.viewModel.referenceItemCreatedFunction,this.selectedItems=new b,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showEditTitleButton=!1,this.showErrors=!1,this.showFilter=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.view=this.viewModel.view,this.visibilityAppearance="default",this.arcgisBaseFilterChange=y(),this.arcgisOpenedLayersChange=y(),this.arcgisPropertyChange=B()("state"),this.arcgisReady=y(),this.arcgisReferenceFilterChange=y(),this.arcgisTriggerAction=x(()=>this.viewModel,"trigger-action")}static{this.properties={_activeItem:16,_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,openedLayerLists:16,_allItems:16,_visibleBaseItems:16,_visibleReferenceItems:16,_openedPanelItems:16,_totalBaseItems:16,_totalReferenceItems:16,_baseFilterEnabled:16,_referenceFilterEnabled:16,_renderedOpenLayerFlowItems:16,autoDestroyDisabled:5,baseFilterPredicate:0,baseFilterText:1,baseItemCreatedFunction:0,baseItems:32,basemapTitle:1,catalogLayerList:32,catalogOptions:0,closed:5,collapsed:7,dragEnabled:5,editingTitle:5,filterPlaceholder:1,headingLevel:9,hideBaseLayers:5,hideCatalogLayerList:5,hideHeading:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideReferenceLayers:5,hideStatusIndicators:5,icon:1,knowledgeGraphOptions:0,label:1,layerTablesEnabled:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listModeDisabled:5,mapImageOptions:0,messageOverrides:0,minFilterItems:9,openedLayers:32,referenceElement:1,referenceFilterPredicate:0,referenceFilterText:1,referenceItems:32,referenceItemCreatedFunction:0,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showEditTitleButton:5,showErrors:5,showFilter:5,showTemporaryLayerIndicators:5,state:32,tableList:32,tileOptions:0,view:0,visibilityAppearance:1}}static{this.styles=[K,le,J]}get _allItems(){return this.referenceItems.concat(this.baseItems)}get _visibleBaseItems(){return this.baseItems.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _visibleReferenceItems(){return this.referenceItems.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleReferenceItems.concat(this._visibleBaseItems).flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _totalBaseItems(){return this.viewModel.baseItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _totalReferenceItems(){return this.viewModel.referenceItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _baseFilterEnabled(){return this._totalBaseItems>=this.minFilterItems&&this.showFilter}get _referenceFilterEnabled(){return this._totalReferenceItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){return this.openedLayers.toArray().map((e,t)=>this._renderLayerFlowItem(e,t===this.openedLayers.length-1))}get baseItems(){return this.viewModel.baseItems}get catalogLayerList(){return this._catalogLayerList}get referenceItems(){return this.viewModel.referenceItems}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this._destroyOpenedLayerLists(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[ae(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()},{initial:!0}),re(()=>[this.viewModel.referenceItems.toArray(),this.viewModel.baseItems.toArray()],()=>G(this.selectedItems),{initial:!0})])}updated(){v(this._baseListRef.value,this.baseFilterPredicate,this.baseItems),v(this._referenceListRef.value,this.referenceFilterPredicate,this.referenceItems)}triggerAction(e,t){this.viewModel.triggerAction(e,t)}async _createFlowList(e,t){let i=this._layerListMap.get(e);if(i)return i;let s=e.type==="catalog"?await this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||this._layerListMap.set(e,s),s}async _handleOpenedLayersChange(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this._openedLayersController?.abort();let s=new AbortController,{signal:a}=s;this._openedLayersController=s,e.forEach((n,h)=>{t.includes(h)||(n?.destroy?.(),e.delete(h))});let o=await Promise.all(t.map(n=>this._createFlowList(n,a)));if(a.aborted)return;i.removeAll(),i.addMany(o);let r=i.at(-1);r?"catalogLayer"in r?(this._catalogLayerList=r,this._tableList=void 0):(this._catalogLayerList=void 0,this._tableList=r):(this._catalogLayerList=void 0,this._tableList=void 0),this.arcgisOpenedLayersChange.emit()}_destroyOpenedLayerLists(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.clear()}async _createCatalogLayerList(e){let{headingLevel:t,catalogOptions:i,filterPlaceholder:s,minFilterItems:a,selectionMode:o,visibilityAppearance:r,layerTablesEnabled:n}=this;return w(l`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??s} .listItemCreatedFunction=${i?.listItemCreatedFunction} .minFilterItems=${i?.minFilterItems??a} .selectionMode=${i?.selectionMode??o} .visibilityAppearance=${i?.visibilityAppearance??r} .showErrors=${i?.showErrors??this.showErrors} .showFilter=${i?.showFilter??this.showFilter} .hideStatusIndicators=${i?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.showTemporaryLayerIndicators??this.showTemporaryLayerIndicators} @arcgisReady=${h=>h.stopPropagation()} .catalogLayer=${e} .layerTablesEnabled=${n} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`)}_getTableListParams(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async _createTableList(e){let t=this._getTableListParams(e);return w(l`<arcgis-table-list-next .headingLevel=${t?.headingLevel??this.headingLevel} .selectionMode=${t?.selectionMode??this.selectionMode} .dragEnabled=${t?.dragEnabled??this.dragEnabled} .collapsed=${t?.collapsed} .filterPlaceholder=${t?.filterPlaceholder} .filterText=${t?.filterText} .icon=${t?.icon??void 0} .label=${t?.label??void 0} .listItemCreatedFunction=${t?.listItemCreatedFunction} .tables=${t?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${i=>i.stopPropagation()}></arcgis-table-list-next>`)}_handlePanelFlowItemBack(e){e.open=!1,this._focusRootFlowItem=!0}_moveLayerFromChildList({toEl:e,fromEl:t,dragEl:i,newIndex:s}){let a=c(i,this._allItems),o=e.hasAttribute("data-item")?c(e,this._allItems):null,r=t.hasAttribute("data-item")?c(t,this._allItems):null,n=X(t),h=X(e);s==null||!a||!n||!h||(this.viewModel.moveItem({targetItem:a,fromParentItem:r,toParentItem:o,newIndex:s,from:n,to:h}),j(this,a.uid,f=>f.parentElement?.closest("calcite-list")===e))}_handleCalciteListDragEnd(e){let{fromEl:t,toEl:i,dragEl:s,oldIndex:a}=e;if(t!==i){s.remove();return}a==null||!t||!s||t.insertBefore(s,t.children[a])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{toEl:i,fromEl:s,dragEl:a,newIndex:o}=e,r=t?.newIndex===o&&t?.dragEl===a&&t?.toEl===i&&t?.fromEl===s;if(!s||!i||r)return;this._lastDragDetail=e,this._selectedDragItemLayerUid=a.value.layer?.uid??null;let n=s,h=i;if(n===h){let f=Array.from(s.children).filter(I=>I?.matches("calcite-list-item")).map(I=>I.value.layer?.uid??"");this._sortLayers(n,f);return}this._moveLayerFromChildList({toEl:h,fromEl:n,dragEl:a,newIndex:o})}_sortLayers(e,t){if(e===this._referenceListRef.value||e===this._baseListRef.value){let s=e===this._baseListRef.value?this.view?.map?.basemap?.baseLayers:this.view?.map?.basemap?.referenceLayers;H(s,t);return}let i=c(e,this._allItems);i&&q(i,t)}_handleCalciteListChange(e){if(this.selectionMode==="none")return;let t=e.target.selectedItems.map(i=>c(i,this._allItems)).filter(Boolean);this.selectedItems.removeAll(),this.selectedItems.addMany(t)}_focusFlowItem(e,t){return!t||!e?t:(e.setFocus(),!1)}render(){let e={[L.hidden]:this.state==="loading",[L.disabled]:this.state==="disabled"};return l`<div class=${p(P(L.widget,L.panel,e))}>${this._renderItems()}${this._renderItemTooltips()}</div>`}_renderItemTooltip(e){return e?l`<calcite-tooltip overlay-positioning=fixed .referenceElement=${this._tooltipReferenceMap.get(e.layer?.uid??"")}>${this.messages.layerIncompatibleTooltip}</calcite-tooltip>`:null}_renderItemTooltipNodes(e){if(e.incompatible)return this._renderItemTooltip(e);let t=e.children?.filter(i=>!i.hidden).toArray().map(i=>this._renderItemTooltipNodes(i));return t?.length?t:null}_renderItemTooltips(){return this._visibleReferenceItems.concat(this._visibleBaseItems).toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoLayersInfoMessage(e){return l`<div slot=message>${e}</div>`}_renderNoLayersInfo(e,t){return this.hideNoItemsNotice?null:l`<div class=${p(u.itemMessage)}>${m(t,l`<calcite-notice icon=information kind=info open width=full>${this._renderNoLayersInfoMessage(e)}</calcite-notice>`)}</div>`}_renderEditingInput(){return l`<div class=${p(u.editing)}><calcite-label>${this.messages.basemapTitle}<calcite-input .label=${this.messages.basemapTitle} name=basemaptitle .pattern=${oe} .placeholder=${this.messages.basemapTitle} required title=${this.messages.basemapTitle??_} type=text .value=${this.viewModel.basemapTitle??void 0} ${g(this._editTitleInputRef)}></calcite-input></calcite-label></div>`}_renderEditingForm(){return this.editingTitle?l`<form class=${p(u.editingForm)} @submit=${this._formSubmit}><calcite-flow-item .heading=${this.hideHeading?void 0:this.messages.basemapTitle} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length&&!this._openedPanelItems.length} @calciteFlowItemBack=${e=>{e.preventDefault(),this._toggleEditingTitle()}} ${g(this._editingFlowItemRef)}>${this._renderEditingInput()}<calcite-button appearance=outline @click=${this._toggleEditingTitle} slot=footer-actions width=full>${this.messages.cancel}</calcite-button><calcite-button slot=footer-actions type=submit width=full>${this.messages.ok}</calcite-button></calcite-flow-item></form>`:null}_renderEditTitleButton(){return this.showEditTitleButton&&!this.editingTitle?l`<calcite-action icon=pencil @click=${this._toggleEditingTitle} slot=header-actions-end .text=${this.messages.edit??""} title=${this.messages.edit??_}></calcite-action>`:null}_renderItems(){let e=[m("root-flow-item",l`<calcite-flow-item .closable=${this.showCloseButton} .closed=${this.closed} .collapsed=${this.collapsed} .collapsible=${this.showCollapseButton} .heading=${this.hideHeading?void 0:this.viewModel.basemapTitle??this.messages.componentLabel} .headingLevel=${this.headingLevel} .selected=${!this.editingTitle&&!this.openedLayers.length&&!this._openedPanelItems.length} @calciteFlowItemClose=${()=>{this.closed=!0}} ${g(this._rootFlowItemRef)}>${this._renderEditTitleButton()}${this._renderReferenceSection()}${this._renderBaseSection()}</calcite-flow-item>`),this._renderEditingForm(),this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];return this._focusRootFlowItem=this._focusFlowItem(this._rootFlowItemRef.value,this._focusRootFlowItem),this._focusEditingFlowItem=this._focusFlowItem(this._editingFlowItemRef.value,this._focusEditingFlowItem),this.closed?null:m("root-flow",l`<calcite-flow>${e}</calcite-flow>`)}_renderPanelFlowItems(){return N(this._openedPanelItems.toArray(),e=>e.uid,(e,t)=>{let{panel:i,title:s}=e,a=()=>this._handlePanelFlowItemBack(i);return this._focusPanelFlowItem=this._focusFlowItem(this._panelFlowItemRef.value,this._focusPanelFlowItem),l`<calcite-flow-item .description=${s} .heading=${i.title} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length&&t===this._openedPanelItems.length-1} @calciteFlowItemBack=${o=>{o.preventDefault(),a()}} ${g(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${e} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${a} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}_renderLayerFlowItem(e,t){let i=e.title||this.messages.untitledLayer;return this._focusLayerFlowItem===e.uid&&(this._focusLayerFlowItem=this._focusFlowItem(this._layerFlowItemRef.value,!0)?e.uid:null),m(e.uid,l`<calcite-flow-item data-layer-uid=${e.uid??_} .description=${i} .heading=${this.messages[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${s=>{s.preventDefault(),this.openedLayers.pop();let a=this.openedLayers.at(-1);a?this._focusLayerFlowItem=a.uid:this._focusRootFlowItem=!0}} ${g(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}_renderList(e,t,i){let s=t==="reference"?this._referenceFilterEnabled:this._baseFilterEnabled,a=t==="reference"?this.referenceFilterText:this.baseFilterText,o=(t==="reference"?this.messages.noReferenceLayers:this.messages.noBaseLayers)??this.messages.noItemsToDisplay??"";return m(`block-${t}`,l`<calcite-block class=${p(u.section)} collapsible expanded .heading=${t==="reference"?this.messages.referenceHeading:this.messages.baseHeading} .headingLevel=${this.headingLevel+1}>${e?.length?null:this._renderNoLayersInfo(o,t)}${m(`list-${t}`,l`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${r=>this._canMove(r,"pull")} .canPut=${r=>this._canMove(r,"put")} data-basemap-layer-type=${t??_} data-layer-type=${this._rootGroupUid??_} .displayMode=${V} .dragEnabled=${this.dragEnabled} .filterEnabled=${s} .filterPlaceholder=${this.filterPlaceholder} .filterProps=${S} .filterText=${s?a:""} .group=${this._rootGroupUid} .label=${this.messages.componentLabel??""} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=border .selectionMode=${this.selectionMode} @calciteListChange=${this._handleCalciteListChange} @calciteListDragEnd=${r=>this._handleCalciteListDragEnd(r.detail)} @calciteListFilter=${r=>{let n=r.currentTarget?.filterText??"";this[t==="reference"?"referenceFilterText":"baseFilterText"]=n,t==="base"?this.arcgisBaseFilterChange.emit():this.arcgisReferenceFilterChange.emit()}} @calciteListOrderChange=${r=>this._onCalciteListOrderChange(r.detail)} ${g(t==="reference"?this._referenceListRef:this._baseListRef)}>${e?.toArray().map(r=>this._renderItem(r,i))}${s&&!this.hideNoFilterResultsNotice?l`<div class=${p(u.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoLayersInfoMessage(o)}</calcite-notice></div>`:null}</calcite-list>`)}</calcite-block>`)}_renderBaseSection(){return this.hideBaseLayers?null:this._renderList(this._visibleBaseItems,"base",this._visibleBaseItems.length===1)}_renderReferenceSection(){return this.hideReferenceLayers?null:this._renderList(this._visibleReferenceItems,"reference",!1)}_renderItem(e,t,i,s){return m(e.uid,z({activeItem:this._activeItem,canMove:this._canMove,css:u,displayMode:V,dragEnabled:this.dragEnabled&&!t,hideCatalogLayerList:this.hideCatalogLayerList,hideStatusIndicators:this.hideStatusIndicators,item:e,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,messages:this.messages,operationalItems:this._allItems,parent:i,parentTitles:s,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem,clearActiveItem:this._clearActiveItem,showErrors:this.showErrors,showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction,handleCatalogOpen:this._onCatalogOpen,handlePanelOpen:this._onPanelOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,handleTablesOpen:this._onTablesOpen,handleTooltipReferenceChange:this._onTooltipReferenceChange,view:this.view}))}};function X(E){let e=E.closest(`[${W}]`)?.getAttribute(W);return e==="base"||e==="reference"?e:null}A("arcgis-basemap-layer-list-next",F);return F},"layers/list/BasemapItemCollection","core/Collection","core/reactiveUtils",a,b,e,f,h,i,j,n,o,r,s)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import j from"./M4BXOW2Q.js";import{a as M,b as V,e as u,g as m,j as $,k as S}from"./G5VPRDMX.js";import{a as g}from"./POKO37D3.js";import i from"./A3DPBGUE.js";import"./VJVKFKSG.js";import h from"./IE7XJM27.js";import{a as k}from"./5UVZPECS.js";import{a as p}from"./JD74LG7K.js";import e from"./WFPR2VUW.js";import d from"./YOIVWFJK.js";import{g as x}from"./6ERK6Z6K.js";import"./M6LV7VM5.js";import a from"./JVC76RB3.js";import"./QUZTFUWM.js";import"./HYRFW7KG.js";import{N as f,O as v,T as b,a as _,b as c,w}from"./RM4OPQBM.js";import"./H6RQVSYM.js";export default $arcgis.t(([C,{property:n,subclass:D},{watch:U},j,,,,z,{f:y},O])=>{var E=_`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{.esri-widget--panel{min-width:0}}`,L=Object.defineProperty,P=Object.getOwnPropertyDescriptor,a=(i,e,l,s)=>{for(var t=s>1?void 0:s?P(e,l):e,o=i.length-1,d;o>=0;o--)(d=i[o])&&(t=(s?d(e,l,t):d(t))||t);return s&&t&&L(e,l,t),t},r=class extends O{constructor(){super(...arguments),this.snappingOptions=new j,this.supportedViewType="2d",this.unsupportedErrorMessage="The Area Measurement 2D component is only supported in 2D views.",this.shouldForceInteractive=!1}initialize(){this.addHandles([U(()=>({analysis:this.analysis,unit:this._userUnit}),({analysis:i,unit:e})=>{e&&(i.unit=e)},{sync:!0,initial:!0}),U(()=>({analysisView:this.analysisView,snappingOptions:this.snappingOptions}),({analysisView:i,snappingOptions:e})=>{i&&"snappingOptions"in i&&(i.snappingOptions=e)},{sync:!0,initial:!0})])}get state(){let{analysis:i,disabled:e,operationState:l,ready:s,supported:t}=this,{valid:o}=i;return M({supported:t,disabled:e,ready:s,operationState:l,valid:o})}get displayState(){return V(this.state,!!this.analysis.geometry)}get measurement(){return{mode:this.analysisView?.result?.mode??"euclidean",area:m(this.analysis.valid?this.analysisView?.result?.area:void 0),perimeter:m(this.analysis.valid?this.analysisView?.result?.perimeter:void 0)}}get unitOptions(){return $(this._userUnitOptions,u,u)}set unitOptions(i){this._userUnitOptions=i}get unit(){return S(this._userUnit,this.analysis.unit,this.unitOptions,this.defaultMeasurementSystem)}set unit(i){this._userUnit=i}async place(i){this.analysisView&&(await this.analysisView.place(i),this.analysisView.interactive=!0)}clearAnalysis(){this.analysis.geometry=null}constructAnalysis(){return new C}};a([n({readOnly:!0})],r.prototype,"state",1);a([n({readOnly:!0})],r.prototype,"displayState",1);a([n()],r.prototype,"measurement",1);a([n({type:j})],r.prototype,"snappingOptions",2);a([n()],r.prototype,"unitOptions",1);a([n()],r.prototype,"_userUnitOptions",2);a([n()],r.prototype,"unit",1);a([n()],r.prototype,"_userUnit",2);r=a([D("components.area-measurement-2d.AreaMeasurement2dViewModel")],r);var B=z(r),h=class extends f{constructor(){super(...arguments),this.viewModel=B(this),this.messages=k({name:"area-measurement-2d",blocking:!0}),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.hideStartButton=!1,this.hideUnitSelect=!1,this.hideVisualization=this.viewModel.hideVisualization,this.icon="measure-area",this.snappingOptions=this.viewModel.snappingOptions,this.state=this.viewModel.state,this.unit=this.viewModel.unit,this.unitOptions=this.viewModel.unitOptions,this.arcgisPropertyChange=x()("analysis","state"),this.arcgisReady=w()}static{this.properties={view:0,analysis:0,autoDestroyDisabled:5,hideStartButton:5,hideUnitSelect:5,hideVisualization:5,icon:3,label:1,referenceElement:1,snappingOptions:0,state:32,unit:1,unitOptions:0}}static{this.styles=E}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){y(this.viewModel.start())}render(){let{messages:e,unit:l,unitOptions:s,viewModel:t}=this,{measurement:o,state:d}=t;return c`<div .ariaLabel=${e.aria.label} class=${v({[p.widget]:!0,[p.panel]:!0})} aria-live=polite role=region><arcgis-measurement-content .state=${t.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[{title:e.area,measurement:o.area},{title:e.perimeter,measurement:o.perimeter}]}>${g({hidden:this.hideUnitSelect,children:c`<arcgis-unit-select slot=settings .options=${s} .selectLabel=${e.unit} .value=${l} @arcgisUnitSelectChange=${A=>{this.unit=A.detail}}></arcgis-unit-select>`})}${g({hidden:this.hideStartButton,children:c`<calcite-button slot=actions .disabled=${d==="unsupported"||d==="disabled"} @click=${this.start}>${e.newMeasurement}</calcite-button>`})}</arcgis-measurement-content></div>`}};b("arcgis-area-measurement-2d",h);return h},"analysis/AreaMeasurementAnalysis","core/accessorSupport/decorators","core/reactiveUtils","views/interactive/snapping/SnappingOptions",a,d,e,h,i,j)
2
+ import j from"./M4BXOW2Q.js";import{a as M,b as V,e as u,g as m,j as $,k as S}from"./G5VPRDMX.js";import{a as g}from"./POKO37D3.js";import i from"./A3DPBGUE.js";import"./VJVKFKSG.js";import h from"./IE7XJM27.js";import{a as k}from"./5UVZPECS.js";import{a as p}from"./JD74LG7K.js";import e from"./WFPR2VUW.js";import d from"./YOIVWFJK.js";import{g as x}from"./6ERK6Z6K.js";import"./M6LV7VM5.js";import a from"./JVC76RB3.js";import"./QUZTFUWM.js";import"./HYRFW7KG.js";import{N as f,O as v,T as b,a as _,b as c,w}from"./RM4OPQBM.js";import"./H6RQVSYM.js";export default $arcgis.t(([C,{property:n,subclass:D},{watch:U},j,,,,z,{f:y},O])=>{var E=_`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{.esri-widget--panel{min-width:0}}`,L=Object.defineProperty,P=Object.getOwnPropertyDescriptor,a=(i,e,l,s)=>{for(var t=s>1?void 0:s?P(e,l):e,o=i.length-1,d;o>=0;o--)(d=i[o])&&(t=(s?d(e,l,t):d(t))||t);return s&&t&&L(e,l,t),t},r=class extends O{constructor(){super(...arguments),this.snappingOptions=new j,this.supportedViewType="2d",this.unsupportedErrorMessage="The Area Measurement 2D component is only supported in 2D views.",this.shouldForceInteractive=!1}initialize(){this.addHandles([U(()=>({analysis:this.analysis,unit:this._userUnit}),({analysis:i,unit:e})=>{e&&(i.unit=e)},{sync:!0,initial:!0}),U(()=>({analysisView:this.analysisView,snappingOptions:this.snappingOptions}),({analysisView:i,snappingOptions:e})=>{i&&"snappingOptions"in i&&(i.snappingOptions=e)},{sync:!0,initial:!0})])}get state(){let{analysis:i,disabled:e,operationState:l,ready:s,supported:t}=this,{valid:o}=i;return M({supported:t,disabled:e,ready:s,operationState:l,valid:o})}get displayState(){return V(this.state,!!this.analysis.geometry)}get measurement(){return{mode:this.analysisView?.result?.mode??"euclidean",area:m(this.analysis.valid?this.analysisView?.result?.area:void 0),perimeter:m(this.analysis.valid?this.analysisView?.result?.perimeter:void 0)}}get unitOptions(){return $(this._userUnitOptions,u,u)}set unitOptions(i){this._userUnitOptions=i}get unit(){return S(this._userUnit,this.analysis.unit,this.unitOptions,this.defaultMeasurementSystem)}set unit(i){this._userUnit=i}async place(i){this.analysisView&&(await this.analysisView.place(i),this.analysisView.interactive=!0)}clearAnalysis(){this.analysis.geometry=null}constructAnalysis(){return new C}};a([n({readOnly:!0})],r.prototype,"state",1);a([n({readOnly:!0})],r.prototype,"displayState",1);a([n()],r.prototype,"measurement",1);a([n({type:j})],r.prototype,"snappingOptions",2);a([n()],r.prototype,"unitOptions",1);a([n()],r.prototype,"_userUnitOptions",2);a([n()],r.prototype,"unit",1);a([n()],r.prototype,"_userUnit",2);r=a([D("components.area-measurement-2d.AreaMeasurement2dViewModel")],r);var B=z(r),h=class extends f{constructor(){super(...arguments),this.viewModel=B(this),this.messages=k({name:"area-measurement-2d",blocking:!0}),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.hideStartButton=!1,this.hideUnitSelect=!1,this.hideVisualization=this.viewModel.hideVisualization,this.icon="measure-area",this.snappingOptions=this.viewModel.snappingOptions,this.state=this.viewModel.state,this.unit=this.viewModel.unit,this.unitOptions=this.viewModel.unitOptions,this.arcgisPropertyChange=x()("analysis","state"),this.arcgisReady=w()}static{this.properties={view:0,analysis:0,autoDestroyDisabled:5,hideStartButton:5,hideUnitSelect:5,hideVisualization:5,icon:3,label:1,messageOverrides:0,referenceElement:1,snappingOptions:0,state:32,unit:1,unitOptions:0}}static{this.styles=E}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){y(this.viewModel.start())}render(){let{messages:e,unit:l,unitOptions:s,viewModel:t}=this,{measurement:o,state:d}=t;return c`<div .ariaLabel=${e.aria.label} class=${v({[p.widget]:!0,[p.panel]:!0})} aria-live=polite role=region><arcgis-measurement-content .state=${t.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[{title:e.area,measurement:o.area},{title:e.perimeter,measurement:o.perimeter}]}>${g({hidden:this.hideUnitSelect,children:c`<arcgis-unit-select slot=settings .options=${s} .selectLabel=${e.unit} .value=${l} @arcgisUnitSelectChange=${A=>{this.unit=A.detail}}></arcgis-unit-select>`})}${g({hidden:this.hideStartButton,children:c`<calcite-button slot=actions .disabled=${d==="unsupported"||d==="disabled"} @click=${this.start}>${e.newMeasurement}</calcite-button>`})}</arcgis-measurement-content></div>`}};b("arcgis-area-measurement-2d",h);return h},"analysis/AreaMeasurementAnalysis","core/accessorSupport/decorators","core/reactiveUtils","views/interactive/snapping/SnappingOptions",a,d,e,h,i,j)