@arcgis/map-components 5.2.0-next.73 → 5.2.0-next.75

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 (75) hide show
  1. package/dist/cdn/4FJSNV35.js +2 -0
  2. package/dist/cdn/{AOGPP4VX.js → 4NJUFFOS.js} +1 -1
  3. package/dist/cdn/{PT33LZD5.js → 6MYKPCPT.js} +1 -1
  4. package/dist/cdn/BKYSXBQN.js +2 -0
  5. package/dist/cdn/CF47R6K5.js +2 -0
  6. package/dist/cdn/{6NWYETZO.js → D2GIYGUD.js} +1 -1
  7. package/dist/cdn/{AKQ23RYL.js → ES3KG6A4.js} +1 -1
  8. package/dist/cdn/JDVOGTZB.js +4 -0
  9. package/dist/cdn/{U5NYFDPL.js → MOKFWLNF.js} +1 -1
  10. package/dist/cdn/S54DWYVB.js +2 -0
  11. package/dist/cdn/SE5IUOLA.js +2 -0
  12. package/dist/cdn/{KL6LVGWT.js → SJXCBJJW.js} +2 -2
  13. package/dist/cdn/{MFRZNKMQ.js → XBAD6Q2O.js} +1 -1
  14. package/dist/cdn/{UAFLVW2D.js → XMEBM4Y2.js} +1 -1
  15. package/dist/cdn/{ORO4OWNH.js → ZLRMCH6O.js} +1 -1
  16. package/dist/cdn/index.js +1 -1
  17. package/dist/components/arcgis-selection-toolbar/customElement.d.ts +17 -7
  18. package/dist/components/arcgis-selection-toolbar/customElement.js +24 -20
  19. package/dist/docs/api.json +1 -1
  20. package/dist/docs/docs.json +1 -1
  21. package/dist/docs/vscode.html-custom-data.json +1 -1
  22. package/dist/docs/web-types.json +1 -1
  23. package/dist/loader.js +1 -1
  24. package/dist/types/stencil.d.ts +2 -2
  25. package/package.json +5 -5
  26. package/dist/cdn/4WL7ZDOR.js +0 -2
  27. package/dist/cdn/FUISFUR3.js +0 -2
  28. package/dist/cdn/L254HFGW.js +0 -2
  29. package/dist/cdn/UDZLCLOW.js +0 -4
  30. package/dist/cdn/XVUJEFQE.js +0 -2
  31. package/dist/cdn/ZGGP2PLT.js +0 -2
  32. package/dist/components/arcgis-selection-toolbar/types.d.ts +0 -8
  33. /package/dist/cdn/{RMUOAQL7.js → 2IOX3M25.js} +0 -0
  34. /package/dist/cdn/{SWUDJD3D.js → 2KS6VTIZ.js} +0 -0
  35. /package/dist/cdn/{CBHZA2RM.js → 2N2A7TFY.js} +0 -0
  36. /package/dist/cdn/{QDOF7WAJ.js → 2X2WQONZ.js} +0 -0
  37. /package/dist/cdn/{LNV4R7FO.js → 3B6FCCWV.js} +0 -0
  38. /package/dist/cdn/{LYVEFTG5.js → 4KTFBEBW.js} +0 -0
  39. /package/dist/cdn/{D4LXZSJU.js → 4Y5WOZAR.js} +0 -0
  40. /package/dist/cdn/{EW7KQ7UM.js → 5VAWPVBO.js} +0 -0
  41. /package/dist/cdn/{ETAL67B5.js → 7T3MIY45.js} +0 -0
  42. /package/dist/cdn/{73PS6B6H.js → A6O4WH3F.js} +0 -0
  43. /package/dist/cdn/{VZMX6AAC.js → ANPCJFOB.js} +0 -0
  44. /package/dist/cdn/{6CHIESQS.js → AS6CVCAA.js} +0 -0
  45. /package/dist/cdn/{VISNMKBR.js → AURQ6AZT.js} +0 -0
  46. /package/dist/cdn/{J3LAIXMY.js → BEWGYHLQ.js} +0 -0
  47. /package/dist/cdn/{XNUG4O7M.js → BIQ72MMB.js} +0 -0
  48. /package/dist/cdn/{37VIO2V5.js → BY2C56P2.js} +0 -0
  49. /package/dist/cdn/{6TPIG3XC.js → CHK6UXUR.js} +0 -0
  50. /package/dist/cdn/{ZDEXTEYL.js → E5CYXNOV.js} +0 -0
  51. /package/dist/cdn/{5KSNV3AD.js → FSVQ3YCE.js} +0 -0
  52. /package/dist/cdn/{FQS7XRHV.js → HAOZ5VKZ.js} +0 -0
  53. /package/dist/cdn/{YNAWY2DP.js → HPSLJE7K.js} +0 -0
  54. /package/dist/cdn/{SMGBVJDQ.js → HRNKPJ3W.js} +0 -0
  55. /package/dist/cdn/{JOPE2HA7.js → IYIK5LIF.js} +0 -0
  56. /package/dist/cdn/{4XAKKTWP.js → JY7ELDXN.js} +0 -0
  57. /package/dist/cdn/{LIKCZBSN.js → KDMDKSN3.js} +0 -0
  58. /package/dist/cdn/{LKS3BW4E.js → KHMFIFKB.js} +0 -0
  59. /package/dist/cdn/{VM2FDVMM.js → LBJGPS6R.js} +0 -0
  60. /package/dist/cdn/{FRNAEEL2.js → MADQIAMY.js} +0 -0
  61. /package/dist/cdn/{ZWWCLNZL.js → MCMHWVNK.js} +0 -0
  62. /package/dist/cdn/{ZTCPBOG3.js → MXDXZZ7M.js} +0 -0
  63. /package/dist/cdn/{W3ELQQ2T.js → NOUSKMUF.js} +0 -0
  64. /package/dist/cdn/{URSO4VYE.js → OLOMB2NS.js} +0 -0
  65. /package/dist/cdn/{3RVEVJVG.js → QYQFMAF2.js} +0 -0
  66. /package/dist/cdn/{M5RPB52H.js → RFYBJAVR.js} +0 -0
  67. /package/dist/cdn/{TXH2FVPB.js → TBYOTOK3.js} +0 -0
  68. /package/dist/cdn/{4O5BM5AI.js → UW66366K.js} +0 -0
  69. /package/dist/cdn/{RCXLHOT5.js → WEG4POUJ.js} +0 -0
  70. /package/dist/cdn/{2ROKOM2Z.js → WN6WNWDL.js} +0 -0
  71. /package/dist/cdn/{QG5I2LDY.js → XP34TRZ2.js} +0 -0
  72. /package/dist/cdn/{6WOUFI3X.js → YK4IJ6A4.js} +0 -0
  73. /package/dist/cdn/{TXLEUQGC.js → YQ5H6M4V.js} +0 -0
  74. /package/dist/cdn/{55GK5OAA.js → ZMB2HOR5.js} +0 -0
  75. /package/dist/cdn/{ZUKUN26H.js → ZTBD4LIR.js} +0 -0
package/dist/loader.js CHANGED
@@ -121,7 +121,7 @@ const s = t(e, {
121
121
  "arcgis-scene": [() => import("./components/arcgis-scene/customElement.js"), "allLayerViews:,alphaCompositingEnabled,analyses:,animationsDisabled,aria:,attributionItems:,attributionMode,autoDestroyDisabled,basemap,basemapView:,camera:,cameraFov,cameraHeading,cameraPosition,cameraTilt,canZoomIn:,canZoomOut:,center,clippingArea:,constraints:,displayFilterDisabled,environment:,extent:,fatalError:,floors:,focusAreas:,gamepad:,graphics:,ground,groundView:,hideAttribution,highlights:,interacting:,itemId,layerViews:,loadErrorSources:,magnifier:,map:,navigating:,navigation:,padding:,performanceInfo:,popup:,popupComponentEnabled,popupDisabled,popupElement:,qualityProfile,ready:,resolution:,scale,selectionManager:,slotGroupRefs:,spatialReference:,stationary:,suspended,theme:,timeExtent:,updating:,view:,viewingMode,viewpoint:,visibleArea:,zoom;closePopup,destroy,fetchPopupFeatures,goTo,hitTest,openPopup,takeScreenshot,tryFatalErrorRecovery,viewOnReady,whenAnalysisView,whenLayerView,zoomIn,zoomOut;toMap,toScreen"],
122
122
  "arcgis-search": [() => import("./components/arcgis-search/customElement.js"), "activeMenu,activeSource:,activeSourceIndex,allPlaceholder,allSources:,autoDestroyDisabled,autoNavigateDisabled,autoSelectDisabled,defaultSources:,disabled,goToOverride:,hideSourcesMenu,icon,includeDefaultSourcesDisabled,label,locationDisabled,maxResults,maxSuggestions,messageOverrides:,messages:,minSuggestCharacters,popupDisabled,popupTemplate:,portal:,referenceElement,resultGraphic:,resultGraphicDisabled,results:,searchAllDisabled,searchTerm,selectedResult:,sources:,state:,suggestions:,suggestionsDisabled,topLayerDisabled,view:;destroy,search,setFocus,suggest;clear"],
123
123
  "arcgis-search-result-renderer": [() => import("./components/arcgis-search-result-renderer/customElement.js"), "autoDestroyDisabled,messages:,viewModel:;destroy"],
124
- "arcgis-selection-toolbar": [() => import("./components/arcgis-selection-toolbar/customElement.js"), "activeOperation:,autoDestroyDisabled,availableOperationTypes:,continuousSelectionEnabled,defaultLassoToolOptions:,defaultOperationType,defaultPointToolOptions:,defaultRectangleToolOptions:,disabled,effectiveSelectionManager:,effectiveSources:,hideChip,hideLassoTool,hideOperationTypeControls,hidePanTool,hidePointTool,hideProgress,hideRectangleTool,icon,label,layerViewPreferenceDisabled,layout,messages:,referenceElement,returnFeatureTitleFields,returnGeometryDisabled,selectionManager:,showTextLabels,sources:,state:,syncResultsDisabled,syncWhileDrawing,toolConfigs:,view:,visualScale;activate,activateTool,cancel,destroy,toggleTool"],
124
+ "arcgis-selection-toolbar": [() => import("./components/arcgis-selection-toolbar/customElement.js"), "activeOperation:,autoDestroyDisabled,availableOperationTypes:,continuousSelectionEnabled,defaultLassoToolOptions:,defaultOperationType,defaultPointToolOptions:,defaultRectangleToolOptions:,disabled,effectiveSelectionManager:,effectiveSources:,hideChip,hideLassoTool,hideOperationTypeControls,hidePanTool,hidePointTool,hideProgress,hideRectangleTool,icon,label,layerViewPreferenceDisabled,layout,messages:,referenceElement,returnFeatureTitleFields,returnGeometryDisabled,selectionManager:,showTextLabels,sources:,state:,syncResultsDisabled,syncWhileDrawing,toolConfigs:,view:,visualScale;activate,activateTool,cancel,destroy,syncSources,toggleTool"],
125
125
  "arcgis-shadow-cast": [() => import("./components/arcgis-shadow-cast/customElement.js"), "analysis:,autoDestroyDisabled,date,discreteColor:,discreteInterval,endTimeOfDay,headingLevel,hideDatePicker,hideDiscreteColorPicker,hideDiscreteInterval,hideDiscreteOptions,hideMinDurationColorPicker,hideMinDurationContextColorPicker,hideMinDurationContextInterval,hideMinDurationContextOptions,hideMinDurationContextToggle,hideMinDurationOptions,hideMinDurationSlider,hideShadowDurationTooltip,hideTimeRangeSlider,hideTimezone,hideTotalDurationColorPicker,hideTotalDurationModeSelect,hideTotalDurationOptions,hideVisualization,hideVisualizationOptions,icon,label,maxMinDuration,messages:,minDuration,minDurationColor:,minDurationContextColor:,minDurationContextEnabled,minDurationContextInterval,minMinDuration,mode,referenceElement,startTimeOfDay,state:,totalDurationColor:,totalDurationMode,utcOffset,view:,visualizeSunlight,visualScale;destroy,getDurationAtScreen"],
126
126
  "arcgis-shadow-cast-discrete-config": [() => import("./components/arcgis-shadow-cast-discrete-config/customElement.js"), "hideColorPicker,hideInterval,messages:,options:,scale"],
127
127
  "arcgis-shadow-cast-min-duration-config": [() => import("./components/arcgis-shadow-cast-min-duration-config/customElement.js"), "hideColorPicker,hideContextColorPicker,hideContextInterval,hideContextOptions,hideContextToggle,hideSlider,maxMinDuration,messages:,minMinDuration,options:,scale"],
@@ -1051,8 +1051,8 @@ export namespace JSX {
1051
1051
  export interface IntrinsicElements extends ExposedElements {}
1052
1052
  }
1053
1053
 
1054
- declare module "@stencil/core/internal/stencil-public-runtime" {
1055
- export namespace h.JSX {
1054
+ declare module "@stencil/core" {
1055
+ export namespace JSX {
1056
1056
  interface IntrinsicElements extends ExposedElements {}
1057
1057
  }
1058
1058
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/map-components",
3
- "version": "5.2.0-next.73",
3
+ "version": "5.2.0-next.75",
4
4
  "description": "ArcGIS Map Components",
5
5
  "keywords": [
6
6
  "2D",
@@ -42,13 +42,13 @@
42
42
  ],
43
43
  "license": "SEE LICENSE IN LICENSE.md",
44
44
  "dependencies": {
45
- "@amcharts/amcharts5": "~5.20.1",
45
+ "@amcharts/amcharts5": "~5.20.2",
46
46
  "lit": "^3.3.0",
47
47
  "lodash-es": "^4.18.1",
48
48
  "tslib": "^2.8.1",
49
- "@arcgis/common-components": "5.2.0-next.73",
50
- "@arcgis/lumina": "5.2.0-next.73",
51
- "@arcgis/toolkit": "5.2.0-next.73"
49
+ "@arcgis/common-components": "5.2.0-next.75",
50
+ "@arcgis/toolkit": "5.2.0-next.75",
51
+ "@arcgis/lumina": "5.2.0-next.75"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@arcgis/core": "^5.2.0-next",
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as d}from"./RDWM76R2.js";import j from"./G3GFYB3W.js";import{a as b}from"./NDMHZQ2Z.js";import i from"./K3VQUQ6I.js";import h from"./NFE73D6R.js";import{g as v}from"./5GFBHLDY.js";import"./42UVPIOD.js";import e from"./34IPKNHM.js";import"./QUZTFUWM.js";import"./QLIWDFZI.js";import{N as g,Q as r,T as f,a as u,b as a,w as c}from"./ZJZBS5ZY.js";import"./H6RQVSYM.js";export default $arcgis.t(([{substitute:y,formatNumber:O},$,,,,m])=>{var M=u`:host{width:100%;display:flex;>*{align-items:center;align-self:center;height:100%;width:100%}}.root{display:flex;flex-direction:column}calcite-action-bar[layout=horizontal]{width:100%;calcite-chip{margin-inline-start:auto}}calcite-action-bar[layout=vertical]{height:100%;calcite-chip{margin-block-start:auto}}calcite-action-bar slot{align-items:center}calcite-dropdown:has(calcite-action:not([text-enabled])){align-self:center}calcite-action:not([text-enabled]){align-self:center}calcite-chip{display:flex;align-self:center;line-height:initial}calcite-dropdown{calcite-icon{margin-inline-start:var(--calcite-space-2xs)}}calcite-chip[closed]{display:inline-flex}calcite-progress{--calcite-progress-background-color: transparent}`,T={replace:"overwrite-features",add:"cursor-plus",remove:"cursor-minus"},S=m($),p=class extends g{constructor(){super(...arguments),this.viewModel=S(this),this.messages=b(),this.autoDestroyDisabled=!1,this.disabled=!1,this.icon="selection-set",this.view=this.viewModel.view,this.activeOperation=this.viewModel.activeOperation,this.availableOperationTypes=["replace","add","remove"],this.continuousSelectionEnabled=this.viewModel.continuousSelectionEnabled,this.defaultLassoToolOptions=this.viewModel.defaultLassoToolOptions,this.defaultOperationType=this.viewModel.defaultOperationType,this.defaultPointToolOptions=this.viewModel.defaultPointToolOptions,this.defaultRectangleToolOptions=this.viewModel.defaultRectangleToolOptions,this.effectiveSelectionManager=this.viewModel.effectiveSelectionManager,this.effectiveSources=this.viewModel.effectiveSources,this.hideChip=!1,this.hideLassoTool=!1,this.hideOperationTypeControls=!1,this.hidePanTool=!1,this.hidePointTool=!1,this.hideProgress=!1,this.hideRectangleTool=!1,this.layout="horizontal",this.returnFeatureTitleFields=this.viewModel.returnFeatureTitleFields,this.selectionManager=this.viewModel.selectionManager,this.showTextLabels=!1,this.sources=this.viewModel.sources,this.toolConfigs=this.viewModel.toolConfigs,this.visualScale="m",this.arcgisBeforeActivate=c(),this.arcgisComplete=c(),this.arcgisPropertyChange=v()("activeOperation","state"),this.arcgisReady=c(),this.arcgisSelectionChange=c()}static{this.properties={_effectiveDisabled:16,_effectiveOperationType:16,_processing:16,autoDestroyDisabled:5,disabled:7,icon:1,label:1,referenceElement:1,view:0,activeOperation:32,availableOperationTypes:0,continuousSelectionEnabled:5,defaultLassoToolOptions:0,defaultOperationType:1,defaultPointToolOptions:0,defaultRectangleToolOptions:0,effectiveSelectionManager:32,effectiveSources:32,hideChip:5,hideLassoTool:5,hideOperationTypeControls:5,hidePanTool:5,hidePointTool:5,hideProgress:5,hideRectangleTool:5,layerViewPreferenceDisabled:5,layout:1,returnFeatureTitleFields:5,returnGeometryDisabled:5,selectionManager:0,showTextLabels:5,sources:0,state:32,syncResultsDisabled:5,syncWhileDrawing:5,toolConfigs:0,visualScale:1}}static{this.styles=M}get _effectiveDisabled(){return this.disabled||this.state==="disabled"}get _effectiveOperationType(){return this.activeOperation?.effectiveType||this.defaultOperationType}get _processing(){return!!this.activeOperation?.processingFinalSelection}get layerViewPreferenceDisabled(){return!this.viewModel.layerViewPreferenceEnabled}set layerViewPreferenceDisabled(e){this.viewModel.layerViewPreferenceEnabled=!e}get returnGeometryDisabled(){return!this.viewModel.returnGeometry}set returnGeometryDisabled(e){this.viewModel.returnGeometry=!e}get state(){return this.viewModel.state}get syncResultsDisabled(){return!this.viewModel.persistSelection}set syncResultsDisabled(e){this.viewModel.persistSelection=!e}get syncWhileDrawing(){return!this.viewModel.selectOnComplete}set syncWhileDrawing(e){this.viewModel.selectOnComplete=!e}async activate(e){if(this.cancel(),!this._effectiveDisabled)return this.viewModel.activate(e)}async activateTool(e){if(!this._effectiveDisabled)return this.viewModel.activateTool(e)}async cancel(){this.viewModel.cancel()}async destroy(){this.viewModel?.destroy()}async toggleTool(e){if(!this._effectiveDisabled)return this.viewModel.toggleTool(e)}_getLabelForSelectionOperationType(e){let{messages:t}=this;switch(e){case"replace":return t?.replaceSelection;case"add":return t?.addToSelection;case"remove":return t?.removeFromSelection}}_getTextForSelectionOperationType(e){let{messages:t}=this;switch(e){case"replace":return t?.replace;case"add":return t?.add;case"remove":return t?.remove}}_getTextForChip(){let{effectiveSelectionManager:e,layout:t,messages:i,visualScale:s}=this,o=e?.count??0,l=s==="l"?999:99;return i.countTruncated&&o>l&&t==="vertical"?y(i.countTruncated,{count:l}):O(o)}#i(){if(this.hideProgress)return;let e=this.messages.processing;return a`<calcite-progress aria-label=${e??r} .label=${e} .type=${this._processing?"indeterminate":"determinate"}></calcite-progress>`}#s(){return d("tools-group",a`<calcite-action-group>${this.#o()}${this.#a()}</calcite-action-group>`)}#o(){return[this.#l(),this.#r(),this.#h(),this.#n()]}#a(){return this.toolConfigs.map(({toolName:e,icon:t})=>this.#e(e,t))}#l(){if(this.hidePanTool)return;let e=this.messages.pan??"";return this.#t({active:!this.activeOperation,disabled:this._effectiveDisabled,icon:"pan",onclick:()=>this.cancel(),text:e,title:e})}#c(){if(this.hideChip)return;let{effectiveSelectionManager:e,messages:t}=this,i=e?.count??0,s=this._getTextForChip(),o=t.clearSelectionCount?y(t.clearSelectionCount,{count:i}):void 0;return a`<calcite-chip appearance=outline .closable=${i>0} .disabled=${this._effectiveDisabled||i===0} .label=${s} .scale=${this.visualScale} title=${o??r} @calciteChipClose=${()=>e?.clear()}>${s}</calcite-chip>`}#r(){if(this.hidePointTool)return;let{messages:e}=this;return this.#e("point","selection-set",e.point,e.selectByPoint)}#n(){if(this.hideLassoTool)return;let{messages:e}=this;return this.#e("lasso","lasso-select",e.lasso,e.selectByLasso)}#h(){if(this.hideRectangleTool)return;let{messages:e}=this;return this.#e("rectangle","cursor-marquee",e.rectangle,e.selectByRectangle)}#d(){let{availableOperationTypes:e}=this;if(this.hideOperationTypeControls||!e.length)return;let{_effectiveOperationType:t,showTextLabels:i,visualScale:s}=this,o=T[t],l=this._getTextForSelectionOperationType(t),n=this._getLabelForSelectionOperationType(t);return d("toggle-group",a`<calcite-action-group><calcite-dropdown overlay-positioning=fixed placement=bottom-start .scale=${s}><calcite-action class=tool-button .disabled=${this._effectiveDisabled} .icon=${o} .scale=${s} slot=trigger .text=${l??""} .textEnabled=${i} title=${n??r}><calcite-icon icon=chevron-down scale=s></calcite-icon></calcite-action><calcite-dropdown-group>${e.map(h=>this.#p(h))}</calcite-dropdown-group></calcite-dropdown></calcite-action-group>`)}#p(e){return a`<calcite-dropdown-item .iconStart=${T[e]} .selected=${this.defaultOperationType===e} @calciteDropdownItemSelect=${()=>this.defaultOperationType=e}>${this._getLabelForSelectionOperationType(e)}</calcite-dropdown-item>`}#e(e,t="selection",i=e,s=i){return this.#t({active:this.activeOperation?.toolName===e,disabled:this._effectiveDisabled,icon:t,onclick:()=>this.toggleTool(e),text:i,title:s})}#t(e){let{active:t,disabled:i,icon:s,onclick:o,text:l,title:n}=e,{showTextLabels:h,visualScale:w}=this;return a`<calcite-action .active=${t} class=tool-button .disabled=${i} .icon=${s} @click=${o} .text=${l} .textEnabled=${h} title=${n??r} .scale=${w}></calcite-action>`}render(){return a`<div><calcite-action-bar expand-disabled .layout=${this.layout} overflow-actions-disabled .scale=${this.visualScale}>${this.#d()}${this.#s()}${this.#c()}</calcite-action-bar>${this.#i()}</div>`}};f("arcgis-selection-toolbar",p);return p},"intl","widgets/support/SelectionToolbar/SelectionToolbarViewModel",e,h,i,j)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{A as Ea,B as Ja,C as Ka,D as La,E as Ma,F as Na,G as Oa,H as Pa,I as Qa,J as Ra,K as Sa,L as Ua,M as Va,N as Wa,O as Xa,P as Ya,Q as Za,R as _a,a as R,b as T,c as U,d as V,e as W,f as X,g as Y,h as _,i as $,j as aa,k as ba,l as ca,m as fa,n as ga,o as ha,p as ia,q as ja,r as oa,s as pa,t as qa,u as ra,v as va,w as xa,x as ya,y as za,z as Aa}from"./UDZLCLOW.js";import{a as Fa}from"./UAFLVW2D.js";import{a as da,b as ea,c as sa,d as Da}from"./AOGPP4VX.js";import{A as B,B as C,C as D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R as S,U as ka,V as la,W as ma,X as na,c as r,fa as ta,ga as ua,ha as wa,ia as Ba,ja as Ca,pa as Ga,q as s,qa as Ha,ra as Ia,sa as Ta,t,u,v,w,x,y,z as A}from"./AKQ23RYL.js";import{R as o,S as p,T as q,b as n}from"./PT33LZD5.js";import{a,b,c,d,e}from"./M5RPB52H.js";import{E as g,L as h,N as i,O as j,P as k,Q as l,R as m,W as z,X as Z,l as f}from"./SMGBVJDQ.js";import"./H6RQVSYM.js";export{j as ArrayDisposer,D as BlendMode,ca as Bullet,ea as Button,Va as CSVParser,$ as CanvasLayer,_ as CanvasRenderer,Ga as Chart,ga as Circle,Ma as CirclePattern,q as Color,Ta as ColorSet,na as Component,fa as ConfirmButton,P as Container,m as CounterDisposer,ma as DataItem,Wa as DataProcessor,X as DateFormatter,i as Disposer,Y as DurationFormatter,sa as EditableLabel,ia as Ellipse,y as Entity,pa as Gradient,Ka as GrainPattern,E as Graphics,J as GridLayout,ra as HeatLegend,H as HorizontalLayout,R as InterfaceColors,Ua as JSONParser,la as JsonData,S as Label,G as Layout,va as Legend,wa as Line,Na as LinePattern,qa as LinearGradient,za as Link,ka as ListData,r as ListTemplate,ba as Modal,k as MultiDisposer,l as MutableValueDisposer,V as NumberFormatter,Ya as NumericStepper,ya as OrthogonalLine,Ra as PathPattern,B as Pattern,Sa as PatternSet,a as Percent,Aa as Picture,C as PicturePattern,T as PointedRectangle,ha as Polygon,Za as ProgressPie,La as RadialGradient,Ca as RadialLabel,Ba as RadialText,F as Rectangle,Oa as RectanglePattern,aa as Root,da as RoundedRectangle,Da as Scrollbar,Ha as SerialChart,ua as Series,Fa as Slice,Ea as Slider,A as Sprite,Xa as SpriteResizer,ja as Star,Pa as StarPattern,z as Template,Q as Text,K as TextFormatter,Z as Theme,Ia as Tick,W as Timezone,U as Tooltip,xa as Triangle,Qa as TrianglePattern,I as VerticalLayout,Ja as ZoomTools,oa as ZoomableContainer,v as addLicense,g as array,p as color,w as disposeAllRootElements,t as ease,N as getCustomDataValue,x as getRootById,M as getTagValue,O as getTagValueFromObject,s as math,_a as net,h as object,c as p0,d as p100,e as p50,b as percent,L as populateString,n as ready,u as registry,ta as time,f as type,o as utils};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as vt}from"./UAFLVW2D.js";import{D as ft,E as q,P as at,R as _t,S as xt,c as M,ga as ct,i as D,j as v,ja as bt,k as A,l as mt,m as ht,n as dt,o as et,qa as ut,ra as lt,sa as kt}from"./AKQ23RYL.js";import{P as R,a as z,u as w}from"./PT33LZD5.js";import{a as gt,b as tt,d as T,e as _}from"./M5RPB52H.js";import{W,X as yt,g as Y,o as k}from"./SMGBVJDQ.js";import"./H6RQVSYM.js";var it=class extends yt{setupDefaultRules(){super.setupDefaultRules();let e=this._root.interfaceColors,t=this.rule.bind(this);t("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:kt.new(this._root,{}),width:T,height:T}),t("PieChart").setAll({radius:tt(80),startAngle:-90,endAngle:270}),t("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),t("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),t("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}",strokeWidth:1,strokeOpacity:1,role:"figure",lineJoin:"round"}),t("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),t("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),t("Slice",["pie"]).states.create("hover",{scale:1.04}),t("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),t("Tick",["pie"]).setAll({location:1}),t("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),t("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),t("FunnelSlice").setAll({interactive:!0,expandDistance:0}),t("FunnelSlice").states.create("hover",{expandDistance:.15}),t("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:_}),t("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:_,rotation:-90}),t("Label",["funnel","vertical"]).setAll({centerY:_,centerX:0}),t("Tick",["funnel"]).setAll({location:1}),t("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),t("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),t("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),t("PyramidSeries").setAll({valueIs:"area"}),t("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),t("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),t("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),t("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),t("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),t("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:_}),t("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:_,rotation:-90}),t("Label",["pyramid","vertical"]).setAll({centerY:_,centerX:0}),t("Tick",["pyramid"]).setAll({location:1}),t("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),t("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:_}),t("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:_,rotation:-90}),t("Label",["pictorial","vertical"]).setAll({centerY:_,centerX:0}),t("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),t("Tick",["pictorial"]).setAll({location:.5});{let i=t("Graphics",["pictorial","background"]);i.setAll({fillOpacity:.2}),xt(i,"fill",e,"alternativeBackground")}}};var L=class extends ut{_afterNew(){this._defaultThemes.push(it.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(e){super._processSeries(e),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}};L.className="PercentChart";L.classNames=ut.classNames.concat([L.className]);var C=class extends ct{constructor(){super(...arguments),this.slicesContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})),this.labelsContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})),this.ticksContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})),this._lLabels=[],this._rLabels=[],this._hLabels=[],this.slices=this.addDisposer(this._makeSlices()),this.labels=this.addDisposer(this._makeLabels()),this.ticks=this.addDisposer(this._makeTicks())}_applyThemes(e=!1){let t=this.get("colors");return t&&t.reset(),super._applyThemes(e)}makeSlice(e){let t=this.slicesContainer.children.push(this.slices.make());return t.on("fill",()=>{this.updateLegendMarker(e)}),t.on("fillPattern",()=>{this.updateLegendMarker(e)}),t.on("stroke",()=>{this.updateLegendMarker(e)}),t._setDataItem(e),e.set("slice",t),this.slices.push(t),t}makeLabel(e){let t=this.labelsContainer.children.push(this.labels.make());return t._setDataItem(e),e.set("label",t),this.labels.push(t),t}_shouldMakeBullet(e){return e.get("value")!=null}makeTick(e){let t=this.ticksContainer.children.push(this.ticks.make());return t._setDataItem(e),e.set("tick",t),this.ticks.push(t),t}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_onDataClear(){let e=this.get("colors");e&&e.reset();let t=this.get("patterns");t&&t.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let e=0,t=0,i=0,s=1/0,a=0;k(this._dataItems,l=>{let r=l.get("valueWorking",0);e+=r,t+=Math.abs(r)}),k(this._dataItems,l=>{let r=l.get("valueWorking",0);r>i&&(i=r),r<s&&(s=r),a++;let n=r/t;t==0&&(n=0),l.setRaw("valuePercentTotal",n*100)}),this.setPrivateRaw("valueLow",s),this.setPrivateRaw("valueHigh",i),this.setPrivateRaw("valueSum",e),this.setPrivateRaw("valueAverage",e/a),this.setPrivateRaw("valueAbsoluteSum",t)}}show(e){let t=Object.create(null,{show:{get:()=>super.show}});return z(this,void 0,void 0,function*(){let i=[];i.push(t.show.call(this,e)),i.push(this._sequencedShowHide(!0,e)),yield Promise.all(i)})}hide(e){let t=Object.create(null,{hide:{get:()=>super.hide}});return z(this,void 0,void 0,function*(){let i=[];i.push(t.hide.call(this,e)),i.push(this._sequencedShowHide(!1,e)),yield Promise.all(i)})}_updateChildren(){super._updateChildren(),this._valuesDirty&&k(this._dataItems,e=>{e.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&k(this._dataItems,e=>{this.updateLegendValue(e)}),this._arrange()}_arrange(){this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),k(this.dataItems,e=>{this._updateTick(e)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(e){if(super.processDataItem(e),e.get("fill")==null){let t=this.get("colors");t&&e.setRaw("fill",t.next())}if(e.get("fillPattern")==null){let t=this.get("patterns");t&&e.setRaw("fillPattern",t.next())}}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return z(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,e,t)];Y(t)||(t=this.get("stateAnimationDuration",0));let a=this.get("stateAnimationEasing"),l=e.get("value"),r=e.animate({key:"valueWorking",to:l,duration:t,easing:a});r&&s.push(r.waitForStop());let n=e.get("tick");n&&s.push(n.show(t));let c=e.get("label");c&&s.push(c.show(t));let o=e.get("slice");o&&s.push(o.show(t)),o.get("active")&&o.states.applyAnimate("active"),yield Promise.all(s)})}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return z(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,e,t)],a=this.states.create("hidden",{});Y(t)||(t=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let l=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),r=e.animate({key:"valueWorking",to:0,duration:t,easing:l});r&&s.push(r.waitForStop());let n=e.get("tick");n&&s.push(n.hide(t));let c=e.get("label");c&&s.push(c.hide(t));let o=e.get("slice");o.hideTooltip(),o&&s.push(o.hide(t)),yield Promise.all(s)})}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("label");t&&(this.labels.removeValue(t),t.dispose());let i=e.get("tick");i&&(this.ticks.removeValue(i),i.dispose());let s=e.get("slice");s&&(this.slices.removeValue(s),s.dispose())}hoverDataItem(e){let t=e.get("slice");t&&!t.isHidden()&&t.hover()}unhoverDataItem(e){let t=e.get("slice");t&&t.unhover()}updateLegendMarker(e){if(e){let t=e.get("slice");if(t){let i=e.get("legendDataItem");if(i){let s=i.get("markerRectangle");k(ft,a=>{t.get(a)!=null&&s.set(a,t.get(a))})}}}}_arrangeDown(e){if(e){let t=this._getNextDown();e.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.top;i.y+a<t&&(i.y=t-a),i.label.set("y",i.y),t=i.y+s.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(e){if(e){let t=this._getNextUp();e.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.bottom;i.y+a>t&&(i.y=t-a),i.label.set("y",i.y),t=i.y+s.top})}}_arrangeRight(e){if(e){let t=0;e.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.left;i.y+a<t&&(i.y=t-a),i.label.set("x",i.y),t=i.y+s.right})}}_arrangeLeft(e){if(e){let t=this.labelsContainer.maxWidth();e.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.right;i.y+a>t&&(i.y=t-a),i.label.set("x",i.y),t=i.y+s.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(e){}_dispose(){super._dispose();let e=this.chart;e&&e.series.removeValue(this)}};C.className="PercentSeries";C.classNames=ct.classNames.concat([C.className]);var G=class extends L{constructor(){super(...arguments),this._maxRadius=1}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:_,y:_})}_processSeries(e){super._processSeries(e),this.series.each(t=>{t._markDirtyKey("innerRadius")})}_prepareChildren(){super._prepareChildren();let e=this.chartContainer,t=e.innerWidth(),i=e.innerHeight(),s=this.get("startAngle",0),a=this.get("endAngle",0),l=this.get("innerRadius"),r=ht(0,0,s,a,1),n=t/(r.right-r.left),c=i/(r.bottom-r.top),o={left:0,right:0,top:0,bottom:0};if(l instanceof gt){let p=l.value,g=Math.min(n,c);p=Math.max(g*p,g-Math.min(i,t))/g,o=ht(0,0,s,a,p),this.setPrivateRaw("irModifyer",p/l.value)}r=dt([r,o]);let m=this._maxRadius;this._maxRadius=Math.min(n,c);let h=w(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-h*(r.bottom+r.top)/2,dx:-h*(r.right+r.left)/2}),(this.isDirty("startAngle")||this.isDirty("endAngle")||m!=this._maxRadius)&&this.series.each(p=>{p._markDirtyKey("startAngle")}),(this.isDirty("innerRadius")||this.isDirty("radius"))&&this.series.each(p=>{p._markDirtyKey("innerRadius")})}radius(e){let t=w(this.get("radius",0),this._maxRadius),i=w(this.get("innerRadius",0),t);if(e){let s=this.series.indexOf(e),a=this.series.length,l=e.get("radius");return l!=null?i+w(l,t-i):i+(t-i)/a*(s+1)}return t}innerRadius(e){let t=this.radius(),i=w(this.get("innerRadius",0),t);if(i<0&&(i=t+i),e){let s=this.series.indexOf(e),a=this.series.length,l=e.get("innerRadius");return l!=null?i+w(l,t-i):i+(t-i)/a*s}return i}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}};G.className="PieChart";G.classNames=L.classNames.concat([G.className]);var U=class extends C{_makeSlices(){return new M(W.new({}),()=>vt._new(this._root,{themeTags:R(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new M(W.new({}),()=>bt._new(this._root,{themeTags:R(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new M(W.new({}),()=>lt._new(this._root,{themeTags:R(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t.on("scale",()=>{this._updateTick(e)}),t.on("shiftRadius",()=>{this._updateTick(e)}),t.events.on("positionchanged",()=>{this._updateTick(e)});let i=this.makeLabel(e);i.events.on("positionchanged",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{i.markDirty()})}_getNextUp(){let e=this.chart;return e?e._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){let e=this.chart;return e?-e._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();let e=this.chart;if(e){if(this.isDirty("alignLabels")){let t=this.labels.template;if(this.get("alignLabels"))t.set("textType","aligned");else{let i=t.get("textType");(i==null||i=="aligned")&&t.set("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();let t=this.get("startAngle",e.get("startAngle",-90)),s=this.get("endAngle",e.get("endAngle",270))-t,a=t,l=e.radius(this);this.setPrivateRaw("radius",l);let r=e.innerRadius(this)*e.getPrivate("irModifyer",1);r<0&&(r=l+r),k(this._dataItems,n=>{this.updateLegendValue(n);let c=s*n.get("valuePercentTotal")/100,o=n.get("slice");if(o){o.set("radius",l),o.set("innerRadius",r),o.set("startAngle",a),o.set("arc",c);let p=n.get("fill");o._setDefault("fill",p),o._setDefault("stroke",p);let g=n.get("fillPattern");o._setDefault("fillPattern",g)}let m=mt(a+c/2),h=n.get("label");if(h&&(h.setPrivate("radius",l),h.setPrivate("innerRadius",r),h.set("labelAngle",m),h.get("textType")=="aligned")){let p=l+h.get("radius",0),g=l*D(m);m>90&&m<=270?(!h.isHidden()&&!h.isHiding()&&this._lLabels.push({label:h,y:g}),p*=-1,p-=this.labelsContainer.get("paddingLeft",0),h.set("centerX",T),h.setPrivateRaw("left",!0)):(!h.isHidden()&&!h.isHiding()&&this._rLabels.push({label:h,y:g}),p+=this.labelsContainer.get("paddingRight",0),h.set("centerX",0),h.setPrivateRaw("left",!1)),h.set("x",p),h.set("y",l*D(m))}a+=c,this._updateTick(n)})}}}_updateTick(e){let t=e.get("tick"),i=e.get("label"),s=e.get("slice"),a=t.get("location",1);if(t&&i&&s){let l=(s.get("shiftRadius",0)+s.get("radius",0))*s.get("scale",1)*a,r=i.get("labelAngle",0),n=A(r),c=D(r),o=this.labelsContainer,m=o.get("paddingLeft",0),h=o.get("paddingRight",0),p=0,g=0;p=i.x(),g=i.y();let u=[];if(p!=0||g!=0){if(i.get("textType")=="circular"){let y=i.radius()-i.get("paddingBottom",0),x=i.get("labelAngle",0);p=y*A(x),g=y*D(x)}let d=-h;i.getPrivate("left")&&(d=m),u=[{x:s.x()+l*n,y:s.y()+l*c},{x:p+d,y:g},{x:p,y:g}]}t.set("points",u)}}_positionBullet(e){let t=e.get("sprite");if(t){let s=t.dataItem.get("slice");if(s){let a=s.get("innerRadius",0),l=s.get("radius",0),r=s.get("startAngle",0),n=s.get("arc",0),c=e.get("locationX",.5),o=e.get("locationY",.5),m=r+n*c,h=a+(l-a)*o;t.setAll({x:A(m)*h,y:D(m)*h})}}}};U.className="PieSeries";U.classNames=C.classNames.concat([U.className]);var V=class extends q{constructor(){super(...arguments),this._projectionDirty=!1,this._tlx=0,this._tly=0,this._trx=0,this._try=0,this._blx=0,this._bly=0,this._brx=0,this._bry=0,this._cprx=0,this._cplx=0,this._cpry=0,this._cply=0}_afterNew(){super._afterNew(),this.set("draw",e=>{let t=this.width(),i=this.height(),s=Math.min(t,i)/2,a=w(this.get("cornerRadiusTL",0),s),l=w(this.get("cornerRadiusTR",0),s),r=w(this.get("cornerRadiusBR",0),s),n=w(this.get("cornerRadiusBL",0),s),c=this._trx,o=this._try,m=this._tlx,h=this._tly,p=this._brx,g=this._bry,u=this._blx,d=this._bly;o==h&&(o=o-.01),g==d&&(g=g-.01);let y=et({x:m,y:h},{x:c,y:o}),x=et({x:c,y:o},{x:p,y:g}),b=et({x:p,y:g},{x:u,y:d}),f=et({x:u,y:d},{x:m,y:h});this.get("orientation")=="horizontal"?(a=Math.min(a,Math.abs(h-o)/2),l=Math.min(l,Math.abs(h-o)/2),r=Math.min(r,Math.abs(d-g)/2),n=Math.min(n,Math.abs(d-g)/2)):(a=Math.min(a,Math.abs(m-c)/2),l=Math.min(l,Math.abs(m-c)/2),r=Math.min(r,Math.abs(u-p)/2),n=Math.min(n,Math.abs(u-p)/2));let $=m-a*v((y-f)/2)*A(f),N=h-a*v((y-f)/2)*D(f),F=m-a*v((f-y)/2)*A(y),Z=h-a*v((f-y)/2)*D(y),P=c-l*v((x-y)/2)*A(y),nt=o-l*v((x-y)/2)*D(y),B=c-l*v((y-x)/2)*A(x),O=o-l*v((y-x)/2)*D(x),J=p-r*v((b-x)/2)*A(x),j=g-r*v((b-x)/2)*D(x),Q=p-r*v((x-b)/2)*A(b),I=g-r*v((x-b)/2)*D(b),pt=u-n*v((f-b)/2)*A(b),st=d-n*v((f-b)/2)*D(b),ot=u-n*v((b-f)/2)*A(f),At=d-n*v((b-f)/2)*D(f);e.moveTo(F,Z),e.lineTo(P,nt),e.arcTo(c,o,B,O,l),e.quadraticCurveTo(this._cprx,this._cpry,J,j),e.arcTo(p,g,Q,I,r),e.lineTo(pt,st),e.arcTo(u,d,ot,At,n),e.quadraticCurveTo(this._cplx,this._cply,$,N),e.arcTo(m,h,F,Z,a)})}getPoint(e,t){let i=this.width(),s=this.height(),a=this.get("topWidth",0),l=this.get("bottomWidth",0);if(this.get("orientation")=="vertical"){let r=-a/2,n=a/2,c=l/2,o=-l/2,m=r+(o-r)*t,h=n+(c-n)*t;return{x:m+(h-m)*e,y:s*t}}else{let r=-a/2,n=a/2,c=l/2,o=-l/2,m=r+(o-r)*e,h=n+(c-n)*e;return{x:i*e,y:m+(h-m)*t}}}_changed(){if(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("expandDistance")||this.isDirty("orientation")||this.isDirty("width")||this.isDirty("height")||this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL")){let e=this.width(),t=this.height(),i=this.get("topWidth",0),s=this.get("bottomWidth",0);this._clear=!0;let a=this.get("expandDistance",0);this.get("orientation")=="vertical"?(this._tlx=-i/2,this._tly=0,this._trx=i/2,this._try=0,this._brx=s/2,this._bry=t,this._blx=-s/2,this._bly=t,this._cprx=this._trx+(this._brx-this._trx)/2+a*t,this._cpry=this._try+.5*t,this._cplx=this._tlx+(this._blx-this._tlx)/2-a*t,this._cply=this._tly+.5*t):(this._tly=i/2,this._tlx=0,this._try=-i/2,this._trx=0,this._bry=-s/2,this._brx=e,this._bly=s/2,this._blx=e,this._cpry=this._try+(this._bry-this._try)/2-a*e,this._cprx=this._trx+.5*e,this._cply=this._tly+(this._bly-this._tly)/2+a*e,this._cplx=this._tlx+.5*e)}super._changed()}};V.className="FunnelSlice";V.classNames=q.classNames.concat([V.className]);var H=class extends C{constructor(){super(...arguments),this._tag="funnel",this.links=this.addDisposer(this._makeLinks()),this._total=0,this._count=0,this._nextCoord=0,this._opposite=!1}_makeSlices(){return new M(W.new({}),()=>V._new(this._root,{themeTags:R(this.slices.template.get("themeTags",[]),[this._tag,"series","slice",this.get("orientation")])},[this.slices.template]))}_makeLabels(){return new M(W.new({}),()=>_t._new(this._root,{themeTags:R(this.labels.template.get("themeTags",[]),[this._tag,"series","label",this.get("orientation")])},[this.labels.template]))}_makeTicks(){return new M(W.new({}),()=>lt._new(this._root,{themeTags:R(this.ticks.template.get("themeTags",[]),[this._tag,"series","tick",this.get("orientation")])},[this.ticks.template]))}_makeLinks(){return new M(W.new({}),()=>V._new(this._root,{themeTags:R(this.links.template.get("themeTags",[]),[this._tag,"series","link",this.get("orientation")])},[this.links.template]))}makeLink(e){let t=this.slicesContainer.children.push(this.links.make());return t._setDataItem(e),e.set("link",t),this.links.push(t),t}_afterNew(){super._afterNew();let e=this.slicesContainer;e.setAll({isMeasured:!0,position:"relative",width:tt(100),height:tt(100)}),e.onPrivate("width",()=>{this.markDirtySize()}),e.onPrivate("height",()=>{this.markDirtySize()}),this.get("orientation")=="vertical"?this.set("layout",this._root.horizontalLayout):this.set("layout",this._root.verticalLayout)}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t._setDataItem(e),e.set("slice",t),this.makeLink(e);let i=this.makeLabel(e);i.on("x",()=>{this._updateTick(e)}),i.on("y",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{i.markDirty()}),t.events.on("boundschanged",()=>{let s=t.dataItem;s&&this._updateTick(s)})}_updateChildren(){this._opposite=!1,this.children.indexOf(this.labelsContainer)==0&&(this._opposite=!0);let e=0,t=0;if(k(this.dataItems,i=>{let s=i.get("value");Y(s)&&(t++,s>0?e+=Math.abs(i.get("valueWorking",s)/s):this.get("ignoreZeroValues",!1)||i.isHidden()?t--:e+=1)}),this._total=1/t*e,this._count=t,this.isDirty("alignLabels")&&this._fixLayout(),this._total>0&&(this._valuesDirty||this._sizeDirty||this.isDirty("bottomRatio")||this.isDirty("startLocation")||this.isDirty("endLocation"))){let i=this.slicesContainer,s;this.get("orientation")=="vertical"?s=i.innerHeight():s=i.innerWidth(),this._nextCoord=this.get("startLocation",0)*s,this.markDirtyBounds();let a=0;k(this._dataItems,l=>{this.updateLegendValue(l),l.set("index",a),a++;let r=l.get("slice"),n=l.get("tick"),c=l.get("label"),o=l.get("link"),m=l.get("fill"),h=l.get("fillPattern");r._setDefault("fill",m),r._setDefault("stroke",m),r._setDefault("fillPattern",h),o._setDefault("fill",m),o._setDefault("stroke",m);let p=l.get("value");Y(p)&&(p==0&&this.get("ignoreZeroValues")?(r.setPrivate("visible",!1),n.setPrivate("visible",!1),c.setPrivate("visible",!1)):(r.setPrivate("visible",!0),n.setPrivate("visible",!0),c.setPrivate("visible",!0),this.decorateSlice(l),this.isLast(l)?o.setPrivate("visible",!1):l.isHidden()||o.setPrivate("visible",!0)))})}super._updateChildren()}_fixLayout(){let e=this.get("orientation"),t=this.labelsContainer,i=this.labels.template;this.get("alignLabels")?(t.set("position","relative"),t.setAll({isMeasured:!0}),e=="vertical"?(this.set("layout",this._root.horizontalLayout),i.setAll({centerX:T,x:T})):(this.set("layout",this._root.verticalLayout),i.setAll({centerX:0,x:0}))):(t.setAll({isMeasured:!1,position:"absolute"}),e=="vertical"?(t.setAll({x:_}),i.setAll({centerX:_,x:0})):(t.setAll({y:_}),i.setAll({centerX:_,y:0}))),this.markDirtySize()}getNextValue(e){let t=e.get("index"),i=e.get("valueWorking",0);if(t<this.dataItems.length-1){let s=this.dataItems[t+1];if(i=s.get("valueWorking",0),s.isHidden()||s.get("value")==0&&this.get("ignoreZeroValues"))return this.getNextValue(s)}return i}isLast(e){let t=e.get("index");if(t==this.dataItems.length-1)return!0;for(let i=t+1;i<this.dataItems.length;i++)if(!this.dataItems[i].isHidden())return!1;return!0}decorateSlice(e){let t=this.get("orientation"),i=e.get("slice"),s=e.get("label"),a=e.get("link"),l=this.slicesContainer,r=l.innerWidth(),n=l.innerHeight(),c=r;t=="horizontal"&&(c=n);let o=this.getNextValue(e),m=e.get("value",0),h=Math.abs(e.get("valueWorking",m)),p=this.get("bottomRatio",0),g=this.getPrivate("valueHigh",0),u=1;m!=0?u=h/Math.abs(m):e.isHidden()&&(u=1e-6),this._nextCoord==1/0&&(this._nextCoord=0);let d=h/g*c,y=(h-(h-o)*p)/g*c;i.setAll({topWidth:d,bottomWidth:y,orientation:t}),a.setAll({topWidth:y,bottomWidth:(h-(h-o))/g*c,orientation:t});let x=this.get("startLocation",0),b=this.get("endLocation",1);if(t=="vertical"){let f=a.height()*u;n=n*(b-x)+f,i.set("y",this._nextCoord);let $=Math.min(1e5,Math.max(0,n/this._count*u/this._total-f));i.setAll({height:$,x:r/2});let N=this._nextCoord+$/2;s.set("y",N),this._nextCoord+=$+f,a.setAll({y:this._nextCoord-f,x:r/2})}else{let f=a.width()*u;r=r*(b-x)+f,i.set("x",this._nextCoord);let $=Math.min(1e5,Math.max(0,r/this._count*u/this._total-f));i.setAll({width:$,y:n/2});let N=this._nextCoord+$/2;s.set("x",N),this._nextCoord+=$+f,a.setAll({x:this._nextCoord-f,y:n/2})}}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return z(this,void 0,void 0,function*(){return e.get("link").hide(t),i.hideDataItem.call(this,e,t)})}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return z(this,void 0,void 0,function*(){return e.get("link").show(t),i.showDataItem.call(this,e,t)})}_updateTick(e){if(this.get("alignLabels")){let t=e.get("tick"),i=e.get("label"),s=e.get("slice");if(t&&s&&i){let a=this.labelsContainer,l=this.slicesContainer,r=t.get("location",.5),n=a.width(),c=a.height(),o=a.get("paddingLeft",0),m=a.get("paddingRight",0),h=a.get("paddingTop",0),p=a.get("paddingBottom",0),g={x:0,y:0},u={x:0,y:0},d={x:0,y:0};this._opposite&&(r=1-r),this.get("orientation")=="vertical"?(g=s.getPoint(r,.5),g.x+=s.x()+l.x(),g.y+=s.y()+l.y(),this._opposite?(u.x=n,u.y=i.y(),d.x=n-o,d.y=u.y):(u.x=l.x()+l.width(),u.y=i.y(),d.x=u.x+n-i.width()-m,d.y=u.y)):(g=s.getPoint(.5,r),g.x+=s.x()+l.x(),g.y+=s.y()+l.y(),this._opposite?(u.y=c,u.x=i.x(),d.y=c-h,d.x=u.x):(u.y=l.y()+l.height(),u.x=i.x(),d.y=u.y+c-i.height()-p,d.x=u.x)),t.set("points",[g,u,d])}}}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("link");t&&(this.links.removeValue(t),t.dispose())}_positionBullet(e){let t=e.get("sprite");if(t){let s=t.dataItem.get("slice");if(s){let a=s.width(),l=s.height(),r=e.get("locationX",.5),n=e.get("locationY",.5),c=0,o=0;this.get("orientation")=="horizontal"?o=l/2:c=a/2,t.setAll({x:s.x()+a*r-c,y:s.y()-o+l*n})}}}};H.className="FunnelSeries";H.classNames=C.classNames.concat([H.className]);var X=class extends H{constructor(){super(...arguments),this._tag="pyramid"}_prepareChildren(){super._prepareChildren(),this._nextSize=void 0,(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("valueIs"))&&(this._valuesDirty=!0)}decorateSlice(e){let t=this.get("orientation"),i=this.slicesContainer,s=e.get("slice"),a=e.get("label"),l=e.get("link"),r=this.get("valueIs","area"),n=this.getPrivate("valueAbsoluteSum",0);if(n==0)return;let c=this.get("startLocation",0),o=this.get("endLocation",1),m=this.get("topWidth",0),h=this.get("bottomWidth",T),p=Math.abs(e.get("valueWorking",0)),g=e.get("value",0),u,d,y=i.innerHeight(),x=i.innerWidth(),b=l.width(),f=l.height();t=="horizontal"&&([x,y]=[y,x],[b,f]=[f,b]);let $=x/2,N=1;g!=0?N=p/Math.abs(g):e.isHidden()&&(N=1e-6),f*=N,y=y*(o-c)-f*(this._count*this._total-1);let F=w(m,x);Y(this._nextSize)||(this._nextSize=F);let Z=w(h,x),P=this._nextSize,nt=Math.atan2(y,F-Z),B=Math.tan(Math.PI/2-nt);if(B==0&&(B=1e-8),r=="area"){let st=(F+Z)/2*y*p/n,ot=Math.abs(P*P-2*st*B);u=(P-Math.sqrt(ot))/B,u>0?d=(2*st-u*P)/u:d=P}else u=y*p/n,d=P-u*B;let O=this._nextCoord+u/2,J=$,j=this._nextCoord,Q=$,I=j+u;t=="vertical"?(a.set("y",O),a.get("opacity")>0&&this._rLabels.push({label:a,y:O}),s.set("height",u)):(a.set("x",O),a.get("opacity")>0&&this._hLabels.push({label:a,y:O}),[J,j]=[j,J],[Q,I]=[I,Q],s.set("width",u)),s.setAll({orientation:t,bottomWidth:d,topWidth:P,x:J,y:j}),l.setAll({orientation:t,x:Q,y:I,topWidth:d,bottomWidth:d}),this._nextSize=d,this._nextCoord+=u+f}};X.className="PyramidSeries";X.classNames=H.classNames.concat([X.className]);var K=class extends X{constructor(){super(...arguments),this._tag="pictorial",this.seriesMask=q.new(this._root,{position:"absolute",x:_,y:_,centerX:_,centerY:_}),this.seriesGraphics=this.slicesContainer.children.push(q.new(this._root,{themeTags:["pictorial","background"],position:"absolute",x:_,y:_,centerX:_,centerY:_}))}_afterNew(){super._afterNew(),this.set("topWidth",T),this.set("bottomWidth",T),this.set("valueIs","height"),this.slicesContainer.set("mask",this.seriesMask)}_updateScale(){let e=this.slicesContainer,t=e.innerWidth(),i=e.innerHeight(),s=this.seriesMask,a=this.seriesGraphics,l=s.get("scale",1),r=s.localBounds(),n=r.right-r.left,c=r.bottom-r.top;this.get("orientation")=="horizontal"?l=t/n:l=i/c,l!=1/0&&!Number.isNaN(l)&&(s.set("scale",l),s.set("x",t/2),s.set("y",i/2),a.set("scale",l),a.set("x",t/2),a.set("y",i/2))}_prepareChildren(){if(super._prepareChildren(),this.isDirty("svgPath")){let e=this.get("svgPath");this.seriesMask.set("svgPath",e),this.seriesGraphics.set("svgPath",e)}this._updateScale()}};K.className="PictorialStackedSeries";K.classNames=X.classNames.concat([K.className]);var E=class extends L{_afterNew(){super._afterNew(),this.seriesContainer.setAll({isMeasured:!0,layout:this._root.horizontalLayout})}};E.className="SlicedChart";E.classNames=L.classNames.concat([E.className]);export{it as DefaultTheme,H as FunnelSeries,V as FunnelSlice,L as PercentChart,C as PercentSeries,K as PictorialStackedSeries,G as PieChart,U as PieSeries,X as PyramidSeries,E as SlicedChart};