@arcgis/charts-components 5.2.4 → 5.2.5

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 (166) hide show
  1. package/dist/cdn/{TVK5YYZV.js → 26LD3JDE.js} +1 -1
  2. package/dist/cdn/{FXZXDQFC.js → 2SRLYXXC.js} +1 -1
  3. package/dist/cdn/{V46ETNB6.js → 3ZJ6LPKN.js} +1 -1
  4. package/dist/cdn/{K7TLWR5W.js → 44PYM2TJ.js} +1 -1
  5. package/dist/cdn/{VB5IKXUD.js → 44Z3FQLY.js} +1 -1
  6. package/dist/cdn/{LSYILFV4.js → 46GFREHY.js} +1 -1
  7. package/dist/cdn/{Y5ZTGQ5Q.js → 4HXCSWFW.js} +1 -1
  8. package/dist/cdn/{5H5BOE5X.js → 4LTBO3OH.js} +1 -1
  9. package/dist/cdn/{CKIBYI4O.js → 5PW4GYCQ.js} +1 -1
  10. package/dist/cdn/{HYUNZPWJ.js → 644ZYZSU.js} +1 -1
  11. package/dist/cdn/{PAVO7TKG.js → 6ABL27JK.js} +1 -1
  12. package/dist/cdn/{TMZNR5AP.js → 6NKPJKJZ.js} +1 -1
  13. package/dist/cdn/{2E7Y73KW.js → 6QBVLG2I.js} +1 -1
  14. package/dist/cdn/{SLLAAPPY.js → 7AMD4YN6.js} +1 -1
  15. package/dist/cdn/{K6T2WHGF.js → 7BHQ4WZG.js} +1 -1
  16. package/dist/cdn/{CXWV2XJ3.js → 7BNWTGZF.js} +1 -1
  17. package/dist/cdn/{IV6FB63F.js → 7BRKP3WF.js} +1 -1
  18. package/dist/cdn/{VFOCQSCU.js → 7U7GWGJK.js} +1 -1
  19. package/dist/cdn/{7AWQQJBB.js → 7YHWGOAD.js} +1 -1
  20. package/dist/cdn/{HRZMQXWG.js → 7YKEPQPV.js} +1 -1
  21. package/dist/cdn/{FEKN5HO6.js → A63ZBLBQ.js} +1 -1
  22. package/dist/cdn/{PV5ZIYPR.js → A7TCEMYA.js} +1 -1
  23. package/dist/cdn/{7EMFD4UL.js → C3JQWRBV.js} +1 -1
  24. package/dist/cdn/{CDGHPNUU.js → DKMC6A3E.js} +1 -1
  25. package/dist/cdn/{62IYW4WP.js → DUOJT67J.js} +1 -1
  26. package/dist/cdn/{SP26MTRQ.js → DV4E5BS7.js} +1 -1
  27. package/dist/cdn/{QT6SSNCU.js → DZBOEW4R.js} +1 -1
  28. package/dist/cdn/{AZWPSIV2.js → E4PHGP2D.js} +1 -1
  29. package/dist/cdn/{VNTP2XA2.js → EA2QTPDF.js} +1 -1
  30. package/dist/cdn/{XLQLIYN6.js → EHL5S6MD.js} +1 -1
  31. package/dist/cdn/{TQ76KTJO.js → EKQKUKY6.js} +1 -1
  32. package/dist/cdn/{G26Q6NOB.js → ES4YBG5J.js} +1 -1
  33. package/dist/cdn/{EBVHLPQV.js → EWG2EF2Z.js} +1 -1
  34. package/dist/cdn/{U2MCA4H2.js → FDSPMHM2.js} +2 -2
  35. package/dist/cdn/{AAWNLLJP.js → FDZYFCPS.js} +1 -1
  36. package/dist/cdn/{7F5GWUQA.js → FFYXLNXZ.js} +1 -1
  37. package/dist/cdn/{ZIEKY7ZG.js → FG6MPOF7.js} +1 -1
  38. package/dist/cdn/{3LH2CN6Q.js → FKL4VDVU.js} +1 -1
  39. package/dist/cdn/{HNLZZ2CO.js → G7WKKRGY.js} +1 -1
  40. package/dist/cdn/{R25QUDZ4.js → GK3LWYI2.js} +19 -19
  41. package/dist/cdn/{ZMGATT2R.js → GS3E5GJJ.js} +1 -1
  42. package/dist/cdn/{XCW6AOVD.js → GX5XKLFE.js} +1 -1
  43. package/dist/cdn/{O2E5JGTW.js → H4GN7TDZ.js} +1 -1
  44. package/dist/cdn/{I6VPLTXX.js → HHXU2JWX.js} +1 -1
  45. package/dist/cdn/{HEY5AJW5.js → HMP2CHBB.js} +1 -1
  46. package/dist/cdn/{WAGEOSPA.js → JDTF4G67.js} +1 -1
  47. package/dist/cdn/{32PSVIYD.js → JR7ZVPCH.js} +1 -1
  48. package/dist/cdn/{OQ4IZ6O6.js → JXRE2WQR.js} +1 -1
  49. package/dist/cdn/{ZUHDYTJV.js → JZHNQWPY.js} +1 -1
  50. package/dist/cdn/{TMW23GBP.js → K7MPLY6I.js} +1 -1
  51. package/dist/cdn/{IQTXTQQB.js → KFJ2NIK7.js} +1 -1
  52. package/dist/cdn/{225PWQD7.js → KFOQPBDA.js} +1 -1
  53. package/dist/cdn/{E5Q4RLKF.js → KMXPTRVD.js} +1 -1
  54. package/dist/cdn/{KJH6TYXG.js → KSTCNHA2.js} +1 -1
  55. package/dist/cdn/{N5VD423H.js → KT6AEWCK.js} +1 -1
  56. package/dist/cdn/{4UL2F4EM.js → KUDV2WGH.js} +1 -1
  57. package/dist/cdn/{22W4DAQI.js → LEYLW7KZ.js} +1 -1
  58. package/dist/cdn/{7N47ELTC.js → MA2C2A3Z.js} +1 -1
  59. package/dist/cdn/{EWTJS5JK.js → MAGKESKX.js} +1 -1
  60. package/dist/cdn/{EKWPHQPE.js → MNOE2KFI.js} +1 -1
  61. package/dist/cdn/{FLUZOIAQ.js → NAFR5NQW.js} +1 -1
  62. package/dist/cdn/{KMIZUMBQ.js → NLI6JDBZ.js} +1 -1
  63. package/dist/cdn/{5MH2LKNP.js → NNMZZZUF.js} +1 -1
  64. package/dist/cdn/{D3ZMTCLO.js → P5QUAH6M.js} +2 -2
  65. package/dist/cdn/{HO4EEHBU.js → PMR2IBGO.js} +1 -1
  66. package/dist/cdn/{CHLGUEXO.js → PZKLLW46.js} +1 -1
  67. package/dist/cdn/{JTDNM2UW.js → Q7WV4V3K.js} +1 -1
  68. package/dist/cdn/{JW4EWJ2J.js → QEDGL5JC.js} +1 -1
  69. package/dist/cdn/{G2FV4PKE.js → R3GFDLUB.js} +1 -1
  70. package/dist/cdn/{5FF4FYK6.js → SF2ORJF7.js} +1 -1
  71. package/dist/cdn/{JNXHOFW2.js → SNIBCBGO.js} +1 -1
  72. package/dist/cdn/{L4YYKWRQ.js → SS7GGYHT.js} +1 -1
  73. package/dist/cdn/{CXWMKATO.js → STGQXZRH.js} +1 -1
  74. package/dist/cdn/{VVI23DNY.js → STMML4MI.js} +1 -1
  75. package/dist/cdn/{FPMYKZUS.js → TLUMTYZB.js} +1 -1
  76. package/dist/cdn/{RNOLVD4V.js → TN36JLAZ.js} +1 -1
  77. package/dist/cdn/{6VB7M75J.js → TNYROJYG.js} +1 -1
  78. package/dist/cdn/{4DVYBRML.js → TPIAUZXB.js} +1 -1
  79. package/dist/cdn/{QINQQZYJ.js → TX2VRZUB.js} +1 -1
  80. package/dist/cdn/{CPOQUGDB.js → UCB2BAAC.js} +1 -1
  81. package/dist/cdn/{7DV6TWSF.js → UE7EIFB3.js} +1 -1
  82. package/dist/cdn/{5MECBMJC.js → UEAY5SKM.js} +1 -1
  83. package/dist/cdn/{KGIECHB3.js → UMCC77N4.js} +1 -1
  84. package/dist/cdn/{EKBH3JB4.js → V4KN7OD4.js} +1 -1
  85. package/dist/cdn/{GX6K6YO6.js → VH6VQ37J.js} +1 -1
  86. package/dist/cdn/{B3VW6EKS.js → VU4U6YMJ.js} +1 -1
  87. package/dist/cdn/{73I74AX7.js → VZPZKB24.js} +1 -1
  88. package/dist/cdn/{TL3GWVJX.js → WLXVOKTG.js} +1 -1
  89. package/dist/cdn/{22LJ237B.js → XDHCY3VP.js} +1 -1
  90. package/dist/cdn/{MJRKHCZP.js → XHRMPF3Q.js} +1 -1
  91. package/dist/cdn/{SQ7EPQSM.js → XIITX6LZ.js} +1 -1
  92. package/dist/cdn/{KRT3ZCQR.js → XJMA365C.js} +1 -1
  93. package/dist/cdn/{JSYNXKFF.js → XT3G7EDM.js} +1 -1
  94. package/dist/cdn/{ONKSE46T.js → XXLHI5DE.js} +1 -1
  95. package/dist/cdn/{QNQGHXBM.js → ZAGZ5BI4.js} +1 -1
  96. package/dist/cdn/{KEUY75EP.js → ZCYSBI3V.js} +1 -1
  97. package/dist/cdn/{CPTVKQNL.js → ZKML6BIS.js} +1 -1
  98. package/dist/cdn/{SEEO2AIK.js → ZPHKQU77.js} +1 -1
  99. package/dist/cdn/index.js +1 -1
  100. package/dist/cdn/model/shared/setup-utils.js +1 -1
  101. package/dist/chunks/action-bar-utils.js +7 -7
  102. package/dist/chunks/bar-chart-model.js +3 -3
  103. package/dist/chunks/box-plot-data.js +46 -46
  104. package/dist/chunks/box-plot-model.js +18 -18
  105. package/dist/chunks/chart-model.js +32 -32
  106. package/dist/chunks/chart-ui-utils.js +3 -3
  107. package/dist/chunks/chart-ui-utils2.js +1 -1
  108. package/dist/chunks/class-breaks.js +15 -15
  109. package/dist/chunks/combo-bar-line-chart-model.js +9 -9
  110. package/dist/chunks/data.js +11 -11
  111. package/dist/chunks/gauge-model.js +5 -5
  112. package/dist/chunks/histogram-model.js +4 -4
  113. package/dist/chunks/index.js +317 -316
  114. package/dist/chunks/index3.js +1 -1
  115. package/dist/chunks/line-chart-model.js +5 -5
  116. package/dist/chunks/model-setter.js +1 -1
  117. package/dist/chunks/model-with-x-guides.js +1 -1
  118. package/dist/chunks/model-with-y-guides.js +4 -4
  119. package/dist/chunks/negative-values-stacked-to-baseline.js +5 -5
  120. package/dist/chunks/pie-chart-model.js +9 -9
  121. package/dist/chunks/radar-chart-model.js +1 -1
  122. package/dist/chunks/rotated-state.js +1 -1
  123. package/dist/chunks/rounded-corners.js +1 -1
  124. package/dist/chunks/runtime.js +1 -1
  125. package/dist/chunks/scatterplot-model.js +3 -3
  126. package/dist/chunks/serial-chart-data.js +47 -47
  127. package/dist/chunks/serial-chart-model.js +20 -20
  128. package/dist/chunks/series-length.js +11 -11
  129. package/dist/chunks/utils.js +19 -19
  130. package/dist/chunks/web-component-utils.js +19 -19
  131. package/dist/chunks/x-bounds.js +7 -7
  132. package/dist/components/arcgis-chart/customElement.js +1815 -1803
  133. package/dist/components/arcgis-charts-action-bar/customElement.js +6 -6
  134. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  135. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
  136. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +3 -3
  137. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
  138. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
  139. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  140. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
  141. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  142. package/dist/components/arcgis-charts-config-create-flow/customElement.js +5 -5
  143. package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
  144. package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
  145. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
  146. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +1 -1
  147. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
  148. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  149. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
  150. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  151. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
  152. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
  153. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +3 -3
  154. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
  155. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +6 -6
  156. package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +1 -1
  157. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
  158. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  159. package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
  160. package/dist/components/arcgis-charts-info-modal/customElement.js +1 -1
  161. package/dist/docs/api.json +1 -1
  162. package/dist/docs/docs.json +1 -1
  163. package/dist/docs/web-types.json +1 -1
  164. package/dist/index.js +66 -66
  165. package/dist/utils/chart-config/converter/index.js +37 -37
  166. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  var Y=globalThis,Z=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Et=Symbol(),kt=new WeakMap,M=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==Et)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=kt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&kt.set(e,t))}return t}toString(){return this.cssText}},jt=o=>new M(typeof o=="string"?o:o+"",void 0,Et),Ce=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,n,r)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[r+1],o[0]);return new M(e,o,Et)},Ht=(o,t)=>{if(Z)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),n=Y.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,o.appendChild(s)}},$t=Z?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return jt(e)})(o):o;var{is:we,defineProperty:Oe,getOwnPropertyDescriptor:Te,getOwnPropertyNames:Se,getOwnPropertySymbols:Pe,getPrototypeOf:Ne}=Object,tt=globalThis,zt=tt.trustedTypes,De=zt?zt.emptyScript:"",xe=tt.reactiveElementPolyfillSupport,k=(o,t)=>o,X={toAttribute(o,t){switch(t){case Boolean:o=o?De:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},j=(o,t)=>!we(o,t),Vt={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:j};Symbol.metadata??=Symbol("metadata"),tt.litPropertyMetadata??=new WeakMap;var A=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Vt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&Oe(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){let{get:n,set:r}=Te(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let a=n?.call(this);r?.call(this,i),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Vt}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;let t=Ne(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){let e=this.properties,s=[...Se(e),...Pe(e)];for(let n of s)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let n of s)e.unshift($t(n))}else t!==void 0&&e.push($t(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ht(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:X).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,e){let s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let r=s.getPropertyOptions(n),i=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:X;this._$Em=n;let a=i.fromAttribute(e,r.type);this[n]=a??this._$Ej?.get(n)??a,this._$Em=null}}requestUpdate(t,e,s,n=!1,r){if(t!==void 0){let i=this.constructor;if(n===!1&&(r=this[t]),s??=i.getPropertyOptions(t),!((s.hasChanged??j)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:n,wrapped:r},i){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),r!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),n===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,r]of s){let{wrapped:i}=r,a=this[n];i!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,r,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[k("elementProperties")]=new Map,A[k("finalized")]=new Map,xe?.({ReactiveElement:A}),(tt.reactiveElementVersions??=[]).push("2.1.2");var At=globalThis,Bt=o=>o,et=At.trustedTypes,Wt=et?et.createPolicy("lit-html",{createHTML:o=>o}):void 0,_t="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,Ct="?"+_,Ue=`<${Ct}>`,T=document,z=()=>T.createComment(""),V=o=>o===null||typeof o!="object"&&typeof o!="function",wt=Array.isArray,Jt=o=>wt(o)||typeof o?.[Symbol.iterator]=="function",bt=`[
3
3
  \f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ft=/-->/g,qt=/>/g,w=RegExp(`>|${bt}(?:([^\\s"'>=/]+)(${bt}*=${bt}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Kt=/"/g,Yt=/^(?:script|style|textarea|title)$/i,Ot=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),ms=Ot(1),ys=Ot(2),gs=Ot(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Qt=new WeakMap,O=T.createTreeWalker(T,129);function Zt(o,t){if(!wt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wt!==void 0?Wt.createHTML(t):t}var Xt=(o,t)=>{let e=o.length-1,s=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,m=0;for(;m<c.length&&(i.lastIndex=m,u=i.exec(c),u!==null);)m=i.lastIndex,i===H?u[1]==="!--"?i=Ft:u[1]!==void 0?i=qt:u[2]!==void 0?(Yt.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=w):u[3]!==void 0&&(i=w):i===w?u[0]===">"?(i=n??H,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,l=u[1],i=u[3]===void 0?w:u[3]==='"'?Kt:Gt):i===Kt||i===Gt?i=w:i===Ft||i===qt?i=H:(i=w,n=void 0);let v=i===w&&o[a+1].startsWith("/>")?" ":"";r+=i===H?c+Ue:h>=0?(s.push(l),c.slice(0,h)+_t+c.slice(h)+_+v):c+_+(h===-2?a:v)}return[Zt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},B=class o{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,i=0,a=t.length-1,c=this.parts,[l,u]=Xt(t,e);if(this.el=o.createElement(l,s),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=O.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(_t)){let m=u[i++],v=n.getAttribute(h).split(_),C=/([.?@])?(.*)/.exec(m);c.push({type:1,index:r,name:C[2],strings:v,ctor:C[1]==="."?ot:C[1]==="?"?nt:C[1]==="@"?rt:P}),n.removeAttribute(h)}else h.startsWith(_)&&(c.push({type:6,index:r}),n.removeAttribute(h));if(Yt.test(n.tagName)){let h=n.textContent.split(_),m=h.length-1;if(m>0){n.textContent=et?et.emptyScript:"";for(let v=0;v<m;v++)n.append(h[v],z()),O.nextNode(),c.push({type:2,index:++r});n.append(h[m],z())}}}else if(n.nodeType===8)if(n.data===Ct)c.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(_,h+1))!==-1;)c.push({type:7,index:r}),h+=_.length-1}r++}}static createElement(t,e){let s=T.createElement("template");return s.innerHTML=t,s}};function S(o,t,e=o,s){if(t===f)return t;let n=s!==void 0?e._$Co?.[s]:e._$Cl,r=V(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=n:e._$Cl=n),n!==void 0&&(t=S(o,n._$AS(o,t.values),n,s)),t}var st=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,n=(t?.creationScope??T).importNode(e,!0);O.currentNode=n;let r=O.nextNode(),i=0,a=0,c=s[0];for(;c!==void 0;){if(i===c.index){let l;c.type===2?l=new U(r,r.nextSibling,this,t):c.type===1?l=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(l=new it(r,this,t)),this._$AV.push(l),c=s[++a]}i!==c?.index&&(r=O.nextNode(),i++)}return O.currentNode=T,n}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},U=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),V(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Jt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=B.createElement(Zt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(e);else{let r=new st(n,this),i=r.u(this.options);r.p(e),this.T(i),this._$AH=r}}_$AC(t){let e=Qt.get(t.strings);return e===void 0&&Qt.set(t.strings,e=new B(t)),e}k(t){wt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let r of t)n===e.length?e.push(s=new o(this.O(z()),this.O(z()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=Bt(t).nextSibling;Bt(t).remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,n){let r=this.strings,i=!1;if(r===void 0)t=S(this,t,e,0),i=!V(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,c,l;for(t=r[0],c=0;c<r.length-1;c++)l=S(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),i||=!V(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+r[c+1]),this._$AH[c]=l}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},nt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},rt=class extends P{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let s=this._$AH,n=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},it=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},te={M:_t,P:_,A:Ct,C:1,L:Xt,R:st,D:Jt,V:S,I:U,H:P,N:nt,U:rt,B:ot,F:it},Le=At.litHtmlPolyfillSupport;Le?.(B,U),(At.litHtmlVersions??=[]).push("3.3.2");var at=(o,t,e)=>{let s=e?.renderBefore??t,n=s._$litPart$;if(n===void 0){let r=e?.renderBefore??null;s._$litPart$=n=new U(t.insertBefore(z(),r),r,void 0,e??{})}return n._$AI(o),n};var Tt=globalThis,E=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};E._$litElement$=!0,E.finalized=!0,Tt.litElementHydrateSupport?.({LitElement:E});var Re=Tt.litElementPolyfillSupport;Re?.({LitElement:E});(Tt.litElementVersions??=[]).push("4.2.2");var ee=new Set,se;var oe=o=>typeof o=="string"?o:"el"in o?o.el.localName:"localName"in o?o.localName:o.declaredClass,Ns=(o,t,e,s)=>{let n=oe(t);if(s?.once){let i=`${o}${n}${e}`;if(ee.has(i))return;ee.add(i)}let r;if(s?.detail){r={};for(let[i,a]of Object.entries(s.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(r,i,{enumerable:!0,get(){return c.deref()}})}else r[i]=a;se?.log.interceptors?.forEach(i=>i(o,n,e,r)),console[o](`[${n}]: ${e}`,r)}else se?.log.interceptors?.forEach(i=>i(o,n,e)),console[o](`[${n}]: ${e}`)},ne=o=>{let t=`[${oe(o)}] `;return e=>{let s=e instanceof Error&&e.message?e:new Error(String(e));s.message=`${t}${s.message}`,setTimeout(()=>{throw e})}};var p=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},W=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var q=Symbol.for("controller"),Ie=o=>typeof o=="object"&&o!==null&&(q in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Us=o=>typeof o?.then=="function";var F,D=o=>{F!==o&&(F=o,queueMicrotask(()=>F===o?F=void 0:0))},G=o=>F,N=[],lt=o=>{if(o===void 0){N=[];return}let t=N.indexOf(o);N=t===-1?[...N,o]:N.slice(0,t+1),queueMicrotask(()=>N=[])},re=()=>N,L,Ls=o=>{L!==o&&(L=o,queueMicrotask(()=>L===o?L=void 0:0))},Me=()=>{let o=L;return L=void 0,o},ie=async(o,t)=>{let e=ht(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(n=>t(n,s))}return e.exports},ae=async o=>{let t=ht(o);return await t.ready,t},ht=o=>{let e=G().manager.X(o);if(e!==void 0)return e;if(Ie(o))return o;let s=Me();if(s!==void 0)return s},ct=!1,Rs=o=>{ct=!0;try{return o()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}};var ce=(o,t)=>{let e=t>ke?je:t/He,s=0,n=setInterval(()=>{s+=e,s>=t&&(clearInterval(n),o())},e);return n},ke=4e3,je=2e3,He=4;var ze=(o,t,e)=>{let s=Object.keys(o),n=s.length;R===void 0&&queueMicrotask(I),R??=new Map;let r=R.get(o);return r===void 0&&(r={callbacks:[],keyCount:n},R.set(o,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let a=l=>p(t,null,l),c=i[n];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},R,I=()=>{R?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),R=void 0},Ve=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((n,r)=>p(t,void 0,e===r?n:void 0)),e},Be=(o=[G(),...re()],t,e)=>{let s=Array.isArray(o)?o:[o],n=s.length+1,r=i=>{n-=1,i!==void 0&&(n=Math.min(n,0)),n===0&&t(i)};s.forEach(i=>ze(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of s)if("manager"in i&&i.manager.component===i){Ve(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},We=(o="",t={},e=G())=>{let s={emit:n=>{o===""&&I();let r=new CustomEvent(o,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return o===""&&Be(void 0,n=>o=n.key,s),s},Fe=We.bind(null,""),de;de=q;var St=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#n=[],this.#r=[],this.#c=[],this.#l=[],this.#d=[],this.#i=[],this.#p=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[de]=!0,this.#h=[];let e=this,s=t??G(new.target.name);e.#o=s,e.ready=e.P.promise,e.#a=he(e),e.component=s,e.#o.addController(e),e.#o.manager===void 0||(lt(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#n;#r;#c;#l;#d;#i;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(ne(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?he(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return D(this.#o),ie}get useRef(){return D(this.#o),ae}get useRefSync(){return D(this.#o),ht}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#n.push(t)}onUpdate(t){this.#r.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#d.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#i.forEach(p),t.#i=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#a)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#n.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#r.forEach(le,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(le,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this.#i.push(n):typeof n=="object"&&typeof n.remove=="function"&&this.#i.push(n.remove)})}};function le(o){p(o,void 0,this)}var he=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,n,r){if(!((n==="exports"||n==="_exports")&&n in s&&s[n]===e)&&(n in s||n in Promise.prototype||typeof n=="symbol"))return typeof s=="function"?s[n]:Reflect.get(s,n,r)}},e=new Proxy(o,t);return e};var pe=St;var{I:qe}=te,ue=o=>o;var dt=o=>o.strings===void 0,fe=()=>document.createComment(""),qs=(o,t,e)=>{let s=o._$AA.parentNode,n=t===void 0?o._$AB:t._$AA;if(e===void 0){let r=s.insertBefore(fe(),n),i=s.insertBefore(fe(),n);e=new qe(r,i,o,o.options)}else{let r=e._$AB.nextSibling,i=e._$AM,a=i!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==i._$AU&&e._$AP(c)}if(r!==n||a){let c=e._$AA;for(;c!==r;){let l=ue(c).nextSibling;ue(s).insertBefore(c,n),c=l}}}return e},Gs=(o,t,e=o)=>(o._$AI(t,e),o),Ge={},me=(o,t=Ge)=>o._$AH=t,Ks=o=>o._$AH,Qs=o=>{o._$AR(),o._$AA.remove()};var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=o=>(...t)=>({_$litDirective$:o,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var K=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),K(s,t);return!0},pt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while(e?.size===0)},ye=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Je(t)}};function Ke(o){this._$AN!==void 0?(pt(this),this._$AM=o,ye(this)):this._$AM=o}function Qe(o,t=!1,e=0){let s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(s))for(let r=e;r<s.length;r++)K(s[r],!1),pt(s[r]);else s!=null&&(K(s,!1),pt(s));else K(this,o)}var Je=o=>{o.type==y.CHILD&&(o._$AP??=Qe,o._$AQ??=Ke)},ut=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(K(this,t),pt(this))}setValue(t){if(dt(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var ro=()=>new Nt,Nt=class{},Pt=new WeakMap,Dt=$(class extends ut{render(o){return d}update(o,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=o.options?.host,this.rt(this.ct=o.element)),d}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=Pt.get(t);e===void 0&&(e=new WeakMap,Pt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?Pt.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ft=o=>o.replace(Ze,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Ze=/[A-Z]+(?![a-z])|[A-Z]/gu;var Eo="randomUUID"in crypto;var Ut=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Lt={};function Rt(){}function It(o){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;o.prototype["f"+e]=async function(...s){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:s}))}}}var Xe=(o,t)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&o.setAssetPath(i);for(let[a,[c,l="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=l.split(";"),C=h?h?.split(",").map(ts):void 0,vt=C?.map(([x])=>x),J=class extends xt{static{this.formAssociated=u===1}static{this.observedAttributes=C?.map(([,x])=>x).filter(x=>x!=="")}static{this.C=vt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=o}constructor(){!J.B&&(J.B=c(),J.F()),super()}};customElements.define(a,J)}},mt=Object.defineProperty,ts=o=>{let t=o.split(":");return t.length===1?[t[0],ft(t[0])]:t},es=globalThis.HTMLElement??Rt,xt=class extends es{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#n({a:e.A}):e.B.then(async s=>{await e.K.p,t.#n(await(s.default?.then(n=>typeof n=="function"?{a:n}:n)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])mt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])mt(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])mt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}static{It(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Ut(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#n(t){let e=this.constructor,s=e.L,n=this.#e,r=Object.values(t).find(h=>h.L===s),i=`${s}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=r,customElements.define(i,r)),r.N=this;let l=document.createElement(i);r.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(n).forEach(ss,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([o,t]){this[o]=t}var os=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){e.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},t.hasAttribute=function(n){return e.hasAttribute.call(this.el,n)},mt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var yt=class extends pe{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=gt in t&&typeof t.destroy=="function",E.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${gt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),lt(void 0),D(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>{this.#e.destroy()};this.#t=ce(t,ns)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(n=>n(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},ns=1e3,gt="autoDestroyDisabled";var ve=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var Ee="important",rs=" !"+Ee,$e=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(rs);s.includes("-")||r?e.setProperty(s,r?n.slice(0,-11):n,r?Ee:""):e[s]=n}}return f}});var is=$(class extends g{constructor(o){if(super(o),o.type!==y.PROPERTY&&o.type!==y.ATTRIBUTE&&o.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!dt(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===y.PROPERTY){if(t===e[s])return f}else if(o.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===y.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return me(o),t}});var be=class o extends E{constructor(){super(),this.M=[],this.manager=new yt(this);let t=this,e=t.constructor,s=e.N,n=e.K.o,r=o.prototype.shouldUpdate;t.#n=s?.H??new b,t.I=s?.I??new b,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Rt,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),n&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,n()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Lt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,n=Array.isArray(e)?e[1]:void 0,r=n?.hasChanged??j,i={attribute:s&1&&typeof t=="string"?ft(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),useDefault:!!(s&128),c:!1,...n,hasChanged(a,c){let l=r(a,c);return i.c=l,l}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,s){let n=this.K,r=super.getPropertyDescriptor(t,e,s);return s.d=r,{...r,get(){return n.t?.(this.#t.get(t)),r.get?.call(this)},set(i){let a=this.manager;if(s.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);r.set.call(this,i??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,i))}}}static{this.lumina=!0}static{It(this)}#t;#e;#s;#n;#r;#c;get elementInternals(){return this.#c??=this.el.attachInternals(),this.#c}connectedCallback(){this.hasAttribute("defer-hydration")||this.#l(!0)}#l(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#r=e;let s=!this.manager.connectedCalled;t&&super.connectedCallback(),s?queueMicrotask(()=>this.#i().catch(n=>{this.#n.reject(n),setTimeout(()=>{throw n})})):e&&this.requestUpdate()}#d(t){try{this.#r.clear(),this.constructor.K.r(this.#r,()=>super.update(t))}catch(e){throw this.#r.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#r?.destroy(),this.#r=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,r=t??(s===Lt?this.el:this.el.attachShadow(s));if(t)return this.manager.connectedCalled||this.#l(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#i(){let t=this.el.G??Ut(this.el);t&&await t;let e=[];for(let n of this.M)"triggerLoad"in n?e.push(n.triggerLoad()):e.push(W(n.hostLoad,n));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(n=>n.has(gt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await 0;let s=this.J.filter(n=>!n.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async n=>await n.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let n of this.M)"triggerLoaded"in n?n.triggerLoaded():p(n.hostLoaded,n);this.loaded?.(),this.#n.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#r?this.#d(t):super.update(t)}listen(t,e,s){let n=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,e,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)))}async componentOnReady(){return await this.#n.promise,this}addController(t){this.M.push(t),!(q in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var _e=o=>{let t,e=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...o,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(n,r){r.K=s,r.L=n,customElements.get(n)||customElements.define(n,r)}};return e(o.defaultAssetPath),s};var Nn=o=>typeof o=="object"&&o!=null?ve(o):o,Dn=o=>typeof o=="object"&&o!=null?$e(o):o;var Mt=class extends g{#t;#e;constructor(t){super(t);let e=this;this.#e=function(n){return e.#t.call(this,n)}}render(t){return typeof t=="function"?(this.#t=t,Dt(this.#e)):Dt(t)}},xn=$(Mt);var Un=d;var Ln=o=>{let t=document.createElement("div");return at(o,t),t.firstElementChild};var Q=_e({defaultAssetPath:"https://js.arcgis.com/5.2.4/charts-components/",hydratedAttribute:"hydrated"}),{customElement:jn,getAssetPath:Hn,setAssetPath:zn}=Q;Q.t=void 0;Q.o=void 0;Q.c=void 0;Q.r=void 0;export{Us as a,D as b,lt as c,re as d,Ls as e,Rs as f,Ce as g,j as h,ms as i,f as j,d as k,Ns as l,Be as m,Fe as n,St as o,pe as p,Xe as q,y as r,$ as s,g as t,qs as u,Gs as v,me as w,Ks as x,Qs as y,ro as z,Dt as A,be as B,Nn as C,Dn as D,Un as E,Ln as F,Q as G,jn as H,Hn as I};
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Kt=/"/g,Yt=/^(?:script|style|textarea|title)$/i,Ot=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),ms=Ot(1),ys=Ot(2),gs=Ot(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Qt=new WeakMap,O=T.createTreeWalker(T,129);function Zt(o,t){if(!wt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wt!==void 0?Wt.createHTML(t):t}var Xt=(o,t)=>{let e=o.length-1,s=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,m=0;for(;m<c.length&&(i.lastIndex=m,u=i.exec(c),u!==null);)m=i.lastIndex,i===H?u[1]==="!--"?i=Ft:u[1]!==void 0?i=qt:u[2]!==void 0?(Yt.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=w):u[3]!==void 0&&(i=w):i===w?u[0]===">"?(i=n??H,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,l=u[1],i=u[3]===void 0?w:u[3]==='"'?Kt:Gt):i===Kt||i===Gt?i=w:i===Ft||i===qt?i=H:(i=w,n=void 0);let v=i===w&&o[a+1].startsWith("/>")?" ":"";r+=i===H?c+Ue:h>=0?(s.push(l),c.slice(0,h)+_t+c.slice(h)+_+v):c+_+(h===-2?a:v)}return[Zt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},B=class o{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,i=0,a=t.length-1,c=this.parts,[l,u]=Xt(t,e);if(this.el=o.createElement(l,s),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=O.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(_t)){let m=u[i++],v=n.getAttribute(h).split(_),C=/([.?@])?(.*)/.exec(m);c.push({type:1,index:r,name:C[2],strings:v,ctor:C[1]==="."?ot:C[1]==="?"?nt:C[1]==="@"?rt:P}),n.removeAttribute(h)}else h.startsWith(_)&&(c.push({type:6,index:r}),n.removeAttribute(h));if(Yt.test(n.tagName)){let h=n.textContent.split(_),m=h.length-1;if(m>0){n.textContent=et?et.emptyScript:"";for(let v=0;v<m;v++)n.append(h[v],z()),O.nextNode(),c.push({type:2,index:++r});n.append(h[m],z())}}}else if(n.nodeType===8)if(n.data===Ct)c.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(_,h+1))!==-1;)c.push({type:7,index:r}),h+=_.length-1}r++}}static createElement(t,e){let s=T.createElement("template");return s.innerHTML=t,s}};function S(o,t,e=o,s){if(t===f)return t;let n=s!==void 0?e._$Co?.[s]:e._$Cl,r=V(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=n:e._$Cl=n),n!==void 0&&(t=S(o,n._$AS(o,t.values),n,s)),t}var st=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,n=(t?.creationScope??T).importNode(e,!0);O.currentNode=n;let r=O.nextNode(),i=0,a=0,c=s[0];for(;c!==void 0;){if(i===c.index){let l;c.type===2?l=new U(r,r.nextSibling,this,t):c.type===1?l=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(l=new it(r,this,t)),this._$AV.push(l),c=s[++a]}i!==c?.index&&(r=O.nextNode(),i++)}return O.currentNode=T,n}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},U=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),V(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Jt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=B.createElement(Zt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(e);else{let r=new st(n,this),i=r.u(this.options);r.p(e),this.T(i),this._$AH=r}}_$AC(t){let e=Qt.get(t.strings);return e===void 0&&Qt.set(t.strings,e=new B(t)),e}k(t){wt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let r of t)n===e.length?e.push(s=new o(this.O(z()),this.O(z()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=Bt(t).nextSibling;Bt(t).remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,n){let r=this.strings,i=!1;if(r===void 0)t=S(this,t,e,0),i=!V(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,c,l;for(t=r[0],c=0;c<r.length-1;c++)l=S(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),i||=!V(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+r[c+1]),this._$AH[c]=l}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},nt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},rt=class extends P{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let s=this._$AH,n=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},it=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},te={M:_t,P:_,A:Ct,C:1,L:Xt,R:st,D:Jt,V:S,I:U,H:P,N:nt,U:rt,B:ot,F:it},Le=At.litHtmlPolyfillSupport;Le?.(B,U),(At.litHtmlVersions??=[]).push("3.3.2");var at=(o,t,e)=>{let s=e?.renderBefore??t,n=s._$litPart$;if(n===void 0){let r=e?.renderBefore??null;s._$litPart$=n=new U(t.insertBefore(z(),r),r,void 0,e??{})}return n._$AI(o),n};var Tt=globalThis,E=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};E._$litElement$=!0,E.finalized=!0,Tt.litElementHydrateSupport?.({LitElement:E});var Re=Tt.litElementPolyfillSupport;Re?.({LitElement:E});(Tt.litElementVersions??=[]).push("4.2.2");var ee=new Set,se;var oe=o=>typeof o=="string"?o:"el"in o?o.el.localName:"localName"in o?o.localName:o.declaredClass,Ns=(o,t,e,s)=>{let n=oe(t);if(s?.once){let i=`${o}${n}${e}`;if(ee.has(i))return;ee.add(i)}let r;if(s?.detail){r={};for(let[i,a]of Object.entries(s.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(r,i,{enumerable:!0,get(){return c.deref()}})}else r[i]=a;se?.log.interceptors?.forEach(i=>i(o,n,e,r)),console[o](`[${n}]: ${e}`,r)}else se?.log.interceptors?.forEach(i=>i(o,n,e)),console[o](`[${n}]: ${e}`)},ne=o=>{let t=`[${oe(o)}] `;return e=>{let s=e instanceof Error&&e.message?e:new Error(String(e));s.message=`${t}${s.message}`,setTimeout(()=>{throw e})}};var p=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},W=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var q=Symbol.for("controller"),Ie=o=>typeof o=="object"&&o!==null&&(q in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Us=o=>typeof o?.then=="function";var F,D=o=>{F!==o&&(F=o,queueMicrotask(()=>F===o?F=void 0:0))},G=o=>F,N=[],lt=o=>{if(o===void 0){N=[];return}let t=N.indexOf(o);N=t===-1?[...N,o]:N.slice(0,t+1),queueMicrotask(()=>N=[])},re=()=>N,L,Ls=o=>{L!==o&&(L=o,queueMicrotask(()=>L===o?L=void 0:0))},Me=()=>{let o=L;return L=void 0,o},ie=async(o,t)=>{let e=ht(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(n=>t(n,s))}return e.exports},ae=async o=>{let t=ht(o);return await t.ready,t},ht=o=>{let e=G().manager.X(o);if(e!==void 0)return e;if(Ie(o))return o;let s=Me();if(s!==void 0)return s},ct=!1,Rs=o=>{ct=!0;try{return o()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}};var ce=(o,t)=>{let e=t>ke?je:t/He,s=0,n=setInterval(()=>{s+=e,s>=t&&(clearInterval(n),o())},e);return n},ke=4e3,je=2e3,He=4;var ze=(o,t,e)=>{let s=Object.keys(o),n=s.length;R===void 0&&queueMicrotask(I),R??=new Map;let r=R.get(o);return r===void 0&&(r={callbacks:[],keyCount:n},R.set(o,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let a=l=>p(t,null,l),c=i[n];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},R,I=()=>{R?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),R=void 0},Ve=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((n,r)=>p(t,void 0,e===r?n:void 0)),e},Be=(o=[G(),...re()],t,e)=>{let s=Array.isArray(o)?o:[o],n=s.length+1,r=i=>{n-=1,i!==void 0&&(n=Math.min(n,0)),n===0&&t(i)};s.forEach(i=>ze(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of s)if("manager"in i&&i.manager.component===i){Ve(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},We=(o="",t={},e=G())=>{let s={emit:n=>{o===""&&I();let r=new CustomEvent(o,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return o===""&&Be(void 0,n=>o=n.key,s),s},Fe=We.bind(null,""),de;de=q;var St=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#n=[],this.#r=[],this.#c=[],this.#l=[],this.#d=[],this.#i=[],this.#p=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[de]=!0,this.#h=[];let e=this,s=t??G(new.target.name);e.#o=s,e.ready=e.P.promise,e.#a=he(e),e.component=s,e.#o.addController(e),e.#o.manager===void 0||(lt(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#n;#r;#c;#l;#d;#i;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(ne(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?he(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return D(this.#o),ie}get useRef(){return D(this.#o),ae}get useRefSync(){return D(this.#o),ht}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#n.push(t)}onUpdate(t){this.#r.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#d.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#i.forEach(p),t.#i=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#a)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#n.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#r.forEach(le,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(le,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this.#i.push(n):typeof n=="object"&&typeof n.remove=="function"&&this.#i.push(n.remove)})}};function le(o){p(o,void 0,this)}var he=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,n,r){if(!((n==="exports"||n==="_exports")&&n in s&&s[n]===e)&&(n in s||n in Promise.prototype||typeof n=="symbol"))return typeof s=="function"?s[n]:Reflect.get(s,n,r)}},e=new Proxy(o,t);return e};var pe=St;var{I:qe}=te,ue=o=>o;var dt=o=>o.strings===void 0,fe=()=>document.createComment(""),qs=(o,t,e)=>{let s=o._$AA.parentNode,n=t===void 0?o._$AB:t._$AA;if(e===void 0){let r=s.insertBefore(fe(),n),i=s.insertBefore(fe(),n);e=new qe(r,i,o,o.options)}else{let r=e._$AB.nextSibling,i=e._$AM,a=i!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==i._$AU&&e._$AP(c)}if(r!==n||a){let c=e._$AA;for(;c!==r;){let l=ue(c).nextSibling;ue(s).insertBefore(c,n),c=l}}}return e},Gs=(o,t,e=o)=>(o._$AI(t,e),o),Ge={},me=(o,t=Ge)=>o._$AH=t,Ks=o=>o._$AH,Qs=o=>{o._$AR(),o._$AA.remove()};var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=o=>(...t)=>({_$litDirective$:o,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var K=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),K(s,t);return!0},pt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while(e?.size===0)},ye=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Je(t)}};function Ke(o){this._$AN!==void 0?(pt(this),this._$AM=o,ye(this)):this._$AM=o}function Qe(o,t=!1,e=0){let s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(s))for(let r=e;r<s.length;r++)K(s[r],!1),pt(s[r]);else s!=null&&(K(s,!1),pt(s));else K(this,o)}var Je=o=>{o.type==y.CHILD&&(o._$AP??=Qe,o._$AQ??=Ke)},ut=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(K(this,t),pt(this))}setValue(t){if(dt(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var ro=()=>new Nt,Nt=class{},Pt=new WeakMap,Dt=$(class extends ut{render(o){return d}update(o,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=o.options?.host,this.rt(this.ct=o.element)),d}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=Pt.get(t);e===void 0&&(e=new WeakMap,Pt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?Pt.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ft=o=>o.replace(Ze,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Ze=/[A-Z]+(?![a-z])|[A-Z]/gu;var Eo="randomUUID"in crypto;var Ut=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Lt={};function Rt(){}function It(o){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;o.prototype["f"+e]=async function(...s){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:s}))}}}var Xe=(o,t)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&o.setAssetPath(i);for(let[a,[c,l="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=l.split(";"),C=h?h?.split(",").map(ts):void 0,vt=C?.map(([x])=>x),J=class extends xt{static{this.formAssociated=u===1}static{this.observedAttributes=C?.map(([,x])=>x).filter(x=>x!=="")}static{this.C=vt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=o}constructor(){!J.B&&(J.B=c(),J.F()),super()}};customElements.define(a,J)}},mt=Object.defineProperty,ts=o=>{let t=o.split(":");return t.length===1?[t[0],ft(t[0])]:t},es=globalThis.HTMLElement??Rt,xt=class extends es{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#n({a:e.A}):e.B.then(async s=>{await e.K.p,t.#n(await(s.default?.then(n=>typeof n=="function"?{a:n}:n)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])mt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])mt(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])mt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}static{It(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Ut(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#n(t){let e=this.constructor,s=e.L,n=this.#e,r=Object.values(t).find(h=>h.L===s),i=`${s}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=r,customElements.define(i,r)),r.N=this;let l=document.createElement(i);r.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(n).forEach(ss,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([o,t]){this[o]=t}var os=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){e.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},t.hasAttribute=function(n){return e.hasAttribute.call(this.el,n)},mt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var yt=class extends pe{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=gt in t&&typeof t.destroy=="function",E.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${gt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),lt(void 0),D(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>{this.#e.destroy()};this.#t=ce(t,ns)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(n=>n(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},ns=1e3,gt="autoDestroyDisabled";var ve=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var Ee="important",rs=" !"+Ee,$e=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(rs);s.includes("-")||r?e.setProperty(s,r?n.slice(0,-11):n,r?Ee:""):e[s]=n}}return f}});var is=$(class extends g{constructor(o){if(super(o),o.type!==y.PROPERTY&&o.type!==y.ATTRIBUTE&&o.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!dt(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===y.PROPERTY){if(t===e[s])return f}else if(o.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===y.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return me(o),t}});var be=class o extends E{constructor(){super(),this.M=[],this.manager=new yt(this);let t=this,e=t.constructor,s=e.N,n=e.K.o,r=o.prototype.shouldUpdate;t.#n=s?.H??new b,t.I=s?.I??new b,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Rt,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),n&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,n()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Lt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,n=Array.isArray(e)?e[1]:void 0,r=n?.hasChanged??j,i={attribute:s&1&&typeof t=="string"?ft(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),useDefault:!!(s&128),c:!1,...n,hasChanged(a,c){let l=r(a,c);return i.c=l,l}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,s){let n=this.K,r=super.getPropertyDescriptor(t,e,s);return s.d=r,{...r,get(){return n.t?.(this.#t.get(t)),r.get?.call(this)},set(i){let a=this.manager;if(s.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);r.set.call(this,i??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,i))}}}static{this.lumina=!0}static{It(this)}#t;#e;#s;#n;#r;#c;get elementInternals(){return this.#c??=this.el.attachInternals(),this.#c}connectedCallback(){this.hasAttribute("defer-hydration")||this.#l(!0)}#l(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#r=e;let s=!this.manager.connectedCalled;t&&super.connectedCallback(),s?queueMicrotask(()=>this.#i().catch(n=>{this.#n.reject(n),setTimeout(()=>{throw n})})):e&&this.requestUpdate()}#d(t){try{this.#r.clear(),this.constructor.K.r(this.#r,()=>super.update(t))}catch(e){throw this.#r.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#r?.destroy(),this.#r=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,r=t??(s===Lt?this.el:this.el.attachShadow(s));if(t)return this.manager.connectedCalled||this.#l(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#i(){let t=this.el.G??Ut(this.el);t&&await t;let e=[];for(let n of this.M)"triggerLoad"in n?e.push(n.triggerLoad()):e.push(W(n.hostLoad,n));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(n=>n.has(gt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await 0;let s=this.J.filter(n=>!n.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async n=>await n.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let n of this.M)"triggerLoaded"in n?n.triggerLoaded():p(n.hostLoaded,n);this.loaded?.(),this.#n.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#r?this.#d(t):super.update(t)}listen(t,e,s){let n=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,e,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)))}async componentOnReady(){return await this.#n.promise,this}addController(t){this.M.push(t),!(q in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var _e=o=>{let t,e=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...o,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(n,r){r.K=s,r.L=n,customElements.get(n)||customElements.define(n,r)}};return e(o.defaultAssetPath),s};var Nn=o=>typeof o=="object"&&o!=null?ve(o):o,Dn=o=>typeof o=="object"&&o!=null?$e(o):o;var Mt=class extends g{#t;#e;constructor(t){super(t);let e=this;this.#e=function(n){return e.#t.call(this,n)}}render(t){return typeof t=="function"?(this.#t=t,Dt(this.#e)):Dt(t)}},xn=$(Mt);var Un=d;var Ln=o=>{let t=document.createElement("div");return at(o,t),t.firstElementChild};var Q=_e({defaultAssetPath:"https://js.arcgis.com/5.2.5/charts-components/",hydratedAttribute:"hydrated"}),{customElement:jn,getAssetPath:Hn,setAssetPath:zn}=Q;Q.t=void 0;Q.o=void 0;Q.c=void 0;Q.r=void 0;export{Us as a,D as b,lt as c,re as d,Ls as e,Rs as f,Ce as g,j as h,ms as i,f as j,d as k,Ns as l,Be as m,Fe as n,St as o,pe as p,Xe as q,y as r,$ as s,g as t,qs as u,Gs as v,me as w,Ks as x,Qs as y,ro as z,Dt as A,be as B,Nn as C,Dn as D,Un as E,Ln as F,Q as G,jn as H,Hn as I};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as P}from"./ZMGATT2R.js";import{a as b}from"./6VB7M75J.js";import{a as p}from"./RP6LD7CU.js";import f from"./XLQLIYN6.js";import"./POA2XTTK.js";import{a as L}from"./62IYW4WP.js";import e from"./U2MCA4H2.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./FPMYKZUS.js";import{B as $,C as a,D as c,F as d,H as x,g as u,i as l}from"./SQ7EPQSM.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{g as h}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{q:g},{r:I}])=>{var n={topSection:"top-section",sectionLabel:"section-label",list:"list",infoIcon:"info-icon"},k=u`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.info-icon{margin:auto 1rem;pointer-events:auto}`,C=class extends ${constructor(){super(...arguments),this._messages=L(),this.resetSeriesOriginal=()=>{this.configSeriesOpen=!1,this.selectedSeriesId=void 0,this.model.resetSeriesStyling(),this.seriesOrderResetCounter+=1},this.onMultipleSeriesSelect=e=>{if(!this.shouldDisableMeanLinesOption()){let i=e.target,s=i.value??i.parentElement.value??"";this.model.showMeanLines=s===h.MeanLines}},this.seriesNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let i=e.detail?.name,s=this.selectedSeriesIndex;s!==void 0&&s>=0&&this.model.setSeriesName(i,s)}},this.seriesColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:i}=e.detail;if(i!==void 0)if(this.meanLinesBoxColorIsSelected)this.model.meanLinesBoxColor=i;else{let s=this.selectedSeriesIndex;s!==void 0&&s>=0&&(this.model.colorMatch=!1,this.model.setSeriesColor(i,s))}}},this.seriesLineStyleChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{style:i}=e.detail,s=this.selectedSeriesIndex;i!==void 0&&s!==void 0&&s>=0&&this.model.setSeriesLineStyle(i,s)}},this.seriesLineWidthChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{width:i}=e.detail,s=this.selectedSeriesIndex;i!==void 0&&s!==void 0&&s>=0&&this.model.setSeriesLineWidth(i,s)}},this.onCalciteListOrderChange=e=>{let i=this.model.boxPlotSeriesIndexWhenMeanLinesShown;if(e.detail!==null&&e.detail!==void 0){let{newIndex:s,oldIndex:t}=e.detail,o=t,r=s;i!==-1&&(o=t>=i?t+1:t,r=s>=i?s+1:s),this.model.moveSeries(o,r),this.seriesOrderResetCounter+=1}},this.seriesPopoverClose=()=>{this.selectedSeriesId=void 0,this.meanLinesBoxColorIsSelected=!1,this.configSeriesOpen=!1,this.seriesPopover=p(this.seriesPopover)},this.openSeriesPopOver=e=>{e.stopImmediatePropagation(),this.removeSeriesPopover();let i=e.target,s=i.localName==="calcite-list-item"?i:i.parentNode,t=!this.configSeriesOpen,o=this.model.getSeriesIndex(s.value);if(o!==void 0&&o!==-1)this.configSeriesOpen=this.selectedSeriesIndex===o?t:!0,this.configSeriesOpen?this.selectedSeriesId=s.value:this.selectedSeriesId=void 0,this.meanLinesBoxColorIsSelected=!1;else if(s.value==="box-plot-color"){let r=!this.meanLinesBoxColorIsSelected;this.configSeriesOpen=r,this.meanLinesBoxColorIsSelected=r,this.selectedSeriesId=void 0}},this.createTooltip=(e,i)=>{let s=e.target;this.tooltip=d(l`<calcite-tooltip style=${c({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${s} open placement=top>${i??""}</calcite-tooltip>`),document.body.appendChild(this.tooltip)},this.destroyTooltip=()=>{I(this.tooltip)},this.onModelConfigChange=()=>{this.selectedSeriesId!==void 0&&this.selectedSeriesIndex===-1?this.seriesPopoverClose():this.seriesPopover&&(this.seriesPopover.selectedSeriesIndex=this.selectedSeriesIndex),this.requestUpdate()},this.meanLinesBoxColorIsSelected=!1,this.seriesOrderResetCounter=0,this.configSeriesOpen=!1,this.activeColorMatch=!1,this.popoverPlacement="leading"}static{this.properties={selectedSeriesId:16,meanLinesBoxColorIsSelected:16,seriesOrderResetCounter:16,messageOverrides:0,model:0,configSeriesOpen:5,activeColorMatch:5,popoverPlacement:1}}static{this.styles=k}get selectedSeriesIndex(){return this.selectedSeriesId===void 0?void 0:this.model.getSeriesIndex(this.selectedSeriesId)}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),(e.has("selectedSeriesId")||e.has("meanLinesBoxColorIsSelected"))&&this.selectedSeriesChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSeriesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSeriesChange(){(this.selectedSeriesIndex!==void 0||this.meanLinesBoxColorIsSelected)&&this.configSeriesOpen?this.setupSeriesPopover():this.removeSeriesPopover()}removeSeriesPopover(){this.seriesPopover!==null&&this.seriesPopover!==void 0&&(this.seriesPopover.open=!1,this.seriesPopover=p(this.seriesPopover))}buildSeriesListItems(){let e=this.model.seriesLength,i=this.model.boxPlotSeriesIndexWhenMeanLinesShown,s=Array.from({length:e},(t,o)=>o);return P(s,t=>this.model.getSeriesId(t),t=>{let o=this.model.getSeriesId(t),r=this.model.getSeriesColor(t),m=this.model.getSeriesName(t),S=this.model.chartSubType,y=S===g.BoxPlotC1MonoField||S===g.BoxPlotC2MultiFields?this._messages.series:o,v="#CCCCCC",f="minus-square";if((e>1||!this.activeColorMatch)&&r!==void 0){f=this.model.showMeanLines===!0?"line-solid":"square-f";let[M,O,B,w]=[...r];v=`rgba(${M},${O},${B},${w/255})`}return i!==t?l`<calcite-list-item .label=${m??o??""} .description=${y} .value=${o} .selected=${this.selectedSeriesId===o} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${f} style=${c({color:v})}></calcite-icon></calcite-list-item>`:null})}buildSeriesList(){return b(this.seriesOrderResetCounter,l`<calcite-list label class=${a(n.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`)}setupSeriesPopover(){this.removeSeriesPopover(),this.meanLinesBoxColorIsSelected?this.seriesPopover=d(l`<arcgis-charts-config-box-plot-series-popover .referenceElement=${this.el} .selectedColor=${this.model.meanLinesBoxColor} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`):this.selectedSeriesIndex!==void 0&&(this.seriesPopover=d(l`<arcgis-charts-config-box-plot-series-popover .referenceElement=${this.el} .selectedName=${this.model.getSeriesName(this.selectedSeriesIndex)} .selectedColor=${this.model.getSeriesColor(this.selectedSeriesIndex)} .selectedLineStyle=${this.model.getSeriesLineStyle(this.selectedSeriesIndex)} .selectedLineWidth=${this.model.getSeriesLineWidth(this.selectedSeriesIndex)} .isLineSymbol=${this.model.showMeanLines} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`)),this.seriesPopover&&!document.body.contains(this.seriesPopover)&&document.body.appendChild(this.seriesPopover)}shouldDisableMeanLinesOption(){return this.model.splitByField===""||this.model.splitByField===void 0}renderMeanLinesBoxColorItem(){let e="#CCCCCC",i="minus-square",s=this.model.meanLinesBoxColor;if(s!==void 0){i="square-f";let[t,o,r,m]=[...s];e=`rgba(${t},${o},${r},${m/255})`}return l`<calcite-list label class=${a(n.list)}><calcite-list-item value=box-plot-color .label=${this._messages.boxPlotColor} .selected=${this.meanLinesBoxColorIsSelected} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${i} style=${c({color:e})}></calcite-icon></calcite-list-item></calcite-list>`}renderMultipleSeriesOption(){let e=this.shouldDisableMeanLinesOption();return e?[]:[l`<div class=${`${n.sectionLabel} ${n.topSection}`}>${this._messages.displayMultipleSeries}</div>`,l`<calcite-list label class=${a(n.list)} selection-mode=single-persist selection-appearance=border @click=${this.onMultipleSeriesSelect}><calcite-list-item .label=${this._messages.sideBySide} .value=${h.Side} .selected=${this.model.showMeanLines!==!0}><calcite-icon slot=content-start scale=l icon=graph-box-side-by-side></calcite-icon><calcite-icon class=${a(n.infoIcon)} slot=actions-end icon=information scale=s flip-rtl @mouseover=${i=>this.createTooltip(i,this._messages.sideBySideTooltip??"")} @mouseout=${this.destroyTooltip}></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.meanLines} .value=${h.MeanLines} .disabled=${e} .selected=${this.model.showMeanLines===!0}><calcite-icon slot=content-start scale=l icon=graph-box-mean-lines></calcite-icon><calcite-icon class=${a(n.infoIcon)} slot=actions-end icon=information scale=s flip-rtl @mouseover=${i=>this.createTooltip(i,this._messages.meanLinesTooltip??"")} @mouseout=${this.destroyTooltip}></calcite-icon></calcite-list-item></calcite-list>`,this.model.showMeanLines===!0?this.renderMeanLinesBoxColorItem():null]}render(){return l`${this.renderMultipleSeriesOption()}<div class=${a(n.sectionLabel)}>${this._messages.series}<calcite-button @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSeriesList()}`}};x("arcgis-charts-config-box-plot-series",C);return C},e,f)
2
+ import{a as P}from"./GS3E5GJJ.js";import{a as b}from"./TNYROJYG.js";import{a as p}from"./RP6LD7CU.js";import f from"./EHL5S6MD.js";import"./POA2XTTK.js";import{a as L}from"./DUOJT67J.js";import e from"./FDSPMHM2.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./TLUMTYZB.js";import{B as $,C as a,D as c,F as d,H as x,g as u,i as l}from"./XIITX6LZ.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{g as h}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{q:g},{r:I}])=>{var n={topSection:"top-section",sectionLabel:"section-label",list:"list",infoIcon:"info-icon"},k=u`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.info-icon{margin:auto 1rem;pointer-events:auto}`,C=class extends ${constructor(){super(...arguments),this._messages=L(),this.resetSeriesOriginal=()=>{this.configSeriesOpen=!1,this.selectedSeriesId=void 0,this.model.resetSeriesStyling(),this.seriesOrderResetCounter+=1},this.onMultipleSeriesSelect=e=>{if(!this.shouldDisableMeanLinesOption()){let i=e.target,s=i.value??i.parentElement.value??"";this.model.showMeanLines=s===h.MeanLines}},this.seriesNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let i=e.detail?.name,s=this.selectedSeriesIndex;s!==void 0&&s>=0&&this.model.setSeriesName(i,s)}},this.seriesColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:i}=e.detail;if(i!==void 0)if(this.meanLinesBoxColorIsSelected)this.model.meanLinesBoxColor=i;else{let s=this.selectedSeriesIndex;s!==void 0&&s>=0&&(this.model.colorMatch=!1,this.model.setSeriesColor(i,s))}}},this.seriesLineStyleChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{style:i}=e.detail,s=this.selectedSeriesIndex;i!==void 0&&s!==void 0&&s>=0&&this.model.setSeriesLineStyle(i,s)}},this.seriesLineWidthChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{width:i}=e.detail,s=this.selectedSeriesIndex;i!==void 0&&s!==void 0&&s>=0&&this.model.setSeriesLineWidth(i,s)}},this.onCalciteListOrderChange=e=>{let i=this.model.boxPlotSeriesIndexWhenMeanLinesShown;if(e.detail!==null&&e.detail!==void 0){let{newIndex:s,oldIndex:t}=e.detail,o=t,r=s;i!==-1&&(o=t>=i?t+1:t,r=s>=i?s+1:s),this.model.moveSeries(o,r),this.seriesOrderResetCounter+=1}},this.seriesPopoverClose=()=>{this.selectedSeriesId=void 0,this.meanLinesBoxColorIsSelected=!1,this.configSeriesOpen=!1,this.seriesPopover=p(this.seriesPopover)},this.openSeriesPopOver=e=>{e.stopImmediatePropagation(),this.removeSeriesPopover();let i=e.target,s=i.localName==="calcite-list-item"?i:i.parentNode,t=!this.configSeriesOpen,o=this.model.getSeriesIndex(s.value);if(o!==void 0&&o!==-1)this.configSeriesOpen=this.selectedSeriesIndex===o?t:!0,this.configSeriesOpen?this.selectedSeriesId=s.value:this.selectedSeriesId=void 0,this.meanLinesBoxColorIsSelected=!1;else if(s.value==="box-plot-color"){let r=!this.meanLinesBoxColorIsSelected;this.configSeriesOpen=r,this.meanLinesBoxColorIsSelected=r,this.selectedSeriesId=void 0}},this.createTooltip=(e,i)=>{let s=e.target;this.tooltip=d(l`<calcite-tooltip style=${c({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${s} open placement=top>${i??""}</calcite-tooltip>`),document.body.appendChild(this.tooltip)},this.destroyTooltip=()=>{I(this.tooltip)},this.onModelConfigChange=()=>{this.selectedSeriesId!==void 0&&this.selectedSeriesIndex===-1?this.seriesPopoverClose():this.seriesPopover&&(this.seriesPopover.selectedSeriesIndex=this.selectedSeriesIndex),this.requestUpdate()},this.meanLinesBoxColorIsSelected=!1,this.seriesOrderResetCounter=0,this.configSeriesOpen=!1,this.activeColorMatch=!1,this.popoverPlacement="leading"}static{this.properties={selectedSeriesId:16,meanLinesBoxColorIsSelected:16,seriesOrderResetCounter:16,messageOverrides:0,model:0,configSeriesOpen:5,activeColorMatch:5,popoverPlacement:1}}static{this.styles=k}get selectedSeriesIndex(){return this.selectedSeriesId===void 0?void 0:this.model.getSeriesIndex(this.selectedSeriesId)}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),(e.has("selectedSeriesId")||e.has("meanLinesBoxColorIsSelected"))&&this.selectedSeriesChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSeriesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSeriesChange(){(this.selectedSeriesIndex!==void 0||this.meanLinesBoxColorIsSelected)&&this.configSeriesOpen?this.setupSeriesPopover():this.removeSeriesPopover()}removeSeriesPopover(){this.seriesPopover!==null&&this.seriesPopover!==void 0&&(this.seriesPopover.open=!1,this.seriesPopover=p(this.seriesPopover))}buildSeriesListItems(){let e=this.model.seriesLength,i=this.model.boxPlotSeriesIndexWhenMeanLinesShown,s=Array.from({length:e},(t,o)=>o);return P(s,t=>this.model.getSeriesId(t),t=>{let o=this.model.getSeriesId(t),r=this.model.getSeriesColor(t),m=this.model.getSeriesName(t),S=this.model.chartSubType,y=S===g.BoxPlotC1MonoField||S===g.BoxPlotC2MultiFields?this._messages.series:o,v="#CCCCCC",f="minus-square";if((e>1||!this.activeColorMatch)&&r!==void 0){f=this.model.showMeanLines===!0?"line-solid":"square-f";let[M,O,B,w]=[...r];v=`rgba(${M},${O},${B},${w/255})`}return i!==t?l`<calcite-list-item .label=${m??o??""} .description=${y} .value=${o} .selected=${this.selectedSeriesId===o} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${f} style=${c({color:v})}></calcite-icon></calcite-list-item>`:null})}buildSeriesList(){return b(this.seriesOrderResetCounter,l`<calcite-list label class=${a(n.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`)}setupSeriesPopover(){this.removeSeriesPopover(),this.meanLinesBoxColorIsSelected?this.seriesPopover=d(l`<arcgis-charts-config-box-plot-series-popover .referenceElement=${this.el} .selectedColor=${this.model.meanLinesBoxColor} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`):this.selectedSeriesIndex!==void 0&&(this.seriesPopover=d(l`<arcgis-charts-config-box-plot-series-popover .referenceElement=${this.el} .selectedName=${this.model.getSeriesName(this.selectedSeriesIndex)} .selectedColor=${this.model.getSeriesColor(this.selectedSeriesIndex)} .selectedLineStyle=${this.model.getSeriesLineStyle(this.selectedSeriesIndex)} .selectedLineWidth=${this.model.getSeriesLineWidth(this.selectedSeriesIndex)} .isLineSymbol=${this.model.showMeanLines} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`)),this.seriesPopover&&!document.body.contains(this.seriesPopover)&&document.body.appendChild(this.seriesPopover)}shouldDisableMeanLinesOption(){return this.model.splitByField===""||this.model.splitByField===void 0}renderMeanLinesBoxColorItem(){let e="#CCCCCC",i="minus-square",s=this.model.meanLinesBoxColor;if(s!==void 0){i="square-f";let[t,o,r,m]=[...s];e=`rgba(${t},${o},${r},${m/255})`}return l`<calcite-list label class=${a(n.list)}><calcite-list-item value=box-plot-color .label=${this._messages.boxPlotColor} .selected=${this.meanLinesBoxColorIsSelected} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${i} style=${c({color:e})}></calcite-icon></calcite-list-item></calcite-list>`}renderMultipleSeriesOption(){let e=this.shouldDisableMeanLinesOption();return e?[]:[l`<div class=${`${n.sectionLabel} ${n.topSection}`}>${this._messages.displayMultipleSeries}</div>`,l`<calcite-list label class=${a(n.list)} selection-mode=single-persist selection-appearance=border @click=${this.onMultipleSeriesSelect}><calcite-list-item .label=${this._messages.sideBySide} .value=${h.Side} .selected=${this.model.showMeanLines!==!0}><calcite-icon slot=content-start scale=l icon=graph-box-side-by-side></calcite-icon><calcite-icon class=${a(n.infoIcon)} slot=actions-end icon=information scale=s flip-rtl @mouseover=${i=>this.createTooltip(i,this._messages.sideBySideTooltip??"")} @mouseout=${this.destroyTooltip}></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.meanLines} .value=${h.MeanLines} .disabled=${e} .selected=${this.model.showMeanLines===!0}><calcite-icon slot=content-start scale=l icon=graph-box-mean-lines></calcite-icon><calcite-icon class=${a(n.infoIcon)} slot=actions-end icon=information scale=s flip-rtl @mouseover=${i=>this.createTooltip(i,this._messages.meanLinesTooltip??"")} @mouseout=${this.destroyTooltip}></calcite-icon></calcite-list-item></calcite-list>`,this.model.showMeanLines===!0?this.renderMeanLinesBoxColorItem():null]}render(){return l`${this.renderMultipleSeriesOption()}<div class=${a(n.sectionLabel)}>${this._messages.series}<calcite-button @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSeriesList()}`}};x("arcgis-charts-config-box-plot-series",C);return C},e,f)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"./VB5IKXUD.js";import d from"./LSYILFV4.js";import b from"./VNTP2XA2.js";import a from"./U2MCA4H2.js";import{J as l,Q as i,ua as n,wa as r}from"./43DLRSYB.js";import{c}from"./QVG3TOL4.js";export default $arcgis.t(([{substitute:C},{hc:m},{c:u,f:t,r:f},{a:p},{d:x}])=>{var v=s=>{t({config:s,value:null,axisIndex:0,isMax:!1}),t({config:s,value:null,axisIndex:0,isMax:!0}),t({config:s,value:null,axisIndex:1,isMax:!1}),t({config:s,value:null,axisIndex:1,isMax:!0})};function D(s,e,a){let{layerFieldsInfo:o}=e,y=m(o,g(s));return C(a.titleLabels.distributionOfField,{valueField:y})}var g=s=>s.series[0]?.x??"",G=s=>{let{numericField:e,config:a,layerInfo:o,commonStrings:y}=s,{layerFieldsInfo:d}=o,I=D(a,o,y),F=p(a),S=f(0,a),M=m(d,g(a)),b=x(a);if(v(a),a?.series?.[0]&&(a.series[0].x=e),M===S||b){let T=m(d,e);u(a,0,T)}a.title&&(I===F||b)&&(a.title.content.text=D(a,o,y))},J=s=>s.series[0]?.dataTransformationType??c.None,K=(s,e)=>{v(e),e?.series?.[0]&&(e.series[0].dataTransformationType=s)},L=s=>s.series[0]?.binCount??32,Q=(s,e)=>{v(e),e?.series?.[0]&&(e.series[0].binCount=s)},R=s=>s.series[0]?.fillSymbol??r().fillSymbol,U=(s,e)=>{e?.series?.[0]&&(e.series[0].fillSymbol={...e.series[0].fillSymbol,...s})},h=s=>s.series[0]?.overlays?.comparisonDistribution?.symbol??r().overlays.comparisonDistribution?.symbol??l(),V=(s,e)=>{e.series[0].overlays??=n(),e.series[0].overlays.comparisonDistribution??=i(4),e.series[0].overlays.comparisonDistribution.symbol={...e.series[0].overlays.comparisonDistribution.symbol,...s}},q=s=>s.series[0]?.overlays?.mean?.symbol??r().overlays.mean?.symbol??l(),W=(s,e)=>{e.series[0].overlays??=n(),e.series[0].overlays.mean??=i(1),e.series[0].overlays.mean.symbol={...e.series[0].overlays.mean.symbol,...s}},z=s=>s.series[0]?.overlays?.median?.symbol??r().overlays.median?.symbol??l(),Y=(s,e)=>{e.series[0].overlays??=n(),e.series[0].overlays.median??=i(2),e.series[0].overlays.median.symbol={...e.series[0].overlays.median.symbol,...s}},A=s=>s.series[0]?.overlays?.standardDeviation?.symbol??r().overlays.standardDeviation?.symbol??l(),Z=(s,e)=>{e.series[0].overlays??=n(),e.series[0].overlays.standardDeviation??=i(3),e.series[0].overlays.standardDeviation.symbol={...e.series[0].overlays.standardDeviation.symbol,...s}},_=s=>(s.series[0]?.overlays?.comparisonDistribution?.created??!1)&&(s.series[0]?.overlays?.comparisonDistribution?.visible??!1),$=(s,e)=>{let a=i(0);a.created=s,a.visible=s,a.symbol=h(e),e?.series?.[0]?.overlays&&(e.series[0].overlays.comparisonDistribution=a)},H=s=>(s.series[0]?.overlays?.mean?.created??!1)&&(s.series[0]?.overlays?.mean?.visible??!1),P=(s,e)=>{let a=i(1);a.created=s,a.visible=s,a.symbol=q(e),e?.series?.[0]?.overlays&&(e.series[0].overlays.mean=a)},X=s=>(s.series[0]?.overlays?.median?.created??!1)&&(s.series[0]?.overlays?.median?.visible??!1),ss=(s,e)=>{let a=i(2);a.created=s,a.visible=s,a.symbol=z(e),e?.series?.[0]?.overlays&&(e.series[0].overlays.median=a)},es=s=>(s.series[0]?.overlays?.standardDeviation?.created??!1)&&(s.series[0]?.overlays?.standardDeviation?.visible??!1),as=(s,e)=>{let a=i(3);a.created=s,a.visible=s,a.symbol=A(e),e?.series?.[0]?.overlays&&(e.series[0].overlays.standardDeviation=a)},is=s=>s?.series?.[0]?.overlays,rs=(s,e)=>{e?.series?.[0]!==void 0&&(e.series[0].overlays=s)};return{a:D,b:g,c:G,d:J,e:K,f:L,g:Q,h:R,i:U,j:h,k:V,l:q,m:W,n:z,o:Y,p:A,q:Z,r:_,s:$,t:H,u:P,v:X,w:ss,x:es,y:as,z:is,A:rs}},"intl",a,b,d,e)
2
+ import e from"./44Z3FQLY.js";import d from"./46GFREHY.js";import b from"./EA2QTPDF.js";import a from"./FDSPMHM2.js";import{J as l,Q as i,ua as n,wa as r}from"./43DLRSYB.js";import{c}from"./QVG3TOL4.js";export default $arcgis.t(([{substitute:C},{ic:m},{c:u,f:t,r:f},{a:p},{d:x}])=>{var v=s=>{t({config:s,value:null,axisIndex:0,isMax:!1}),t({config:s,value:null,axisIndex:0,isMax:!0}),t({config:s,value:null,axisIndex:1,isMax:!1}),t({config:s,value:null,axisIndex:1,isMax:!0})};function D(s,e,a){let{layerFieldsInfo:o}=e,y=m(o,g(s));return C(a.titleLabels.distributionOfField,{valueField:y})}var g=s=>s.series[0]?.x??"",G=s=>{let{numericField:e,config:a,layerInfo:o,commonStrings:y}=s,{layerFieldsInfo:d}=o,I=D(a,o,y),F=p(a),S=f(0,a),M=m(d,g(a)),b=x(a);if(v(a),a?.series?.[0]&&(a.series[0].x=e),M===S||b){let T=m(d,e);u(a,0,T)}a.title&&(I===F||b)&&(a.title.content.text=D(a,o,y))},J=s=>s.series[0]?.dataTransformationType??c.None,K=(s,e)=>{v(e),e?.series?.[0]&&(e.series[0].dataTransformationType=s)},L=s=>s.series[0]?.binCount??32,Q=(s,e)=>{v(e),e?.series?.[0]&&(e.series[0].binCount=s)},R=s=>s.series[0]?.fillSymbol??r().fillSymbol,U=(s,e)=>{e?.series?.[0]&&(e.series[0].fillSymbol={...e.series[0].fillSymbol,...s})},h=s=>s.series[0]?.overlays?.comparisonDistribution?.symbol??r().overlays.comparisonDistribution?.symbol??l(),V=(s,e)=>{e.series[0].overlays??=n(),e.series[0].overlays.comparisonDistribution??=i(4),e.series[0].overlays.comparisonDistribution.symbol={...e.series[0].overlays.comparisonDistribution.symbol,...s}},q=s=>s.series[0]?.overlays?.mean?.symbol??r().overlays.mean?.symbol??l(),W=(s,e)=>{e.series[0].overlays??=n(),e.series[0].overlays.mean??=i(1),e.series[0].overlays.mean.symbol={...e.series[0].overlays.mean.symbol,...s}},z=s=>s.series[0]?.overlays?.median?.symbol??r().overlays.median?.symbol??l(),Y=(s,e)=>{e.series[0].overlays??=n(),e.series[0].overlays.median??=i(2),e.series[0].overlays.median.symbol={...e.series[0].overlays.median.symbol,...s}},A=s=>s.series[0]?.overlays?.standardDeviation?.symbol??r().overlays.standardDeviation?.symbol??l(),Z=(s,e)=>{e.series[0].overlays??=n(),e.series[0].overlays.standardDeviation??=i(3),e.series[0].overlays.standardDeviation.symbol={...e.series[0].overlays.standardDeviation.symbol,...s}},_=s=>(s.series[0]?.overlays?.comparisonDistribution?.created??!1)&&(s.series[0]?.overlays?.comparisonDistribution?.visible??!1),$=(s,e)=>{let a=i(0);a.created=s,a.visible=s,a.symbol=h(e),e?.series?.[0]?.overlays&&(e.series[0].overlays.comparisonDistribution=a)},H=s=>(s.series[0]?.overlays?.mean?.created??!1)&&(s.series[0]?.overlays?.mean?.visible??!1),P=(s,e)=>{let a=i(1);a.created=s,a.visible=s,a.symbol=q(e),e?.series?.[0]?.overlays&&(e.series[0].overlays.mean=a)},X=s=>(s.series[0]?.overlays?.median?.created??!1)&&(s.series[0]?.overlays?.median?.visible??!1),ss=(s,e)=>{let a=i(2);a.created=s,a.visible=s,a.symbol=z(e),e?.series?.[0]?.overlays&&(e.series[0].overlays.median=a)},es=s=>(s.series[0]?.overlays?.standardDeviation?.created??!1)&&(s.series[0]?.overlays?.standardDeviation?.visible??!1),as=(s,e)=>{let a=i(3);a.created=s,a.visible=s,a.symbol=A(e),e?.series?.[0]?.overlays&&(e.series[0].overlays.standardDeviation=a)},is=s=>s?.series?.[0]?.overlays,rs=(s,e)=>{e?.series?.[0]!==void 0&&(e.series[0].overlays=s)};return{a:D,b:g,c:G,d:J,e:K,f:L,g:Q,h:R,i:U,j:h,k:V,l:q,m:W,n:z,o:Y,p:A,q:Z,r:_,s:$,t:H,u:P,v:X,w:ss,x:es,y:as,z:is,A:rs}},"intl",a,b,d,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./U2MCA4H2.js";import{q as R}from"./43DLRSYB.js";import{a as k,b as g,d as h,f as C}from"./KX7KGXKQ.js";import{b as D,d as z,f as q,h as L,l as W}from"./NGXRBJKL.js";import{a as G}from"./QVG3TOL4.js";export default $arcgis.t(([X,{createClassBreaksRenderer:Z},{getSchemes:ee},P,{Lb:A,xc:J}])=>{function te(e){let r;switch(e.length){case 4:{let t=e.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);t&&(r=[Number.parseInt(`${t[1]}${t[1]}`,16),Number.parseInt(`${t[2]}${t[2]}`,16),Number.parseInt(`${t[3]}${t[3]}`,16),255]);break}case 5:{let t=e.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);t&&(r=[Number.parseInt(`${t[1]}${t[1]}`,16),Number.parseInt(`${t[2]}${t[2]}`,16),Number.parseInt(`${t[3]}${t[3]}`,16),Number.parseInt(`${t[4]}${t[4]}`,16)]);break}case 7:{let t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);t&&(r=[Number.parseInt(t[1],16),Number.parseInt(t[2],16),Number.parseInt(t[3],16),255]);break}case 9:{let t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);t&&(r=[Number.parseInt(t[1],16),Number.parseInt(t[2],16),Number.parseInt(t[3],16),Number.parseInt(t[4],16)]);break}}return r}function _(e){let r;if(typeof e=="string"&&e.startsWith("#")){let t=te(e);t&&(r=t)}else Array.isArray(e)&&e.every(t=>typeof t=="number")&&(e.length===4?r=e:e.length===3&&(r=[...e,255]));return r}function K(e){return e===h.BackwardDiagonal||e===h.Cross||e===h.DiagonalCross||e===h.ForwardDiagonal||e===h.Horizontal||e===h.Null||e===h.Solid||e===h.Vertical}function O(e){return e===g.Dash||e===g.DashDot||e===g.DashDotDot||e===g.Dot||e===g.Null||e===g.Solid}function re(e){let{categoryField:r,numericFields:t,configFields:a,inlineData:c}=e,o={};return a&&Object.keys(a).length>0&&"dataItems"in c&&(o={type:"uniqueValue",field1:r,uniqueValueInfos:[]},c.dataItems.forEach(s=>{let l=s[r];if(l!=null){let n={value:l};t.forEach(i=>{let u=_(s[`${a.fillColor}_${i}`]),m=s[`${a.fillOpacity}_${i}`],f=s[`${a.fillStyle}_${i}`],p=s[`${a.markerSize}_${i}`],d=_(s[`${a.outlineColor}_${i}`]),$=s[`${a.outlineOpacity}_${i}`],F=s[`${a.outlineWidth}_${i}`],M=s[`${a.outlineStyle}_${i}`],S=_(s[`${a.lineColor}_${i}`]),x=s[`${a.lineOpacity}_${i}`],I=s[`${a.lineWidth}_${i}`],N=s[`${a.lineStyle}_${i}`],j=s[`${a.displayLabel}_${i}`];if(typeof j=="string"&&(n={...n,label:j}),p!=null){let y={type:C.SMS};p&&typeof p=="number"&&(y.size=p),n.symbol=y}if(u||K(f)){let y=n.symbol?.type===C.SMS?n.symbol:{type:C.SFS};if(u&&(m&&typeof m=="number"&&(u[3]=m),y.color=u),K(f)&&(y.style=f),n.symbol=y,d||F!=null||O(M)){let B={type:C.SLS};d&&($&&typeof $=="number"&&(d[3]=$),B.color=d),O(M)&&(B.style=M),F&&typeof F=="number"&&(B.width=F),n.symbol.outline=B}}else if(S||I!=null||O(N)){let y={type:C.SLS};S&&(x&&typeof x=="number"&&(S[3]=x),y.color=S),O(N)&&(y.style=N),I!=null&&typeof I=="number"&&(y.width=I),n.symbol=y}}),(n.label||n.symbol)&&o.uniqueValueInfos.push(n)}})),o}function ae(e){let{numericFields:r,configFields:t,inlineData:a}=e,c=a;return"dataItems"in a&&Object.entries(t).forEach(([o,s])=>{r.forEach(l=>{let n=`${s}_${l}`;a.dataItems.forEach(i=>{n in i&&delete i[n]})})}),c}function se(e){let{categoryField:r,categoryType:t,numericFields:a,inlineData:c}=e,o;if("dataItems"in c){let{dataItems:s}=c,l=[],n="OBJECTID",i=s.map((m,f)=>{let p={...m};return"FID"in m?n="FID":"ObjectId"in m&&(n="ObjectId"),p[n]||(p[n]=f),{attributes:p}});l.push({type:"esriFieldTypeOID",name:n});let u;switch(t){case"dateOnly":u=k.DateOnly;break;case"timeStampOffset":u=k.TimestampOffset;break;case"date":u=k.Date;break;case"number":u=k.Double;break;default:u=k.String;break}l.push({type:u,name:r}),a.forEach(m=>{l.push({type:k.Double,name:m})}),o={id:"",layerType:"ArcGISFeatureLayer",featureCollection:{layers:[{layerDefinition:{fields:l},featureSet:{features:i}}]}}}return o}async function oe(e){let{categoryField:r,categoryType:t,numericFields:a,configFields:c,inlineData:o}=e,s,l,n=z(o);c&&(s=re({categoryField:r,numericFields:a,configFields:c,inlineData:n}),n=ae({numericFields:a,configFields:c,inlineData:n}));let i=se({categoryField:r,categoryType:t,numericFields:a,inlineData:n});return i&&(l=await J(i)),{chartRenderer:s,iLayer:i,layer:l}}var E=P.all(),ne=ee({geometryType:"point",theme:"high-to-low"});function H(e,r,t){let a=Math.max(0,Math.min(1,t));return[Math.round(e[0]+(r[0]-e[0])*a),Math.round(e[1]+(r[1]-e[1])*a),Math.round(e[2]+(r[2]-e[2])*a),Math.round(e[3]+(r[3]-e[3])*a)]}function le(e,r){return r?.length===e?r:[]}function ie(e){let{numberOfClassBreaks:r,baseColors:t,fallbackStartColor:a=[237,248,251,255],fallbackEndColor:c=[136,65,157,255]}=e,o=[];if(r>0){let s=t?.[0]??a,l=t&&t.length>1?t[t.length-1]:c;if(r===1)o=[s];else for(let n=0;n<r;n++){let i=n/(r-1);o.push(H(s,l,i))}}return o}function Y(e){let{colorRamp:r,numberOfClassBreaks:t,isFlipped:a}=e,c=[],o=!1;if(r.colorsForClassBreaks&&r.colorsForClassBreaks.length>0){let s=r.colorsForClassBreaks.find(l=>l.numClasses===t);if(s?.colors?.length===t){let l=s.colors.map(n=>w(n));l.every(n=>n!==void 0)&&(c=a?l.reverse():l,o=!0)}}if(!o){let s=r.colors||[];if(s.length>0){let l=s.map(w).filter(i=>i!==void 0);a&&(l=l.reverse());let n=[];for(let i=0;i<t;i++){let u=t>1?i/(t-1):0,m=Math.floor(u*(l.length-1)),f=Math.min(m+1,l.length-1),p=l[m],d=l[f];if(!p||!d){c=[];break}let $=u*(l.length-1)-m,F=H(p,d,$);n.push(F)}c=n}}return c}function Q(e){let{numberOfClassBreaks:r,selectedColorRamp:t,colorRamp:a,isFlipped:c=!1}=e,o=le(r,a),s=t?Y({colorRamp:t,numberOfClassBreaks:r,isFlipped:c}):[];return o.length!==r&&(o=s),o.length!==r&&(o=ie({numberOfClassBreaks:r,baseColors:s.length>0?s:a})),o}function U(e,r=2){return e%1===0?e.toString():e.toFixed(r)}function ce(e,r=2){return`\u2264 ${U(e,r)}`}function Re(e){let r="#000000";if(e&&Array.isArray(e)&&e.length>=3){let t=b(e[0]||0),a=b(e[1]||0),c=b(e[2]||0),o=t.toString(16).padStart(2,"0"),s=a.toString(16).padStart(2,"0"),l=c.toString(16).padStart(2,"0");r=`#${o}${s}${l}`}return r}var Oe={all:["*"],light:["light"],dark:["dark"],redsAndYellows:["oranges","reds","yellows"],greens:["greens"],blues:["blues"],purplesAndPinks:["purples","pinks"],browns:["browns"],grays:["grays"],bright:["bright"],subdued:["subdued"],colorblindFriendly:["colorblind-friendly"]},ve={all:"all"},ue=e=>{let r=0,t=o=>{let s=0;return o.forEach(l=>{let n=l.toString().split(".")[1];n&&(s=Math.max(s,n.length))}),s},a=[...e].sort((o,s)=>o-s),c=t(a);for(;r<=c&&a.some((o,s)=>s>0&&A(o,r)<=A(a[s-1],r));)r++;return Math.min(r,c)};function b(e){return Math.max(0,Math.min(255,Math.round(e)))}function w(e){let r;if(e instanceof X){let t=e.toRgba();r=[b(t[0]),b(t[1]),b(t[2]),b(t[3]*255)]}else if(Array.isArray(e)&&e.every(t=>typeof t=="number")&&e.length===4){let t=e.length>=4?e[3]??255:255,a=b(t<=1?t*255:t);r=[b(e[0]??0),b(e[1]??0),b(e[2]??0),a]}return r}function v(e){let r=[];for(let t of e){let a=w(t);a&&r.push(a)}return r}function V(e,r){let t=0,a=e.size<=r.size?e:r,c=a===e?r:e;for(let o of a)c.has(o)&&t++;return t}function me(e){return[...e.colors??[],...q(e.colorsForClassBreaks??[],r=>r.colors??[])]}function fe(e){let{ramp:r,breakKeys:t,breakCount:a,weights:c}=e,o=d=>d.join(","),s=r.colorsForClassBreaks?.find(d=>d.numClasses===a)?.colors??[],l=new Set(v(s).map(o)),n=V(t,l),i=new Set(v(Q({numberOfClassBreaks:a,selectedColorRamp:r})).map(o)),u=V(t,i),m=me(r).filter(d=>!!d),f=new Set(v(m).map(o)),p=V(t,f);return n*c.exactN+u*c.generated+p*c.anyOverlap}function we(e,r){let t={exactN:100,generated:10,anyOverlap:1},a=o=>o.join(","),c;if(e?.length){let o=v(e.map(u=>u.symbol?.color)),s=new Set(o.map(a)),l=o.length,n=r.map(u=>{let m=fe({ramp:u,breakKeys:s,breakCount:l,weights:t});return{ramp:u,score:m}}),i=L(n,[u=>-u.score,u=>u.ramp.name]);i[0]?.score>0&&(c=i[0].ramp)}return c}function Me(e,r){let t=!0;if(!e?.length||r.length<2)t=!1;else{let a=e.map(w),c=r.map(o=>o.symbol.color);if(a.length!==c.length)t=!1;else{let o=(n,i)=>!!n&&!!i&&n.length===i.length&&n.every((u,m)=>u===i[m]),s=0,l=c.length-1;for(;s<a.length&&l>=0;){if(!o(a[s],c[l])){t=!1;break}s++,l--}}}return t}function pe(e){let r=new Set(e.dataItems.map(a=>a[R.valueField])),[t]=r;return r.size===1?t:void 0}function de(e,r){let t=Y({colorRamp:T.defaultColorRampForCharts,numberOfClassBreaks:1})[0];return{classMinValue:0,classMaxValue:e,label:U(e),symbol:{type:C.SFS,style:h.Solid,color:r??t??[0,0,0,255],outline:{style:g.Solid,width:.5,color:[50,50,50,.6]}}}}async function ye(e){let{data:r,breaksCount:t,classificationMethod:a,xAxisField:c,colorsForClassBreaks:o}=e,s=[],l=pe(r);if(l!==void 0)s=[de(l,o?.[0])];else{let n=await oe({categoryField:c??"",categoryType:G.DateAxisFormat,numericFields:[R.valueField],inlineData:r});if(n.layer){let i=ne?.primaryScheme,u=await Z({layer:n.layer,field:R.valueField,classificationMethod:a,numClasses:t,colorScheme:i});if(u?.classBreaksResult?.classBreakInfos?.length){let m=ue(u.classBreaksResult.classBreakInfos.map(f=>f.maxValue));s=u.classBreaksResult.classBreakInfos.map((f,p)=>({classMinValue:f.minValue,classMaxValue:f.maxValue,label:ce(f.maxValue,m),symbol:{type:C.SFS,style:h.Solid,color:o?.[p]||[0,0,0,255],outline:{style:g.Solid,width:.5,color:[50,50,50,.6]}}}))}}}return s}function he(e){return e?.length?e:T.esriColorRamps}function be(e,r){return e?he(r).find(t=>t.name===e):void 0}function ge(e){let{colorRampName:r,availableColorRamps:t}=e;return be(r,t)??T.defaultColorRampForCharts}var xe=W(async e=>{let{data:r,breaksCount:t,classificationMethod:a,xAxisField:c,colorRampName:o,availableColorRamps:s,existingClassBreakInfos:l,useExistingColors:n,isColorRampFlipped:i}=e,u=ge({colorRampName:o,availableColorRamps:s}),m=i??!1,f=Q({numberOfClassBreaks:t,selectedColorRamp:u,colorRamp:n?l?.map(p=>p.symbol?.color):void 0,isFlipped:m});return await ye({data:r,classificationMethod:a,breaksCount:t,xAxisField:c,colorsForClassBreaks:f})},e=>JSON.stringify(e)),T={esriColorRamps:E,defaultColorRampForCharts:E.find(e=>e.name==="Blue 3")??E[0]};function Ne({currentBreaks:e,configBreaks:r,treatReversedColorsAsEqual:t=!0}){let a=!0;if(Array.isArray(e)&&Array.isArray(r)){let c=o=>o.map(({symbol:s,...l})=>l);if(D(c(e),c(r))){let o=e.map(i=>i.symbol?.color),s=r.map(i=>i.symbol?.color),l=D(o,s),n=D(o,[...s].reverse());a=t?!(l||n):!l}}return a}return{a:Q,b:Re,c:Oe,d:ve,e:we,f:Me,g:xe,h:T,i:Ne}},"Color","smartMapping/renderers/color","smartMapping/symbology/color","smartMapping/symbology/support/colorRamps",a)
2
+ import a from"./FDSPMHM2.js";import{q as R}from"./43DLRSYB.js";import{a as k,b as g,d as h,f as C}from"./KX7KGXKQ.js";import{b as D,d as z,f as q,h as L,l as W}from"./NGXRBJKL.js";import{a as G}from"./QVG3TOL4.js";export default $arcgis.t(([X,{createClassBreaksRenderer:Z},{getSchemes:ee},P,{Mb:A,yc:J}])=>{function te(e){let r;switch(e.length){case 4:{let t=e.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);t&&(r=[Number.parseInt(`${t[1]}${t[1]}`,16),Number.parseInt(`${t[2]}${t[2]}`,16),Number.parseInt(`${t[3]}${t[3]}`,16),255]);break}case 5:{let t=e.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);t&&(r=[Number.parseInt(`${t[1]}${t[1]}`,16),Number.parseInt(`${t[2]}${t[2]}`,16),Number.parseInt(`${t[3]}${t[3]}`,16),Number.parseInt(`${t[4]}${t[4]}`,16)]);break}case 7:{let t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);t&&(r=[Number.parseInt(t[1],16),Number.parseInt(t[2],16),Number.parseInt(t[3],16),255]);break}case 9:{let t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);t&&(r=[Number.parseInt(t[1],16),Number.parseInt(t[2],16),Number.parseInt(t[3],16),Number.parseInt(t[4],16)]);break}}return r}function _(e){let r;if(typeof e=="string"&&e.startsWith("#")){let t=te(e);t&&(r=t)}else Array.isArray(e)&&e.every(t=>typeof t=="number")&&(e.length===4?r=e:e.length===3&&(r=[...e,255]));return r}function K(e){return e===h.BackwardDiagonal||e===h.Cross||e===h.DiagonalCross||e===h.ForwardDiagonal||e===h.Horizontal||e===h.Null||e===h.Solid||e===h.Vertical}function v(e){return e===g.Dash||e===g.DashDot||e===g.DashDotDot||e===g.Dot||e===g.Null||e===g.Solid}function re(e){let{categoryField:r,numericFields:t,configFields:a,inlineData:c}=e,o={};return a&&Object.keys(a).length>0&&"dataItems"in c&&(o={type:"uniqueValue",field1:r,uniqueValueInfos:[]},c.dataItems.forEach(s=>{let l=s[r];if(l!=null){let n={value:l};t.forEach(i=>{let u=_(s[`${a.fillColor}_${i}`]),m=s[`${a.fillOpacity}_${i}`],f=s[`${a.fillStyle}_${i}`],p=s[`${a.markerSize}_${i}`],d=_(s[`${a.outlineColor}_${i}`]),$=s[`${a.outlineOpacity}_${i}`],F=s[`${a.outlineWidth}_${i}`],O=s[`${a.outlineStyle}_${i}`],S=_(s[`${a.lineColor}_${i}`]),x=s[`${a.lineOpacity}_${i}`],I=s[`${a.lineWidth}_${i}`],N=s[`${a.lineStyle}_${i}`],j=s[`${a.displayLabel}_${i}`];if(typeof j=="string"&&(n={...n,label:j}),p!=null){let y={type:C.SMS};p&&typeof p=="number"&&(y.size=p),n.symbol=y}if(u||K(f)){let y=n.symbol?.type===C.SMS?n.symbol:{type:C.SFS};if(u&&(m&&typeof m=="number"&&(u[3]=m),y.color=u),K(f)&&(y.style=f),n.symbol=y,d||F!=null||v(O)){let B={type:C.SLS};d&&($&&typeof $=="number"&&(d[3]=$),B.color=d),v(O)&&(B.style=O),F&&typeof F=="number"&&(B.width=F),n.symbol.outline=B}}else if(S||I!=null||v(N)){let y={type:C.SLS};S&&(x&&typeof x=="number"&&(S[3]=x),y.color=S),v(N)&&(y.style=N),I!=null&&typeof I=="number"&&(y.width=I),n.symbol=y}}),(n.label||n.symbol)&&o.uniqueValueInfos.push(n)}})),o}function ae(e){let{numericFields:r,configFields:t,inlineData:a}=e,c=a;return"dataItems"in a&&Object.entries(t).forEach(([o,s])=>{r.forEach(l=>{let n=`${s}_${l}`;a.dataItems.forEach(i=>{n in i&&delete i[n]})})}),c}function se(e){let{categoryField:r,categoryType:t,numericFields:a,inlineData:c}=e,o;if("dataItems"in c){let{dataItems:s}=c,l=[],n="OBJECTID",i=s.map((m,f)=>{let p={...m};return"FID"in m?n="FID":"ObjectId"in m&&(n="ObjectId"),p[n]||(p[n]=f),{attributes:p}});l.push({type:"esriFieldTypeOID",name:n});let u;switch(t){case"dateOnly":u=k.DateOnly;break;case"timeStampOffset":u=k.TimestampOffset;break;case"date":u=k.Date;break;case"number":u=k.Double;break;default:u=k.String;break}l.push({type:u,name:r}),a.forEach(m=>{l.push({type:k.Double,name:m})}),o={id:"",layerType:"ArcGISFeatureLayer",featureCollection:{layers:[{layerDefinition:{fields:l},featureSet:{features:i}}]}}}return o}async function oe(e){let{categoryField:r,categoryType:t,numericFields:a,configFields:c,inlineData:o}=e,s,l,n=z(o);c&&(s=re({categoryField:r,numericFields:a,configFields:c,inlineData:n}),n=ae({numericFields:a,configFields:c,inlineData:n}));let i=se({categoryField:r,categoryType:t,numericFields:a,inlineData:n});return i&&(l=await J(i)),{chartRenderer:s,iLayer:i,layer:l}}var E=P.all(),ne=ee({geometryType:"point",theme:"high-to-low"});function H(e,r,t){let a=Math.max(0,Math.min(1,t));return[Math.round(e[0]+(r[0]-e[0])*a),Math.round(e[1]+(r[1]-e[1])*a),Math.round(e[2]+(r[2]-e[2])*a),Math.round(e[3]+(r[3]-e[3])*a)]}function le(e,r){return r?.length===e?r:[]}function ie(e){let{numberOfClassBreaks:r,baseColors:t,fallbackStartColor:a=[237,248,251,255],fallbackEndColor:c=[136,65,157,255]}=e,o=[];if(r>0){let s=t?.[0]??a,l=t&&t.length>1?t[t.length-1]:c;if(r===1)o=[s];else for(let n=0;n<r;n++){let i=n/(r-1);o.push(H(s,l,i))}}return o}function Q(e){let{colorRamp:r,numberOfClassBreaks:t,isFlipped:a}=e,c=[],o=!1;if(r.colorsForClassBreaks&&r.colorsForClassBreaks.length>0){let s=r.colorsForClassBreaks.find(l=>l.numClasses===t);if(s?.colors?.length===t){let l=s.colors.map(n=>M(n));l.every(n=>n!==void 0)&&(c=a?l.reverse():l,o=!0)}}if(!o){let s=r.colors||[];if(s.length>0){let l=s.map(M).filter(i=>i!==void 0);a&&(l=l.reverse());let n=[];for(let i=0;i<t;i++){let u=t>1?i/(t-1):0,m=Math.floor(u*(l.length-1)),f=Math.min(m+1,l.length-1),p=l[m],d=l[f];if(!p||!d){c=[];break}let $=u*(l.length-1)-m,F=H(p,d,$);n.push(F)}c=n}}return c}function Y(e){let{numberOfClassBreaks:r,selectedColorRamp:t,colorRamp:a,isFlipped:c=!1}=e,o=le(r,a),s=t?Q({colorRamp:t,numberOfClassBreaks:r,isFlipped:c}):[];return o.length!==r&&(o=s),o.length!==r&&(o=ie({numberOfClassBreaks:r,baseColors:s.length>0?s:a})),o}function U(e,r=2){return e%1===0?e.toString():e.toFixed(r)}function ce(e,r=2){return`\u2264 ${U(e,r)}`}function Re(e){let r="#000000";if(e&&Array.isArray(e)&&e.length>=3){let t=b(e[0]||0),a=b(e[1]||0),c=b(e[2]||0),o=t.toString(16).padStart(2,"0"),s=a.toString(16).padStart(2,"0"),l=c.toString(16).padStart(2,"0");r=`#${o}${s}${l}`}return r}var ve={all:["*"],light:["light"],dark:["dark"],redsAndYellows:["oranges","reds","yellows"],greens:["greens"],blues:["blues"],purplesAndPinks:["purples","pinks"],browns:["browns"],grays:["grays"],bright:["bright"],subdued:["subdued"],colorblindFriendly:["colorblind-friendly"]},we={all:"all"},ue=e=>{let r=0,t=o=>{let s=0;return o.forEach(l=>{let n=l.toString().split(".")[1];n&&(s=Math.max(s,n.length))}),s},a=[...e].sort((o,s)=>o-s),c=t(a);for(;r<=c&&a.some((o,s)=>s>0&&A(o,r)<=A(a[s-1],r));)r++;return Math.min(r,c)};function b(e){return Math.max(0,Math.min(255,Math.round(e)))}function M(e){let r;if(e instanceof X){let t=e.toRgba();r=[b(t[0]),b(t[1]),b(t[2]),b(t[3]*255)]}else if(Array.isArray(e)&&e.every(t=>typeof t=="number")&&e.length===4){let t=e.length>=4?e[3]??255:255,a=b(t<=1?t*255:t);r=[b(e[0]??0),b(e[1]??0),b(e[2]??0),a]}return r}function w(e){let r=[];for(let t of e){let a=M(t);a&&r.push(a)}return r}function V(e,r){let t=0,a=e.size<=r.size?e:r,c=a===e?r:e;for(let o of a)c.has(o)&&t++;return t}function me(e){return[...e.colors??[],...q(e.colorsForClassBreaks??[],r=>r.colors??[])]}function fe(e){let{ramp:r,breakKeys:t,breakCount:a,weights:c}=e,o=d=>d.join(","),s=r.colorsForClassBreaks?.find(d=>d.numClasses===a)?.colors??[],l=new Set(w(s).map(o)),n=V(t,l),i=new Set(w(Y({numberOfClassBreaks:a,selectedColorRamp:r})).map(o)),u=V(t,i),m=me(r).filter(d=>!!d),f=new Set(w(m).map(o)),p=V(t,f);return n*c.exactN+u*c.generated+p*c.anyOverlap}function Me(e,r){let t={exactN:100,generated:10,anyOverlap:1},a=o=>o.join(","),c;if(e?.length){let o=w(e.map(u=>u.symbol?.color)),s=new Set(o.map(a)),l=o.length,n=r.map(u=>{let m=fe({ramp:u,breakKeys:s,breakCount:l,weights:t});return{ramp:u,score:m}}),i=L(n,[u=>-u.score,u=>u.ramp.name]);i[0]?.score>0&&(c=i[0].ramp)}return c}function Oe(e,r){let t=!0;if(!e?.length||r.length<2)t=!1;else{let a=e.map(M),c=r.map(o=>o.symbol.color);if(a.length!==c.length)t=!1;else{let o=(n,i)=>!!n&&!!i&&n.length===i.length&&n.every((u,m)=>u===i[m]),s=0,l=c.length-1;for(;s<a.length&&l>=0;){if(!o(a[s],c[l])){t=!1;break}s++,l--}}}return t}function pe(e){let r=new Set(e.dataItems.map(a=>a[R.valueField])),[t]=r;return r.size===1?t:void 0}function de(e,r){let t=Q({colorRamp:T.defaultColorRampForCharts,numberOfClassBreaks:1})[0];return{classMinValue:0,classMaxValue:e,label:U(e),symbol:{type:C.SFS,style:h.Solid,color:r??t??[0,0,0,255],outline:{style:g.Solid,width:.5,color:[50,50,50,.6]}}}}async function ye(e){let{data:r,breaksCount:t,classificationMethod:a,xAxisField:c,colorsForClassBreaks:o}=e,s=[],l=pe(r);if(l!==void 0)s=[de(l,o?.[0])];else{let n=await oe({categoryField:c??"",categoryType:G.DateAxisFormat,numericFields:[R.valueField],inlineData:r});if(n.layer){let i=ne?.primaryScheme,u=await Z({layer:n.layer,field:R.valueField,classificationMethod:a,numClasses:t,colorScheme:i});if(u?.classBreaksResult?.classBreakInfos?.length){let m=ue(u.classBreaksResult.classBreakInfos.map(f=>f.maxValue));s=u.classBreaksResult.classBreakInfos.map((f,p)=>({classMinValue:f.minValue,classMaxValue:f.maxValue,label:ce(f.maxValue,m),symbol:{type:C.SFS,style:h.Solid,color:o?.[p]||[0,0,0,255],outline:{style:g.Solid,width:.5,color:[50,50,50,.6]}}}))}}}return s}function he(e){return e?.length?e:T.esriColorRamps}function be(e,r){return e?he(r).find(t=>t.name===e):void 0}function ge(e){let{colorRampName:r,availableColorRamps:t}=e;return be(r,t)??T.defaultColorRampForCharts}var xe=W(async e=>{let{data:r,breaksCount:t,classificationMethod:a,xAxisField:c,colorRampName:o,availableColorRamps:s,existingClassBreakInfos:l,useExistingColors:n,isColorRampFlipped:i}=e,u=ge({colorRampName:o,availableColorRamps:s}),m=i??!1,f=Y({numberOfClassBreaks:t,selectedColorRamp:u,colorRamp:n?l?.map(p=>p.symbol?.color):void 0,isFlipped:m});return await ye({data:r,classificationMethod:a,breaksCount:t,xAxisField:c,colorsForClassBreaks:f})},e=>JSON.stringify(e)),T={esriColorRamps:E,defaultColorRampForCharts:E.find(e=>e.name==="Blue 3")??E[0]};function Ne({currentBreaks:e,configBreaks:r,treatReversedColorsAsEqual:t=!0}){let a=!0;if(Array.isArray(e)&&Array.isArray(r)){let c=o=>o.map(({symbol:s,...l})=>l);if(D(c(e),c(r))){let o=e.map(i=>i.symbol?.color),s=r.map(i=>i.symbol?.color),l=D(o,s),n=D(o,[...s].reverse());a=t?!(l||n):!l}}return a}return{a:Y,b:Re,c:ve,d:we,e:Me,f:Oe,g:xe,h:T,i:Ne}},"Color","smartMapping/renderers/color","smartMapping/symbology/color","smartMapping/symbology/support/colorRamps",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as e,c as n,d as o}from"./DRYZWCWX.js";import c from"./TQ76KTJO.js";import b from"./VB5IKXUD.js";import{a as d,p as V}from"./O4TPXFX4.js";import a from"./U2MCA4H2.js";import{a as B}from"./Z5QPCSUQ.js";import{a as r}from"./QVG3TOL4.js";export default $arcgis.t(([{Ld:w,dd:u,j:g,jc:h,q:C,sc:p,t:b,u:A},{d:f},{a:F}])=>{var T=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsCSV,e.ExportAsImage],M=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],Z=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],z=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByViewExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],R=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByViewExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],P=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],H=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],j=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],G=[e.EditChart,e.FilterByViewExtent,e.ExportAsImage,e.ExportAsCSV];function O(c){switch(c){case r.BarSeries:return T;case r.LineSeries:return M;case r.ComboLineAndBarSeries:return Z;case r.PieSeries:return z;case r.HistogramSeries:return P;case r.ScatterSeries:return H;case r.BoxPlotSeries:return j;case r.GaugeSeries:return G;case r.HeatSeries:return R;default:return[]}}var Q=(c,t,i)=>{let l=c.target.assignedNodes().find(a=>"legendToggle"in a||"legendActive"in a),s=B(i?.series);return l&&(l.chartType=s,N({actionBar:l,chartComponent:t,config:i})),l};function N(c){let{actionBar:t,chartComponent:i,config:l,isInfoModalDisplayed:s}=c,a=p(i.selectionData),D=l?.legend?l.legend.visible??!0:!1;if(t.chartType=B(l?.series),i.enableConfiguration||i.configurationEnabled){let I=t.hiddenActions??[];t.hiddenActions=I.filter(L=>L!==e.EditChart)}t.editChartState=i.enableConfiguration||i.configurationEnabled?o.Enabled:o.Disabled,t.editChartEnabled=!!(i.enableConfiguration||i.configurationEnabled);let S=l&&h(l.series);t.legendState=S?o.Enabled:o.Disabled,t.legendDisabled=!S;let y=d(i?.model)&&V(i?.model)?i.model.legendVisibility:D;t.legendToggle=S&&y?n.Active:n.Inactive,t.legendActive=!!(S&&y);let x=d(i?.model)&&F(i.model)?i.model.rotated:l?.rotated;t.rotateChartToggle=x?n.Active:n.Inactive,t.rotateChartActive=!!x;let m=u(l?.series??[])===C.PieFromFields,E=d(i.model)?b(i.model.layer):A(i.model);t.filterBySelectionState=!E&&!m&&(i.filterBySelection||!a&&(!i.filterByExtent||!i.filterByViewExtent))?o.Enabled:o.Disabled,t.filterBySelectionDisabled=!(!E&&!m&&(i.filterBySelection||!a&&(!i.filterByExtent||!i.filterByViewExtent))),t.filterBySelectionToggle=i.filterBySelection?n.Active:n.Inactive,t.filterBySelectionActive=!!i.filterBySelection;let v=E&&t.chartType===r.ScatterSeries&&w(l);t.filterByExtentState=(i.filterByViewExtent||!i.filterBySelection)&&!v?o.Enabled:o.Disabled,t.filterByViewExtentDisabled=t.filterByExtentState===o.Disabled,t.filterByExtentToggle=i.filterByViewExtent?n.Active:n.Inactive,t.filterByViewExtentActive=!!i.filterByViewExtent,t.zoomState=i.filterBySelection?o.Disabled:o.Enabled,t.zoomDisabled=!!i.filterBySelection,t.zoomToggle=i.actionMode===g.Zoom?n.Active:n.Inactive,t.zoomActive=i.actionMode===g.Zoom,t.selectionState=i.filterBySelection?o.Disabled:o.Enabled,t.selectionDisabled=!!i.filterBySelection,t.selectionToggle=(i.actionMode??t.actionBarSelectionMode)===t.actionBarSelectionMode?n.Active:n.Inactive,t.selectionActive=(i.actionMode??t.actionBarSelectionMode)===t.actionBarSelectionMode,t.clearSelectionState=a?o.Disabled:o.Enabled,t.clearSelectionDisabled=!!a,t.fullExtentState=i.filterBySelection?o.Disabled:o.Enabled,t.fullExtentDisabled=!!i.filterBySelection,t.switchSelectionState=i.filterBySelection?o.Disabled:o.Enabled,t.switchSelectionDisabled=!!i.filterBySelection,t.exportActionState=s||f(l)?o.Disabled:o.Enabled,t.exportActionDisabled=!!(s||f(l))}return{a:O,b:Q,c:N}},a,b,c)
2
+ import{b as e,c as n,d as o}from"./DRYZWCWX.js";import c from"./EKQKUKY6.js";import b from"./44Z3FQLY.js";import{a as d,p as V}from"./O4TPXFX4.js";import a from"./FDSPMHM2.js";import{a as B}from"./Z5QPCSUQ.js";import{a as r}from"./QVG3TOL4.js";export default $arcgis.t(([{Md:w,ed:u,j:f,kc:h,q:C,t:b,tc:p,u:A},{d:g},{a:F}])=>{var T=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsCSV,e.ExportAsImage],M=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],Z=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],z=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByViewExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],R=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByViewExtent,e.Selection,e.ClearSelection,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],P=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],H=[e.EditChart,e.Legend,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],j=[e.EditChart,e.Legend,e.RotateChart,e.FilterBySelection,e.FilterByViewExtent,e.Zoom,e.Selection,e.ClearSelection,e.FullExtent,e.SwitchSelection,e.ExportAsImage,e.ExportAsCSV],G=[e.EditChart,e.FilterByViewExtent,e.ExportAsImage,e.ExportAsCSV];function O(c){switch(c){case r.BarSeries:return T;case r.LineSeries:return M;case r.ComboLineAndBarSeries:return Z;case r.PieSeries:return z;case r.HistogramSeries:return P;case r.ScatterSeries:return H;case r.BoxPlotSeries:return j;case r.GaugeSeries:return G;case r.HeatSeries:return R;default:return[]}}var Q=(c,t,i)=>{let l=c.target.assignedNodes().find(a=>"legendToggle"in a||"legendActive"in a),s=B(i?.series);return l&&(l.chartType=s,W({actionBar:l,chartComponent:t,config:i})),l};function W(c){let{actionBar:t,chartComponent:i,config:l,isInfoModalDisplayed:s}=c,a=p(i.selectionData),D=l?.legend?l.legend.visible??!0:!1;if(t.chartType=B(l?.series),i.enableConfiguration||i.configurationEnabled){let I=t.hiddenActions??[];t.hiddenActions=I.filter(L=>L!==e.EditChart)}t.editChartState=i.enableConfiguration||i.configurationEnabled?o.Enabled:o.Disabled,t.editChartEnabled=!!(i.enableConfiguration||i.configurationEnabled);let S=l&&h(l.series);t.legendState=S?o.Enabled:o.Disabled,t.legendDisabled=!S;let y=d(i?.model)&&V(i?.model)?i.model.legendVisibility:D;t.legendToggle=S&&y?n.Active:n.Inactive,t.legendActive=!!(S&&y);let x=d(i?.model)&&F(i.model)?i.model.rotated:l?.rotated;t.rotateChartToggle=x?n.Active:n.Inactive,t.rotateChartActive=!!x;let m=u(l?.series??[])===C.PieFromFields,E=d(i.model)?b(i.model.layer):A(i.model);t.filterBySelectionState=!E&&!m&&(i.filterBySelection||!a&&(!i.filterByExtent||!i.filterByViewExtent))?o.Enabled:o.Disabled,t.filterBySelectionDisabled=!(!E&&!m&&(i.filterBySelection||!a&&(!i.filterByExtent||!i.filterByViewExtent))),t.filterBySelectionToggle=i.filterBySelection?n.Active:n.Inactive,t.filterBySelectionActive=!!i.filterBySelection;let v=E&&t.chartType===r.ScatterSeries&&w(l);t.filterByExtentState=(i.filterByViewExtent||!i.filterBySelection)&&!v?o.Enabled:o.Disabled,t.filterByViewExtentDisabled=t.filterByExtentState===o.Disabled,t.filterByExtentToggle=i.filterByViewExtent?n.Active:n.Inactive,t.filterByViewExtentActive=!!i.filterByViewExtent,t.zoomState=i.filterBySelection?o.Disabled:o.Enabled,t.zoomDisabled=!!i.filterBySelection,t.zoomToggle=i.actionMode===f.Zoom?n.Active:n.Inactive,t.zoomActive=i.actionMode===f.Zoom,t.selectionState=i.filterBySelection?o.Disabled:o.Enabled,t.selectionDisabled=!!i.filterBySelection,t.selectionToggle=(i.actionMode??t.actionBarSelectionMode)===t.actionBarSelectionMode?n.Active:n.Inactive,t.selectionActive=(i.actionMode??t.actionBarSelectionMode)===t.actionBarSelectionMode,t.clearSelectionState=a?o.Disabled:o.Enabled,t.clearSelectionDisabled=!!a,t.fullExtentState=i.filterBySelection?o.Disabled:o.Enabled,t.fullExtentDisabled=!!i.filterBySelection,t.switchSelectionState=i.filterBySelection?o.Disabled:o.Enabled,t.switchSelectionDisabled=!!i.filterBySelection,t.exportActionState=s||g(l)?o.Disabled:o.Enabled,t.exportActionDisabled=!!(s||g(l))}return{a:O,b:Q,c:W}},a,b,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import w from"./EWTJS5JK.js";import v from"./PAVO7TKG.js";import"./K4GPJ36N.js";import u from"./5MECBMJC.js";import t from"./CKIBYI4O.js";import s from"./TQ76KTJO.js";import r from"./FEKN5HO6.js";import q from"./KMIZUMBQ.js";import p from"./G26Q6NOB.js";import o from"./SEEO2AIK.js";import n from"./VB5IKXUD.js";import m from"./TMZNR5AP.js";import k from"./K6T2WHGF.js";import j from"./CDGHPNUU.js";import i from"./CPTVKQNL.js";import"./O4TPXFX4.js";import h from"./IQTXTQQB.js";import e from"./LSYILFV4.js";import d from"./VNTP2XA2.js";import c from"./CPOQUGDB.js";import b from"./ONKSE46T.js";import a from"./U2MCA4H2.js";import{ca as f,fa as g,ma as y}from"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./FPMYKZUS.js";import"./SQ7EPQSM.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as l}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Cc:c,Ja:d,La:p,Na:b,Zb:_},,{e:o},,,,,,,,,,,,,,,{c:u,e:L},{a:k,b:v,c:I,d:M,e:z,f:C,g:x,h:O,i:B,j:V,k:D,l:F,m:j,n:h,o:A,p:H,q:W,t:w},{a:T,b:P,c:q,d:N,e:E}])=>{var G=Object.defineProperty,J=Object.getOwnPropertyDescriptor,a=(S,e,i,n)=>{for(var s=J(e,i),t=S.length-1,m;t>=0;t--)(m=S[t])&&(s=m(e,i,s)||s);return s&&G(e,i,s),s},r=class extends L{constructor(){super(...arguments),this._chartType=l.ComboLineAndBarSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&(b(e.config?.series)&&this.initDefaultSeries(),await this.rebuildSeries()),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=y(this.commonStrings);return e.series=[g({commonStrings:this.commonStrings,objectIDField:c(this.layerInfo.layer).idField})],e}initDefaultSeries(){this.defaultSeries=f({commonStrings:this.commonStrings,objectIDField:c(this.layerInfo.layer).idField})}setSeriesType(e,i){if(e<this._config.series.length&&e>=0){let n=this._config.series[e],s;if(i===l.BarSeries&&d(n)){let t={...n};delete t.lineSymbol,delete t.markerSymbol,delete t.lineSmoothed,delete t.markerVisible,delete t.areaColor,delete t.stackNegativeValuesToBaseline,s={...g({commonStrings:this.commonStrings,objectIDField:c(this.layerInfo.layer).idField}),...t,type:l.BarSeries,y:[n.y].flat()[0]},s.fillSymbol&&(s.fillSymbol={...s.fillSymbol,color:n.lineSymbol?.color})}else if(i===l.LineSeries&&p(n)){let t={...n};delete t.fillSymbol,delete t.hideOversizedStackedLabels,delete t.hideOversizedSideBySideLabels,s={...f({commonStrings:this.commonStrings,objectIDField:c(this.layerInfo.layer).idField}),...t,type:l.LineSeries},s.lineSymbol&&(s.lineSymbol={...s.lineSymbol,color:n.fillSymbol?.color})}s!==void 0&&(this._config.series[e]=s)}}getSeriesLineStyle(e){return k(e,this._config)}setSeriesLineStyle(e,i){v({style:e,seriesIndex:i,config:this._config})}getSeriesLineWidth(e){return I(e,this._config)}setSeriesLineWidth(e,i){M({width:e,seriesIndex:i,config:this._config})}getSeriesMarkerColor(e){return z(e,this._config)}setSeriesMarkerColor(e,i){let n=this._config.series?.[i];d(n)&&C(e,i,this._config)}getSeriesMarkerStyle(e){return x(e,this._config)}setSeriesMarkerStyle(e,i){O({style:e,seriesIndex:i,config:this._config})}getSeriesMarkerSize(e){return B(e,this._config)}setSeriesMarkerSize(e,i){V({size:e,seriesIndex:i,config:this._config})}isLineSmoothed(e){return D(e,this._config)}setLineSmoothed(e,i){F({smoothed:e,seriesIndex:i,config:this._config})}isAreaVisible(e){return j(e,this._config)}setAreaVisible(e,i){h({visible:e,seriesIndex:i,config:this._config})}isMarkerVisible(e){return A(e,this._config)}setMarkersVisible(e,i){H({visible:e,seriesIndex:i,config:this._config})}setMarkerVisible(e,i){this.setMarkersVisible(e,i)}getAreaColor(e){return W(e,this._config)}setAreaColor(e,i){let n=this._config.series?.[i];d(n)&&(h({visible:!0,seriesIndex:i,config:this._config}),u(e,i,this._config))}getSeriesHideOversizedSideBySideLabels(e){return T(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,i){P({hide:e,seriesIndex:i,config:this._config})}getSeriesHideOversizedStackedLabels(e){return q(e,this._config)}setSeriesHideOversizedStackedLabels(e,i){N({hide:e,seriesIndex:i,config:this._config})}};a([o],r.prototype,"setSeriesType");a([o],r.prototype,"setSeriesLineStyle");a([o],r.prototype,"setSeriesLineWidth");a([o],r.prototype,"setSeriesMarkerColor");a([o],r.prototype,"setSeriesMarkerStyle");a([o],r.prototype,"setSeriesMarkerSize");a([o],r.prototype,"setLineSmoothed");a([o],r.prototype,"setAreaVisible");a([o],r.prototype,"setMarkersVisible");a([o],r.prototype,"setAreaColor");a([o],r.prototype,"setSeriesHideOversizedSideBySideLabels");a([o],r.prototype,"setSeriesHideOversizedStackedLabels");var K=[w,E];_(r,K);return r},a,b,c,d,e,h,i,j,k,m,n,o,p,q,r,s,t,u,v,w)
2
+ import w from"./MAGKESKX.js";import v from"./6ABL27JK.js";import"./K4GPJ36N.js";import u from"./UEAY5SKM.js";import t from"./5PW4GYCQ.js";import s from"./EKQKUKY6.js";import r from"./A63ZBLBQ.js";import q from"./NLI6JDBZ.js";import p from"./ES4YBG5J.js";import o from"./ZPHKQU77.js";import n from"./44Z3FQLY.js";import m from"./6NKPJKJZ.js";import k from"./7BHQ4WZG.js";import j from"./DKMC6A3E.js";import i from"./ZKML6BIS.js";import"./O4TPXFX4.js";import h from"./KFJ2NIK7.js";import e from"./46GFREHY.js";import d from"./EA2QTPDF.js";import c from"./UCB2BAAC.js";import b from"./XXLHI5DE.js";import a from"./FDSPMHM2.js";import{ca as f,fa as g,ma as y}from"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./TLUMTYZB.js";import"./XIITX6LZ.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as l}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Dc:c,Ka:d,Ma:p,Oa:b,_b:_},,{e:o},,,,,,,,,,,,,,,{c:u,e:L},{a:k,b:v,c:I,d:M,e:C,f:z,g:x,h:O,i:V,j:B,k:F,l:A,m:D,n:h,o:j,p:H,q:W,t:w},{a:T,b:P,c:N,d:q,e:E}])=>{var G=Object.defineProperty,J=Object.getOwnPropertyDescriptor,a=(S,e,i,n)=>{for(var s=J(e,i),t=S.length-1,m;t>=0;t--)(m=S[t])&&(s=m(e,i,s)||s);return s&&G(e,i,s),s},r=class extends L{constructor(){super(...arguments),this._chartType=l.ComboLineAndBarSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&(b(e.config?.series)&&this.initDefaultSeries(),await this.rebuildSeries()),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=y(this.commonStrings);return e.series=[g({commonStrings:this.commonStrings,objectIDField:c(this.layerInfo.layer).idField})],e}initDefaultSeries(){this.defaultSeries=f({commonStrings:this.commonStrings,objectIDField:c(this.layerInfo.layer).idField})}setSeriesType(e,i){if(e<this._config.series.length&&e>=0){let n=this._config.series[e],s;if(i===l.BarSeries&&d(n)){let t={...n};delete t.lineSymbol,delete t.markerSymbol,delete t.lineSmoothed,delete t.markerVisible,delete t.areaColor,delete t.stackNegativeValuesToBaseline,s={...g({commonStrings:this.commonStrings,objectIDField:c(this.layerInfo.layer).idField}),...t,type:l.BarSeries,y:[n.y].flat()[0]},s.fillSymbol&&(s.fillSymbol={...s.fillSymbol,color:n.lineSymbol?.color})}else if(i===l.LineSeries&&p(n)){let t={...n};delete t.fillSymbol,delete t.hideOversizedStackedLabels,delete t.hideOversizedSideBySideLabels,s={...f({commonStrings:this.commonStrings,objectIDField:c(this.layerInfo.layer).idField}),...t,type:l.LineSeries},s.lineSymbol&&(s.lineSymbol={...s.lineSymbol,color:n.fillSymbol?.color})}s!==void 0&&(this._config.series[e]=s)}}getSeriesLineStyle(e){return k(e,this._config)}setSeriesLineStyle(e,i){v({style:e,seriesIndex:i,config:this._config})}getSeriesLineWidth(e){return I(e,this._config)}setSeriesLineWidth(e,i){M({width:e,seriesIndex:i,config:this._config})}getSeriesMarkerColor(e){return C(e,this._config)}setSeriesMarkerColor(e,i){let n=this._config.series?.[i];d(n)&&z(e,i,this._config)}getSeriesMarkerStyle(e){return x(e,this._config)}setSeriesMarkerStyle(e,i){O({style:e,seriesIndex:i,config:this._config})}getSeriesMarkerSize(e){return V(e,this._config)}setSeriesMarkerSize(e,i){B({size:e,seriesIndex:i,config:this._config})}isLineSmoothed(e){return F(e,this._config)}setLineSmoothed(e,i){A({smoothed:e,seriesIndex:i,config:this._config})}isAreaVisible(e){return D(e,this._config)}setAreaVisible(e,i){h({visible:e,seriesIndex:i,config:this._config})}isMarkerVisible(e){return j(e,this._config)}setMarkersVisible(e,i){H({visible:e,seriesIndex:i,config:this._config})}setMarkerVisible(e,i){this.setMarkersVisible(e,i)}getAreaColor(e){return W(e,this._config)}setAreaColor(e,i){let n=this._config.series?.[i];d(n)&&(h({visible:!0,seriesIndex:i,config:this._config}),u(e,i,this._config))}getSeriesHideOversizedSideBySideLabels(e){return T(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,i){P({hide:e,seriesIndex:i,config:this._config})}getSeriesHideOversizedStackedLabels(e){return N(e,this._config)}setSeriesHideOversizedStackedLabels(e,i){q({hide:e,seriesIndex:i,config:this._config})}};a([o],r.prototype,"setSeriesType");a([o],r.prototype,"setSeriesLineStyle");a([o],r.prototype,"setSeriesLineWidth");a([o],r.prototype,"setSeriesMarkerColor");a([o],r.prototype,"setSeriesMarkerStyle");a([o],r.prototype,"setSeriesMarkerSize");a([o],r.prototype,"setLineSmoothed");a([o],r.prototype,"setAreaVisible");a([o],r.prototype,"setMarkersVisible");a([o],r.prototype,"setAreaColor");a([o],r.prototype,"setSeriesHideOversizedSideBySideLabels");a([o],r.prototype,"setSeriesHideOversizedStackedLabels");var K=[w,E];_(r,K);return r},a,b,c,d,e,h,i,j,k,m,n,o,p,q,r,s,t,u,v,w)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{f as d,h as y,i as T,j as m,k as b}from"./O4TPXFX4.js";import e from"./VNTP2XA2.js";import c from"./CPOQUGDB.js";import a from"./U2MCA4H2.js";import{p as f}from"./43DLRSYB.js";export default $arcgis.t(([{hc:o},{d:a,e:x},{r:h,s:g,t:u,u:p}])=>{var P=Object.defineProperty,j=Object.getOwnPropertyDescriptor,O=(i,t,e,v)=>{for(var s=j(t,e),r=i.length-1,n;r>=0;r--)(n=i[r])&&(s=n(t,e,s)||s);return s&&P(t,e,s),s};function X(i){return i!==void 0&&"xAxisTitleText"in i}var l=class extends a{get xAxisTitleText(){return h(0,this._config)}set xAxisTitleText(t){g(t,0,this._config)}};O([x],l.prototype,"xAxisTitleText");var _=Object.defineProperty,C=Object.getOwnPropertyDescriptor,D=(i,t,e,v)=>{for(var s=C(t,e),r=i.length-1,n;r>=0;r--)(n=i[r])&&(s=n(t,e,s)||s);return s&&_(t,e,s),s};function w(i){return i!==void 0&&"xAxisTitleVisibility"in i}var c=class extends a{get xAxisTitleVisibility(){return u(0,this._config)}set xAxisTitleVisibility(t){p({visibility:t,axisIndex:0,config:this._config})}};D([x],c.prototype,"xAxisTitleVisibility");function B(i){return i!==void 0&&"generateXAxisTitle"in i}var A=class extends a{generateXAxisTitle(){let t=this.layerInfo?.layerFieldsInfo;if(t===void 0)return"";if(T(this)||d(this))return o(t,this.xAxisField);if(y(this))return this.category!==f?o(t,this.category):"";if(m(this))return o(t,this.numericField);if(b(this)){let e=this.xTemporalBinning?.unit;return e!==void 0?this.commonStrings.utilsStrings.heatChartCalendarDatePartsUnits[e]:""}return""}};return{a:X,b:l,c:w,d:c,e:B,f:A}},a,c,e)
2
+ import{f as d,h as y,i as T,j as m,k as b}from"./O4TPXFX4.js";import e from"./EA2QTPDF.js";import c from"./UCB2BAAC.js";import a from"./FDSPMHM2.js";import{p as f}from"./43DLRSYB.js";export default $arcgis.t(([{ic:o},{d:a,e:x},{r:h,s:g,t:u,u:p}])=>{var P=Object.defineProperty,j=Object.getOwnPropertyDescriptor,O=(i,t,e,v)=>{for(var s=j(t,e),r=i.length-1,n;r>=0;r--)(n=i[r])&&(s=n(t,e,s)||s);return s&&P(t,e,s),s};function X(i){return i!==void 0&&"xAxisTitleText"in i}var l=class extends a{get xAxisTitleText(){return h(0,this._config)}set xAxisTitleText(t){g(t,0,this._config)}};O([x],l.prototype,"xAxisTitleText");var _=Object.defineProperty,C=Object.getOwnPropertyDescriptor,D=(i,t,e,v)=>{for(var s=C(t,e),r=i.length-1,n;r>=0;r--)(n=i[r])&&(s=n(t,e,s)||s);return s&&_(t,e,s),s};function w(i){return i!==void 0&&"xAxisTitleVisibility"in i}var c=class extends a{get xAxisTitleVisibility(){return u(0,this._config)}set xAxisTitleVisibility(t){p({visibility:t,axisIndex:0,config:this._config})}};D([x],c.prototype,"xAxisTitleVisibility");function B(i){return i!==void 0&&"generateXAxisTitle"in i}var A=class extends a{generateXAxisTitle(){let t=this.layerInfo?.layerFieldsInfo;if(t===void 0)return"";if(T(this)||d(this))return o(t,this.xAxisField);if(y(this))return this.category!==f?o(t,this.category):"";if(m(this))return o(t,this.numericField);if(b(this)){let e=this.xTemporalBinning?.unit;return e!==void 0?this.commonStrings.utilsStrings.heatChartCalendarDatePartsUnits[e]:""}return""}};return{a:X,b:l,c:w,d:c,e:B,f:A}},a,c,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./CPOQUGDB.js";import{G as f,I as c,c as i}from"./43DLRSYB.js";import{d}from"./NGXRBJKL.js";export default $arcgis.t(([{d:L,e:n}])=>{var v=Object.defineProperty,g=Object.getOwnPropertyDescriptor,y=(t,a,e,l)=>{for(var o=g(a,e),r=t.length-1,b;r>=0;r--)(b=t[r])&&(o=b(a,e,o)||o);return o&&v(a,e,o),o};function h(t){return t!==void 0&&"dataLabelsSymbol"in t}var m=(t,a)=>{if(a!==void 0)return t.series[a]?.dataLabels?.content;for(let e of t.series)if(e.dataLabels!==void 0)return e.dataLabels.content},p=(t,a,e)=>{let l=e!==void 0?[a.series[e]]:a.series;for(let o of l)o!==void 0&&((o.dataLabels===void 0||t===void 0)&&(o.dataLabels=c({text:"",visible:!0,font:f(i.DataLabels),type:i.DataLabels})),t!==void 0&&(o.dataLabels.content=d(t)))},s=class extends L{get dataLabelsSymbol(){return m(this._config)}set dataLabelsSymbol(a){p(a,this._config)}getDataLabelsSymbol(a){return m(this._config,a)}setDataLabelsSymbol(a,e){p(a,this._config,e)}};y([n],s.prototype,"dataLabelsSymbol");y([n],s.prototype,"setDataLabelsSymbol");return{a:h,b:s}},a)
2
+ import a from"./UCB2BAAC.js";import{G as f,I as c,c as i}from"./43DLRSYB.js";import{d}from"./NGXRBJKL.js";export default $arcgis.t(([{d:L,e:n}])=>{var v=Object.defineProperty,g=Object.getOwnPropertyDescriptor,y=(t,a,e,l)=>{for(var o=g(a,e),r=t.length-1,b;r>=0;r--)(b=t[r])&&(o=b(a,e,o)||o);return o&&v(a,e,o),o};function h(t){return t!==void 0&&"dataLabelsSymbol"in t}var m=(t,a)=>{if(a!==void 0)return t.series[a]?.dataLabels?.content;for(let e of t.series)if(e.dataLabels!==void 0)return e.dataLabels.content},p=(t,a,e)=>{let l=e!==void 0?[a.series[e]]:a.series;for(let o of l)o!==void 0&&((o.dataLabels===void 0||t===void 0)&&(o.dataLabels=c({text:"",visible:!0,font:f(i.DataLabels),type:i.DataLabels})),t!==void 0&&(o.dataLabels.content=d(t)))},s=class extends L{get dataLabelsSymbol(){return m(this._config)}set dataLabelsSymbol(a){p(a,this._config)}getDataLabelsSymbol(a){return m(this._config,a)}setDataLabelsSymbol(a,e){p(a,this._config,e)}};y([n],s.prototype,"dataLabelsSymbol");y([n],s.prototype,"setDataLabelsSymbol");return{a:h,b:s}},a)
package/dist/cdn/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as r}from"./OQ4IZ6O6.js";import{G as t,q as e}from"./SQ7EPQSM.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";var a=e(t,{"arcgis-chart":[()=>import("./R25QUDZ4.js"),"_commonStrings:,_messages:,actionMode,allowUsingObjectIdStat,animationEnabled,animationsEnabled,aria:,autoDestroyDisabled,autoDisposeChart,autoInverseDataLabelTextColor,calciteThemingCSSVariables:,chartIndex,chartLimits:,chartWillRender:,configurationEnabled,cursorRange,dataLabelFormatter:,disableInteractions,disableTogglingLegendItems,enableBetaFeatures,enableConfiguration,enableResponsiveFeatures,errorPolicy,featureIndex,filterByExtent,filterBySelection,filterByViewExtent,gaugeInnerLabelFormatter:,guideTooltipFormatter:,hideEmptySeries,hideLicenseWatermark,hideLoaderAnimation,hideUIMessages,hideZeroCountCategories,ignoreSmoothRenderingLimit,ignoreViewExtent,interactionsDisabled,layer:,layerFieldsChangePolicy,layerFilterChangePolicy,layerItemId,layerRendererChangePolicy,legendInteractionsDisabled,legendPosition,legendValueLabelFormatter:,legendVisibility,loaderColors:,mapLayerId,messageOverrides:,model:,nullAsValid,placeholder,popupTemplateFieldInfosEnabled,queueChartCreation,referenceElement,replaceNoValueCategoryWithZero,returnFeaturesExtent,returnSelectionIndexes,returnSelectionOIDs,rotated,rotation,runtimeDataFilters:,secondaryYAxisLabelFormatter:,selectionData:,selectionManager:,selectionTheme:,setTimeBinningInfoWhenNotProvided,showEmptySeries,showLicenseWatermark,showUIMessages,skipChartCreationQueue,syncChartsSelection,syncSelection,syncSelectionsBetweenChartAndLayerViewPolicy,syncViewSelection,syncViewTimeExtent,syncViewTimeZone,syncViewTimeZoneInclusionList:,timeZone,togglingLegendItemsDisabled,tooltipFormatter:,truncateLongTitles,updateSplitBySeries:,useAnimatedCharts,usePopupTemplateFieldsInfo,view:,viewTimeExtentChangePolicy,xAxisLabelFormatter:,yAxisLabelFormatter:,zeroCountAsValid;clearSelection,destroy,errorAlert,exportAsCSV,exportAsImage,loadModel,notify,refresh,resetZoom,switchSelection;applySelectionFromSelectionManager"],"arcgis-charts-action-bar":[()=>import("./4UL2F4EM.js"),"_messages:,actionBarSelectionMode,chartElement:,chartType,clearSelectionActive,clearSelectionDisabled,clearSelectionState,clearSelectionTitle,clearSelectionToggle,commonStrings:,csvExportExclusionList:,disableCSVExportForChartTypes:,editChartActive,editChartEnabled,editChartState,editChartTitle,editChartToggle,expanded,exportActionDisabled,exportActionState,exportAsCSVDisabled,exportAsCSVState,exportAsCSVTitle,exportAsImageDisabled,exportAsImageState,exportAsImageTitle,filterByExtentState,filterByExtentTitle,filterByExtentToggle,filterBySelectionActive,filterBySelectionDisabled,filterBySelectionState,filterBySelectionTitle,filterBySelectionToggle,filterByViewExtentActive,filterByViewExtentDisabled,filterByViewExtentTitle,forceDisableActions,fullExtentActive,fullExtentDisabled,fullExtentState,fullExtentTitle,fullExtentToggle,hiddenActions:,legendActive,legendDisabled,legendState,legendTitle,legendToggle,messageOverrides:,rotateChartActive,rotateChartDisabled,rotateChartState,rotateChartTitle,rotateChartToggle,selectionActive,selectionDisabled,selectionState,selectionTitle,selectionToggle,switchSelectionActive,switchSelectionDisabled,switchSelectionState,switchSelectionTitle,switchSelectionToggle,zoomActive,zoomDisabled,zoomState,zoomTitle,zoomToggle"],"arcgis-charts-config-axes":[()=>import("./VVI23DNY.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,messageOverrides:,model:,open,showEnableXLogOption,showEnableYLogOption,showMaxXBoundOption,showMaxYBoundOption,showMinXBoundOption,showMinYBoundOption"],"arcgis-charts-config-axis":[()=>import("./L4YYKWRQ.js"),"axisTitle,dataMaxValue,dataMinValue,initialMaxBound,initialMinBound,isXAxis,maxBoundMaxLimit,maxBoundMinLimit,messageOverrides:,minBoundMaxLimit,minBoundMinLimit,model:,showEnableLogOption,showMaxBoundOption,showMinBoundOption"],"arcgis-charts-config-bar-chart":[()=>import("./3LH2CN6Q.js"),"calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,timeZone,usePopupTemplateFieldsInfo"],"arcgis-charts-config-bar-chart-data":[()=>import("./7DV6TWSF.js"),"layerFieldsInfo:,messageOverrides:,model:,open"],"arcgis-charts-config-bar-chart-popover":[()=>import("./V46ETNB6.js"),"contentKind,headingTitle,isCustomSortDisabled,isNoAggregationDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-bar-chart-series":[()=>import("./FXZXDQFC.js"),"activeColorMatch,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-bar-chart-series-popover":[()=>import("./5MH2LKNP.js"),"messageOverrides:,nullCategory:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-box-plot":[()=>import("./GX6K6YO6.js"),"calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-box-plot-data":[()=>import("./TMW23GBP.js"),"layerFieldsInfo:,messageOverrides:,model:"],"arcgis-charts-config-box-plot-popover":[()=>import("./HEY5AJW5.js"),"contentKind,headingTitle,isCustomSortDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-box-plot-series":[()=>import("./KRT3ZCQR.js"),"activeColorMatch,configSeriesOpen,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-box-plot-series-popover":[()=>import("./225PWQD7.js"),"isLineSymbol,labelCanBeConfigured,messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedLineStyle,selectedLineWidth,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-category-format":[()=>import("./7AWQQJBB.js"),"categoryFormat:,messageOverrides:"],"arcgis-charts-config-chart-rename-popover":[()=>import("./5FF4FYK6.js"),"messageOverrides:,name,open,referenceElement:;reposition"],"arcgis-charts-config-color-style":[()=>import("./SP26MTRQ.js"),"enableClose,header,messageOverrides:,open,selectedColor:"],"arcgis-charts-config-colors":[()=>import("./ZIEKY7ZG.js"),"heading,messageOverrides:,rgba:"],"arcgis-charts-config-create-flow":[()=>import("./HNLZZ2CO.js"),"activeLayerId,calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,chartData:,close,disableEditing,filterBySelection,headerTitle,layerList:,messageOverrides:,modelList:,panelNumber,popoverPlacement,popupTemplateFieldInfosEnabled,r2,selectedChartId,seriesColor:,syncChartsToLayers,timeZone,usePopupTemplateFieldsInfo,view:;setFocus"],"arcgis-charts-config-field-picker":[()=>import("./22LJ237B.js"),"disabled,invalid,label"],"arcgis-charts-config-font-style":[()=>import("./ZUHDYTJV.js"),"enableClose,fontStyle:,header,messageOverrides:,open"],"arcgis-charts-config-format":[()=>import("./XCW6AOVD.js"),"messageOverrides:,model:"],"arcgis-charts-config-format-popover":[()=>import("./5H5BOE5X.js"),"messageOverrides:,open,placement,referenceElement:,selectedElement:;reposition"],"arcgis-charts-config-general":[()=>import("./O2E5JGTW.js"),"messageOverrides:,model:,open"],"arcgis-charts-config-guide":[()=>import("./EBVHLPQV.js"),"calculatedMinMaxBounds:,index,latestGuidePosition,messageOverrides:,model:,orientation,timeZone"],"arcgis-charts-config-guide-popover":[()=>import("./HO4EEHBU.js"),"messageOverrides:,open,placement,referenceElement:,selectedElement:;reposition"],"arcgis-charts-config-guides":[()=>import("./B3VW6EKS.js"),"calculatedMinMaxBounds:,enableXAxisGuide,enableYAxisGuide,messageOverrides:,model:,open,timeZone"],"arcgis-charts-config-guides-type-popover":[()=>import("./QT6SSNCU.js"),"enableXAxisGuide,enableYAxisGuide,messageOverrides:,open,placement,referenceElement:;reposition"],"arcgis-charts-config-heat-chart":[()=>import("./TL3GWVJX.js"),"layer:,model:,page,popupTemplateFieldInfosEnabled,usePopupTemplateFieldsInfo"],"arcgis-charts-config-heat-chart-data":[()=>import("./CHLGUEXO.js"),"layerFieldsInfo:,messageOverrides:,model:,open"],"arcgis-charts-config-heat-chart-popover":[()=>import("./JNXHOFW2.js"),"colorRamps:,contentKind,headingTitle,isFlipped,layerFieldsInfo:,messageOverrides:,model:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-histogram":[()=>import("./K7TLWR5W.js"),"calculatedMinMaxBounds:,chartData:,layer:,model:,page,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-histogram-data":[()=>import("./QINQQZYJ.js"),"countValue,layerFieldsInfo:,maxValue,meanValue,medianValue,messageOverrides:,minValue,model:,nullsValue,open,selectedOverlaySymbolType,standardDevValue,sumValue"],"arcgis-charts-config-histogram-popover":[()=>import("./FLUZOIAQ.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,placement,referenceElement:,selectedBinColor:,selectedNumericField,selectedOverlaySymbol:,selectedOverlaySymbolType,selectedTransformationType;reposition"],"arcgis-charts-config-invalid-input-message":[()=>import("./4DVYBRML.js"),"invalidInputMessage,isInvalid"],"arcgis-charts-config-line-chart":[()=>import("./TVK5YYZV.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,timeZone,usePopupTemplateFieldsInfo"],"arcgis-charts-config-line-chart-data":[()=>import("./HYUNZPWJ.js"),"layerFieldsInfo:,messageOverrides:,model:,resetTimeInterval:"],"arcgis-charts-config-line-chart-popover":[()=>import("./WAGEOSPA.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-line-chart-series":[()=>import("./JW4EWJ2J.js"),"activeColorMatch,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-line-chart-series-popover":[()=>import("./KGIECHB3.js"),"messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedLineStyle,selectedLineWidth,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-line-style":[()=>import("./E5Q4RLKF.js"),"enableClose,header,lineStyle:,messageOverrides:,open,usePanel"],"arcgis-charts-config-number-format":[()=>import("./VFOCQSCU.js"),"messageOverrides:,numberFormat:"],"arcgis-charts-config-pie-chart":[()=>import("./AZWPSIV2.js"),"calculatedMinMaxBounds:,chartData:,filterBySelection,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-pie-chart-data":[()=>import("./2E7Y73KW.js"),"layerFieldsInfo:,messageOverrides:,model:"],"arcgis-charts-config-pie-chart-popover":[()=>import("./7EMFD4UL.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-pie-chart-slices":[()=>import("./32PSVIYD.js"),"chartData:,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-pie-chart-slices-popover":[()=>import("./IV6FB63F.js"),"messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSliceId;reposition"],"arcgis-charts-config-scatter-plot":[()=>import("./HRZMQXWG.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,r2,usePopupTemplateFieldsInfo,view:"],"arcgis-charts-config-scatter-plot-aoi":[()=>import("./AAWNLLJP.js"),"messageOverrides:,tool,view:"],"arcgis-charts-config-scatter-plot-data":[()=>import("./22W4DAQI.js"),"isTableLayer,layerFieldsInfo:,messageOverrides:,model:,r2,view:"],"arcgis-charts-config-scatter-plot-popover":[()=>import("./EKWPHQPE.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,placement,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-select-chart-type-popover":[()=>import("./JTDNM2UW.js"),"headerTitle,layerId,layerType,messageOverrides:,open,popoverPlacement,referenceElement:,selectedModelType,supportedChartTypes:;reposition"],"arcgis-charts-config-view-charts":[()=>import("./CXWV2XJ3.js"),"disableEditing,layer:,messageOverrides:,modelList:,noGroup,selectedChartId"],"arcgis-charts-info-modal":[()=>import("./PV5ZIYPR.js"),"calciteThemeColors:,heading,loaderColors:,message,showLoader"]});a({resourcesUrl:import.meta.url});var i=new CSSStyleSheet;i.replaceSync('@layer{:not([hydrated]):is(arcgis-chart,arcgis-charts-action-bar){visibility:hidden}:root,:host{--arcgis-charts-config-calcite-block-default-width: 100%;--arcgis-charts-config-calcite-block-default-height: auto;--arcgis-charts-config-default-max-width: 100%;--arcgis-charts-config-default-max-height: 100%;--arcgis-charts-background: rgb(223, 223, 223);--calcite-ui-foreground: rgb(223, 223, 223);--calcite-app-background-content: rgb(0, 0, 0, 0);--config-width: 40%;--config-height: 600px;--placement-direction: "row"}:root{--arcgis-charts-curtain-opacity: 1;--arcgis-charts-popup-ol-padding: 2em;--arcgis-charts-popup-body-padding-left: 0;--arcgis-charts-default-width: 100%;--arcgis-charts-default-height: 100%;--arcgis-charts-config-calcite-block-default-margin: 0;--arcgis-charts-config-margin-minor: .5rem;--arcgis-charts-config-margin-major: 1rem;--arcgis-charts-config-popover-pick-list-max-width: 314px;--arcgis-charts-inter-section-margin: .9rem;--arcgis-charts-intra-section-margin: .3rem;--arcgis-charts-top-section-margin: .6rem;--arcgis-charts-input-height: 2.4rem;--arcgis-charts-panel-padding: 0 1rem;--arcgis-charts-border-radius: .2rem;--arcgis-charts-input-background: #ffffff;--arcgis-charts-border: #eaeaea;--arcgis-charts-border-hover: #dfdfdf;--arcgis-charts-border-invalid: red;--arcgis-charts-background-clear: transparent;--arcgis-charts-dim-text: rgb(150, 150, 150);--arcgis-charts-side-spacing: 1rem;--arcgis-charts-side-spacing-three-quarters: calc(var(--arcgis-charts-side-spacing) * 3 / 4);--arcgis-charts-side-spacing-half: calc(var(--arcgis-charts-side-spacing) / 2);--arcgis-charts-side-spacing-third: calc(var(--arcgis-charts-side-spacing) / 3);--arcgis-charts-side-spacing-quarter: calc(var(--arcgis-charts-side-spacing) / 4);--arcgis-charts-side-spacing-eighth: calc(var(--arcgis-charts-side-spacing) / 8);--arcgis-charts-side-spacing-plus-half: calc(var(--arcgis-charts-side-spacing) * 1.5);--arcgis-charts-side-spacing-double: calc(var(--arcgis-charts-side-spacing) * 2)}}');document.adoptedStyleSheets=[...document.adoptedStyleSheets,i];export{r as createModel};window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r,p,j,i=(a.importMap??={}).imports??={})=>{"model/shared/setup-utils".split(",").map(e=>i[p+e+j]=i[p+e]=import.meta.resolve("./"+e+j));a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,t,"@arcgis/charts-components/",".js");(($arcgis.importMap??={}).imports??={})["@arcgis/charts-components"]=import.meta.url
2
+ import{a as r}from"./JXRE2WQR.js";import{G as t,q as e}from"./XIITX6LZ.js";import"./64L7VJJK.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";var a=e(t,{"arcgis-chart":[()=>import("./GK3LWYI2.js"),"_commonStrings:,_messages:,actionMode,allowUsingObjectIdStat,animationEnabled,animationsEnabled,aria:,autoDestroyDisabled,autoDisposeChart,autoInverseDataLabelTextColor,calciteThemingCSSVariables:,chartIndex,chartLimits:,chartWillRender:,configurationEnabled,cursorRange,dataLabelFormatter:,disableInteractions,disableTogglingLegendItems,enableBetaFeatures,enableConfiguration,enableResponsiveFeatures,errorPolicy,featureIndex,filterByExtent,filterBySelection,filterByViewExtent,gaugeInnerLabelFormatter:,guideTooltipFormatter:,hideEmptySeries,hideLicenseWatermark,hideLoaderAnimation,hideUIMessages,hideZeroCountCategories,ignoreSmoothRenderingLimit,ignoreViewExtent,interactionsDisabled,layer:,layerFieldsChangePolicy,layerFilterChangePolicy,layerItemId,layerRendererChangePolicy,legendInteractionsDisabled,legendPosition,legendValueLabelFormatter:,legendVisibility,loaderColors:,mapLayerId,messageOverrides:,model:,nullAsValid,placeholder,popupTemplateFieldInfosEnabled,queueChartCreation,referenceElement,replaceNoValueCategoryWithZero,returnFeaturesExtent,returnSelectionIndexes,returnSelectionOIDs,rotated,rotation,runtimeDataFilters:,secondaryYAxisLabelFormatter:,selectionData:,selectionManager:,selectionTheme:,setTimeBinningInfoWhenNotProvided,showEmptySeries,showLicenseWatermark,showUIMessages,skipChartCreationQueue,syncChartsSelection,syncSelection,syncSelectionsBetweenChartAndLayerViewPolicy,syncViewSelection,syncViewTimeExtent,syncViewTimeZone,syncViewTimeZoneInclusionList:,timeZone,togglingLegendItemsDisabled,tooltipFormatter:,truncateLongTitles,updateSplitBySeries:,useAnimatedCharts,usePopupTemplateFieldsInfo,view:,viewTimeExtentChangePolicy,xAxisLabelFormatter:,yAxisLabelFormatter:,zeroCountAsValid;clearSelection,destroy,errorAlert,exportAsCSV,exportAsImage,loadModel,notify,refresh,resetZoom,switchSelection;applySelectionFromSelectionManager"],"arcgis-charts-action-bar":[()=>import("./KUDV2WGH.js"),"_messages:,actionBarSelectionMode,chartElement:,chartType,clearSelectionActive,clearSelectionDisabled,clearSelectionState,clearSelectionTitle,clearSelectionToggle,commonStrings:,csvExportExclusionList:,disableCSVExportForChartTypes:,editChartActive,editChartEnabled,editChartState,editChartTitle,editChartToggle,expanded,exportActionDisabled,exportActionState,exportAsCSVDisabled,exportAsCSVState,exportAsCSVTitle,exportAsImageDisabled,exportAsImageState,exportAsImageTitle,filterByExtentState,filterByExtentTitle,filterByExtentToggle,filterBySelectionActive,filterBySelectionDisabled,filterBySelectionState,filterBySelectionTitle,filterBySelectionToggle,filterByViewExtentActive,filterByViewExtentDisabled,filterByViewExtentTitle,forceDisableActions,fullExtentActive,fullExtentDisabled,fullExtentState,fullExtentTitle,fullExtentToggle,hiddenActions:,legendActive,legendDisabled,legendState,legendTitle,legendToggle,messageOverrides:,rotateChartActive,rotateChartDisabled,rotateChartState,rotateChartTitle,rotateChartToggle,selectionActive,selectionDisabled,selectionState,selectionTitle,selectionToggle,switchSelectionActive,switchSelectionDisabled,switchSelectionState,switchSelectionTitle,switchSelectionToggle,zoomActive,zoomDisabled,zoomState,zoomTitle,zoomToggle"],"arcgis-charts-config-axes":[()=>import("./STMML4MI.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,messageOverrides:,model:,open,showEnableXLogOption,showEnableYLogOption,showMaxXBoundOption,showMaxYBoundOption,showMinXBoundOption,showMinYBoundOption"],"arcgis-charts-config-axis":[()=>import("./SS7GGYHT.js"),"axisTitle,dataMaxValue,dataMinValue,initialMaxBound,initialMinBound,isXAxis,maxBoundMaxLimit,maxBoundMinLimit,messageOverrides:,minBoundMaxLimit,minBoundMinLimit,model:,showEnableLogOption,showMaxBoundOption,showMinBoundOption"],"arcgis-charts-config-bar-chart":[()=>import("./FKL4VDVU.js"),"calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,timeZone,usePopupTemplateFieldsInfo"],"arcgis-charts-config-bar-chart-data":[()=>import("./UE7EIFB3.js"),"layerFieldsInfo:,messageOverrides:,model:,open"],"arcgis-charts-config-bar-chart-popover":[()=>import("./3ZJ6LPKN.js"),"contentKind,headingTitle,isCustomSortDisabled,isNoAggregationDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-bar-chart-series":[()=>import("./2SRLYXXC.js"),"activeColorMatch,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-bar-chart-series-popover":[()=>import("./NNMZZZUF.js"),"messageOverrides:,nullCategory:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-box-plot":[()=>import("./VH6VQ37J.js"),"calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-box-plot-data":[()=>import("./K7MPLY6I.js"),"layerFieldsInfo:,messageOverrides:,model:"],"arcgis-charts-config-box-plot-popover":[()=>import("./HMP2CHBB.js"),"contentKind,headingTitle,isCustomSortDisabled,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-box-plot-series":[()=>import("./XJMA365C.js"),"activeColorMatch,configSeriesOpen,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-box-plot-series-popover":[()=>import("./KFOQPBDA.js"),"isLineSymbol,labelCanBeConfigured,messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedLineStyle,selectedLineWidth,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-category-format":[()=>import("./7YHWGOAD.js"),"categoryFormat:,messageOverrides:"],"arcgis-charts-config-chart-rename-popover":[()=>import("./SF2ORJF7.js"),"messageOverrides:,name,open,referenceElement:;reposition"],"arcgis-charts-config-color-style":[()=>import("./DV4E5BS7.js"),"enableClose,header,messageOverrides:,open,selectedColor:"],"arcgis-charts-config-colors":[()=>import("./FG6MPOF7.js"),"heading,messageOverrides:,rgba:"],"arcgis-charts-config-create-flow":[()=>import("./G7WKKRGY.js"),"activeLayerId,calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,chartData:,close,disableEditing,filterBySelection,headerTitle,layerList:,messageOverrides:,modelList:,panelNumber,popoverPlacement,popupTemplateFieldInfosEnabled,r2,selectedChartId,seriesColor:,syncChartsToLayers,timeZone,usePopupTemplateFieldsInfo,view:;setFocus"],"arcgis-charts-config-field-picker":[()=>import("./XDHCY3VP.js"),"disabled,invalid,label"],"arcgis-charts-config-font-style":[()=>import("./JZHNQWPY.js"),"enableClose,fontStyle:,header,messageOverrides:,open"],"arcgis-charts-config-format":[()=>import("./GX5XKLFE.js"),"messageOverrides:,model:"],"arcgis-charts-config-format-popover":[()=>import("./4LTBO3OH.js"),"messageOverrides:,open,placement,referenceElement:,selectedElement:;reposition"],"arcgis-charts-config-general":[()=>import("./H4GN7TDZ.js"),"messageOverrides:,model:,open"],"arcgis-charts-config-guide":[()=>import("./EWG2EF2Z.js"),"calculatedMinMaxBounds:,index,latestGuidePosition,messageOverrides:,model:,orientation,timeZone"],"arcgis-charts-config-guide-popover":[()=>import("./PMR2IBGO.js"),"messageOverrides:,open,placement,referenceElement:,selectedElement:;reposition"],"arcgis-charts-config-guides":[()=>import("./VU4U6YMJ.js"),"calculatedMinMaxBounds:,enableXAxisGuide,enableYAxisGuide,messageOverrides:,model:,open,timeZone"],"arcgis-charts-config-guides-type-popover":[()=>import("./DZBOEW4R.js"),"enableXAxisGuide,enableYAxisGuide,messageOverrides:,open,placement,referenceElement:;reposition"],"arcgis-charts-config-heat-chart":[()=>import("./WLXVOKTG.js"),"layer:,model:,page,popupTemplateFieldInfosEnabled,usePopupTemplateFieldsInfo"],"arcgis-charts-config-heat-chart-data":[()=>import("./PZKLLW46.js"),"layerFieldsInfo:,messageOverrides:,model:,open"],"arcgis-charts-config-heat-chart-popover":[()=>import("./SNIBCBGO.js"),"colorRamps:,contentKind,headingTitle,isFlipped,layerFieldsInfo:,messageOverrides:,model:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-histogram":[()=>import("./44PYM2TJ.js"),"calculatedMinMaxBounds:,chartData:,layer:,model:,page,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-histogram-data":[()=>import("./TX2VRZUB.js"),"countValue,layerFieldsInfo:,maxValue,meanValue,medianValue,messageOverrides:,minValue,model:,nullsValue,open,selectedOverlaySymbolType,standardDevValue,sumValue"],"arcgis-charts-config-histogram-popover":[()=>import("./NAFR5NQW.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,placement,referenceElement:,selectedBinColor:,selectedNumericField,selectedOverlaySymbol:,selectedOverlaySymbolType,selectedTransformationType;reposition"],"arcgis-charts-config-invalid-input-message":[()=>import("./TPIAUZXB.js"),"invalidInputMessage,isInvalid"],"arcgis-charts-config-line-chart":[()=>import("./26LD3JDE.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,timeZone,usePopupTemplateFieldsInfo"],"arcgis-charts-config-line-chart-data":[()=>import("./644ZYZSU.js"),"layerFieldsInfo:,messageOverrides:,model:,resetTimeInterval:"],"arcgis-charts-config-line-chart-popover":[()=>import("./JDTF4G67.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-line-chart-series":[()=>import("./QEDGL5JC.js"),"activeColorMatch,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-line-chart-series-popover":[()=>import("./UMCC77N4.js"),"messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedLineStyle,selectedLineWidth,selectedName,selectedSeriesIndex;reposition"],"arcgis-charts-config-line-style":[()=>import("./KMXPTRVD.js"),"enableClose,header,lineStyle:,messageOverrides:,open,usePanel"],"arcgis-charts-config-number-format":[()=>import("./7U7GWGJK.js"),"messageOverrides:,numberFormat:"],"arcgis-charts-config-pie-chart":[()=>import("./E4PHGP2D.js"),"calculatedMinMaxBounds:,chartData:,filterBySelection,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,seriesColor:,usePopupTemplateFieldsInfo"],"arcgis-charts-config-pie-chart-data":[()=>import("./6QBVLG2I.js"),"layerFieldsInfo:,messageOverrides:,model:"],"arcgis-charts-config-pie-chart-popover":[()=>import("./C3JQWRBV.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-pie-chart-slices":[()=>import("./JR7ZVPCH.js"),"chartData:,messageOverrides:,model:,popoverPlacement"],"arcgis-charts-config-pie-chart-slices-popover":[()=>import("./7BRKP3WF.js"),"messageOverrides:,open,placement,referenceElement:,selectedColor:,selectedName,selectedSliceId;reposition"],"arcgis-charts-config-scatter-plot":[()=>import("./7YKEPQPV.js"),"calculatedDataMinMaxBounds:,calculatedMinMaxBounds:,layer:,model:,page,popoverPlacement,popupTemplateFieldInfosEnabled,r2,usePopupTemplateFieldsInfo,view:"],"arcgis-charts-config-scatter-plot-aoi":[()=>import("./FDZYFCPS.js"),"messageOverrides:,tool,view:"],"arcgis-charts-config-scatter-plot-data":[()=>import("./LEYLW7KZ.js"),"isTableLayer,layerFieldsInfo:,messageOverrides:,model:,r2,view:"],"arcgis-charts-config-scatter-plot-popover":[()=>import("./MNOE2KFI.js"),"contentKind,headingTitle,layerFieldsInfo:,messageOverrides:,open,placement,referenceElement:,selectedContent;reposition"],"arcgis-charts-config-select-chart-type-popover":[()=>import("./Q7WV4V3K.js"),"headerTitle,layerId,layerType,messageOverrides:,open,popoverPlacement,referenceElement:,selectedModelType,supportedChartTypes:;reposition"],"arcgis-charts-config-view-charts":[()=>import("./7BNWTGZF.js"),"disableEditing,layer:,messageOverrides:,modelList:,noGroup,selectedChartId"],"arcgis-charts-info-modal":[()=>import("./A7TCEMYA.js"),"calciteThemeColors:,heading,loaderColors:,message,showLoader"]});a({resourcesUrl:import.meta.url});var i=new CSSStyleSheet;i.replaceSync('@layer{:not([hydrated]):is(arcgis-chart,arcgis-charts-action-bar){visibility:hidden}:root,:host{--arcgis-charts-config-calcite-block-default-width: 100%;--arcgis-charts-config-calcite-block-default-height: auto;--arcgis-charts-config-default-max-width: 100%;--arcgis-charts-config-default-max-height: 100%;--arcgis-charts-background: rgb(223, 223, 223);--calcite-ui-foreground: rgb(223, 223, 223);--calcite-app-background-content: rgb(0, 0, 0, 0);--config-width: 40%;--config-height: 600px;--placement-direction: "row"}:root{--arcgis-charts-curtain-opacity: 1;--arcgis-charts-popup-ol-padding: 2em;--arcgis-charts-popup-body-padding-left: 0;--arcgis-charts-default-width: 100%;--arcgis-charts-default-height: 100%;--arcgis-charts-config-calcite-block-default-margin: 0;--arcgis-charts-config-margin-minor: .5rem;--arcgis-charts-config-margin-major: 1rem;--arcgis-charts-config-popover-pick-list-max-width: 314px;--arcgis-charts-inter-section-margin: .9rem;--arcgis-charts-intra-section-margin: .3rem;--arcgis-charts-top-section-margin: .6rem;--arcgis-charts-input-height: 2.4rem;--arcgis-charts-panel-padding: 0 1rem;--arcgis-charts-border-radius: .2rem;--arcgis-charts-input-background: #ffffff;--arcgis-charts-border: #eaeaea;--arcgis-charts-border-hover: #dfdfdf;--arcgis-charts-border-invalid: red;--arcgis-charts-background-clear: transparent;--arcgis-charts-dim-text: rgb(150, 150, 150);--arcgis-charts-side-spacing: 1rem;--arcgis-charts-side-spacing-three-quarters: calc(var(--arcgis-charts-side-spacing) * 3 / 4);--arcgis-charts-side-spacing-half: calc(var(--arcgis-charts-side-spacing) / 2);--arcgis-charts-side-spacing-third: calc(var(--arcgis-charts-side-spacing) / 3);--arcgis-charts-side-spacing-quarter: calc(var(--arcgis-charts-side-spacing) / 4);--arcgis-charts-side-spacing-eighth: calc(var(--arcgis-charts-side-spacing) / 8);--arcgis-charts-side-spacing-plus-half: calc(var(--arcgis-charts-side-spacing) * 1.5);--arcgis-charts-side-spacing-double: calc(var(--arcgis-charts-side-spacing) * 2)}}');document.adoptedStyleSheets=[...document.adoptedStyleSheets,i];export{r as createModel};window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r,p,j,i=(a.importMap??={}).imports??={})=>{"model/shared/setup-utils".split(",").map(e=>i[p+e+j]=i[p+e]=import.meta.resolve("./"+e+j));a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,t,"@arcgis/charts-components/",".js");(($arcgis.importMap??={}).imports??={})["@arcgis/charts-components"]=import.meta.url
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a}from"../../OQ4IZ6O6.js";import"../../64L7VJJK.js";import"../../QP5UAIC6.js";import"../../Z5QPCSUQ.js";import"../../QVG3TOL4.js";import"../../BYSUABOV.js";export{a as createModel};
2
+ import{a}from"../../JXRE2WQR.js";import"../../64L7VJJK.js";import"../../QP5UAIC6.js";import"../../Z5QPCSUQ.js";import"../../QVG3TOL4.js";import"../../BYSUABOV.js";export{a as createModel};
@@ -2,7 +2,7 @@
2
2
  import { g as m } from "./series-types.js";
3
3
  import { i as p } from "./rotated-state.js";
4
4
  import { a } from "./chart-object-literals.js";
5
- import { c2 as u, ae as V, r as w, y as F, l as D, c3 as v, c4 as I, V as A } from "./index.js";
5
+ import { c3 as u, af as w, r as V, y as F, l as D, c4 as v, c5 as I, W as A } from "./index.js";
6
6
  import { D as e, c as o, A as n } from "./index4.js";
7
7
  import { i as C } from "./index3.js";
8
8
  import { i as g, j as L } from "./type-guards.js";
@@ -77,7 +77,7 @@ const T = [
77
77
  e.SwitchSelection,
78
78
  e.ExportAsImage,
79
79
  e.ExportAsCSV
80
- ], z = [
80
+ ], W = [
81
81
  e.EditChart,
82
82
  e.Legend,
83
83
  e.FilterBySelection,
@@ -89,7 +89,7 @@ const T = [
89
89
  e.SwitchSelection,
90
90
  e.ExportAsImage,
91
91
  e.ExportAsCSV
92
- ], W = [
92
+ ], z = [
93
93
  e.EditChart,
94
94
  e.Legend,
95
95
  e.RotateChart,
@@ -121,9 +121,9 @@ function U(s) {
121
121
  case a.HistogramSeries:
122
122
  return H;
123
123
  case a.ScatterSeries:
124
- return z;
125
- case a.BoxPlotSeries:
126
124
  return W;
125
+ case a.BoxPlotSeries:
126
+ return z;
127
127
  case a.GaugeSeries:
128
128
  return G;
129
129
  case a.HeatSeries:
@@ -147,13 +147,13 @@ function j(s) {
147
147
  t.hiddenActions = x.filter((b) => b !== e.EditChart);
148
148
  }
149
149
  t.editChartState = i.enableConfiguration || i.configurationEnabled ? o.Enabled : o.Disabled, t.editChartEnabled = !!(i.enableConfiguration || i.configurationEnabled);
150
- const S = l && V(l.series);
150
+ const S = l && w(l.series);
151
151
  t.legendState = S ? o.Enabled : o.Disabled, t.legendDisabled = !S;
152
152
  const y = g(i?.model) && L(i?.model) ? i.model.legendVisibility : d;
153
153
  t.legendToggle = S && y ? n.Active : n.Inactive, t.legendActive = !!(S && y);
154
154
  const B = g(i?.model) && p(i.model) ? i.model.rotated : l?.rotated;
155
155
  t.rotateChartToggle = B ? n.Active : n.Inactive, t.rotateChartActive = !!B;
156
- const f = w(l?.series ?? []) === F.PieFromFields, E = g(i.model) ? D(i.model.layer) : v(i.model);
156
+ const f = V(l?.series ?? []) === F.PieFromFields, E = g(i.model) ? D(i.model.layer) : v(i.model);
157
157
  t.filterBySelectionState = !E && !f && (i.filterBySelection || !c && (!i.filterByExtent || !i.filterByViewExtent)) ? o.Enabled : o.Disabled, t.filterBySelectionDisabled = !(!E && !f && (i.filterBySelection || !c && (!i.filterByExtent || !i.filterByViewExtent))), t.filterBySelectionToggle = i.filterBySelection ? n.Active : n.Inactive, t.filterBySelectionActive = !!i.filterBySelection;
158
158
  const h = E && t.chartType === a.ScatterSeries && I(l);
159
159
  t.filterByExtentState = (i.filterByViewExtent || !i.filterBySelection) && !h ? o.Enabled : o.Disabled, t.filterByViewExtentDisabled = t.filterByExtentState === o.Disabled, t.filterByExtentToggle = i.filterByViewExtent ? n.Active : n.Inactive, t.filterByViewExtentActive = !!i.filterByViewExtent, t.zoomState = i.filterBySelection ? o.Disabled : o.Enabled, t.zoomDisabled = !!i.filterBySelection, t.zoomToggle = i.actionMode === A.Zoom ? n.Active : n.Inactive, t.zoomActive = i.actionMode === A.Zoom, t.selectionState = i.filterBySelection ? o.Disabled : o.Enabled, t.selectionDisabled = !!i.filterBySelection, t.selectionToggle = (i.actionMode ?? t.actionBarSelectionMode) === t.actionBarSelectionMode ? n.Active : n.Inactive, t.selectionActive = (i.actionMode ?? t.actionBarSelectionMode) === t.actionBarSelectionMode, t.clearSelectionState = c ? o.Disabled : o.Enabled, t.clearSelectionDisabled = !!c, t.fullExtentState = i.filterBySelection ? o.Disabled : o.Enabled, t.fullExtentDisabled = !!i.filterBySelection, t.switchSelectionState = i.filterBySelection ? o.Disabled : o.Enabled, t.switchSelectionDisabled = !!i.filterBySelection, t.exportActionState = r || C(l) ? o.Disabled : o.Enabled, t.exportActionDisabled = !!(r || C(l));
@@ -3,7 +3,7 @@ import { m as d } from "./model-setter.js";
3
3
  import { g as h, s as S, a as m, b as u, W as p } from "./rounded-corners.js";
4
4
  import { S as y, s as v, a as b, b as C } from "./serial-chart-model.js";
5
5
  import { h as c } from "./serial-chart-data.js";
6
- import { u as n, C as O, eM as _ } from "./index.js";
6
+ import { u as n, C as O, eN as _ } from "./index.js";
7
7
  import { f as g } from "./data.js";
8
8
  import { a as I } from "./chart-object-literals.js";
9
9
  import { ao as L, a3 as z, g as B, r as H } from "./index2.js";
@@ -144,8 +144,8 @@ l([
144
144
  l([
145
145
  d
146
146
  ], o.prototype, "resetSeriesStyling");
147
- const M = [p];
148
- _(o, M);
147
+ const N = [p];
148
+ _(o, N);
149
149
  export {
150
150
  o as BarChartModel
151
151
  };