@arcgis/common-components 5.2.0-next.106 → 5.2.0-next.108

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 (129) hide show
  1. package/dist/cdn/{IXISGCNR.js → 2JQ6OEBP.js} +2 -2
  2. package/dist/cdn/{JLF6J4PV.js → 2ZQLPGO6.js} +2 -2
  3. package/dist/cdn/{BQCBHDME.js → 34O5NI3L.js} +2 -2
  4. package/dist/cdn/{CKBWHADN.js → 3KVQXK6I.js} +2 -2
  5. package/dist/cdn/{H4B7RWSC.js → 3KZKOKL3.js} +2 -2
  6. package/dist/cdn/{27EUJ42B.js → 3YTGG7RF.js} +2 -2
  7. package/dist/cdn/{FCIUMZTZ.js → 44GHRHDT.js} +2 -2
  8. package/dist/cdn/46YOWKVP.js +2 -0
  9. package/dist/cdn/4Z3W4SLN.js +2 -0
  10. package/dist/cdn/{EXBLSHSY.js → 5I46DP72.js} +2 -2
  11. package/dist/cdn/{HPNII7DL.js → 6G2BA5R6.js} +2 -2
  12. package/dist/cdn/{CEXP5DLE.js → 73LCJZI5.js} +2 -2
  13. package/dist/cdn/{Y5Y7IXOV.js → 74MDECVO.js} +1 -1
  14. package/dist/cdn/AHWD5KV4.js +2 -0
  15. package/dist/cdn/B2QFPLR5.js +2 -0
  16. package/dist/cdn/{WJZHHIWO.js → DLOQSM4T.js} +2 -2
  17. package/dist/cdn/{L6V3WKUI.js → E4CBJIXT.js} +2 -2
  18. package/dist/cdn/{XEK22IDA.js → E4NVOXNZ.js} +1 -1
  19. package/dist/cdn/EWHSIDUL.js +2 -0
  20. package/dist/cdn/{AY6QNI6M.js → FH6M3L5Q.js} +2 -2
  21. package/dist/cdn/FMIYRWWD.js +2 -0
  22. package/dist/cdn/{RYAF2CEQ.js → G2DVIZZJ.js} +2 -2
  23. package/dist/cdn/{WOZ7IPPQ.js → GB5FMYCZ.js} +2 -2
  24. package/dist/cdn/GPRF6QZC.js +2 -0
  25. package/dist/cdn/{NQRDB6LM.js → GQBGVIQF.js} +2 -2
  26. package/dist/cdn/{J6YVJVSN.js → GQCIBJZF.js} +2 -2
  27. package/dist/cdn/{7XSCHHGO.js → IBJHDNP3.js} +2 -2
  28. package/dist/cdn/{H7JRH53Q.js → ISCASG7C.js} +2 -2
  29. package/dist/cdn/{4TZVXSQZ.js → LE43VGSR.js} +2 -2
  30. package/dist/cdn/LRG23IGC.js +2 -0
  31. package/dist/cdn/{PMV2N3L3.js → NMDESY3T.js} +1 -1
  32. package/dist/cdn/O2DY73RF.js +2 -0
  33. package/dist/cdn/OHMQBUUM.js +2 -0
  34. package/dist/cdn/{OADKJRMQ.js → OVOUEXKG.js} +2 -2
  35. package/dist/cdn/{Z5QBBHLD.js → P3DCEHGK.js} +1 -1
  36. package/dist/cdn/{7CY3QEZW.js → QH4CFJEJ.js} +2 -2
  37. package/dist/cdn/{TWW63D32.js → QJJFF4PI.js} +1 -1
  38. package/dist/cdn/{H66SBHKJ.js → QKRBQ2F5.js} +2 -2
  39. package/dist/cdn/{VJDK62KV.js → RT25KW2T.js} +2 -2
  40. package/dist/cdn/RZEJ56RX.js +2 -0
  41. package/dist/cdn/S3XLEJSQ.js +2 -0
  42. package/dist/cdn/SBVCJDLD.js +2 -0
  43. package/dist/cdn/{4D7RVA5N.js → UIHTW6OA.js} +2 -2
  44. package/dist/cdn/UIKQQY3N.js +2 -0
  45. package/dist/cdn/{LLKF5IUE.js → UWHPPNTE.js} +2 -2
  46. package/dist/cdn/VIBCKXUC.js +2 -0
  47. package/dist/cdn/{4DL4CQMD.js → WUGJFP7P.js} +2 -2
  48. package/dist/cdn/{UGWLCTVM.js → YJTI6KPW.js} +1 -1
  49. package/dist/cdn/index.js +2 -2
  50. package/dist/cdn/main.css +1 -1
  51. package/dist/chunks/element-reference-controller.js +8 -6
  52. package/dist/chunks/general.js +1 -1
  53. package/dist/chunks/internal-types.js +1 -1
  54. package/dist/chunks/layer-utils.js +1 -1
  55. package/dist/chunks/locale.js +1 -1
  56. package/dist/chunks/resources.js +1 -1
  57. package/dist/chunks/runtime.js +4 -4
  58. package/dist/chunks/strategies.js +1 -1
  59. package/dist/chunks/toolbar.js +9 -0
  60. package/dist/chunks/types.js +16 -0
  61. package/dist/chunks/useT9n.js +1 -1
  62. package/dist/chunks/utils.js +18 -28
  63. package/dist/chunks/utils2.js +1 -1
  64. package/dist/chunks/utils3.js +4 -4
  65. package/dist/components/arcgis-ckeditor5/customElement.js +1 -1
  66. package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
  67. package/dist/components/arcgis-color-input/customElement.js +1 -1
  68. package/dist/components/arcgis-coordinate-system-picker/customElement.js +1 -1
  69. package/dist/components/arcgis-coordinate-system-picker-tree/customElement.js +1 -1
  70. package/dist/components/arcgis-field-info/customElement.d.ts +1 -1
  71. package/dist/components/arcgis-field-info/customElement.js +73 -80
  72. package/dist/components/arcgis-field-pick-list/customElement.d.ts +7 -7
  73. package/dist/components/arcgis-field-pick-list/customElement.js +49 -45
  74. package/dist/components/arcgis-histogram/customElement.js +1 -1
  75. package/dist/components/arcgis-label-input/customElement.js +1 -1
  76. package/dist/components/arcgis-picker-input/customElement.js +1 -1
  77. package/dist/components/arcgis-ramp-color/customElement.js +1 -1
  78. package/dist/components/arcgis-ramp-color-break/customElement.js +1 -1
  79. package/dist/components/arcgis-ramp-opacity/customElement.js +1 -1
  80. package/dist/components/arcgis-slider/customElement.js +1 -1
  81. package/dist/components/arcgis-slider-field/customElement.js +1 -1
  82. package/dist/components/arcgis-slider-histogram-range/customElement.js +1 -1
  83. package/dist/components/arcgis-slider-input/customElement.js +1 -1
  84. package/dist/components/arcgis-ticks/customElement.js +1 -1
  85. package/dist/components/arcgis-toolbar/customElement.d.ts +26 -6
  86. package/dist/components/arcgis-toolbar/customElement.js +61 -35
  87. package/dist/components/arcgis-toolbar/types.d.ts +32 -1
  88. package/dist/components/arcgis-toolbar-action/customElement.d.ts +1 -1
  89. package/dist/components/arcgis-toolbar-action/customElement.js +17 -22
  90. package/dist/components/arcgis-toolbar-group/customElement.js +18 -17
  91. package/dist/components/arcgis-toolbar-item/customElement.d.ts +1 -1
  92. package/dist/components/arcgis-toolbar-item/customElement.js +7 -7
  93. package/dist/components/arcgis-toolbar-more-button/customElement.js +8 -8
  94. package/dist/components/arcgis-toolbar-split-button/customElement.js +16 -15
  95. package/dist/components/arcgis-toolbar-stack/customElement.d.ts +48 -0
  96. package/dist/components/arcgis-toolbar-stack/customElement.js +174 -0
  97. package/dist/components/arcgis-toolbar-stack/index.d.ts +1 -0
  98. package/dist/components/arcgis-toolbar-stack/index.js +1 -0
  99. package/dist/components/arcgis-unique-values-list/customElement.js +3 -3
  100. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  101. package/dist/components/arcgis-value-picker-collection/customElement.js +1 -1
  102. package/dist/components/arcgis-value-picker-combobox/customElement.js +1 -1
  103. package/dist/components/arcgis-value-picker-label/customElement.js +1 -1
  104. package/dist/components/arcgis-value-picker-slider/customElement.js +1 -1
  105. package/dist/docs/api.json +1 -1
  106. package/dist/docs/docs.json +1 -1
  107. package/dist/docs/vscode.html-custom-data.json +1 -1
  108. package/dist/docs/web-types.json +1 -1
  109. package/dist/index.d.ts +6 -0
  110. package/dist/index.js +3 -1
  111. package/dist/loader.js +3 -2
  112. package/dist/types/lumina.d.ts +5 -0
  113. package/dist/types/preact.d.ts +6 -0
  114. package/dist/types/react.d.ts +7 -0
  115. package/dist/types/stencil.d.ts +5 -0
  116. package/package.json +4 -4
  117. package/dist/cdn/4S7M7IP7.js +0 -2
  118. package/dist/cdn/A2QOOQYR.js +0 -2
  119. package/dist/cdn/DM57UJMG.js +0 -2
  120. package/dist/cdn/EO2W4XX2.js +0 -2
  121. package/dist/cdn/HBTHCFTX.js +0 -2
  122. package/dist/cdn/K2W2X3P7.js +0 -2
  123. package/dist/cdn/NUJU53OQ.js +0 -2
  124. package/dist/cdn/RBBKKELV.js +0 -2
  125. package/dist/cdn/RYTUSPBA.js +0 -2
  126. package/dist/cdn/SM5735TW.js +0 -2
  127. package/dist/cdn/VCZLD7ZT.js +0 -2
  128. package/dist/cdn/VOBBBIYC.js +0 -2
  129. package/dist/cdn/XPZQ4XIH.js +0 -2
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as b}from"./XEK22IDA.js";import{J as m,P as o,h,j as d,t as r}from"./WJZHHIWO.js";var v=h`.container{display:flex;align-items:center;justify-content:space-between;position:relative}.slider{width:50%}.input{width:45%}`,p=class extends m{constructor(){super(...arguments),this.debouncedApplyValueOnChange=b(e=>this.applyValueOnChange(e),800),this.disabled=!1,this.flipLabels=!1,this.scale="s",this.min=0,this.max=100,this.value=50,this.step=1,this.withSteppers=!1,this.arcgisSliderInputValueChange=r(),this.arcgisValueChange=r()}static{this.properties={disabled:5,label:1,flipLabels:5,scale:1,min:9,max:9,value:9,step:9,unitsLabel:1,withSteppers:5}}static{this.styles=v}applyValueOnChange(e){let{min:i,max:a,value:n}=this,s=Number(e.value),t=i!==void 0&&a!==void 0?Math.min(a,Math.max(i,s)):s;s!==n&&(e.value=`${t}`,this.arcgisValueChange.emit(t),this.arcgisSliderInputValueChange.emit(t),this.value=t)}render(){let{disabled:e,min:i,max:a,value:n,step:s,withSteppers:t,flipLabels:c,unitsLabel:u,label:g,scale:$}=this;return d`<div class="container"><calcite-slider class="slider" .disabled=${e} .min=${i} .max=${a} .value=${n} .step=${s} @calciteSliderInput=${l=>this.debouncedApplyValueOnChange(l.currentTarget)}></calcite-slider><calcite-input class="input" .disabled=${e} .min=${i} .max=${a} .numberButtonType=${t?"vertical":"none"} .prefixText=${c?u:""} @calciteInputInput=${l=>this.debouncedApplyValueOnChange(l.target)} @click=${l=>l.stopPropagation()} .scale=${$} step=any .suffixText=${c?"":u} type=number .value=${`${n}`} .label=${g}></calcite-input></div>`}};o("arcgis-slider-input",p);export{p as ArcgisSliderInput};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import{a as b}from"./E4NVOXNZ.js";import{L as m,R as o,h,j as d,t as r}from"./DLOQSM4T.js";var v=h`.container{display:flex;align-items:center;justify-content:space-between;position:relative}.slider{width:50%}.input{width:45%}`,p=class extends m{constructor(){super(...arguments),this.debouncedApplyValueOnChange=b(e=>this.applyValueOnChange(e),800),this.disabled=!1,this.flipLabels=!1,this.scale="s",this.min=0,this.max=100,this.value=50,this.step=1,this.withSteppers=!1,this.arcgisSliderInputValueChange=r(),this.arcgisValueChange=r()}static{this.properties={disabled:5,label:1,flipLabels:5,scale:1,min:9,max:9,value:9,step:9,unitsLabel:1,withSteppers:5}}static{this.styles=v}applyValueOnChange(e){let{min:i,max:a,value:n}=this,s=Number(e.value),t=i!==void 0&&a!==void 0?Math.min(a,Math.max(i,s)):s;s!==n&&(e.value=`${t}`,this.arcgisValueChange.emit(t),this.arcgisSliderInputValueChange.emit(t),this.value=t)}render(){let{disabled:e,min:i,max:a,value:n,step:s,withSteppers:t,flipLabels:c,unitsLabel:u,label:g,scale:$}=this;return d`<div class="container"><calcite-slider class="slider" .disabled=${e} .min=${i} .max=${a} .value=${n} .step=${s} @calciteSliderInput=${l=>this.debouncedApplyValueOnChange(l.currentTarget)}></calcite-slider><calcite-input class="input" .disabled=${e} .min=${i} .max=${a} .numberButtonType=${t?"vertical":"none"} .prefixText=${c?u:""} @calciteInputInput=${l=>this.debouncedApplyValueOnChange(l.target)} @click=${l=>l.stopPropagation()} .scale=${$} step=any .suffixText=${c?"":u} type=number .value=${`${n}`} .label=${g}></calcite-input></div>`}};o("arcgis-slider-input",p);export{p as ArcgisSliderInput};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{A as s,B as i,E as o,m as r}from"./WJZHHIWO.js";var u=s(class extends i{constructor(){super(...arguments),this.key=r}render(t,e){return this.key=t,e}update(t,[e,m]){return e!==this.key&&(o(t),this.key=e),m}});export{u as a};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import{A as s,B as i,E as o,m as r}from"./DLOQSM4T.js";var u=s(class extends i{constructor(){super(...arguments),this.key=r}render(t,e){return this.key=t,e}update(t,[e,m]){return e!==this.key&&(o(t),this.key=e),m}});export{u as a};
@@ -1,5 +1,5 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as tn}from"./UGWLCTVM.js";import{a as m_}from"./Y5Y7IXOV.js";import{f as h_}from"./TWW63D32.js";import{H as s_,I as a_,J as l_,M as c_,P as d_,Q as u_,h as i_,j as n_,t as hi,x as r_}from"./WJZHHIWO.js";var fa=function(){return fa=Object.assign||function(I){for(var E,O=1,H=arguments.length;O<H;O++){E=arguments[O];for(var q in E)Object.prototype.hasOwnProperty.call(E,q)&&(I[q]=E[q])}return I},fa.apply(this,arguments)},pd={exports:{}},Le={},fd={exports:{}},mi={};function b_(){var f={};return f["align-content"]=!1,f["align-items"]=!1,f["align-self"]=!1,f["alignment-adjust"]=!1,f["alignment-baseline"]=!1,f.all=!1,f["anchor-point"]=!1,f.animation=!1,f["animation-delay"]=!1,f["animation-direction"]=!1,f["animation-duration"]=!1,f["animation-fill-mode"]=!1,f["animation-iteration-count"]=!1,f["animation-name"]=!1,f["animation-play-state"]=!1,f["animation-timing-function"]=!1,f.azimuth=!1,f["backface-visibility"]=!1,f.background=!0,f["background-attachment"]=!0,f["background-clip"]=!0,f["background-color"]=!0,f["background-image"]=!0,f["background-origin"]=!0,f["background-position"]=!0,f["background-repeat"]=!0,f["background-size"]=!0,f["baseline-shift"]=!1,f.binding=!1,f.bleed=!1,f["bookmark-label"]=!1,f["bookmark-level"]=!1,f["bookmark-state"]=!1,f.border=!0,f["border-bottom"]=!0,f["border-bottom-color"]=!0,f["border-bottom-left-radius"]=!0,f["border-bottom-right-radius"]=!0,f["border-bottom-style"]=!0,f["border-bottom-width"]=!0,f["border-collapse"]=!0,f["border-color"]=!0,f["border-image"]=!0,f["border-image-outset"]=!0,f["border-image-repeat"]=!0,f["border-image-slice"]=!0,f["border-image-source"]=!0,f["border-image-width"]=!0,f["border-left"]=!0,f["border-left-color"]=!0,f["border-left-style"]=!0,f["border-left-width"]=!0,f["border-radius"]=!0,f["border-right"]=!0,f["border-right-color"]=!0,f["border-right-style"]=!0,f["border-right-width"]=!0,f["border-spacing"]=!0,f["border-style"]=!0,f["border-top"]=!0,f["border-top-color"]=!0,f["border-top-left-radius"]=!0,f["border-top-right-radius"]=!0,f["border-top-style"]=!0,f["border-top-width"]=!0,f["border-width"]=!0,f.bottom=!1,f["box-decoration-break"]=!0,f["box-shadow"]=!0,f["box-sizing"]=!0,f["box-snap"]=!0,f["box-suppress"]=!0,f["break-after"]=!0,f["break-before"]=!0,f["break-inside"]=!0,f["caption-side"]=!1,f.chains=!1,f.clear=!0,f.clip=!1,f["clip-path"]=!1,f["clip-rule"]=!1,f.color=!0,f["color-interpolation-filters"]=!0,f["column-count"]=!1,f["column-fill"]=!1,f["column-gap"]=!1,f["column-rule"]=!1,f["column-rule-color"]=!1,f["column-rule-style"]=!1,f["column-rule-width"]=!1,f["column-span"]=!1,f["column-width"]=!1,f.columns=!1,f.contain=!1,f.content=!1,f["counter-increment"]=!1,f["counter-reset"]=!1,f["counter-set"]=!1,f.crop=!1,f.cue=!1,f["cue-after"]=!1,f["cue-before"]=!1,f.cursor=!1,f.direction=!1,f.display=!0,f["display-inside"]=!0,f["display-list"]=!0,f["display-outside"]=!0,f["dominant-baseline"]=!1,f.elevation=!1,f["empty-cells"]=!1,f.filter=!1,f.flex=!1,f["flex-basis"]=!1,f["flex-direction"]=!1,f["flex-flow"]=!1,f["flex-grow"]=!1,f["flex-shrink"]=!1,f["flex-wrap"]=!1,f.float=!1,f["float-offset"]=!1,f["flood-color"]=!1,f["flood-opacity"]=!1,f["flow-from"]=!1,f["flow-into"]=!1,f.font=!0,f["font-family"]=!0,f["font-feature-settings"]=!0,f["font-kerning"]=!0,f["font-language-override"]=!0,f["font-size"]=!0,f["font-size-adjust"]=!0,f["font-stretch"]=!0,f["font-style"]=!0,f["font-synthesis"]=!0,f["font-variant"]=!0,f["font-variant-alternates"]=!0,f["font-variant-caps"]=!0,f["font-variant-east-asian"]=!0,f["font-variant-ligatures"]=!0,f["font-variant-numeric"]=!0,f["font-variant-position"]=!0,f["font-weight"]=!0,f.grid=!1,f["grid-area"]=!1,f["grid-auto-columns"]=!1,f["grid-auto-flow"]=!1,f["grid-auto-rows"]=!1,f["grid-column"]=!1,f["grid-column-end"]=!1,f["grid-column-start"]=!1,f["grid-row"]=!1,f["grid-row-end"]=!1,f["grid-row-start"]=!1,f["grid-template"]=!1,f["grid-template-areas"]=!1,f["grid-template-columns"]=!1,f["grid-template-rows"]=!1,f["hanging-punctuation"]=!1,f.height=!0,f.hyphens=!1,f.icon=!1,f["image-orientation"]=!1,f["image-resolution"]=!1,f["ime-mode"]=!1,f["initial-letters"]=!1,f["inline-box-align"]=!1,f["justify-content"]=!1,f["justify-items"]=!1,f["justify-self"]=!1,f.left=!1,f["letter-spacing"]=!0,f["lighting-color"]=!0,f["line-box-contain"]=!1,f["line-break"]=!1,f["line-grid"]=!1,f["line-height"]=!1,f["line-snap"]=!1,f["line-stacking"]=!1,f["line-stacking-ruby"]=!1,f["line-stacking-shift"]=!1,f["line-stacking-strategy"]=!1,f["list-style"]=!0,f["list-style-image"]=!0,f["list-style-position"]=!0,f["list-style-type"]=!0,f.margin=!0,f["margin-bottom"]=!0,f["margin-left"]=!0,f["margin-right"]=!0,f["margin-top"]=!0,f["marker-offset"]=!1,f["marker-side"]=!1,f.marks=!1,f.mask=!1,f["mask-box"]=!1,f["mask-box-outset"]=!1,f["mask-box-repeat"]=!1,f["mask-box-slice"]=!1,f["mask-box-source"]=!1,f["mask-box-width"]=!1,f["mask-clip"]=!1,f["mask-image"]=!1,f["mask-origin"]=!1,f["mask-position"]=!1,f["mask-repeat"]=!1,f["mask-size"]=!1,f["mask-source-type"]=!1,f["mask-type"]=!1,f["max-height"]=!0,f["max-lines"]=!1,f["max-width"]=!0,f["min-height"]=!0,f["min-width"]=!0,f["move-to"]=!1,f["nav-down"]=!1,f["nav-index"]=!1,f["nav-left"]=!1,f["nav-right"]=!1,f["nav-up"]=!1,f["object-fit"]=!1,f["object-position"]=!1,f.opacity=!1,f.order=!1,f.orphans=!1,f.outline=!1,f["outline-color"]=!1,f["outline-offset"]=!1,f["outline-style"]=!1,f["outline-width"]=!1,f.overflow=!1,f["overflow-wrap"]=!1,f["overflow-x"]=!1,f["overflow-y"]=!1,f.padding=!0,f["padding-bottom"]=!0,f["padding-left"]=!0,f["padding-right"]=!0,f["padding-top"]=!0,f.page=!1,f["page-break-after"]=!1,f["page-break-before"]=!1,f["page-break-inside"]=!1,f["page-policy"]=!1,f.pause=!1,f["pause-after"]=!1,f["pause-before"]=!1,f.perspective=!1,f["perspective-origin"]=!1,f.pitch=!1,f["pitch-range"]=!1,f["play-during"]=!1,f.position=!1,f["presentation-level"]=!1,f.quotes=!1,f["region-fragment"]=!1,f.resize=!1,f.rest=!1,f["rest-after"]=!1,f["rest-before"]=!1,f.richness=!1,f.right=!1,f.rotation=!1,f["rotation-point"]=!1,f["ruby-align"]=!1,f["ruby-merge"]=!1,f["ruby-position"]=!1,f["shape-image-threshold"]=!1,f["shape-outside"]=!1,f["shape-margin"]=!1,f.size=!1,f.speak=!1,f["speak-as"]=!1,f["speak-header"]=!1,f["speak-numeral"]=!1,f["speak-punctuation"]=!1,f["speech-rate"]=!1,f.stress=!1,f["string-set"]=!1,f["tab-size"]=!1,f["table-layout"]=!1,f["text-align"]=!0,f["text-align-last"]=!0,f["text-combine-upright"]=!0,f["text-decoration"]=!0,f["text-decoration-color"]=!0,f["text-decoration-line"]=!0,f["text-decoration-skip"]=!0,f["text-decoration-style"]=!0,f["text-emphasis"]=!0,f["text-emphasis-color"]=!0,f["text-emphasis-position"]=!0,f["text-emphasis-style"]=!0,f["text-height"]=!0,f["text-indent"]=!0,f["text-justify"]=!0,f["text-orientation"]=!0,f["text-overflow"]=!0,f["text-shadow"]=!0,f["text-space-collapse"]=!0,f["text-transform"]=!0,f["text-underline-position"]=!0,f["text-wrap"]=!0,f.top=!1,f.transform=!1,f["transform-origin"]=!1,f["transform-style"]=!1,f.transition=!1,f["transition-delay"]=!1,f["transition-duration"]=!1,f["transition-property"]=!1,f["transition-timing-function"]=!1,f["unicode-bidi"]=!1,f["vertical-align"]=!1,f.visibility=!1,f["voice-balance"]=!1,f["voice-duration"]=!1,f["voice-family"]=!1,f["voice-pitch"]=!1,f["voice-range"]=!1,f["voice-rate"]=!1,f["voice-stress"]=!1,f["voice-volume"]=!1,f.volume=!1,f["white-space"]=!1,f.widows=!1,f.width=!0,f["will-change"]=!1,f["word-break"]=!0,f["word-spacing"]=!0,f["word-wrap"]=!0,f["wrap-flow"]=!1,f["wrap-through"]=!1,f["writing-mode"]=!1,f["z-index"]=!1,f}function r4(f,I,E){}function s4(f,I,E){}var a4=/javascript\s*\:/img;function l4(f,I){return a4.test(I)?"":I}mi.whiteList=b_();mi.getDefaultWhiteList=b_;mi.onAttr=r4;mi.onIgnoreAttr=s4;mi.safeAttrValue=l4;var c4={indexOf:function(f,I){var E,O;if(Array.prototype.indexOf)return f.indexOf(I);for(E=0,O=f.length;E<O;E++)if(f[E]===I)return E;return-1},forEach:function(f,I,E){var O,H;if(Array.prototype.forEach)return f.forEach(I,E);for(O=0,H=f.length;O<H;O++)I.call(E,f[O],O,f)},trim:function(f){return String.prototype.trim?f.trim():f.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(f){return String.prototype.trimRight?f.trimRight():f.replace(/(\s*$)/g,"")}},hr=c4;function d4(f,I){f=hr.trimRight(f),f[f.length-1]!==";"&&(f+=";");var E=f.length,O=!1,H=0,q=0,z="";function oe(){if(!O){var p=hr.trim(f.slice(H,q)),x=p.indexOf(":");if(x!==-1){var D=hr.trim(p.slice(0,x)),C=hr.trim(p.slice(x+1));if(D){var k=I(H,z.length,D,C,p);k&&(z+=k+"; ")}}}H=q+1}for(;q<E;q++){var v=f[q];if(v==="/"&&f[q+1]==="*"){var T=f.indexOf("*/",q+2);if(T===-1)break;q=T+1,H=q+1,O=!1}else v==="("?O=!0:v===")"?O=!1:v===";"?O||oe():v===`
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import{a as tn}from"./YJTI6KPW.js";import{a as m_}from"./74MDECVO.js";import{f as h_}from"./QJJFF4PI.js";import{J as s_,K as a_,L as l_,O as c_,R as d_,S as u_,h as i_,j as n_,t as hi,x as r_}from"./DLOQSM4T.js";var fa=function(){return fa=Object.assign||function(I){for(var E,O=1,H=arguments.length;O<H;O++){E=arguments[O];for(var q in E)Object.prototype.hasOwnProperty.call(E,q)&&(I[q]=E[q])}return I},fa.apply(this,arguments)},pd={exports:{}},Le={},fd={exports:{}},mi={};function b_(){var f={};return f["align-content"]=!1,f["align-items"]=!1,f["align-self"]=!1,f["alignment-adjust"]=!1,f["alignment-baseline"]=!1,f.all=!1,f["anchor-point"]=!1,f.animation=!1,f["animation-delay"]=!1,f["animation-direction"]=!1,f["animation-duration"]=!1,f["animation-fill-mode"]=!1,f["animation-iteration-count"]=!1,f["animation-name"]=!1,f["animation-play-state"]=!1,f["animation-timing-function"]=!1,f.azimuth=!1,f["backface-visibility"]=!1,f.background=!0,f["background-attachment"]=!0,f["background-clip"]=!0,f["background-color"]=!0,f["background-image"]=!0,f["background-origin"]=!0,f["background-position"]=!0,f["background-repeat"]=!0,f["background-size"]=!0,f["baseline-shift"]=!1,f.binding=!1,f.bleed=!1,f["bookmark-label"]=!1,f["bookmark-level"]=!1,f["bookmark-state"]=!1,f.border=!0,f["border-bottom"]=!0,f["border-bottom-color"]=!0,f["border-bottom-left-radius"]=!0,f["border-bottom-right-radius"]=!0,f["border-bottom-style"]=!0,f["border-bottom-width"]=!0,f["border-collapse"]=!0,f["border-color"]=!0,f["border-image"]=!0,f["border-image-outset"]=!0,f["border-image-repeat"]=!0,f["border-image-slice"]=!0,f["border-image-source"]=!0,f["border-image-width"]=!0,f["border-left"]=!0,f["border-left-color"]=!0,f["border-left-style"]=!0,f["border-left-width"]=!0,f["border-radius"]=!0,f["border-right"]=!0,f["border-right-color"]=!0,f["border-right-style"]=!0,f["border-right-width"]=!0,f["border-spacing"]=!0,f["border-style"]=!0,f["border-top"]=!0,f["border-top-color"]=!0,f["border-top-left-radius"]=!0,f["border-top-right-radius"]=!0,f["border-top-style"]=!0,f["border-top-width"]=!0,f["border-width"]=!0,f.bottom=!1,f["box-decoration-break"]=!0,f["box-shadow"]=!0,f["box-sizing"]=!0,f["box-snap"]=!0,f["box-suppress"]=!0,f["break-after"]=!0,f["break-before"]=!0,f["break-inside"]=!0,f["caption-side"]=!1,f.chains=!1,f.clear=!0,f.clip=!1,f["clip-path"]=!1,f["clip-rule"]=!1,f.color=!0,f["color-interpolation-filters"]=!0,f["column-count"]=!1,f["column-fill"]=!1,f["column-gap"]=!1,f["column-rule"]=!1,f["column-rule-color"]=!1,f["column-rule-style"]=!1,f["column-rule-width"]=!1,f["column-span"]=!1,f["column-width"]=!1,f.columns=!1,f.contain=!1,f.content=!1,f["counter-increment"]=!1,f["counter-reset"]=!1,f["counter-set"]=!1,f.crop=!1,f.cue=!1,f["cue-after"]=!1,f["cue-before"]=!1,f.cursor=!1,f.direction=!1,f.display=!0,f["display-inside"]=!0,f["display-list"]=!0,f["display-outside"]=!0,f["dominant-baseline"]=!1,f.elevation=!1,f["empty-cells"]=!1,f.filter=!1,f.flex=!1,f["flex-basis"]=!1,f["flex-direction"]=!1,f["flex-flow"]=!1,f["flex-grow"]=!1,f["flex-shrink"]=!1,f["flex-wrap"]=!1,f.float=!1,f["float-offset"]=!1,f["flood-color"]=!1,f["flood-opacity"]=!1,f["flow-from"]=!1,f["flow-into"]=!1,f.font=!0,f["font-family"]=!0,f["font-feature-settings"]=!0,f["font-kerning"]=!0,f["font-language-override"]=!0,f["font-size"]=!0,f["font-size-adjust"]=!0,f["font-stretch"]=!0,f["font-style"]=!0,f["font-synthesis"]=!0,f["font-variant"]=!0,f["font-variant-alternates"]=!0,f["font-variant-caps"]=!0,f["font-variant-east-asian"]=!0,f["font-variant-ligatures"]=!0,f["font-variant-numeric"]=!0,f["font-variant-position"]=!0,f["font-weight"]=!0,f.grid=!1,f["grid-area"]=!1,f["grid-auto-columns"]=!1,f["grid-auto-flow"]=!1,f["grid-auto-rows"]=!1,f["grid-column"]=!1,f["grid-column-end"]=!1,f["grid-column-start"]=!1,f["grid-row"]=!1,f["grid-row-end"]=!1,f["grid-row-start"]=!1,f["grid-template"]=!1,f["grid-template-areas"]=!1,f["grid-template-columns"]=!1,f["grid-template-rows"]=!1,f["hanging-punctuation"]=!1,f.height=!0,f.hyphens=!1,f.icon=!1,f["image-orientation"]=!1,f["image-resolution"]=!1,f["ime-mode"]=!1,f["initial-letters"]=!1,f["inline-box-align"]=!1,f["justify-content"]=!1,f["justify-items"]=!1,f["justify-self"]=!1,f.left=!1,f["letter-spacing"]=!0,f["lighting-color"]=!0,f["line-box-contain"]=!1,f["line-break"]=!1,f["line-grid"]=!1,f["line-height"]=!1,f["line-snap"]=!1,f["line-stacking"]=!1,f["line-stacking-ruby"]=!1,f["line-stacking-shift"]=!1,f["line-stacking-strategy"]=!1,f["list-style"]=!0,f["list-style-image"]=!0,f["list-style-position"]=!0,f["list-style-type"]=!0,f.margin=!0,f["margin-bottom"]=!0,f["margin-left"]=!0,f["margin-right"]=!0,f["margin-top"]=!0,f["marker-offset"]=!1,f["marker-side"]=!1,f.marks=!1,f.mask=!1,f["mask-box"]=!1,f["mask-box-outset"]=!1,f["mask-box-repeat"]=!1,f["mask-box-slice"]=!1,f["mask-box-source"]=!1,f["mask-box-width"]=!1,f["mask-clip"]=!1,f["mask-image"]=!1,f["mask-origin"]=!1,f["mask-position"]=!1,f["mask-repeat"]=!1,f["mask-size"]=!1,f["mask-source-type"]=!1,f["mask-type"]=!1,f["max-height"]=!0,f["max-lines"]=!1,f["max-width"]=!0,f["min-height"]=!0,f["min-width"]=!0,f["move-to"]=!1,f["nav-down"]=!1,f["nav-index"]=!1,f["nav-left"]=!1,f["nav-right"]=!1,f["nav-up"]=!1,f["object-fit"]=!1,f["object-position"]=!1,f.opacity=!1,f.order=!1,f.orphans=!1,f.outline=!1,f["outline-color"]=!1,f["outline-offset"]=!1,f["outline-style"]=!1,f["outline-width"]=!1,f.overflow=!1,f["overflow-wrap"]=!1,f["overflow-x"]=!1,f["overflow-y"]=!1,f.padding=!0,f["padding-bottom"]=!0,f["padding-left"]=!0,f["padding-right"]=!0,f["padding-top"]=!0,f.page=!1,f["page-break-after"]=!1,f["page-break-before"]=!1,f["page-break-inside"]=!1,f["page-policy"]=!1,f.pause=!1,f["pause-after"]=!1,f["pause-before"]=!1,f.perspective=!1,f["perspective-origin"]=!1,f.pitch=!1,f["pitch-range"]=!1,f["play-during"]=!1,f.position=!1,f["presentation-level"]=!1,f.quotes=!1,f["region-fragment"]=!1,f.resize=!1,f.rest=!1,f["rest-after"]=!1,f["rest-before"]=!1,f.richness=!1,f.right=!1,f.rotation=!1,f["rotation-point"]=!1,f["ruby-align"]=!1,f["ruby-merge"]=!1,f["ruby-position"]=!1,f["shape-image-threshold"]=!1,f["shape-outside"]=!1,f["shape-margin"]=!1,f.size=!1,f.speak=!1,f["speak-as"]=!1,f["speak-header"]=!1,f["speak-numeral"]=!1,f["speak-punctuation"]=!1,f["speech-rate"]=!1,f.stress=!1,f["string-set"]=!1,f["tab-size"]=!1,f["table-layout"]=!1,f["text-align"]=!0,f["text-align-last"]=!0,f["text-combine-upright"]=!0,f["text-decoration"]=!0,f["text-decoration-color"]=!0,f["text-decoration-line"]=!0,f["text-decoration-skip"]=!0,f["text-decoration-style"]=!0,f["text-emphasis"]=!0,f["text-emphasis-color"]=!0,f["text-emphasis-position"]=!0,f["text-emphasis-style"]=!0,f["text-height"]=!0,f["text-indent"]=!0,f["text-justify"]=!0,f["text-orientation"]=!0,f["text-overflow"]=!0,f["text-shadow"]=!0,f["text-space-collapse"]=!0,f["text-transform"]=!0,f["text-underline-position"]=!0,f["text-wrap"]=!0,f.top=!1,f.transform=!1,f["transform-origin"]=!1,f["transform-style"]=!1,f.transition=!1,f["transition-delay"]=!1,f["transition-duration"]=!1,f["transition-property"]=!1,f["transition-timing-function"]=!1,f["unicode-bidi"]=!1,f["vertical-align"]=!1,f.visibility=!1,f["voice-balance"]=!1,f["voice-duration"]=!1,f["voice-family"]=!1,f["voice-pitch"]=!1,f["voice-range"]=!1,f["voice-rate"]=!1,f["voice-stress"]=!1,f["voice-volume"]=!1,f.volume=!1,f["white-space"]=!1,f.widows=!1,f.width=!0,f["will-change"]=!1,f["word-break"]=!0,f["word-spacing"]=!0,f["word-wrap"]=!0,f["wrap-flow"]=!1,f["wrap-through"]=!1,f["writing-mode"]=!1,f["z-index"]=!1,f}function r4(f,I,E){}function s4(f,I,E){}var a4=/javascript\s*\:/img;function l4(f,I){return a4.test(I)?"":I}mi.whiteList=b_();mi.getDefaultWhiteList=b_;mi.onAttr=r4;mi.onIgnoreAttr=s4;mi.safeAttrValue=l4;var c4={indexOf:function(f,I){var E,O;if(Array.prototype.indexOf)return f.indexOf(I);for(E=0,O=f.length;E<O;E++)if(f[E]===I)return E;return-1},forEach:function(f,I,E){var O,H;if(Array.prototype.forEach)return f.forEach(I,E);for(O=0,H=f.length;O<H;O++)I.call(E,f[O],O,f)},trim:function(f){return String.prototype.trim?f.trim():f.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(f){return String.prototype.trimRight?f.trimRight():f.replace(/(\s*$)/g,"")}},hr=c4;function d4(f,I){f=hr.trimRight(f),f[f.length-1]!==";"&&(f+=";");var E=f.length,O=!1,H=0,q=0,z="";function oe(){if(!O){var p=hr.trim(f.slice(H,q)),x=p.indexOf(":");if(x!==-1){var D=hr.trim(p.slice(0,x)),C=hr.trim(p.slice(x+1));if(D){var k=I(H,z.length,D,C,p);k&&(z+=k+"; ")}}}H=q+1}for(;q<E;q++){var v=f[q];if(v==="/"&&f[q+1]==="*"){var T=f.indexOf("*/",q+2);if(T===-1)break;q=T+1,H=q+1,O=!1}else v==="("?O=!0:v===")"?O=!1:v===";"?O||oe():v===`
3
3
  `&&oe()}return hr.trim(z)}var u4=d4,ha=mi,h4=u4;function g_(f){return f==null}function m4(f){var I={};for(var E in f)I[E]=f[E];return I}function w_(f){f=m4(f||{}),f.whiteList=f.whiteList||ha.whiteList,f.onAttr=f.onAttr||ha.onAttr,f.onIgnoreAttr=f.onIgnoreAttr||ha.onIgnoreAttr,f.safeAttrValue=f.safeAttrValue||ha.safeAttrValue,this.options=f}w_.prototype.process=function(f){if(f=f||"",f=f.toString(),!f)return"";var I=this,E=I.options,O=E.whiteList,H=E.onAttr,q=E.onIgnoreAttr,z=E.safeAttrValue,oe=h4(f,function(v,T,p,x,D){var C=O[p],k=!1;if(C===!0?k=C:typeof C=="function"?k=C(x):C instanceof RegExp&&(k=C.test(x)),k!==!0&&(k=!1),x=z(p,x),!!x){var _={position:T,sourcePosition:v,source:D,isWhite:k};if(k){var B=H(p,x,_);return g_(B)?p+":"+x:B}else{var B=q(p,x,_);if(!g_(B))return B}}});return oe};var g4=w_;(function(f,I){var E=mi,O=g4;function H(z,oe){var v=new O(oe);return v.process(z)}I=f.exports=H,I.FilterCSS=O;for(var q in E)I[q]=E[q]})(fd,fd.exports);var kd=fd.exports,bd={indexOf:function(f,I){var E,O;if(Array.prototype.indexOf)return f.indexOf(I);for(E=0,O=f.length;E<O;E++)if(f[E]===I)return E;return-1},forEach:function(f,I,E){var O,H;if(Array.prototype.forEach)return f.forEach(I,E);for(O=0,H=f.length;O<H;O++)I.call(E,f[O],O,f)},trim:function(f){return String.prototype.trim?f.trim():f.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(f){var I=/\s|\n|\t/,E=I.exec(f);return E?E.index:-1}},p4=kd.FilterCSS,f4=kd.getDefaultWhiteList,ka=bd;function __(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var A_=new p4;function k4(f,I,E){}function b4(f,I,E){}function w4(f,I,E){}function _4(f,I,E){}function C_(f){return f.replace(C4,"&lt;").replace(v4,"&gt;")}function A4(f,I,E,O){if(E=T_(E),I==="href"||I==="src"){if(E=ka.trim(E),E==="#")return"#";if(!(E.substr(0,7)==="http://"||E.substr(0,8)==="https://"||E.substr(0,7)==="mailto:"||E.substr(0,4)==="tel:"||E.substr(0,11)==="data:image/"||E.substr(0,6)==="ftp://"||E.substr(0,2)==="./"||E.substr(0,3)==="../"||E[0]==="#"||E[0]==="/"))return""}else if(I==="background"){if(ma.lastIndex=0,ma.test(E))return""}else if(I==="style"){if(p_.lastIndex=0,p_.test(E)||(f_.lastIndex=0,f_.test(E)&&(ma.lastIndex=0,ma.test(E))))return"";O!==!1&&(O=O||A_,E=O.process(E))}return E=S_(E),E}var C4=/</g,v4=/>/g,y4=/"/g,x4=/&quot;/g,E4=/&#([a-zA-Z0-9]*);?/gim,D4=/&colon;?/gim,T4=/&newline;?/gim,ma=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,p_=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,f_=/u\s*r\s*l\s*\(.*/gi;function v_(f){return f.replace(y4,"&quot;")}function y_(f){return f.replace(x4,'"')}function x_(f){return f.replace(E4,function(E,O){return O[0]==="x"||O[0]==="X"?String.fromCharCode(parseInt(O.substr(1),16)):String.fromCharCode(parseInt(O,10))})}function E_(f){return f.replace(D4,":").replace(T4," ")}function D_(f){for(var I="",E=0,O=f.length;E<O;E++)I+=f.charCodeAt(E)<32?" ":f.charAt(E);return ka.trim(I)}function T_(f){return f=y_(f),f=x_(f),f=E_(f),f=D_(f),f}function S_(f){return f=v_(f),f=C_(f),f}function S4(){return""}function I4(f,I){typeof I!="function"&&(I=function(){});var E=!Array.isArray(f);function O(z){return E?!0:ka.indexOf(f,z)!==-1}var H=[],q=!1;return{onIgnoreTag:function(z,oe,v){if(O(z))if(v.isClosing){var T="[/removed]",p=v.position+T.length;return H.push([q!==!1?q:v.position,p]),q=!1,T}else return q||(q=v.position),"[removed]";else return I(z,oe,v)},remove:function(z){var oe="",v=0;return ka.forEach(H,function(T){oe+=z.slice(v,T[0]),v=T[1]}),oe+=z.slice(v),oe}}}function B4(f){for(var I="",E=0;E<f.length;){var O=f.indexOf("<!--",E);if(O===-1){I+=f.slice(E);break}I+=f.slice(E,O);var H=f.indexOf("-->",O);if(H===-1)break;E=H+3}return I}function M4(f){var I=f.split("");return I=I.filter(function(E){var O=E.charCodeAt(0);return O===127?!1:O<=31?O===10||O===13:!0}),I.join("")}Le.whiteList=__();Le.getDefaultWhiteList=__;Le.onTag=k4;Le.onIgnoreTag=b4;Le.onTagAttr=w4;Le.onIgnoreTagAttr=_4;Le.safeAttrValue=A4;Le.escapeHtml=C_;Le.escapeQuote=v_;Le.unescapeQuote=y_;Le.escapeHtmlEntities=x_;Le.escapeDangerHtml5Entities=E_;Le.clearNonPrintableCharacter=D_;Le.friendlyAttrValue=T_;Le.escapeAttrValue=S_;Le.onIgnoreTagStripAll=S4;Le.StripTagBody=I4;Le.stripCommentTag=B4;Le.stripBlankChar=M4;Le.cssFilter=A_;Le.getDefaultCSSWhiteList=f4;var ba={},So=bd;function N4(f){var I=So.spaceIndex(f),E;return I===-1?E=f.slice(1,-1):E=f.slice(1,I+1),E=So.trim(E).toLowerCase(),E.slice(0,1)==="/"&&(E=E.slice(1)),E.slice(-1)==="/"&&(E=E.slice(0,-1)),E}function P4(f){return f.slice(0,2)==="</"}function L4(f,I,E){var O="",H=0,q=!1,z=!1,oe=0,v=f.length,T="",p="";e:for(oe=0;oe<v;oe++){var x=f.charAt(oe);if(q===!1){if(x==="<"){q=oe;continue}}else if(z===!1){if(x==="<"){O+=E(f.slice(H,oe)),q=oe,H=oe;continue}if(x===">"){O+=E(f.slice(H,q)),p=f.slice(q,oe+1),T=N4(p),O+=I(q,O.length,T,p,P4(p)),H=oe+1,q=!1;continue}if(x==='"'||x==="'")for(var D=1,C=f.charAt(oe-D);C.trim()===""||C==="=";){if(C==="="){z=x;continue e}C=f.charAt(oe-++D)}}else if(x===z){z=!1;continue}}return H<f.length&&(O+=E(f.substr(H))),O}var z4=/[^a-zA-Z0-9\\_:.-]/gim;function O4(f,I){var E=0,O=0,H=[],q=!1,z=f.length;function oe(D,C){if(D=So.trim(D),D=D.replace(z4,"").toLowerCase(),!(D.length<1)){var k=I(D,C||"");k&&H.push(k)}}for(var v=0;v<z;v++){var T=f.charAt(v),p,x;if(q===!1&&T==="="){q=f.slice(E,v),E=v+1,O=f.charAt(E)==='"'||f.charAt(E)==="'"?E:F4(f,v+1);continue}if(q!==!1&&v===O){if(x=f.indexOf(T,v+1),x===-1)break;p=So.trim(f.slice(O+1,x)),oe(q,p),q=!1,v=x,E=v+1;continue}if(/\s|\n|\t/.test(T))if(f=f.replace(/\s|\n|\t/g," "),q===!1)if(x=R4(f,v),x===-1){p=So.trim(f.slice(E,v)),oe(p),q=!1,E=v+1;continue}else{v=x-1;continue}else if(x=V4(f,v-1),x===-1){p=So.trim(f.slice(E,v)),p=k_(p),oe(q,p),q=!1,E=v+1;continue}else continue}return E<f.length&&(q===!1?oe(f.slice(E)):oe(q,k_(So.trim(f.slice(E))))),So.trim(H.join(" "))}function R4(f,I){for(;I<f.length;I++){var E=f[I];if(E!==" ")return E==="="?I:-1}}function F4(f,I){for(;I<f.length;I++){var E=f[I];if(E!==" ")return E==="'"||E==='"'?I:-1}}function V4(f,I){for(;I>0;I--){var E=f[I];if(E!==" ")return E==="="?I:-1}}function j4(f){return f[0]==='"'&&f[f.length-1]==='"'||f[0]==="'"&&f[f.length-1]==="'"}function k_(f){return j4(f)?f.substr(1,f.length-2):f}ba.parseTag=L4;ba.parseAttr=O4;var H4=kd.FilterCSS,qt=Le,I_=ba,U4=I_.parseTag,$4=I_.parseAttr,pa=bd;function ga(f){return f==null}function q4(f){var I=pa.spaceIndex(f);if(I===-1)return{html:"",closing:f[f.length-2]==="/"};f=pa.trim(f.slice(I+1,-1));var E=f[f.length-1]==="/";return E&&(f=pa.trim(f.slice(0,-1))),{html:f,closing:E}}function W4(f){var I={};for(var E in f)I[E]=f[E];return I}function G4(f){var I={};for(var E in f)Array.isArray(f[E])?I[E.toLowerCase()]=f[E].map(function(O){return O.toLowerCase()}):I[E.toLowerCase()]=f[E];return I}function B_(f){f=W4(f||{}),f.stripIgnoreTag&&(f.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),f.onIgnoreTag=qt.onIgnoreTagStripAll),f.whiteList||f.allowList?f.whiteList=G4(f.whiteList||f.allowList):f.whiteList=qt.whiteList,f.onTag=f.onTag||qt.onTag,f.onTagAttr=f.onTagAttr||qt.onTagAttr,f.onIgnoreTag=f.onIgnoreTag||qt.onIgnoreTag,f.onIgnoreTagAttr=f.onIgnoreTagAttr||qt.onIgnoreTagAttr,f.safeAttrValue=f.safeAttrValue||qt.safeAttrValue,f.escapeHtml=f.escapeHtml||qt.escapeHtml,this.options=f,f.css===!1?this.cssFilter=!1:(f.css=f.css||{},this.cssFilter=new H4(f.css))}B_.prototype.process=function(f){if(f=f||"",f=f.toString(),!f)return"";var I=this,E=I.options,O=E.whiteList,H=E.onTag,q=E.onIgnoreTag,z=E.onTagAttr,oe=E.onIgnoreTagAttr,v=E.safeAttrValue,T=E.escapeHtml,p=I.cssFilter;E.stripBlankChar&&(f=qt.stripBlankChar(f)),E.allowCommentTag||(f=qt.stripCommentTag(f));var x=!1;E.stripIgnoreTagBody&&(x=qt.StripTagBody(E.stripIgnoreTagBody,q),q=x.onIgnoreTag);var D=U4(f,function(C,k,_,B,N){var P={sourcePosition:C,position:k,isClosing:N,isWhite:Object.prototype.hasOwnProperty.call(O,_)},V=H(_,B,P);if(!ga(V))return V;if(P.isWhite){if(P.isClosing)return"</"+_+">";var U=q4(B),Z=O[_],Q=$4(U.html,function(se,ge){var ie=pa.indexOf(Z,se)!==-1,he=z(_,se,ge,ie);return ga(he)?ie?(ge=v(_,se,ge,p),ge?se+'="'+ge+'"':se):(he=oe(_,se,ge,ie),ga(he)?void 0:he):he});return B="<"+_,Q&&(B+=" "+Q),U.closing&&(B+=" /"),B+=">",B}else return V=q(_,B,P),ga(V)?T(B):V},T);return x&&(D=x.remove(D)),D};var Z4=B_;(function(f,I){var E=Le,O=ba,H=Z4;function q(oe,v){var T=new H(v);return T.process(oe)}I=f.exports=q,I.filterXSS=q,I.FilterXSS=H,(function(){for(var oe in E)I[oe]=E[oe];for(var v in O)I[v]=O[v]})();function z(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}z()&&(self.filterXSS=f.exports)})(pd,pd.exports);var on=pd.exports,K4=function(f){if(typeof f!="object"||f===null||Object.prototype.toString.call(f)!=="[object Object]")return!1;var I=Object.getPrototypeOf(f);if(I===null)return!0;for(;Object.getPrototypeOf(I)!==null;)I=Object.getPrototypeOf(I);return Object.getPrototypeOf(f)===I},M_=(function(){function f(I,E){var O=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=fa(fa({},on.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(q,z,oe,v){return q==="a"&&z==="href"||(q==="img"||q==="source")&&z==="src"?O.sanitizeUrl(oe):on.safeAttrValue(q,z,oe,v)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var H;I&&!E?H=I:I&&E?(H=Object.create(this.arcgisFilterOptions),H.css={whiteList:this.arcgisCSSWhiteList},Object.keys(I).forEach(function(q){if(q==="whiteList")H.whiteList=O._extendObjectOfArrays([O.arcgisWhiteList,I.whiteList||{}]);else if(q==="css"){var z=I.css.whiteList;z!=null&&I.css instanceof Object&&Object.keys(z).forEach(function(oe){return H.css.whiteList[oe]=z[oe]})}else H[q]=I[q]})):(H=Object.create(this.arcgisFilterOptions),H.whiteList=this.arcgisWhiteList,H.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=H,this._xssFilter=new on.FilterXSS(H)}return f.prototype.sanitize=function(I,E){switch(E===void 0&&(E={}),typeof I){case"number":return isNaN(I)||!isFinite(I)?null:I;case"boolean":return I;case"string":return this._xssFilter.process(I);case"object":return this._iterateOverObject(I,E);default:return E.allowUndefined&&typeof I>"u"?void 0:null}},f.prototype.sanitizeUrl=function(I,E){var O=(E??{}).isProtocolRequired,H=O===void 0?!0:O,q=this._trim(I.substring(0,I.indexOf(":"))),z=I==="/",oe=/^#/.test(I),v=q&&this.allowedProtocols.indexOf(q.toLowerCase())>-1;return z||oe||v?on.escapeAttrValue(I):!q&&!H?on.escapeAttrValue("https://".concat(I)):""},f.prototype.sanitizeHTMLAttribute=function(I,E,O,H){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(I,E,O,H):on.safeAttrValue(I,E,O,H)},f.prototype.validate=function(I,E){E===void 0&&(E={});var O=this.sanitize(I,E);return{isValid:I===O,sanitized:O}},f.prototype.encodeHTML=function(I){var E=this;return String(I).replace(/[&<>"'\/]/g,function(O){return E._entityMap[O]})},f.prototype.encodeAttrValue=function(I){var E=/^[a-zA-Z0-9]$/;return String(I).replace(/[\x00-\xFF]/g,function(O,H){return E.test(O)?O:"&#x".concat(Number(I.charCodeAt(H)).toString(16),";")})},f.prototype._extendObjectOfArrays=function(I){var E={};return I.forEach(function(O){Object.keys(O).forEach(function(H){Array.isArray(O[H])&&Array.isArray(E[H])?E[H]=E[H].concat(O[H]):E[H]=O[H]})}),E},f.prototype._iterateOverObject=function(I,E){var O=this;E===void 0&&(E={});try{var H=!1,q=void 0;if(Array.isArray(I))q=I.reduce(function(oe,v){var T=O.validate(v,E);return T.isValid?oe.concat([v]):(H=!0,oe.concat([T.sanitized]))},[]);else if(K4(I)){var z=Object.keys(I);q=z.reduce(function(oe,v){var T=I[v],p=O.validate(T,E);return p.isValid?oe[v]=T:(H=!0,oe[v]=p.sanitized),oe},{})}else return E.allowUndefined&&typeof I>"u"?void 0:null;return H?q:I}catch{return null}},f.prototype._trim=function(I){return String.prototype.trim?I.trim():I.replace(/(^\s*)|(\s*$)/g,"")},f})();var wa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Y4(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var Aa={exports:{}};Aa.exports;var N_;function Q4(){return N_||(N_=1,(function(f,I){(function(E){let O=E.en=E.en||{};O.dictionary=Object.assign(O.dictionary||{},{"(may require <kbd>Fn</kbd>)":"(may require <kbd>Fn</kbd>)","%0 of %1":"%0 of %1",Accept:"Accept",Accessibility:"Accessibility","Accessibility help":"Accessibility help","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align center":"Align center","Align left":"Align left","Align right":"Align right","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",Aquamarine:"Aquamarine",Background:"Background","Below, you can find a list of keyboard shortcuts that can be used in the editor.":"Below, you can find a list of keyboard shortcuts that can be used in the editor.",Big:"Big",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold","Bold text":"Bold text",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Cell properties":"Cell properties","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Circle:"Circle",Clear:"Clear","Click to edit block":"Click to edit block",Close:"Close","Close contextual balloons, dropdowns, and dialogs":"Close contextual balloons, dropdowns, and dialogs",Code:"Code","Code block":"Code block",Color:"Color","Color picker":"Color picker",Column:"Column","Content editing keystrokes":"Content editing keystrokes","Copy selected content":"Copy selected content","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.","Create link":"Create link",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Decrease list item indent":"Decrease list item indent",Default:"Default","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc","Document colors":"Document colors",Dotted:"Dotted",Double:"Double",Downloadable:"Downloadable","Drag to move":"Drag to move","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor dialog":"Editor dialog","Editor editing area: %0":"Editor editing area: %0","Editor menu bar":"Editor menu bar","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.":"Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.","Font Background Color":"Font Background Color","Font Color":"Font Color","Font Family":"Font Family","Font Size":"Font Size","Full size image":"Full size image",Green:"Green",Grey:"Grey",Groove:"Groove","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Height:"Height","Help Contents. To close this dialog press ESC.":"Help Contents. To close this dialog press ESC.",HEX:"HEX","Horizontal line":"Horizontal line","Horizontal text alignment toolbar":"Horizontal text alignment toolbar","HTML object":"HTML object",Huge:"Huge","Image from computer":"Image from computer","Image or file":"Image or file","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line","Increase indent":"Increase indent","Increase list item indent":"Increase list item indent",Insert:"Insert","Insert a hard break (a new paragraph)":"Insert a hard break (a new paragraph)","Insert a new paragraph directly after a widget":"Insert a new paragraph directly after a widget","Insert a new paragraph directly before a widget":"Insert a new paragraph directly before a widget","Insert a new table row (when in the last cell of a table)":"Insert a new table row (when in the last cell of a table)","Insert a soft break (a <code>&lt;br&gt;</code> element)":"Insert a soft break (a <code>&lt;br&gt;</code> element)","Insert code block":"Insert code block","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert image via URL":"Insert image via URL","Insert image with file manager":"Insert image with file manager","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Insert with file manager":"Insert with file manager","Inserting image failed":"Inserting image failed",Inset:"Inset","Invalid start index value.":"Invalid start index value.",Italic:"Italic","Italic text":"Italic text",Justify:"Justify","Justify cell text":"Justify cell text","Keystrokes that can be used in a list":"Keystrokes that can be used in a list","Keystrokes that can be used in a table cell":"Keystrokes that can be used in a table cell","Keystrokes that can be used when a widget is selected (for example: image, table, etc.)":"Keystrokes that can be used when a widget is selected (for example: image, table, etc.)","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","List properties":"List properties","Lower-latin":"Lower-latin","Lower\u2013roman":"Lower\u2013roman","Media URL":"Media URL","media widget":"media widget",MENU_BAR_MENU_EDIT:"Edit",MENU_BAR_MENU_FILE:"File",MENU_BAR_MENU_FONT:"Font",MENU_BAR_MENU_FORMAT:"Format",MENU_BAR_MENU_HELP:"Help",MENU_BAR_MENU_INSERT:"Insert",MENU_BAR_MENU_TEXT:"Text",MENU_BAR_MENU_TOOLS:"Tools",MENU_BAR_MENU_VIEW:"View","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells","Move focus between form fields (inputs, buttons, etc.)":"Move focus between form fields (inputs, buttons, etc.)","Move focus in and out of an active dialog window":"Move focus in and out of an active dialog window","Move focus to the menu bar, navigate between menu bars":"Move focus to the menu bar, navigate between menu bars","Move focus to the toolbar, navigate between toolbars":"Move focus to the toolbar, navigate between toolbars","Move out of a link":"Move out of a link","Move out of an inline code style":"Move out of an inline code style","Move the caret to allow typing directly after a widget":"Move the caret to allow typing directly after a widget","Move the caret to allow typing directly before a widget":"Move the caret to allow typing directly before a widget","Move the selection to the next cell":"Move the selection to the next cell","Move the selection to the previous cell":"Move the selection to the previous cell","Navigate through the table":"Navigate through the table","Navigate through the toolbar or menu bar":"Navigate through the toolbar or menu bar",Next:"Next","No results found":"No results found","No searchable items":"No searchable items",None:"None","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open media in new tab":"Open media in new tab","Open the accessibility help dialog":"Open the accessibility help dialog",Orange:"Orange",Original:"Original",Outset:"Outset",Padding:"Padding",Paragraph:"Paragraph","Paste content":"Paste content","Paste content as plain text":"Paste content as plain text","Paste the media URL in the input.":"Paste the media URL in the input.","Plain text":"Plain text","Press %0 for help.":"Press %0 for help.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Remove Format":"Remove Format","Replace from computer":"Replace from computer","Replace image":"Replace image","Replace image from computer":"Replace image from computer","Replace image with file manager":"Replace image with file manager","Replace with file manager":"Replace with file manager","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Restore default":"Restore default","Reversed order":"Reversed order","Revert autoformatting action":"Revert autoformatting action","Rich Text Editor":"Rich Text Editor",Ridge:"Ridge","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Show source":"Show source","Side image":"Side image",Small:"Small",Solid:"Solid",Source:"Source","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Square:"Square","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.",Strikethrough:"Strikethrough","Strikethrough text":"Strikethrough text",Style:"Style",Subscript:"Subscript",Superscript:"Superscript",Table:"Table","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar","Text alignment":"Text alignment","Text alignment toolbar":"Text alignment toolbar","Text alternative":"Text alternative",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".',"The URL must not be empty.":"The URL must not be empty.",'The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"These keyboard shortcuts allow for quick access to content editing features.":"These keyboard shortcuts allow for quick access to content editing features.","This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.",Tiny:"Tiny","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","To-do List":"To-do List","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on","Toggle the circle list style":"Toggle the circle list style","Toggle the decimal list style":"Toggle the decimal list style","Toggle the decimal with leading zero list style":"Toggle the decimal with leading zero list style","Toggle the disc list style":"Toggle the disc list style","Toggle the lower\u2013latin list style":"Toggle the lower\u2013latin list style","Toggle the lower\u2013roman list style":"Toggle the lower\u2013roman list style","Toggle the square list style":"Toggle the square list style","Toggle the upper\u2013latin list style":"Toggle the upper\u2013latin list style","Toggle the upper\u2013roman list style":"Toggle the upper\u2013roman list style",Turquoise:"Turquoise",Underline:"Underline","Underline text":"Underline text",Undo:"Undo",Unlink:"Unlink",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload from computer":"Upload from computer","Upload image from computer":"Upload image from computer","Upload in progress":"Upload in progress","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman","Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.":"Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.","User interface and content navigation keystrokes":"User interface and content navigation keystrokes","Vertical text alignment toolbar":"Vertical text alignment toolbar",White:"White","Widget toolbar":"Widget toolbar",Width:"Width","Wrap text":"Wrap text",Yellow:"Yellow"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(function(E,O){f.exports=O()})(self,(()=>(()=>{var E,O,H={8168:(v,T,p)=>{let x=p(8874),D={};for(let k of Object.keys(x))D[x[k]]=k;let C={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};v.exports=C;for(let k of Object.keys(C)){if(!("channels"in C[k]))throw new Error("missing channels property: "+k);if(!("labels"in C[k]))throw new Error("missing channel labels property: "+k);if(C[k].labels.length!==C[k].channels)throw new Error("channel and label counts mismatch: "+k);let{channels:_,labels:B}=C[k];delete C[k].channels,delete C[k].labels,Object.defineProperty(C[k],"channels",{value:_}),Object.defineProperty(C[k],"labels",{value:B})}C.rgb.hsl=function(k){let _=k[0]/255,B=k[1]/255,N=k[2]/255,P=Math.min(_,B,N),V=Math.max(_,B,N),U=V-P,Z,Q;V===P?Z=0:_===V?Z=(B-N)/U:B===V?Z=2+(N-_)/U:N===V&&(Z=4+(_-B)/U),Z=Math.min(60*Z,360),Z<0&&(Z+=360);let se=(P+V)/2;return Q=V===P?0:se<=.5?U/(V+P):U/(2-V-P),[Z,100*Q,100*se]},C.rgb.hsv=function(k){let _,B,N,P,V,U=k[0]/255,Z=k[1]/255,Q=k[2]/255,se=Math.max(U,Z,Q),ge=se-Math.min(U,Z,Q),ie=function(he){return(se-he)/6/ge+.5};return ge===0?(P=0,V=0):(V=ge/se,_=ie(U),B=ie(Z),N=ie(Q),U===se?P=N-B:Z===se?P=.3333333333333333+_-N:Q===se&&(P=.6666666666666666+B-_),P<0?P+=1:P>1&&(P-=1)),[360*P,100*V,100*se]},C.rgb.hwb=function(k){let _=k[0],B=k[1],N=k[2],P=C.rgb.hsl(k)[0],V=1/255*Math.min(_,Math.min(B,N));return N=1-.00392156862745098*Math.max(_,Math.max(B,N)),[P,100*V,100*N]},C.rgb.cmyk=function(k){let _=k[0]/255,B=k[1]/255,N=k[2]/255,P=Math.min(1-_,1-B,1-N);return[100*((1-_-P)/(1-P)||0),100*((1-B-P)/(1-P)||0),100*((1-N-P)/(1-P)||0),100*P]},C.rgb.keyword=function(k){let _=D[k];if(_)return _;let B,N=1/0;for(let U of Object.keys(x)){let Z=x[U],Q=(V=Z,((P=k)[0]-V[0])**2+(P[1]-V[1])**2+(P[2]-V[2])**2);Q<N&&(N=Q,B=U)}var P,V;return B},C.keyword.rgb=function(k){return x[k]},C.rgb.xyz=function(k){let _=k[0]/255,B=k[1]/255,N=k[2]/255;return _=_>.04045?((_+.055)/1.055)**2.4:_/12.92,B=B>.04045?((B+.055)/1.055)**2.4:B/12.92,N=N>.04045?((N+.055)/1.055)**2.4:N/12.92,[100*(.4124*_+.3576*B+.1805*N),100*(.2126*_+.7152*B+.0722*N),100*(.0193*_+.1192*B+.9505*N)]},C.rgb.lab=function(k){let _=C.rgb.xyz(k),B=_[0],N=_[1],P=_[2];return B/=95.047,N/=100,P/=108.883,B=B>.008856?B**.3333333333333333:7.787*B+.13793103448275862,N=N>.008856?N**.3333333333333333:7.787*N+.13793103448275862,P=P>.008856?P**.3333333333333333:7.787*P+.13793103448275862,[116*N-16,500*(B-N),200*(N-P)]},C.hsl.rgb=function(k){let _=k[0]/360,B=k[1]/100,N=k[2]/100,P,V,U;if(B===0)return U=255*N,[U,U,U];P=N<.5?N*(1+B):N+B-N*B;let Z=2*N-P,Q=[0,0,0];for(let se=0;se<3;se++)V=_+.3333333333333333*-(se-1),V<0&&V++,V>1&&V--,U=6*V<1?Z+6*(P-Z)*V:2*V<1?P:3*V<2?Z+(P-Z)*(.6666666666666666-V)*6:Z,Q[se]=255*U;return Q},C.hsl.hsv=function(k){let _=k[0],B=k[1]/100,N=k[2]/100,P=B,V=Math.max(N,.01);return N*=2,B*=N<=1?N:2-N,P*=V<=1?V:2-V,[_,100*(N===0?2*P/(V+P):2*B/(N+B)),100*((N+B)/2)]},C.hsv.rgb=function(k){let _=k[0]/60,B=k[1]/100,N=k[2]/100,P=Math.floor(_)%6,V=_-Math.floor(_),U=255*N*(1-B),Z=255*N*(1-B*V),Q=255*N*(1-B*(1-V));switch(N*=255,P){case 0:return[N,Q,U];case 1:return[Z,N,U];case 2:return[U,N,Q];case 3:return[U,Z,N];case 4:return[Q,U,N];case 5:return[N,U,Z]}},C.hsv.hsl=function(k){let _=k[0],B=k[1]/100,N=k[2]/100,P=Math.max(N,.01),V,U;U=(2-B)*N;let Z=(2-B)*P;return V=B*P,V/=Z<=1?Z:2-Z,V=V||0,U/=2,[_,100*V,100*U]},C.hwb.rgb=function(k){let _=k[0]/360,B=k[1]/100,N=k[2]/100,P=B+N,V;P>1&&(B/=P,N/=P);let U=Math.floor(6*_),Z=1-N;V=6*_-U,1&U&&(V=1-V);let Q=B+V*(Z-B),se,ge,ie;switch(U){default:case 6:case 0:se=Z,ge=Q,ie=B;break;case 1:se=Q,ge=Z,ie=B;break;case 2:se=B,ge=Z,ie=Q;break;case 3:se=B,ge=Q,ie=Z;break;case 4:se=Q,ge=B,ie=Z;break;case 5:se=Z,ge=B,ie=Q}return[255*se,255*ge,255*ie]},C.cmyk.rgb=function(k){let _=k[0]/100,B=k[1]/100,N=k[2]/100,P=k[3]/100;return[255*(1-Math.min(1,_*(1-P)+P)),255*(1-Math.min(1,B*(1-P)+P)),255*(1-Math.min(1,N*(1-P)+P))]},C.xyz.rgb=function(k){let _=k[0]/100,B=k[1]/100,N=k[2]/100,P,V,U;return P=3.2406*_+-1.5372*B+-.4986*N,V=-.9689*_+1.8758*B+.0415*N,U=.0557*_+-.204*B+1.057*N,P=P>.0031308?1.055*P**.4166666666666667-.055:12.92*P,V=V>.0031308?1.055*V**.4166666666666667-.055:12.92*V,U=U>.0031308?1.055*U**.4166666666666667-.055:12.92*U,P=Math.min(Math.max(0,P),1),V=Math.min(Math.max(0,V),1),U=Math.min(Math.max(0,U),1),[255*P,255*V,255*U]},C.xyz.lab=function(k){let _=k[0],B=k[1],N=k[2];return _/=95.047,B/=100,N/=108.883,_=_>.008856?_**.3333333333333333:7.787*_+.13793103448275862,B=B>.008856?B**.3333333333333333:7.787*B+.13793103448275862,N=N>.008856?N**.3333333333333333:7.787*N+.13793103448275862,[116*B-16,500*(_-B),200*(B-N)]},C.lab.xyz=function(k){let _,B,N;B=(k[0]+16)/116,_=k[1]/500+B,N=B-k[2]/200;let P=B**3,V=_**3,U=N**3;return B=P>.008856?P:(B-.13793103448275862)/7.787,_=V>.008856?V:(_-.13793103448275862)/7.787,N=U>.008856?U:(N-.13793103448275862)/7.787,_*=95.047,B*=100,N*=108.883,[_,B,N]},C.lab.lch=function(k){let _=k[0],B=k[1],N=k[2],P;return P=360*Math.atan2(N,B)/2/Math.PI,P<0&&(P+=360),[_,Math.sqrt(B*B+N*N),P]},C.lch.lab=function(k){let _=k[0],B=k[1],N=k[2]/360*2*Math.PI;return[_,B*Math.cos(N),B*Math.sin(N)]},C.rgb.ansi16=function(k,_=null){let[B,N,P]=k,V=_===null?C.rgb.hsv(k)[2]:_;if(V=Math.round(V/50),V===0)return 30;let U=30+(Math.round(P/255)<<2|Math.round(N/255)<<1|Math.round(B/255));return V===2&&(U+=60),U},C.hsv.ansi16=function(k){return C.rgb.ansi16(C.hsv.rgb(k),k[2])},C.rgb.ansi256=function(k){let _=k[0],B=k[1],N=k[2];return _===B&&B===N?_<8?16:_>248?231:Math.round((_-8)/247*24)+232:16+36*Math.round(_/255*5)+6*Math.round(B/255*5)+Math.round(N/255*5)},C.ansi16.rgb=function(k){let _=k%10;if(_===0||_===7)return k>50&&(_+=3.5),_=_/10.5*255,[_,_,_];let B=.5*(1+~~(k>50));return[(1&_)*B*255,(_>>1&1)*B*255,(_>>2&1)*B*255]},C.ansi256.rgb=function(k){if(k>=232){let B=10*(k-232)+8;return[B,B,B]}let _;return k-=16,[Math.floor(k/36)/5*255,Math.floor((_=k%36)/6)/5*255,_%6/5*255]},C.rgb.hex=function(k){let _=(((255&Math.round(k[0]))<<16)+((255&Math.round(k[1]))<<8)+(255&Math.round(k[2]))).toString(16).toUpperCase();return"000000".substring(_.length)+_},C.hex.rgb=function(k){let _=k.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!_)return[0,0,0];let B=_[0];_[0].length===3&&(B=B.split("").map((P=>P+P)).join(""));let N=parseInt(B,16);return[N>>16&255,N>>8&255,255&N]},C.rgb.hcg=function(k){let _=k[0]/255,B=k[1]/255,N=k[2]/255,P=Math.max(Math.max(_,B),N),V=Math.min(Math.min(_,B),N),U=P-V,Z,Q;return Z=U<1?V/(1-U):0,Q=U<=0?0:P===_?(B-N)/U%6:P===B?2+(N-_)/U:4+(_-B)/U,Q/=6,Q%=1,[360*Q,100*U,100*Z]},C.hsl.hcg=function(k){let _=k[1]/100,B=k[2]/100,N=B<.5?2*_*B:2*_*(1-B),P=0;return N<1&&(P=(B-.5*N)/(1-N)),[k[0],100*N,100*P]},C.hsv.hcg=function(k){let _=k[1]/100,B=k[2]/100,N=_*B,P=0;return N<1&&(P=(B-N)/(1-N)),[k[0],100*N,100*P]},C.hcg.rgb=function(k){let _=k[0]/360,B=k[1]/100,N=k[2]/100;if(B===0)return[255*N,255*N,255*N];let P=[0,0,0],V=_%1*6,U=V%1,Z=1-U,Q=0;switch(Math.floor(V)){case 0:P[0]=1,P[1]=U,P[2]=0;break;case 1:P[0]=Z,P[1]=1,P[2]=0;break;case 2:P[0]=0,P[1]=1,P[2]=U;break;case 3:P[0]=0,P[1]=Z,P[2]=1;break;case 4:P[0]=U,P[1]=0,P[2]=1;break;default:P[0]=1,P[1]=0,P[2]=Z}return Q=(1-B)*N,[255*(B*P[0]+Q),255*(B*P[1]+Q),255*(B*P[2]+Q)]},C.hcg.hsv=function(k){let _=k[1]/100,B=_+k[2]/100*(1-_),N=0;return B>0&&(N=_/B),[k[0],100*N,100*B]},C.hcg.hsl=function(k){let _=k[1]/100,B=k[2]/100*(1-_)+.5*_,N=0;return B>0&&B<.5?N=_/(2*B):B>=.5&&B<1&&(N=_/(2*(1-B))),[k[0],100*N,100*B]},C.hcg.hwb=function(k){let _=k[1]/100,B=_+k[2]/100*(1-_);return[k[0],100*(B-_),100*(1-B)]},C.hwb.hcg=function(k){let _=k[1]/100,B=1-k[2]/100,N=B-_,P=0;return N<1&&(P=(B-N)/(1-N)),[k[0],100*N,100*P]},C.apple.rgb=function(k){return[k[0]/65535*255,k[1]/65535*255,k[2]/65535*255]},C.rgb.apple=function(k){return[k[0]/255*65535,k[1]/255*65535,k[2]/255*65535]},C.gray.rgb=function(k){return[k[0]/100*255,k[0]/100*255,k[0]/100*255]},C.gray.hsl=function(k){return[0,0,k[0]]},C.gray.hsv=C.gray.hsl,C.gray.hwb=function(k){return[0,100,k[0]]},C.gray.cmyk=function(k){return[0,0,0,k[0]]},C.gray.lab=function(k){return[k[0],0,0]},C.gray.hex=function(k){let _=255&Math.round(k[0]/100*255),B=((_<<16)+(_<<8)+_).toString(16).toUpperCase();return"000000".substring(B.length)+B},C.rgb.gray=function(k){return[(k[0]+k[1]+k[2])/3/255*100]}},2085:(v,T,p)=>{let x=p(8168),D=p(4111),C={};Object.keys(x).forEach((k=>{C[k]={},Object.defineProperty(C[k],"channels",{value:x[k].channels}),Object.defineProperty(C[k],"labels",{value:x[k].labels});let _=D(k);Object.keys(_).forEach((B=>{let N=_[B];C[k][B]=(function(P){let V=function(...U){let Z=U[0];if(Z==null)return Z;Z.length>1&&(U=Z);let Q=P(U);if(typeof Q=="object")for(let se=Q.length,ge=0;ge<se;ge++)Q[ge]=Math.round(Q[ge]);return Q};return"conversion"in P&&(V.conversion=P.conversion),V})(N),C[k][B].raw=(function(P){let V=function(...U){let Z=U[0];return Z==null?Z:(Z.length>1&&(U=Z),P(U))};return"conversion"in P&&(V.conversion=P.conversion),V})(N)}))})),v.exports=C},4111:(v,T,p)=>{let x=p(8168);function D(_){let B=(function(){let P={},V=Object.keys(x);for(let U=V.length,Z=0;Z<U;Z++)P[V[Z]]={distance:-1,parent:null};return P})(),N=[_];for(B[_].distance=0;N.length;){let P=N.pop(),V=Object.keys(x[P]);for(let U=V.length,Z=0;Z<U;Z++){let Q=V[Z],se=B[Q];se.distance===-1&&(se.distance=B[P].distance+1,se.parent=P,N.unshift(Q))}}return B}function C(_,B){return function(N){return B(_(N))}}function k(_,B){let N=[B[_].parent,_],P=x[B[_].parent][_],V=B[_].parent;for(;B[V].parent;)N.unshift(B[V].parent),P=C(x[B[V].parent][V],P),V=B[V].parent;return P.conversion=N,P}v.exports=function(_){let B=D(_),N={},P=Object.keys(B);for(let V=P.length,U=0;U<V;U++){let Z=P[U];B[Z].parent!==null&&(N[Z]=k(Z,B))}return N}},8874:v=>{v.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8180:(v,T,p)=>{p.d(T,{Z:()=>_});var x=p(4015),D=p.n(x),C=p(3645),k=p.n(C)()(D());k.push([v.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:[`/*
4
4
  * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
5
5
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as k}from"./PMV2N3L3.js";import{a as C}from"./DM57UJMG.js";import"./VJDK62KV.js";import"./TWW63D32.js";import{J as V,K as _,L as $,M as u,P as D,h as w,j as v,k as g}from"./WJZHHIWO.js";export default $arcgis.t(([{substitute:z}])=>{var N=w`:host{display:block;--arcgis-histogram-bar-color: var(--calcite-color-border-1);--arcgis-histogram-stop-color: color-mix(in srgb, var(--calcite-color-brand) 80%, transparent)}.content{display:block;direction:ltr;width:100%;height:100%}.svg{display:block;width:100%;height:100%;overflow:visible}.data-line{stroke:#888;stroke-width:1px;shape-rendering:crispEdges}.average-data-line{stroke-width:1px;shape-rendering:crispEdges;stroke:#444}.label,.data-line-symbol{font-size:12px;stroke:#fff;stroke-width:2px;paint-order:stroke;unicode-bidi:plaintext}.data-line-symbol{font-family:"Georgia, serif",sans-serif;font-style:italic}`;function B(t,r,i,e,n){let[a,s]=n;if(!t||s===0||a===0||i==null||r==null)return null;let o=i-r,c=(t.length>1?t[t.length-1].maxValue-t[0].minValue:0)/o,[l,h]=e==="vertical"?[s*c,a]:[s,a*c],m=t?t.map(d=>d.count):[],p=Math.max(...m);return t.map(d=>{let[f,b]=e==="vertical"?[l/t.length,p!==0?d.count/p*h:0]:[p!==0?d.count/p*l:0,h/t.length],{maxValue:F}=d,y=i-F,[I,S]=e==="vertical"?[0,y*(s/o)]:[a-b-y*(a/o),s-f];return[I,S,b,f]})}function O(t,r,i,e,n,a){if(e===void 0||n===void 0)return[];let s=[];return t!=null&&s.push({value:t,symbol:"x\u0304",lineClass:"average-data-line"}),r!=null&&e!=null&&n!=null&&s.push(...H(e,n,r,i,t)),a&&s.push(...a),s.filter(({value:o})=>o>=e&&o<=n)}function A(t,r,i,e,n){if(i==null)return[0,0,0,0];let a=Math.round((n-i)/e*100)/100,[s,o]=t;if(r==="vertical"){let l=o-a*o||1;return l=Math.round(l)+.5,[0,"100%",l,l]}let c=a*s||1;return c=Math.round(c)+.5,[c,c,"100%",0]}function P(t,r,i,e,n){if(i==null)return[0,0];let a=Math.round((n-i)/e*100)/100,[s,o]=t;return r==="vertical"?[s,o-a*o]:[0,a*s]}function T(t,r,i){if(!t||t.length===0)return null;if(M(t)){let e=t.map(n=>({...n,color:E(n.color??i)}));return e.unshift({color:r,minValue:Number.NEGATIVE_INFINITY,maxValue:e[0].minValue}),e.push({color:r,minValue:e[e.length-1].maxValue,maxValue:Number.POSITIVE_INFINITY}),e}else return t.map(e=>({...e,color:E(e.color??i)}))}function R(t,r,i,e){if(!t||t.length===0)return i;if(M(t)){let n=G(t,r);if(n.length===0)return i;if(e){let{color:a=i,weight:s}=n[0],{color:o=i,weight:c}=n[1]??n[0],l=s+c;return`color-mix(in srgb, ${a} ${s/l*100}%, ${o} ${c/l*100}%)`}return n[0].color??i}return Y(t,r)}function G(t,r){let i=[];for(let e of t){let n=Math.max(0,Math.min(r.maxValue,e.maxValue)-Math.max(r.minValue,e.minValue));n>0&&i.push({color:e.color,weight:n})}return i.sort((e,n)=>n.weight-e.weight)}function Y(t,r){let i=(r.maxValue-r.minValue)/2+r.minValue;if(i>t[t.length-1].value)return t[t.length-1].color;for(let e=0;e<t.length-1;e++){let n=t[e],a=t[e+1];if(i<=n.value)return n.color;if(i<a.value){let s=(i-n.value)/(a.value-n.value)*100;return`color-mix(in srgb, ${n.color}, ${a.color} ${s}%)`}}return t[t.length-1].color}function M(t){return t[0]!=null&&"minValue"in t[0]}function E(t){if(typeof t=="string")return t;if(Array.isArray(t))return`rgba(${t[0]}, ${t[1]}, ${t[2]}, ${t[3]??1})`;let{r,g:i,b:e,a:n=1}=t;return`rgba(${r}, ${i}, ${e}, ${n})`}function H(t,r,i,e,n){let a=.06*(r-t);return U(i,e,n).map((s,o,c)=>{let l=c.length/2,h=s>n?"+":"-",m=o>=l?o-l+1:l-o;return{symbol:`${h}${m===1?"":m}\u03C3`,value:s}}).filter(({value:s})=>Math.abs(n-s)>a)}function U(t,r,i){if(i==null||t==null)return[];let e=r,n=[];for(let a=e*-1;a<=e;a++)a!==0&&n.push(i+a*t);return n}var L="var(--arcgis-histogram-bar-color)",q="var(--arcgis-histogram-stop-color)",x=class extends V{constructor(){super(...arguments),this._messages=C(),this._normalizedStops=null,this.#t=(r,i)=>{let e=n=>k(this._messages._lang,this._numberFormatterOptions).format(n);return this.labelFormatter?.(r,i,e)??e(r)},this._numberFormatterOptions={maximumFractionDigits:2},this.containerDimensions=[0,0],this.icon="graph-histogram",this.layout="horizontal",this.colorBlendingEnabled=!1,this.standardDeviationCount=1}static{this.properties={containerDimensions:16,colorStops:0,icon:3,labelFormatter:0,average:11,messageOverrides:0,standardDeviation:11,bins:0,dataLines:0,label:1,layout:3,max:11,min:11,colorBlendingEnabled:5,standardDeviationCount:9}}static{this.styles=N}#t;loaded(){let r=new ResizeObserver(n=>{for(let a of n){let{width:s,height:o}=a.contentRect;this.containerDimensions=[s,o]}}),{width:i,height:e}=this.el.getBoundingClientRect();this.containerDimensions=[i,e],r.observe(this.el)}willUpdate(r){r.has("colorStops")&&(this._normalizedStops=T(this.colorStops,L,q))}render(){let{label:r}=this;return v`<div role=img .ariaLabel=${r??void 0} class="content">${this._renderContent()}</div>`}_renderContent(){let{containerDimensions:[r,i]}=this,e="bg-fill",n=r?[g`<defs><clipPath id=${e}><rect height=${i??u} width=${r??u} x=0 y=0 /></clipPath></defs>`,g`<g style=${$({clipPath:`url(#${e})`})}><g>${this._renderBars()}</g></g>`,g`<g>${this._renderLines()}</g>`]:[];return v`<svg class="svg" xmlns=http://www.w3.org/2000/svg>${n}</svg>`}_renderBars(){let{bins:r,_messages:i}=this,e=B(this.bins,this.min,this.max,this.layout,this.containerDimensions);return!e||!r?null:e.map((n,a)=>{let[s,o,c,l]=n,h=r[a],m=i?.barLabel?z(i.barLabel,h):"";return g`<rect style=${$({fill:R(this._normalizedStops,h,L,this.colorBlendingEnabled)})} .ariaLabel=${m} data-index=${a??u} height=${l??u} role=img shape-rendering=crispEdges stroke-width=0 width=${c??u} x=${s??u} y=${o??u} />`})}_renderLines(){return O(this.average,this.standardDeviation,this.standardDeviationCount,this.min,this.max,this.dataLines)?.map(r=>W({dataLine:r,containerDimensions:this.containerDimensions,layout:this.layout,min:this.min,max:this.max,labelFormatter:this.#t}))}},W=t=>{let{containerDimensions:r,layout:i,min:e,max:n,dataLine:a,labelFormatter:s}=t,o=n!=null&&e!=null?n-e:0,[c,l,h,m]=A(r,i,e,o,a.value),[p,d]=P(r,i,e,o,a.value),f="symbol"in a?[g`<tspan class="data-line-symbol">${a.symbol}</tspan>`,g`<tspan>${s(a.value,a.lineClass==="average-data-line"?"average":"standard-deviation")}</tspan>`]:a.label,b="lineClass"in a&&a.lineClass?a.lineClass:"data-line";return g`<g><title>${a.value}</title><line class=${_(b)} shape-rendering=crispEdges x1=${c??u} x2=${l??u} y1=${h??u} y2=${m??u} /><text class="label" text-anchor=end transform=${(i==="horizontal"?"rotate(270)":void 0)??u} x=${p??u} y=${d-2}>${f}</text></g>`};D("arcgis-histogram",x);return x},"intl")
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import{a as k}from"./NMDESY3T.js";import{a as C}from"./O2DY73RF.js";import"./RT25KW2T.js";import"./QJJFF4PI.js";import{L as V,M as _,N as $,O as u,R as D,h as w,j as v,k as g}from"./DLOQSM4T.js";export default $arcgis.t(([{substitute:z}])=>{var N=w`:host{display:block;--arcgis-histogram-bar-color: var(--calcite-color-border-1);--arcgis-histogram-stop-color: color-mix(in srgb, var(--calcite-color-brand) 80%, transparent)}.content{display:block;direction:ltr;width:100%;height:100%}.svg{display:block;width:100%;height:100%;overflow:visible}.data-line{stroke:#888;stroke-width:1px;shape-rendering:crispEdges}.average-data-line{stroke-width:1px;shape-rendering:crispEdges;stroke:#444}.label,.data-line-symbol{font-size:12px;stroke:#fff;stroke-width:2px;paint-order:stroke;unicode-bidi:plaintext}.data-line-symbol{font-family:"Georgia, serif",sans-serif;font-style:italic}`;function B(t,r,i,e,n){let[a,s]=n;if(!t||s===0||a===0||i==null||r==null)return null;let o=i-r,c=(t.length>1?t[t.length-1].maxValue-t[0].minValue:0)/o,[l,h]=e==="vertical"?[s*c,a]:[s,a*c],m=t?t.map(d=>d.count):[],p=Math.max(...m);return t.map(d=>{let[f,b]=e==="vertical"?[l/t.length,p!==0?d.count/p*h:0]:[p!==0?d.count/p*l:0,h/t.length],{maxValue:F}=d,y=i-F,[I,S]=e==="vertical"?[0,y*(s/o)]:[a-b-y*(a/o),s-f];return[I,S,b,f]})}function O(t,r,i,e,n,a){if(e===void 0||n===void 0)return[];let s=[];return t!=null&&s.push({value:t,symbol:"x\u0304",lineClass:"average-data-line"}),r!=null&&e!=null&&n!=null&&s.push(...H(e,n,r,i,t)),a&&s.push(...a),s.filter(({value:o})=>o>=e&&o<=n)}function A(t,r,i,e,n){if(i==null)return[0,0,0,0];let a=Math.round((n-i)/e*100)/100,[s,o]=t;if(r==="vertical"){let l=o-a*o||1;return l=Math.round(l)+.5,[0,"100%",l,l]}let c=a*s||1;return c=Math.round(c)+.5,[c,c,"100%",0]}function P(t,r,i,e,n){if(i==null)return[0,0];let a=Math.round((n-i)/e*100)/100,[s,o]=t;return r==="vertical"?[s,o-a*o]:[0,a*s]}function T(t,r,i){if(!t||t.length===0)return null;if(M(t)){let e=t.map(n=>({...n,color:E(n.color??i)}));return e.unshift({color:r,minValue:Number.NEGATIVE_INFINITY,maxValue:e[0].minValue}),e.push({color:r,minValue:e[e.length-1].maxValue,maxValue:Number.POSITIVE_INFINITY}),e}else return t.map(e=>({...e,color:E(e.color??i)}))}function R(t,r,i,e){if(!t||t.length===0)return i;if(M(t)){let n=G(t,r);if(n.length===0)return i;if(e){let{color:a=i,weight:s}=n[0],{color:o=i,weight:c}=n[1]??n[0],l=s+c;return`color-mix(in srgb, ${a} ${s/l*100}%, ${o} ${c/l*100}%)`}return n[0].color??i}return Y(t,r)}function G(t,r){let i=[];for(let e of t){let n=Math.max(0,Math.min(r.maxValue,e.maxValue)-Math.max(r.minValue,e.minValue));n>0&&i.push({color:e.color,weight:n})}return i.sort((e,n)=>n.weight-e.weight)}function Y(t,r){let i=(r.maxValue-r.minValue)/2+r.minValue;if(i>t[t.length-1].value)return t[t.length-1].color;for(let e=0;e<t.length-1;e++){let n=t[e],a=t[e+1];if(i<=n.value)return n.color;if(i<a.value){let s=(i-n.value)/(a.value-n.value)*100;return`color-mix(in srgb, ${n.color}, ${a.color} ${s}%)`}}return t[t.length-1].color}function M(t){return t[0]!=null&&"minValue"in t[0]}function E(t){if(typeof t=="string")return t;if(Array.isArray(t))return`rgba(${t[0]}, ${t[1]}, ${t[2]}, ${t[3]??1})`;let{r,g:i,b:e,a:n=1}=t;return`rgba(${r}, ${i}, ${e}, ${n})`}function H(t,r,i,e,n){let a=.06*(r-t);return U(i,e,n).map((s,o,c)=>{let l=c.length/2,h=s>n?"+":"-",m=o>=l?o-l+1:l-o;return{symbol:`${h}${m===1?"":m}\u03C3`,value:s}}).filter(({value:s})=>Math.abs(n-s)>a)}function U(t,r,i){if(i==null||t==null)return[];let e=r,n=[];for(let a=e*-1;a<=e;a++)a!==0&&n.push(i+a*t);return n}var L="var(--arcgis-histogram-bar-color)",q="var(--arcgis-histogram-stop-color)",x=class extends V{constructor(){super(...arguments),this._messages=C(),this._normalizedStops=null,this.#t=(r,i)=>{let e=n=>k(this._messages._lang,this._numberFormatterOptions).format(n);return this.labelFormatter?.(r,i,e)??e(r)},this._numberFormatterOptions={maximumFractionDigits:2},this.containerDimensions=[0,0],this.icon="graph-histogram",this.layout="horizontal",this.colorBlendingEnabled=!1,this.standardDeviationCount=1}static{this.properties={containerDimensions:16,colorStops:0,icon:3,labelFormatter:0,average:11,messageOverrides:0,standardDeviation:11,bins:0,dataLines:0,label:1,layout:3,max:11,min:11,colorBlendingEnabled:5,standardDeviationCount:9}}static{this.styles=N}#t;loaded(){let r=new ResizeObserver(n=>{for(let a of n){let{width:s,height:o}=a.contentRect;this.containerDimensions=[s,o]}}),{width:i,height:e}=this.el.getBoundingClientRect();this.containerDimensions=[i,e],r.observe(this.el)}willUpdate(r){r.has("colorStops")&&(this._normalizedStops=T(this.colorStops,L,q))}render(){let{label:r}=this;return v`<div role=img .ariaLabel=${r??void 0} class="content">${this._renderContent()}</div>`}_renderContent(){let{containerDimensions:[r,i]}=this,e="bg-fill",n=r?[g`<defs><clipPath id=${e}><rect height=${i??u} width=${r??u} x=0 y=0 /></clipPath></defs>`,g`<g style=${$({clipPath:`url(#${e})`})}><g>${this._renderBars()}</g></g>`,g`<g>${this._renderLines()}</g>`]:[];return v`<svg class="svg" xmlns=http://www.w3.org/2000/svg>${n}</svg>`}_renderBars(){let{bins:r,_messages:i}=this,e=B(this.bins,this.min,this.max,this.layout,this.containerDimensions);return!e||!r?null:e.map((n,a)=>{let[s,o,c,l]=n,h=r[a],m=i?.barLabel?z(i.barLabel,h):"";return g`<rect style=${$({fill:R(this._normalizedStops,h,L,this.colorBlendingEnabled)})} .ariaLabel=${m} data-index=${a??u} height=${l??u} role=img shape-rendering=crispEdges stroke-width=0 width=${c??u} x=${s??u} y=${o??u} />`})}_renderLines(){return O(this.average,this.standardDeviation,this.standardDeviationCount,this.min,this.max,this.dataLines)?.map(r=>W({dataLine:r,containerDimensions:this.containerDimensions,layout:this.layout,min:this.min,max:this.max,labelFormatter:this.#t}))}},W=t=>{let{containerDimensions:r,layout:i,min:e,max:n,dataLine:a,labelFormatter:s}=t,o=n!=null&&e!=null?n-e:0,[c,l,h,m]=A(r,i,e,o,a.value),[p,d]=P(r,i,e,o,a.value),f="symbol"in a?[g`<tspan class="data-line-symbol">${a.symbol}</tspan>`,g`<tspan>${s(a.value,a.lineClass==="average-data-line"?"average":"standard-deviation")}</tspan>`]:a.label,b="lineClass"in a&&a.lineClass?a.lineClass:"data-line";return g`<g><title>${a.value}</title><line class=${_(b)} shape-rendering=crispEdges x1=${c??u} x2=${l??u} y1=${h??u} y2=${m??u} /><text class="label" text-anchor=end transform=${(i==="horizontal"?"rotate(270)":void 0)??u} x=${p??u} y=${d-2}>${f}</text></g>`};D("arcgis-histogram",x);return x},"intl")
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{i as o}from"./WJZHHIWO.js";var n=Symbol(),h=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((t,i)=>{this.o=t,this.h=i})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(t,i,e){this.p=0,this.i=0,(this._=t).addController(this);let r=typeof i=="object"?i:{task:i,args:e};this.v=r.task,this.j=r.args,this.m=r.argsEqual??u,this.k=r.onComplete,this.A=r.onError,this.autoRun=r.autoRun??!0,"initialValue"in r&&(this.u=r.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;let t=this.j();if(!Array.isArray(t))throw Error("The args function must return an array");return t}async S(){let t=this.T(),i=this.O;this.O=t,t===i||t===void 0||i!==void 0&&this.m(i,t)||await this.run(t)}async run(t){let i,e;t??=this.T(),this.O=t,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let r=++this.p;this.q=new AbortController;let a=!1;try{i=await this.v(t,{signal:this.q.signal})}catch(l){a=!0,e=l}if(this.p===r){if(i===n)this.i=0;else{if(a===!1){try{this.k?.(i)}catch{}this.i=2,this.o?.(i)}else{try{this.A?.(e)}catch{}this.i=3,this.h?.(e)}this.u=i,this.l=e}this._.requestUpdate()}}abort(t){this.i===1&&this.q?.abort(t)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(t){switch(this.i){case 0:return t.initial?.();case 1:return t.pending?.();case 2:return t.complete?.(this.value);case 3:return t.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},u=(s,t)=>s===t||s.length===t.length&&s.every(((i,e)=>!o(i,t[e])));function m(s){return s!=null}function y(s,t){return t==="feature-reduction"&&"featureReduction"in s?s.featureReduction:s}export{h as a,m as b,y as c};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import{i as o}from"./DLOQSM4T.js";var n=Symbol(),h=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((t,i)=>{this.o=t,this.h=i})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(t,i,e){this.p=0,this.i=0,(this._=t).addController(this);let r=typeof i=="object"?i:{task:i,args:e};this.v=r.task,this.j=r.args,this.m=r.argsEqual??u,this.k=r.onComplete,this.A=r.onError,this.autoRun=r.autoRun??!0,"initialValue"in r&&(this.u=r.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;let t=this.j();if(!Array.isArray(t))throw Error("The args function must return an array");return t}async S(){let t=this.T(),i=this.O;this.O=t,t===i||t===void 0||i!==void 0&&this.m(i,t)||await this.run(t)}async run(t){let i,e;t??=this.T(),this.O=t,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let r=++this.p;this.q=new AbortController;let a=!1;try{i=await this.v(t,{signal:this.q.signal})}catch(l){a=!0,e=l}if(this.p===r){if(i===n)this.i=0;else{if(a===!1){try{this.k?.(i)}catch{}this.i=2,this.o?.(i)}else{try{this.A?.(e)}catch{}this.i=3,this.h?.(e)}this.u=i,this.l=e}this._.requestUpdate()}}abort(t){this.i===1&&this.q?.abort(t)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(t){switch(this.i){case 0:return t.initial?.();case 1:return t.pending?.();case 2:return t.complete?.(this.value);case 3:return t.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},u=(s,t)=>s===t||s.length===t.length&&s.every(((i,e)=>!o(i,t[e])));function m(s){return s!=null}function y(s,t){return t==="feature-reduction"&&"featureReduction"in s?s.featureReduction:s}export{h as a,m as b,y as c};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{c as r}from"./VCZLD7ZT.js";function e({scale:t}){return r.action[t]+r.actionPadding[t]}function s({layout:t,relativePosition:o}){return t==="horizontal"?o.startsWith("top")?"bottom":"top":o.endsWith("left")?"right":"left"}function u(t){let o=[...t].sort((n,i)=>n-i);return o.filter((n,i)=>i===0||n!==o[i-1])}export{e as a,s as b,u as c};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import{c as r}from"./AHWD5KV4.js";function e({scale:t}){return r.action[t]+r.actionPadding[t]}function s({layout:t,relativePosition:o}){return t==="horizontal"?o.startsWith("top")?"bottom":"top":o.endsWith("left")?"right":"left"}function u(t){let o=[...t].sort((n,i)=>n-i);return o.filter((n,i)=>i===0||n!==o[i-1])}export{e as a,s as b,u as c};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as h}from"./4TZVXSQZ.js";import"./PMV2N3L3.js";import{a as d}from"./DM57UJMG.js";import"./VJDK62KV.js";import"./TWW63D32.js";import{H as u,I as p,J as c,P as v,h as m,j as g,t as r}from"./WJZHHIWO.js";var y=m`:host{display:block;width:100%;height:100%}`,b="double",o=class extends c{constructor(){super(...arguments),this.#s=u(),this.#t=void 0,this.messages=d({}),this._strategy=h(b),this.disabled=!1,this.fieldType=b,this.fillPlacement="start",this.layout="horizontal",this.max="",this.min="",this.mirrored=!1,this.popoverLabel="",this.rangeLabelsEditingEnabled=!1,this.rangeLabelsPlacement="center",this.showRangeLabels=!1,this.values="",this.valueLabelsEditingEnabled=!1,this.valueLabelsDisplay="always",this.valueLabelsPlacement="start",this.arcgisActiveValueChange=r({cancelable:!1}),this.arcgisChange=r({cancelable:!1}),this.arcgisInput=r({cancelable:!1}),this.arcgisRangeChange=r({cancelable:!1})}static{this.properties={_strategy:16,activeValue:32,disabled:5,fieldType:1,fillPlacement:1,label:1,labelFormatter:0,layout:1,max:1,messageOverrides:0,min:1,mirrored:5,popoverLabel:1,rangeLabelsEditingEnabled:5,rangeLabelsPlacement:1,showRangeLabels:5,values:1,valueLabelsEditingEnabled:5,valueLabelsDisplay:1,valueLabelsPlacement:1,valuesAsNumbers:32,valuesAsDateOnly:32,valuesAsTimeOnly:32,valuesAsTimestampOffset:32,valuesAsFieldType:32}}static{this.styles=y}#s;#t;get activeValue(){let e=this.#s.value?.activeValue;return typeof e=="number"?this._strategy.serialize(e):e}get valuesAsNumbers(){return this.#e(this.values).map(e=>e??NaN)}get valuesAsDateOnly(){return this.#e(this.values).map(e=>e===void 0?null:this._strategy.toDateOnly(e))}get valuesAsTimeOnly(){return this.#e(this.values).map(e=>e===void 0?null:this._strategy.toTimeOnly(e))}get valuesAsTimestampOffset(){return this.#e(this.values).map(e=>e===void 0?null:this._strategy.toTimestampOffset(e))}get valuesAsFieldType(){return this.#e(this.values).map(e=>e===void 0?NaN:this._strategy.toFieldType(e))}willUpdate(e){super.willUpdate(e),e.has("fieldType")&&(this._strategy=h(this.fieldType)),(e.has("messages")||e.has("fieldType")||e.has("labelFormatter"))&&(this.#t=this.#m(this.messages._lang)),(e.has("values")||e.has("min")||e.has("max")||e.has("fieldType"))&&this.#u()}#r(e){e.stopPropagation(),this.#a(e.currentTarget.values),this.arcgisInput.emit()}#n(e){e.stopPropagation(),this.#a(e.currentTarget.values),this.arcgisChange.emit()}#h(e){e.stopPropagation(),this.arcgisActiveValueChange.emit()}#o(e){e.stopPropagation();let s=e.currentTarget;this.min=this._strategy.serialize(s.min),this.max=this._strategy.serialize(s.max),this.#a(s.values),this.arcgisRangeChange.emit()}#m(e){return(s,a,t)=>{let i=l=>this._strategy.format(e,l,a,t)??t(l);return this.labelFormatter?.(s,a,i)??i(s)}}#a(e){this.values=e.map(s=>this._strategy.serialize(s)).join(",")}#e(e){return e.split(",").map(s=>s.trim()).filter(s=>s.length>0).map(s=>this._strategy.parse(s))}#i(e){return this.#e(e).filter(s=>Number.isFinite(s))}#l(e){let s=this._strategy,a=s.parse(this.min),t=s.parse(this.max),i=Number.isFinite(a)?a:void 0,l=Number.isFinite(t)?t:void 0;i!=null&&l!=null&&i>=l&&(i=void 0,l=void 0);let n=s.resolveRange(e,i,l);return n.min>=n.max?s.resolveRange(e,void 0,void 0):n}#g(e,s,a){return e.map(t=>Math.min(a,Math.max(s,t))).sort((t,i)=>t-i)}#u(){let e=this.#i(this.values),s=this.#l(e),a=this._strategy.serialize(s.min),t=this._strategy.serialize(s.max);a!==this.min&&(this.min=a),t!==this.max&&(this.max=t);let i=this.#g(e,s.min,s.max).map(l=>this._strategy.serialize(l)).join(",");i!==this.values&&(this.values=i)}render(){let e=this.#i(this.values),s=this.#l(e),a=this._strategy.editable,t=this._strategy.steps;return g`<arcgis-slider .ariaLabel=${this.label} .disabled=${this.disabled} .labelFormatter=${this.#t} .layout=${this.layout} .max=${s.max} .min=${s.min} .mirrored=${this.mirrored} .popoverLabel=${this.popoverLabel} .precision=${this._strategy.precision} .fillPlacement=${this.fillPlacement} .steps=${t} .rangeLabelsEditingEnabled=${a&&this.rangeLabelsEditingEnabled} .rangeLabelsPlacement=${this.rangeLabelsPlacement} .showRangeLabels=${this.showRangeLabels} .valueLabelsDisplay=${this.valueLabelsDisplay} .valueLabelsEditingEnabled=${a&&this.valueLabelsEditingEnabled} .valueLabelsPlacement=${this.valueLabelsPlacement} .values=${e} @arcgisChange=${this.#n} @arcgisInput=${this.#r} @arcgisActiveValueChange=${this.#h} @arcgisRangeChange=${this.#o} ${p(this.#s)}><slot name=content-start slot=content-start></slot><slot name=content-end slot=content-end></slot><slot name=popover slot=popover></slot></arcgis-slider>`}};v("arcgis-slider-field",o);export{o as ArcgisSliderField};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import{a as h}from"./LE43VGSR.js";import"./NMDESY3T.js";import{a as d}from"./O2DY73RF.js";import"./RT25KW2T.js";import"./QJJFF4PI.js";import{J as u,K as p,L as c,R as v,h as m,j as g,t as r}from"./DLOQSM4T.js";var y=m`:host{display:block;width:100%;height:100%}`,b="double",o=class extends c{constructor(){super(...arguments),this.#s=u(),this.#t=void 0,this.messages=d({}),this._strategy=h(b),this.disabled=!1,this.fieldType=b,this.fillPlacement="start",this.layout="horizontal",this.max="",this.min="",this.mirrored=!1,this.popoverLabel="",this.rangeLabelsEditingEnabled=!1,this.rangeLabelsPlacement="center",this.showRangeLabels=!1,this.values="",this.valueLabelsEditingEnabled=!1,this.valueLabelsDisplay="always",this.valueLabelsPlacement="start",this.arcgisActiveValueChange=r({cancelable:!1}),this.arcgisChange=r({cancelable:!1}),this.arcgisInput=r({cancelable:!1}),this.arcgisRangeChange=r({cancelable:!1})}static{this.properties={_strategy:16,activeValue:32,disabled:5,fieldType:1,fillPlacement:1,label:1,labelFormatter:0,layout:1,max:1,messageOverrides:0,min:1,mirrored:5,popoverLabel:1,rangeLabelsEditingEnabled:5,rangeLabelsPlacement:1,showRangeLabels:5,values:1,valueLabelsEditingEnabled:5,valueLabelsDisplay:1,valueLabelsPlacement:1,valuesAsNumbers:32,valuesAsDateOnly:32,valuesAsTimeOnly:32,valuesAsTimestampOffset:32,valuesAsFieldType:32}}static{this.styles=y}#s;#t;get activeValue(){let e=this.#s.value?.activeValue;return typeof e=="number"?this._strategy.serialize(e):e}get valuesAsNumbers(){return this.#e(this.values).map(e=>e??NaN)}get valuesAsDateOnly(){return this.#e(this.values).map(e=>e===void 0?null:this._strategy.toDateOnly(e))}get valuesAsTimeOnly(){return this.#e(this.values).map(e=>e===void 0?null:this._strategy.toTimeOnly(e))}get valuesAsTimestampOffset(){return this.#e(this.values).map(e=>e===void 0?null:this._strategy.toTimestampOffset(e))}get valuesAsFieldType(){return this.#e(this.values).map(e=>e===void 0?NaN:this._strategy.toFieldType(e))}willUpdate(e){super.willUpdate(e),e.has("fieldType")&&(this._strategy=h(this.fieldType)),(e.has("messages")||e.has("fieldType")||e.has("labelFormatter"))&&(this.#t=this.#m(this.messages._lang)),(e.has("values")||e.has("min")||e.has("max")||e.has("fieldType"))&&this.#u()}#r(e){e.stopPropagation(),this.#a(e.currentTarget.values),this.arcgisInput.emit()}#n(e){e.stopPropagation(),this.#a(e.currentTarget.values),this.arcgisChange.emit()}#h(e){e.stopPropagation(),this.arcgisActiveValueChange.emit()}#o(e){e.stopPropagation();let s=e.currentTarget;this.min=this._strategy.serialize(s.min),this.max=this._strategy.serialize(s.max),this.#a(s.values),this.arcgisRangeChange.emit()}#m(e){return(s,a,t)=>{let i=l=>this._strategy.format(e,l,a,t)??t(l);return this.labelFormatter?.(s,a,i)??i(s)}}#a(e){this.values=e.map(s=>this._strategy.serialize(s)).join(",")}#e(e){return e.split(",").map(s=>s.trim()).filter(s=>s.length>0).map(s=>this._strategy.parse(s))}#i(e){return this.#e(e).filter(s=>Number.isFinite(s))}#l(e){let s=this._strategy,a=s.parse(this.min),t=s.parse(this.max),i=Number.isFinite(a)?a:void 0,l=Number.isFinite(t)?t:void 0;i!=null&&l!=null&&i>=l&&(i=void 0,l=void 0);let n=s.resolveRange(e,i,l);return n.min>=n.max?s.resolveRange(e,void 0,void 0):n}#g(e,s,a){return e.map(t=>Math.min(a,Math.max(s,t))).sort((t,i)=>t-i)}#u(){let e=this.#i(this.values),s=this.#l(e),a=this._strategy.serialize(s.min),t=this._strategy.serialize(s.max);a!==this.min&&(this.min=a),t!==this.max&&(this.max=t);let i=this.#g(e,s.min,s.max).map(l=>this._strategy.serialize(l)).join(",");i!==this.values&&(this.values=i)}render(){let e=this.#i(this.values),s=this.#l(e),a=this._strategy.editable,t=this._strategy.steps;return g`<arcgis-slider .ariaLabel=${this.label} .disabled=${this.disabled} .labelFormatter=${this.#t} .layout=${this.layout} .max=${s.max} .min=${s.min} .mirrored=${this.mirrored} .popoverLabel=${this.popoverLabel} .precision=${this._strategy.precision} .fillPlacement=${this.fillPlacement} .steps=${t} .rangeLabelsEditingEnabled=${a&&this.rangeLabelsEditingEnabled} .rangeLabelsPlacement=${this.rangeLabelsPlacement} .showRangeLabels=${this.showRangeLabels} .valueLabelsDisplay=${this.valueLabelsDisplay} .valueLabelsEditingEnabled=${a&&this.valueLabelsEditingEnabled} .valueLabelsPlacement=${this.valueLabelsPlacement} .values=${e} @arcgisChange=${this.#n} @arcgisInput=${this.#r} @arcgisActiveValueChange=${this.#h} @arcgisRangeChange=${this.#o} ${p(this.#s)}><slot name=content-start slot=content-start></slot><slot name=content-end slot=content-end></slot><slot name=popover slot=popover></slot></arcgis-slider>`}};v("arcgis-slider-field",o);export{o as ArcgisSliderField};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import{b}from"./3YTGG7RF.js";import{c as l}from"./AHWD5KV4.js";import{a as g}from"./2ZQLPGO6.js";import{K as h,L as m,M as p,O as a,R as u,h as d,j as o,t as c}from"./DLOQSM4T.js";var E=d`:host([text-enabled][data-layout="vertical"]){.interaction-container>button{flex-direction:column;>.text-container{writing-mode:vertical-lr}}}`,r=class extends m{constructor(){super(...arguments),this.#e=t=>{t!==this._element&&(this.#t?.disconnect(),this._element=t,this._hydratedElement=void 0,this.isConnected&&this.arcgisRenderedActionChanged.emit({element:t}),t&&(this._measureAction(),this.#t??=new ResizeObserver(e=>{!this.textEnabled||!this._element||this._measureAction(e)}),this.#t.observe(t),t.componentOnReady().then(()=>{!this.isConnected||this._element!==t||(this._hydratedElement=t,t.shadowRoot?.adoptedStyleSheets.push(E.styleSheet))})))},this._measuredWidth=0,this._measuredHeight=0,this.active=!1,this.tooltipText="",this.labelText="",this.disabled=!1,this.loading=!1,this.indicator=!1,this.textEnabled=!1,this.appearance="transparent",this.iconFlipRtl=!1,this.arcgisRenderedActionChanged=c(),this.arcgisToolbarItemSelected=c()}static{this.properties={_element:16,_hydratedElement:16,_measuredWidth:16,_measuredHeight:16,icon:1,active:7,tooltipText:1,labelText:1,disabled:5,loading:5,indicator:5,textEnabled:5,kind:3,appearance:3,iconFlipRtl:5,actionElement:32}}#t;#e;get actionElement(){return this._element}measure({layout:t,scale:e}){let s=l.actionPadding[e],i=l.action[e],n=t==="horizontal"?this._measuredWidth:this._measuredHeight;return[Math.max(i,n)+s]}proxiedRender(t){let{tooltipAppearance:e,scale:s}=t,i=this.tooltipText||this.labelText,n=this._hydratedElement,_=e!=="native"&&!!i&&n,$=e==="calcite-dark"?"calcite-mode-dark":void 0,x=b(t);return o`${g(this,o`<calcite-action .active=${this.active} data-appearance=${this.appearance??a} data-kind=${this.kind??a} data-layout=${t.layout??a} .disabled=${this.disabled} .icon=${this.icon} .iconFlipRtl=${this.iconFlipRtl} .indicator=${this.indicator} .label=${i} .loading=${this.loading} @click=${v=>this._handleActionClick(v)} .scale=${s} .text=${this.labelText} .textEnabled=${this.textEnabled} title=${(e==="native"?i:void 0)??a} ${h(this.#e)}></calcite-action>`)}${_?o`<calcite-tooltip class=${p($)} overlay-positioning=fixed .placement=${x} .referenceElement=${n} .scale=${s}><span>${i}</span></calcite-tooltip>`:void 0}`}disconnectedCallback(){this.#t?.disconnect(),super.disconnectedCallback()}_handleActionClick(t){this.arcgisToolbarItemSelected?.emit({element:t.currentTarget})}_measureAction(t){let e=t?.at(0)?.contentRect??this._element?.getBoundingClientRect();e&&(this._measuredWidth=Math.round(e.width),this._measuredHeight=Math.round(e.height))}};u("arcgis-toolbar-action",r);export{r as ArcgisToolbarAction};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import{h as a}from"./DLOQSM4T.js";var r=a`:host([toolbar-kind="floating"]){.ruler{opacity:0;pointer-events:none;position:absolute;visibility:hidden;flex-direction:column;height:min(100cqh - var(--arcgis-internal-attribution-space-top) - 2 * var(--calcite-space-lg),100vh - 2 * var(--calcite-space-lg));width:min(100cqw - 2 * var(--calcite-space-lg),100vw - 2 * var(--calcite-space-lg))}}:host([toolbar-kind="docked"]){.ruler{visibility:hidden;height:0;display:block;position:absolute;top:0;left:0;right:0;width:100%;height:100%}}`,t=a`:host{--arcgis-internal-toolbar-action-kind-color: var(--calcite-action-text-color);--arcgis-internal-toolbar-action-kind-color-hover: var(--calcite-action-text-color-press);--arcgis-internal-toolbar-action-kind-color-press: var(--calcite-action-text-color-press);--arcgis-internal-toolbar-action-kind-foreground-color: var(--calcite-color-text-inverse);--arcgis-internal-toolbar-action-transparent-background-color: var(--calcite-color-transparent);--arcgis-internal-toolbar-action-transparent-background-color-hover: var(--calcite-color-transparent-hover);--arcgis-internal-toolbar-action-transparent-background-color-press: var(--calcite-color-transparent-press)}calcite-action{--calcite-action-text-color: var(--arcgis-internal-toolbar-action-kind-color);--calcite-action-text-color-press: var(--arcgis-internal-toolbar-action-kind-color-press);--calcite-color-focus: var(--arcgis-internal-toolbar-action-kind-color);--calcite-action-indicator-color: var(--arcgis-internal-toolbar-action-kind-color)}calcite-action:is([data-appearance=solid]){--calcite-offset-invert-focus: 1}calcite-action[data-appearance=outline]{--calcite-action-background-color: var(--arcgis-internal-toolbar-action-transparent-background-color);--calcite-action-background-color-hover: var(--arcgis-internal-toolbar-action-transparent-background-color-hover);--calcite-action-background-color-press: var(--arcgis-internal-toolbar-action-transparent-background-color-press);--calcite-action-text-color: var(--arcgis-internal-toolbar-action-kind-color);--calcite-action-text-color-press: var(--arcgis-internal-toolbar-action-kind-color-press);box-shadow:inset 0 0 0 var(--calcite-border-width-sm, 1px) var(--arcgis-internal-toolbar-action-kind-color)}calcite-action[data-appearance=outline]:hover{box-shadow:inset 0 0 0 var(--calcite-border-width-sm, 1px) var(--arcgis-internal-toolbar-action-kind-color-hover)}calcite-action[data-appearance=outline]:active,calcite-action[data-appearance=outline][active]{--calcite-action-background-color: var(--arcgis-internal-toolbar-action-transparent-background-color-press);box-shadow:inset 0 0 0 var(--calcite-border-width-sm, 1px) var(--arcgis-internal-toolbar-action-kind-color-press)}calcite-action[data-appearance=solid]{--calcite-action-background-color: var(--arcgis-internal-toolbar-action-kind-color);--calcite-action-background-color-hover: var(--arcgis-internal-toolbar-action-kind-color-hover);--calcite-action-background-color-press: var(--arcgis-internal-toolbar-action-kind-color-press);--calcite-action-text-color: var(--arcgis-internal-toolbar-action-kind-foreground-color);--calcite-action-text-color-press: var(--arcgis-internal-toolbar-action-kind-foreground-color);--calcite-action-indicator-color: var(--arcgis-internal-toolbar-action-kind-foreground-color)}calcite-action:is([data-appearance=outline],[data-appearance=solid]):not([data-kind]){--arcgis-internal-toolbar-action-kind-color: var(--calcite-color-inverse);--arcgis-internal-toolbar-action-kind-color-hover: var(--calcite-color-inverse-hover);--arcgis-internal-toolbar-action-kind-color-press: var(--calcite-color-inverse-press)}calcite-action:not([data-kind]){--calcite-action-indicator-color: var(--calcite-color-brand)}calcite-action[data-kind=brand]{--arcgis-internal-toolbar-action-kind-color: var(--calcite-color-brand);--arcgis-internal-toolbar-action-kind-color-hover: var(--calcite-color-brand-hover);--arcgis-internal-toolbar-action-kind-color-press: var(--calcite-color-brand-press);--calcite-action-indicator-color: var(--calcite-color-text-1);&[data-appearance=solid]{--calcite-action-indicator-color: var(--calcite-color-text-inverse)}}calcite-action[data-kind=danger]{--arcgis-internal-toolbar-action-kind-color: var(--calcite-color-status-danger);--arcgis-internal-toolbar-action-kind-color-hover: var(--calcite-color-status-danger-hover);--arcgis-internal-toolbar-action-kind-color-press: var(--calcite-color-status-danger-press)}calcite-action[data-kind=info]{--arcgis-internal-toolbar-action-kind-color: var(--calcite-color-status-info);--arcgis-internal-toolbar-action-kind-color-hover: var(--calcite-color-status-info-hover);--arcgis-internal-toolbar-action-kind-color-press: var(--calcite-color-status-info-press)}calcite-action[data-kind=success]{--arcgis-internal-toolbar-action-kind-color: var(--calcite-color-status-success);--arcgis-internal-toolbar-action-kind-color-hover: var(--calcite-color-status-success-hover);--arcgis-internal-toolbar-action-kind-color-press: var(--calcite-color-status-success-press)}calcite-action[data-kind=warning]{--arcgis-internal-toolbar-action-kind-color: var(--calcite-color-status-warning);--arcgis-internal-toolbar-action-kind-color-hover: var(--calcite-color-status-warning-hover);--arcgis-internal-toolbar-action-kind-color-press: var(--calcite-color-status-warning-press)}`,c=a`:host([layout="horizontal"]){.split-anchor{min-width:24px;max-width:24px;&[scale=m]{--calcite-internal-action-spacing: .25rem}&[scale=l]{--calcite-internal-action-spacing: 0rem}}.split-host:has(.split-menu){>calcite-action{border-radius:var(--calcite-action-corner-radius, 2px);border-top-right-radius:0;border-bottom-right-radius:0}.split-anchor{border-radius:var(--calcite-action-corner-radius, 2px);border-bottom-left-radius:0;border-top-left-radius:0}>calcite-action:dir(rtl){border-radius:var(--calcite-action-corner-radius, 2px);border-top-left-radius:0;border-bottom-left-radius:0}.split-anchor:dir(rtl){border-radius:var(--calcite-action-corner-radius, 2px);border-bottom-right-radius:0;border-top-right-radius:0}.split-anchor:dir(ltr){margin-left:calc(0px - var(--calcite-internal-action-bar-gap));margin-right:calc(0px - var(--calcite-internal-action-bar-padding))}.split-anchor:dir(rtl){margin-right:calc(0px - var(--calcite-internal-action-bar-gap));margin-left:calc(0px - var(--calcite-internal-action-bar-padding))}}}:host([layout="vertical"]){.split-anchor{--calcite-internal-action-min-height: unset;min-height:24px;max-height:24px}.split-host:has(.split-menu){>calcite-action{border-radius:var(--calcite-action-corner-radius, 2px);border-bottom-left-radius:0;border-bottom-right-radius:0}.split-anchor{border-radius:var(--calcite-action-corner-radius, 2px);border-top-right-radius:0;border-top-left-radius:0;margin-top:calc(0px - var(--calcite-internal-action-bar-gap));margin-bottom:calc(0px - var(--calcite-internal-action-bar-padding))}}}.split-host:has(.split-menu):hover,.split-host:has(calcite-action-menu[open]),.split-host:has(calcite-dropdown[open]){.split-anchor,>calcite-action{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-transparent-hover))}}.split-host{display:contents;cursor:pointer}`,i=a`:host{max-inline-size:100%;max-block-size:100%;min-inline-size:0;min-block-size:0;--arcgis-toolbar-tooltip-dark-background-color: #212121;--arcgis-toolbar-tooltip-dark-border-color: #404040;--arcgis-toolbar-tooltip-dark-text-color: #fff}calcite-action-bar{-webkit-user-select:none;user-select:none;pointer-events:auto}:host([toolbar-kind="docked"][layout="horizontal"]){calcite-action-bar{min-width:100%}}:host([toolbar-kind="docked"][layout="vertical"]){min-height:100%;calcite-action-bar{min-height:100%}}calcite-tooltip.calcite-mode-dark{--calcite-tooltip-background-color: var(--arcgis-toolbar-tooltip-dark-background-color);--calcite-tooltip-border-color: var(--arcgis-toolbar-tooltip-dark-border-color);--calcite-tooltip-text-color: var(--arcgis-toolbar-tooltip-dark-text-color)}:host([toolbar-kind="floating"][layout="vertical"]) .toolbar-shadow-wrapper{overflow-y:auto}:host([toolbar-kind="floating"][layout="horizontal"]) .toolbar-shadow-wrapper{overflow-x:auto}.toolbar-grid-wrapper{display:grid;max-inline-size:100%;max-block-size:100%;min-inline-size:0;min-block-size:0}:host([layout="horizontal"]) .toolbar-grid-wrapper{grid-template-columns:minmax(0,1fr)}:host([layout="vertical"]) .toolbar-grid-wrapper{grid-template-rows:minmax(0,1fr)}:host([toolbar-kind="floating"]) .toolbar-shadow-wrapper{box-shadow:var(--calcite-shadow-md);background-color:var(--calcite-action-bar-background-color, var(--calcite-color-foreground-1));border-radius:var(--calcite-action-bar-corner-radius, var(--calcite-corner-radius-round));min-inline-size:0;min-block-size:0}`;export{r as a,t as b,c,i as d};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as m}from"./DM57UJMG.js";import{e as d}from"./VJDK62KV.js";import{b as r}from"./TWW63D32.js";import{J as o,K as h,M as a,P as c,h as n,j as s,t as i}from"./WJZHHIWO.js";var u=n`:host{display:inline-flex;max-inline-size:100%}:host([layout="horizontal"]) slot{min-inline-size:300px;min-block-size:48px}:host([layout="vertical"]) slot{min-inline-size:300px;min-block-size:144px}slot{display:flex}slot.empty{display:none}.container{display:flex;flex-direction:column;background-color:var(--calcite-color-foreground-1)}.root{display:flex;flex-direction:row;align-items:stretch}calcite-action{width:var(--calcite-font-line-height-fixed-4xl);height:var(--calcite-font-line-height-fixed-4xl)}calcite-action-bar{--calcite-action-bar-items-space: var(--calcite-space-none);--calcite-spacing-sm: var(--calcite-space-none);background-color:var(--calcite-color-foreground-1)}.separator{border-inline-end:solid 1px var(--calcite-color-border-3);width:1px}`,l=class extends o{constructor(){super(),this.messages=m({blocking:!0}),this._isPlaying=!1,this.autoDestroyDisabled=!1,this.disabled=!1,this.hideNextButton=!1,this.hidePlayButton=!1,this.hidePreviousButton=!1,this.icon="list-rectangle",this.label="",this.layout="horizontal",this.loop=!1,this.playRate=1e3,this.arcgisAnimate=i(),this.arcgisNext=i(),this.arcgisPause=i(),this.arcgisPlay=i(),this.arcgisPrevious=i(),this.arcgisPropertyChange=d()("layout","loop","playRate","state"),this.arcgisSlottedElementChange=i(),this.listen("arcgisPropertyChange",()=>this.requestUpdate())}static{this.properties={_isPlaying:16,_slottedElement:16,autoDestroyDisabled:5,disabled:5,hideNextButton:5,hidePlayButton:5,hidePreviousButton:5,icon:1,label:1,layout:3,loop:5,playRate:9,state:32}}static{this.styles=u}get state(){return this._isPlaying?"playing":"ready"}async destroy(){await this.manager.destroy()}next(){this.arcgisNext.emit(),this._slottedElement?.canNext&&this._slottedElement.step("next")}pause(){this._isPlaying=!1,this.arcgisPause.emit()}play(){this._isPlaying||(this._isPlaying=!0,this.arcgisPlay.emit(),this._startPlayRate(!0))}previous(){this.arcgisPrevious.emit(),this._slottedElement?.canPrevious&&this._slottedElement.step("previous")}willUpdate(t){t.has("layout")&&this._isElementWithLayout(this._slottedElement)&&(this._slottedElement.layout=this.layout),t.has("disabled")&&this._isElementWithDisabled(this._slottedElement)&&(this._slottedElement.disabled=this.disabled)}disconnectedCallback(){super.disconnectedCallback(),this._isPlaying&&this.pause()}_handleSlotChange(t){let[e]=r(t);this._slottedElement=e,this.arcgisSlottedElementChange.emit({slottedElement:e}),!e&&this._isPlaying&&this.pause(),this._isElementWithLayout(e)&&(e.layout=this.layout),this._isElementWithDisabled(e)&&(e.disabled=this.disabled),this._isElementWithComponentOnReady(e)&&e.componentOnReady().then(()=>{this._slottedElement===e&&this.requestUpdate()})}_isElementWithComponentOnReady(t){return!!t&&"componentOnReady"in t}_isElementWithLayout(t){return!!t&&"layout"in t}_isElementWithDisabled(t){return!!t&&"disabled"in t}_startPlayRate(t){setTimeout(()=>{if(this._isPlaying){if(!this._slottedElement?.canNext&&this.loop)this._slottedElement?.reset();else if(this._slottedElement?.step("next"),this._slottedElement&&!this._slottedElement?.canNext&&!this.loop){this.pause();return}this.arcgisAnimate.emit({first:t}),this._startPlayRate(!1)}},this.playRate)}render(){let t=!!this._slottedElement&&!this._slottedElement.hidden,e=this.state==="playing";return s`<div class="container"><div class="root"><calcite-action-bar expand-disabled .layout=${this.layout}>${!this.hidePlayButton&&s`<calcite-action alignment=center .disabled=${this.disabled||this._slottedElement&&!this._slottedElement.canPlay} .icon=${e?"pause":"play"} .text=${e?this.messages.pause:this.messages.play} title=${(e?this.messages.pause:this.messages.play)??a} @click=${()=>{if(this._slottedElement&&!this._slottedElement.canNext&&!this.loop){this._slottedElement.reset(),this.play();return}e?this.pause():this.play()}}></calcite-action>`||""}${!this.hidePreviousButton&&s`<calcite-action alignment=center .disabled=${this.disabled||e||this._slottedElement&&!this._slottedElement.canPrevious} .icon=${this.layout==="horizontal"?"chevron-left":"chevron-up"} .text=${this.messages.previous} title=${this.messages.previous??a} @click=${this.previous}></calcite-action>`||""}${!this.hideNextButton&&s`<calcite-action alignment=center .disabled=${this.disabled||e||this._slottedElement&&!this._slottedElement.canNext} .icon=${this.layout==="horizontal"?"chevron-right":"chevron-down"} .text=${this.messages.next} title=${this.messages.next??a} @click=${this.next}></calcite-action>`||""}</calcite-action-bar>${t&&s`<div class="separator"></div>`||""}<slot @slotchange=${({currentTarget:p})=>{this._handleSlotChange(p)}} class=${h(t?"component-slot":"empty")}></slot></div></div>`}};c("arcgis-value-picker",l);export{l as ArcgisValuePicker};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import{a as m}from"./O2DY73RF.js";import{e as d}from"./RT25KW2T.js";import{b as r}from"./QJJFF4PI.js";import{L as o,M as h,O as a,R as c,h as n,j as s,t as i}from"./DLOQSM4T.js";var u=n`:host{display:inline-flex;max-inline-size:100%}:host([layout="horizontal"]) slot{min-inline-size:300px;min-block-size:48px}:host([layout="vertical"]) slot{min-inline-size:300px;min-block-size:144px}slot{display:flex}slot.empty{display:none}.container{display:flex;flex-direction:column;background-color:var(--calcite-color-foreground-1)}.root{display:flex;flex-direction:row;align-items:stretch}calcite-action{width:var(--calcite-font-line-height-fixed-4xl);height:var(--calcite-font-line-height-fixed-4xl)}calcite-action-bar{--calcite-action-bar-items-space: var(--calcite-space-none);--calcite-spacing-sm: var(--calcite-space-none);background-color:var(--calcite-color-foreground-1)}.separator{border-inline-end:solid 1px var(--calcite-color-border-3);width:1px}`,l=class extends o{constructor(){super(),this.messages=m({blocking:!0}),this._isPlaying=!1,this.autoDestroyDisabled=!1,this.disabled=!1,this.hideNextButton=!1,this.hidePlayButton=!1,this.hidePreviousButton=!1,this.icon="list-rectangle",this.label="",this.layout="horizontal",this.loop=!1,this.playRate=1e3,this.arcgisAnimate=i(),this.arcgisNext=i(),this.arcgisPause=i(),this.arcgisPlay=i(),this.arcgisPrevious=i(),this.arcgisPropertyChange=d()("layout","loop","playRate","state"),this.arcgisSlottedElementChange=i(),this.listen("arcgisPropertyChange",()=>this.requestUpdate())}static{this.properties={_isPlaying:16,_slottedElement:16,autoDestroyDisabled:5,disabled:5,hideNextButton:5,hidePlayButton:5,hidePreviousButton:5,icon:1,label:1,layout:3,loop:5,playRate:9,state:32}}static{this.styles=u}get state(){return this._isPlaying?"playing":"ready"}async destroy(){await this.manager.destroy()}next(){this.arcgisNext.emit(),this._slottedElement?.canNext&&this._slottedElement.step("next")}pause(){this._isPlaying=!1,this.arcgisPause.emit()}play(){this._isPlaying||(this._isPlaying=!0,this.arcgisPlay.emit(),this._startPlayRate(!0))}previous(){this.arcgisPrevious.emit(),this._slottedElement?.canPrevious&&this._slottedElement.step("previous")}willUpdate(t){t.has("layout")&&this._isElementWithLayout(this._slottedElement)&&(this._slottedElement.layout=this.layout),t.has("disabled")&&this._isElementWithDisabled(this._slottedElement)&&(this._slottedElement.disabled=this.disabled)}disconnectedCallback(){super.disconnectedCallback(),this._isPlaying&&this.pause()}_handleSlotChange(t){let[e]=r(t);this._slottedElement=e,this.arcgisSlottedElementChange.emit({slottedElement:e}),!e&&this._isPlaying&&this.pause(),this._isElementWithLayout(e)&&(e.layout=this.layout),this._isElementWithDisabled(e)&&(e.disabled=this.disabled),this._isElementWithComponentOnReady(e)&&e.componentOnReady().then(()=>{this._slottedElement===e&&this.requestUpdate()})}_isElementWithComponentOnReady(t){return!!t&&"componentOnReady"in t}_isElementWithLayout(t){return!!t&&"layout"in t}_isElementWithDisabled(t){return!!t&&"disabled"in t}_startPlayRate(t){setTimeout(()=>{if(this._isPlaying){if(!this._slottedElement?.canNext&&this.loop)this._slottedElement?.reset();else if(this._slottedElement?.step("next"),this._slottedElement&&!this._slottedElement?.canNext&&!this.loop){this.pause();return}this.arcgisAnimate.emit({first:t}),this._startPlayRate(!1)}},this.playRate)}render(){let t=!!this._slottedElement&&!this._slottedElement.hidden,e=this.state==="playing";return s`<div class="container"><div class="root"><calcite-action-bar expand-disabled .layout=${this.layout}>${!this.hidePlayButton&&s`<calcite-action alignment=center .disabled=${this.disabled||this._slottedElement&&!this._slottedElement.canPlay} .icon=${e?"pause":"play"} .text=${e?this.messages.pause:this.messages.play} title=${(e?this.messages.pause:this.messages.play)??a} @click=${()=>{if(this._slottedElement&&!this._slottedElement.canNext&&!this.loop){this._slottedElement.reset(),this.play();return}e?this.pause():this.play()}}></calcite-action>`||""}${!this.hidePreviousButton&&s`<calcite-action alignment=center .disabled=${this.disabled||e||this._slottedElement&&!this._slottedElement.canPrevious} .icon=${this.layout==="horizontal"?"chevron-left":"chevron-up"} .text=${this.messages.previous} title=${this.messages.previous??a} @click=${this.previous}></calcite-action>`||""}${!this.hideNextButton&&s`<calcite-action alignment=center .disabled=${this.disabled||e||this._slottedElement&&!this._slottedElement.canNext} .icon=${this.layout==="horizontal"?"chevron-right":"chevron-down"} .text=${this.messages.next} title=${this.messages.next??a} @click=${this.next}></calcite-action>`||""}</calcite-action-bar>${t&&s`<div class="separator"></div>`||""}<slot @slotchange=${({currentTarget:p})=>{this._handleSlotChange(p)}} class=${h(t?"component-slot":"empty")}></slot></div></div>`}};c("arcgis-value-picker",l);export{l as ArcgisValuePicker};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as ne}from"./PMV2N3L3.js";import{a as re}from"./DM57UJMG.js";import{a as te}from"./VJDK62KV.js";import{a as z,c as J,e as Q}from"./TWW63D32.js";import{a as ee}from"./JLF6J4PV.js";import{H as A,I as S,J as Z,K as $,L as F,M as P,P as X,h as W,j as x,q,r as Y,t as C,v as G,w as O}from"./WJZHHIWO.js";export default $arcgis.t(([{on:Je,watch:ae},{createObservable:fe,trackAccess:be},{property:nt,subclass:at},st,we,{property:E,subclass:De},{watch:N}])=>{var ie=(n,e)=>t=>_e(t,n),H=class extends G{constructor(e,t){super(e),this.Y=new Map,this.A=void 0,this.#r=fe();let r=this;r.#e=t,r.Z(),r.setProvisionalExports(xe(e,new WeakRef(r),e.M.length-1,r.instance,r.Y),!1),q(e,i=>{if(i){let a=ae(()=>e[i],l=>{if(l===r.instance)return;let s=r.instance;r.exports=l,r.instance=l,r.Y.forEach((o,c)=>e.requestUpdate(o,s[c])),r.#t&&s.destroy(),r.#t=!1},{sync:!0});r.onDestroy(a.remove)}},r.exports)}#t;#r;#e;get exports(){return be(this.#r),super.exports}set exports(e){super.exports=e,this.#r.notify()}Z(){let e=this;e.instance="prototype"in e.#e&&"declaredClass"in e.#e.prototype?new e.#e:e.#e(),e.#t=!0}hostConnected(){this.exports=this.instance}hostDestroy(){this.#t&&this.instance.destroy?.()}},_e=te(H),xe=(n,e,t,r,i)=>new Proxy(r,{get:(a,l)=>{let s=a[l];if(typeof l=="symbol"||i.has(l))return s;let o=n.M[t];return o.A=l,Y(n,c=>{if(o.A=void 0,c!==void 0){let d=c.key;i.set(l,d);let h=n.constructor.getPropertyOptions(d),u=l!==d&&d.toLowerCase().includes("disable");ye(e,h,l,d,u),h.i===void 0&&ke(h,t,l,u)}},s)}}),ye=(n,e,t,r,i,a)=>a=ae(()=>{let l=n.deref();return l===void 0||l.component.manager.destroyed?a=a.remove():l.exports[t]},(l,s)=>{if(!a)return;n.deref().component?.requestUpdate(r,i?!s:s),e.c=!1},{sync:!0}),ke=(n,e,t,r)=>{n.d.get=function(){let i=this.M[e]?.exports[t];return r?!i:i},n.d.set=function(i){let a=this.M[e];a.A!==t&&(a.exports[t]=r?!i:i)}};function*se(n,e){if(n!==void 0){let t=0;for(let r of n)yield e(r,t++)}}var f={increment:"ArrowUp",incrementHorizontal:"ArrowRight",decrement:"ArrowDown",decrementHorizontal:"ArrowLeft",pageIncrement:"PageUp",pageDecrement:"PageDown",jumpToStart:"Home",jumpToEnd:"End",confirmEdit:"Enter"};function oe({key:n,shiftKey:e},t,r){let i=Pe(n);if(i==null)return null;let a=Ce(n)||Ee(n)&&e?$e(t):1;return{direction:r?i*-1:i,count:a}}function Pe(n){return n===f.increment||n===f.incrementHorizontal||n===f.pageIncrement?1:n===f.decrement||n===f.decrementHorizontal||n===f.pageDecrement?-1:null}function le(n){return n===f.jumpToEnd||n===f.jumpToStart}function Ee(n){return n===f.increment||n===f.decrement||n===f.decrementHorizontal||n===f.incrementHorizontal}function Ce(n){return n===f.pageIncrement||n===f.pageDecrement}function $e(n){let e=Number.isFinite(n)?Math.floor(n):1;return Math.max(1,e)}var Me=W`:host{display:flex;width:100%;height:100%;font-family:Avenir Next,Helvetica Neue,helvetica,arial,sans-serif;font-size:var(--calcite-font-size--2);font-variant-numeric:tabular-nums;--arcgis-slider-dash-length: 5px;--arcgis-slider-handle-size: .875rem;--arcgis-slider-track-background-color: var(--calcite-color-border-2);--arcgis-internal-slider-show-range-labels: 0;--arcgis-internal-slider-show-value-labels: 0;--arcgis-internal-slider-value-labels-placement-start: 0;--arcgis-internal-slider-value-labels-placement-end: 0;--arcgis-internal-slider-range-labels-placement-center: 0;--arcgis-internal-slider-range-labels-placement-end: 0;--arcgis-internal-slider-handle-color: var(--calcite-color-text-3);--arcgis-internal-slider-handle-offset: calc(var(--arcgis-slider-handle-size) / 2);--arcgis-internal-slider-label-input-margin: calc(var(--arcgis-internal-slider-handle-offset) + 4px);--arcgis-internal-slider-label-input-height: var(--calcite-input-number-height, 1.5rem);--arcgis-internal-slider-track-range-background-color: var(--calcite-color-brand);--arcgis-internal-slider-track-size: 2px}:host([show-range-labels]){--arcgis-internal-slider-show-range-labels: 1}:host(:not([value-labels-display="hidden"])){--arcgis-internal-slider-show-value-labels: 1}:host([value-labels-placement="start"]){--arcgis-internal-slider-value-labels-placement-start: var(--arcgis-internal-slider-show-value-labels)}:host([value-labels-placement="end"]){--arcgis-internal-slider-value-labels-placement-end: var(--arcgis-internal-slider-show-value-labels)}:host([range-labels-placement="center"]){--arcgis-internal-slider-range-labels-placement-center: var(--arcgis-internal-slider-show-range-labels)}:host([range-labels-placement="end"]){--arcgis-internal-slider-range-labels-placement-end: var(--arcgis-internal-slider-show-range-labels)}:host([disabled]){cursor:default;opacity:var(--calcite-opacity-disabled);pointer-events:none}.content{direction:ltr;flex:1;touch-action:none;user-select:none;display:grid;word-wrap:normal;word-break:normal;padding-block:var(--arcgis-internal-slider-handle-offset)}.track-container{grid-area:track-container;position:relative;display:flex;justify-content:center;align-items:center}.track{touch-action:none;position:relative}.track-bounds{background-color:var(--calcite-color-border-2)}:host([layout="vertical"]){.track-effective-start{background:repeating-linear-gradient(to bottom,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-end{background:repeating-linear-gradient(to top,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}:host([layout="horizontal"]){.track-effective-start{background:repeating-linear-gradient(to right,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-end{background:repeating-linear-gradient(to left,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}.track-range-interactive{&.active{box-shadow:0 0 8px #00000029;outline:1px solid var(--calcite-color-border-2)}&.filled.active{outline-color:var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)))}}.track-range{background-color:var(--arcgis-internal-slider-track-range-background-color);pointer-events:none}:host([disabled]) .track-range{background-color:var(--calcite-color-text-3)}:host([disabled]),:host([disabled][layout="horizontal"]),:host([disabled][layout="vertical"]){.track-range-interactive.interactive:after{cursor:default;pointer-events:none}}:host([layout="horizontal"]){.track-range-interactive.interactive:after{all:initial;cursor:ew-resize;position:absolute;inline-size:100%;content:"";inset-block-start:calc(-1 * var(--arcgis-internal-slider-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-top:1px}}:host([layout="vertical"]){.track-range-interactive.interactive:after{all:initial;cursor:ns-resize;position:absolute;inline-size:100%;content:"";inset-block-start:calc(-1 * var(--arcgis-internal-slider-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-left:1px;writing-mode:vertical-lr}}.segment{transform-origin:0 0;inset-block-start:0px;block-size:.125rem;position:absolute;top:0;left:0}.thumb{-webkit-user-select:none;user-select:none;background-color:#4c4c4c;position:absolute}.thumb:focus,.thumb.active{.handle{background-color:var(--calcite-color-brand);box-shadow:0 0 8px #00000029;outline:2px solid var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}}.handle{cursor:pointer;box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-1);box-shadow:0 0 0 2px var(--arcgis-internal-slider-handle-color) inset;border-radius:var(--arcgis-slider-handle-size);width:var(--arcgis-slider-handle-size);height:var(--arcgis-slider-handle-size);transition:all var(--calcite-animation-timing, .125s) ease-in-out;position:absolute;top:calc(var(--arcgis-internal-slider-handle-offset) * -1);left:calc(var(--arcgis-internal-slider-handle-offset) * -1)}.handle:hover{box-shadow:0 0 0 3px var(--calcite-color-brand) inset}.label{position:absolute;will-change:transform}.min{grid-area:range-start}.max{grid-area:range-end}:host([layout="horizontal"][mirrored][range-labels-placement="center"]),:host([layout="vertical"]:not([mirrored])){.min{grid-area:range-end}.max{grid-area:range-start}}.content-start{grid-area:content-start;display:flex}.content-end{grid-area:content-end;display:flex}:dir(rtl){.popover{direction:rtl}}:host([layout="vertical"]){.content{grid-template:". range-start range-start range-start ." "content-start content-start track-container content-end content-end" ". range-end range-end range-end .";grid-template-rows:auto 1fr auto;grid-template-columns:1fr auto auto auto 1fr;row-gap:var(--arcgis-internal-slider-handle-offset)}.track-container{flex-direction:column}.track{flex:1;width:var(--arcgis-internal-slider-track-size)}.segment{writing-mode:vertical-lr}.label{top:calc(var(--arcgis-internal-slider-label-input-height) * -.5)}&:host([value-labels-placement="start"]){.label{right:var(--arcgis-internal-slider-label-input-margin)}}&:host([value-labels-placement="end"]){.label{left:var(--arcgis-internal-slider-label-input-margin)}}}:host([layout="horizontal"][range-labels-placement="center"]){.content{--arcgis-internal-slider-content-start-min-height: calc( ((1 - var(--arcgis-internal-slider-show-range-labels)) * var(--arcgis-internal-slider-handle-offset)) + (var(--arcgis-internal-slider-value-labels-placement-start) * var(--arcgis-internal-slider-label-input-height)) );--arcgis-internal-slider-content-end-min-height: calc( ((1 - var(--arcgis-internal-slider-show-range-labels)) * var(--arcgis-internal-slider-handle-offset)) + (var(--arcgis-internal-slider-value-labels-placement-end) * var(--arcgis-internal-slider-label-input-height)) );column-gap:calc(var(--arcgis-internal-slider-show-range-labels) * var(--arcgis-internal-slider-handle-offset) / 2);padding-inline:calc((1 - var(--arcgis-internal-slider-show-range-labels)) * var(--arcgis-internal-slider-handle-offset));grid-template:". content-start ." "range-start content-start range-end" "range-start track-container range-end" "range-start content-end range-end" ". content-end .";grid-template-columns:auto 1fr auto;grid-template-rows:minmax(var(--arcgis-internal-slider-content-start-min-height),auto) calc(var(--arcgis-internal-slider-show-range-labels) * calc(calc(var(--arcgis-internal-slider-label-input-height) / 2) - calc(var(--arcgis-internal-slider-track-size) / 2))) var(--arcgis-internal-slider-track-size) calc(var(--arcgis-internal-slider-show-range-labels) * calc(calc(var(--arcgis-internal-slider-label-input-height) / 2) - calc(var(--arcgis-internal-slider-track-size) / 2))) minmax(var(--arcgis-internal-slider-content-end-min-height),auto)}.track{flex:1;height:var(--arcgis-internal-slider-track-size)}&:host([value-labels-placement="start"]){.label{bottom:var(--arcgis-internal-slider-label-input-margin)}}&:host([value-labels-placement="end"]){.label{top:var(--arcgis-internal-slider-label-input-margin)}}}:host([layout="horizontal"][range-labels-placement="end"]){min-inline-size:min-content;.content{--arcgis-internal-slider-content-start-min-height: calc( var(--arcgis-internal-slider-handle-offset) + var(--arcgis-internal-slider-value-labels-placement-start) * var(--arcgis-internal-slider-label-input-height) );--arcgis-internal-slider-content-end-min-height: calc( var(--arcgis-internal-slider-value-labels-placement-end) * var(--arcgis-internal-slider-label-input-height) );padding-inline:var(--arcgis-internal-slider-handle-offset);grid-template:"content-start content-start content-start" "track-container track-container track-container" "content-end content-end content-end" "content-end content-end content-end" "content-end content-end content-end";grid-template-columns:auto 0 auto;grid-template-rows:minmax(var(--arcgis-internal-slider-content-start-min-height),auto) var(--arcgis-internal-slider-track-size) var(--arcgis-internal-slider-handle-offset) calc(var(--arcgis-internal-slider-range-labels-placement-end) * var(--arcgis-internal-slider-label-input-height)) minmax(var(--arcgis-internal-slider-content-end-min-height),auto)}.track{flex:1;height:var(--arcgis-internal-slider-track-size)}&:host([value-labels-placement="start"]){.label{bottom:var(--arcgis-internal-slider-label-input-margin)}}&:host([value-labels-placement="end"]){.label{top:calc(var(--arcgis-internal-slider-label-input-margin) + var(--arcgis-internal-slider-range-labels-placement-end) * (var(--arcgis-internal-slider-label-input-height)))}}.min,.max{--arcgis-internal-slider-range-translation: calc(var(--arcgis-internal-slider-handle-offset) + .5rem + 1px);grid-area:unset;grid-row:-3}&:host(:not([mirrored])){.min{grid-column:1;margin-inline-start:calc(var(--arcgis-internal-slider-range-translation) * -1)}.max{grid-column:3;margin-inline-end:calc(var(--arcgis-internal-slider-range-translation) * -1)}}&:host([mirrored]){.min{grid-column:3;margin-inline-end:calc(var(--arcgis-internal-slider-range-translation) * -1)}.max{grid-column:1;margin-inline-start:calc(var(--arcgis-internal-slider-range-translation) * -1)}}}`,Te=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,ue=n=>{throw TypeError(n)},D=(n,e,t,r)=>{for(var i=r>1?void 0:r?Ie(e,t):e,a=n.length-1,l;a>=0;a--)(l=n[a])&&(i=(r?l(e,t,i):l(i))||i);return r&&i&&Te(e,t,i),i},ge=(n,e,t)=>e.has(n)||ue("Cannot "+t),Se=(n,e,t)=>(ge(n,e,"read from private field"),e.get(n)),Fe=(n,e,t)=>e.has(n)?ue("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),ze=(n,e,t,r)=>(ge(n,e,"write to private field"),e.set(n,t),t),R;function Ve(){return{min:0,max:100,values:[]}}var k=class extends we{constructor(n={}){super({...Ve(),properties:n}),this._entries=new Map,this.precision=4,this.ready=!1,Fe(this,R)}startup(){let{precision:n}=this,{min:e,max:t,values:r}=this;t=y(t,n),e=y(e,n),r=r?.map(a=>T(y(a,n),e,t)).sort((a,l)=>a-l),this._set("min",e),this._set("max",t),this._set("values",r);let i=new Map(r?.map(a=>[O(),a]));this._entries=i,N(()=>this.min,a=>{let l=this.values;a!=null&&l?.length&&l.some(s=>s<a)&&(this._entries.forEach((s,o)=>{s<a&&this._entries.set(o,a)}),this._updatesValues())},{sync:!0}),N(()=>this.max,a=>{let l=this.values;a!=null&&l?.length&&l.some(s=>s>a)&&(this._entries.forEach((s,o)=>{s>a&&this._entries.set(o,a)}),this._updatesValues())},{sync:!0}),N(()=>this.precision,a=>{let{min:l,max:s,values:o}=this;this._set("min",y(l,a)),this._set("max",y(s,a)),o?.length&&(this._entries.forEach((c,d)=>{this._entries.set(d,y(c,a))}),this._updatesValues())},{sync:!0}),this._set("ready",!0)}get entries(){return this._entries}set max(n){if(!this.ready){this._set("max",n);return}let e=this._get("max"),t=y(n,this.precision);e!==t&&this._set("max",t)}set min(n){if(!this.ready){this._set("min",n);return}let e=this._get("min"),t=y(n,this.precision);e!==t&&this._set("min",t)}set values(n){if(Se(this,R)===n)return;if(ze(this,R,n),!this.ready){this._set("values",n);return}let e=this._get("values");if(n=n?.map(r=>T(y(r,this.precision),this.min,this.max)).sort((r,i)=>r-i),e?.length===n?.length&&e.every((r,i)=>r===n[i]))return;let t=new Map(n?.map(r=>[O(),r]));this._entries=t,this._set("values",n)}getValue(n){return this._entries.get(n)}setValue(n,e){if(this.values==null)return!1;let{min:t,max:r}=this,i=this._entries.get(n),a=T(y(e,this.precision),t,r);return i===a?!1:(this._entries.set(n,a),this._updatesValues(),!0)}setValues(n){if(this.values==null)return!1;let e=!1,{min:t,max:r}=this;for(let[i,a]of n){let l=this._entries.get(i),s=T(y(a,this.precision),t,r);l!==s&&(e=!0,this._entries.set(i,s))}return e?(this._updatesValues(),!0):!1}_updatesValues(){let n=Array.from(this._entries.values()).sort((e,t)=>e-t);this._set("values",n)}};R=new WeakMap;D([E()],k.prototype,"_entries",2);D([E({readOnly:!0})],k.prototype,"entries",1);D([E()],k.prototype,"max",1);D([E()],k.prototype,"min",1);D([E({cast:n=>T(n,0,20)})],k.prototype,"precision",2);D([E({readOnly:!0})],k.prototype,"ready",2);D([E()],k.prototype,"values",1);k=D([De("esri.widgets.Slider.SliderData")],k);function T(n,e,t){return Math.min(Math.max(n,e),t)}function y(n,e){return Number.parseFloat(n.toFixed(e))}var B=class{constructor(e){this.steps=e,this.minIndex=0,this.maxIndex=this.steps.length-1}indexToValue(e){return this.steps[w(e,this.minIndex,this.maxIndex)]}valueToIndex(e){let t=this.steps.indexOf(e);return t!==-1?t:this.steps.reduce((r,i,a,l)=>Math.abs(i-e)<Math.abs(l[r]-e)?a:r,0)}getClosestStepDistances(e,t){if(t<=0)return[];let r=[];for(let i=this.minIndex;i<=this.maxIndex;i++){let a=this.indexToValue(i),l=Math.abs(a-e),s=!1;for(let o=0;o<r.length;o++)if(l<r[o].dist){r.splice(o,0,{idx:i,value:a,dist:l}),s=!0;break}!s&&r.length<t&&r.push({idx:i,value:a,dist:l}),r.length>t&&(r.length=t)}return r}},U=class{constructor(e,t,r){this.min=e,this.max=t,this.stepSize=r,this.minIndex=0,this.maxIndex=Math.round((this.max-this.min)/this.stepSize)}indexToValue(e){return this.min+w(e,this.minIndex,this.maxIndex)*this.stepSize}valueToIndex(e){return e=w(e,this.min,this.max),Math.round((e-this.min)/this.stepSize)}getClosestStepDistances(e,t){if(t<=0)return[];let r=[],i=this.minIndex,a=this.maxIndex,l=(w(e,this.min,this.max)-this.min)/this.stepSize,s=Math.floor(l),o=s+1;for(;r.length<t&&(s>=i||o<=a);){if(s<i){let p=this.indexToValue(o);r.push({idx:o,value:p,dist:Math.abs(p-e)}),o++;continue}if(o>a){let p=this.indexToValue(s);r.push({idx:s,value:p,dist:Math.abs(p-e)}),s--;continue}let c=this.indexToValue(s),d=this.indexToValue(o),h=Math.abs(c-e),u=Math.abs(d-e);h<=u?(r.push({idx:s,value:c,dist:h}),s--):(r.push({idx:o,value:d,dist:u}),o++)}return r}};function Le(n){if(n.steps==null)return null;let e=n.steps;return Array.isArray(e)?e.length===0?null:new B(e):e<=0?null:new U(n.min,n.max,e)}function Re(n,e,t){if(n==null){let s=new Map;for(let[o,c]of e.entries())s.set(o,c+t);return s}let r=e.size,i=Array.from(e.entries()).map(([s,o])=>{let c=o+t,d=n.getClosestStepDistances(c,r);return{uuid:s,stepDistances:d}}),a=new Set,l=new Map;i.sort((s,o)=>s.stepDistances[0].dist-o.stepDistances[0].dist);for(let s of i){let o=s.stepDistances.find(c=>!a.has(c.idx));o?(a.add(o.idx),l.set(s.uuid,o.value)):l.set(s.uuid,e.get(s.uuid))}return l}function ce(n,e,t,r,i){let a=e.get(t)??0;if(!n)return a+r;let l=a+r,s=n.minIndex,o=n.maxIndex,c=new Set;if(!i)for(let[g,v]of e.entries())g!==t&&c.add(n.valueToIndex(v));let d=w(n.valueToIndex(l),s,o);if(!c.has(d))return n.indexToValue(d);let h=null,u=1/0,p=Math.min(Math.max(d-s,o-d),c.size+1);for(let g=1;g<=p;g++){let v=d-g;if(v>=s&&!c.has(v)){let m=n.indexToValue(v),b=Math.abs(m-l);h=v,u=b}let _=d+g;if(_<=o&&!c.has(_)){let m=n.indexToValue(_),b=Math.abs(m-l);(h==null||b<u)&&(h=_,u=b)}if(h!=null)return n.indexToValue(h)}return h==null?a:n.indexToValue(h)}function Oe(n,e,t,r=1){let i=me(r),a=e,l=!1;for(let s=0;s<i;s++){let o=He(n,a,t);if(l||=o.changed,a=o.entries,!o.changed)break}return{changed:l,entries:a}}function Ae(n,e,t,r,i=1){let a=me(i);if(a===1)return j(n,e,t,r);let l=new Map(e),s=l.get(t);for(let o=0;o<a;o++){let c=j(n,l,t,r);if(c===s)break;s=c,l.set(t,s)}return s}function me(n){let e=Number.isFinite(n)?Math.floor(n):1;return Math.max(1,e)}function He(n,e,t){let r=new Map,i=t>0?Ue:pe,a=Array.from(e).sort((o,c)=>i(o[1],c[1])),l=!1,s=!0;for(let[o,c]of a)if(r.set(o,c),s){let d=j(n,r,o,t);c===d&&(s=!1),l||=s,r.set(o,d)}return{changed:l,entries:r}}function j(n,e,t,r){let{allowValuesOverlap:i,stepsProvider:a,resolution:l,min:s,max:o}=n,c=e.get(t);if(r=r>0?1:-1,!a){let m=w(c+r*l,s,o);if(i)return m;let b=new Set;for(let[I,ve]of e)I!==t&&b.add(ve);for(;b.has(m)&&m<=o&&m>=s;)m=w(m+r*l,s,o);return b.has(m)||m>o||m<s?c:m}let d=a.valueToIndex(c);if(d===-1)return c;if(i){let m=w(d+r,a.minIndex,a.maxIndex);return a.indexToValue(m)}let h=new Set;for(let[m,b]of e)m!==t&&h.add(a.valueToIndex(b));let u=d,p=!1,g=a.minIndex,v=a.maxIndex,_=0;for(;_<Math.abs(v-g)&&(u+=r,!(u<g||u>v));){if(!h.has(u)){p=!0;break}_++}return p?a.indexToValue(u):c}function Ne(n,e,t,r){let{allowValuesOverlap:i,stepsProvider:a,resolution:l,min:s,max:o}=n,c=e.get(t);if(r=r>0?1:-1,!a){let p=new Set(Array.from(e).filter(([v])=>v!==t).map(([,v])=>v)),g=r>0?o:s;if(i)return g;for(;p.has(g);)if(g-=r*l,r>0&&g>o||r<0&&g<s){g=c;break}return g}if(i)return r>0?a.indexToValue(a.maxIndex):a.indexToValue(a.minIndex);let d=a.valueToIndex(c);if(d===-1)return c;let h=new Set(Array.from(e).filter(([p])=>p!==t).map(([,p])=>a.valueToIndex(p))),u=r>0?a.maxIndex:a.minIndex;for(;h.has(u);)if(u-=r,r>0&&u>o||r<0&&u<s){u=d;break}return a.indexToValue(u)}function Be(n,e,t){let{stepsProvider:r,min:i,max:a}=n,l=new Map,s=Array.from(e).sort((c,d)=>pe(c[1],d[1]));if(r){let c=0;if(t>0){let d=s[s.length-1],h=r.valueToIndex(d[1]);c=r.maxIndex-h}else{let d=s[0],h=r.valueToIndex(d[1]);c=r.minIndex-h}if(c===0)for(let[d,h]of s)l.set(d,h);for(let[d,h]of s){let u=r.indexToValue(r.valueToIndex(h)+c);l.set(d,u)}return l}let o=0;if(t>0){let c=s[s.length-1];o=a-c[1]}else{let c=s[0];o=i-c[1]}for(let[c,d]of s)l.set(c,d+o);return l}function pe(n,e){return n-e}function Ue(n,e){return e-n}function w(n,e,t){return Math.max(e,Math.min(t,n))}var je=ie(k),K=class extends Z{constructor(){super(...arguments),this._stepsProvider=null,this._popoverElement=A(),this._trackElement=A(),this.messages=re({}),this._onPointerMoveDragUpdate=e=>{this._updateDrag(this._mapEventToRange(e))},this._onPointerUpDragEnd=e=>{V(e)&&this._endDrag()},this._onPointerCancelDragEnd=()=>{this._endDrag()},this._formatLabel=(e,t,r)=>{let i=ne(this.messages._lang,t),a=this.labelFormatter;return a?a(r,e,s=>i.format(s))??i.format(r):i.format(r)},this._numberFormatOptions={},this._createFormatter=(e,t)=>this._formatLabel.bind(this,e,t),this._minFormatter=this._createFormatter("min",this._numberFormatOptions),this._maxFormatter=this._createFormatter("max",this._numberFormatOptions),this._valueFormatter=this._createFormatter("value",this._numberFormatOptions),this._resizeObserver=new ResizeObserver(()=>{this._layoutLabelInputs()}),this._labelInputsUpdateComplete=null,this._dragInfo=null,this._hasPopoverContent=!1,this._hasContentStart=!1,this._hasContentEnd=!1,this._activePart=null,this._sliderData=je(this),this.allowValuesOverlap=!1,this.autoDestroyDisabled=!1,this.disabled=!1,this.fillPlacement="start",this.layout="horizontal",this.max=this._sliderData.max,this.min=this._sliderData.min,this.mirrored=!1,this.popoverDisplay="auto",this.popoverLabel="",this.popoverPlacement="start",this.precision=this._sliderData.precision,this.rangeLabelsEditingEnabled=!1,this.rangeLabelsPlacement="center",this.segmentsDraggingDisabled=!1,this.showRangeLabels=!1,this.valueLabelsDisplay="hidden",this.valueLabelsPlacement="start",this.valueLabelsEditingEnabled=!1,this.keyboardLargeStep=10,this.values=this._sliderData.values,this.arcgisActiveValueChange=C({cancelable:!1}),this.arcgisChange=C({cancelable:!1}),this.arcgisInput=C({cancelable:!1}),this.arcgisRangeChange=C({cancelable:!1})}static{this.properties={_dragInfo:16,_hasPopoverContent:16,_hasContentStart:16,_hasContentEnd:16,_activePart:16,_sliderData:16,activeValue:32,allowValuesOverlap:5,autoDestroyDisabled:5,disabled:7,fullRangeMax:11,fullRangeMin:11,fillPlacement:1,labelFormatter:0,layout:3,max:11,min:11,mirrored:7,popoverDisplay:1,popoverLabel:1,popoverPlacement:3,precision:11,rangeLabelsEditingEnabled:5,rangeLabelsPlacement:3,segmentsDraggingDisabled:5,showRangeLabels:7,steps:[9,{converter:{fromAttribute(e){if(e.includes(","))return e.split(",").filter(r=>r.trim()!=="").map(parseFloat).filter(r=>Number.isFinite(r));let t=parseFloat(e);return Number.isFinite(t)?t:void 0}}}],valueLabelsDisplay:3,valueLabelsPlacement:3,valueLabelsEditingEnabled:5,keyboardLargeStep:9,values:[1,{converter:{fromAttribute(e){return e.includes(",")?e.split(",").filter(t=>t.trim()!=="").map(parseFloat).filter(t=>Number.isFinite(t)):[parseFloat(e)].filter(t=>Number.isFinite(t))}}}],messageOverrides:0}}static{this.styles=Me}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}get _fullMin(){return this.fullRangeMin??this.min}get _fullMax(){return this.fullRangeMax??this.max}get _fullRange(){return this._fullMax-this._fullMin}get isHorizontal(){return this.layout==="horizontal"}get _trackWidthOrHeight(){let e=this._trackElement.value?.getBoundingClientRect();return e?this.isHorizontal?e.width:e.height:0}get _disabledOrInvalid(){return this.disabled||this.values.length===0||this._invalid}get _invalid(){let e=this.fullRangeMin==null||this.fullRangeMax==null||this.fullRangeMin<this.fullRangeMax,t=this.fullRangeMin==null||this.fullRangeMin<=this.min,r=this.fullRangeMax==null||this.fullRangeMax>=this.max;return this.min>=this.max||!e||!t||!r}get resolution(){let e=(this._sliderData.max-this._sliderData.min)/this._trackWidthOrHeight;return Math.max(e,1/Math.pow(10,this.precision))}get activeValue(){if(this._activePart)return this._activePart==="range"?"all":this._sliderData.getValue(this._activePart)}async destroy(){await this.manager.destroy()}load(){this._sliderData.startup()}willUpdate(e){if((e.has("steps")||e.has("min")||e.has("max"))&&(this._stepsProvider=Le(this)),e.has("messages")||e.has("min")||e.has("max")||e.has("precision")||e.has("labelFormatter")){let t=this.max!=null&&this.min!=null&&this.max-this.min>10?2:this.precision;this._numberFormatOptions={maximumFractionDigits:t},this._minFormatter=this._createFormatter("min",this._numberFormatOptions),this._maxFormatter=this._createFormatter("max",this._numberFormatOptions),this._valueFormatter=this._createFormatter("value",this._numberFormatOptions)}if(e.has("values")){let t=this._resolveFillPlacement(this.values.length>1);t!==this.fillPlacement&&(this.fillPlacement=t)}}updated(e){this._layoutLabelInputs();let t=this._popoverElement.value;t&&(e.has("values")||e.has("min")||e.has("max"))&&t.reposition()}loaded(){this._resizeObserver.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this._removeDragListeners()}_makeResizeRef(){let e=null;return t=>{t?(e=t,this._resizeObserver.observe(t)):e&&(this._resizeObserver.unobserve(e),e=null)}}async _layoutLabelInputs(){if(this.layout!=="horizontal"||!this._trackElement.value||this.valueLabelsDisplay==="hidden")return;let e=this.renderRoot.querySelectorAll("arcgis-label-input"),t=this.componentOnReady().then(()=>Promise.all(Array.from(e,a=>a.updateComplete)));if(this._labelInputsUpdateComplete=t,await t,t!==this._labelInputsUpdateComplete)return;this._labelInputsUpdateComplete=null;let r=this._trackElement.value;if(!r)return;let i=r.getBoundingClientRect();for(let a of this._sliderData.entries.keys()){let l=this._activePart==="range"||this._activePart===a;if(this.valueLabelsDisplay==="always"||l){let s=Ye(this,a),o=de(this,a);if(!s||!o)continue;let c=s.getBoundingClientRect(),d=o.getBoundingClientRect(),h=o.getLabelBoundingClientRect(),u=c.width/2,p=Math.round(c.left+u),g=Math.round(h.width/2),v=d.width/2,_=i.left-u,m=i.right+u,b=p-g,I=p+g;b<_?v+=b-_:I>m&&(v+=I-m),o.style.transform=`translateX(${-Math.round(v)}px)`}}}_onTrackFocus(){this._setActivePart("range")}_onTrackBlur(){this._setActivePart(null)}_onTrackRangePointerDown(e){this._disabledOrInvalid||!V(e)||(e.preventDefault(),e.currentTarget.focus(),this._startDrag("range",this._mapEventToRange(e)))}async _onPointerDown(e){if(this._disabledOrInvalid||!V(e))return;let t=this.renderRoot.querySelector("arcgis-label-input[editing]");if(e.target===t)return;if(t){t.blur(),this._focusEntry(M(t));return}if(Ke(e.target)||this.values?.length>1)return;let r=this._mapEventToRange(e),[i,a]=this._sliderData.entries.entries().next().value,l=r*this._fullRange+this._fullMin-a,s=L(this._fullMin,this._fullMax,a)/100;this._startDrag(i,s);let o=ce(this._stepsProvider,this._sliderData.entries,i,l,this.allowValuesOverlap);this._setValue(i,o),this._focusEntry(i)}_onThumbPointerDown(e){let t=M(e.currentTarget);if(!V(e)||this._disabledOrInvalid||!t)return;let r=de(this,t);e.target===r&&r?.editing||(e.stopPropagation(),e.preventDefault(),this._focusEntry(t),this._startDrag(t,this._mapEventToRange(e)))}_endDrag(){if(this._disabledOrInvalid)return;this._removeDragListeners();let e=!1;if(this._dragInfo){let{entries:t}=this._dragInfo;for(let[r,i]of t)if(this._sliderData.getValue(r)!==i){e=!0;break}}this._dragInfo=null,e&&this.arcgisChange.emit()}_startDrag(e,t){if(this._disabledOrInvalid)return;let{min:r,max:i,values:a}=this,l=r,s=i;if(this._setActivePart(e),e==="range"){if(this.segmentsDraggingDisabled)return;l=r-a[0],s=i-a[a.length-1]}this._dragInfo={position:t,entries:new Map(this._sliderData.entries.entries()),minDiff:l,maxDiff:s},this._addDragListeners()}_updateDrag(e){if(!this._dragInfo||!this._activePart)return;let{_activePart:t,_dragInfo:{position:r,entries:i,minDiff:a,maxDiff:l}}=this;if(r===e)return;let s=(e-r)*this._fullRange;if(t==="range"){s=Math.min(l,Math.max(a,s));let o=Re(this._stepsProvider,i,s);this._setValues(o)}else{let o=ce(this._stepsProvider,i,t,s,this.allowValuesOverlap);this._setValue(t,o)}}_focusEntry(e){e&&qe(this,e)?.focus()}_addDragListeners(){document.addEventListener("pointerup",this._onPointerUpDragEnd),document.addEventListener("pointermove",this._onPointerMoveDragUpdate),document.addEventListener("pointercancel",this._onPointerCancelDragEnd)}_removeDragListeners(){document.removeEventListener("pointerup",this._onPointerUpDragEnd),document.removeEventListener("pointermove",this._onPointerMoveDragUpdate),document.removeEventListener("pointercancel",this._onPointerCancelDragEnd)}_setValues(e){this._sliderData.setValues(e)&&(this._dragInfo||this.arcgisChange.emit(),this.arcgisInput.emit())}_setValue(e,t){this._sliderData.setValue(e,t)&&(this._dragInfo||this.arcgisChange.emit(),this.arcgisInput.emit())}_onThumbFocus(e){let t=M(e.currentTarget);this._setActivePart(t)}_onThumbBlur(){this._setActivePart(null)}_onRangeInputChange(e){let t=e.currentTarget,r=t.value,i=t.dataset.type,a=!1;switch(e.stopPropagation(),i){case"min":{r<this.max?(this.min=r,a=!0):t.value=this.min;break}case"max":{r>this.min?(this.max=r,a=!0):t.value=this.max;break}}a&&this.arcgisRangeChange.emit()}_onValueInputChange(e){let t=e.currentTarget,r=M(t),i=t.value;r&&(e.stopPropagation(),this._setValue(r,i),t.value=this._sliderData.getValue(r))}_mapEventToRange(e){let t=this._trackElement.value?.getBoundingClientRect();if(!t)return 0;let r=this.isHorizontal?(e.clientX-t.left)/t.width:1-(e.clientY-t.top)/t.height;return this.mirrored?1-r:r}_getPositionStyleForElement(e){let t=L(this._fullMin,this._fullMax,e);return{[this.isHorizontal?this.mirrored?"right":"left":this.mirrored?"top":"bottom"]:`${t}%`}}_popoverSlotChange(e){this._hasPopoverContent=z(e)}_onContentStartSlotChange(e){this._hasContentStart=z(e)}_onContentEndSlotChange(e){this._hasContentEnd=z(e)}_onThumbKeyDown(e){let t=M(e.currentTarget);if(!t)return;let r=e.currentTarget.querySelector("arcgis-label-input");if(!r||r.editing)return;if(e.key===f.confirmEdit){r.edit();return}let i=oe(e,this.keyboardLargeStep,this.mirrored);if(i){e.preventDefault();let a=Ae(this._getStepsConfiguration(),this._sliderData.entries,t,i.direction,i.count);this._setValue(t,a);return}if(le(e.key)){e.preventDefault();let a=Ne(this._getStepsConfiguration(),this._sliderData.entries,t,this._getDirectionForHomeEndKey(e.key));this._setValue(t,a)}}_onTrackRangeKeyDown(e){if(this._disabledOrInvalid)return;let t=oe(e,this.keyboardLargeStep,this.mirrored);if(t){e.preventDefault();let{entries:r}=Oe(this._getStepsConfiguration(),this._sliderData.entries,t.direction,t.count);this._setValues(r);return}if(le(e.key)){e.preventDefault();let r=Be(this._getStepsConfiguration(),this._sliderData.entries,this._getDirectionForHomeEndKey(e.key));this._setValues(r)}}_getStepsConfiguration(){return{allowValuesOverlap:this.allowValuesOverlap,stepsProvider:this._stepsProvider,resolution:this.resolution,min:this.min,max:this.max}}_getDirectionForHomeEndKey(e){return this.isHorizontal&&this.mirrored||this.layout==="vertical"?e===f.jumpToEnd?-1:1:e===f.jumpToStart?-1:1}_setActivePart(e){this._activePart!==e&&(this._activePart=e,this.arcgisActiveValueChange.emit())}_resolveFillPlacement(e){let{fillPlacement:t}=this;return e?t==="between"||t==="not-between"||t==="none"?t:"between":t==="start"||t==="end"||t==="none"?t:"start"}render(){return x`<div class=${$({content:!0,disabled:this._disabledOrInvalid})} @pointerdown=${this._onPointerDown}>${this._renderContentStart()}${this._renderContentEnd()}${this._renderRangeLabel("min")}${this._renderTrackRange()}${this._renderRangeLabel("max")}${this._renderPopover()}</div>`}_renderPopover(){let{_activePart:e,layout:t,popoverDisplay:r,popoverLabel:i,popoverPlacement:a,valueLabelsDisplay:l,valueLabelsPlacement:s}=this,o="";this._hasPopoverContent&&(r==="always"&&this.values.length>1?o="track-range":e&&We(e)?o=e:this.values.length>1?o="track-range":o=this._sliderData.entries.keys().next().value??"");let c=this._hasPopoverContent&&(r==="always"||!!e),d=t==="horizontal"?a==="start"?"top":"bottom":a==="start"?"left":"right",h=14;return l!=="hidden"&&a===s&&(h+=24),x`<calcite-popover class="popover" focus-trap-disabled .label=${i} .open=${c} .offsetDistance=${h} .placement=${d} .referenceElement=${o} scale=s trigger-disabled ${S(this._popoverElement)}><slot name=popover @slotchange=${this._popoverSlotChange}></slot></calcite-popover>`}_renderContentStart(){return x`<div class="content-start" .hidden=${!this._hasContentStart}><slot name=content-start @slotchange=${this._onContentStartSlotChange}></slot></div>`}_renderContentEnd(){return x`<div class="content-end" .hidden=${!this._hasContentEnd}><slot name=content-end @slotchange=${this._onContentEndSlotChange}></slot></div>`}_renderTrackRange(){return x`<div class="track-container">${this._renderTrack()}${this._renderThumbs()}</div>`}_renderTrack(){return x`<div class="track" ${S(this._trackElement)}>${this._renderTrackBackground()}${this._renderFillSegment()}</div>`}_renderTrackBackground(){let{max:e,min:t,fillPlacement:r,values:i}=this,a=i.length>1,l=this._fullMin,s=this._fullMax,o=[];return this._invalid?x`<div class="segment track-bounds" style=${F({left:"0%",right:"0%",top:"0%",bottom:"0%"})}></div>`:(l<t&&(o.push(this._renderSegment(l,t,[this.mirrored?"track-effective-end":"track-effective-start",!a&&r==="start"?"track-fill":null])),l=t),s>e&&(o.push(this._renderSegment(e,s,[this.mirrored?"track-effective-start":"track-effective-end",!a&&r==="end"?"track-fill":null])),s=e),o.push(this._renderSegment(l,s,["track-bounds"])),o)}_renderFillSegment(){let{values:e,min:t,max:r}=this;if(!e?.length||this._invalid)return;let i=[...e].sort((h,u)=>h-u),a=i[0],l=i[i.length-1],s=this._resolveFillPlacement(i.length>1),o;switch(s){case"start":t<a&&(o=this._renderSegment(t,a,["track-range"]));break;case"end":r>l&&(o=this._renderSegment(l,r,["track-range"]));break;case"between":i.length>1&&(o=this._renderSegment(a,l,["track-range"]));break;case"not-between":i.length>1&&(o=[this._renderSegment(t,a,["track-range"]),this._renderSegment(l,r,["track-range"])]);break}if(!(i.length>1))return o;let c=this.segmentsDraggingDisabled,d=this._renderSegment(a,l,["track-range-interactive",s==="between"?"filled":null,c?null:"interactive",this._activePart==="range"?"active":null],{id:"track-range",onFocus:c?void 0:this._onTrackFocus,onBlur:c?void 0:this._onTrackBlur,onPointerDown:c?void 0:this._onTrackRangePointerDown,onKeyDown:c?void 0:this._onTrackRangeKeyDown});return[o,d]}_renderSegment(e,t,r,i){let{_fullMin:a,_fullMax:l,mirrored:s}=this,o=[L(a,l,he(e,a,l)),100-L(a,l,he(t,a,l))];s&&o.reverse();let c=this.isHorizontal?{left:`${o[0]}%`,right:`${o[1]}%`}:{top:`${o[1]}%`,bottom:`${o[0]}%`},d=J("segment",...r);return x`<div id=${i?.id??P} class=${$(d)} style=${F(c)} .tabIndex=${i?.onPointerDown?0:-1} @focus=${i?.onFocus} @blur=${i?.onBlur} @pointerdown=${i?.onPointerDown} @keydown=${i?.onKeyDown}></div>`}_renderThumbs(){let{_sliderData:e}=this,t=Array.from(e.entries).filter(([,r])=>r>=this._fullMin&&r<=this._fullMax);return se(t,([r,i])=>this._renderThumb(r,i))}_renderThumb(e,t){let{valueLabelsDisplay:r}=this,i=this._disabledOrInvalid,a=this._activePart===e||this._activePart==="range",l=this._activePart==="range"||this._activePart===e,s=r==="always"||r==="auto"&&l,o=this.isHorizontal,c=o?"horizontal":"vertical",d=`label-${e}`,h=o?"center":this.valueLabelsPlacement==="start"?"end":"start";return ee(e,x`<div id=${e??P} .ariaLabel=${this.messages.sliderValue} aria-labelledby=${(r?d:void 0)??P} .ariaOrientation=${c} .ariaValueMin=${this.min} .ariaValueMax=${this.max} .ariaValueNow=${t} .ariaValueText=${this._valueFormatter(t)} class=${$({thumb:!0,active:a})} data-entry=${e??P} @pointerdown=${this._onThumbPointerDown} @focus=${this._onThumbFocus} @blur=${this._onThumbBlur} @keydown=${this._onThumbKeyDown} role=slider style=${F({...this._getPositionStyleForElement(t),"z-index":this._activePart===e?1:0})} .tabIndex=${i?-1:0}><span class="handle"></span><arcgis-label-input .alignment=${h} class="label" .hidden=${!s} id=${d??P} .labelFormatter=${this._valueFormatter} @focus=${i?void 0:this._onThumbFocus} @blur=${i?void 0:this._onThumbBlur} @arcgisChange=${this._onValueInputChange} .readOnly=${!this.valueLabelsEditingEnabled} tabindex=-1 .value=${t} ${S(this._makeResizeRef())}></arcgis-label-input></div>`)}_renderRangeLabel(e){let t="center";return this.isHorizontal&&(t=e==="min"?"end":"start",this.rangeLabelsPlacement==="end"&&(t=t==="end"?"start":"end"),this.mirrored&&(t=t==="end"?"start":"end")),x`<arcgis-label-input .alignment=${t} class=${$(e)} data-type=${e??P} .hidden=${!this.showRangeLabels} .labelFormatter=${this[`_${e}Formatter`]} @arcgisChange=${this._onRangeInputChange} .readOnly=${!this.rangeLabelsEditingEnabled} .value=${this[e]}></arcgis-label-input>`}};function Ke(n){return"dataset"in n&&n.tagName==="ARCGIS-LABEL-INPUT"&&(n.dataset.type==="min"||n.dataset.type==="max")}function M(n){let e=Q(n,"[data-entry]");return e&&"dataset"in e?e.dataset.entry:null}function We(n){return typeof n!=null&&n!=="range"}function qe(n,e){return e?n.renderRoot.querySelector(`div[data-entry="${e}"]`):null}function Ye(n,e){return e?n.renderRoot.querySelector(`div[data-entry="${e}"] span.handle`):null}function de(n,e){return e?n.renderRoot.querySelector(`div[data-entry="${e}"] arcgis-label-input`):null}function V(n){return n.isPrimary&&n.button===0}var Ge=5;function L(n,e,t){let r=e-n,i=(t-n)/r*100;return Number.parseFloat(i.toFixed(Ge))}function he(n,e,t){return Math.max(e,Math.min(t,n))}X("arcgis-slider",K);return K},"core/reactiveUtils","applications/Components/reactiveUtils","core/accessorSupport/decorators","core/Accessor","core/Accessor","core/accessorSupport/decorators","core/reactiveUtils")
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
+ import{a as ne}from"./NMDESY3T.js";import{a as re}from"./O2DY73RF.js";import{a as te}from"./RT25KW2T.js";import{a as z,c as J,e as Q}from"./QJJFF4PI.js";import{a as ee}from"./2ZQLPGO6.js";import{J as A,K as S,L as Z,M as $,N as F,O as P,R as X,h as W,j as x,q,r as Y,t as C,v as G,w as O}from"./DLOQSM4T.js";export default $arcgis.t(([{on:Je,watch:ae},{createObservable:fe,trackAccess:be},{property:nt,subclass:at},st,we,{property:E,subclass:De},{watch:N}])=>{var ie=(n,e)=>t=>_e(t,n),H=class extends G{constructor(e,t){super(e),this.Y=new Map,this.A=void 0,this.#r=fe();let r=this;r.#e=t,r.Z(),r.setProvisionalExports(xe(e,new WeakRef(r),e.M.length-1,r.instance,r.Y),!1),q(e,i=>{if(i){let a=ae(()=>e[i],l=>{if(l===r.instance)return;let s=r.instance;r.exports=l,r.instance=l,r.Y.forEach((o,c)=>e.requestUpdate(o,s[c])),r.#t&&s.destroy(),r.#t=!1},{sync:!0});r.onDestroy(a.remove)}},r.exports)}#t;#r;#e;get exports(){return be(this.#r),super.exports}set exports(e){super.exports=e,this.#r.notify()}Z(){let e=this;e.instance="prototype"in e.#e&&"declaredClass"in e.#e.prototype?new e.#e:e.#e(),e.#t=!0}hostConnected(){this.exports=this.instance}hostDestroy(){this.#t&&this.instance.destroy?.()}},_e=te(H),xe=(n,e,t,r,i)=>new Proxy(r,{get:(a,l)=>{let s=a[l];if(typeof l=="symbol"||i.has(l))return s;let o=n.M[t];return o.A=l,Y(n,c=>{if(o.A=void 0,c!==void 0){let d=c.key;i.set(l,d);let h=n.constructor.getPropertyOptions(d),u=l!==d&&d.toLowerCase().includes("disable");ye(e,h,l,d,u),h.i===void 0&&ke(h,t,l,u)}},s)}}),ye=(n,e,t,r,i,a)=>a=ae(()=>{let l=n.deref();return l===void 0||l.component.manager.destroyed?a=a.remove():l.exports[t]},(l,s)=>{if(!a)return;n.deref().component?.requestUpdate(r,i?!s:s),e.c=!1},{sync:!0}),ke=(n,e,t,r)=>{n.d.get=function(){let i=this.M[e]?.exports[t];return r?!i:i},n.d.set=function(i){let a=this.M[e];a.A!==t&&(a.exports[t]=r?!i:i)}};function*se(n,e){if(n!==void 0){let t=0;for(let r of n)yield e(r,t++)}}var f={increment:"ArrowUp",incrementHorizontal:"ArrowRight",decrement:"ArrowDown",decrementHorizontal:"ArrowLeft",pageIncrement:"PageUp",pageDecrement:"PageDown",jumpToStart:"Home",jumpToEnd:"End",confirmEdit:"Enter"};function oe({key:n,shiftKey:e},t,r){let i=Pe(n);if(i==null)return null;let a=Ce(n)||Ee(n)&&e?$e(t):1;return{direction:r?i*-1:i,count:a}}function Pe(n){return n===f.increment||n===f.incrementHorizontal||n===f.pageIncrement?1:n===f.decrement||n===f.decrementHorizontal||n===f.pageDecrement?-1:null}function le(n){return n===f.jumpToEnd||n===f.jumpToStart}function Ee(n){return n===f.increment||n===f.decrement||n===f.decrementHorizontal||n===f.incrementHorizontal}function Ce(n){return n===f.pageIncrement||n===f.pageDecrement}function $e(n){let e=Number.isFinite(n)?Math.floor(n):1;return Math.max(1,e)}var Me=W`:host{display:flex;width:100%;height:100%;font-family:Avenir Next,Helvetica Neue,helvetica,arial,sans-serif;font-size:var(--calcite-font-size--2);font-variant-numeric:tabular-nums;--arcgis-slider-dash-length: 5px;--arcgis-slider-handle-size: .875rem;--arcgis-slider-track-background-color: var(--calcite-color-border-2);--arcgis-internal-slider-show-range-labels: 0;--arcgis-internal-slider-show-value-labels: 0;--arcgis-internal-slider-value-labels-placement-start: 0;--arcgis-internal-slider-value-labels-placement-end: 0;--arcgis-internal-slider-range-labels-placement-center: 0;--arcgis-internal-slider-range-labels-placement-end: 0;--arcgis-internal-slider-handle-color: var(--calcite-color-text-3);--arcgis-internal-slider-handle-offset: calc(var(--arcgis-slider-handle-size) / 2);--arcgis-internal-slider-label-input-margin: calc(var(--arcgis-internal-slider-handle-offset) + 4px);--arcgis-internal-slider-label-input-height: var(--calcite-input-number-height, 1.5rem);--arcgis-internal-slider-track-range-background-color: var(--calcite-color-brand);--arcgis-internal-slider-track-size: 2px}:host([show-range-labels]){--arcgis-internal-slider-show-range-labels: 1}:host(:not([value-labels-display="hidden"])){--arcgis-internal-slider-show-value-labels: 1}:host([value-labels-placement="start"]){--arcgis-internal-slider-value-labels-placement-start: var(--arcgis-internal-slider-show-value-labels)}:host([value-labels-placement="end"]){--arcgis-internal-slider-value-labels-placement-end: var(--arcgis-internal-slider-show-value-labels)}:host([range-labels-placement="center"]){--arcgis-internal-slider-range-labels-placement-center: var(--arcgis-internal-slider-show-range-labels)}:host([range-labels-placement="end"]){--arcgis-internal-slider-range-labels-placement-end: var(--arcgis-internal-slider-show-range-labels)}:host([disabled]){cursor:default;opacity:var(--calcite-opacity-disabled);pointer-events:none}.content{direction:ltr;flex:1;touch-action:none;user-select:none;display:grid;word-wrap:normal;word-break:normal;padding-block:var(--arcgis-internal-slider-handle-offset)}.track-container{grid-area:track-container;position:relative;display:flex;justify-content:center;align-items:center}.track{touch-action:none;position:relative}.track-bounds{background-color:var(--calcite-color-border-2)}:host([layout="vertical"]){.track-effective-start{background:repeating-linear-gradient(to bottom,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-end{background:repeating-linear-gradient(to top,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}:host([layout="horizontal"]){.track-effective-start{background:repeating-linear-gradient(to right,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-end{background:repeating-linear-gradient(to left,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}.track-range-interactive{&.active{box-shadow:0 0 8px #00000029;outline:1px solid var(--calcite-color-border-2)}&.filled.active{outline-color:var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)))}}.track-range{background-color:var(--arcgis-internal-slider-track-range-background-color);pointer-events:none}:host([disabled]) .track-range{background-color:var(--calcite-color-text-3)}:host([disabled]),:host([disabled][layout="horizontal"]),:host([disabled][layout="vertical"]){.track-range-interactive.interactive:after{cursor:default;pointer-events:none}}:host([layout="horizontal"]){.track-range-interactive.interactive:after{all:initial;cursor:ew-resize;position:absolute;inline-size:100%;content:"";inset-block-start:calc(-1 * var(--arcgis-internal-slider-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-top:1px}}:host([layout="vertical"]){.track-range-interactive.interactive:after{all:initial;cursor:ns-resize;position:absolute;inline-size:100%;content:"";inset-block-start:calc(-1 * var(--arcgis-internal-slider-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-left:1px;writing-mode:vertical-lr}}.segment{transform-origin:0 0;inset-block-start:0px;block-size:.125rem;position:absolute;top:0;left:0}.thumb{-webkit-user-select:none;user-select:none;background-color:#4c4c4c;position:absolute}.thumb:focus,.thumb.active{.handle{background-color:var(--calcite-color-brand);box-shadow:0 0 8px #00000029;outline:2px solid var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}}.handle{cursor:pointer;box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-1);box-shadow:0 0 0 2px var(--arcgis-internal-slider-handle-color) inset;border-radius:var(--arcgis-slider-handle-size);width:var(--arcgis-slider-handle-size);height:var(--arcgis-slider-handle-size);transition:all var(--calcite-animation-timing, .125s) ease-in-out;position:absolute;top:calc(var(--arcgis-internal-slider-handle-offset) * -1);left:calc(var(--arcgis-internal-slider-handle-offset) * -1)}.handle:hover{box-shadow:0 0 0 3px var(--calcite-color-brand) inset}.label{position:absolute;will-change:transform}.min{grid-area:range-start}.max{grid-area:range-end}:host([layout="horizontal"][mirrored][range-labels-placement="center"]),:host([layout="vertical"]:not([mirrored])){.min{grid-area:range-end}.max{grid-area:range-start}}.content-start{grid-area:content-start;display:flex}.content-end{grid-area:content-end;display:flex}:dir(rtl){.popover{direction:rtl}}:host([layout="vertical"]){.content{grid-template:". range-start range-start range-start ." "content-start content-start track-container content-end content-end" ". range-end range-end range-end .";grid-template-rows:auto 1fr auto;grid-template-columns:1fr auto auto auto 1fr;row-gap:var(--arcgis-internal-slider-handle-offset)}.track-container{flex-direction:column}.track{flex:1;width:var(--arcgis-internal-slider-track-size)}.segment{writing-mode:vertical-lr}.label{top:calc(var(--arcgis-internal-slider-label-input-height) * -.5)}&:host([value-labels-placement="start"]){.label{right:var(--arcgis-internal-slider-label-input-margin)}}&:host([value-labels-placement="end"]){.label{left:var(--arcgis-internal-slider-label-input-margin)}}}:host([layout="horizontal"][range-labels-placement="center"]){.content{--arcgis-internal-slider-content-start-min-height: calc( ((1 - var(--arcgis-internal-slider-show-range-labels)) * var(--arcgis-internal-slider-handle-offset)) + (var(--arcgis-internal-slider-value-labels-placement-start) * var(--arcgis-internal-slider-label-input-height)) );--arcgis-internal-slider-content-end-min-height: calc( ((1 - var(--arcgis-internal-slider-show-range-labels)) * var(--arcgis-internal-slider-handle-offset)) + (var(--arcgis-internal-slider-value-labels-placement-end) * var(--arcgis-internal-slider-label-input-height)) );column-gap:calc(var(--arcgis-internal-slider-show-range-labels) * var(--arcgis-internal-slider-handle-offset) / 2);padding-inline:calc((1 - var(--arcgis-internal-slider-show-range-labels)) * var(--arcgis-internal-slider-handle-offset));grid-template:". content-start ." "range-start content-start range-end" "range-start track-container range-end" "range-start content-end range-end" ". content-end .";grid-template-columns:auto 1fr auto;grid-template-rows:minmax(var(--arcgis-internal-slider-content-start-min-height),auto) calc(var(--arcgis-internal-slider-show-range-labels) * calc(calc(var(--arcgis-internal-slider-label-input-height) / 2) - calc(var(--arcgis-internal-slider-track-size) / 2))) var(--arcgis-internal-slider-track-size) calc(var(--arcgis-internal-slider-show-range-labels) * calc(calc(var(--arcgis-internal-slider-label-input-height) / 2) - calc(var(--arcgis-internal-slider-track-size) / 2))) minmax(var(--arcgis-internal-slider-content-end-min-height),auto)}.track{flex:1;height:var(--arcgis-internal-slider-track-size)}&:host([value-labels-placement="start"]){.label{bottom:var(--arcgis-internal-slider-label-input-margin)}}&:host([value-labels-placement="end"]){.label{top:var(--arcgis-internal-slider-label-input-margin)}}}:host([layout="horizontal"][range-labels-placement="end"]){min-inline-size:min-content;.content{--arcgis-internal-slider-content-start-min-height: calc( var(--arcgis-internal-slider-handle-offset) + var(--arcgis-internal-slider-value-labels-placement-start) * var(--arcgis-internal-slider-label-input-height) );--arcgis-internal-slider-content-end-min-height: calc( var(--arcgis-internal-slider-value-labels-placement-end) * var(--arcgis-internal-slider-label-input-height) );padding-inline:var(--arcgis-internal-slider-handle-offset);grid-template:"content-start content-start content-start" "track-container track-container track-container" "content-end content-end content-end" "content-end content-end content-end" "content-end content-end content-end";grid-template-columns:auto 0 auto;grid-template-rows:minmax(var(--arcgis-internal-slider-content-start-min-height),auto) var(--arcgis-internal-slider-track-size) var(--arcgis-internal-slider-handle-offset) calc(var(--arcgis-internal-slider-range-labels-placement-end) * var(--arcgis-internal-slider-label-input-height)) minmax(var(--arcgis-internal-slider-content-end-min-height),auto)}.track{flex:1;height:var(--arcgis-internal-slider-track-size)}&:host([value-labels-placement="start"]){.label{bottom:var(--arcgis-internal-slider-label-input-margin)}}&:host([value-labels-placement="end"]){.label{top:calc(var(--arcgis-internal-slider-label-input-margin) + var(--arcgis-internal-slider-range-labels-placement-end) * (var(--arcgis-internal-slider-label-input-height)))}}.min,.max{--arcgis-internal-slider-range-translation: calc(var(--arcgis-internal-slider-handle-offset) + .5rem + 1px);grid-area:unset;grid-row:-3}&:host(:not([mirrored])){.min{grid-column:1;margin-inline-start:calc(var(--arcgis-internal-slider-range-translation) * -1)}.max{grid-column:3;margin-inline-end:calc(var(--arcgis-internal-slider-range-translation) * -1)}}&:host([mirrored]){.min{grid-column:3;margin-inline-end:calc(var(--arcgis-internal-slider-range-translation) * -1)}.max{grid-column:1;margin-inline-start:calc(var(--arcgis-internal-slider-range-translation) * -1)}}}`,Te=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,ue=n=>{throw TypeError(n)},D=(n,e,t,r)=>{for(var i=r>1?void 0:r?Ie(e,t):e,a=n.length-1,l;a>=0;a--)(l=n[a])&&(i=(r?l(e,t,i):l(i))||i);return r&&i&&Te(e,t,i),i},ge=(n,e,t)=>e.has(n)||ue("Cannot "+t),Se=(n,e,t)=>(ge(n,e,"read from private field"),e.get(n)),Fe=(n,e,t)=>e.has(n)?ue("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),ze=(n,e,t,r)=>(ge(n,e,"write to private field"),e.set(n,t),t),R;function Ve(){return{min:0,max:100,values:[]}}var k=class extends we{constructor(n={}){super({...Ve(),properties:n}),this._entries=new Map,this.precision=4,this.ready=!1,Fe(this,R)}startup(){let{precision:n}=this,{min:e,max:t,values:r}=this;t=y(t,n),e=y(e,n),r=r?.map(a=>T(y(a,n),e,t)).sort((a,l)=>a-l),this._set("min",e),this._set("max",t),this._set("values",r);let i=new Map(r?.map(a=>[O(),a]));this._entries=i,N(()=>this.min,a=>{let l=this.values;a!=null&&l?.length&&l.some(s=>s<a)&&(this._entries.forEach((s,o)=>{s<a&&this._entries.set(o,a)}),this._updatesValues())},{sync:!0}),N(()=>this.max,a=>{let l=this.values;a!=null&&l?.length&&l.some(s=>s>a)&&(this._entries.forEach((s,o)=>{s>a&&this._entries.set(o,a)}),this._updatesValues())},{sync:!0}),N(()=>this.precision,a=>{let{min:l,max:s,values:o}=this;this._set("min",y(l,a)),this._set("max",y(s,a)),o?.length&&(this._entries.forEach((c,d)=>{this._entries.set(d,y(c,a))}),this._updatesValues())},{sync:!0}),this._set("ready",!0)}get entries(){return this._entries}set max(n){if(!this.ready){this._set("max",n);return}let e=this._get("max"),t=y(n,this.precision);e!==t&&this._set("max",t)}set min(n){if(!this.ready){this._set("min",n);return}let e=this._get("min"),t=y(n,this.precision);e!==t&&this._set("min",t)}set values(n){if(Se(this,R)===n)return;if(ze(this,R,n),!this.ready){this._set("values",n);return}let e=this._get("values");if(n=n?.map(r=>T(y(r,this.precision),this.min,this.max)).sort((r,i)=>r-i),e?.length===n?.length&&e.every((r,i)=>r===n[i]))return;let t=new Map(n?.map(r=>[O(),r]));this._entries=t,this._set("values",n)}getValue(n){return this._entries.get(n)}setValue(n,e){if(this.values==null)return!1;let{min:t,max:r}=this,i=this._entries.get(n),a=T(y(e,this.precision),t,r);return i===a?!1:(this._entries.set(n,a),this._updatesValues(),!0)}setValues(n){if(this.values==null)return!1;let e=!1,{min:t,max:r}=this;for(let[i,a]of n){let l=this._entries.get(i),s=T(y(a,this.precision),t,r);l!==s&&(e=!0,this._entries.set(i,s))}return e?(this._updatesValues(),!0):!1}_updatesValues(){let n=Array.from(this._entries.values()).sort((e,t)=>e-t);this._set("values",n)}};R=new WeakMap;D([E()],k.prototype,"_entries",2);D([E({readOnly:!0})],k.prototype,"entries",1);D([E()],k.prototype,"max",1);D([E()],k.prototype,"min",1);D([E({cast:n=>T(n,0,20)})],k.prototype,"precision",2);D([E({readOnly:!0})],k.prototype,"ready",2);D([E()],k.prototype,"values",1);k=D([De("esri.widgets.Slider.SliderData")],k);function T(n,e,t){return Math.min(Math.max(n,e),t)}function y(n,e){return Number.parseFloat(n.toFixed(e))}var B=class{constructor(e){this.steps=e,this.minIndex=0,this.maxIndex=this.steps.length-1}indexToValue(e){return this.steps[w(e,this.minIndex,this.maxIndex)]}valueToIndex(e){let t=this.steps.indexOf(e);return t!==-1?t:this.steps.reduce((r,i,a,l)=>Math.abs(i-e)<Math.abs(l[r]-e)?a:r,0)}getClosestStepDistances(e,t){if(t<=0)return[];let r=[];for(let i=this.minIndex;i<=this.maxIndex;i++){let a=this.indexToValue(i),l=Math.abs(a-e),s=!1;for(let o=0;o<r.length;o++)if(l<r[o].dist){r.splice(o,0,{idx:i,value:a,dist:l}),s=!0;break}!s&&r.length<t&&r.push({idx:i,value:a,dist:l}),r.length>t&&(r.length=t)}return r}},U=class{constructor(e,t,r){this.min=e,this.max=t,this.stepSize=r,this.minIndex=0,this.maxIndex=Math.round((this.max-this.min)/this.stepSize)}indexToValue(e){return this.min+w(e,this.minIndex,this.maxIndex)*this.stepSize}valueToIndex(e){return e=w(e,this.min,this.max),Math.round((e-this.min)/this.stepSize)}getClosestStepDistances(e,t){if(t<=0)return[];let r=[],i=this.minIndex,a=this.maxIndex,l=(w(e,this.min,this.max)-this.min)/this.stepSize,s=Math.floor(l),o=s+1;for(;r.length<t&&(s>=i||o<=a);){if(s<i){let p=this.indexToValue(o);r.push({idx:o,value:p,dist:Math.abs(p-e)}),o++;continue}if(o>a){let p=this.indexToValue(s);r.push({idx:s,value:p,dist:Math.abs(p-e)}),s--;continue}let c=this.indexToValue(s),d=this.indexToValue(o),h=Math.abs(c-e),u=Math.abs(d-e);h<=u?(r.push({idx:s,value:c,dist:h}),s--):(r.push({idx:o,value:d,dist:u}),o++)}return r}};function Le(n){if(n.steps==null)return null;let e=n.steps;return Array.isArray(e)?e.length===0?null:new B(e):e<=0?null:new U(n.min,n.max,e)}function Re(n,e,t){if(n==null){let s=new Map;for(let[o,c]of e.entries())s.set(o,c+t);return s}let r=e.size,i=Array.from(e.entries()).map(([s,o])=>{let c=o+t,d=n.getClosestStepDistances(c,r);return{uuid:s,stepDistances:d}}),a=new Set,l=new Map;i.sort((s,o)=>s.stepDistances[0].dist-o.stepDistances[0].dist);for(let s of i){let o=s.stepDistances.find(c=>!a.has(c.idx));o?(a.add(o.idx),l.set(s.uuid,o.value)):l.set(s.uuid,e.get(s.uuid))}return l}function ce(n,e,t,r,i){let a=e.get(t)??0;if(!n)return a+r;let l=a+r,s=n.minIndex,o=n.maxIndex,c=new Set;if(!i)for(let[g,v]of e.entries())g!==t&&c.add(n.valueToIndex(v));let d=w(n.valueToIndex(l),s,o);if(!c.has(d))return n.indexToValue(d);let h=null,u=1/0,p=Math.min(Math.max(d-s,o-d),c.size+1);for(let g=1;g<=p;g++){let v=d-g;if(v>=s&&!c.has(v)){let m=n.indexToValue(v),b=Math.abs(m-l);h=v,u=b}let _=d+g;if(_<=o&&!c.has(_)){let m=n.indexToValue(_),b=Math.abs(m-l);(h==null||b<u)&&(h=_,u=b)}if(h!=null)return n.indexToValue(h)}return h==null?a:n.indexToValue(h)}function Oe(n,e,t,r=1){let i=me(r),a=e,l=!1;for(let s=0;s<i;s++){let o=He(n,a,t);if(l||=o.changed,a=o.entries,!o.changed)break}return{changed:l,entries:a}}function Ae(n,e,t,r,i=1){let a=me(i);if(a===1)return j(n,e,t,r);let l=new Map(e),s=l.get(t);for(let o=0;o<a;o++){let c=j(n,l,t,r);if(c===s)break;s=c,l.set(t,s)}return s}function me(n){let e=Number.isFinite(n)?Math.floor(n):1;return Math.max(1,e)}function He(n,e,t){let r=new Map,i=t>0?Ue:pe,a=Array.from(e).sort((o,c)=>i(o[1],c[1])),l=!1,s=!0;for(let[o,c]of a)if(r.set(o,c),s){let d=j(n,r,o,t);c===d&&(s=!1),l||=s,r.set(o,d)}return{changed:l,entries:r}}function j(n,e,t,r){let{allowValuesOverlap:i,stepsProvider:a,resolution:l,min:s,max:o}=n,c=e.get(t);if(r=r>0?1:-1,!a){let m=w(c+r*l,s,o);if(i)return m;let b=new Set;for(let[I,ve]of e)I!==t&&b.add(ve);for(;b.has(m)&&m<=o&&m>=s;)m=w(m+r*l,s,o);return b.has(m)||m>o||m<s?c:m}let d=a.valueToIndex(c);if(d===-1)return c;if(i){let m=w(d+r,a.minIndex,a.maxIndex);return a.indexToValue(m)}let h=new Set;for(let[m,b]of e)m!==t&&h.add(a.valueToIndex(b));let u=d,p=!1,g=a.minIndex,v=a.maxIndex,_=0;for(;_<Math.abs(v-g)&&(u+=r,!(u<g||u>v));){if(!h.has(u)){p=!0;break}_++}return p?a.indexToValue(u):c}function Ne(n,e,t,r){let{allowValuesOverlap:i,stepsProvider:a,resolution:l,min:s,max:o}=n,c=e.get(t);if(r=r>0?1:-1,!a){let p=new Set(Array.from(e).filter(([v])=>v!==t).map(([,v])=>v)),g=r>0?o:s;if(i)return g;for(;p.has(g);)if(g-=r*l,r>0&&g>o||r<0&&g<s){g=c;break}return g}if(i)return r>0?a.indexToValue(a.maxIndex):a.indexToValue(a.minIndex);let d=a.valueToIndex(c);if(d===-1)return c;let h=new Set(Array.from(e).filter(([p])=>p!==t).map(([,p])=>a.valueToIndex(p))),u=r>0?a.maxIndex:a.minIndex;for(;h.has(u);)if(u-=r,r>0&&u>o||r<0&&u<s){u=d;break}return a.indexToValue(u)}function Be(n,e,t){let{stepsProvider:r,min:i,max:a}=n,l=new Map,s=Array.from(e).sort((c,d)=>pe(c[1],d[1]));if(r){let c=0;if(t>0){let d=s[s.length-1],h=r.valueToIndex(d[1]);c=r.maxIndex-h}else{let d=s[0],h=r.valueToIndex(d[1]);c=r.minIndex-h}if(c===0)for(let[d,h]of s)l.set(d,h);for(let[d,h]of s){let u=r.indexToValue(r.valueToIndex(h)+c);l.set(d,u)}return l}let o=0;if(t>0){let c=s[s.length-1];o=a-c[1]}else{let c=s[0];o=i-c[1]}for(let[c,d]of s)l.set(c,d+o);return l}function pe(n,e){return n-e}function Ue(n,e){return e-n}function w(n,e,t){return Math.max(e,Math.min(t,n))}var je=ie(k),K=class extends Z{constructor(){super(...arguments),this._stepsProvider=null,this._popoverElement=A(),this._trackElement=A(),this.messages=re({}),this._onPointerMoveDragUpdate=e=>{this._updateDrag(this._mapEventToRange(e))},this._onPointerUpDragEnd=e=>{V(e)&&this._endDrag()},this._onPointerCancelDragEnd=()=>{this._endDrag()},this._formatLabel=(e,t,r)=>{let i=ne(this.messages._lang,t),a=this.labelFormatter;return a?a(r,e,s=>i.format(s))??i.format(r):i.format(r)},this._numberFormatOptions={},this._createFormatter=(e,t)=>this._formatLabel.bind(this,e,t),this._minFormatter=this._createFormatter("min",this._numberFormatOptions),this._maxFormatter=this._createFormatter("max",this._numberFormatOptions),this._valueFormatter=this._createFormatter("value",this._numberFormatOptions),this._resizeObserver=new ResizeObserver(()=>{this._layoutLabelInputs()}),this._labelInputsUpdateComplete=null,this._dragInfo=null,this._hasPopoverContent=!1,this._hasContentStart=!1,this._hasContentEnd=!1,this._activePart=null,this._sliderData=je(this),this.allowValuesOverlap=!1,this.autoDestroyDisabled=!1,this.disabled=!1,this.fillPlacement="start",this.layout="horizontal",this.max=this._sliderData.max,this.min=this._sliderData.min,this.mirrored=!1,this.popoverDisplay="auto",this.popoverLabel="",this.popoverPlacement="start",this.precision=this._sliderData.precision,this.rangeLabelsEditingEnabled=!1,this.rangeLabelsPlacement="center",this.segmentsDraggingDisabled=!1,this.showRangeLabels=!1,this.valueLabelsDisplay="hidden",this.valueLabelsPlacement="start",this.valueLabelsEditingEnabled=!1,this.keyboardLargeStep=10,this.values=this._sliderData.values,this.arcgisActiveValueChange=C({cancelable:!1}),this.arcgisChange=C({cancelable:!1}),this.arcgisInput=C({cancelable:!1}),this.arcgisRangeChange=C({cancelable:!1})}static{this.properties={_dragInfo:16,_hasPopoverContent:16,_hasContentStart:16,_hasContentEnd:16,_activePart:16,_sliderData:16,activeValue:32,allowValuesOverlap:5,autoDestroyDisabled:5,disabled:7,fullRangeMax:11,fullRangeMin:11,fillPlacement:1,labelFormatter:0,layout:3,max:11,min:11,mirrored:7,popoverDisplay:1,popoverLabel:1,popoverPlacement:3,precision:11,rangeLabelsEditingEnabled:5,rangeLabelsPlacement:3,segmentsDraggingDisabled:5,showRangeLabels:7,steps:[9,{converter:{fromAttribute(e){if(e.includes(","))return e.split(",").filter(r=>r.trim()!=="").map(parseFloat).filter(r=>Number.isFinite(r));let t=parseFloat(e);return Number.isFinite(t)?t:void 0}}}],valueLabelsDisplay:3,valueLabelsPlacement:3,valueLabelsEditingEnabled:5,keyboardLargeStep:9,values:[1,{converter:{fromAttribute(e){return e.includes(",")?e.split(",").filter(t=>t.trim()!=="").map(parseFloat).filter(t=>Number.isFinite(t)):[parseFloat(e)].filter(t=>Number.isFinite(t))}}}],messageOverrides:0}}static{this.styles=Me}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}get _fullMin(){return this.fullRangeMin??this.min}get _fullMax(){return this.fullRangeMax??this.max}get _fullRange(){return this._fullMax-this._fullMin}get isHorizontal(){return this.layout==="horizontal"}get _trackWidthOrHeight(){let e=this._trackElement.value?.getBoundingClientRect();return e?this.isHorizontal?e.width:e.height:0}get _disabledOrInvalid(){return this.disabled||this.values.length===0||this._invalid}get _invalid(){let e=this.fullRangeMin==null||this.fullRangeMax==null||this.fullRangeMin<this.fullRangeMax,t=this.fullRangeMin==null||this.fullRangeMin<=this.min,r=this.fullRangeMax==null||this.fullRangeMax>=this.max;return this.min>=this.max||!e||!t||!r}get resolution(){let e=(this._sliderData.max-this._sliderData.min)/this._trackWidthOrHeight;return Math.max(e,1/Math.pow(10,this.precision))}get activeValue(){if(this._activePart)return this._activePart==="range"?"all":this._sliderData.getValue(this._activePart)}async destroy(){await this.manager.destroy()}load(){this._sliderData.startup()}willUpdate(e){if((e.has("steps")||e.has("min")||e.has("max"))&&(this._stepsProvider=Le(this)),e.has("messages")||e.has("min")||e.has("max")||e.has("precision")||e.has("labelFormatter")){let t=this.max!=null&&this.min!=null&&this.max-this.min>10?2:this.precision;this._numberFormatOptions={maximumFractionDigits:t},this._minFormatter=this._createFormatter("min",this._numberFormatOptions),this._maxFormatter=this._createFormatter("max",this._numberFormatOptions),this._valueFormatter=this._createFormatter("value",this._numberFormatOptions)}if(e.has("values")){let t=this._resolveFillPlacement(this.values.length>1);t!==this.fillPlacement&&(this.fillPlacement=t)}}updated(e){this._layoutLabelInputs();let t=this._popoverElement.value;t&&(e.has("values")||e.has("min")||e.has("max"))&&t.reposition()}loaded(){this._resizeObserver.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this._removeDragListeners()}_makeResizeRef(){let e=null;return t=>{t?(e=t,this._resizeObserver.observe(t)):e&&(this._resizeObserver.unobserve(e),e=null)}}async _layoutLabelInputs(){if(this.layout!=="horizontal"||!this._trackElement.value||this.valueLabelsDisplay==="hidden")return;let e=this.renderRoot.querySelectorAll("arcgis-label-input"),t=this.componentOnReady().then(()=>Promise.all(Array.from(e,a=>a.updateComplete)));if(this._labelInputsUpdateComplete=t,await t,t!==this._labelInputsUpdateComplete)return;this._labelInputsUpdateComplete=null;let r=this._trackElement.value;if(!r)return;let i=r.getBoundingClientRect();for(let a of this._sliderData.entries.keys()){let l=this._activePart==="range"||this._activePart===a;if(this.valueLabelsDisplay==="always"||l){let s=Ye(this,a),o=de(this,a);if(!s||!o)continue;let c=s.getBoundingClientRect(),d=o.getBoundingClientRect(),h=o.getLabelBoundingClientRect(),u=c.width/2,p=Math.round(c.left+u),g=Math.round(h.width/2),v=d.width/2,_=i.left-u,m=i.right+u,b=p-g,I=p+g;b<_?v+=b-_:I>m&&(v+=I-m),o.style.transform=`translateX(${-Math.round(v)}px)`}}}_onTrackFocus(){this._setActivePart("range")}_onTrackBlur(){this._setActivePart(null)}_onTrackRangePointerDown(e){this._disabledOrInvalid||!V(e)||(e.preventDefault(),e.currentTarget.focus(),this._startDrag("range",this._mapEventToRange(e)))}async _onPointerDown(e){if(this._disabledOrInvalid||!V(e))return;let t=this.renderRoot.querySelector("arcgis-label-input[editing]");if(e.target===t)return;if(t){t.blur(),this._focusEntry(M(t));return}if(Ke(e.target)||this.values?.length>1)return;let r=this._mapEventToRange(e),[i,a]=this._sliderData.entries.entries().next().value,l=r*this._fullRange+this._fullMin-a,s=L(this._fullMin,this._fullMax,a)/100;this._startDrag(i,s);let o=ce(this._stepsProvider,this._sliderData.entries,i,l,this.allowValuesOverlap);this._setValue(i,o),this._focusEntry(i)}_onThumbPointerDown(e){let t=M(e.currentTarget);if(!V(e)||this._disabledOrInvalid||!t)return;let r=de(this,t);e.target===r&&r?.editing||(e.stopPropagation(),e.preventDefault(),this._focusEntry(t),this._startDrag(t,this._mapEventToRange(e)))}_endDrag(){if(this._disabledOrInvalid)return;this._removeDragListeners();let e=!1;if(this._dragInfo){let{entries:t}=this._dragInfo;for(let[r,i]of t)if(this._sliderData.getValue(r)!==i){e=!0;break}}this._dragInfo=null,e&&this.arcgisChange.emit()}_startDrag(e,t){if(this._disabledOrInvalid)return;let{min:r,max:i,values:a}=this,l=r,s=i;if(this._setActivePart(e),e==="range"){if(this.segmentsDraggingDisabled)return;l=r-a[0],s=i-a[a.length-1]}this._dragInfo={position:t,entries:new Map(this._sliderData.entries.entries()),minDiff:l,maxDiff:s},this._addDragListeners()}_updateDrag(e){if(!this._dragInfo||!this._activePart)return;let{_activePart:t,_dragInfo:{position:r,entries:i,minDiff:a,maxDiff:l}}=this;if(r===e)return;let s=(e-r)*this._fullRange;if(t==="range"){s=Math.min(l,Math.max(a,s));let o=Re(this._stepsProvider,i,s);this._setValues(o)}else{let o=ce(this._stepsProvider,i,t,s,this.allowValuesOverlap);this._setValue(t,o)}}_focusEntry(e){e&&qe(this,e)?.focus()}_addDragListeners(){document.addEventListener("pointerup",this._onPointerUpDragEnd),document.addEventListener("pointermove",this._onPointerMoveDragUpdate),document.addEventListener("pointercancel",this._onPointerCancelDragEnd)}_removeDragListeners(){document.removeEventListener("pointerup",this._onPointerUpDragEnd),document.removeEventListener("pointermove",this._onPointerMoveDragUpdate),document.removeEventListener("pointercancel",this._onPointerCancelDragEnd)}_setValues(e){this._sliderData.setValues(e)&&(this._dragInfo||this.arcgisChange.emit(),this.arcgisInput.emit())}_setValue(e,t){this._sliderData.setValue(e,t)&&(this._dragInfo||this.arcgisChange.emit(),this.arcgisInput.emit())}_onThumbFocus(e){let t=M(e.currentTarget);this._setActivePart(t)}_onThumbBlur(){this._setActivePart(null)}_onRangeInputChange(e){let t=e.currentTarget,r=t.value,i=t.dataset.type,a=!1;switch(e.stopPropagation(),i){case"min":{r<this.max?(this.min=r,a=!0):t.value=this.min;break}case"max":{r>this.min?(this.max=r,a=!0):t.value=this.max;break}}a&&this.arcgisRangeChange.emit()}_onValueInputChange(e){let t=e.currentTarget,r=M(t),i=t.value;r&&(e.stopPropagation(),this._setValue(r,i),t.value=this._sliderData.getValue(r))}_mapEventToRange(e){let t=this._trackElement.value?.getBoundingClientRect();if(!t)return 0;let r=this.isHorizontal?(e.clientX-t.left)/t.width:1-(e.clientY-t.top)/t.height;return this.mirrored?1-r:r}_getPositionStyleForElement(e){let t=L(this._fullMin,this._fullMax,e);return{[this.isHorizontal?this.mirrored?"right":"left":this.mirrored?"top":"bottom"]:`${t}%`}}_popoverSlotChange(e){this._hasPopoverContent=z(e)}_onContentStartSlotChange(e){this._hasContentStart=z(e)}_onContentEndSlotChange(e){this._hasContentEnd=z(e)}_onThumbKeyDown(e){let t=M(e.currentTarget);if(!t)return;let r=e.currentTarget.querySelector("arcgis-label-input");if(!r||r.editing)return;if(e.key===f.confirmEdit){r.edit();return}let i=oe(e,this.keyboardLargeStep,this.mirrored);if(i){e.preventDefault();let a=Ae(this._getStepsConfiguration(),this._sliderData.entries,t,i.direction,i.count);this._setValue(t,a);return}if(le(e.key)){e.preventDefault();let a=Ne(this._getStepsConfiguration(),this._sliderData.entries,t,this._getDirectionForHomeEndKey(e.key));this._setValue(t,a)}}_onTrackRangeKeyDown(e){if(this._disabledOrInvalid)return;let t=oe(e,this.keyboardLargeStep,this.mirrored);if(t){e.preventDefault();let{entries:r}=Oe(this._getStepsConfiguration(),this._sliderData.entries,t.direction,t.count);this._setValues(r);return}if(le(e.key)){e.preventDefault();let r=Be(this._getStepsConfiguration(),this._sliderData.entries,this._getDirectionForHomeEndKey(e.key));this._setValues(r)}}_getStepsConfiguration(){return{allowValuesOverlap:this.allowValuesOverlap,stepsProvider:this._stepsProvider,resolution:this.resolution,min:this.min,max:this.max}}_getDirectionForHomeEndKey(e){return this.isHorizontal&&this.mirrored||this.layout==="vertical"?e===f.jumpToEnd?-1:1:e===f.jumpToStart?-1:1}_setActivePart(e){this._activePart!==e&&(this._activePart=e,this.arcgisActiveValueChange.emit())}_resolveFillPlacement(e){let{fillPlacement:t}=this;return e?t==="between"||t==="not-between"||t==="none"?t:"between":t==="start"||t==="end"||t==="none"?t:"start"}render(){return x`<div class=${$({content:!0,disabled:this._disabledOrInvalid})} @pointerdown=${this._onPointerDown}>${this._renderContentStart()}${this._renderContentEnd()}${this._renderRangeLabel("min")}${this._renderTrackRange()}${this._renderRangeLabel("max")}${this._renderPopover()}</div>`}_renderPopover(){let{_activePart:e,layout:t,popoverDisplay:r,popoverLabel:i,popoverPlacement:a,valueLabelsDisplay:l,valueLabelsPlacement:s}=this,o="";this._hasPopoverContent&&(r==="always"&&this.values.length>1?o="track-range":e&&We(e)?o=e:this.values.length>1?o="track-range":o=this._sliderData.entries.keys().next().value??"");let c=this._hasPopoverContent&&(r==="always"||!!e),d=t==="horizontal"?a==="start"?"top":"bottom":a==="start"?"left":"right",h=14;return l!=="hidden"&&a===s&&(h+=24),x`<calcite-popover class="popover" focus-trap-disabled .label=${i} .open=${c} .offsetDistance=${h} .placement=${d} .referenceElement=${o} scale=s trigger-disabled ${S(this._popoverElement)}><slot name=popover @slotchange=${this._popoverSlotChange}></slot></calcite-popover>`}_renderContentStart(){return x`<div class="content-start" .hidden=${!this._hasContentStart}><slot name=content-start @slotchange=${this._onContentStartSlotChange}></slot></div>`}_renderContentEnd(){return x`<div class="content-end" .hidden=${!this._hasContentEnd}><slot name=content-end @slotchange=${this._onContentEndSlotChange}></slot></div>`}_renderTrackRange(){return x`<div class="track-container">${this._renderTrack()}${this._renderThumbs()}</div>`}_renderTrack(){return x`<div class="track" ${S(this._trackElement)}>${this._renderTrackBackground()}${this._renderFillSegment()}</div>`}_renderTrackBackground(){let{max:e,min:t,fillPlacement:r,values:i}=this,a=i.length>1,l=this._fullMin,s=this._fullMax,o=[];return this._invalid?x`<div class="segment track-bounds" style=${F({left:"0%",right:"0%",top:"0%",bottom:"0%"})}></div>`:(l<t&&(o.push(this._renderSegment(l,t,[this.mirrored?"track-effective-end":"track-effective-start",!a&&r==="start"?"track-fill":null])),l=t),s>e&&(o.push(this._renderSegment(e,s,[this.mirrored?"track-effective-start":"track-effective-end",!a&&r==="end"?"track-fill":null])),s=e),o.push(this._renderSegment(l,s,["track-bounds"])),o)}_renderFillSegment(){let{values:e,min:t,max:r}=this;if(!e?.length||this._invalid)return;let i=[...e].sort((h,u)=>h-u),a=i[0],l=i[i.length-1],s=this._resolveFillPlacement(i.length>1),o;switch(s){case"start":t<a&&(o=this._renderSegment(t,a,["track-range"]));break;case"end":r>l&&(o=this._renderSegment(l,r,["track-range"]));break;case"between":i.length>1&&(o=this._renderSegment(a,l,["track-range"]));break;case"not-between":i.length>1&&(o=[this._renderSegment(t,a,["track-range"]),this._renderSegment(l,r,["track-range"])]);break}if(!(i.length>1))return o;let c=this.segmentsDraggingDisabled,d=this._renderSegment(a,l,["track-range-interactive",s==="between"?"filled":null,c?null:"interactive",this._activePart==="range"?"active":null],{id:"track-range",onFocus:c?void 0:this._onTrackFocus,onBlur:c?void 0:this._onTrackBlur,onPointerDown:c?void 0:this._onTrackRangePointerDown,onKeyDown:c?void 0:this._onTrackRangeKeyDown});return[o,d]}_renderSegment(e,t,r,i){let{_fullMin:a,_fullMax:l,mirrored:s}=this,o=[L(a,l,he(e,a,l)),100-L(a,l,he(t,a,l))];s&&o.reverse();let c=this.isHorizontal?{left:`${o[0]}%`,right:`${o[1]}%`}:{top:`${o[1]}%`,bottom:`${o[0]}%`},d=J("segment",...r);return x`<div id=${i?.id??P} class=${$(d)} style=${F(c)} .tabIndex=${i?.onPointerDown?0:-1} @focus=${i?.onFocus} @blur=${i?.onBlur} @pointerdown=${i?.onPointerDown} @keydown=${i?.onKeyDown}></div>`}_renderThumbs(){let{_sliderData:e}=this,t=Array.from(e.entries).filter(([,r])=>r>=this._fullMin&&r<=this._fullMax);return se(t,([r,i])=>this._renderThumb(r,i))}_renderThumb(e,t){let{valueLabelsDisplay:r}=this,i=this._disabledOrInvalid,a=this._activePart===e||this._activePart==="range",l=this._activePart==="range"||this._activePart===e,s=r==="always"||r==="auto"&&l,o=this.isHorizontal,c=o?"horizontal":"vertical",d=`label-${e}`,h=o?"center":this.valueLabelsPlacement==="start"?"end":"start";return ee(e,x`<div id=${e??P} .ariaLabel=${this.messages.sliderValue} aria-labelledby=${(r?d:void 0)??P} .ariaOrientation=${c} .ariaValueMin=${this.min} .ariaValueMax=${this.max} .ariaValueNow=${t} .ariaValueText=${this._valueFormatter(t)} class=${$({thumb:!0,active:a})} data-entry=${e??P} @pointerdown=${this._onThumbPointerDown} @focus=${this._onThumbFocus} @blur=${this._onThumbBlur} @keydown=${this._onThumbKeyDown} role=slider style=${F({...this._getPositionStyleForElement(t),"z-index":this._activePart===e?1:0})} .tabIndex=${i?-1:0}><span class="handle"></span><arcgis-label-input .alignment=${h} class="label" .hidden=${!s} id=${d??P} .labelFormatter=${this._valueFormatter} @focus=${i?void 0:this._onThumbFocus} @blur=${i?void 0:this._onThumbBlur} @arcgisChange=${this._onValueInputChange} .readOnly=${!this.valueLabelsEditingEnabled} tabindex=-1 .value=${t} ${S(this._makeResizeRef())}></arcgis-label-input></div>`)}_renderRangeLabel(e){let t="center";return this.isHorizontal&&(t=e==="min"?"end":"start",this.rangeLabelsPlacement==="end"&&(t=t==="end"?"start":"end"),this.mirrored&&(t=t==="end"?"start":"end")),x`<arcgis-label-input .alignment=${t} class=${$(e)} data-type=${e??P} .hidden=${!this.showRangeLabels} .labelFormatter=${this[`_${e}Formatter`]} @arcgisChange=${this._onRangeInputChange} .readOnly=${!this.rangeLabelsEditingEnabled} .value=${this[e]}></arcgis-label-input>`}};function Ke(n){return"dataset"in n&&n.tagName==="ARCGIS-LABEL-INPUT"&&(n.dataset.type==="min"||n.dataset.type==="max")}function M(n){let e=Q(n,"[data-entry]");return e&&"dataset"in e?e.dataset.entry:null}function We(n){return typeof n!=null&&n!=="range"}function qe(n,e){return e?n.renderRoot.querySelector(`div[data-entry="${e}"]`):null}function Ye(n,e){return e?n.renderRoot.querySelector(`div[data-entry="${e}"] span.handle`):null}function de(n,e){return e?n.renderRoot.querySelector(`div[data-entry="${e}"] arcgis-label-input`):null}function V(n){return n.isPrimary&&n.button===0}var Ge=5;function L(n,e,t){let r=e-n,i=(t-n)/r*100;return Number.parseFloat(i.toFixed(Ge))}function he(n,e,t){return Math.max(e,Math.min(t,n))}X("arcgis-slider",K);return K},"core/reactiveUtils","applications/Components/reactiveUtils","core/accessorSupport/decorators","core/Accessor","core/Accessor","core/accessorSupport/decorators","core/reactiveUtils")