@arcgis/charts-components 5.2.1 → 5.2.2

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 (109) hide show
  1. package/dist/cdn/{44OIF7FS.js → 233QAVL2.js} +1 -1
  2. package/dist/cdn/{PQ2EO3DG.js → 2FCUHT32.js} +1 -1
  3. package/dist/cdn/{5XHNYAC6.js → 2FNM7LTO.js} +1 -1
  4. package/dist/cdn/{EQUXJPPN.js → 2MPB2XZE.js} +1 -1
  5. package/dist/cdn/{KUYJY3M3.js → 33GJB5E4.js} +1 -1
  6. package/dist/cdn/{XSV3OOUO.js → 3HLITCTE.js} +1 -1
  7. package/dist/cdn/{2MBO3UD6.js → 3JRDVKJA.js} +1 -1
  8. package/dist/cdn/{MVOEDTNZ.js → 3WNW44CU.js} +1 -1
  9. package/dist/cdn/{4PJ37VNO.js → 4R4V25QG.js} +1 -1
  10. package/dist/cdn/{LBKKWTFX.js → 54DJH26Q.js} +1 -1
  11. package/dist/cdn/{NU42LY2P.js → 5CDCBHUV.js} +1 -1
  12. package/dist/cdn/{WTXNKC2H.js → 5H4GHC76.js} +1 -1
  13. package/dist/cdn/{6DU55O6U.js → 5RZDY4EP.js} +1 -1
  14. package/dist/cdn/{E23L4XK5.js → 63IOSB5X.js} +1 -1
  15. package/dist/cdn/{R5ZE6LNV.js → 6HHPPOBU.js} +1 -1
  16. package/dist/cdn/{SKITJFGE.js → 6OYCHZM4.js} +1 -1
  17. package/dist/cdn/{YINDFEQ3.js → 6PIABFQA.js} +1 -1
  18. package/dist/cdn/{ZYO5HXYN.js → 6S6OEV5K.js} +1 -1
  19. package/dist/cdn/{O2AIMGBR.js → 77G2JZVN.js} +1 -1
  20. package/dist/cdn/{GG6H4ESM.js → 7FHPITRG.js} +1 -1
  21. package/dist/cdn/{HJNZHZEY.js → A2VHCG23.js} +1 -1
  22. package/dist/cdn/{BLGYF7UQ.js → AGLVYLFP.js} +1 -1
  23. package/dist/cdn/{HY3TC2V7.js → AWYUPUUD.js} +1 -1
  24. package/dist/cdn/{V3AR6XAZ.js → AYAESDR6.js} +1 -1
  25. package/dist/cdn/{V6BCHIRS.js → AZGB6VW4.js} +1 -1
  26. package/dist/cdn/{C4PIFSYE.js → B6AY2BEK.js} +1 -1
  27. package/dist/cdn/{NPUQMXEL.js → BELOO4W3.js} +1 -1
  28. package/dist/cdn/{PVLNBGYV.js → BJ6P7A7L.js} +17 -17
  29. package/dist/cdn/{3REZP6DD.js → BKXCCTLV.js} +1 -1
  30. package/dist/cdn/{ZO3OZ34B.js → BPRMU5ND.js} +1 -1
  31. package/dist/cdn/{GY3R4BDA.js → BXTYXKBX.js} +1 -1
  32. package/dist/cdn/{MKSX2OHA.js → BYNQVZSU.js} +1 -1
  33. package/dist/cdn/{2BZ3R323.js → CCKX6FAN.js} +1 -1
  34. package/dist/cdn/{EPGCX7RW.js → CEXMZI5E.js} +1 -1
  35. package/dist/cdn/{6726O5CR.js → CUN2N2F7.js} +1 -1
  36. package/dist/cdn/{VKNFKI7T.js → D4KRL7MP.js} +1 -1
  37. package/dist/cdn/{XPN52BTY.js → E4ZD7V5C.js} +1 -1
  38. package/dist/cdn/{4KNHB3QB.js → EI5GRIVH.js} +1 -1
  39. package/dist/cdn/{STL5NY64.js → EN3QXSQY.js} +1 -1
  40. package/dist/cdn/{7DOW74JC.js → FMFEQDVU.js} +1 -1
  41. package/dist/cdn/{G3DL43CH.js → FOJK7SVH.js} +1 -1
  42. package/dist/cdn/{AWPCC57E.js → FQB2OTR4.js} +1 -1
  43. package/dist/cdn/{GWRFPEEX.js → FZGT5CKO.js} +1 -1
  44. package/dist/cdn/{H2LZVTYL.js → GJVEKBGE.js} +1 -1
  45. package/dist/cdn/{PLFQBO3L.js → HE3765GD.js} +1 -1
  46. package/dist/cdn/{TUOW2D7C.js → HHB7ZYPG.js} +1 -1
  47. package/dist/cdn/{HZWUKCDX.js → HLDELLOC.js} +1 -1
  48. package/dist/cdn/{4G65VRW2.js → KD4JWBDI.js} +1 -1
  49. package/dist/cdn/{D645IYGO.js → KJLS2SHS.js} +1 -1
  50. package/dist/cdn/{R2KUXPHO.js → KPLGLGTL.js} +1 -1
  51. package/dist/cdn/{GJN3J5S6.js → KTGSCBYU.js} +1 -1
  52. package/dist/cdn/{6FHVLQBP.js → KUCSPQBP.js} +1 -1
  53. package/dist/cdn/{ZITX4BFR.js → KUFHZS66.js} +1 -1
  54. package/dist/cdn/{72SVWOPY.js → L63SHKVW.js} +1 -1
  55. package/dist/cdn/{LWTZQ6ZK.js → LGE37VU4.js} +1 -1
  56. package/dist/cdn/{NST6EEVZ.js → LR65J3RS.js} +1 -1
  57. package/dist/cdn/{OOWIBXPF.js → MC7TF2BZ.js} +1 -1
  58. package/dist/cdn/{BTI6KUR4.js → MGNP3DY7.js} +1 -1
  59. package/dist/cdn/{U5OSD2UX.js → MWZXEV2Y.js} +1 -1
  60. package/dist/cdn/{ZPRNS5RI.js → OVP272NJ.js} +1 -1
  61. package/dist/cdn/{AE6IPFRO.js → OYCGFPQT.js} +1 -1
  62. package/dist/cdn/{HQJCNLVD.js → P64QA7JR.js} +1 -1
  63. package/dist/cdn/{G4564DXR.js → P7Y5BFN2.js} +1 -1
  64. package/dist/cdn/{KVSF4VV2.js → PK4FGBU5.js} +1 -1
  65. package/dist/cdn/{IPHIYEWD.js → PLGVDNNI.js} +1 -1
  66. package/dist/cdn/{KYYUQVT5.js → PS7SYYYZ.js} +1 -1
  67. package/dist/cdn/{GMECUMD6.js → Q7O2UFCW.js} +1 -1
  68. package/dist/cdn/{QPKFMEZG.js → R5OXT4NA.js} +1 -1
  69. package/dist/cdn/{GK2CDJ4H.js → RARMFEVT.js} +1 -1
  70. package/dist/cdn/{FS5YJVDE.js → RPT2UPHQ.js} +1 -1
  71. package/dist/cdn/{6M4CVZWC.js → RTEDJ3T4.js} +1 -1
  72. package/dist/cdn/{WSKCMADP.js → RYST7PDJ.js} +1 -1
  73. package/dist/cdn/{YDX3PDEX.js → SA6QQ3QB.js} +1 -1
  74. package/dist/cdn/{GXE2UASQ.js → SDG5AVVS.js} +1 -1
  75. package/dist/cdn/{W67ERLKR.js → SRSYDZ6O.js} +1 -1
  76. package/dist/cdn/{U2S4KXBF.js → STIAP2Q5.js} +1 -1
  77. package/dist/cdn/{5KYJNOUA.js → TEEVPE55.js} +1 -1
  78. package/dist/cdn/{7PZA76IS.js → TI2WEAIV.js} +1 -1
  79. package/dist/cdn/{7OMANLDX.js → TIGSVX3S.js} +1 -1
  80. package/dist/cdn/{LAETAAAC.js → TRCWO2RN.js} +1 -1
  81. package/dist/cdn/{3Z3HDTXQ.js → TST7PDVP.js} +1 -1
  82. package/dist/cdn/{Q62Q3AOS.js → TV4M37RV.js} +1 -1
  83. package/dist/cdn/{Z2IUM7DK.js → UEB2J4WK.js} +1 -1
  84. package/dist/cdn/{YOBZF6Z3.js → USREDFJL.js} +1 -1
  85. package/dist/cdn/{CNG26GJ2.js → V6P7GHR3.js} +1 -1
  86. package/dist/cdn/{DGIMOH47.js → VBI6VE3V.js} +1 -1
  87. package/dist/cdn/{E4OXLX4I.js → VO3ESRGL.js} +1 -1
  88. package/dist/cdn/VXP27HMM.js +2 -0
  89. package/dist/cdn/{3QZZP5B2.js → WAJUBYQK.js} +1 -1
  90. package/dist/cdn/{WLHHTU7Y.js → WCJEURG5.js} +1 -1
  91. package/dist/cdn/{WJFNHBHR.js → XEYKRP6V.js} +1 -1
  92. package/dist/cdn/{DGLCAG7B.js → YCIFTIY2.js} +1 -1
  93. package/dist/cdn/{SUHY3KRM.js → YVRQEVJQ.js} +1 -1
  94. package/dist/cdn/{N4E2CELH.js → YXIUOIPZ.js} +1 -1
  95. package/dist/cdn/{IEGC5XQD.js → YZFQRSIT.js} +1 -1
  96. package/dist/cdn/{4GHSP5KY.js → Z2SCWDQL.js} +1 -1
  97. package/dist/cdn/{SBEGXTPK.js → ZI76SVPP.js} +1 -1
  98. package/dist/cdn/{TGSLVQ6J.js → ZIZI52ZU.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/runtime.js +1 -1
  102. package/dist/chunks/serial-chart-data.js +2 -2
  103. package/dist/components/arcgis-chart/customElement.js +1965 -1964
  104. package/dist/components/arcgis-charts-config-create-flow/customElement.js +2 -6
  105. package/dist/docs/api.json +1 -1
  106. package/dist/docs/docs.json +1 -1
  107. package/dist/docs/web-types.json +1 -1
  108. package/package.json +6 -6
  109. package/dist/cdn/4J32HZ7L.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import o from"./SUHY3KRM.js";import n from"./NU42LY2P.js";import m from"./KVSF4VV2.js";import k from"./V3AR6XAZ.js";import j from"./BLGYF7UQ.js";import i from"./3REZP6DD.js";import g from"./ZO3OZ34B.js";import f from"./U2S4KXBF.js";import e from"./7PZA76IS.js";import d from"./ZYO5HXYN.js";import a from"./WTXNKC2H.js";import{M as b,P as p,ha as O,ja as V,o as S,qa as F}from"./43DLRSYB.js";import{f as h}from"./KX7KGXKQ.js";import{d as x}from"./NGXRBJKL.js";import"./AWPCC57E.js";import{l as C}from"./MVOEDTNZ.js";import{e as y,f as l}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as c}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Cc:k,Yb:T,Zb:N,_b:M,dd:L,q:f},,{e:t},,,R,{d:W},{b:H},{a:E,b:j,c:K,d:q},,{a:d,b:v,c:m,d:G,e:z,f:I,g:A,h:w,i:B,j:D,k:P,l:_}])=>{var J=i=>i.legend?.displayNumericValue??!1,Q=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayNumericValue=i)},U=i=>i.legend?.displayCategory??!1,X=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayCategory=i)},Y=i=>i.legend?.displayPercentage??!1,Z=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayPercentage=i)},$=i=>i.legend?.labelMaxWidth??200,ee=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.labelMaxWidth=i)},ae=i=>i.legend?.valueLabelMaxWidth??200,ne=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.valueLabelMaxWidth=i)},le=i=>i.series?.[0]?.innerRadius,ce=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},ge=i=>i.series?.[0]?.innerRadius,pe=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},de=i=>i.series?.[0]?.dataLabelsCharacterLimit,ue=(i,e)=>{e.series?.[0]&&(e.series[0].dataLabelsCharacterLimit=i)},ie=i=>i.series[0]?.startAngle,he=(i,e)=>{e.series?.[0]&&(e.series[0].startAngle=i)},fe=(i,e)=>{e.series?.[0]&&(e.series[0].endAngle=i)},ye=i=>i.series?.[0]?.displayCategoryOnTooltip??!0,me=i=>i.series?.[0]?.displayCategoryOnDataLabel??!0,_e=i=>i.series?.[0]?.displayNumericValueOnDataLabel??!0,Se=i=>i.series?.[0]?.displayPercentageOnDataLabel??!1,be=i=>i.series?.[0]?.displayNumericValueOnTooltip??!0,Oe=i=>i.series?.[0]?.displayPercentageOnTooltip??!0,Le=(i,e)=>{e.series[0]&&(e.series[0].displayPercentageOnTooltip=i)},ve=i=>i.series?.[0]?.valuePrefix,Ie=(i,e)=>{e.series?.[0]&&(e.series[0].valuePrefix=i)},De=i=>i.series?.[0]?.valueSuffix,Pe=(i,e)=>{e.series?.[0]&&(e.series[0].valueSuffix=i)},Ce=i=>i.series?.[0]?.percentagePrefix,xe=(i,e)=>{e.series?.[0]&&(e.series[0].percentagePrefix=i)},Ve=i=>i.series?.[0]?.percentageSuffix,Fe=(i,e)=>{e.series?.[0]&&(e.series[0].percentageSuffix=i)},Te=i=>{let e,o=i.series?.[0];return o?.displayNumericValueOnDataLabel===!0&&o?.displayPercentageOnDataLabel===!0?e=l.Both:o?.displayNumericValueOnDataLabel===!0?e=l.Value:e=l.Percentage,e},Ne=(i,e)=>{let o=i===l.Value||i===l.Both,a=i===l.Percentage||i===l.Both;e.series?.[0]&&(e.series[0].displayNumericValueOnDataLabel=o,e.series[0].displayPercentageOnDataLabel=a),e.legend&&(e.legend={...e.legend,displayNumericValue:o,displayPercentage:a})},Me=i=>i.series?.[0]?.alignDataLabels??!1,ke=(i,e)=>{e.series[0]&&(e.series[0].alignDataLabels=i)},We=i=>i.series?.[0]?.dataLabelsInside??!1,Ge=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsInside=i)},ze=i=>i.series?.[0]?.dataLabelsOffset??10,Ae=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsOffset=i)},we=i=>i.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits,Be=(i,e)=>{e.series?.[0]&&(e.series[0].numericValueFormat??=b(),e.series[0].numericValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].numericValueFormat.intlOptions.maximumFractionDigits=i,e.series[0].percentValueFormat??=b(),e.series[0].percentValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].percentValueFormat.intlOptions.maximumFractionDigits=i)},Re=i=>i.series?.[0]?.optimizeDataLabelsOverlapping??!1,Ee=(i,e)=>{e.series[0]&&(e.series[0].optimizeDataLabelsOverlapping=i)},je=i=>i.series[0]?.ticks?.visible??!1,Ke=(i,e)=>{e.series?.[0]&&(e.series[0].ticks??=O(),e.series[0].ticks.visible=i)},qe=i=>i.series[0]?.ticks?.lineSymbol,He=(i,e)=>{i&&e.series?.[0]&&(e.series[0].ticks??=O(),e.series[0].ticks.lineSymbol=x(i))},Je=(i,e)=>e.series?.[0]?.slices?.[i]?.originalLabel,Qe=(i,e)=>e.series?.[0]?.slices?.[i]?.label,Ue=(i,e,o)=>{o.series?.[0]?.slices?.[e]&&(o.series[0].slices[e].label=i)},Xe=(i,e)=>e.series?.[0]?.slices?.[i]?.fillSymbol?.color,Ye=(i,e,o)=>{let a=o.series?.[0]?.slices?.[e]?.fillSymbol;a!==void 0?(a.color=i,a.outline!==void 0?a.outline.color=i:a.outline={type:h.SLS,color:i}):o.series?.[0]?.slices?.[e]!==void 0&&(o.series[0].slices[e].fillSymbol={type:h.SFS,color:i,outline:{type:h.SLS,color:i}})},Ze=i=>i.series?.[0]?.slices?.map(e=>e.sliceId),se=(i,e)=>{e.series?.[0]?.slices?.sort((o,a)=>i.findIndex(n=>o.sliceId===n)-i.findIndex(n=>a.sliceId===n))},$e=i=>i.series?.[0]?.sliceGrouping,te=(i,e)=>{e.series?.[0]&&(e.series[0].sliceGrouping=i)},re=i=>i.series?.[0]?.sliceGrouping?.percentageThreshold,ei=(i,e)=>{e.series?.[0]?.sliceGrouping!==void 0?e.series[0].sliceGrouping.percentageThreshold=i:e.series[0].sliceGrouping={sliceId:S.defaultGroupOfSlicesId,percentageThreshold:i}},ii=i=>i.series?.[0]?.slices,oe=(i,e)=>{e.series?.[0]&&(e.series[0].slices=i)},si=i=>{oe(void 0,i),te({sliceId:S.defaultGroupOfSlicesId,percentageThreshold:re(i)??0},i)},ti=(i,e)=>e.series[0]?.slices?.[i]?.sliceId,ri=(i,e)=>e.series[0]?.slices?.findIndex(o=>o.sliceId===i),oi=i=>i.series[0]?.slices?.length??0,ai=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,r=(i,e,o,a)=>{for(var n=ni(e,o),g=i.length-1,u;g>=0;g--)(u=i[g])&&(n=u(e,o,n)||n);return n&&ai(e,o,n),n},s=class extends R{constructor(){super(...arguments),this._chartType=c.PieSeries,this._mode=y.Category,this._groupedSliceIds=[],this._customizedSliceIds=[]}async setup(e){await this.loadConfigFromLayer(e);let{config:o}=e;if(o!==void 0){let a=L(o.series)!==f.PieFromFields?y.Category:y.Fields;this._mode=_({category:d(this._config),numericFields:m(this._config),fallbackMode:a})}typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return d(this._config)}set category(e){(!W(this._config)||e.trim()!=="")&&(this._mode=_({category:e,numericFields:m(this._config),fallbackMode:this._mode}),A({newCategory:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")))}get numericFields(){return m(this._config)}set numericFields(e){typeof e=="string"&&(e=[e]),this.layerInfo===void 0||T(this.layerInfo.layerFieldsInfo,e)?(this._mode=_({category:d(this._config),numericFields:e,fallbackMode:this._mode}),B({newNumericFields:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this._config.series[0].slices=this._config.series[0].slices?.filter(o=>o.fillSymbol?.color!==void 0&&this._customizedSliceIds.includes(o.sliceId??"")),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))):C("error","pie-chart-model","Invalid `numericFields`")}get aggregationType(){return G(this._config,this._mode)}set aggregationType(e){w({newAggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getDataSortOrder(){return v(this._config,this._mode)}setDataSortOrder(e,o){I({newSortOrderKind:e,config:this._config,orderByList:o})}getSortOrder(){return v(this._config,this._mode)}setSortOrder(e,o){I({newSortOrderKind:e,config:this._config,orderByList:o})}get orderByList(){return D(this._config,this._mode)}set orderByList(e){P({values:e,config:this._config,mode:this._mode})}get mode(){return this._mode}set mode(e){this._mode=e}async getCustomSortValues(e){let o=d(this._config),a=L(this._config.series),n=[];return a===f.PieFromFields?n=this.numericFields:o.trim()!==""&&a===f.PieFromCategory&&(n=await M({category:o,config:this._config,layerInfo:this.layerInfo,num:e,errorStrings:this.commonStrings.errorStrings})),n}moveCustomSortValuesInOrderByList(e,o){let a=D(this._config,this._mode),[n]=a.splice(e,1);a.splice(o,0,n),P({values:a,config:this._config,mode:this._mode})}get ticksSymbol(){return qe(this._config)}set ticksSymbol(e){He(e,this._config)}get slices(){return ii(this._config)}set slices(e){oe(e,this._config)}get groupedSliceIds(){return this._groupedSliceIds}set groupedSliceIds(e){this._groupedSliceIds=e}get sliceGrouping(){return $e(this._config)}set sliceGrouping(e){te(e,this._config)}get innerRadiusSize(){return le(this._config)??0}set innerRadiusSize(e){ce(e,this._config)}get innerRadius(){return ge(this._config)??0}set innerRadius(e){pe(e,this._config)}get groupingThreshold(){return re(this._config)??0}set groupingThreshold(e){ei(e,this._config)}get labelCharacterLimit(){return de(this._config)??null}set labelCharacterLimit(e){ue(e,this._config)}get decimalPlaces(){return we(this._config)??1}set decimalPlaces(e){Be(e,this._config)}get displayType(){return Te(this._config)}set displayType(e){Ne(e,this._config)}generateDefaultConfig(){let e=F(this.commonStrings);return e.series=[V(this.commonStrings,k(this.layerInfo.layer).idField)],e}getOriginalSliceName(e){return Je(e,this._config)}getSliceName(e){return Qe(e,this._config)}setSliceName(e,o){let a=this.getSliceId(o);a!==void 0&&this._customizedSliceIds.push(a),Ue(e,o,this._config)}getSliceColor(e){return Xe(e,this._config)}setSliceColor(e,o){let a=this.getSliceId(o);e!==void 0&&a!==void 0&&this._customizedSliceIds.push(a),Ye(e,o,this._config)}get orderOfSlices(){return Ze(this._config)}set orderOfSlices(e){e!==void 0&&se(e,this._config)}moveSeries(e,o){let a=this.orderOfSlices;if(a!==void 0){let[n]=a.splice(e,1);a.splice(o,0,n),se(a,this._config)}}getSliceId(e){return ti(e,this._config)}getSliceIndex(e){return ri(e,this._config)}getSlicesLength(){return oi(this._config)}resetSlices(){this._customizedSliceIds=[],si(this._config)}resetAvailable(){let e=!this.colorMatch,o=!1,a=this.slices?.length??0;for(let n=0;n<a;n+=1){let g=this.getOriginalSliceName(n),u=this.getSliceName(n);if(g!==void 0&&g?.toString()!==u?.toString()){o=!0;break}}return this.sliceGrouping?.originalLabel!==void 0&&this.sliceGrouping?.label!==this.sliceGrouping.originalLabel&&(o=!0),e||o}get ticksVisibility(){return je(this._config)}set ticksVisibility(e){Ke(e,this._config)}get startAngle(){return ie(this._config)}set startAngle(e){he(e,this._config)}get endAngle(){return ie(this._config)}set endAngle(e){fe(e,this._config)}get displayCategoryOnDataLabel(){return me(this._config)}set displayCategoryOnDataLabel(e){this._config.series[0].displayCategoryOnDataLabel=e}get displayCategoryValueOnTooltip(){return ye(this._config)}set displayCategoryValueOnTooltip(e){this._config.series[0].displayCategoryOnTooltip=e}get displayNumericValueOnDataLabel(){return _e(this._config)}set displayNumericValueOnDataLabel(e){this._config.series[0].displayNumericValueOnDataLabel=e}get displayPercentageOnDataLabel(){return Se(this._config)}set displayPercentageOnDataLabel(e){this._config.series[0].displayPercentageOnDataLabel=e}get displayNumericValueOnTooltip(){return be(this._config)}set displayNumericValueOnTooltip(e){this._config.series[0].displayNumericValueOnTooltip=e}get displayPercentageOnTooltip(){return Oe(this._config)}set displayPercentageOnTooltip(e){Le(e,this._config)}get valuePrefix(){return ve(this._config)}set valuePrefix(e){Ie(e,this._config)}get valueSuffix(){return De(this._config)}set valueSuffix(e){Pe(e,this._config)}get percentagePrefix(){return Ce(this._config)}set percentagePrefix(e){xe(e,this._config)}get percentageSuffix(){return Ve(this._config)}set percentageSuffix(e){Fe(e,this._config)}get dataLabelsOffset(){return ze(this._config)}set dataLabelsOffset(e){Ae(e,this._config)}get alignDataLabels(){return Me(this._config)}set alignDataLabels(e){ke(e,this._config)}get dataLabelsInside(){return We(this._config)}set dataLabelsInside(e){Ge(e,this._config)}get optimizeDataLabelsOverlapping(){return Re(this._config)}set optimizeDataLabelsOverlapping(e){Ee(e,this._config)}get displayNumericValueOnLegendItems(){return J(this._config)}set displayNumericValueOnLegendItems(e){Q(e,this._config)}get displayPercentageOnLegendItems(){return Y(this._config)}set displayPercentageOnLegendItems(e){Z(e,this._config)}get displayCategoryOnLegendItems(){return U(this._config)}set displayCategoryOnLegendItems(e){X(e,this._config)}get labelMaxWidth(){return $(this._config)}set labelMaxWidth(e){ee(e,this._config)}get valueLabelMaxWidth(){return ae(this._config)}set valueLabelMaxWidth(e){ne(e,this._config)}getDisplayNumericValue(){return J(this._config)}setDisplayNumericValue(e){Q(e,this._config)}getDisplayPercentage(){return Y(this._config)}setDisplayPercentage(e){Z(e,this._config)}getLabelMaxWidth(){return $(this._config)}setLabelMaxWidth(e){ee(e,this._config)}get displayCategory(){return U(this._config)}set displayCategory(e){X(e,this._config)}generateChartTitle(){return z({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode})}};r([t],s.prototype,"category");r([t],s.prototype,"numericFields");r([t],s.prototype,"aggregationType");r([t],s.prototype,"setDataSortOrder");r([t],s.prototype,"setSortOrder");r([t],s.prototype,"orderByList");r([t],s.prototype,"mode");r([t],s.prototype,"moveCustomSortValuesInOrderByList");r([t],s.prototype,"ticksSymbol");r([t],s.prototype,"slices");r([t],s.prototype,"groupedSliceIds");r([t],s.prototype,"sliceGrouping");r([t],s.prototype,"innerRadiusSize");r([t],s.prototype,"innerRadius");r([t],s.prototype,"groupingThreshold");r([t],s.prototype,"labelCharacterLimit");r([t],s.prototype,"decimalPlaces");r([t],s.prototype,"displayType");r([t],s.prototype,"setSliceName");r([t],s.prototype,"setSliceColor");r([t],s.prototype,"orderOfSlices");r([t],s.prototype,"moveSeries");r([t],s.prototype,"resetSlices");r([t],s.prototype,"ticksVisibility");r([t],s.prototype,"startAngle");r([t],s.prototype,"endAngle");r([t],s.prototype,"displayCategoryOnDataLabel");r([t],s.prototype,"displayCategoryValueOnTooltip");r([t],s.prototype,"displayNumericValueOnDataLabel");r([t],s.prototype,"displayPercentageOnDataLabel");r([t],s.prototype,"displayNumericValueOnTooltip");r([t],s.prototype,"displayPercentageOnTooltip");r([t],s.prototype,"valuePrefix");r([t],s.prototype,"valueSuffix");r([t],s.prototype,"percentagePrefix");r([t],s.prototype,"percentageSuffix");r([t],s.prototype,"dataLabelsOffset");r([t],s.prototype,"alignDataLabels");r([t],s.prototype,"dataLabelsInside");r([t],s.prototype,"optimizeDataLabelsOverlapping");r([t],s.prototype,"displayNumericValueOnLegendItems");r([t],s.prototype,"displayPercentageOnLegendItems");r([t],s.prototype,"displayCategoryOnLegendItems");r([t],s.prototype,"labelMaxWidth");r([t],s.prototype,"valueLabelMaxWidth");r([t],s.prototype,"setDisplayNumericValue");r([t],s.prototype,"setDisplayPercentage");r([t],s.prototype,"setLabelMaxWidth");r([t],s.prototype,"displayCategory");var li=[E,j,K,q,H];N(s,li);return s},a,d,e,f,g,i,j,k,m,n,o)
2
+ import o from"./YVRQEVJQ.js";import n from"./5CDCBHUV.js";import m from"./PK4FGBU5.js";import k from"./AYAESDR6.js";import j from"./AGLVYLFP.js";import i from"./BKXCCTLV.js";import g from"./BPRMU5ND.js";import f from"./STIAP2Q5.js";import e from"./TI2WEAIV.js";import d from"./6S6OEV5K.js";import a from"./5H4GHC76.js";import{M as b,P as p,ha as O,ja as V,o as S,qa as F}from"./43DLRSYB.js";import{f as h}from"./KX7KGXKQ.js";import{d as x}from"./NGXRBJKL.js";import"./FQB2OTR4.js";import{l as C}from"./3WNW44CU.js";import{e as y,f as l}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as c}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Cc:k,Yb:T,Zb:N,_b:M,dd:L,q:f},,{e:t},,,R,{d:W},{b:H},{a:E,b:j,c:K,d:q},,{a:d,b:v,c:m,d:G,e:z,f:I,g:A,h:w,i:B,j:D,k:P,l:_}])=>{var J=i=>i.legend?.displayNumericValue??!1,Q=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayNumericValue=i)},U=i=>i.legend?.displayCategory??!1,X=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayCategory=i)},Y=i=>i.legend?.displayPercentage??!1,Z=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.displayPercentage=i)},$=i=>i.legend?.labelMaxWidth??200,ee=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.labelMaxWidth=i)},ae=i=>i.legend?.valueLabelMaxWidth??200,ne=(i,e)=>{e.series[0]?.type===c.PieSeries&&(e.legend===void 0&&(e.legend=p()),e.legend.valueLabelMaxWidth=i)},le=i=>i.series?.[0]?.innerRadius,ce=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},ge=i=>i.series?.[0]?.innerRadius,pe=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},de=i=>i.series?.[0]?.dataLabelsCharacterLimit,ue=(i,e)=>{e.series?.[0]&&(e.series[0].dataLabelsCharacterLimit=i)},ie=i=>i.series[0]?.startAngle,he=(i,e)=>{e.series?.[0]&&(e.series[0].startAngle=i)},fe=(i,e)=>{e.series?.[0]&&(e.series[0].endAngle=i)},ye=i=>i.series?.[0]?.displayCategoryOnTooltip??!0,me=i=>i.series?.[0]?.displayCategoryOnDataLabel??!0,_e=i=>i.series?.[0]?.displayNumericValueOnDataLabel??!0,Se=i=>i.series?.[0]?.displayPercentageOnDataLabel??!1,be=i=>i.series?.[0]?.displayNumericValueOnTooltip??!0,Oe=i=>i.series?.[0]?.displayPercentageOnTooltip??!0,Le=(i,e)=>{e.series[0]&&(e.series[0].displayPercentageOnTooltip=i)},ve=i=>i.series?.[0]?.valuePrefix,Ie=(i,e)=>{e.series?.[0]&&(e.series[0].valuePrefix=i)},De=i=>i.series?.[0]?.valueSuffix,Pe=(i,e)=>{e.series?.[0]&&(e.series[0].valueSuffix=i)},Ce=i=>i.series?.[0]?.percentagePrefix,xe=(i,e)=>{e.series?.[0]&&(e.series[0].percentagePrefix=i)},Ve=i=>i.series?.[0]?.percentageSuffix,Fe=(i,e)=>{e.series?.[0]&&(e.series[0].percentageSuffix=i)},Te=i=>{let e,o=i.series?.[0];return o?.displayNumericValueOnDataLabel===!0&&o?.displayPercentageOnDataLabel===!0?e=l.Both:o?.displayNumericValueOnDataLabel===!0?e=l.Value:e=l.Percentage,e},Ne=(i,e)=>{let o=i===l.Value||i===l.Both,a=i===l.Percentage||i===l.Both;e.series?.[0]&&(e.series[0].displayNumericValueOnDataLabel=o,e.series[0].displayPercentageOnDataLabel=a),e.legend&&(e.legend={...e.legend,displayNumericValue:o,displayPercentage:a})},Me=i=>i.series?.[0]?.alignDataLabels??!1,ke=(i,e)=>{e.series[0]&&(e.series[0].alignDataLabels=i)},We=i=>i.series?.[0]?.dataLabelsInside??!1,Ge=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsInside=i)},ze=i=>i.series?.[0]?.dataLabelsOffset??10,Ae=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsOffset=i)},we=i=>i.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits,Be=(i,e)=>{e.series?.[0]&&(e.series[0].numericValueFormat??=b(),e.series[0].numericValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].numericValueFormat.intlOptions.maximumFractionDigits=i,e.series[0].percentValueFormat??=b(),e.series[0].percentValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].percentValueFormat.intlOptions.maximumFractionDigits=i)},Re=i=>i.series?.[0]?.optimizeDataLabelsOverlapping??!1,Ee=(i,e)=>{e.series[0]&&(e.series[0].optimizeDataLabelsOverlapping=i)},je=i=>i.series[0]?.ticks?.visible??!1,Ke=(i,e)=>{e.series?.[0]&&(e.series[0].ticks??=O(),e.series[0].ticks.visible=i)},qe=i=>i.series[0]?.ticks?.lineSymbol,He=(i,e)=>{i&&e.series?.[0]&&(e.series[0].ticks??=O(),e.series[0].ticks.lineSymbol=x(i))},Je=(i,e)=>e.series?.[0]?.slices?.[i]?.originalLabel,Qe=(i,e)=>e.series?.[0]?.slices?.[i]?.label,Ue=(i,e,o)=>{o.series?.[0]?.slices?.[e]&&(o.series[0].slices[e].label=i)},Xe=(i,e)=>e.series?.[0]?.slices?.[i]?.fillSymbol?.color,Ye=(i,e,o)=>{let a=o.series?.[0]?.slices?.[e]?.fillSymbol;a!==void 0?(a.color=i,a.outline!==void 0?a.outline.color=i:a.outline={type:h.SLS,color:i}):o.series?.[0]?.slices?.[e]!==void 0&&(o.series[0].slices[e].fillSymbol={type:h.SFS,color:i,outline:{type:h.SLS,color:i}})},Ze=i=>i.series?.[0]?.slices?.map(e=>e.sliceId),se=(i,e)=>{e.series?.[0]?.slices?.sort((o,a)=>i.findIndex(n=>o.sliceId===n)-i.findIndex(n=>a.sliceId===n))},$e=i=>i.series?.[0]?.sliceGrouping,te=(i,e)=>{e.series?.[0]&&(e.series[0].sliceGrouping=i)},re=i=>i.series?.[0]?.sliceGrouping?.percentageThreshold,ei=(i,e)=>{e.series?.[0]?.sliceGrouping!==void 0?e.series[0].sliceGrouping.percentageThreshold=i:e.series[0].sliceGrouping={sliceId:S.defaultGroupOfSlicesId,percentageThreshold:i}},ii=i=>i.series?.[0]?.slices,oe=(i,e)=>{e.series?.[0]&&(e.series[0].slices=i)},si=i=>{oe(void 0,i),te({sliceId:S.defaultGroupOfSlicesId,percentageThreshold:re(i)??0},i)},ti=(i,e)=>e.series[0]?.slices?.[i]?.sliceId,ri=(i,e)=>e.series[0]?.slices?.findIndex(o=>o.sliceId===i),oi=i=>i.series[0]?.slices?.length??0,ai=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,r=(i,e,o,a)=>{for(var n=ni(e,o),g=i.length-1,u;g>=0;g--)(u=i[g])&&(n=u(e,o,n)||n);return n&&ai(e,o,n),n},s=class extends R{constructor(){super(...arguments),this._chartType=c.PieSeries,this._mode=y.Category,this._groupedSliceIds=[],this._customizedSliceIds=[]}async setup(e){await this.loadConfigFromLayer(e);let{config:o}=e;if(o!==void 0){let a=L(o.series)!==f.PieFromFields?y.Category:y.Fields;this._mode=_({category:d(this._config),numericFields:m(this._config),fallbackMode:a})}typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return d(this._config)}set category(e){(!W(this._config)||e.trim()!=="")&&(this._mode=_({category:e,numericFields:m(this._config),fallbackMode:this._mode}),A({newCategory:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")))}get numericFields(){return m(this._config)}set numericFields(e){typeof e=="string"&&(e=[e]),this.layerInfo===void 0||T(this.layerInfo.layerFieldsInfo,e)?(this._mode=_({category:d(this._config),numericFields:e,fallbackMode:this._mode}),B({newNumericFields:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this._config.series[0].slices=this._config.series[0].slices?.filter(o=>o.fillSymbol?.color!==void 0&&this._customizedSliceIds.includes(o.sliceId??"")),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))):C("error","pie-chart-model","Invalid `numericFields`")}get aggregationType(){return G(this._config,this._mode)}set aggregationType(e){w({newAggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getDataSortOrder(){return v(this._config,this._mode)}setDataSortOrder(e,o){I({newSortOrderKind:e,config:this._config,orderByList:o})}getSortOrder(){return v(this._config,this._mode)}setSortOrder(e,o){I({newSortOrderKind:e,config:this._config,orderByList:o})}get orderByList(){return D(this._config,this._mode)}set orderByList(e){P({values:e,config:this._config,mode:this._mode})}get mode(){return this._mode}set mode(e){this._mode=e}async getCustomSortValues(e){let o=d(this._config),a=L(this._config.series),n=[];return a===f.PieFromFields?n=this.numericFields:o.trim()!==""&&a===f.PieFromCategory&&(n=await M({category:o,config:this._config,layerInfo:this.layerInfo,num:e,errorStrings:this.commonStrings.errorStrings})),n}moveCustomSortValuesInOrderByList(e,o){let a=D(this._config,this._mode),[n]=a.splice(e,1);a.splice(o,0,n),P({values:a,config:this._config,mode:this._mode})}get ticksSymbol(){return qe(this._config)}set ticksSymbol(e){He(e,this._config)}get slices(){return ii(this._config)}set slices(e){oe(e,this._config)}get groupedSliceIds(){return this._groupedSliceIds}set groupedSliceIds(e){this._groupedSliceIds=e}get sliceGrouping(){return $e(this._config)}set sliceGrouping(e){te(e,this._config)}get innerRadiusSize(){return le(this._config)??0}set innerRadiusSize(e){ce(e,this._config)}get innerRadius(){return ge(this._config)??0}set innerRadius(e){pe(e,this._config)}get groupingThreshold(){return re(this._config)??0}set groupingThreshold(e){ei(e,this._config)}get labelCharacterLimit(){return de(this._config)??null}set labelCharacterLimit(e){ue(e,this._config)}get decimalPlaces(){return we(this._config)??1}set decimalPlaces(e){Be(e,this._config)}get displayType(){return Te(this._config)}set displayType(e){Ne(e,this._config)}generateDefaultConfig(){let e=F(this.commonStrings);return e.series=[V(this.commonStrings,k(this.layerInfo.layer).idField)],e}getOriginalSliceName(e){return Je(e,this._config)}getSliceName(e){return Qe(e,this._config)}setSliceName(e,o){let a=this.getSliceId(o);a!==void 0&&this._customizedSliceIds.push(a),Ue(e,o,this._config)}getSliceColor(e){return Xe(e,this._config)}setSliceColor(e,o){let a=this.getSliceId(o);e!==void 0&&a!==void 0&&this._customizedSliceIds.push(a),Ye(e,o,this._config)}get orderOfSlices(){return Ze(this._config)}set orderOfSlices(e){e!==void 0&&se(e,this._config)}moveSeries(e,o){let a=this.orderOfSlices;if(a!==void 0){let[n]=a.splice(e,1);a.splice(o,0,n),se(a,this._config)}}getSliceId(e){return ti(e,this._config)}getSliceIndex(e){return ri(e,this._config)}getSlicesLength(){return oi(this._config)}resetSlices(){this._customizedSliceIds=[],si(this._config)}resetAvailable(){let e=!this.colorMatch,o=!1,a=this.slices?.length??0;for(let n=0;n<a;n+=1){let g=this.getOriginalSliceName(n),u=this.getSliceName(n);if(g!==void 0&&g?.toString()!==u?.toString()){o=!0;break}}return this.sliceGrouping?.originalLabel!==void 0&&this.sliceGrouping?.label!==this.sliceGrouping.originalLabel&&(o=!0),e||o}get ticksVisibility(){return je(this._config)}set ticksVisibility(e){Ke(e,this._config)}get startAngle(){return ie(this._config)}set startAngle(e){he(e,this._config)}get endAngle(){return ie(this._config)}set endAngle(e){fe(e,this._config)}get displayCategoryOnDataLabel(){return me(this._config)}set displayCategoryOnDataLabel(e){this._config.series[0].displayCategoryOnDataLabel=e}get displayCategoryValueOnTooltip(){return ye(this._config)}set displayCategoryValueOnTooltip(e){this._config.series[0].displayCategoryOnTooltip=e}get displayNumericValueOnDataLabel(){return _e(this._config)}set displayNumericValueOnDataLabel(e){this._config.series[0].displayNumericValueOnDataLabel=e}get displayPercentageOnDataLabel(){return Se(this._config)}set displayPercentageOnDataLabel(e){this._config.series[0].displayPercentageOnDataLabel=e}get displayNumericValueOnTooltip(){return be(this._config)}set displayNumericValueOnTooltip(e){this._config.series[0].displayNumericValueOnTooltip=e}get displayPercentageOnTooltip(){return Oe(this._config)}set displayPercentageOnTooltip(e){Le(e,this._config)}get valuePrefix(){return ve(this._config)}set valuePrefix(e){Ie(e,this._config)}get valueSuffix(){return De(this._config)}set valueSuffix(e){Pe(e,this._config)}get percentagePrefix(){return Ce(this._config)}set percentagePrefix(e){xe(e,this._config)}get percentageSuffix(){return Ve(this._config)}set percentageSuffix(e){Fe(e,this._config)}get dataLabelsOffset(){return ze(this._config)}set dataLabelsOffset(e){Ae(e,this._config)}get alignDataLabels(){return Me(this._config)}set alignDataLabels(e){ke(e,this._config)}get dataLabelsInside(){return We(this._config)}set dataLabelsInside(e){Ge(e,this._config)}get optimizeDataLabelsOverlapping(){return Re(this._config)}set optimizeDataLabelsOverlapping(e){Ee(e,this._config)}get displayNumericValueOnLegendItems(){return J(this._config)}set displayNumericValueOnLegendItems(e){Q(e,this._config)}get displayPercentageOnLegendItems(){return Y(this._config)}set displayPercentageOnLegendItems(e){Z(e,this._config)}get displayCategoryOnLegendItems(){return U(this._config)}set displayCategoryOnLegendItems(e){X(e,this._config)}get labelMaxWidth(){return $(this._config)}set labelMaxWidth(e){ee(e,this._config)}get valueLabelMaxWidth(){return ae(this._config)}set valueLabelMaxWidth(e){ne(e,this._config)}getDisplayNumericValue(){return J(this._config)}setDisplayNumericValue(e){Q(e,this._config)}getDisplayPercentage(){return Y(this._config)}setDisplayPercentage(e){Z(e,this._config)}getLabelMaxWidth(){return $(this._config)}setLabelMaxWidth(e){ee(e,this._config)}get displayCategory(){return U(this._config)}set displayCategory(e){X(e,this._config)}generateChartTitle(){return z({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode})}};r([t],s.prototype,"category");r([t],s.prototype,"numericFields");r([t],s.prototype,"aggregationType");r([t],s.prototype,"setDataSortOrder");r([t],s.prototype,"setSortOrder");r([t],s.prototype,"orderByList");r([t],s.prototype,"mode");r([t],s.prototype,"moveCustomSortValuesInOrderByList");r([t],s.prototype,"ticksSymbol");r([t],s.prototype,"slices");r([t],s.prototype,"groupedSliceIds");r([t],s.prototype,"sliceGrouping");r([t],s.prototype,"innerRadiusSize");r([t],s.prototype,"innerRadius");r([t],s.prototype,"groupingThreshold");r([t],s.prototype,"labelCharacterLimit");r([t],s.prototype,"decimalPlaces");r([t],s.prototype,"displayType");r([t],s.prototype,"setSliceName");r([t],s.prototype,"setSliceColor");r([t],s.prototype,"orderOfSlices");r([t],s.prototype,"moveSeries");r([t],s.prototype,"resetSlices");r([t],s.prototype,"ticksVisibility");r([t],s.prototype,"startAngle");r([t],s.prototype,"endAngle");r([t],s.prototype,"displayCategoryOnDataLabel");r([t],s.prototype,"displayCategoryValueOnTooltip");r([t],s.prototype,"displayNumericValueOnDataLabel");r([t],s.prototype,"displayPercentageOnDataLabel");r([t],s.prototype,"displayNumericValueOnTooltip");r([t],s.prototype,"displayPercentageOnTooltip");r([t],s.prototype,"valuePrefix");r([t],s.prototype,"valueSuffix");r([t],s.prototype,"percentagePrefix");r([t],s.prototype,"percentageSuffix");r([t],s.prototype,"dataLabelsOffset");r([t],s.prototype,"alignDataLabels");r([t],s.prototype,"dataLabelsInside");r([t],s.prototype,"optimizeDataLabelsOverlapping");r([t],s.prototype,"displayNumericValueOnLegendItems");r([t],s.prototype,"displayPercentageOnLegendItems");r([t],s.prototype,"displayCategoryOnLegendItems");r([t],s.prototype,"labelMaxWidth");r([t],s.prototype,"valueLabelMaxWidth");r([t],s.prototype,"setDisplayNumericValue");r([t],s.prototype,"setDisplayPercentage");r([t],s.prototype,"setLabelMaxWidth");r([t],s.prototype,"displayCategory");var li=[E,j,K,q,H];N(s,li);return s},a,d,e,f,g,i,j,k,m,n,o)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{e as c,m as f}from"./POA2XTTK.js";import a from"./WTXNKC2H.js";import{b as u}from"./KX7KGXKQ.js";import{g as n}from"./QP5UAIC6.js";import{b as r,l as o}from"./QVG3TOL4.js";export default $arcgis.t(([{$b:p,Q:b,fb:N,qc:d}])=>{var L={DebounceTimer:400,SliderTimer:100,PopoverTimer:60,customSortLimit:100},h={style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3},T=[r.Count,r.Sum,r.Average,r.ContinuousPercentile,r.Minimum,r.Maximum,r.NoAggregation],x=[r.Count,r.Sum];function A(e){let t;switch(e){case n.Title:case n.XAxisTitle:case n.YAxisTitle:case n.LegendTitle:{t=c.Title;break}case n.Description:case n.LegendText:{t=c.Text;break}case n.AxisLabels:case n.GuideLabels:case n.DataLabels:{t=c.Label;break}case n.Background:case n.LeaderLines:case n.AxisLines:case n.GridLines:{t=c.Palette;break}}return t}function F(e,t,a){let i=!1,s=typeof e=="string"?Number.parseFloat(e):e,l=typeof t=="string"?Number.parseFloat(t):t,m=typeof a=="string"?Number.parseFloat(a):a;return Number.isNaN(s)||(i=(l===void 0||Number.isNaN(l)||s>=l)&&(m===void 0||Number.isNaN(m)||s<=m)),i}function E(e,t){let a;if(e!==null){let i=typeof e=="string"?Number.parseFloat(e):e;d(i)?a=i:d(t)&&(a=t)}return a===void 0?"":`${a}`}function O(e){let{inputElement:t,status:a}=e;t.status=a}var M={IDLE:"idle",INVALID:"invalid"};function B(e,t){let a="";if(e!==void 0&&!Number.isNaN(e)){let i=N(document.documentElement);a=Intl.NumberFormat(i,t).format(e)}return a}function I(e,t){let a=!1;if(t!==void 0){let i=typeof t=="string"?t.trim():t,s=e.trim();typeof t=="string"?a=i===s||i===b&&s==="":a=i.includes(s)}return a}function S(e){let t;switch(e){case"trailing":t=-200;break;case"leading":t=20;break;default:t=0;break}return t}function w(e){return e===void 0||Number.isNaN(e.r)||Number.isNaN(e.g)||Number.isNaN(e.b)?null:e}var P=e=>{["e","E"].includes(e.key)&&e.preventDefault()},W=e=>{if(e.pickListElement!==void 0){let t=e.pickListElement.selectedItems;e.eventEmitter.emit({contentKind:e.contentKind,value:t.map(a=>a.value)})}};function C(e){let t="solid";switch(e){case u.Dash:t="dashed";break;case u.Dot:t="dotted";break;case u.Solid:default:t="solid";break}return t}function U(e,t){let a=document.createElement("a");a.style.display="none",a.download=t,a.setAttribute("href",e),a.click(),a.remove(),URL.revokeObjectURL(e)}function H(e){return e!=null&&(e.style.removeProperty("opacity"),e.remove()),null}function R(e){let t=!p(e?.config),a=e.xTemporalBinning?.unit,i=e.yTemporalBinning?.unit,s;return t&&a!==void 0&&i!==void 0&&(a===o.HourOfDay&&i===o.DayOfWeek?s=f.WeekByDayOfWeekAndHourOfDay:a===o.DayOfMonth&&i===o.MonthOfYear&&(s=f.YearByMonthAndDayOfMonth)),s}return{a:L,b:h,c:T,d:x,e:A,f:F,g:E,h:O,i:M,j:B,k:I,l:S,m:w,n:P,o:W,p:C,q:U,r:H,s:R}},a)
2
+ import{e as c,m as f}from"./POA2XTTK.js";import a from"./5H4GHC76.js";import{b as u}from"./KX7KGXKQ.js";import{g as n}from"./QP5UAIC6.js";import{b as r,l as o}from"./QVG3TOL4.js";export default $arcgis.t(([{$b:p,Q:b,fb:N,qc:d}])=>{var L={DebounceTimer:400,SliderTimer:100,PopoverTimer:60,customSortLimit:100},h={style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3},T=[r.Count,r.Sum,r.Average,r.ContinuousPercentile,r.Minimum,r.Maximum,r.NoAggregation],x=[r.Count,r.Sum];function A(e){let t;switch(e){case n.Title:case n.XAxisTitle:case n.YAxisTitle:case n.LegendTitle:{t=c.Title;break}case n.Description:case n.LegendText:{t=c.Text;break}case n.AxisLabels:case n.GuideLabels:case n.DataLabels:{t=c.Label;break}case n.Background:case n.LeaderLines:case n.AxisLines:case n.GridLines:{t=c.Palette;break}}return t}function F(e,t,a){let i=!1,s=typeof e=="string"?Number.parseFloat(e):e,l=typeof t=="string"?Number.parseFloat(t):t,m=typeof a=="string"?Number.parseFloat(a):a;return Number.isNaN(s)||(i=(l===void 0||Number.isNaN(l)||s>=l)&&(m===void 0||Number.isNaN(m)||s<=m)),i}function E(e,t){let a;if(e!==null){let i=typeof e=="string"?Number.parseFloat(e):e;d(i)?a=i:d(t)&&(a=t)}return a===void 0?"":`${a}`}function O(e){let{inputElement:t,status:a}=e;t.status=a}var M={IDLE:"idle",INVALID:"invalid"};function B(e,t){let a="";if(e!==void 0&&!Number.isNaN(e)){let i=N(document.documentElement);a=Intl.NumberFormat(i,t).format(e)}return a}function I(e,t){let a=!1;if(t!==void 0){let i=typeof t=="string"?t.trim():t,s=e.trim();typeof t=="string"?a=i===s||i===b&&s==="":a=i.includes(s)}return a}function S(e){let t;switch(e){case"trailing":t=-200;break;case"leading":t=20;break;default:t=0;break}return t}function w(e){return e===void 0||Number.isNaN(e.r)||Number.isNaN(e.g)||Number.isNaN(e.b)?null:e}var P=e=>{["e","E"].includes(e.key)&&e.preventDefault()},W=e=>{if(e.pickListElement!==void 0){let t=e.pickListElement.selectedItems;e.eventEmitter.emit({contentKind:e.contentKind,value:t.map(a=>a.value)})}};function C(e){let t="solid";switch(e){case u.Dash:t="dashed";break;case u.Dot:t="dotted";break;case u.Solid:default:t="solid";break}return t}function U(e,t){let a=document.createElement("a");a.style.display="none",a.download=t,a.setAttribute("href",e),a.click(),a.remove(),URL.revokeObjectURL(e)}function H(e){return e!=null&&(e.style.removeProperty("opacity"),e.remove()),null}function R(e){let t=!p(e?.config),a=e.xTemporalBinning?.unit,i=e.yTemporalBinning?.unit,s;return t&&a!==void 0&&i!==void 0&&(a===o.HourOfDay&&i===o.DayOfWeek?s=f.WeekByDayOfWeekAndHourOfDay:a===o.DayOfMonth&&i===o.MonthOfYear&&(s=f.YearByMonthAndDayOfMonth)),s}return{a:L,b:h,c:T,d:x,e:A,f:F,g:E,h:O,i:M,j:B,k:I,l:S,m:w,n:P,o:W,p:C,q:U,r:H,s:R}},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./PQ2EO3DG.js";import"./POA2XTTK.js";import{a as m}from"./WLHHTU7Y.js";import a from"./WTXNKC2H.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./AWPCC57E.js";import{B as h,H as l,g as o,i as g,n as c}from"./MVOEDTNZ.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([,{m:n}])=>{var _="arcgis-charts-config-storage-colors",b=o`:host{--calcite-color-border-1: transparent}.color-header{margin-bottom:.5rem}`,a=class extends h{constructor(){super(...arguments),this._messages=m(),this.arcgisColorSelect=c()}static{this.properties={messageOverrides:0,rgba:0,heading:1}}static{this.styles=b}onColorSelect(s){let{value:e}=s.target;if(e!==null){let{r,g:t,b:v}=e,i=[r,t,v,255];this.isNewColor(i)&&this.arcgisColorSelect.emit(i)}}isNewColor(s){let e=!1;return this.rgba===void 0?e=!0:s===void 0?e=!1:e=s[0]!==this.rgba[0]||s[1]!==this.rgba[1]||s[2]!==this.rgba[2],e}render(){let s;if(this.rgba!==void 0){let[e,r,t]=this.rgba;s={r:e,g:r,b:t}}return g`<calcite-label>${this.heading??this._messages.color}</calcite-label><calcite-color-picker .value=${n(s)} @calciteColorPickerChange=${this.onColorSelect} .messageOverrides=${{g:this._messages.g,green:this._messages.green,h:this._messages.h,hex:this._messages.hex,hsv:this._messages.hsv,hue:this._messages.hue,r:this._messages.r,red:this._messages.red,rgb:this._messages.rgb,s:this._messages.s,saturation:this._messages.saturation,saveColor:this._messages.saveColor,saved:this._messages.saved,v:this._messages.v,value:this._messages.value}} clearable .storageId=${_} format=rgb></calcite-color-picker>`}};l("arcgis-charts-config-colors",a);return a},a,b)
2
+ import b from"./2FCUHT32.js";import"./POA2XTTK.js";import{a as m}from"./WCJEURG5.js";import a from"./5H4GHC76.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./FQB2OTR4.js";import{B as h,H as l,g as o,i as g,n as c}from"./3WNW44CU.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([,{m:n}])=>{var _="arcgis-charts-config-storage-colors",b=o`:host{--calcite-color-border-1: transparent}.color-header{margin-bottom:.5rem}`,a=class extends h{constructor(){super(...arguments),this._messages=m(),this.arcgisColorSelect=c()}static{this.properties={messageOverrides:0,rgba:0,heading:1}}static{this.styles=b}onColorSelect(s){let{value:e}=s.target;if(e!==null){let{r,g:t,b:v}=e,i=[r,t,v,255];this.isNewColor(i)&&this.arcgisColorSelect.emit(i)}}isNewColor(s){let e=!1;return this.rgba===void 0?e=!0:s===void 0?e=!1:e=s[0]!==this.rgba[0]||s[1]!==this.rgba[1]||s[2]!==this.rgba[2],e}render(){let s;if(this.rgba!==void 0){let[e,r,t]=this.rgba;s={r:e,g:r,b:t}}return g`<calcite-label>${this.heading??this._messages.color}</calcite-label><calcite-color-picker .value=${n(s)} @calciteColorPickerChange=${this.onColorSelect} .messageOverrides=${{g:this._messages.g,green:this._messages.green,h:this._messages.h,hex:this._messages.hex,hsv:this._messages.hsv,hue:this._messages.hue,r:this._messages.r,red:this._messages.red,rgb:this._messages.rgb,s:this._messages.s,saturation:this._messages.saturation,saveColor:this._messages.saveColor,saved:this._messages.saved,v:this._messages.v,value:this._messages.value}} clearable .storageId=${_} format=rgb></calcite-color-picker>`}};l("arcgis-charts-config-colors",a);return a},a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{d as t}from"./POA2XTTK.js";import b from"./WTXNKC2H.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import{b as a}from"./NGXRBJKL.js";import"./AWPCC57E.js";import{B as h,H as c,g as n,i as s,n as d}from"./MVOEDTNZ.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Ac:p,Dc:f,Ec:y,Ha:m,yc:g}])=>{var u=n`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,r=class extends h{constructor(){super(...arguments),this.onModelConfigChange=async i=>{let e=i?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(e)},this.activeColorMatch=!1,this.popoverPlacement="leading",this.usePopupTemplateFieldsInfo=!1,this.arcgisChartsConfigNoSeriesUpdate=d()}static{this.properties={layerFieldsInfo:16,activeColorMatch:16,model:0,timeZone:1,popoverPlacement:1,seriesColor:0,calculatedDataMinMaxBounds:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=u}async load(){this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(i){let e=!1;i.has("model")&&this.modelChange(this.model,i.get("model")),i.has("layer")&&this.layer!==void 0&&!a(i.get("layer"),this.layer)&&(e=!0),(i.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==i.get("usePopupTemplateFieldsInfo")||i.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==i.get("popupTemplateFieldInfosEnabled"))&&(e=!0),i.has("seriesColor")&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(e=!0),e&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(i,e){e?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),i?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(i){this.activeColorMatch=i?.get(0)?.markerSymbol===void 0,this.model.colorMatch&&i?.forEach((e,o)=>{e&&i?.get(0)!==void 0&&("lineSymbol"in e&&(e.lineSymbol?.color!==void 0&&!a(this.model.getSeriesColor(o),e.lineSymbol.color)&&this.model.setSeriesColor(e.lineSymbol.color,o),e.lineSymbol?.style!==void 0&&!a(this.model.getSeriesLineStyle(o),e.lineSymbol.style)&&this.model.setSeriesLineStyle(e.lineSymbol.style,o),e.lineSymbol?.width!==void 0&&!a(this.model.getSeriesLineWidth(o),e.lineSymbol.width)&&this.model.setSeriesLineWidth(e.lineSymbol.width,o)),"markerSymbol"in e&&(e.markerSymbol?.color!==void 0&&!a(this.model.getSeriesMarkerColor(o),e.markerSymbol?.color)&&this.model.setSeriesMarkerColor(e.markerSymbol?.color,o),e.markerSymbol?.style!==void 0&&!a(this.model.getSeriesMarkerStyle(o),e.markerSymbol?.style)&&this.model.setSeriesMarkerStyle(e.markerSymbol?.style,o),e.markerSymbol?.size!==void 0&&this.model.getSeriesMarkerSize(o)!==e.markerSymbol?.size&&this.model.setSeriesMarkerSize(e.markerSymbol?.size,o)))})}async updateFetchLayerFieldsInfo(i){let e=i??this.model.config,o=this.layer;if(!o){let l=m(e)?e.iLayer:void 0;l&&(o=await g(l))}o&&(await o.load(),this.layerFieldsInfo=p(o,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled))}render(){let i=this.layerFieldsInfo?.find(l=>l.name===this.model.xAxisField),e=i!==void 0&&(f(i)||y(i)),o;switch(this.page){case t.Data:o=s`<arcgis-charts-config-line-chart-data .model=${this.model} .resetTimeInterval=${this.model.resetTimeInterval} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-line-chart-data>`;break;case t.Series:o=s`<arcgis-charts-config-line-chart-series .model=${this.model} .activeColorMatch=${this.activeColorMatch} .popoverPlacement=${this.popoverPlacement}></arcgis-charts-config-line-chart-series>`;break;case t.Axes:o=s`<arcgis-charts-config-axes .model=${this.model} show-min-y-bound-option show-max-y-bound-option show-enable-x-log-option show-enable-y-log-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds}></arcgis-charts-config-axes>`;break;case t.Guides:o=s`<arcgis-charts-config-guides .model=${this.model} .timeZone=${this.timeZone} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .enableXAxisGuide=${e} enable-y-axis-guide></arcgis-charts-config-guides>`;break;case t.Format:o=s`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case t.General:o=s`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:o="";break}return o}};c("arcgis-charts-config-line-chart",r);return r},b)
2
+ import{d as t}from"./POA2XTTK.js";import b from"./5H4GHC76.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import{b as a}from"./NGXRBJKL.js";import"./FQB2OTR4.js";import{B as h,H as c,g as n,i as s,n as d}from"./3WNW44CU.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Ac:p,Dc:f,Ec:y,Ha:m,yc:g}])=>{var u=n`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,r=class extends h{constructor(){super(...arguments),this.onModelConfigChange=async i=>{let e=i?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(e)},this.activeColorMatch=!1,this.popoverPlacement="leading",this.usePopupTemplateFieldsInfo=!1,this.arcgisChartsConfigNoSeriesUpdate=d()}static{this.properties={layerFieldsInfo:16,activeColorMatch:16,model:0,timeZone:1,popoverPlacement:1,seriesColor:0,calculatedDataMinMaxBounds:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5}}static{this.styles=u}async load(){this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(i){let e=!1;i.has("model")&&this.modelChange(this.model,i.get("model")),i.has("layer")&&this.layer!==void 0&&!a(i.get("layer"),this.layer)&&(e=!0),(i.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==i.get("usePopupTemplateFieldsInfo")||i.has("popupTemplateFieldInfosEnabled")&&this.popupTemplateFieldInfosEnabled!==i.get("popupTemplateFieldInfosEnabled"))&&(e=!0),i.has("seriesColor")&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(e=!0),e&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(i,e){e?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),i?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(i){this.activeColorMatch=i?.get(0)?.markerSymbol===void 0,this.model.colorMatch&&i?.forEach((e,o)=>{e&&i?.get(0)!==void 0&&("lineSymbol"in e&&(e.lineSymbol?.color!==void 0&&!a(this.model.getSeriesColor(o),e.lineSymbol.color)&&this.model.setSeriesColor(e.lineSymbol.color,o),e.lineSymbol?.style!==void 0&&!a(this.model.getSeriesLineStyle(o),e.lineSymbol.style)&&this.model.setSeriesLineStyle(e.lineSymbol.style,o),e.lineSymbol?.width!==void 0&&!a(this.model.getSeriesLineWidth(o),e.lineSymbol.width)&&this.model.setSeriesLineWidth(e.lineSymbol.width,o)),"markerSymbol"in e&&(e.markerSymbol?.color!==void 0&&!a(this.model.getSeriesMarkerColor(o),e.markerSymbol?.color)&&this.model.setSeriesMarkerColor(e.markerSymbol?.color,o),e.markerSymbol?.style!==void 0&&!a(this.model.getSeriesMarkerStyle(o),e.markerSymbol?.style)&&this.model.setSeriesMarkerStyle(e.markerSymbol?.style,o),e.markerSymbol?.size!==void 0&&this.model.getSeriesMarkerSize(o)!==e.markerSymbol?.size&&this.model.setSeriesMarkerSize(e.markerSymbol?.size,o)))})}async updateFetchLayerFieldsInfo(i){let e=i??this.model.config,o=this.layer;if(!o){let l=m(e)?e.iLayer:void 0;l&&(o=await g(l))}o&&(await o.load(),this.layerFieldsInfo=p(o,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled))}render(){let i=this.layerFieldsInfo?.find(l=>l.name===this.model.xAxisField),e=i!==void 0&&(f(i)||y(i)),o;switch(this.page){case t.Data:o=s`<arcgis-charts-config-line-chart-data .model=${this.model} .resetTimeInterval=${this.model.resetTimeInterval} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-line-chart-data>`;break;case t.Series:o=s`<arcgis-charts-config-line-chart-series .model=${this.model} .activeColorMatch=${this.activeColorMatch} .popoverPlacement=${this.popoverPlacement}></arcgis-charts-config-line-chart-series>`;break;case t.Axes:o=s`<arcgis-charts-config-axes .model=${this.model} show-min-y-bound-option show-max-y-bound-option show-enable-x-log-option show-enable-y-log-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds}></arcgis-charts-config-axes>`;break;case t.Guides:o=s`<arcgis-charts-config-guides .model=${this.model} .timeZone=${this.timeZone} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .enableXAxisGuide=${e} enable-y-axis-guide></arcgis-charts-config-guides>`;break;case t.Format:o=s`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case t.General:o=s`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:o="";break}return o}};c("arcgis-charts-config-line-chart",r);return r},b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as D}from"./DGIMOH47.js";import{a as b}from"./W67ERLKR.js";import{a as C}from"./RP6LD7CU.js";import{a as O,c as k}from"./OBPAQN4H.js";import f from"./PQ2EO3DG.js";import{k as r,o as h}from"./POA2XTTK.js";import{a as P}from"./WLHHTU7Y.js";import e from"./NU42LY2P.js";import a from"./WTXNKC2H.js";import{p as m}from"./43DLRSYB.js";import"./KX7KGXKQ.js";import{b as I}from"./NGXRBJKL.js";import"./AWPCC57E.js";import{A as d,B as $,C as o,F,H as x,g as y,i as l,k as v,n as S,z as c}from"./MVOEDTNZ.js";import{b as g}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as w}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{hc:u,ic:B},{h:L},{a:p}])=>{var a={label:"label",fieldList:"field-list",fab:"fab",dimText:"dim-text",list:"list",customSortButtons:"custom-sort-buttons"},E=y`.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);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}.fab>calcite-button{--calcite-button-shadow: var(--calcite-shadow-md)}.fab span{white-space:normal;overflow-wrap:anywhere}.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);max-height:400px;overflow-y:auto}.custom-sort-buttons{display:flex;justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}`,f=class extends ${constructor(){super(...arguments),this._messages=P(),this.boxPlotPopover=null,this.categoryElement=c(),this.numericFieldsElement=c(),this.splitByFieldElement=c(),this.sortOrderElement=c(),this.originalCustomSortLabels=[],this.isCustomSortDisabled=!1,this.onModelConfigChange=()=>{this.requestUpdate()},this.onModelDataChange=async()=>{if(this.model.getDataSortOrder()===g.customSort){let e=await this.updateCustomSortProps();this.model.orderByList=e,this.sortOrderResetCounter+=1}else await this.updateCustomSortDisabled();this.requestUpdate()},this.popoverClose=e=>{this.boxPlotPopover===e?.target&&(this.boxPlotPopover=C(this.boxPlotPopover))},this.onBoxPlotDataChange=async e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:t}=e.detail,s=[...e.detail.value];switch(k(O),t){case r.category:{let i=s[0]?.trim()||m;this.model.category=i;break}case r.numericFields:{this.model.numericFields=s;let i=s.length>1;this.model.standardizeValues=i;break}case r.splitByField:{let i=s[0]?.trim()||"";this.model.splitByField=i;break}case r.sortOrder:{let i=s[0];if(i===g.customSort){let n=await this.updateCustomSortProps();this.model.setDataSortOrder(i,n)}else this.model.setDataSortOrder(i);this.sortOrderResetCounter+=1}break;default:break}}}catch(t){throw t instanceof Error&&this.arcgisChartsConfigDataChangeError.emit({error:t,model:this.model}),t}this.requestUpdate()},this.selectedCustomSortItemId="",this.sortOrderResetCounter=0,this.layerFieldsInfo=[],this.arcgisChartsConfigDataChangeError=S()}static{this.properties={selectedCustomSortItemId:16,sortOrderResetCounter:16,messageOverrides:0,model:0,layerFieldsInfo:0}}static{this.styles=E}load(){this.modelChange(this.model),this.onModelConfigChange(),this.updateCustomSortProps()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),this.disableSplitBy=this.model.numericFields.length===0||this.model.numericFields.length>1&&this.model.category!==m}disconnectedCallback(){super.disconnectedCallback(),this.boxPlotPopover=C(this.boxPlotPopover),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),this.model.removeEventListener("arcgisChartsModelDataChange",this.onModelDataChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),t?.removeEventListener("arcgisChartsModelDataChange",this.onModelDataChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelDataChange",this.onModelDataChange)}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:t,oldIndex:s}=e.detail;this.model.moveCustomSortValuesInOrderByList(s??0,t??s??0)}}onCustomSortItemSelected(e){let{id:t}=e.target;this.selectedCustomSortItemId=this.selectedCustomSortItemId===t?"":t}onCustomSortListClick(e){e.preventDefault()}onCustomSortItemMoved(e){let{id:t}=e.target,s=this.model.orderByList.length,i=this.model.orderByList.indexOf(this.selectedCustomSortItemId);t===h.Up?s=i-1:t===h.Down&&(s=i+1),i>=0&&s>=0&&s<this.model.orderByList.length&&this.model.moveCustomSortValuesInOrderByList(i,s)}buildCustomSortListItems(){return D(this.model.orderByList,e=>e,e=>{let t=B(this.layerFieldsInfo,e);return l`<calcite-list-item id=${e??v} .label=${e??""} .description=${t} .value=${e} .selected=${this.selectedCustomSortItemId===e} @calciteListItemSelect=${this.onCustomSortItemSelected}><calcite-icon slot=content-end></calcite-icon></calcite-list-item>`})}buildCustomSortList(){return b(this.sortOrderResetCounter,l`<calcite-list label class=${o(a.list)} drag-enabled selection-mode=single selection-appearance=border @click=${this.onCustomSortListClick} @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildCustomSortListItems()}</calcite-list>`)}buildNumericFieldItem(e){return b(e,l`<calcite-list-item .label=${u(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}onCategorySelect(e){this.categoryElement.value&&!this.categoryElement.value.disabled&&(this.contentKind=r.category,this.setupPopover(e))}async onRemoveNumericField(e){let t=e.target.value;this.model.numericFields=this.model.numericFields.filter(s=>s!==t),this.model.numericFields.length===0&&this.model.resetConfig()}async updateCustomSortProps(){let e=await this.model.getCustomSortValues();this.originalCustomSortLabels=[...e];let t=e.length>p.customSortLimit;return t&&(this.sortOrderElement.value&&(this.sortOrderElement.value.label=this._messages.xAxisAsc),this.model.setDataSortOrder(g.xAxisAsc)),this.isCustomSortDisabled=t,e}async updateCustomSortDisabled(){let e=await this.model.getCustomSortValues(p.customSortLimit+1);this.isCustomSortDisabled=e.length>p.customSortLimit}onStandardizeValuesChange(e){this.model.standardizeValues=e.target.checked}onShowOutliersChange(e){this.model.showOutliers=e.target.checked}onSplitBySelect(e){this.splitByFieldElement.value&&!this.splitByFieldElement.value.disabled&&(this.contentKind=r.splitByField,this.setupPopover(e))}onSortOrderSelect(e){this.contentKind=r.sortOrder,this.setupPopover(e)}setupPopover(e){e.stopImmediatePropagation(),this.boxPlotPopover=C(this.boxPlotPopover);let t,s,i,n=!1;switch(this.contentKind){case r.category:t=this.categoryElement.value,s=this._messages.categoryHeader,i=this.model.category===m?"":this.model.category;break;case r.numericFields:t=this.numericFieldsElement.value,s=this._messages.numericFieldsHeader,i=this.model.numericFields;break;case r.splitByField:t=this.splitByFieldElement.value,s=this._messages.splitByFieldHeader,i=this.model.splitByField;break;case r.sortOrder:t=this.sortOrderElement.value,s=this._messages.selectSortOrder,i=this.model.getDataSortOrder(),n=this.isCustomSortDisabled;break}this.boxPlotPopover=F(l`<arcgis-charts-config-box-plot-popover .headingTitle=${s} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${i} .isCustomSortDisabled=${n} @arcgisChartsConfigBoxPlotDataPopoverChange=${this.onBoxPlotDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-box-plot-popover>`),!document.body.contains(this.boxPlotPopover)&&this.boxPlotPopover!==null&&document.body.appendChild(this.boxPlotPopover)}onAddNumericFields(e){this.contentKind=r.numericFields,this.setupPopover(e)}getCorrectedSplitByValue(){return this.model.splitByField?.trim()===""?"":u(this.layerFieldsInfo,this.model.splitByField)}getCorrectedCategoryValue(){return L({fieldName:this.model.category,fieldList:this.layerFieldsInfo})?"":u(this.layerFieldsInfo,this.model.category)}resetToOriginalCustomSortLabels(){this.selectedCustomSortItemId="",this.model.orderByList=[...this.originalCustomSortLabels],this.sortOrderResetCounter+=1}renderCustomSortUI(){let e=this.model.getDataSortOrder(),t=this.model.getAxisValueFormat(0)?.type,s=this.model.orderByList.indexOf(this.selectedCustomSortItemId);return t===w.CategoryAxisFormat&&e===g.customSort&&!this.isCustomSortDisabled?l`<calcite-label class=${o(a.label)}><div class=${o(a.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${s===0||s===-1||this.selectedCustomSortItemId.trim()===""} icon-start=arrow-bold-up id=${h.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${s===-1||s===this.model.orderByList.length-1||this.selectedCustomSortItemId.trim()===""} icon-start=arrow-bold-down id=${h.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${I(this.model.orderByList,this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.model.category===m?this._messages.values:this._messages.category}${this.buildCustomSortList()}</calcite-label>`:null}renderNumericFields(e){let t=[];for(let s of e)t.push(this.buildNumericFieldItem(s));return l`<calcite-list label class=${o(a.fieldList)} ${d(this.numericFieldsElement)}>${t}</calcite-list>`}renderCategory(){let e=this.getCorrectedCategoryValue(),t=this.model.numericFields.length===0||(this.model.numericFields??[]).length>1&&this.model.splitByField!=="";return l`<arcgis-charts-config-field-picker .label=${e} .disabled=${t} @click=${this.onCategorySelect} ${d(this.categoryElement)}></arcgis-charts-config-field-picker>`}renderSplitBy(){let e=this.getCorrectedSplitByValue();return l`<arcgis-charts-config-field-picker .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${d(this.splitByFieldElement)}></arcgis-charts-config-field-picker>`}renderSorting(){return l`<arcgis-charts-config-field-picker .label=${this._messages[this.model.getDataSortOrder()]} @click=${this.onSortOrderSelect} ${d(this.sortOrderElement)}></arcgis-charts-config-field-picker>`}render(){let e=this.renderCategory(),t=this.renderNumericFields([...this.model.numericFields??[]]),s=this.renderSplitBy(),i=this.renderSorting(),n=this.renderCustomSortUI();return l`<calcite-label class=${o(a.label)}>${this._messages.numericFields}${t}</calcite-label><div class=${o(a.fab)}><calcite-button appearance=outline-fill kind=neutral scale=m width=auto round icon-start=plus @click=${this.onAddNumericFields}><span>${this._messages.selectNumericFields}</span></calcite-button></div><calcite-label class=${o(a.label)}><div>${this._messages.category} <span class=${o(a.dimText)}>(${this._messages.optional})</span></div>${e}</calcite-label><calcite-label class=${o(a.label)}><div class=${o(this.disableSplitBy?a.dimText:"")}>${this._messages.splitBy} <span class=${o(a.dimText)}>(${this._messages.optional})</span></div>${s}</calcite-label><div>${(this.model.numericFields??[]).length>1?l`<calcite-label class=${o(a.label)} layout=inline-space-between>${this._messages.standardizeValues}<calcite-switch .checked=${this.model.standardizeValues} @calciteSwitchChange=${this.onStandardizeValuesChange}></calcite-switch></calcite-label>`:null}</div><calcite-label class=${o(a.label)} layout=inline-space-between>${this._messages.showOutliers}<calcite-switch .checked=${this.model.showOutliers} @calciteSwitchChange=${this.onShowOutliersChange}></calcite-switch></calcite-label><calcite-label class=${o(a.label)}>${this._messages.sortOrder}${i}</calcite-label>${n}`}};x("arcgis-charts-config-box-plot-data",f);return f},a,e,f)
2
+ import{a as D}from"./VBI6VE3V.js";import{a as b}from"./SRSYDZ6O.js";import{a as C}from"./RP6LD7CU.js";import{a as O,c as k}from"./OBPAQN4H.js";import f from"./2FCUHT32.js";import{k as r,o as h}from"./POA2XTTK.js";import{a as P}from"./WCJEURG5.js";import e from"./5CDCBHUV.js";import a from"./5H4GHC76.js";import{p as m}from"./43DLRSYB.js";import"./KX7KGXKQ.js";import{b as I}from"./NGXRBJKL.js";import"./FQB2OTR4.js";import{A as d,B as $,C as o,F,H as x,g as y,i as l,k as v,n as S,z as c}from"./3WNW44CU.js";import{b as g}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as w}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{hc:u,ic:B},{h:L},{a:p}])=>{var a={label:"label",fieldList:"field-list",fab:"fab",dimText:"dim-text",list:"list",customSortButtons:"custom-sort-buttons"},E=y`.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);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}.fab>calcite-button{--calcite-button-shadow: var(--calcite-shadow-md)}.fab span{white-space:normal;overflow-wrap:anywhere}.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);max-height:400px;overflow-y:auto}.custom-sort-buttons{display:flex;justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}`,f=class extends ${constructor(){super(...arguments),this._messages=P(),this.boxPlotPopover=null,this.categoryElement=c(),this.numericFieldsElement=c(),this.splitByFieldElement=c(),this.sortOrderElement=c(),this.originalCustomSortLabels=[],this.isCustomSortDisabled=!1,this.onModelConfigChange=()=>{this.requestUpdate()},this.onModelDataChange=async()=>{if(this.model.getDataSortOrder()===g.customSort){let e=await this.updateCustomSortProps();this.model.orderByList=e,this.sortOrderResetCounter+=1}else await this.updateCustomSortDisabled();this.requestUpdate()},this.popoverClose=e=>{this.boxPlotPopover===e?.target&&(this.boxPlotPopover=C(this.boxPlotPopover))},this.onBoxPlotDataChange=async e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:t}=e.detail,s=[...e.detail.value];switch(k(O),t){case r.category:{let i=s[0]?.trim()||m;this.model.category=i;break}case r.numericFields:{this.model.numericFields=s;let i=s.length>1;this.model.standardizeValues=i;break}case r.splitByField:{let i=s[0]?.trim()||"";this.model.splitByField=i;break}case r.sortOrder:{let i=s[0];if(i===g.customSort){let n=await this.updateCustomSortProps();this.model.setDataSortOrder(i,n)}else this.model.setDataSortOrder(i);this.sortOrderResetCounter+=1}break;default:break}}}catch(t){throw t instanceof Error&&this.arcgisChartsConfigDataChangeError.emit({error:t,model:this.model}),t}this.requestUpdate()},this.selectedCustomSortItemId="",this.sortOrderResetCounter=0,this.layerFieldsInfo=[],this.arcgisChartsConfigDataChangeError=S()}static{this.properties={selectedCustomSortItemId:16,sortOrderResetCounter:16,messageOverrides:0,model:0,layerFieldsInfo:0}}static{this.styles=E}load(){this.modelChange(this.model),this.onModelConfigChange(),this.updateCustomSortProps()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),this.disableSplitBy=this.model.numericFields.length===0||this.model.numericFields.length>1&&this.model.category!==m}disconnectedCallback(){super.disconnectedCallback(),this.boxPlotPopover=C(this.boxPlotPopover),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),this.model.removeEventListener("arcgisChartsModelDataChange",this.onModelDataChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),t?.removeEventListener("arcgisChartsModelDataChange",this.onModelDataChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelDataChange",this.onModelDataChange)}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:t,oldIndex:s}=e.detail;this.model.moveCustomSortValuesInOrderByList(s??0,t??s??0)}}onCustomSortItemSelected(e){let{id:t}=e.target;this.selectedCustomSortItemId=this.selectedCustomSortItemId===t?"":t}onCustomSortListClick(e){e.preventDefault()}onCustomSortItemMoved(e){let{id:t}=e.target,s=this.model.orderByList.length,i=this.model.orderByList.indexOf(this.selectedCustomSortItemId);t===h.Up?s=i-1:t===h.Down&&(s=i+1),i>=0&&s>=0&&s<this.model.orderByList.length&&this.model.moveCustomSortValuesInOrderByList(i,s)}buildCustomSortListItems(){return D(this.model.orderByList,e=>e,e=>{let t=B(this.layerFieldsInfo,e);return l`<calcite-list-item id=${e??v} .label=${e??""} .description=${t} .value=${e} .selected=${this.selectedCustomSortItemId===e} @calciteListItemSelect=${this.onCustomSortItemSelected}><calcite-icon slot=content-end></calcite-icon></calcite-list-item>`})}buildCustomSortList(){return b(this.sortOrderResetCounter,l`<calcite-list label class=${o(a.list)} drag-enabled selection-mode=single selection-appearance=border @click=${this.onCustomSortListClick} @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildCustomSortListItems()}</calcite-list>`)}buildNumericFieldItem(e){return b(e,l`<calcite-list-item .label=${u(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}onCategorySelect(e){this.categoryElement.value&&!this.categoryElement.value.disabled&&(this.contentKind=r.category,this.setupPopover(e))}async onRemoveNumericField(e){let t=e.target.value;this.model.numericFields=this.model.numericFields.filter(s=>s!==t),this.model.numericFields.length===0&&this.model.resetConfig()}async updateCustomSortProps(){let e=await this.model.getCustomSortValues();this.originalCustomSortLabels=[...e];let t=e.length>p.customSortLimit;return t&&(this.sortOrderElement.value&&(this.sortOrderElement.value.label=this._messages.xAxisAsc),this.model.setDataSortOrder(g.xAxisAsc)),this.isCustomSortDisabled=t,e}async updateCustomSortDisabled(){let e=await this.model.getCustomSortValues(p.customSortLimit+1);this.isCustomSortDisabled=e.length>p.customSortLimit}onStandardizeValuesChange(e){this.model.standardizeValues=e.target.checked}onShowOutliersChange(e){this.model.showOutliers=e.target.checked}onSplitBySelect(e){this.splitByFieldElement.value&&!this.splitByFieldElement.value.disabled&&(this.contentKind=r.splitByField,this.setupPopover(e))}onSortOrderSelect(e){this.contentKind=r.sortOrder,this.setupPopover(e)}setupPopover(e){e.stopImmediatePropagation(),this.boxPlotPopover=C(this.boxPlotPopover);let t,s,i,n=!1;switch(this.contentKind){case r.category:t=this.categoryElement.value,s=this._messages.categoryHeader,i=this.model.category===m?"":this.model.category;break;case r.numericFields:t=this.numericFieldsElement.value,s=this._messages.numericFieldsHeader,i=this.model.numericFields;break;case r.splitByField:t=this.splitByFieldElement.value,s=this._messages.splitByFieldHeader,i=this.model.splitByField;break;case r.sortOrder:t=this.sortOrderElement.value,s=this._messages.selectSortOrder,i=this.model.getDataSortOrder(),n=this.isCustomSortDisabled;break}this.boxPlotPopover=F(l`<arcgis-charts-config-box-plot-popover .headingTitle=${s} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${i} .isCustomSortDisabled=${n} @arcgisChartsConfigBoxPlotDataPopoverChange=${this.onBoxPlotDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-box-plot-popover>`),!document.body.contains(this.boxPlotPopover)&&this.boxPlotPopover!==null&&document.body.appendChild(this.boxPlotPopover)}onAddNumericFields(e){this.contentKind=r.numericFields,this.setupPopover(e)}getCorrectedSplitByValue(){return this.model.splitByField?.trim()===""?"":u(this.layerFieldsInfo,this.model.splitByField)}getCorrectedCategoryValue(){return L({fieldName:this.model.category,fieldList:this.layerFieldsInfo})?"":u(this.layerFieldsInfo,this.model.category)}resetToOriginalCustomSortLabels(){this.selectedCustomSortItemId="",this.model.orderByList=[...this.originalCustomSortLabels],this.sortOrderResetCounter+=1}renderCustomSortUI(){let e=this.model.getDataSortOrder(),t=this.model.getAxisValueFormat(0)?.type,s=this.model.orderByList.indexOf(this.selectedCustomSortItemId);return t===w.CategoryAxisFormat&&e===g.customSort&&!this.isCustomSortDisabled?l`<calcite-label class=${o(a.label)}><div class=${o(a.customSortButtons)}><div><calcite-button appearance=transparent .disabled=${s===0||s===-1||this.selectedCustomSortItemId.trim()===""} icon-start=arrow-bold-up id=${h.Up} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button><calcite-button appearance=transparent .disabled=${s===-1||s===this.model.orderByList.length-1||this.selectedCustomSortItemId.trim()===""} icon-start=arrow-bold-down id=${h.Down} kind=neutral scale=s @click=${this.onCustomSortItemMoved}></calcite-button></div><calcite-button @click=${this.resetToOriginalCustomSortLabels} .disabled=${I(this.model.orderByList,this.originalCustomSortLabels)} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.model.category===m?this._messages.values:this._messages.category}${this.buildCustomSortList()}</calcite-label>`:null}renderNumericFields(e){let t=[];for(let s of e)t.push(this.buildNumericFieldItem(s));return l`<calcite-list label class=${o(a.fieldList)} ${d(this.numericFieldsElement)}>${t}</calcite-list>`}renderCategory(){let e=this.getCorrectedCategoryValue(),t=this.model.numericFields.length===0||(this.model.numericFields??[]).length>1&&this.model.splitByField!=="";return l`<arcgis-charts-config-field-picker .label=${e} .disabled=${t} @click=${this.onCategorySelect} ${d(this.categoryElement)}></arcgis-charts-config-field-picker>`}renderSplitBy(){let e=this.getCorrectedSplitByValue();return l`<arcgis-charts-config-field-picker .label=${e} .disabled=${this.disableSplitBy} @click=${this.onSplitBySelect} ${d(this.splitByFieldElement)}></arcgis-charts-config-field-picker>`}renderSorting(){return l`<arcgis-charts-config-field-picker .label=${this._messages[this.model.getDataSortOrder()]} @click=${this.onSortOrderSelect} ${d(this.sortOrderElement)}></arcgis-charts-config-field-picker>`}render(){let e=this.renderCategory(),t=this.renderNumericFields([...this.model.numericFields??[]]),s=this.renderSplitBy(),i=this.renderSorting(),n=this.renderCustomSortUI();return l`<calcite-label class=${o(a.label)}>${this._messages.numericFields}${t}</calcite-label><div class=${o(a.fab)}><calcite-button appearance=outline-fill kind=neutral scale=m width=auto round icon-start=plus @click=${this.onAddNumericFields}><span>${this._messages.selectNumericFields}</span></calcite-button></div><calcite-label class=${o(a.label)}><div>${this._messages.category} <span class=${o(a.dimText)}>(${this._messages.optional})</span></div>${e}</calcite-label><calcite-label class=${o(a.label)}><div class=${o(this.disableSplitBy?a.dimText:"")}>${this._messages.splitBy} <span class=${o(a.dimText)}>(${this._messages.optional})</span></div>${s}</calcite-label><div>${(this.model.numericFields??[]).length>1?l`<calcite-label class=${o(a.label)} layout=inline-space-between>${this._messages.standardizeValues}<calcite-switch .checked=${this.model.standardizeValues} @calciteSwitchChange=${this.onStandardizeValuesChange}></calcite-switch></calcite-label>`:null}</div><calcite-label class=${o(a.label)} layout=inline-space-between>${this._messages.showOutliers}<calcite-switch .checked=${this.model.showOutliers} @calciteSwitchChange=${this.onShowOutliersChange}></calcite-switch></calcite-label><calcite-label class=${o(a.label)}>${this._messages.sortOrder}${i}</calcite-label>${n}`}};x("arcgis-charts-config-box-plot-data",f);return f},a,e,f)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"./E4OXLX4I.js";import{a as b}from"./DGIMOH47.js";import{a as w}from"./W67ERLKR.js";import{a as P}from"./RP6LD7CU.js";import{a as $}from"./WLHHTU7Y.js";import a from"./WTXNKC2H.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./AWPCC57E.js";import{B as g,C as c,F as u,H as v,g as C,i as s,k as d,n as o}from"./MVOEDTNZ.js";import{a as R}from"./64L7VJJK.js";import{k as r}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Y:f},{a:I}])=>{var h={addChartContainer:"add-chart-container",viewChartComponent:"view-chart-component",header:"header",dropdownPopup:"dropdown-popup"},L=C`.view-chart-component{width:var(--arcgis-charts-config-panel-width);height:var(--arcgis-charts-config-panel-height)}.add-chart-container{display:flex;justify-content:center;padding:2rem 0;background-color:var(--calcite-color-background)}.header{margin-left:1rem}.dropdown-popup{position:relative}`,m=class extends g{constructor(){super(...arguments),this._messages=$(),this.chartRenamePopover=null,this.popoverClose=()=>{let e=this.modelList?.find(t=>t.chartId===this.selectedChartId);this.chartTitle=e?.titleText??"",this.selectedActionChartId="",this.removeChartRenamePopover()},this.onChartRename=e=>{if(!this.disableEditing){this.chartTitle=e.detail.name;let t=this.modelList?.find(i=>i.chartId===this.selectedActionChartId);t!==void 0&&(t.titleText=this.chartTitle),this.selectedActionChartId="",this.removeChartRenamePopover()}},this.onModelConfigChange=()=>{this.requestUpdate()},this.onCalciteListOrderChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{newIndex:t,oldIndex:i}=e.detail;if(this.modelList!==void 0&&this.modelList?.length>0){let a=[...this.modelList],n=a?.[i],l=a?.[t];n&&l&&(a.splice(i,1),a.splice(t,0,n)),this.chartsOrderReorderCounter+=1,this.arcgisChartsConfigModelListReorder.emit({modelList:a})}}},this.isChartRenamePopoverOpen=!1,this.chartTitle="",this.chartsOrderReorderCounter=0,this.noGroup=!1,this.disableEditing=!1,this.arcgisChartsConfigModelListReorder=o(),this.arcgisChartsConfigViewChartAddChart=o(),this.arcgisChartsConfigViewChartDelete=o(),this.arcgisChartsConfigViewChartEdit=o(),this.arcgisChartsConfigViewChartSelect=o()}static{this.properties={isChartRenamePopoverOpen:16,chartTitle:16,selectedActionChartId:16,chartsOrderReorderCounter:16,messageOverrides:0,selectedChartId:1,layer:0,modelList:0,noGroup:5,disableEditing:5}}static{this.styles=L}willUpdate(e){e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList"))}disconnectedCallback(){super.disconnectedCallback(),this.removeChartRenamePopover()}modelListChange(e,t){t?.forEach(i=>{i.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e?.forEach(i=>{i.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)})}onAddChartClick(e){e.stopImmediatePropagation(),this.selectedActionChartId=void 0,this.isChartRenamePopoverOpen&&this.removeChartRenamePopover(),this.arcgisChartsConfigViewChartAddChart.emit({referenceElement:e.target,layer:this.layer})}onChartActionClick(e){e.stopPropagation()}buildTooltipLine(e,t){let i=typeof document<"u"&&document.documentElement.dir.toLowerCase()==="rtl",a=`${f(i)} `;return`${e}${a}${t}`}getChartTypeLabel(e){switch(R(e.chartType)){case r.BarChart:return this._messages.barChart??"";case r.LineChart:return this._messages.lineChart??"";case r.PieChart:return this._messages.pieChart??"";case r.Histogram:return this._messages.histogram??"";case r.Scatterplot:return this._messages.scatterplot??"";case r.BoxPlot:return this._messages.boxPlot??"";case r.HeatChart:return this._messages.calendarHeatChart??"";default:return""}}buildChartTooltip(e){let t=this.getChartTypeLabel(e);return this.buildTooltipLine(this._messages.chartType??"",t??"")}buildChartList(){let e=this.modelList?b(this.modelList,t=>t.chartId,(t,i)=>{let a=t.chartId,n=t.titleText,l=I(t.config),p=this.buildChartTooltip(t);return s`<calcite-list-item .label=${n??a??this._messages.chartTitle} title=${p??d} .selected=${this.selectedChartId===(a?.toString()??i.toString())} .value=${a??i.toString()} @click=${this.onChartSelect}><calcite-icon slot=content-start .icon=${l} title=${p??d}></calcite-icon>${this.disableEditing?null:s`<calcite-dropdown slot=actions-end overlay-positioning=fixed placement=bottom-end .open=${this.selectedActionChartId===a} @calciteDropdownClose=${()=>this.chartActionClosed(a??"")} @calciteDropdownOpen=${()=>this.chartActionOpened(a??"")} @click=${this.onChartActionClick} class=${c(h.dropdownPopup)}><calcite-action scale=l .text=${this._messages.chartActions??""} slot=trigger .active=${a===this.selectedActionChartId} .disabled=${this.isChartRenamePopoverOpen}><calcite-icon icon=ellipsis></calcite-icon></calcite-action><calcite-dropdown-group selection-mode=none><calcite-dropdown-item accesskey=edit @calciteDropdownItemSelect=${this.chartEditSelect}>${this._messages.edit}</calcite-dropdown-item><calcite-dropdown-item accesskey=rename @calciteDropdownItemSelect=${this.chartRenameSelect}>${this._messages.rename}</calcite-dropdown-item><calcite-dropdown-item accesskey=delete @calciteDropdownItemSelect=${this.chartDeleteSelect}>${this._messages.delete}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}</calcite-list-item>`}):null;return this.layer?s`<div>${this.noGroup?null:s`<p class=${c(h.header)}>${this.layer.title??this.layer.id.toString()}</p>`}${w(this.chartsOrderReorderCounter,s`<calcite-list label .dragEnabled=${!this.disableEditing} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${e}${this.disableEditing?null:s`<div class=${c(h.addChartContainer)}><calcite-fab slot=fab appearance=outline-fill kind=neutral text-enabled .text=${this._messages.addChart} .label=${this._messages.addChart} @click=${this.onAddChartClick} scale=s></calcite-fab></div>`}</calcite-list>`)}</div>`:null}onChartSelect(e){let t=e.currentTarget,i;t?.localName==="calcite-list-item"?i=t.value:t?.localName==="calcite-icon"&&(i=t.parentNode.value),this.arcgisChartsConfigViewChartSelect.emit({chartId:i})}chartEditSelect(){this.disableEditing||(this.arcgisChartsConfigViewChartEdit.emit({chartId:this.selectedActionChartId}),this.chartActionClosed(this.selectedActionChartId))}chartRenameSelect(e){if(!this.disableEditing){let t=e.target.closest("calcite-list-item"),i=this.modelList?.find(a=>a.chartId===this.selectedActionChartId);t!==null&&(this.renameReferenceElement=t),this.chartTitle=i?.titleText??"",this.setupRenamePopover()}}chartDeleteSelect(){this.disableEditing||(this.arcgisChartsConfigViewChartDelete.emit({chartId:this.selectedActionChartId}),this.selectedActionChartId="")}chartActionClosed(e){e===this.selectedActionChartId&&!this.isChartRenamePopoverOpen&&(this.selectedActionChartId=void 0)}chartActionOpened(e){this.selectedActionChartId=e}setupRenamePopover(){this.isChartRenamePopoverOpen=!0,this.chartRenamePopover!==null&&(this.chartRenamePopover.name=this.chartTitle,this.chartRenamePopover.referenceElement=this.renameReferenceElement),this.chartRenamePopover=u(s`<arcgis-charts-config-chart-rename-popover .name=${this.chartTitle} .referenceElement=${this.renameReferenceElement} .open=${this.isChartRenamePopoverOpen} @arcgisChartsConfigPopoverClose=${this.popoverClose} @arcgisChartsConfigChartRenamePopoverChange=${this.onChartRename}></arcgis-charts-config-chart-rename-popover>`),!document.body.contains(this.chartRenamePopover)&&this.chartRenamePopover!==null&&document.body.appendChild(this.chartRenamePopover)}removeChartRenamePopover(){this.chartRenamePopover!==null&&(this.isChartRenamePopoverOpen=!1,this.chartRenamePopover=P(this.chartRenamePopover))}render(){return s`<div class=${c(h.viewChartComponent)}>${this.buildChartList()}</div>`}};v("arcgis-charts-config-view-charts",m);return m},a,e)
2
+ import e from"./VO3ESRGL.js";import{a as b}from"./VBI6VE3V.js";import{a as w}from"./SRSYDZ6O.js";import{a as P}from"./RP6LD7CU.js";import{a as $}from"./WCJEURG5.js";import a from"./5H4GHC76.js";import"./43DLRSYB.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./FQB2OTR4.js";import{B as g,C as c,F as u,H as v,g as C,i as s,k as d,n as o}from"./3WNW44CU.js";import{a as R}from"./64L7VJJK.js";import{k as r}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Y:f},{a:I}])=>{var h={addChartContainer:"add-chart-container",viewChartComponent:"view-chart-component",header:"header",dropdownPopup:"dropdown-popup"},L=C`.view-chart-component{width:var(--arcgis-charts-config-panel-width);height:var(--arcgis-charts-config-panel-height)}.add-chart-container{display:flex;justify-content:center;padding:2rem 0;background-color:var(--calcite-color-background)}.header{margin-left:1rem}.dropdown-popup{position:relative}`,m=class extends g{constructor(){super(...arguments),this._messages=$(),this.chartRenamePopover=null,this.popoverClose=()=>{let e=this.modelList?.find(t=>t.chartId===this.selectedChartId);this.chartTitle=e?.titleText??"",this.selectedActionChartId="",this.removeChartRenamePopover()},this.onChartRename=e=>{if(!this.disableEditing){this.chartTitle=e.detail.name;let t=this.modelList?.find(i=>i.chartId===this.selectedActionChartId);t!==void 0&&(t.titleText=this.chartTitle),this.selectedActionChartId="",this.removeChartRenamePopover()}},this.onModelConfigChange=()=>{this.requestUpdate()},this.onCalciteListOrderChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{newIndex:t,oldIndex:i}=e.detail;if(this.modelList!==void 0&&this.modelList?.length>0){let a=[...this.modelList],n=a?.[i],l=a?.[t];n&&l&&(a.splice(i,1),a.splice(t,0,n)),this.chartsOrderReorderCounter+=1,this.arcgisChartsConfigModelListReorder.emit({modelList:a})}}},this.isChartRenamePopoverOpen=!1,this.chartTitle="",this.chartsOrderReorderCounter=0,this.noGroup=!1,this.disableEditing=!1,this.arcgisChartsConfigModelListReorder=o(),this.arcgisChartsConfigViewChartAddChart=o(),this.arcgisChartsConfigViewChartDelete=o(),this.arcgisChartsConfigViewChartEdit=o(),this.arcgisChartsConfigViewChartSelect=o()}static{this.properties={isChartRenamePopoverOpen:16,chartTitle:16,selectedActionChartId:16,chartsOrderReorderCounter:16,messageOverrides:0,selectedChartId:1,layer:0,modelList:0,noGroup:5,disableEditing:5}}static{this.styles=L}willUpdate(e){e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList"))}disconnectedCallback(){super.disconnectedCallback(),this.removeChartRenamePopover()}modelListChange(e,t){t?.forEach(i=>{i.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e?.forEach(i=>{i.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)})}onAddChartClick(e){e.stopImmediatePropagation(),this.selectedActionChartId=void 0,this.isChartRenamePopoverOpen&&this.removeChartRenamePopover(),this.arcgisChartsConfigViewChartAddChart.emit({referenceElement:e.target,layer:this.layer})}onChartActionClick(e){e.stopPropagation()}buildTooltipLine(e,t){let i=typeof document<"u"&&document.documentElement.dir.toLowerCase()==="rtl",a=`${f(i)} `;return`${e}${a}${t}`}getChartTypeLabel(e){switch(R(e.chartType)){case r.BarChart:return this._messages.barChart??"";case r.LineChart:return this._messages.lineChart??"";case r.PieChart:return this._messages.pieChart??"";case r.Histogram:return this._messages.histogram??"";case r.Scatterplot:return this._messages.scatterplot??"";case r.BoxPlot:return this._messages.boxPlot??"";case r.HeatChart:return this._messages.calendarHeatChart??"";default:return""}}buildChartTooltip(e){let t=this.getChartTypeLabel(e);return this.buildTooltipLine(this._messages.chartType??"",t??"")}buildChartList(){let e=this.modelList?b(this.modelList,t=>t.chartId,(t,i)=>{let a=t.chartId,n=t.titleText,l=I(t.config),p=this.buildChartTooltip(t);return s`<calcite-list-item .label=${n??a??this._messages.chartTitle} title=${p??d} .selected=${this.selectedChartId===(a?.toString()??i.toString())} .value=${a??i.toString()} @click=${this.onChartSelect}><calcite-icon slot=content-start .icon=${l} title=${p??d}></calcite-icon>${this.disableEditing?null:s`<calcite-dropdown slot=actions-end overlay-positioning=fixed placement=bottom-end .open=${this.selectedActionChartId===a} @calciteDropdownClose=${()=>this.chartActionClosed(a??"")} @calciteDropdownOpen=${()=>this.chartActionOpened(a??"")} @click=${this.onChartActionClick} class=${c(h.dropdownPopup)}><calcite-action scale=l .text=${this._messages.chartActions??""} slot=trigger .active=${a===this.selectedActionChartId} .disabled=${this.isChartRenamePopoverOpen}><calcite-icon icon=ellipsis></calcite-icon></calcite-action><calcite-dropdown-group selection-mode=none><calcite-dropdown-item accesskey=edit @calciteDropdownItemSelect=${this.chartEditSelect}>${this._messages.edit}</calcite-dropdown-item><calcite-dropdown-item accesskey=rename @calciteDropdownItemSelect=${this.chartRenameSelect}>${this._messages.rename}</calcite-dropdown-item><calcite-dropdown-item accesskey=delete @calciteDropdownItemSelect=${this.chartDeleteSelect}>${this._messages.delete}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}</calcite-list-item>`}):null;return this.layer?s`<div>${this.noGroup?null:s`<p class=${c(h.header)}>${this.layer.title??this.layer.id.toString()}</p>`}${w(this.chartsOrderReorderCounter,s`<calcite-list label .dragEnabled=${!this.disableEditing} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${e}${this.disableEditing?null:s`<div class=${c(h.addChartContainer)}><calcite-fab slot=fab appearance=outline-fill kind=neutral text-enabled .text=${this._messages.addChart} .label=${this._messages.addChart} @click=${this.onAddChartClick} scale=s></calcite-fab></div>`}</calcite-list>`)}</div>`:null}onChartSelect(e){let t=e.currentTarget,i;t?.localName==="calcite-list-item"?i=t.value:t?.localName==="calcite-icon"&&(i=t.parentNode.value),this.arcgisChartsConfigViewChartSelect.emit({chartId:i})}chartEditSelect(){this.disableEditing||(this.arcgisChartsConfigViewChartEdit.emit({chartId:this.selectedActionChartId}),this.chartActionClosed(this.selectedActionChartId))}chartRenameSelect(e){if(!this.disableEditing){let t=e.target.closest("calcite-list-item"),i=this.modelList?.find(a=>a.chartId===this.selectedActionChartId);t!==null&&(this.renameReferenceElement=t),this.chartTitle=i?.titleText??"",this.setupRenamePopover()}}chartDeleteSelect(){this.disableEditing||(this.arcgisChartsConfigViewChartDelete.emit({chartId:this.selectedActionChartId}),this.selectedActionChartId="")}chartActionClosed(e){e===this.selectedActionChartId&&!this.isChartRenamePopoverOpen&&(this.selectedActionChartId=void 0)}chartActionOpened(e){this.selectedActionChartId=e}setupRenamePopover(){this.isChartRenamePopoverOpen=!0,this.chartRenamePopover!==null&&(this.chartRenamePopover.name=this.chartTitle,this.chartRenamePopover.referenceElement=this.renameReferenceElement),this.chartRenamePopover=u(s`<arcgis-charts-config-chart-rename-popover .name=${this.chartTitle} .referenceElement=${this.renameReferenceElement} .open=${this.isChartRenamePopoverOpen} @arcgisChartsConfigPopoverClose=${this.popoverClose} @arcgisChartsConfigChartRenamePopoverChange=${this.onChartRename}></arcgis-charts-config-chart-rename-popover>`),!document.body.contains(this.chartRenamePopover)&&this.chartRenamePopover!==null&&document.body.appendChild(this.chartRenamePopover)}removeChartRenamePopover(){this.chartRenamePopover!==null&&(this.isChartRenamePopoverOpen=!1,this.chartRenamePopover=P(this.chartRenamePopover))}render(){return s`<div class=${c(h.viewChartComponent)}>${this.buildChartList()}</div>`}};v("arcgis-charts-config-view-charts",m);return m},a,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./PQ2EO3DG.js";import"./POA2XTTK.js";import{a as g}from"./WLHHTU7Y.js";import a from"./WTXNKC2H.js";import{H as u}from"./43DLRSYB.js";import{f as S}from"./KX7KGXKQ.js";import{o as n}from"./NGXRBJKL.js";import"./AWPCC57E.js";import{A as p,B as d,C as i,H as y,g as f,i as o,n as s,z as m}from"./MVOEDTNZ.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([,{f:v,g:b,h:c,i:r}])=>{var $={arial:"Arial",arialBlack:"Arial Black",bookman:"Bookman",candara:"Candara",courier:"Courier",courierNew:"Courier New",garamond:"Garamond",georgia:"Georgia",impact:"Impact",palatino:"Palatino",roboto:"Roboto",times:"Times",timesNewRoman:"Times New Roman",verdana:"Verdana"},a={fontStyleContainer:"font-style-container",font:"font",numberInput:"number-input",inputLabel:"input-label"},C=f`.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{overflow-y:auto}:host calcite-panel .font-style-container .input-label{--calcite-label-margin-bottom: var(--arcgis-charts-intra-section-margin) !important}:host calcite-panel .font-style-container .number-input{margin-bottom:.5rem;display:flex}:host calcite-panel .font-style-container .number-input>div{width:100%}:host calcite-panel .font-style-container{display:flex}:host calcite-panel .font-style-container calcite-action,:host calcite-panel .font-style-container calcite-label{flex:1 1 0px;display:flex;flex-grow:inherit;width:80px}:host calcite-panel .font-style-container calcite-label{flex-grow:2}:host calcite-panel .font-style-container{padding:0 1rem}:host calcite-panel calcite-label.font{display:block;margin-top:1rem}`,h=class extends d{constructor(){super(...arguments),this._messages=g(),this.fontSizeInputElement=m(),this.isFontSizeInvalid=!1,this.fontStyle={type:S.TS},this.open=!1,this.enableClose=!1,this.arcgisChartsConfigFontStyleChange=s(),this.arcgisChartsConfigFontStyleClose=s()}static{this.properties={isFontSizeInvalid:16,messageOverrides:0,fontStyle:0,header:1,open:5,enableClose:5}}static{this.styles=C}closePanel(t){t.target.closed&&this.enableClose&&(this.open=!1,this.arcgisChartsConfigFontStyleClose.emit())}fontChange(t){let e=t.target.selectedOption.value;if(e!==void 0){let l={family:e};this.isNewFontProperty("family",l)&&(this.fontStyle=n(this.fontStyle,{font:l}),this.emitFontStyleEvent({font:l}))}}fontSizeChange(){let t=this.fontSizeInputElement.value?.value;if(t!==void 0&&v(t,this.fontSizeInputElement.value?.min,this.fontSizeInputElement.value?.max)){let e={size:Number.parseInt(t)};this.isNewFontProperty("size",e)&&(this.fontStyle=n(this.fontStyle,{font:e}),this.emitFontStyleEvent({font:e})),this.fontSizeInputElement.value&&(this.isFontSizeInvalid=!1,c({inputElement:this.fontSizeInputElement.value,status:r.IDLE}))}else this.fontSizeInputElement.value&&(this.isFontSizeInvalid=!0,c({inputElement:this.fontSizeInputElement.value,status:r.INVALID}),this.fontStyle.font?.size!==void 0&&(this.fontStyle.font.size=Number(t)))}boldSelect(){let t="bold";this.fontStyle?.font?.weight===t&&(t="normal");let e={weight:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}italicSelect(){let t="italic";this.fontStyle?.font?.style===t&&(t="normal");let e={style:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}underlineSelect(){let t="underline";this.fontStyle?.font?.decoration===t&&(t="none");let e={decoration:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}colorChange(t){let e=t.detail;this.fontStyle=n(this.fontStyle,{color:e}),this.emitFontStyleEvent({color:e})}emitFontStyleEvent(t){this.arcgisChartsConfigFontStyleChange.emit(t)}isNewFontProperty(t,e){return this.fontStyle?.font?.[t]!==e[t]}renderFonts(){let t=Object.values($).map(e=>o`<calcite-option .value=${e} .selected=${e===this.fontStyle?.font?.family||e===u().font?.family?.split(",")[0]&&this.fontStyle?.font?.family===void 0}>${e}</calcite-option>`);return this.fontStyle?.font?.family===""&&t.push(o`<calcite-option value selected></calcite-option>`),t}render(){return o`<calcite-panel .heading=${this.header??this._messages.header} .closed=${!this.open} .closable=${this.enableClose??!1} @calcitePanelClose=${this.closePanel}><div class=${i(a.fontStyleContainer)}><calcite-label class=${i(a.font)}>${this._messages.font}<calcite-select .label=${this._messages.font??""} @calciteSelectChange=${this.fontChange}>${this.renderFonts()}</calcite-select></calcite-label></div><div class=${i(a.fontStyleContainer)}><calcite-label class=${i(a.inputLabel)}>${this._messages.size}<calcite-input class=${i(a.numberInput)} type=number min=6 max=40 step=1 .value=${b(this.fontStyle?.font?.size)} @calciteInputInput=${this.fontSizeChange} ${p(this.fontSizeInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidFontSize} .isInvalid=${this.isFontSizeInvalid}></arcgis-charts-config-invalid-input-message></calcite-label><calcite-action appearance=transparent .text=${this._messages.bold??""} @click=${this.boldSelect} scale=l .active=${this.fontStyle?.font?.weight==="bold"} .disabled=${this.isFontSizeInvalid}><calcite-icon scale=s icon=bold></calcite-icon></calcite-action><calcite-action appearance=transparent .text=${this._messages.italic??""} @click=${this.italicSelect} scale=l .active=${this.fontStyle?.font?.style==="italic"} .disabled=${this.isFontSizeInvalid}><calcite-icon scale=s icon=italicize></calcite-icon></calcite-action><calcite-action appearance=transparent .text=${this._messages.underline??""} @click=${this.underlineSelect} scale=l .active=${this.fontStyle?.font?.decoration==="underline"} .disabled=${this.isFontSizeInvalid}><calcite-icon scale=s icon=underline></calcite-icon></calcite-action></div><div class=${i(a.fontStyleContainer)}><arcgis-charts-config-colors .rgba=${this.fontStyle?.color??void 0} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel>`}};y("arcgis-charts-config-font-style",h);return h},a,b)
2
+ import b from"./2FCUHT32.js";import"./POA2XTTK.js";import{a as g}from"./WCJEURG5.js";import a from"./5H4GHC76.js";import{H as u}from"./43DLRSYB.js";import{f as S}from"./KX7KGXKQ.js";import{o as n}from"./NGXRBJKL.js";import"./FQB2OTR4.js";import{A as p,B as d,C as i,H as y,g as f,i as o,n as s,z as m}from"./3WNW44CU.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([,{f:v,g:b,h:c,i:r}])=>{var $={arial:"Arial",arialBlack:"Arial Black",bookman:"Bookman",candara:"Candara",courier:"Courier",courierNew:"Courier New",garamond:"Garamond",georgia:"Georgia",impact:"Impact",palatino:"Palatino",roboto:"Roboto",times:"Times",timesNewRoman:"Times New Roman",verdana:"Verdana"},a={fontStyleContainer:"font-style-container",font:"font",numberInput:"number-input",inputLabel:"input-label"},C=f`.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{overflow-y:auto}:host calcite-panel .font-style-container .input-label{--calcite-label-margin-bottom: var(--arcgis-charts-intra-section-margin) !important}:host calcite-panel .font-style-container .number-input{margin-bottom:.5rem;display:flex}:host calcite-panel .font-style-container .number-input>div{width:100%}:host calcite-panel .font-style-container{display:flex}:host calcite-panel .font-style-container calcite-action,:host calcite-panel .font-style-container calcite-label{flex:1 1 0px;display:flex;flex-grow:inherit;width:80px}:host calcite-panel .font-style-container calcite-label{flex-grow:2}:host calcite-panel .font-style-container{padding:0 1rem}:host calcite-panel calcite-label.font{display:block;margin-top:1rem}`,h=class extends d{constructor(){super(...arguments),this._messages=g(),this.fontSizeInputElement=m(),this.isFontSizeInvalid=!1,this.fontStyle={type:S.TS},this.open=!1,this.enableClose=!1,this.arcgisChartsConfigFontStyleChange=s(),this.arcgisChartsConfigFontStyleClose=s()}static{this.properties={isFontSizeInvalid:16,messageOverrides:0,fontStyle:0,header:1,open:5,enableClose:5}}static{this.styles=C}closePanel(t){t.target.closed&&this.enableClose&&(this.open=!1,this.arcgisChartsConfigFontStyleClose.emit())}fontChange(t){let e=t.target.selectedOption.value;if(e!==void 0){let l={family:e};this.isNewFontProperty("family",l)&&(this.fontStyle=n(this.fontStyle,{font:l}),this.emitFontStyleEvent({font:l}))}}fontSizeChange(){let t=this.fontSizeInputElement.value?.value;if(t!==void 0&&v(t,this.fontSizeInputElement.value?.min,this.fontSizeInputElement.value?.max)){let e={size:Number.parseInt(t)};this.isNewFontProperty("size",e)&&(this.fontStyle=n(this.fontStyle,{font:e}),this.emitFontStyleEvent({font:e})),this.fontSizeInputElement.value&&(this.isFontSizeInvalid=!1,c({inputElement:this.fontSizeInputElement.value,status:r.IDLE}))}else this.fontSizeInputElement.value&&(this.isFontSizeInvalid=!0,c({inputElement:this.fontSizeInputElement.value,status:r.INVALID}),this.fontStyle.font?.size!==void 0&&(this.fontStyle.font.size=Number(t)))}boldSelect(){let t="bold";this.fontStyle?.font?.weight===t&&(t="normal");let e={weight:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}italicSelect(){let t="italic";this.fontStyle?.font?.style===t&&(t="normal");let e={style:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}underlineSelect(){let t="underline";this.fontStyle?.font?.decoration===t&&(t="none");let e={decoration:t};this.fontStyle=n(this.fontStyle,{font:e}),this.fontStyle={...this.fontStyle},this.emitFontStyleEvent({font:e})}colorChange(t){let e=t.detail;this.fontStyle=n(this.fontStyle,{color:e}),this.emitFontStyleEvent({color:e})}emitFontStyleEvent(t){this.arcgisChartsConfigFontStyleChange.emit(t)}isNewFontProperty(t,e){return this.fontStyle?.font?.[t]!==e[t]}renderFonts(){let t=Object.values($).map(e=>o`<calcite-option .value=${e} .selected=${e===this.fontStyle?.font?.family||e===u().font?.family?.split(",")[0]&&this.fontStyle?.font?.family===void 0}>${e}</calcite-option>`);return this.fontStyle?.font?.family===""&&t.push(o`<calcite-option value selected></calcite-option>`),t}render(){return o`<calcite-panel .heading=${this.header??this._messages.header} .closed=${!this.open} .closable=${this.enableClose??!1} @calcitePanelClose=${this.closePanel}><div class=${i(a.fontStyleContainer)}><calcite-label class=${i(a.font)}>${this._messages.font}<calcite-select .label=${this._messages.font??""} @calciteSelectChange=${this.fontChange}>${this.renderFonts()}</calcite-select></calcite-label></div><div class=${i(a.fontStyleContainer)}><calcite-label class=${i(a.inputLabel)}>${this._messages.size}<calcite-input class=${i(a.numberInput)} type=number min=6 max=40 step=1 .value=${b(this.fontStyle?.font?.size)} @calciteInputInput=${this.fontSizeChange} ${p(this.fontSizeInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidFontSize} .isInvalid=${this.isFontSizeInvalid}></arcgis-charts-config-invalid-input-message></calcite-label><calcite-action appearance=transparent .text=${this._messages.bold??""} @click=${this.boldSelect} scale=l .active=${this.fontStyle?.font?.weight==="bold"} .disabled=${this.isFontSizeInvalid}><calcite-icon scale=s icon=bold></calcite-icon></calcite-action><calcite-action appearance=transparent .text=${this._messages.italic??""} @click=${this.italicSelect} scale=l .active=${this.fontStyle?.font?.style==="italic"} .disabled=${this.isFontSizeInvalid}><calcite-icon scale=s icon=italicize></calcite-icon></calcite-action><calcite-action appearance=transparent .text=${this._messages.underline??""} @click=${this.underlineSelect} scale=l .active=${this.fontStyle?.font?.decoration==="underline"} .disabled=${this.isFontSizeInvalid}><calcite-icon scale=s icon=underline></calcite-icon></calcite-action></div><div class=${i(a.fontStyleContainer)}><arcgis-charts-config-colors .rgba=${this.fontStyle?.color??void 0} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel>`}};y("arcgis-charts-config-font-style",h);return h},a,b)
@@ -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.1/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.2/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 d from"./PQ2EO3DG.js";import"./POA2XTTK.js";import{a as S}from"./WLHHTU7Y.js";import b from"./WTXNKC2H.js";import"./43DLRSYB.js";import{b as t,f as u}from"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./AWPCC57E.js";import{A as c,B as g,C as l,E as n,H as y,g as m,i as s,n as a,z as o}from"./MVOEDTNZ.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([,{f:v,g:w,h:r,i:h}])=>{var d={sizeSection:"size-section",dropdownText:"dropdown-text",colorPickerContainer:"color-picker-container"},f=m`.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{overflow-y:auto}:host arcgis-charts-config-colors{padding:var(--arcgis-charts-panel-padding);padding-bottom:1rem}:host .size-section{padding:1rem;display:flex}:host .size-section calcite-label{flex:1 1 0px;width:0}:host .size-section calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}:host .color-picker-container{display:flex}:host .color-picker-container calcite-label{flex:1 1 0px;width:0}:host .color-picker-container calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}`,p=class extends g{constructor(){super(...arguments),this._messages=S(),this.lineWidthInputElement=o(),this.lineStyleDropdownElement=o(),this.isLineWidthInvalid=!1,this.lineStyle={type:u.SLS},this.open=!1,this.enableClose=!1,this.usePanel=!1,this.arcgisChartsConfigLineStyleChange=a(),this.arcgisChartsConfigLineStyleClose=a()}static{this.properties={isLineWidthInvalid:16,messageOverrides:0,lineStyle:0,header:1,open:5,enableClose:5,usePanel:5}}static{this.styles=f}closePanel(e){e.target.closed&&this.enableClose&&(this.open=!1,this.arcgisChartsConfigLineStyleClose.emit())}colorChange(e){this.lineStyle.color=e.detail,this.emitLineStyleEvent()}lineStyleChange(){let e=this.lineStyleDropdownElement.value?.selectedItems[0].accessKey;this.lineStyle.style!==e&&(this.lineStyle.style=e,this.lineStyle={...this.lineStyle},this.emitLineStyleEvent())}selectedLineStyle(){let e,i;switch(this.lineStyle?.style){case t.Dot:e="line-dotted",i=this._messages.dot??"";break;case t.Dash:e="line-dashed",i=this._messages.dash??"";break;case t.Solid:default:e="line-solid",i=this._messages.solid??"";break}return{icon:e,style:i}}widthChange(){let e=this.lineWidthInputElement.value?.value;e!==void 0&&v(e,this.lineWidthInputElement.value?.min,this.lineWidthInputElement.value?.max)?(this.lineStyle.width=Number.parseInt(e),this.emitLineStyleEvent(),this.lineWidthInputElement.value&&(this.isLineWidthInvalid=!1,r({inputElement:this.lineWidthInputElement.value,status:h.IDLE}))):this.lineWidthInputElement.value&&(this.isLineWidthInvalid=!0,r({inputElement:this.lineWidthInputElement.value,status:h.INVALID}))}emitLineStyleEvent(){Number.isNaN(Number.parseInt(this.lineStyle?.color?.[0]?.toString()??""))&&(this.lineStyle.color=void 0),this.arcgisChartsConfigLineStyleChange.emit(this.lineStyle)}render(){let e=[s`<div class=${l(d.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${c(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.selectedLineStyle().icon} slot=trigger kind=neutral appearance=outline-fill scale=m><label class=${l(d.dropdownText)}>${this.selectedLineStyle().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.lineStyle?.style===t.Solid} accesskey=${t.Solid??n}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.lineStyle?.style===t.Dot} accesskey=${t.Dot??n}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.lineStyle?.style===t.Dash} accesskey=${t.Dash??n}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${w(this.lineStyle?.width)} @calciteInputInput=${this.widthChange} ${c(this.lineWidthInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidLineWidth} .isInvalid=${this.isLineWidthInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div>`,s`<div class=${l(d.colorPickerContainer)}><arcgis-charts-config-colors .heading=${this._messages.lineColor} .rgba=${this.lineStyle?.color??void 0} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div>`];return this.usePanel?s`<calcite-panel .heading=${this.header??this._messages.header} .closed=${!this.open} .closable=${this.enableClose} @calcitePanelClose=${this.closePanel}>${e}</calcite-panel>`:e}};y("arcgis-charts-config-line-style",p);return p},b,d)
2
+ import d from"./2FCUHT32.js";import"./POA2XTTK.js";import{a as S}from"./WCJEURG5.js";import b from"./5H4GHC76.js";import"./43DLRSYB.js";import{b as t,f as u}from"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./FQB2OTR4.js";import{A as c,B as g,C as l,E as n,H as y,g as m,i as s,n as a,z as o}from"./3WNW44CU.js";import"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([,{f:v,g:w,h:r,i:h}])=>{var d={sizeSection:"size-section",dropdownText:"dropdown-text",colorPickerContainer:"color-picker-container"},f=m`.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{overflow-y:auto}:host arcgis-charts-config-colors{padding:var(--arcgis-charts-panel-padding);padding-bottom:1rem}:host .size-section{padding:1rem;display:flex}:host .size-section calcite-label{flex:1 1 0px;width:0}:host .size-section calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}:host .color-picker-container{display:flex}:host .color-picker-container calcite-label{flex:1 1 0px;width:0}:host .color-picker-container calcite-label .dropdown-text{max-width:75px;overflow:hidden;white-space:normal;text-overflow:ellipsis;cursor:pointer}`,p=class extends g{constructor(){super(...arguments),this._messages=S(),this.lineWidthInputElement=o(),this.lineStyleDropdownElement=o(),this.isLineWidthInvalid=!1,this.lineStyle={type:u.SLS},this.open=!1,this.enableClose=!1,this.usePanel=!1,this.arcgisChartsConfigLineStyleChange=a(),this.arcgisChartsConfigLineStyleClose=a()}static{this.properties={isLineWidthInvalid:16,messageOverrides:0,lineStyle:0,header:1,open:5,enableClose:5,usePanel:5}}static{this.styles=f}closePanel(e){e.target.closed&&this.enableClose&&(this.open=!1,this.arcgisChartsConfigLineStyleClose.emit())}colorChange(e){this.lineStyle.color=e.detail,this.emitLineStyleEvent()}lineStyleChange(){let e=this.lineStyleDropdownElement.value?.selectedItems[0].accessKey;this.lineStyle.style!==e&&(this.lineStyle.style=e,this.lineStyle={...this.lineStyle},this.emitLineStyleEvent())}selectedLineStyle(){let e,i;switch(this.lineStyle?.style){case t.Dot:e="line-dotted",i=this._messages.dot??"";break;case t.Dash:e="line-dashed",i=this._messages.dash??"";break;case t.Solid:default:e="line-solid",i=this._messages.solid??"";break}return{icon:e,style:i}}widthChange(){let e=this.lineWidthInputElement.value?.value;e!==void 0&&v(e,this.lineWidthInputElement.value?.min,this.lineWidthInputElement.value?.max)?(this.lineStyle.width=Number.parseInt(e),this.emitLineStyleEvent(),this.lineWidthInputElement.value&&(this.isLineWidthInvalid=!1,r({inputElement:this.lineWidthInputElement.value,status:h.IDLE}))):this.lineWidthInputElement.value&&(this.isLineWidthInvalid=!0,r({inputElement:this.lineWidthInputElement.value,status:h.INVALID}))}emitLineStyleEvent(){Number.isNaN(Number.parseInt(this.lineStyle?.color?.[0]?.toString()??""))&&(this.lineStyle.color=void 0),this.arcgisChartsConfigLineStyleChange.emit(this.lineStyle)}render(){let e=[s`<div class=${l(d.sizeSection)}><calcite-label>${this._messages.style}<calcite-dropdown @calciteDropdownSelect=${this.lineStyleChange} ${c(this.lineStyleDropdownElement)}><calcite-button .iconEnd=${this.selectedLineStyle().icon} slot=trigger kind=neutral appearance=outline-fill scale=m><label class=${l(d.dropdownText)}>${this.selectedLineStyle().style}</label></calcite-button><calcite-dropdown-group><calcite-dropdown-item icon-end=line-solid .selected=${this.lineStyle?.style===t.Solid} accesskey=${t.Solid??n}>${this._messages.solid}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dotted .selected=${this.lineStyle?.style===t.Dot} accesskey=${t.Dot??n}>${this._messages.dot}</calcite-dropdown-item><calcite-dropdown-item icon-end=line-dashed .selected=${this.lineStyle?.style===t.Dash} accesskey=${t.Dash??n}>${this._messages.dash}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></calcite-label><calcite-label>${this._messages.width}<calcite-input type=number min=1 step=any .value=${w(this.lineStyle?.width)} @calciteInputInput=${this.widthChange} ${c(this.lineWidthInputElement)}></calcite-input><arcgis-charts-config-invalid-input-message .invalidInputMessage=${this._messages.invalidLineWidth} .isInvalid=${this.isLineWidthInvalid}></arcgis-charts-config-invalid-input-message></calcite-label></div>`,s`<div class=${l(d.colorPickerContainer)}><arcgis-charts-config-colors .heading=${this._messages.lineColor} .rgba=${this.lineStyle?.color??void 0} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div>`];return this.usePanel?s`<calcite-panel .heading=${this.header??this._messages.header} .closed=${!this.open} .closable=${this.enableClose} @calcitePanelClose=${this.closePanel}>${e}</calcite-panel>`:e}};y("arcgis-charts-config-line-style",p);return p},b,d)
@@ -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"./U2S4KXBF.js";import c from"./7PZA76IS.js";import a from"./WTXNKC2H.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"./STIAP2Q5.js";import c from"./TI2WEAIV.js";import a from"./5H4GHC76.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)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./WTXNKC2H.js";import{p as O}from"./43DLRSYB.js";import{r as g}from"./NGXRBJKL.js";import{a,c as f,e as I}from"./QP5UAIC6.js";import{a as S}from"./Z5QPCSUQ.js";import{a as n,b as A,h as c,v as d}from"./QVG3TOL4.js";export default $arcgis.t(([{$:_,Cc:h,E:L,Mc:C,O:F,P:T,Q:D,R:N,dd:v,q:B,t:$,wa:b}])=>{function k(e,r){let s;return r===d.Category&&Array.isArray(e)?s=a.customSort:r===d.Category?s=e===c.Ascending?a.xAxisAsc:a.xAxisDesc:e===c.Ascending?s=a.yAxisAsc:s=a.yAxisDesc,s}function q(e,r){let s;return r===d.Category&&Array.isArray(e)?s=f.customSort:s=e===c.Ascending?f.Asc:f.Desc,s}var E=e=>{let r=e.orderOptions?.data&&"orderBy"in e.orderOptions.data?e.orderOptions.data.orderBy:c.Ascending;return k(r,e.orderOptions?.data?.orderType??d.Category)},R=e=>{let r=S(e.series),s=!1;return(r===n.BarSeries||r===n.LineSeries)&&(s=E(e)===a.customSort),s},G=e=>{let r=[],s=e.orderOptions?.data?.orderType;return R(e)&&s===d.Category&&(r=e.orderOptions?.data?.orderBy),r},Q=(e,r,s,i)=>{let t=S(r.series),m=_(r);r.orderOptions??={};let o=m?[""]:c.Ascending;if(m)e===f.customSort&&s!==void 0?o=[...s]:o=e===f.Desc?c.Descending:c.Ascending,i?r.orderOptions.data={...r.orderOptions.data,orderByY:o,orderType:d.MultiAxes}:r.orderOptions.data={...r.orderOptions.data,orderByX:o,orderType:d.MultiAxes};else if(t===n.BarSeries||t===n.LineSeries){let l=d.Category;e===a.customSort&&s!==void 0?(o=[...s],r.orderOptions.data={orderType:l,orderBy:o}):(l=e===a.xAxisAsc||e===a.xAxisDesc?d.Category:d.YValue,o=e===a.xAxisAsc||e===a.yAxisAsc?c.Ascending:c.Descending,r.orderOptions.data={orderType:l,orderBy:o})}},ee=e=>e?.series?.[0]?.x??"",re=e=>{let{config:r,xAxisField:s,numericFields:i,aggregationType:t,mode:m,layer:o,numericFieldIndex:l,seriesIndex:U,splitByField:w="",fieldList:H}=e,M=S(r.series),P=v(r.series),u;if($(o)){let y=b(o);u=i.length===1&&i[0]===y}else{let{idField:y,isTraditionalTypeOID:Y}=h(L(o));u=Y&&i.length===1&&i[0]===y}let p="y",x="y";switch(M){case n.PieSeries:{t!==A.NoAggregation?m===I.Category?(p=`${t}_${i[0]}_0`.toUpperCase(),x=u?g(A.Count):g(`${t} of ${i[0]}`)):p=T:p=i[0];break}case n.BarSeries:case n.LineSeries:case n.ComboLineAndBarSeries:case n.RadarSeries:case n.HeatSeries:{if(w===""||i.length>1)j({fieldName:s,numericFields:i,fieldList:H??[]})||P===B.BarAndLineFromFields?p=N:(p=t!==A.NoAggregation?`${t}_${i[l??0]}_${l??0}`.toUpperCase():i[l??0],x=u?g(A.Count):g(`${t} of ${i[l??0]}`));else{let y=i[0];p=t!==A.NoAggregation?`${t}_${y}_${U??0}`.toUpperCase():y,x=u?g(A.Count):g(`${t} of ${y}`)}break}}return{name:p,description:x}};function V(e){let{fieldName:r,fieldList:s}=e,i=C(s??[],r);return r===D||r===F||r===O||r===void 0||r.trim()===""||i===void 0}function j(e){let{fieldName:r,fieldList:s,numericFields:i}=e,t=i.filter(m=>C(s??[],m)?.type!=="esriFieldTypeOID");return V({fieldName:r,fieldList:s})&&(t?.length??0)>0}return{a:k,b:q,c:E,d:G,e:Q,f:ee,g:re,h:V,i:j}},b)
2
+ import b from"./5H4GHC76.js";import{p as O}from"./43DLRSYB.js";import{r as g}from"./NGXRBJKL.js";import{a,c as f,e as I}from"./QP5UAIC6.js";import{a as S}from"./Z5QPCSUQ.js";import{a as n,b as A,h as c,v as d}from"./QVG3TOL4.js";export default $arcgis.t(([{$:_,Cc:h,E:L,Mc:C,O:F,P:T,Q:D,R:N,dd:v,q:B,t:$,wa:b}])=>{function k(e,r){let s;return r===d.Category&&Array.isArray(e)?s=a.customSort:r===d.Category?s=e===c.Ascending?a.xAxisAsc:a.xAxisDesc:e===c.Ascending?s=a.yAxisAsc:s=a.yAxisDesc,s}function q(e,r){let s;return r===d.Category&&Array.isArray(e)?s=f.customSort:s=e===c.Ascending?f.Asc:f.Desc,s}var E=e=>{let r=e.orderOptions?.data&&"orderBy"in e.orderOptions.data?e.orderOptions.data.orderBy:c.Ascending;return k(r,e.orderOptions?.data?.orderType??d.Category)},R=e=>{let r=S(e.series),s=!1;return(r===n.BarSeries||r===n.LineSeries)&&(s=E(e)===a.customSort),s},G=e=>{let r=[],s=e.orderOptions?.data?.orderType;return R(e)&&s===d.Category&&(r=e.orderOptions?.data?.orderBy),r},Q=(e,r,s,i)=>{let t=S(r.series),m=_(r);r.orderOptions??={};let o=m?[""]:c.Ascending;if(m)e===f.customSort&&s!==void 0?o=[...s]:o=e===f.Desc?c.Descending:c.Ascending,i?r.orderOptions.data={...r.orderOptions.data,orderByY:o,orderType:d.MultiAxes}:r.orderOptions.data={...r.orderOptions.data,orderByX:o,orderType:d.MultiAxes};else if(t===n.BarSeries||t===n.LineSeries){let l=d.Category;e===a.customSort&&s!==void 0?(o=[...s],r.orderOptions.data={orderType:l,orderBy:o}):(l=e===a.xAxisAsc||e===a.xAxisDesc?d.Category:d.YValue,o=e===a.xAxisAsc||e===a.yAxisAsc?c.Ascending:c.Descending,r.orderOptions.data={orderType:l,orderBy:o})}},ee=e=>e?.series?.[0]?.x??"",re=e=>{let{config:r,xAxisField:s,numericFields:i,aggregationType:t,mode:m,layer:o,numericFieldIndex:l,seriesIndex:U,splitByField:w="",fieldList:H}=e,M=S(r.series),P=v(r.series),u;if($(o)){let y=b(o);u=i.length===1&&i[0]===y}else{let{idField:y,isTraditionalTypeOID:Y}=h(L(o));u=Y&&i.length===1&&i[0]===y}let p="y",x="y";switch(M){case n.PieSeries:{t!==A.NoAggregation?m===I.Category?(p=`${t}_${i[0]}_0`.toUpperCase(),x=u?g(A.Count):g(`${t} of ${i[0]}`)):p=T:p=i[0];break}case n.BarSeries:case n.LineSeries:case n.ComboLineAndBarSeries:case n.RadarSeries:case n.HeatSeries:{if(w===""||i.length>1)j({fieldName:s,numericFields:i,fieldList:H??[]})||P===B.BarAndLineFromFields?p=N:(p=t!==A.NoAggregation?`${t}_${i[l??0]}_${l??0}`.toUpperCase():i[l??0],x=u?g(A.Count):g(`${t} of ${i[l??0]}`));else{let y=i[0];p=t!==A.NoAggregation?`${t}_${y}_${U??0}`.toUpperCase():y,x=u?g(A.Count):g(`${t} of ${y}`)}break}}return{name:p,description:x}};function V(e){let{fieldName:r,fieldList:s}=e,i=C(s??[],r);return r===D||r===F||r===O||r===void 0||r.trim()===""||i===void 0}function j(e){let{fieldName:r,fieldList:s,numericFields:i}=e,t=i.filter(m=>C(s??[],m)?.type!=="esriFieldTypeOID");return V({fieldName:r,fieldList:s})&&(t?.length??0)>0}return{a:k,b:q,c:E,d:G,e:Q,f:ee,g:re,h:V,i:j}},b)