@arcgis/charts-components 5.2.0-next.31 → 5.2.0-next.33

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 (184) hide show
  1. package/dist/cdn/{WU62O2AU.js → 2CVA3SGN.js} +1 -1
  2. package/dist/cdn/35HUQECK.js +3 -0
  3. package/dist/cdn/{NKVZYKL5.js → 3EA7ST6X.js} +1 -1
  4. package/dist/cdn/{Y6CFEFZM.js → 3S7YCMP7.js} +1 -1
  5. package/dist/cdn/{DRFJC64L.js → 3X6QTGFF.js} +1 -1
  6. package/dist/cdn/{3MKY6UCO.js → 4ARHEXVJ.js} +1 -1
  7. package/dist/cdn/{PKQOLKTW.js → 4DEDSWYV.js} +1 -1
  8. package/dist/cdn/{Z43DVT6G.js → 4JKNHY7O.js} +1 -1
  9. package/dist/cdn/{MBPFBE3E.js → 4Q6TQOL5.js} +1 -1
  10. package/dist/cdn/{AZR6HVRW.js → 4XEJP6PY.js} +1 -1
  11. package/dist/cdn/{IWMWJN7M.js → 5JUMTA26.js} +1 -1
  12. package/dist/cdn/{RKG6CXUU.js → 5ZX5DKDK.js} +1 -1
  13. package/dist/cdn/{4TRUG37X.js → 6GARCIVS.js} +1 -1
  14. package/dist/cdn/{XRLVJJBT.js → 6LH7Y7PU.js} +1 -1
  15. package/dist/cdn/{6OCDFMFB.js → 7CSXC5DN.js} +1 -1
  16. package/dist/cdn/{O5NKLK7V.js → 7QIR4BM4.js} +1 -1
  17. package/dist/cdn/7YOJVEYS.js +2 -0
  18. package/dist/cdn/{3NKDMMC2.js → B6N4OMNY.js} +1 -1
  19. package/dist/cdn/{2SPGX6AF.js → BDWJKXSF.js} +1 -1
  20. package/dist/cdn/BGOWDCTO.js +2 -0
  21. package/dist/cdn/{ADYDCO3M.js → BYZU546L.js} +1 -1
  22. package/dist/cdn/{YFHB2EFH.js → CALA7HKD.js} +1 -1
  23. package/dist/cdn/{SSKHF7PO.js → DGJLXGIE.js} +1 -1
  24. package/dist/cdn/{BQXXD2HU.js → DRE7JXAI.js} +1 -1
  25. package/dist/cdn/{MVUIKY5Y.js → EFBBG67Q.js} +1 -1
  26. package/dist/cdn/{5UO6L27Q.js → EJIWN63T.js} +1 -1
  27. package/dist/cdn/{3UTF2CB3.js → F3XMYLVZ.js} +1 -1
  28. package/dist/cdn/{T5TFLMQL.js → FSUNWDBJ.js} +1 -1
  29. package/dist/cdn/{VY3KBD6N.js → G6EAXNDR.js} +1 -1
  30. package/dist/cdn/{X7Z4LEZH.js → G7Z6J5RV.js} +1 -1
  31. package/dist/cdn/{REZ2QR42.js → GLTERJLR.js} +1 -1
  32. package/dist/cdn/{6ANVHVX4.js → H3DNER4V.js} +1 -1
  33. package/dist/cdn/{3QO6REDF.js → H5EKLENR.js} +8 -8
  34. package/dist/cdn/{IPALCXFF.js → HE66HTT4.js} +1 -1
  35. package/dist/cdn/{7VQXBQMZ.js → HMHTGLG4.js} +1 -1
  36. package/dist/cdn/{3YN4EKSJ.js → IB7JS7SY.js} +1 -1
  37. package/dist/cdn/{YWKPGNHB.js → ICIEVVSN.js} +1 -1
  38. package/dist/cdn/{5XCU5SR2.js → IDWUHTEH.js} +1 -1
  39. package/dist/cdn/{4BEGCEGA.js → IR2S2FUR.js} +3 -3
  40. package/dist/cdn/{Y3CXVO2M.js → J2YNPNIL.js} +1 -1
  41. package/dist/cdn/{K27GKXGP.js → JKJOFEHQ.js} +1 -1
  42. package/dist/cdn/{DAF2U7TN.js → KDV2P46R.js} +1 -1
  43. package/dist/cdn/{HBS6O3P3.js → KEQTMZ4H.js} +1 -1
  44. package/dist/cdn/{THTYR6IL.js → KHT4LCWN.js} +1 -1
  45. package/dist/cdn/{CRCAJAFA.js → KZ2OB6RV.js} +1 -1
  46. package/dist/cdn/{PAIRUVLU.js → LLUS6VGO.js} +1 -1
  47. package/dist/cdn/{TCS4HOSG.js → LLYDWCNL.js} +1 -1
  48. package/dist/cdn/LRTICIHK.js +2 -0
  49. package/dist/cdn/{3TBK72EK.js → LV3T5QZF.js} +1 -1
  50. package/dist/cdn/{MEA74C44.js → LW6GBG3R.js} +1 -1
  51. package/dist/cdn/MNGK37MT.js +61 -0
  52. package/dist/cdn/{SOGVYNPI.js → N7MBLVLD.js} +1 -1
  53. package/dist/cdn/{6VK54DG5.js → NEXAUEB6.js} +1 -1
  54. package/dist/cdn/{Y7HBWU3M.js → NKUXUCUP.js} +1 -1
  55. package/dist/cdn/{2ODYZG66.js → NLWVJIKG.js} +1 -1
  56. package/dist/cdn/{GCRQHIGQ.js → O4RIY6NM.js} +1 -1
  57. package/dist/cdn/{Q2GW5LB7.js → OLMLZIOC.js} +1 -1
  58. package/dist/cdn/{YWCIV7ZZ.js → OZAHUXAZ.js} +1 -1
  59. package/dist/cdn/PKCJ77IC.js +2 -0
  60. package/dist/cdn/{6CB5R4QQ.js → PLACSZ4B.js} +1 -1
  61. package/dist/cdn/{N673JFHK.js → Q5VL76MN.js} +1 -1
  62. package/dist/cdn/{M4ZJRIYM.js → QBSSM5SD.js} +1 -1
  63. package/dist/cdn/{BZFGE4LO.js → QHQ3LXOS.js} +1 -1
  64. package/dist/cdn/{35NSJ3NJ.js → QJ5SV5WD.js} +1 -1
  65. package/dist/cdn/{BKU72IQC.js → QMOKFIDS.js} +1 -1
  66. package/dist/cdn/{WHVW3P3O.js → QNNG52P2.js} +1 -1
  67. package/dist/cdn/{AICTKGE3.js → QXXJNANY.js} +1 -1
  68. package/dist/cdn/{XRP6IFM4.js → QZIWEL6O.js} +1 -1
  69. package/dist/cdn/{JIV6BQKG.js → RE5VVA6N.js} +1 -1
  70. package/dist/cdn/{QV3NMKKZ.js → RP3UHRU3.js} +1 -1
  71. package/dist/cdn/{M7QZTQSD.js → S3XHOO4D.js} +1 -1
  72. package/dist/cdn/{TOFVWGTG.js → S76GRSZU.js} +1 -1
  73. package/dist/cdn/{X7YEBHBF.js → SCALEEJU.js} +1 -1
  74. package/dist/cdn/{7Z7NOIH2.js → SUAMHPKM.js} +1 -1
  75. package/dist/cdn/{TSA7UMSZ.js → SYFQUCIP.js} +1 -1
  76. package/dist/cdn/{CLN32L2L.js → SZXRIKL2.js} +1 -1
  77. package/dist/cdn/{QGEFY4ND.js → TCRIDGAS.js} +1 -1
  78. package/dist/cdn/{KQLAAGKI.js → TDNNODY2.js} +1 -1
  79. package/dist/cdn/{6GV2QPKV.js → TSEKFO24.js} +1 -1
  80. package/dist/cdn/{3SBYV6BW.js → TYDIOOT2.js} +1 -1
  81. package/dist/cdn/{4P7URPRQ.js → UBWQISYD.js} +1 -1
  82. package/dist/cdn/{JBR6IJMK.js → UGDK7VVY.js} +1 -1
  83. package/dist/cdn/{WJHIJTWS.js → WIP2MXFL.js} +1 -1
  84. package/dist/cdn/{LFXRCL7K.js → WV3NTL6A.js} +1 -1
  85. package/dist/cdn/{HIW5WRHR.js → XJATEY2N.js} +1 -1
  86. package/dist/cdn/{C4TQOUPO.js → XYT5GAQI.js} +1 -1
  87. package/dist/cdn/{G5EGTXMY.js → Y3SFQXIO.js} +1 -1
  88. package/dist/cdn/Z2CMTIET.js +2 -0
  89. package/dist/cdn/{ZW4PF3UK.js → Z2NN43OK.js} +1 -1
  90. package/dist/cdn/{YQIFZJTZ.js → Z6ZPSA7P.js} +1 -1
  91. package/dist/cdn/{BI54CNMR.js → ZBMTOUMZ.js} +1 -1
  92. package/dist/cdn/{6XIDALQU.js → ZIPXZUFN.js} +1 -1
  93. package/dist/cdn/{KFPJI52X.js → ZJKFLXTH.js} +1 -1
  94. package/dist/cdn/index.js +1 -1
  95. package/dist/cdn/model/shared/setup-utils.js +1 -1
  96. package/dist/chunks/axis-lines-symbol.js +7 -7
  97. package/dist/chunks/bar-chart-model.js +39 -36
  98. package/dist/chunks/box-plot-data.js +36 -36
  99. package/dist/chunks/box-plot-model.js +5 -5
  100. package/dist/chunks/chart-model.js +38 -38
  101. package/dist/chunks/class-breaks.js +7 -7
  102. package/dist/chunks/combo-bar-line-chart-model.js +27 -27
  103. package/dist/chunks/data-labels-symbol.js +1 -1
  104. package/dist/chunks/data-labels-visibility.js +22 -22
  105. package/dist/chunks/data.js +18 -18
  106. package/dist/chunks/gauge-model.js +16 -16
  107. package/dist/chunks/generate-x-axis-title.js +9 -9
  108. package/dist/chunks/heat-chart-model.js +5 -5
  109. package/dist/chunks/histogram-data.js +15 -15
  110. package/dist/chunks/histogram-model.js +4 -4
  111. package/dist/chunks/index.js +84 -83
  112. package/dist/chunks/index2.js +929 -914
  113. package/dist/chunks/index3.js +13 -13
  114. package/dist/chunks/index4.js +149 -49
  115. package/dist/chunks/line-chart-model.js +1 -1
  116. package/dist/chunks/model-setter.js +1 -1
  117. package/dist/chunks/model-with-y-guides.js +6 -6
  118. package/dist/chunks/negative-values-stacked-to-baseline.js +3 -3
  119. package/dist/chunks/pie-chart-data.js +16 -16
  120. package/dist/chunks/pie-chart-model.js +20 -20
  121. package/dist/chunks/radar-chart-model.js +1 -1
  122. package/dist/chunks/resource.js +1 -1
  123. package/dist/chunks/rounded-corners.js +73 -0
  124. package/dist/chunks/scatterplot-model.js +3 -3
  125. package/dist/chunks/serial-chart-data.js +86 -86
  126. package/dist/chunks/serial-chart-model.js +13 -13
  127. package/dist/chunks/series-length.js +1 -1
  128. package/dist/chunks/series.js +1 -1
  129. package/dist/chunks/type-guards.js +17 -13
  130. package/dist/chunks/type-guards2.js +24 -20
  131. package/dist/chunks/type-guards3.js +1 -1
  132. package/dist/chunks/utils.js +15 -15
  133. package/dist/chunks/utils2.js +1 -1
  134. package/dist/chunks/web-component-utils.js +41 -41
  135. package/dist/chunks/x-bounds.js +16 -16
  136. package/dist/components/arcgis-chart/customElement.d.ts +2 -1
  137. package/dist/components/arcgis-chart/customElement.js +6501 -6393
  138. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
  139. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
  140. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
  141. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
  142. package/dist/components/arcgis-charts-config-create-flow/customElement.js +2 -2
  143. package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
  144. package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
  145. package/dist/components/arcgis-charts-config-guide/customElement.js +6 -6
  146. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  147. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +16 -16
  148. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +4 -4
  149. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  150. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +11 -11
  151. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
  152. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
  153. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
  154. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
  155. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
  156. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +5 -5
  157. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -5
  158. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  159. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +6 -6
  160. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
  161. package/dist/components/arcgis-charts-info-modal/customElement.js +1 -1
  162. package/dist/docs/api.json +1 -1
  163. package/dist/docs/docs.json +1 -1
  164. package/dist/docs/vscode.html-custom-data.json +1 -1
  165. package/dist/docs/web-types.json +1 -1
  166. package/dist/index.js +462 -459
  167. package/dist/json-schema/index.d.ts +92 -2
  168. package/dist/model/bar-chart-model/bar-chart-model.d.ts +4 -2
  169. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +3 -2
  170. package/dist/model/properties/rounded-corners.d.ts +18 -0
  171. package/dist/model/shared/type-guards.d.ts +7 -0
  172. package/dist/spec/web-chart.d.ts +8 -0
  173. package/dist/utils/chart-config/converter/index.js +16 -16
  174. package/dist/utils/defaults/index.d.ts +4 -1
  175. package/dist/utils/layer/interfaces.d.ts +2 -1
  176. package/package.json +4 -5
  177. package/dist/cdn/BJBNELDD.js +0 -3
  178. package/dist/cdn/EZV7JSQJ.js +0 -2
  179. package/dist/cdn/PEYVSFSE.js +0 -58
  180. package/dist/cdn/SAYLTYWY.js +0 -2
  181. package/dist/cdn/U3MRRFML.js +0 -2
  182. package/dist/cdn/VWTJHXHI.js +0 -2
  183. package/dist/cdn/WPPMMVD5.js +0 -2
  184. package/dist/chunks/bar-chart-series.js +0 -15
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./BJBNELDD.js";import{q as x}from"./PAIRUVLU.js";import{a as C,b as g,d as b,f as k}from"./KX7KGXKQ.js";import{d as j,g as z,j as q,l as B,r as L}from"./SP2IPHWF.js";import{a as W}from"./547RDEMV.js";export default $arcgis.t(([Z,{createClassBreaksRenderer:Q},{getSchemes:U},K,{mb:G,tc:A}])=>{function X(e){let a;switch(e.length){case 4:{let t=e.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);t&&(a=[Number.parseInt(`${t[1]}${t[1]}`,16),Number.parseInt(`${t[2]}${t[2]}`,16),Number.parseInt(`${t[3]}${t[3]}`,16),255]);break}case 5:{let t=e.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);t&&(a=[Number.parseInt(`${t[1]}${t[1]}`,16),Number.parseInt(`${t[2]}${t[2]}`,16),Number.parseInt(`${t[3]}${t[3]}`,16),Number.parseInt(`${t[4]}${t[4]}`,16)]);break}case 7:{let t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);t&&(a=[Number.parseInt(t[1],16),Number.parseInt(t[2],16),Number.parseInt(t[3],16),255]);break}case 9:{let t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);t&&(a=[Number.parseInt(t[1],16),Number.parseInt(t[2],16),Number.parseInt(t[3],16),Number.parseInt(t[4],16)]);break}}return a}function _(e){let a;if(typeof e=="string"&&e.startsWith("#")){let t=X(e);t&&(a=t)}else Array.isArray(e)&&e.every(t=>typeof t=="number")&&(e.length===4?a=e:e.length===3&&(a=[...e,255]));return a}function J(e){return e===b.BackwardDiagonal||e===b.Cross||e===b.DiagonalCross||e===b.ForwardDiagonal||e===b.Horizontal||e===b.Null||e===b.Solid||e===b.Vertical}function R(e){return e===g.Dash||e===g.DashDot||e===g.DashDotDot||e===g.Dot||e===g.Null||e===g.Solid}function ee(e){let{categoryField:a,numericFields:t,configFields:r,inlineData:c}=e,n={};return r&&Object.keys(r).length>0&&"dataItems"in c&&(n={type:"uniqueValue",field1:a,uniqueValueInfos:[]},c.dataItems.forEach(s=>{let l=s[a];if(l!=null){let o={value:l};t.forEach(i=>{let u=_(s[`${r.fillColor}_${i}`]),m=s[`${r.fillOpacity}_${i}`],p=s[`${r.fillStyle}_${i}`],f=s[`${r.markerSize}_${i}`],d=_(s[`${r.outlineColor}_${i}`]),F=s[`${r.outlineOpacity}_${i}`],$=s[`${r.outlineWidth}_${i}`],N=s[`${r.outlineStyle}_${i}`],S=_(s[`${r.lineColor}_${i}`]),O=s[`${r.lineOpacity}_${i}`],I=s[`${r.lineWidth}_${i}`],w=s[`${r.lineStyle}_${i}`],V=s[`${r.displayLabel}_${i}`];if(typeof V=="string"&&(o={...o,label:V}),f!=null){let y={type:k.SMS};f&&typeof f=="number"&&(y.size=f),o.symbol=y}if(u||J(p)){let y=o.symbol?.type===k.SMS?o.symbol:{type:k.SFS};if(u&&(m&&typeof m=="number"&&(u[3]=m),y.color=u),J(p)&&(y.style=p),o.symbol=y,d||$!=null||R(N)){let D={type:k.SLS};d&&(F&&typeof F=="number"&&(d[3]=F),D.color=d),R(N)&&(D.style=N),$&&typeof $=="number"&&(D.width=$),o.symbol.outline=D}}else if(S||I!=null||R(w)){let y={type:k.SLS};S&&(O&&typeof O=="number"&&(S[3]=O),y.color=S),R(w)&&(y.style=w),I!=null&&typeof I=="number"&&(y.width=I),o.symbol=y}}),(o.label||o.symbol)&&n.uniqueValueInfos.push(o)}})),n}function te(e){let{numericFields:a,configFields:t,inlineData:r}=e,c=r;return"dataItems"in r&&Object.entries(t).forEach(([n,s])=>{a.forEach(l=>{let o=`${s}_${l}`;r.dataItems.forEach(i=>{o in i&&delete i[o]})})}),c}function ae(e){let{categoryField:a,categoryType:t,numericFields:r,inlineData:c}=e,n;if("dataItems"in c){let{dataItems:s}=c,l=[],o="OBJECTID",i=s.map((m,p)=>{let f={...m};return"FID"in m?o="FID":"ObjectId"in m&&(o="ObjectId"),f[o]||(f[o]=p),{attributes:f}});l.push({type:"esriFieldTypeOID",name:o});let u;switch(t){case"dateOnly":u=C.DateOnly;break;case"timeStampOffset":u=C.TimestampOffset;break;case"date":u=C.Date;break;case"number":u=C.Double;break;default:u=C.String;break}l.push({type:u,name:a}),r.forEach(m=>{l.push({type:C.Double,name:m})}),n={id:"",layerType:"ArcGISFeatureLayer",featureCollection:{layers:[{layerDefinition:{fields:l},featureSet:{features:i}}]}}}return n}async function re(e){let{categoryField:a,categoryType:t,numericFields:r,configFields:c,inlineData:n}=e,s,l,o=z(n);c&&(s=ee({categoryField:a,numericFields:r,configFields:c,inlineData:o}),o=te({numericFields:r,configFields:c,inlineData:o}));let i=ae({categoryField:a,categoryType:t,numericFields:r,inlineData:o});return i&&(l=await G(i)),{chartRenderer:s,iLayer:i,layer:l}}var E=K.all(),se=U({geometryType:"point",theme:"high-to-low"});function H(e,a,t){let r=Math.max(0,Math.min(1,t));return[Math.round(e[0]+(a[0]-e[0])*r),Math.round(e[1]+(a[1]-e[1])*r),Math.round(e[2]+(a[2]-e[2])*r),Math.round(e[3]+(a[3]-e[3])*r)]}function ne(e,a){return a?.length===e?a:[]}function oe(e){let{numberOfClassBreaks:a,baseColors:t,fallbackStartColor:r=[237,248,251,255],fallbackEndColor:c=[136,65,157,255]}=e,n=[];if(a>0){let s=t?.[0]??r,l=t&&t.length>1?t[t.length-1]:c;if(a===1)n=[s];else for(let o=0;o<a;o++){let i=o/(a-1);n.push(H(s,l,i))}}return n}function le(e){let{colorRamp:a,numberOfClassBreaks:t,isFlipped:r}=e,c=[],n=!1;if(a.colorsForClassBreaks&&a.colorsForClassBreaks.length>0){let s=a.colorsForClassBreaks.find(l=>l.numClasses===t);if(s?.colors?.length===t){let l=s.colors.map(o=>M(o));l.every(o=>o!==void 0)&&(c=r?l.reverse():l,n=!0)}}if(!n){let s=a.colors||[];if(s.length>0){let l=s.map(M).filter(i=>i!==void 0);r&&(l=l.reverse());let o=[];for(let i=0;i<t;i++){let u=t>1?i/(t-1):0,m=Math.floor(u*(l.length-1)),p=Math.min(m+1,l.length-1),f=l[m],d=l[p];if(!f||!d){c=[];break}let F=u*(l.length-1)-m,$=H(f,d,F);o.push($)}c=o}}return c}function P(e){let{numberOfClassBreaks:a,selectedColorRamp:t,colorRamp:r,isFlipped:c=!1}=e,n=ne(a,r),s=t?le({colorRamp:t,numberOfClassBreaks:a,isFlipped:c}):[];return n.length!==a&&(n=s),n.length!==a&&(n=oe({numberOfClassBreaks:a,baseColors:s.length>0?s:r})),n}function ie(e,a=2){return`\u2264 ${(t=>{let r="";return t%1===0?r=t.toString():r=t.toFixed(a),r})(e)}`}function Ie(e){let a="#000000";if(e&&Array.isArray(e)&&e.length>=3){let t=h(e[0]||0),r=h(e[1]||0),c=h(e[2]||0),n=t.toString(16).padStart(2,"0"),s=r.toString(16).padStart(2,"0"),l=c.toString(16).padStart(2,"0");a=`#${n}${s}${l}`}return a}var De={all:["*"],light:["light"],dark:["dark"],redsAndYellows:["oranges","reds","yellows"],greens:["greens"],blues:["blues"],purplesAndPinks:["purples","pinks"],browns:["browns"],grays:["grays"],bright:["bright"],subdued:["subdued"],colorblindFriendly:["colorblind-friendly"]},Be={all:"all"},ce=e=>{let a=0,t=n=>{let s=0;return n.forEach(l=>{let o=l.toString().split(".")[1];o&&(s=Math.max(s,o.length))}),s},r=[...e].sort((n,s)=>n-s),c=t(r);for(;a<=c&&r.some((n,s)=>s>0&&A(n,a)<=A(r[s-1],a));)a++;return Math.min(a,c)};function h(e){return Math.max(0,Math.min(255,Math.round(e)))}function M(e){let a;if(e instanceof Z){let t=e.toRgba();a=[h(t[0]),h(t[1]),h(t[2]),h(t[3]*255)]}else if(Array.isArray(e)&&e.every(t=>typeof t=="number")&&e.length===4){let t=e.length>=4?e[3]??255:255,r=h(t<=1?t*255:t);a=[h(e[0]??0),h(e[1]??0),h(e[2]??0),r]}return a}function v(e){let a=[];for(let t of e){let r=M(t);r&&a.push(r)}return a}function T(e,a){let t=0,r=e.size<=a.size?e:a,c=r===e?a:e;for(let n of r)c.has(n)&&t++;return t}function ue(e){return[...e.colors??[],...q(e.colorsForClassBreaks??[],a=>a.colors??[])]}function me(e){let{ramp:a,breakKeys:t,breakCount:r,weights:c}=e,n=d=>d.join(","),s=a.colorsForClassBreaks?.find(d=>d.numClasses===r)?.colors??[],l=new Set(v(s).map(n)),o=T(t,l),i=new Set(v(P({numberOfClassBreaks:r,selectedColorRamp:a})).map(n)),u=T(t,i),m=ue(a).filter(d=>!!d),p=new Set(v(m).map(n)),f=T(t,p);return o*c.exactN+u*c.generated+f*c.anyOverlap}function Re(e,a){let t={exactN:100,generated:10,anyOverlap:1},r=n=>n.join(","),c;if(e?.length){let n=v(e.map(u=>u.symbol?.color)),s=new Set(n.map(r)),l=n.length,o=a.map(u=>{let m=me({ramp:u,breakKeys:s,breakCount:l,weights:t});return{ramp:u,score:m}}),i=L(o,[u=>-u.score,u=>u.ramp.name]);i[0]?.score>0&&(c=i[0].ramp)}return c}function ve(e,a){let t=!0;if(!e?.length||a.length<2)t=!1;else{let r=e.map(M),c=a.map(n=>n.symbol.color);if(r.length!==c.length)t=!1;else{let n=(o,i)=>!!o&&!!i&&o.length===i.length&&o.every((u,m)=>u===i[m]),s=0,l=c.length-1;for(;s<r.length&&l>=0;){if(!n(r[s],c[l])){t=!1;break}s++,l--}}}return t}async function fe(e){let{data:a,breaksCount:t,classificationMethod:r,xAxisField:c,colorsForClassBreaks:n}=e,s=[],l=await re({categoryField:c??"",categoryType:W.DateAxisFormat,numericFields:[x.valueField],inlineData:a});if(l.layer){let o=se?.primaryScheme,i=await Q({layer:l.layer,field:x.valueField,classificationMethod:r,numClasses:t,colorScheme:o});if(i?.classBreaksResult?.classBreakInfos?.length){let u=ce(i.classBreaksResult.classBreakInfos.map(m=>m.maxValue));s=i.classBreaksResult.classBreakInfos.map((m,p)=>({classMinValue:m.minValue,classMaxValue:m.maxValue,label:ie(m.maxValue,u),symbol:{type:k.SFS,style:b.Solid,color:n?.[p]||[0,0,0,255],outline:{style:g.Solid,width:.5,color:[50,50,50,.6]}}}))}}return s}function pe(e){return e?.length?e:Y.esriColorRamps}function de(e,a){return e?pe(a).find(t=>t.name===e):void 0}function ye(e){let{colorRampName:a,availableColorRamps:t}=e;return de(a,t)??Y.defaultColorRampForCharts}var Me=j(async e=>{let{data:a,breaksCount:t,classificationMethod:r,xAxisField:c,colorRampName:n,availableColorRamps:s,existingClassBreakInfos:l,useExistingColors:o,isColorRampFlipped:i}=e,u=ye({colorRampName:n,availableColorRamps:s}),m=i??!1,p=P({numberOfClassBreaks:t,selectedColorRamp:u,colorRamp:o?l?.map(f=>f.symbol?.color):void 0,isFlipped:m});return await fe({data:a,classificationMethod:r,breaksCount:t,xAxisField:c,colorsForClassBreaks:p})},e=>JSON.stringify(e)),Y={esriColorRamps:E,defaultColorRampForCharts:E.find(e=>e.name==="Blue 3")??E[0]};function Ne({currentBreaks:e,configBreaks:a,treatReversedColorsAsEqual:t=!0}){let r=!0;if(Array.isArray(e)&&Array.isArray(a)){let c=n=>n.map(({symbol:s,...l})=>l);if(B(c(e),c(a))){let n=e.map(i=>i.symbol?.color),s=a.map(i=>i.symbol?.color),l=B(n,s),o=B(n,[...s].reverse());r=t?!(l||o):!l}}return r}return{a:P,b:Ie,c:De,d:Be,e:Re,f:ve,g:Me,h:Y,i:Ne}},"Color","smartMapping/renderers/color","smartMapping/symbology/color","smartMapping/symbology/support/colorRamps",a)
2
+ import a from"./35HUQECK.js";import{q as x}from"./LLUS6VGO.js";import{a as k,b as g,d as b,f as C}from"./KX7KGXKQ.js";import{d as j,g as z,j as q,l as B,r as L}from"./SP2IPHWF.js";import{a as W}from"./547RDEMV.js";export default $arcgis.t(([Z,{createClassBreaksRenderer:Q},{getSchemes:U},K,{mb:G,tc:A}])=>{function X(e){let a;switch(e.length){case 4:{let t=e.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);t&&(a=[Number.parseInt(`${t[1]}${t[1]}`,16),Number.parseInt(`${t[2]}${t[2]}`,16),Number.parseInt(`${t[3]}${t[3]}`,16),255]);break}case 5:{let t=e.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);t&&(a=[Number.parseInt(`${t[1]}${t[1]}`,16),Number.parseInt(`${t[2]}${t[2]}`,16),Number.parseInt(`${t[3]}${t[3]}`,16),Number.parseInt(`${t[4]}${t[4]}`,16)]);break}case 7:{let t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);t&&(a=[Number.parseInt(t[1],16),Number.parseInt(t[2],16),Number.parseInt(t[3],16),255]);break}case 9:{let t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);t&&(a=[Number.parseInt(t[1],16),Number.parseInt(t[2],16),Number.parseInt(t[3],16),Number.parseInt(t[4],16)]);break}}return a}function _(e){let a;if(typeof e=="string"&&e.startsWith("#")){let t=X(e);t&&(a=t)}else Array.isArray(e)&&e.every(t=>typeof t=="number")&&(e.length===4?a=e:e.length===3&&(a=[...e,255]));return a}function J(e){return e===b.BackwardDiagonal||e===b.Cross||e===b.DiagonalCross||e===b.ForwardDiagonal||e===b.Horizontal||e===b.Null||e===b.Solid||e===b.Vertical}function R(e){return e===g.Dash||e===g.DashDot||e===g.DashDotDot||e===g.Dot||e===g.Null||e===g.Solid}function ee(e){let{categoryField:a,numericFields:t,configFields:r,inlineData:c}=e,n={};return r&&Object.keys(r).length>0&&"dataItems"in c&&(n={type:"uniqueValue",field1:a,uniqueValueInfos:[]},c.dataItems.forEach(s=>{let l=s[a];if(l!=null){let o={value:l};t.forEach(i=>{let u=_(s[`${r.fillColor}_${i}`]),m=s[`${r.fillOpacity}_${i}`],p=s[`${r.fillStyle}_${i}`],f=s[`${r.markerSize}_${i}`],d=_(s[`${r.outlineColor}_${i}`]),F=s[`${r.outlineOpacity}_${i}`],$=s[`${r.outlineWidth}_${i}`],N=s[`${r.outlineStyle}_${i}`],S=_(s[`${r.lineColor}_${i}`]),O=s[`${r.lineOpacity}_${i}`],I=s[`${r.lineWidth}_${i}`],w=s[`${r.lineStyle}_${i}`],V=s[`${r.displayLabel}_${i}`];if(typeof V=="string"&&(o={...o,label:V}),f!=null){let y={type:C.SMS};f&&typeof f=="number"&&(y.size=f),o.symbol=y}if(u||J(p)){let y=o.symbol?.type===C.SMS?o.symbol:{type:C.SFS};if(u&&(m&&typeof m=="number"&&(u[3]=m),y.color=u),J(p)&&(y.style=p),o.symbol=y,d||$!=null||R(N)){let D={type:C.SLS};d&&(F&&typeof F=="number"&&(d[3]=F),D.color=d),R(N)&&(D.style=N),$&&typeof $=="number"&&(D.width=$),o.symbol.outline=D}}else if(S||I!=null||R(w)){let y={type:C.SLS};S&&(O&&typeof O=="number"&&(S[3]=O),y.color=S),R(w)&&(y.style=w),I!=null&&typeof I=="number"&&(y.width=I),o.symbol=y}}),(o.label||o.symbol)&&n.uniqueValueInfos.push(o)}})),n}function te(e){let{numericFields:a,configFields:t,inlineData:r}=e,c=r;return"dataItems"in r&&Object.entries(t).forEach(([n,s])=>{a.forEach(l=>{let o=`${s}_${l}`;r.dataItems.forEach(i=>{o in i&&delete i[o]})})}),c}function ae(e){let{categoryField:a,categoryType:t,numericFields:r,inlineData:c}=e,n;if("dataItems"in c){let{dataItems:s}=c,l=[],o="OBJECTID",i=s.map((m,p)=>{let f={...m};return"FID"in m?o="FID":"ObjectId"in m&&(o="ObjectId"),f[o]||(f[o]=p),{attributes:f}});l.push({type:"esriFieldTypeOID",name:o});let u;switch(t){case"dateOnly":u=k.DateOnly;break;case"timeStampOffset":u=k.TimestampOffset;break;case"date":u=k.Date;break;case"number":u=k.Double;break;default:u=k.String;break}l.push({type:u,name:a}),r.forEach(m=>{l.push({type:k.Double,name:m})}),n={id:"",layerType:"ArcGISFeatureLayer",featureCollection:{layers:[{layerDefinition:{fields:l},featureSet:{features:i}}]}}}return n}async function re(e){let{categoryField:a,categoryType:t,numericFields:r,configFields:c,inlineData:n}=e,s,l,o=z(n);c&&(s=ee({categoryField:a,numericFields:r,configFields:c,inlineData:o}),o=te({numericFields:r,configFields:c,inlineData:o}));let i=ae({categoryField:a,categoryType:t,numericFields:r,inlineData:o});return i&&(l=await G(i)),{chartRenderer:s,iLayer:i,layer:l}}var E=K.all(),se=U({geometryType:"point",theme:"high-to-low"});function H(e,a,t){let r=Math.max(0,Math.min(1,t));return[Math.round(e[0]+(a[0]-e[0])*r),Math.round(e[1]+(a[1]-e[1])*r),Math.round(e[2]+(a[2]-e[2])*r),Math.round(e[3]+(a[3]-e[3])*r)]}function ne(e,a){return a?.length===e?a:[]}function oe(e){let{numberOfClassBreaks:a,baseColors:t,fallbackStartColor:r=[237,248,251,255],fallbackEndColor:c=[136,65,157,255]}=e,n=[];if(a>0){let s=t?.[0]??r,l=t&&t.length>1?t[t.length-1]:c;if(a===1)n=[s];else for(let o=0;o<a;o++){let i=o/(a-1);n.push(H(s,l,i))}}return n}function le(e){let{colorRamp:a,numberOfClassBreaks:t,isFlipped:r}=e,c=[],n=!1;if(a.colorsForClassBreaks&&a.colorsForClassBreaks.length>0){let s=a.colorsForClassBreaks.find(l=>l.numClasses===t);if(s?.colors?.length===t){let l=s.colors.map(o=>M(o));l.every(o=>o!==void 0)&&(c=r?l.reverse():l,n=!0)}}if(!n){let s=a.colors||[];if(s.length>0){let l=s.map(M).filter(i=>i!==void 0);r&&(l=l.reverse());let o=[];for(let i=0;i<t;i++){let u=t>1?i/(t-1):0,m=Math.floor(u*(l.length-1)),p=Math.min(m+1,l.length-1),f=l[m],d=l[p];if(!f||!d){c=[];break}let F=u*(l.length-1)-m,$=H(f,d,F);o.push($)}c=o}}return c}function P(e){let{numberOfClassBreaks:a,selectedColorRamp:t,colorRamp:r,isFlipped:c=!1}=e,n=ne(a,r),s=t?le({colorRamp:t,numberOfClassBreaks:a,isFlipped:c}):[];return n.length!==a&&(n=s),n.length!==a&&(n=oe({numberOfClassBreaks:a,baseColors:s.length>0?s:r})),n}function ie(e,a=2){return`\u2264 ${(t=>{let r="";return t%1===0?r=t.toString():r=t.toFixed(a),r})(e)}`}function Ie(e){let a="#000000";if(e&&Array.isArray(e)&&e.length>=3){let t=h(e[0]||0),r=h(e[1]||0),c=h(e[2]||0),n=t.toString(16).padStart(2,"0"),s=r.toString(16).padStart(2,"0"),l=c.toString(16).padStart(2,"0");a=`#${n}${s}${l}`}return a}var De={all:["*"],light:["light"],dark:["dark"],redsAndYellows:["oranges","reds","yellows"],greens:["greens"],blues:["blues"],purplesAndPinks:["purples","pinks"],browns:["browns"],grays:["grays"],bright:["bright"],subdued:["subdued"],colorblindFriendly:["colorblind-friendly"]},Be={all:"all"},ce=e=>{let a=0,t=n=>{let s=0;return n.forEach(l=>{let o=l.toString().split(".")[1];o&&(s=Math.max(s,o.length))}),s},r=[...e].sort((n,s)=>n-s),c=t(r);for(;a<=c&&r.some((n,s)=>s>0&&A(n,a)<=A(r[s-1],a));)a++;return Math.min(a,c)};function h(e){return Math.max(0,Math.min(255,Math.round(e)))}function M(e){let a;if(e instanceof Z){let t=e.toRgba();a=[h(t[0]),h(t[1]),h(t[2]),h(t[3]*255)]}else if(Array.isArray(e)&&e.every(t=>typeof t=="number")&&e.length===4){let t=e.length>=4?e[3]??255:255,r=h(t<=1?t*255:t);a=[h(e[0]??0),h(e[1]??0),h(e[2]??0),r]}return a}function v(e){let a=[];for(let t of e){let r=M(t);r&&a.push(r)}return a}function T(e,a){let t=0,r=e.size<=a.size?e:a,c=r===e?a:e;for(let n of r)c.has(n)&&t++;return t}function ue(e){return[...e.colors??[],...q(e.colorsForClassBreaks??[],a=>a.colors??[])]}function me(e){let{ramp:a,breakKeys:t,breakCount:r,weights:c}=e,n=d=>d.join(","),s=a.colorsForClassBreaks?.find(d=>d.numClasses===r)?.colors??[],l=new Set(v(s).map(n)),o=T(t,l),i=new Set(v(P({numberOfClassBreaks:r,selectedColorRamp:a})).map(n)),u=T(t,i),m=ue(a).filter(d=>!!d),p=new Set(v(m).map(n)),f=T(t,p);return o*c.exactN+u*c.generated+f*c.anyOverlap}function Re(e,a){let t={exactN:100,generated:10,anyOverlap:1},r=n=>n.join(","),c;if(e?.length){let n=v(e.map(u=>u.symbol?.color)),s=new Set(n.map(r)),l=n.length,o=a.map(u=>{let m=me({ramp:u,breakKeys:s,breakCount:l,weights:t});return{ramp:u,score:m}}),i=L(o,[u=>-u.score,u=>u.ramp.name]);i[0]?.score>0&&(c=i[0].ramp)}return c}function ve(e,a){let t=!0;if(!e?.length||a.length<2)t=!1;else{let r=e.map(M),c=a.map(n=>n.symbol.color);if(r.length!==c.length)t=!1;else{let n=(o,i)=>!!o&&!!i&&o.length===i.length&&o.every((u,m)=>u===i[m]),s=0,l=c.length-1;for(;s<r.length&&l>=0;){if(!n(r[s],c[l])){t=!1;break}s++,l--}}}return t}async function fe(e){let{data:a,breaksCount:t,classificationMethod:r,xAxisField:c,colorsForClassBreaks:n}=e,s=[],l=await re({categoryField:c??"",categoryType:W.DateAxisFormat,numericFields:[x.valueField],inlineData:a});if(l.layer){let o=se?.primaryScheme,i=await Q({layer:l.layer,field:x.valueField,classificationMethod:r,numClasses:t,colorScheme:o});if(i?.classBreaksResult?.classBreakInfos?.length){let u=ce(i.classBreaksResult.classBreakInfos.map(m=>m.maxValue));s=i.classBreaksResult.classBreakInfos.map((m,p)=>({classMinValue:m.minValue,classMaxValue:m.maxValue,label:ie(m.maxValue,u),symbol:{type:C.SFS,style:b.Solid,color:n?.[p]||[0,0,0,255],outline:{style:g.Solid,width:.5,color:[50,50,50,.6]}}}))}}return s}function pe(e){return e?.length?e:Y.esriColorRamps}function de(e,a){return e?pe(a).find(t=>t.name===e):void 0}function ye(e){let{colorRampName:a,availableColorRamps:t}=e;return de(a,t)??Y.defaultColorRampForCharts}var Me=j(async e=>{let{data:a,breaksCount:t,classificationMethod:r,xAxisField:c,colorRampName:n,availableColorRamps:s,existingClassBreakInfos:l,useExistingColors:o,isColorRampFlipped:i}=e,u=ye({colorRampName:n,availableColorRamps:s}),m=i??!1,p=P({numberOfClassBreaks:t,selectedColorRamp:u,colorRamp:o?l?.map(f=>f.symbol?.color):void 0,isFlipped:m});return await fe({data:a,classificationMethod:r,breaksCount:t,xAxisField:c,colorsForClassBreaks:p})},e=>JSON.stringify(e)),Y={esriColorRamps:E,defaultColorRampForCharts:E.find(e=>e.name==="Blue 3")??E[0]};function Ne({currentBreaks:e,configBreaks:a,treatReversedColorsAsEqual:t=!0}){let r=!0;if(Array.isArray(e)&&Array.isArray(a)){let c=n=>n.map(({symbol:s,...l})=>l);if(B(c(e),c(a))){let n=e.map(i=>i.symbol?.color),s=a.map(i=>i.symbol?.color),l=B(n,s),o=B(n,[...s].reverse());r=t?!(l||o):!l}}return r}return{a:P,b:Ie,c:De,d:Be,e:Re,f:ve,g:Me,h:Y,i:Ne}},"Color","smartMapping/renderers/color","smartMapping/symbology/color","smartMapping/symbology/support/colorRamps",a)