@ni/nimble-components 21.5.1 → 21.5.3

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.
@@ -9878,10 +9878,10 @@ const o=e.getColumn(t),r=null==o?void 0:o.getAggregationFn()
9878
9878
  return r?(m._groupingValuesCache[t]=r(t,f,h),m._groupingValuesCache[t]):void 0}}),p.forEach((e=>{o.push(e),r[e.id]=e})),m}))
9879
9879
  return d},a=s(n.rows,0)
9880
9880
  return a.forEach((e=>{o.push(e),r[e.id]=e})),{rows:a,flatRows:o,rowsById:r}}),{key:!1,debug:()=>{var t
9881
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}const pR=void 0,fR="loadingChildren",mR={none:void 0,ascending:"ascending",descending:"descending"},gR={none:void 0,single:"single",multiple:"multiple"},vR="notSelected",bR="selected",wR="partiallySelected",yR="basic",xR="localeAwareCaseSensitive"
9882
- class kR extends zt{}e([g],kR.prototype,"groupHeaderValue",void 0),e([g],kR.prototype,"columnConfig",void 0)
9883
- const CR=e=>((e=>{let t
9884
- try{t=document.createElement(e)}catch(e){}if(!(t instanceof kR))throw new Error(`Group header view tag name (${e}) must evaluate to an element extending TableGroupHeaderView`)})(e),Z`
9881
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}const pR=void 0,fR="canLoadChildren",mR="loadingChildren",gR={none:void 0,ascending:"ascending",descending:"descending"},vR={none:void 0,single:"single",multiple:"multiple"},bR="notSelected",wR="selected",yR="partiallySelected",xR="basic",kR="localeAwareCaseSensitive"
9882
+ class CR extends zt{}e([g],CR.prototype,"groupHeaderValue",void 0),e([g],CR.prototype,"columnConfig",void 0)
9883
+ const SR=e=>((e=>{let t
9884
+ try{t=document.createElement(e)}catch(e){}if(!(t instanceof CR))throw new Error(`Group header view tag name (${e}) must evaluate to an element extending TableGroupHeaderView`)})(e),Z`
9885
9885
  <${e}
9886
9886
  :groupHeaderValue="${e=>e.groupRowValue}"
9887
9887
  :columnConfig="${e=>e.groupColumn?.columnInternals.columnConfig}"
@@ -9889,11 +9889,11 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof kR))throw new Error(
9889
9889
  >
9890
9890
  </${e}>
9891
9891
  `)
9892
- class SR extends zt{constructor(){super(...arguments),this.delegatedEvents=[],this.delegatedEventHandler=()=>{}}focusedRecycleCallback(){}columnChanged(){for(const e of this.delegatedEvents)this.removeEventListener(e,this.delegatedEventHandler)
9892
+ class $R extends zt{constructor(){super(...arguments),this.delegatedEvents=[],this.delegatedEventHandler=()=>{}}focusedRecycleCallback(){}columnChanged(){for(const e of this.delegatedEvents)this.removeEventListener(e,this.delegatedEventHandler)
9893
9893
  if(this.delegatedEvents=[],this.delegatedEventHandler=()=>{},this.column){this.delegatedEvents=this.column.columnInternals.delegatedEvents,this.delegatedEventHandler=e=>{this.recordId&&this.column?.dispatchEvent(new CustomEvent("delegated-event",{detail:{originalEvent:e,recordId:this.recordId}}))}
9894
- for(const e of this.delegatedEvents)this.addEventListener(e,this.delegatedEventHandler)}}}e([g],SR.prototype,"cellRecord",void 0),e([g],SR.prototype,"columnConfig",void 0),e([g],SR.prototype,"column",void 0),e([g],SR.prototype,"recordId",void 0)
9895
- const $R=e=>((e=>{let t
9896
- try{t=document.createElement(e)}catch(e){}if(!(t instanceof SR))throw new Error(`Cell view tag name (${e}) must evaluate to an element extending TableCellView`)})(e),Z`
9894
+ for(const e of this.delegatedEvents)this.addEventListener(e,this.delegatedEventHandler)}}}e([g],$R.prototype,"cellRecord",void 0),e([g],$R.prototype,"columnConfig",void 0),e([g],$R.prototype,"column",void 0),e([g],$R.prototype,"recordId",void 0)
9895
+ const MR=e=>((e=>{let t
9896
+ try{t=document.createElement(e)}catch(e){}if(!(t instanceof $R))throw new Error(`Cell view tag name (${e}) must evaluate to an element extending TableCellView`)})(e),Z`
9897
9897
  <${e}
9898
9898
  :cellRecord="${e=>e.cellState?.cellRecord}"
9899
9899
  :columnConfig="${e=>e.cellState?.columnConfig}"
@@ -9903,11 +9903,11 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof SR))throw new Error(
9903
9903
  >
9904
9904
  </${e}>
9905
9905
  `)
9906
- class MR{constructor(e){this.uniqueId=va("table-column-slot"),this.validConfiguration=!0,this.sortOperation=yR,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=1,this.minPixelWidth=117,this.currentFractionalWidth=1,this.currentSortDirection=mR.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=$R(e.cellViewTag),this.groupHeaderViewTemplate=CR(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??yR}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}function _R(e,...t){for(const n of t)if(e===n)return!0
9907
- return!1}e([g],MR.prototype,"columnConfig",void 0),e([g],MR.prototype,"validConfiguration",void 0),e([g],MR.prototype,"operandDataRecordFieldName",void 0),e([g],MR.prototype,"sortOperation",void 0),e([g],MR.prototype,"dataRecordFieldNames",void 0),e([g],MR.prototype,"groupingDisabled",void 0),e([g],MR.prototype,"groupIndex",void 0),e([g],MR.prototype,"pixelWidth",void 0),e([g],MR.prototype,"fractionalWidth",void 0),e([g],MR.prototype,"minPixelWidth",void 0),e([g],MR.prototype,"currentFractionalWidth",void 0),e([g],MR.prototype,"currentPixelWidth",void 0),e([g],MR.prototype,"currentSortIndex",void 0),e([g],MR.prototype,"currentSortDirection",void 0)
9908
- class ER extends zt{constructor(){super(...arguments),this.columnInternals=new MR(this.getColumnInternalsOptions()),this.columnHidden=!1,this.sortDirection=mR.none,this.sortingDisabled=!1,this.hasOverflow=!1}checkValidity(){return this.columnInternals.validConfiguration}get validity(){return{}}get headerTextContent(){return this.contentSlot.assignedNodes().map((e=>e.textContent?.trim())).join(" ")}connectedCallback(){super.connectedCallback(),this.setAttribute("slot",this.columnInternals.uniqueId)}sortDirectionChanged(){this.sortingDisabled||(this.columnInternals.currentSortDirection=this.sortDirection)}sortIndexChanged(){this.sortingDisabled||(this.columnInternals.currentSortIndex=this.sortIndex)}sortingDisabledChanged(){this.sortingDisabled?(this.columnInternals.currentSortDirection=mR.none,this.columnInternals.currentSortIndex=void 0):(this.columnInternals.currentSortDirection=this.sortDirection,this.columnInternals.currentSortIndex=this.sortIndex)}}e([se({attribute:"column-id"})],ER.prototype,"columnId",void 0),e([se({attribute:"action-menu-slot"})],ER.prototype,"actionMenuSlot",void 0),e([se({attribute:"action-menu-label"})],ER.prototype,"actionMenuLabel",void 0),e([se({attribute:"column-hidden",mode:"boolean"})],ER.prototype,"columnHidden",void 0),e([se({attribute:"sort-index",converter:oe})],ER.prototype,"sortIndex",void 0),e([se({attribute:"sort-direction"})],ER.prototype,"sortDirection",void 0),e([se({attribute:"sorting-disabled",mode:"boolean"})],ER.prototype,"sortingDisabled",void 0),e([g],ER.prototype,"hasOverflow",void 0)
9909
- class IR{constructor(){this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.duplicateColumnId=!1,this.missingColumnId=!1,this.duplicateSortIndex=!1,this.duplicateGroupIndex=!1,this.idFieldNameNotConfigured=!1,this.invalidColumnConfiguration=!1,this.invalidParentIdConfiguration=!1,this.recordIds=new Set}getValidity(){return{duplicateRecordId:this.duplicateRecordId,missingRecordId:this.missingRecordId,invalidRecordId:this.invalidRecordId,duplicateColumnId:this.duplicateColumnId,missingColumnId:this.missingColumnId,duplicateSortIndex:this.duplicateSortIndex,duplicateGroupIndex:this.duplicateGroupIndex,idFieldNameNotConfigured:this.idFieldNameNotConfigured,invalidColumnConfiguration:this.invalidColumnConfiguration,invalidParentIdConfiguration:this.invalidParentIdConfiguration}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
9910
- return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateIdFieldConfiguration(e,t,n){const i=e!==gR.none||"string"==typeof n
9906
+ class _R{constructor(e){this.uniqueId=va("table-column-slot"),this.validConfiguration=!0,this.sortOperation=xR,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=1,this.minPixelWidth=117,this.currentFractionalWidth=1,this.currentSortDirection=gR.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=MR(e.cellViewTag),this.groupHeaderViewTemplate=SR(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??xR}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}function ER(e,...t){for(const n of t)if(e===n)return!0
9907
+ return!1}e([g],_R.prototype,"columnConfig",void 0),e([g],_R.prototype,"validConfiguration",void 0),e([g],_R.prototype,"operandDataRecordFieldName",void 0),e([g],_R.prototype,"sortOperation",void 0),e([g],_R.prototype,"dataRecordFieldNames",void 0),e([g],_R.prototype,"groupingDisabled",void 0),e([g],_R.prototype,"groupIndex",void 0),e([g],_R.prototype,"pixelWidth",void 0),e([g],_R.prototype,"fractionalWidth",void 0),e([g],_R.prototype,"minPixelWidth",void 0),e([g],_R.prototype,"currentFractionalWidth",void 0),e([g],_R.prototype,"currentPixelWidth",void 0),e([g],_R.prototype,"currentSortIndex",void 0),e([g],_R.prototype,"currentSortDirection",void 0)
9908
+ class IR extends zt{constructor(){super(...arguments),this.columnInternals=new _R(this.getColumnInternalsOptions()),this.columnHidden=!1,this.sortDirection=gR.none,this.sortingDisabled=!1,this.hasOverflow=!1}checkValidity(){return this.columnInternals.validConfiguration}get validity(){return{}}get headerTextContent(){return this.contentSlot.assignedNodes().map((e=>e.textContent?.trim())).join(" ")}connectedCallback(){super.connectedCallback(),this.setAttribute("slot",this.columnInternals.uniqueId)}sortDirectionChanged(){this.sortingDisabled||(this.columnInternals.currentSortDirection=this.sortDirection)}sortIndexChanged(){this.sortingDisabled||(this.columnInternals.currentSortIndex=this.sortIndex)}sortingDisabledChanged(){this.sortingDisabled?(this.columnInternals.currentSortDirection=gR.none,this.columnInternals.currentSortIndex=void 0):(this.columnInternals.currentSortDirection=this.sortDirection,this.columnInternals.currentSortIndex=this.sortIndex)}}e([se({attribute:"column-id"})],IR.prototype,"columnId",void 0),e([se({attribute:"action-menu-slot"})],IR.prototype,"actionMenuSlot",void 0),e([se({attribute:"action-menu-label"})],IR.prototype,"actionMenuLabel",void 0),e([se({attribute:"column-hidden",mode:"boolean"})],IR.prototype,"columnHidden",void 0),e([se({attribute:"sort-index",converter:oe})],IR.prototype,"sortIndex",void 0),e([se({attribute:"sort-direction"})],IR.prototype,"sortDirection",void 0),e([se({attribute:"sorting-disabled",mode:"boolean"})],IR.prototype,"sortingDisabled",void 0),e([g],IR.prototype,"hasOverflow",void 0)
9909
+ class AR{constructor(){this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.duplicateColumnId=!1,this.missingColumnId=!1,this.duplicateSortIndex=!1,this.duplicateGroupIndex=!1,this.idFieldNameNotConfigured=!1,this.invalidColumnConfiguration=!1,this.invalidParentIdConfiguration=!1,this.recordIds=new Set}getValidity(){return{duplicateRecordId:this.duplicateRecordId,missingRecordId:this.missingRecordId,invalidRecordId:this.invalidRecordId,duplicateColumnId:this.duplicateColumnId,missingColumnId:this.missingColumnId,duplicateSortIndex:this.duplicateSortIndex,duplicateGroupIndex:this.duplicateGroupIndex,idFieldNameNotConfigured:this.idFieldNameNotConfigured,invalidColumnConfiguration:this.invalidColumnConfiguration,invalidParentIdConfiguration:this.invalidParentIdConfiguration}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
9910
+ return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateIdFieldConfiguration(e,t,n){const i=e!==vR.none||"string"==typeof n
9911
9911
  return this.idFieldNameNotConfigured=!!i&&"string"!=typeof t,!this.idFieldNameNotConfigured}validateRecordIds(e,t){if(this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.recordIds.clear(),"string"!=typeof t)return!0
9912
9912
  for(const n of e){if(!Object.prototype.hasOwnProperty.call(n,t)){this.missingRecordId=!0
9913
9913
  continue}const e=n[t]
@@ -9916,7 +9916,7 @@ const t=e.some((e=>e))
9916
9916
  if(!t)return!0
9917
9917
  const n=new Set
9918
9918
  for(const t of e)t?(n.has(t)&&(this.duplicateColumnId=!0),n.add(t)):this.missingColumnId=!0
9919
- return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e){return this.duplicateSortIndex=!this.validateIndicesAreUnique(e),!this.duplicateSortIndex}validateColumnGroupIndices(e){return this.duplicateGroupIndex=!this.validateIndicesAreUnique(e),!this.duplicateGroupIndex}validateColumnConfigurations(e){return this.invalidColumnConfiguration=e.some((e=>!e.columnInternals.validConfiguration)),!this.invalidColumnConfiguration}getPresentRecordIds(e){return e.filter((e=>this.recordIds.has(e)))}getOptionsWithPresentIds(e){return e.filter((e=>this.recordIds.has(e.recordId)))}setParentIdConfigurationValidity(e){this.invalidParentIdConfiguration=!e}validateIndicesAreUnique(e){return new Set(e).size===e.length}}const AR=we`
9919
+ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e){return this.duplicateSortIndex=!this.validateIndicesAreUnique(e),!this.duplicateSortIndex}validateColumnGroupIndices(e){return this.duplicateGroupIndex=!this.validateIndicesAreUnique(e),!this.duplicateGroupIndex}validateColumnConfigurations(e){return this.invalidColumnConfiguration=e.some((e=>!e.columnInternals.validConfiguration)),!this.invalidColumnConfiguration}getPresentRecordIds(e){return e.filter((e=>this.recordIds.has(e)))}getOptionsWithPresentIds(e){return e.filter((e=>this.recordIds.has(e.recordId)))}setParentIdConfigurationValidity(e){this.invalidParentIdConfiguration=!e}validateIndicesAreUnique(e){return new Set(e).size===e.length}}const OR=we`
9920
9920
  ${Oo("flex")}
9921
9921
 
9922
9922
  :host {
@@ -10098,7 +10098,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
10098
10098
  background-color: ${Cr(ir,.1)};
10099
10099
  position: absolute;
10100
10100
  }
10101
- `)),OR=we`
10101
+ `)),TR=we`
10102
10102
  ${Oo("flex")}
10103
10103
 
10104
10104
  :host {
@@ -10117,7 +10117,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
10117
10117
  .grouped-indicator {
10118
10118
  flex: 0 0 auto;
10119
10119
  }
10120
- `,TR=Z`
10120
+ `,RR=Z`
10121
10121
  <template role="columnheader"
10122
10122
  aria-sort="${e=>e.ariaSort}"
10123
10123
  ${""}
@@ -10125,14 +10125,14 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
10125
10125
  >
10126
10126
  <slot></slot>
10127
10127
  ${""}
10128
- ${Fe((e=>e.sortDirection===mR.ascending),Z`
10128
+ ${Fe((e=>e.sortDirection===gR.ascending),Z`
10129
10129
  <${wg}
10130
10130
  class="sort-indicator"
10131
10131
  title="${e=>ev.getValueFor(e)}"
10132
10132
  aria-hidden="true"
10133
10133
  ></${wg}>
10134
10134
  `)}
10135
- ${Fe((e=>e.sortDirection===mR.descending),Z`
10135
+ ${Fe((e=>e.sortDirection===gR.descending),Z`
10136
10136
  <${vg}
10137
10137
  class="sort-indicator"
10138
10138
  title="${e=>tv.getValueFor(e)}"
@@ -10149,10 +10149,10 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
10149
10149
  `)}
10150
10150
  </template>
10151
10151
  `
10152
- class RR extends zt{constructor(){super(...arguments),this.sortDirection=mR.none,this.firstSortedColumn=!1,this.isGrouped=!1}sortDirectionChanged(e,t){this.updateAriaSort()}firstSortedColumnChanged(e,t){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==mR.none?this.sortDirection===mR.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}e([se({attribute:"sort-direction"})],RR.prototype,"sortDirection",void 0),e([se({attribute:"first-sorted-column",mode:"boolean"})],RR.prototype,"firstSortedColumn",void 0),e([g],RR.prototype,"isGrouped",void 0)
10153
- const DR=RR.compose({baseName:"table-header",template:TR,styles:OR})
10154
- bi.getOrCreate().withPrefix("nimble").register(DR())
10155
- const NR="nimble-table-header",PR=we`
10152
+ class DR extends zt{constructor(){super(...arguments),this.sortDirection=gR.none,this.firstSortedColumn=!1,this.isGrouped=!1}sortDirectionChanged(e,t){this.updateAriaSort()}firstSortedColumnChanged(e,t){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==gR.none?this.sortDirection===gR.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}e([se({attribute:"sort-direction"})],DR.prototype,"sortDirection",void 0),e([se({attribute:"first-sorted-column",mode:"boolean"})],DR.prototype,"firstSortedColumn",void 0),e([g],DR.prototype,"isGrouped",void 0)
10153
+ const NR=DR.compose({baseName:"table-header",template:RR,styles:TR})
10154
+ bi.getOrCreate().withPrefix("nimble").register(NR())
10155
+ const PR="nimble-table-header",LR=we`
10156
10156
  :host .animating {
10157
10157
  transition: ${Fd} ease-in;
10158
10158
  }
@@ -10175,8 +10175,8 @@ const NR="nimble-table-header",PR=we`
10175
10175
  transition-duration: 0s;
10176
10176
  }
10177
10177
  }
10178
- `,LR=we`
10179
- ${PR}
10178
+ `,zR=we`
10179
+ ${LR}
10180
10180
  ${Oo("flex")}
10181
10181
 
10182
10182
  :host {
@@ -10296,7 +10296,7 @@ const NR="nimble-table-header",PR=we`
10296
10296
  :host([selected]:hover)::before {
10297
10297
  background-color: ${Cr(ir,.2)};
10298
10298
  }
10299
- `)),zR=we`
10299
+ `)),FR=we`
10300
10300
  ${Oo("flex")}
10301
10301
 
10302
10302
  :host {
@@ -10326,7 +10326,7 @@ const NR="nimble-table-header",PR=we`
10326
10326
  height: ${nl};
10327
10327
  align-self: center;
10328
10328
  }
10329
- `,FR=Z`
10329
+ `,VR=Z`
10330
10330
  <template role="cell" style="--ni-private-table-cell-nesting-level: ${e=>e.nestingLevel}">
10331
10331
  ${e=>e.cellViewTemplate}
10332
10332
  ${Fe((e=>e.hasActionMenu),Z`
@@ -10346,10 +10346,10 @@ const NR="nimble-table-header",PR=we`
10346
10346
  `)}
10347
10347
  </template>
10348
10348
  `
10349
- class VR extends zt{constructor(){super(...arguments),this.hasActionMenu=!1,this.menuOpen=!1,this.nestingLevel=0}onActionMenuBeforeToggle(e){this.$emit("cell-action-menu-beforetoggle",e.detail)}onActionMenuToggle(e){this.menuOpen=e.detail.newState,this.$emit("cell-action-menu-toggle",e.detail)}}e([g],VR.prototype,"cellState",void 0),e([g],VR.prototype,"column",void 0),e([g],VR.prototype,"recordId",void 0),e([se({attribute:"column-id"})],VR.prototype,"columnId",void 0),e([se({attribute:"has-action-menu",mode:"boolean"})],VR.prototype,"hasActionMenu",void 0),e([se({attribute:"menu-open",mode:"boolean"})],VR.prototype,"menuOpen",void 0),e([se({attribute:"action-menu-label"})],VR.prototype,"actionMenuLabel",void 0),e([g],VR.prototype,"cellViewTemplate",void 0),e([g],VR.prototype,"nestingLevel",void 0)
10350
- const HR=VR.compose({baseName:"table-cell",template:FR,styles:zR})
10351
- bi.getOrCreate().withPrefix("nimble").register(HR())
10352
- const BR="nimble-table-cell",qR=Z`
10349
+ class HR extends zt{constructor(){super(...arguments),this.hasActionMenu=!1,this.menuOpen=!1,this.nestingLevel=0}onActionMenuBeforeToggle(e){this.$emit("cell-action-menu-beforetoggle",e.detail)}onActionMenuToggle(e){this.menuOpen=e.detail.newState,this.$emit("cell-action-menu-toggle",e.detail)}}e([g],HR.prototype,"cellState",void 0),e([g],HR.prototype,"column",void 0),e([g],HR.prototype,"recordId",void 0),e([se({attribute:"column-id"})],HR.prototype,"columnId",void 0),e([se({attribute:"has-action-menu",mode:"boolean"})],HR.prototype,"hasActionMenu",void 0),e([se({attribute:"menu-open",mode:"boolean"})],HR.prototype,"menuOpen",void 0),e([se({attribute:"action-menu-label"})],HR.prototype,"actionMenuLabel",void 0),e([g],HR.prototype,"cellViewTemplate",void 0),e([g],HR.prototype,"nestingLevel",void 0)
10350
+ const BR=HR.compose({baseName:"table-cell",template:VR,styles:FR})
10351
+ bi.getOrCreate().withPrefix("nimble").register(BR())
10352
+ const qR="nimble-table-cell",jR=Z`
10353
10353
  <template
10354
10354
  role="row"
10355
10355
  aria-selected=${e=>e.ariaSelected}
@@ -10403,7 +10403,7 @@ const BR="nimble-table-cell",qR=Z`
10403
10403
  >
10404
10404
  ${Ue((e=>e.columns),Z`
10405
10405
  ${Fe((e=>!e.columnHidden),Z`
10406
- <${BR}
10406
+ <${qR}
10407
10407
  class="cell"
10408
10408
  :cellState="${(e,t)=>t.parent.cellStates[t.index]}"
10409
10409
  :cellViewTemplate="${e=>e.columnInternals.cellViewTemplate}"
@@ -10423,29 +10423,29 @@ const BR="nimble-table-cell",qR=Z`
10423
10423
  slot="cellActionMenu"
10424
10424
  ></slot>
10425
10425
  `)}
10426
- </${BR}>
10426
+ </${qR}>
10427
10427
  `)}
10428
10428
  `,{recycle:!1,positioning:!0})}
10429
10429
  </span>
10430
10430
  </template>
10431
10431
  `
10432
- class jR extends zt{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.hideSelection=!1,this.expanded=!1,this.columnNotifiers=[],this.columns=[],this.nestingLevel=0,this.isParentRow=!1,this.menuOpen=!1,this.rowOperationGridCellHidden=!1,this.loading=!1,this.cellIndentLevels=[],this.cellStates=[],this.animationClass="",this.ignoreSelectionChangeEvents=!1,this.removeAnimatingClass=()=>{this.animationClass="",this.expandIcon?.removeEventListener("transitionend",this.removeAnimatingClass)}}get isTopLevelParentRow(){return this.isParentRow&&0===this.nestingLevel}get ariaSelected(){return this.selectable?this.selected?"true":"false":null}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
10432
+ class UR extends zt{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.hideSelection=!1,this.expanded=!1,this.columnNotifiers=[],this.columns=[],this.nestingLevel=0,this.isParentRow=!1,this.menuOpen=!1,this.rowOperationGridCellHidden=!1,this.loading=!1,this.cellIndentLevels=[],this.cellStates=[],this.animationClass="",this.ignoreSelectionChangeEvents=!1,this.removeAnimatingClass=()=>{this.animationClass="",this.expandIcon?.removeEventListener("transitionend",this.removeAnimatingClass)}}get isTopLevelParentRow(){return this.isParentRow&&0===this.nestingLevel}get ariaSelected(){return this.selectable?this.selected?"true":"false":null}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
10433
10433
  const t=e.target.checked
10434
10434
  this.selected=t
10435
10435
  const n={oldState:!t,newState:t}
10436
- this.$emit("row-selection-toggle",n)}onCellActionMenuBeforeToggle(e,t){this.currentActionMenuColumn=t,this.emitActionMenuToggleEvent("row-action-menu-beforetoggle",e.detail,t)}onCellActionMenuToggle(e,t){this.menuOpen=e.detail.newState,this.emitActionMenuToggleEvent("row-action-menu-toggle",e.detail,t)}closeOpenActionMenus(){if(this.menuOpen){const e=Array.from(this.cellContainer.children).find((e=>e instanceof VR&&e.menuOpen))
10437
- e?.actionMenuButton?.open&&e.actionMenuButton.toggleButton.control.click()}}handleChange(e,t){e instanceof MR&&"string"==typeof t&&(_R(t,"columnConfig")||_R(t,"dataRecordFieldNames"))&&this.updateCellStates()}onRowExpandToggle(e){const t={oldState:this.expanded,newState:!this.expanded,recordId:this.recordId}
10436
+ this.$emit("row-selection-toggle",n)}onCellActionMenuBeforeToggle(e,t){this.currentActionMenuColumn=t,this.emitActionMenuToggleEvent("row-action-menu-beforetoggle",e.detail,t)}onCellActionMenuToggle(e,t){this.menuOpen=e.detail.newState,this.emitActionMenuToggleEvent("row-action-menu-toggle",e.detail,t)}closeOpenActionMenus(){if(this.menuOpen){const e=Array.from(this.cellContainer.children).find((e=>e instanceof HR&&e.menuOpen))
10437
+ e?.actionMenuButton?.open&&e.actionMenuButton.toggleButton.control.click()}}handleChange(e,t){e instanceof _R&&"string"==typeof t&&(ER(t,"columnConfig")||ER(t,"dataRecordFieldNames"))&&this.updateCellStates()}onRowExpandToggle(e){const t={oldState:this.expanded,newState:!this.expanded,recordId:this.recordId}
10438
10438
  this.$emit("row-expand-toggle",t),e.stopImmediatePropagation(),this.animationClass="animating",this.expandIcon?.addEventListener("transitionend",this.removeAnimatingClass)}emitActionMenuToggleEvent(e,t,n){const i={newState:t.newState,oldState:t.oldState,recordIds:[this.recordId],columnId:n.columnId}
10439
10439
  this.$emit(e,i)}columnsChanged(){this.updateCellIndentLevels(),this.updateCellStates(),this.observeColumns()}dataRecordChanged(){this.updateCellStates()}nestingLevelChanged(){this.updateCellIndentLevels()}updateCellIndentLevels(){this.cellIndentLevels=this.columns.map(((e,t)=>0===t?this.nestingLevel:0))}removeColumnObservers(){this.columnNotifiers.forEach((e=>{e.unsubscribe(this)})),this.columnNotifiers=[]}observeColumns(){this.removeColumnObservers(),this.columnNotifiers=this.columns.map((e=>{const t=m.getNotifier(e.columnInternals)
10440
10440
  return t.subscribe(this),t}))}updateCellStates(){this.cellStates=this.columns.map((e=>{const t=e.columnInternals.dataRecordFieldNames
10441
10441
  let n
10442
10442
  if(this.hasValidFieldNames(t)&&this.dataRecord){const i=t.map((e=>this.dataRecord[e]))
10443
- n={cellRecord:Object.fromEntries(e.columnInternals.cellRecordFieldNames.map(((e,t)=>[e,i[t]]))),columnConfig:e.columnInternals.columnConfig}}return n}))}hasValidFieldNames(e){return e.every((e=>void 0!==e))}selectedChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selected,this.ignoreSelectionChangeEvents=!1)}}e([se({attribute:"record-id"})],jR.prototype,"recordId",void 0),e([se({mode:"boolean"})],jR.prototype,"selectable",void 0),e([se({mode:"boolean"})],jR.prototype,"selected",void 0),e([se({attribute:"hide-selection",mode:"boolean"})],jR.prototype,"hideSelection",void 0),e([se({mode:"boolean"})],jR.prototype,"expanded",void 0),e([g],jR.prototype,"dataRecord",void 0),e([g],jR.prototype,"columns",void 0),e([g],jR.prototype,"currentActionMenuColumn",void 0),e([g],jR.prototype,"nestingLevel",void 0),e([se({attribute:"is-parent-row",mode:"boolean"})],jR.prototype,"isParentRow",void 0),e([se({attribute:"menu-open",mode:"boolean"})],jR.prototype,"menuOpen",void 0),e([se({attribute:"row-operation-grid-cell-hidden",mode:"boolean"})],jR.prototype,"rowOperationGridCellHidden",void 0),e([se({mode:"boolean"})],jR.prototype,"loading",void 0),e([g],jR.prototype,"cellIndentLevels",void 0),e([g],jR.prototype,"cellStates",void 0),e([g],jR.prototype,"selectionCheckbox",void 0),e([g],jR.prototype,"animationClass",void 0),e([v],jR.prototype,"isTopLevelParentRow",null),e([v],jR.prototype,"ariaSelected",null)
10444
- const UR=jR.compose({baseName:"table-row",template:qR,styles:LR})
10445
- bi.getOrCreate().withPrefix("nimble").register(UR())
10446
- const WR="nimble-table-row",ZR=we`
10443
+ n={cellRecord:Object.fromEntries(e.columnInternals.cellRecordFieldNames.map(((e,t)=>[e,i[t]]))),columnConfig:e.columnInternals.columnConfig}}return n}))}hasValidFieldNames(e){return e.every((e=>void 0!==e))}selectedChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selected,this.ignoreSelectionChangeEvents=!1)}}e([se({attribute:"record-id"})],UR.prototype,"recordId",void 0),e([se({mode:"boolean"})],UR.prototype,"selectable",void 0),e([se({mode:"boolean"})],UR.prototype,"selected",void 0),e([se({attribute:"hide-selection",mode:"boolean"})],UR.prototype,"hideSelection",void 0),e([se({mode:"boolean"})],UR.prototype,"expanded",void 0),e([g],UR.prototype,"dataRecord",void 0),e([g],UR.prototype,"columns",void 0),e([g],UR.prototype,"currentActionMenuColumn",void 0),e([g],UR.prototype,"nestingLevel",void 0),e([se({attribute:"is-parent-row",mode:"boolean"})],UR.prototype,"isParentRow",void 0),e([se({attribute:"menu-open",mode:"boolean"})],UR.prototype,"menuOpen",void 0),e([se({attribute:"row-operation-grid-cell-hidden",mode:"boolean"})],UR.prototype,"rowOperationGridCellHidden",void 0),e([se({mode:"boolean"})],UR.prototype,"loading",void 0),e([g],UR.prototype,"cellIndentLevels",void 0),e([g],UR.prototype,"cellStates",void 0),e([g],UR.prototype,"selectionCheckbox",void 0),e([g],UR.prototype,"animationClass",void 0),e([v],UR.prototype,"isTopLevelParentRow",null),e([v],UR.prototype,"ariaSelected",null)
10444
+ const WR=UR.compose({baseName:"table-row",template:jR,styles:zR})
10445
+ bi.getOrCreate().withPrefix("nimble").register(WR())
10446
+ const ZR="nimble-table-row",GR=we`
10447
10447
  ${Oo("grid")}
10448
- ${PR}
10448
+ ${LR}
10449
10449
 
10450
10450
  :host {
10451
10451
  align-items: center;
@@ -10528,7 +10528,7 @@ const WR="nimble-table-row",ZR=we`
10528
10528
  :host(:hover)::before {
10529
10529
  background-color: ${Cr(ir,.1)};
10530
10530
  }
10531
- `)),GR=Z`
10531
+ `)),KR=Z`
10532
10532
  <template
10533
10533
  role="row"
10534
10534
  @click=${e=>e.onGroupExpandToggle()}
@@ -10568,14 +10568,14 @@ const WR="nimble-table-row",ZR=we`
10568
10568
  </div>
10569
10569
  </template>
10570
10570
  `
10571
- class KR extends zt{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.selectable=!1,this.selectionState=vR,this.animationClass="",this.ignoreSelectionChangeEvents=!1,this.removeAnimatingClass=()=>{this.animationClass="",this.expandIcon.removeEventListener("transitionend",this.removeAnimatingClass)}}onGroupExpandToggle(){this.$emit("group-expand-toggle"),this.animationClass="animating",this.expandIcon.addEventListener("transitionend",this.removeAnimatingClass)}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
10571
+ class JR extends zt{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.selectable=!1,this.selectionState=bR,this.animationClass="",this.ignoreSelectionChangeEvents=!1,this.removeAnimatingClass=()=>{this.animationClass="",this.expandIcon.removeEventListener("transitionend",this.removeAnimatingClass)}}onGroupExpandToggle(){this.$emit("group-expand-toggle"),this.animationClass="animating",this.expandIcon.addEventListener("transitionend",this.removeAnimatingClass)}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
10572
10572
  const t=e.target.checked
10573
- this.selectionState=t?bR:vR
10573
+ this.selectionState=t?wR:bR
10574
10574
  const n={oldState:!t,newState:t}
10575
- this.$emit("group-selection-toggle",n)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===bR,this.selectionCheckbox.indeterminate=this.selectionState===wR,this.ignoreSelectionChangeEvents=!1)}}e([g],KR.prototype,"groupRowValue",void 0),e([g],KR.prototype,"nestingLevel",void 0),e([g],KR.prototype,"immediateChildCount",void 0),e([g],KR.prototype,"groupColumn",void 0),e([se({mode:"boolean"})],KR.prototype,"expanded",void 0),e([se({mode:"boolean"})],KR.prototype,"selectable",void 0),e([se({attribute:"selection-state"})],KR.prototype,"selectionState",void 0),e([g],KR.prototype,"selectionCheckbox",void 0),e([g],KR.prototype,"animationClass",void 0)
10576
- const JR=KR.compose({baseName:"table-group-row",template:GR,styles:ZR})
10577
- bi.getOrCreate().withPrefix("nimble").register(JR())
10578
- const XR="nimble-table-group-row",YR=Z`
10575
+ this.$emit("group-selection-toggle",n)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===wR,this.selectionCheckbox.indeterminate=this.selectionState===yR,this.ignoreSelectionChangeEvents=!1)}}e([g],JR.prototype,"groupRowValue",void 0),e([g],JR.prototype,"nestingLevel",void 0),e([g],JR.prototype,"immediateChildCount",void 0),e([g],JR.prototype,"groupColumn",void 0),e([se({mode:"boolean"})],JR.prototype,"expanded",void 0),e([se({mode:"boolean"})],JR.prototype,"selectable",void 0),e([se({attribute:"selection-state"})],JR.prototype,"selectionState",void 0),e([g],JR.prototype,"selectionCheckbox",void 0),e([g],JR.prototype,"animationClass",void 0)
10576
+ const XR=JR.compose({baseName:"table-group-row",template:KR,styles:GR})
10577
+ bi.getOrCreate().withPrefix("nimble").register(XR())
10578
+ const YR="nimble-table-group-row",QR=Z`
10579
10579
  <template
10580
10580
  role="treegrid"
10581
10581
  aria-multiselectable="${e=>e.ariaMultiSelectable}"
@@ -10601,7 +10601,7 @@ const XR="nimble-table-group-row",YR=Z`
10601
10601
  ${e=>rv.getValueFor(e)}
10602
10602
  </span>
10603
10603
  `)}
10604
- ${Fe((e=>e.selectionMode===gR.multiple),Z`
10604
+ ${Fe((e=>e.selectionMode===vR.multiple),Z`
10605
10605
  <span class="checkbox-container">
10606
10606
  <${Hm}
10607
10607
  ${Ne("selectionCheckbox")}
@@ -10632,15 +10632,15 @@ const XR="nimble-table-group-row",YR=Z`
10632
10632
  @mousedown="${(e,t)=>t.parent.onLeftDividerMouseDown(t.event,t.index)}">
10633
10633
  </div>
10634
10634
  `)}
10635
- <${NR}
10635
+ <${PR}
10636
10636
  class="header"
10637
- sort-direction="${e=>"number"==typeof e.columnInternals.currentSortIndex?e.columnInternals.currentSortDirection:mR.none}"
10637
+ sort-direction="${e=>"number"==typeof e.columnInternals.currentSortIndex?e.columnInternals.currentSortDirection:gR.none}"
10638
10638
  ?first-sorted-column="${(e,t)=>e===t.parent.firstSortedColumn}"
10639
10639
  @click="${(e,t)=>t.parent.toggleColumnSort(e,t.event.shiftKey)}"
10640
10640
  :isGrouped=${e=>"number"==typeof e.columnInternals.groupIndex&&!e.columnInternals.groupingDisabled}
10641
10641
  >
10642
10642
  <slot name="${e=>e.slot}"></slot>
10643
- </${NR}>
10643
+ </${PR}>
10644
10644
  ${Fe(((e,t)=>t.index<t.length-1),Z`
10645
10645
  <div class="column-divider right ${(e,t)=>""+(t.parent.layoutManager.activeColumnIndex===t.index?"active":"")}"
10646
10646
  @mousedown="${(e,t)=>t.parent.onRightDividerMouseDown(t.event,t.index)}">
@@ -10654,33 +10654,33 @@ const XR="nimble-table-group-row",YR=Z`
10654
10654
  </div>
10655
10655
  <div class="table-viewport" ${Ne("viewport")}>
10656
10656
  <div class="table-scroll"></div>
10657
- <div class="table-row-container" ${Xe({property:"rowElements",filter:We(WR)})}
10657
+ <div class="table-row-container" ${Xe({property:"rowElements",filter:We(ZR)})}
10658
10658
  role="rowgroup">
10659
10659
  ${Fe((e=>e.columns.length>0&&e.canRenderRows),Z`
10660
10660
  ${Ue((e=>e.virtualizer.visibleItems),Z`
10661
10661
  ${Fe(((e,t)=>t.parent.tableData[e.index]?.isGroupRow),Z`
10662
- <${XR}
10662
+ <${YR}
10663
10663
  class="group-row"
10664
10664
  :groupRowValue="${(e,t)=>t.parent.tableData[e.index]?.groupRowValue}"
10665
10665
  ?expanded="${(e,t)=>t.parent.tableData[e.index]?.isExpanded}"
10666
10666
  :nestingLevel="${(e,t)=>t.parent.tableData[e.index]?.nestingLevel}"
10667
10667
  :immediateChildCount="${(e,t)=>t.parent.tableData[e.index]?.immediateChildCount}"
10668
10668
  :groupColumn="${(e,t)=>t.parent.tableData[e.index]?.groupColumn}"
10669
- ?selectable="${(e,t)=>t.parent.selectionMode===gR.multiple}"
10669
+ ?selectable="${(e,t)=>t.parent.selectionMode===vR.multiple}"
10670
10670
  selection-state="${(e,t)=>t.parent.tableData[e.index]?.selectionState}"
10671
10671
  @group-selection-toggle="${(e,t)=>t.parent.onRowSelectionToggle(e.index,t.event)}"
10672
10672
  @group-expand-toggle="${(e,t)=>t.parent.handleGroupRowExpanded(e.index,t.event)}"
10673
10673
  >
10674
- </${XR}>
10674
+ </${YR}>
10675
10675
  `)}
10676
10676
  ${Fe(((e,t)=>!t.parent.tableData[e.index]?.isGroupRow),Z`
10677
- <${WR}
10677
+ <${ZR}
10678
10678
  class="row"
10679
10679
  record-id="${(e,t)=>t.parent.tableData[e.index]?.id}"
10680
- ?selectable="${(e,t)=>t.parent.selectionMode!==gR.none}"
10681
- ?selected="${(e,t)=>t.parent.tableData[e.index]?.selectionState===bR}"
10680
+ ?selectable="${(e,t)=>t.parent.selectionMode!==vR.none}"
10681
+ ?selected="${(e,t)=>t.parent.tableData[e.index]?.selectionState===wR}"
10682
10682
  ?expanded="${(e,t)=>t.parent.tableData[e.index]?.isExpanded}"
10683
- ?hide-selection="${(e,t)=>t.parent.selectionMode!==gR.multiple}"
10683
+ ?hide-selection="${(e,t)=>t.parent.selectionMode!==vR.multiple}"
10684
10684
  :dataRecord="${(e,t)=>t.parent.tableData[e.index]?.record}"
10685
10685
  :columns="${(e,t)=>t.parent.columns}"
10686
10686
  :isParentRow="${(e,t)=>t.parent.tableData[e.index]?.isParentRow}"
@@ -10702,7 +10702,7 @@ const XR="nimble-table-group-row",YR=Z`
10702
10702
  </slot>
10703
10703
  `)}
10704
10704
  `)}
10705
- </${WR}>
10705
+ </${ZR}>
10706
10706
  `)}
10707
10707
  `)}
10708
10708
  `)}
@@ -10722,8 +10722,8 @@ const XR="nimble-table-group-row",YR=Z`
10722
10722
  *
10723
10723
  * @license MIT
10724
10724
  */
10725
- function QR(){return QR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
10726
- for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},QR.apply(this,arguments)}
10725
+ function eD(){return eD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
10726
+ for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},eD.apply(this,arguments)}
10727
10727
  /**
10728
10728
  * virtual-core
10729
10729
  *
@@ -10733,53 +10733,53 @@ for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},
10733
10733
  * LICENSE.md file in the root directory of this source tree.
10734
10734
  *
10735
10735
  * @license MIT
10736
- */function eD(e,t,n){var i,o,r=null!=(i=n.initialDeps)?i:[]
10736
+ */function tD(e,t,n){var i,o,r=null!=(i=n.initialDeps)?i:[]
10737
10737
  return function(){var i
10738
10738
  n.key&&null!=n.debug&&n.debug()&&(i=Date.now())
10739
10739
  var s,a=e()
10740
10740
  if(!(a.length!==r.length||a.some((function(e,t){return r[t]!==e}))))return o
10741
10741
  if(r=a,n.key&&null!=n.debug&&n.debug()&&(s=Date.now()),o=t.apply(void 0,a),n.key&&null!=n.debug&&n.debug()){var l=Math.round(100*(Date.now()-i))/100,c=Math.round(100*(Date.now()-s))/100,d=c/16,h=function(e,t){for(e=String(e);e.length<t;)e=" "+e
10742
10742
  return e}
10743
- console.info("%c⏱ "+h(c,5)+" /"+h(l,5)+" ms","\n font-size: .6rem;\n font-weight: bold;\n color: hsl("+Math.max(0,Math.min(120-120*d,120))+"deg 100% 31%);",null==n?void 0:n.key)}return null==n||null==n.onChange||n.onChange(o),o}}function tD(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?": "+t:""))
10744
- return e}var nD=function(e){return e},iD=function(e){for(var t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[],o=t;o<=n;o++)i.push(o)
10745
- return i},oD=function(e,t){var n=e.scrollElement
10743
+ console.info("%c⏱ "+h(c,5)+" /"+h(l,5)+" ms","\n font-size: .6rem;\n font-weight: bold;\n color: hsl("+Math.max(0,Math.min(120-120*d,120))+"deg 100% 31%);",null==n?void 0:n.key)}return null==n||null==n.onChange||n.onChange(o),o}}function nD(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?": "+t:""))
10744
+ return e}var iD=function(e){return e},oD=function(e){for(var t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[],o=t;o<=n;o++)i.push(o)
10745
+ return i},rD=function(e,t){var n=e.scrollElement
10746
10746
  if(n){var i=function(e){var n=e.width,i=e.height
10747
10747
  t({width:Math.round(n),height:Math.round(i)})}
10748
10748
  i(n.getBoundingClientRect())
10749
10749
  var o=new ResizeObserver((function(e){var t=e[0]
10750
10750
  if(null!=t&&t.borderBoxSize){var o=t.borderBoxSize[0]
10751
10751
  if(o)return void i({width:o.inlineSize,height:o.blockSize})}i(n.getBoundingClientRect())}))
10752
- return o.observe(n,{box:"border-box"}),function(){o.unobserve(n)}}},rD=function(e,t){var n=e.scrollElement
10752
+ return o.observe(n,{box:"border-box"}),function(){o.unobserve(n)}}},sD=function(e,t){var n=e.scrollElement
10753
10753
  if(n){var i=function(){t(n[e.options.horizontal?"scrollLeft":"scrollTop"])}
10754
- return i(),n.addEventListener("scroll",i,{passive:!0}),function(){n.removeEventListener("scroll",i)}}},sD=function(e,t,n){if(null!=t&&t.borderBoxSize){var i=t.borderBoxSize[0]
10755
- if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},aD=function(e,t,n){var i,o,r=t.adjustments,s=void 0===r?0:r,a=t.behavior,l=e+s
10756
- null==(i=n.scrollElement)||null==i.scrollTo||i.scrollTo(((o={})[n.options.horizontal?"left":"top"]=l,o.behavior=a,o))},lD=function(e){var t=this
10754
+ return i(),n.addEventListener("scroll",i,{passive:!0}),function(){n.removeEventListener("scroll",i)}}},aD=function(e,t,n){if(null!=t&&t.borderBoxSize){var i=t.borderBoxSize[0]
10755
+ if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},lD=function(e,t,n){var i,o,r=t.adjustments,s=void 0===r?0:r,a=t.behavior,l=e+s
10756
+ null==(i=n.scrollElement)||null==i.scrollTo||i.scrollTo(((o={})[n.options.horizontal?"left":"top"]=l,o.behavior=a,o))},cD=function(e){var t=this
10757
10757
  this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=function(){var e=null,n=function(){return e||("undefined"!=typeof ResizeObserver?e=new ResizeObserver((function(e){e.forEach((function(e){t._measureElement(e.target,e)}))})):null)}
10758
10758
  return{disconnect:function(){var e
10759
10759
  return null==(e=n())?void 0:e.disconnect()},observe:function(e){var t
10760
10760
  return null==(t=n())?void 0:t.observe(e,{box:"border-box"})},unobserve:function(e){var t
10761
10761
  return null==(t=n())?void 0:t.unobserve(e)}}}(),this.range=null,this.setOptions=function(e){Object.entries(e).forEach((function(t){var n=t[0]
10762
- void 0===t[1]&&delete e[n]})),t.options=QR({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:nD,rangeExtractor:iD,onChange:function(){},measureElement:sD,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},e)},this.notify=function(e){null==t.options.onChange||t.options.onChange(t,e)},this.maybeNotify=eD((function(){return t.calculateRange(),[t.isScrolling,t.range?t.range.startIndex:null,t.range?t.range.endIndex:null]}),(function(e){t.notify(e)}),{key:!1,debug:function(){return t.options.debug},initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=function(){t.unsubs.filter(Boolean).forEach((function(e){return e()})),t.unsubs=[],t.scrollElement=null},this._didMount=function(){return t.measureElementCache.forEach(t.observer.observe),function(){t.observer.disconnect(),t.cleanup()}},this._willUpdate=function(){var e=t.options.getScrollElement()
10763
- t.scrollElement!==e&&(t.cleanup(),t.scrollElement=e,t._scrollToOffset(t.scrollOffset,{adjustments:void 0,behavior:void 0}),t.unsubs.push(t.options.observeElementRect(t,(function(e){t.scrollRect=e,t.maybeNotify()}))),t.unsubs.push(t.options.observeElementOffset(t,(function(e){t.scrollAdjustments=0,t.scrollOffset!==e&&(null!==t.isScrollingTimeoutId&&(clearTimeout(t.isScrollingTimeoutId),t.isScrollingTimeoutId=null),t.isScrolling=!0,t.scrollDirection=t.scrollOffset<e?"forward":"backward",t.scrollOffset=e,t.maybeNotify(),t.isScrollingTimeoutId=setTimeout((function(){t.isScrollingTimeoutId=null,t.isScrolling=!1,t.scrollDirection=null,t.maybeNotify()}),t.options.scrollingDelay))}))))},this.getSize=function(){return t.scrollRect[t.options.horizontal?"width":"height"]},this.memoOptions=eD((function(){return[t.options.count,t.options.paddingStart,t.options.scrollMargin,t.options.getItemKey]}),(function(e,n,i,o){return t.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:n,scrollMargin:i,getItemKey:o}}),{key:!1}),this.getFurthestMeasurement=function(e,n){for(var i=new Map,o=new Map,r=n-1;r>=0;r--){var s=e[r]
10762
+ void 0===t[1]&&delete e[n]})),t.options=eD({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:iD,rangeExtractor:oD,onChange:function(){},measureElement:aD,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},e)},this.notify=function(e){null==t.options.onChange||t.options.onChange(t,e)},this.maybeNotify=tD((function(){return t.calculateRange(),[t.isScrolling,t.range?t.range.startIndex:null,t.range?t.range.endIndex:null]}),(function(e){t.notify(e)}),{key:!1,debug:function(){return t.options.debug},initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=function(){t.unsubs.filter(Boolean).forEach((function(e){return e()})),t.unsubs=[],t.scrollElement=null},this._didMount=function(){return t.measureElementCache.forEach(t.observer.observe),function(){t.observer.disconnect(),t.cleanup()}},this._willUpdate=function(){var e=t.options.getScrollElement()
10763
+ t.scrollElement!==e&&(t.cleanup(),t.scrollElement=e,t._scrollToOffset(t.scrollOffset,{adjustments:void 0,behavior:void 0}),t.unsubs.push(t.options.observeElementRect(t,(function(e){t.scrollRect=e,t.maybeNotify()}))),t.unsubs.push(t.options.observeElementOffset(t,(function(e){t.scrollAdjustments=0,t.scrollOffset!==e&&(null!==t.isScrollingTimeoutId&&(clearTimeout(t.isScrollingTimeoutId),t.isScrollingTimeoutId=null),t.isScrolling=!0,t.scrollDirection=t.scrollOffset<e?"forward":"backward",t.scrollOffset=e,t.maybeNotify(),t.isScrollingTimeoutId=setTimeout((function(){t.isScrollingTimeoutId=null,t.isScrolling=!1,t.scrollDirection=null,t.maybeNotify()}),t.options.scrollingDelay))}))))},this.getSize=function(){return t.scrollRect[t.options.horizontal?"width":"height"]},this.memoOptions=tD((function(){return[t.options.count,t.options.paddingStart,t.options.scrollMargin,t.options.getItemKey]}),(function(e,n,i,o){return t.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:n,scrollMargin:i,getItemKey:o}}),{key:!1}),this.getFurthestMeasurement=function(e,n){for(var i=new Map,o=new Map,r=n-1;r>=0;r--){var s=e[r]
10764
10764
  if(!i.has(s.lane)){var a=o.get(s.lane)
10765
- if(null==a||s.end>a.end?o.set(s.lane,s):s.end<a.end&&i.set(s.lane,!0),i.size===t.options.lanes)break}}return o.size===t.options.lanes?Array.from(o.values()).sort((function(e,t){return e.end===t.end?e.index-t.index:e.end-t.end}))[0]:void 0},this.getMeasurements=eD((function(){return[t.memoOptions(),t.itemSizeCache]}),(function(e,n){var i=e.count,o=e.paddingStart,r=e.scrollMargin,s=e.getItemKey,a=t.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,t.pendingMeasuredCacheIndexes):0
10765
+ if(null==a||s.end>a.end?o.set(s.lane,s):s.end<a.end&&i.set(s.lane,!0),i.size===t.options.lanes)break}}return o.size===t.options.lanes?Array.from(o.values()).sort((function(e,t){return e.end===t.end?e.index-t.index:e.end-t.end}))[0]:void 0},this.getMeasurements=tD((function(){return[t.memoOptions(),t.itemSizeCache]}),(function(e,n){var i=e.count,o=e.paddingStart,r=e.scrollMargin,s=e.getItemKey,a=t.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,t.pendingMeasuredCacheIndexes):0
10766
10766
  t.pendingMeasuredCacheIndexes=[]
10767
10767
  for(var l=t.measurementsCache.slice(0,a),c=a;c<i;c++){var d=s(c),h=1===t.options.lanes?l[c-1]:t.getFurthestMeasurement(l,c),u=h?h.end:o+r,p=n.get(d),f="number"==typeof p?p:t.options.estimateSize(c),m=u+f,g=h?h.lane:c%t.options.lanes
10768
- l[c]={index:c,start:u,size:f,end:m,key:d,lane:g}}return t.measurementsCache=l,l}),{key:!1,debug:function(){return t.options.debug}}),this.calculateRange=eD((function(){return[t.getMeasurements(),t.getSize(),t.scrollOffset]}),(function(e,n,i){return t.range=e.length>0&&n>0?function(e){var t=e.measurements,n=e.outerSize,i=e.scrollOffset,o=t.length-1,r=function(e){return t[e].start},s=cD(0,o,r,i),a=s
10768
+ l[c]={index:c,start:u,size:f,end:m,key:d,lane:g}}return t.measurementsCache=l,l}),{key:!1,debug:function(){return t.options.debug}}),this.calculateRange=tD((function(){return[t.getMeasurements(),t.getSize(),t.scrollOffset]}),(function(e,n,i){return t.range=e.length>0&&n>0?function(e){var t=e.measurements,n=e.outerSize,i=e.scrollOffset,o=t.length-1,r=function(e){return t[e].start},s=dD(0,o,r,i),a=s
10769
10769
  for(;a<o&&t[a].end<i+n;)a++
10770
- return{startIndex:s,endIndex:a}}({measurements:e,outerSize:n,scrollOffset:i}):null}),{key:!1,debug:function(){return t.options.debug}}),this.getIndexes=eD((function(){return[t.options.rangeExtractor,t.calculateRange(),t.options.overscan,t.options.count]}),(function(e,t,n,i){return null===t?[]:e(QR({},t,{overscan:n,count:i}))}),{key:!1,debug:function(){return t.options.debug}}),this.indexFromElement=function(e){var n=t.options.indexAttribute,i=e.getAttribute(n)
10770
+ return{startIndex:s,endIndex:a}}({measurements:e,outerSize:n,scrollOffset:i}):null}),{key:!1,debug:function(){return t.options.debug}}),this.getIndexes=tD((function(){return[t.options.rangeExtractor,t.calculateRange(),t.options.overscan,t.options.count]}),(function(e,t,n,i){return null===t?[]:e(eD({},t,{overscan:n,count:i}))}),{key:!1,debug:function(){return t.options.debug}}),this.indexFromElement=function(e){var n=t.options.indexAttribute,i=e.getAttribute(n)
10771
10771
  return i?parseInt(i,10):(console.warn("Missing attribute name '"+n+"={index}' on measured element."),-1)},this._measureElement=function(e,n){var i=t.measurementsCache[t.indexFromElement(e)]
10772
10772
  if(i&&e.isConnected){var o=t.measureElementCache.get(i.key)
10773
10773
  o!==e&&(o&&t.observer.unobserve(o),t.observer.observe(e),t.measureElementCache.set(i.key,e))
10774
10774
  var r=t.options.measureElement(e,n,t)
10775
10775
  t.resizeItem(i,r)}else t.measureElementCache.forEach((function(n,i){n===e&&(t.observer.unobserve(e),t.measureElementCache.delete(i))}))},this.resizeItem=function(e,n){var i,o=n-(null!=(i=t.itemSizeCache.get(e.key))?i:e.size)
10776
- 0!==o&&(e.start<t.scrollOffset+t.scrollAdjustments&&t._scrollToOffset(t.scrollOffset,{adjustments:t.scrollAdjustments+=o,behavior:void 0}),t.pendingMeasuredCacheIndexes.push(e.index),t.itemSizeCache=new Map(t.itemSizeCache.set(e.key,n)),t.notify(!1))},this.measureElement=function(e){e&&t._measureElement(e,void 0)},this.getVirtualItems=eD((function(){return[t.getIndexes(),t.getMeasurements()]}),(function(e,t){for(var n=[],i=0,o=e.length;i<o;i++){var r=t[e[i]]
10776
+ 0!==o&&(e.start<t.scrollOffset+t.scrollAdjustments&&t._scrollToOffset(t.scrollOffset,{adjustments:t.scrollAdjustments+=o,behavior:void 0}),t.pendingMeasuredCacheIndexes.push(e.index),t.itemSizeCache=new Map(t.itemSizeCache.set(e.key,n)),t.notify(!1))},this.measureElement=function(e){e&&t._measureElement(e,void 0)},this.getVirtualItems=tD((function(){return[t.getIndexes(),t.getMeasurements()]}),(function(e,t){for(var n=[],i=0,o=e.length;i<o;i++){var r=t[e[i]]
10777
10777
  n.push(r)}return n}),{key:!1,debug:function(){return t.options.debug}}),this.getVirtualItemForOffset=function(e){var n=t.getMeasurements()
10778
- return tD(n[cD(0,n.length-1,(function(e){return tD(n[e]).start}),e)])},this.getOffsetForAlignment=function(e,n){var i=t.getSize()
10778
+ return nD(n[dD(0,n.length-1,(function(e){return nD(n[e]).start}),e)])},this.getOffsetForAlignment=function(e,n){var i=t.getSize()
10779
10779
  "auto"===n&&(n=e<=t.scrollOffset?"start":e>=t.scrollOffset+i?"end":"start"),"start"===n||("end"===n?e-=i:"center"===n&&(e-=i/2))
10780
10780
  var o=t.options.horizontal?"scrollWidth":"scrollHeight",r=(t.scrollElement?"document"in t.scrollElement?t.scrollElement.document.documentElement[o]:t.scrollElement[o]:0)-t.getSize()
10781
10781
  return Math.max(Math.min(r,e),0)},this.getOffsetForIndex=function(e,n){void 0===n&&(n="auto"),e=Math.max(0,Math.min(e,t.options.count-1))
10782
- var i=tD(t.getMeasurements()[e])
10782
+ var i=nD(t.getMeasurements()[e])
10783
10783
  if("auto"===n)if(i.end>=t.scrollOffset+t.getSize()-t.options.scrollPaddingEnd)n="end"
10784
10784
  else{if(!(i.start<=t.scrollOffset+t.options.scrollPaddingStart))return[t.scrollOffset,n]
10785
10785
  n="start"}var o="end"===n?i.end+t.options.scrollPaddingEnd:i.start-t.options.scrollPaddingStart
@@ -10793,7 +10793,7 @@ n=o,i=t.scrollOffset,Math.abs(n-i)<1||t.scrollToIndex(e,{align:c,behavior:s})}el
10793
10793
  t.cancelScrollToIndex(),"smooth"===i&&t.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t._scrollToOffset(t.scrollOffset+e,{adjustments:void 0,behavior:i})},this.getTotalSize=function(){var e,n,i,o=t.getMeasurements()
10794
10794
  0===o.length?e=t.options.paddingStart:e=1===t.options.lanes?null!=(n=null==(i=o[o.length-1])?void 0:i.end)?n:0:Math.max.apply(Math,o.slice(-t.options.lanes).map((function(e){return e.end})))
10795
10795
  return e-t.options.scrollMargin+t.options.paddingEnd},this._scrollToOffset=function(e,n){var i=n.adjustments,o=n.behavior
10796
- t.options.scrollToFn(e,{behavior:o,adjustments:i},t)},this.measure=function(){t.itemSizeCache=new Map,t.notify(!1)},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((function(e){t.itemSizeCache.set(e.key,e.size)})),this.maybeNotify()},cD=function(e,t,n,i){for(;e<=t;){var o=(e+t)/2|0,r=n(o)
10796
+ t.options.scrollToFn(e,{behavior:o,adjustments:i},t)},this.measure=function(){t.itemSizeCache=new Map,t.notify(!1)},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((function(e){t.itemSizeCache.set(e.key,e.size)})),this.maybeNotify()},dD=function(e,t,n,i){for(;e<=t;){var o=(e+t)/2|0,r=n(o)
10797
10797
  if(r<i)e=o+1
10798
10798
  else{if(!(r>i))return o
10799
10799
  t=o-1}}return e>0?e-1:0}
@@ -10807,23 +10807,23 @@ t=o-1}}return e>0?e-1:0}
10807
10807
  * LICENSE.md file in the root directory of this source tree.
10808
10808
  *
10809
10809
  * @license MIT
10810
- */class dD{constructor(e,t){this.visibleItems=[],this.scrollHeight=0,this.headerContainerMarginRight=0,this.rowContainerYOffset=0,this.table=e,this.tanStackTable=t,this.viewportResizeObserver=new ResizeObserver((e=>{const t=e[0]?.borderBoxSize[0]
10810
+ */class hD{constructor(e,t){this.visibleItems=[],this.scrollHeight=0,this.headerContainerMarginRight=0,this.rowContainerYOffset=0,this.table=e,this.tanStackTable=t,this.viewportResizeObserver=new ResizeObserver((e=>{const t=e[0]?.borderBoxSize[0]
10811
10811
  if(t){const e=t.inlineSize
10812
10812
  this.headerContainerMarginRight=e-this.table.viewport.clientWidth}}))}connect(){this.viewportResizeObserver.observe(this.table.viewport),this.updateVirtualizer(),this.table.viewport.scrollTo({top:this.virtualizer.scrollOffset})}disconnect(){this.viewportResizeObserver.disconnect()}dataChanged(){this.table.$fastController.isConnected&&this.updateVirtualizer()}updateVirtualizer(){const e=this.createVirtualizerOptions()
10813
- this.virtualizer?this.virtualizer.setOptions(e):this.virtualizer=new lD(e),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const e=parseFloat(tl.getValueFor(this.table))+2*parseFloat(al.getValueFor(this.table))
10814
- return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:t=>e,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:aD,observeElementOffset:rD,observeElementRect:oD,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
10813
+ this.virtualizer?this.virtualizer.setOptions(e):this.virtualizer=new cD(e),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const e=parseFloat(tl.getValueFor(this.table))+2*parseFloat(al.getValueFor(this.table))
10814
+ return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:t=>e,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:lD,observeElementOffset:sD,observeElementRect:rD,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
10815
10815
  const e=this.virtualizer
10816
10816
  this.visibleItems=e.getVirtualItems(),this.scrollHeight=e.getTotalSize()
10817
10817
  let t=0
10818
10818
  if(this.visibleItems.length>0){t=this.visibleItems[0].start}this.rowContainerYOffset=t}notifyFocusedCellRecycling(){let e=this.table.shadowRoot.activeElement
10819
- for(;null!==e&&!(e instanceof SR)&&e.shadowRoot;)e=e.shadowRoot.activeElement
10820
- if(e instanceof SR&&e.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){const e=this.table.rowElements.find((e=>e.recordId===this.table.openActionMenuRecordId))
10821
- e?.closeOpenActionMenus()}}}function hD(e){switch(e){case yR:return pD
10822
- case xR:return uD
10823
- default:return pD}}function uD(e,t,n){const i=e.getValue(n),o=t.getValue(n)
10824
- return"string"==typeof i&&"string"==typeof o?i.localeCompare(o):i===o?0:void 0===i||null===i&&void 0!==o?-1:1}function pD(e,t,n){const i=e.getValue(n),o=t.getValue(n)
10825
- return Object.is(i,o)?0:void 0===i?-1:void 0===o?1:null===i?-1:null===o?1:Number.isNaN(i)?-1:Number.isNaN(o)?1:0===i&&0===o?Object.is(i,-0)?-1:1:i>o?1:-1}e([g],dD.prototype,"visibleItems",void 0),e([g],dD.prototype,"scrollHeight",void 0),e([g],dD.prototype,"headerContainerMarginRight",void 0),e([g],dD.prototype,"rowContainerYOffset",void 0)
10826
- class fD{constructor(e){this.table=e,this.isColumnBeingSized=!1,this.visibleColumns=[],this.currentTotalDelta=0,this.dragStart=0,this.initialColumnWidths=[],this.onDividerMouseMove=e=>{const t=e
10819
+ for(;null!==e&&!(e instanceof $R)&&e.shadowRoot;)e=e.shadowRoot.activeElement
10820
+ if(e instanceof $R&&e.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){const e=this.table.rowElements.find((e=>e.recordId===this.table.openActionMenuRecordId))
10821
+ e?.closeOpenActionMenus()}}}function uD(e){switch(e){case xR:return fD
10822
+ case kR:return pD
10823
+ default:return fD}}function pD(e,t,n){const i=e.getValue(n),o=t.getValue(n)
10824
+ return"string"==typeof i&&"string"==typeof o?i.localeCompare(o):i===o?0:void 0===i||null===i&&void 0!==o?-1:1}function fD(e,t,n){const i=e.getValue(n),o=t.getValue(n)
10825
+ return Object.is(i,o)?0:void 0===i?-1:void 0===o?1:null===i?-1:null===o?1:Number.isNaN(i)?-1:Number.isNaN(o)?1:0===i&&0===o?Object.is(i,-0)?-1:1:i>o?1:-1}e([g],hD.prototype,"visibleItems",void 0),e([g],hD.prototype,"scrollHeight",void 0),e([g],hD.prototype,"headerContainerMarginRight",void 0),e([g],hD.prototype,"rowContainerYOffset",void 0)
10826
+ class mD{constructor(e){this.table=e,this.isColumnBeingSized=!1,this.visibleColumns=[],this.currentTotalDelta=0,this.dragStart=0,this.initialColumnWidths=[],this.onDividerMouseMove=e=>{const t=e
10827
10827
  for(let e=0;e<this.visibleColumns.length;e++)this.visibleColumns[e].columnInternals.currentPixelWidth=this.initialColumnWidths[e]?.initialPixelWidth
10828
10828
  this.currentTotalDelta=this.getAllowedSizeDelta(t.clientX-this.dragStart),this.performCascadeSizeLeft(this.leftColumnIndex,this.currentTotalDelta),this.performCascadeSizeRight(this.rightColumnIndex,this.currentTotalDelta)
10829
10829
  const n=this.getTotalColumnFixedWidth()-this.initialColumnTotalWidth
@@ -10847,10 +10847,10 @@ for(const e of this.visibleColumns)this.initialColumnWidths.push({initalColumnFr
10847
10847
  const e=this.gridSizedColumns.reduce(((e,t)=>e+t.columnInternals.currentPixelWidth),0),t=e/this.gridSizedColumns.length
10848
10848
  let n=0
10849
10849
  for(let e=0;e<this.visibleColumns.length&&n<this.gridSizedColumns.length;e++){const i=this.visibleColumns[e]
10850
- i===this.gridSizedColumns[n]&&(n+=1,i.columnInternals.currentFractionalWidth=i.columnInternals.currentPixelWidth/t,i.columnInternals.currentPixelWidth=void 0)}}getVisibleColumns(){return this.table.columns.filter((e=>!e.columnHidden))}getLeftColumnIndexFromDivider(e){return Math.floor(e/2)}}e([g],fD.prototype,"isColumnBeingSized",void 0),e([g],fD.prototype,"activeColumnIndex",void 0)
10851
- const mD=(e,...t)=>{for(const n of t)if(e===n)return!0
10852
- return!1},gD=["rowIds","rowParentIds","groupRows","columnIds","columnSort","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
10853
- class vD extends KE{constructor(e){super(gD),this.table=e,this.updateQueued=!1}get updateRowIds(){return this.isTracked("rowIds")}get updateRowParentIds(){return this.isTracked("rowParentIds")}get updateGroupRows(){return this.isTracked("groupRows")}get updateColumnIds(){return this.isTracked("columnIds")}get updateColumnSort(){return this.isTracked("columnSort")}get updateColumnWidths(){return this.isTracked("columnWidths")}get updateColumnDefinition(){return this.isTracked("columnDefinition")}get updateActionMenuSlots(){return this.isTracked("actionMenuSlots")}get updateSelectionMode(){return this.isTracked("selectionMode")}get requiresTanStackUpdate(){return this.isTracked("rowIds")||this.isTracked("rowParentIds")||this.isTracked("columnSort")||this.isTracked("columnDefinition")||this.isTracked("groupRows")||this.isTracked("selectionMode")}get requiresTanStackDataReset(){return this.isTracked("rowIds")||this.isTracked("columnDefinition")||this.isTracked("rowParentIds")}trackAllStateChanged(){this.trackAll(),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(e){mD(e,"columnId")?this.track("columnIds"):_R(e,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):mD(e,"sortingDisabled")||_R(e,"currentSortDirection","currentSortIndex")?this.track("columnSort"):mD(e,"columnHidden")||_R(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.track("columnWidths"):mD(e,"actionMenuSlot")?this.track("actionMenuSlots"):_R(e,"groupIndex","groupingDisabled")&&this.track("groupRows"),this.queueUpdate()}trackColumnInstancesChanged(){this.track("columnIds"),this.track("columnDefinition"),this.track("columnSort"),this.track("columnWidths"),this.track("actionMenuSlots"),this.track("groupRows"),this.queueUpdate()}trackIdFieldNameChanged(){this.track("rowIds"),this.queueUpdate()}trackParentIdFieldNameChanged(){this.track("rowParentIds"),this.queueUpdate()}trackSelectionModeChanged(){this.track("selectionMode"),this.queueUpdate()}queueUpdate(){this.table.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.table.update(),this.untrackAll(),this.updateQueued=!1}))))}}class bD{constructor(e){this.tanStackTable=e}reset(){}toggleIsRowSelected(e,t){e.isGroupRow&&e.selectionState===bR?this.deselectAllLeafRows(e.id):this.tanStackTable.getRow(e.id).toggleSelected(t,{selectChildren:e.isGroupRow})}selectSingleRow(e){if(e.isGroupRow)throw new Error("function not intended to select grouped rows")
10850
+ i===this.gridSizedColumns[n]&&(n+=1,i.columnInternals.currentFractionalWidth=i.columnInternals.currentPixelWidth/t,i.columnInternals.currentPixelWidth=void 0)}}getVisibleColumns(){return this.table.columns.filter((e=>!e.columnHidden))}getLeftColumnIndexFromDivider(e){return Math.floor(e/2)}}e([g],mD.prototype,"isColumnBeingSized",void 0),e([g],mD.prototype,"activeColumnIndex",void 0)
10851
+ const gD=(e,...t)=>{for(const n of t)if(e===n)return!0
10852
+ return!1},vD=["rowIds","rowParentIds","groupRows","columnIds","columnSort","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
10853
+ class bD extends KE{constructor(e){super(vD),this.table=e,this.updateQueued=!1}get updateRowIds(){return this.isTracked("rowIds")}get updateRowParentIds(){return this.isTracked("rowParentIds")}get updateGroupRows(){return this.isTracked("groupRows")}get updateColumnIds(){return this.isTracked("columnIds")}get updateColumnSort(){return this.isTracked("columnSort")}get updateColumnWidths(){return this.isTracked("columnWidths")}get updateColumnDefinition(){return this.isTracked("columnDefinition")}get updateActionMenuSlots(){return this.isTracked("actionMenuSlots")}get updateSelectionMode(){return this.isTracked("selectionMode")}get requiresTanStackUpdate(){return this.isTracked("rowIds")||this.isTracked("rowParentIds")||this.isTracked("columnSort")||this.isTracked("columnDefinition")||this.isTracked("groupRows")||this.isTracked("selectionMode")}get requiresTanStackDataReset(){return this.isTracked("rowIds")||this.isTracked("columnDefinition")||this.isTracked("rowParentIds")}trackAllStateChanged(){this.trackAll(),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(e){gD(e,"columnId")?this.track("columnIds"):ER(e,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):gD(e,"sortingDisabled")||ER(e,"currentSortDirection","currentSortIndex")?this.track("columnSort"):gD(e,"columnHidden")||ER(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.track("columnWidths"):gD(e,"actionMenuSlot")?this.track("actionMenuSlots"):ER(e,"groupIndex","groupingDisabled")&&this.track("groupRows"),this.queueUpdate()}trackColumnInstancesChanged(){this.track("columnIds"),this.track("columnDefinition"),this.track("columnSort"),this.track("columnWidths"),this.track("actionMenuSlots"),this.track("groupRows"),this.queueUpdate()}trackIdFieldNameChanged(){this.track("rowIds"),this.queueUpdate()}trackParentIdFieldNameChanged(){this.track("rowParentIds"),this.queueUpdate()}trackSelectionModeChanged(){this.track("selectionMode"),this.queueUpdate()}queueUpdate(){this.table.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.table.update(),this.untrackAll(),this.updateQueued=!1}))))}}class wD{constructor(e){this.tanStackTable=e}reset(){}toggleIsRowSelected(e,t){e.isGroupRow&&e.selectionState===wR?this.deselectAllLeafRows(e.id):this.tanStackTable.getRow(e.id).toggleSelected(t,{selectChildren:e.isGroupRow})}selectSingleRow(e){if(e.isGroupRow)throw new Error("function not intended to select grouped rows")
10854
10854
  const t=this.tanStackTable.getState().rowSelection,n=[]
10855
10855
  if(Object.entries(t).forEach((([e,t])=>{t&&n.push(e)})),1===n.length&&n[0]===e.id)return!1
10856
10856
  const i={}
@@ -10860,7 +10860,7 @@ this.tanStackTable.setRowSelection(i)}getAllLeafRowIds(e){const t=this.tanStackT
10860
10860
  return t?.getIsGrouped()?t.getLeafRows().filter((e=>!e.getIsGrouped())).map((e=>e.id)):[]}getAllOrderedRows(){const e=this.tanStackTable.getPreExpandedRowModel().rows
10861
10861
  return this.getOrderedRows(e)}getOrderedRows(e){const t=[]
10862
10862
  for(const n of e)t.push(n),n.subRows?.length&&t.push(...this.getOrderedRows(n.subRows))
10863
- return t}}class wD extends bD{handleRowSelectionToggle(e,t,n){return!1}handleRowClick(e,t,n){return!1}handleActionMenuOpening(e){return!1}}class yD extends bD{handleRowSelectionToggle(e,t,n){return n&&this.tryUpdateRangeSelection(e.id)||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e,t)),!0}handleRowClick(e,t,n){return n?(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e),!0):!(!t||!this.tryUpdateRangeSelection(e.id))||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.selectSingleRow(e))}handleActionMenuOpening(e){return e.selectionState!==bR&&this.selectSingleRow(e)}reset(){this.shiftSelectStartRowId=void 0,this.previousShiftSelectRowEndId=void 0}tryUpdateRangeSelection(e){if(void 0===this.shiftSelectStartRowId)return!1
10863
+ return t}}class yD extends wD{handleRowSelectionToggle(e,t,n){return!1}handleRowClick(e,t,n){return!1}handleActionMenuOpening(e){return!1}}class xD extends wD{handleRowSelectionToggle(e,t,n){return n&&this.tryUpdateRangeSelection(e.id)||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e,t)),!0}handleRowClick(e,t,n){return n?(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e),!0):!(!t||!this.tryUpdateRangeSelection(e.id))||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.selectSingleRow(e))}handleActionMenuOpening(e){return e.selectionState!==wR&&this.selectSingleRow(e)}reset(){this.shiftSelectStartRowId=void 0,this.previousShiftSelectRowEndId=void 0}tryUpdateRangeSelection(e){if(void 0===this.shiftSelectStartRowId)return!1
10864
10864
  const t=this.getAllOrderedRows(),n=this.getRowIndexForId(this.shiftSelectStartRowId,t)
10865
10865
  if(-1===n)return!1
10866
10866
  const i=this.tanStackTable.getState().rowSelection
@@ -10870,33 +10870,35 @@ this.updateSelectionStateForRange(e,n,o,i,!0)}updateSelectionStateForRange(e,t,n
10870
10870
  const r=Math.min(t,n),s=Math.max(t,n)
10871
10871
  for(let t=r;t<=s;t++){const n=i[t]
10872
10872
  n.getIsGrouped()||this.updateSelectionStateForRow(e,n.id,o)}const a=i[n]
10873
- a.getIsGrouped()&&this.getAllLeafRowIds(a.id).forEach((t=>this.updateSelectionStateForRow(e,t,o)))}updateSelectionStateForRow(e,t,n){n?e[t]=!0:delete e[t]}getRowIndexForId(e,t){return e?t.findIndex((t=>t.id===e)):-1}}class xD extends bD{handleRowSelectionToggle(e,t,n){return this.toggleIsRowSelected(e,t),!0}handleRowClick(e,t,n){return this.selectSingleRow(e)}handleActionMenuOpening(e){return this.handleRowClick(e,!1,!1)}}class kD{constructor(e,t){this.tanStackTable=e,this.selectionManager=this.createSelectionManager(t)}handleRowSelectionToggle(e,t,n){return!!e&&this.selectionManager.handleRowSelectionToggle(e,t,n)}handleRowClick(e,t,n){return!!e&&this.selectionManager.handleRowClick(e,t,n)}handleActionMenuOpening(e){return!!e&&this.selectionManager.handleActionMenuOpening(e)}handleSelectionModeChanged(e){this.selectionManager=this.createSelectionManager(e)}handleSelectionReset(){this.selectionManager.reset()}getCurrentSelectedRecordIds(){const e=this.tanStackTable.options.state.rowSelection
10873
+ a.getIsGrouped()&&this.getAllLeafRowIds(a.id).forEach((t=>this.updateSelectionStateForRow(e,t,o)))}updateSelectionStateForRow(e,t,n){n?e[t]=!0:delete e[t]}getRowIndexForId(e,t){return e?t.findIndex((t=>t.id===e)):-1}}class kD extends wD{handleRowSelectionToggle(e,t,n){return this.toggleIsRowSelected(e,t),!0}handleRowClick(e,t,n){return this.selectSingleRow(e)}handleActionMenuOpening(e){return this.handleRowClick(e,!1,!1)}}class CD{constructor(e,t){this.tanStackTable=e,this.selectionManager=this.createSelectionManager(t)}handleRowSelectionToggle(e,t,n){return!!e&&this.selectionManager.handleRowSelectionToggle(e,t,n)}handleRowClick(e,t,n){return!!e&&this.selectionManager.handleRowClick(e,t,n)}handleActionMenuOpening(e){return!!e&&this.selectionManager.handleActionMenuOpening(e)}handleSelectionModeChanged(e){this.selectionManager=this.createSelectionManager(e)}handleSelectionReset(){this.selectionManager.reset()}getCurrentSelectedRecordIds(){const e=this.tanStackTable.options.state.rowSelection
10874
10874
  if(!e)return[]
10875
10875
  const t=[]
10876
- return Object.entries(e).forEach((([e,n])=>{n&&t.push(e)})),t}createSelectionManager(e){switch(e){case gR.multiple:return new yD(this.tanStackTable)
10877
- case gR.single:return new xD(this.tanStackTable)
10878
- case gR.none:return new wD(this.tanStackTable)
10879
- default:throw new Error("unknown selection mode found")}}}function CD(e,t){const n=t,i=[],o={},r=new Set
10876
+ return Object.entries(e).forEach((([e,n])=>{n&&t.push(e)})),t}createSelectionManager(e){switch(e){case vR.multiple:return new xD(this.tanStackTable)
10877
+ case vR.single:return new kD(this.tanStackTable)
10878
+ case vR.none:return new yD(this.tanStackTable)
10879
+ default:throw new Error("unknown selection mode found")}}}function SD(e,t){const n=t,i=[],o={},r=new Set
10880
10880
  for(let t=0;t<e.length;t++){const s=e[t],a=s[n.id],l=s[n.parentId]
10881
10881
  Object.prototype.hasOwnProperty.call(o,a)||(o[a]={subRows:[],clientRecord:void 0,originalIndex:void 0}),r&&r.delete(a),o[a].clientRecord=s
10882
10882
  const c=o[a]
10883
10883
  c.originalIndex=t,null==l?i.push(c):(Object.prototype.hasOwnProperty.call(o,l)||(o[l]={subRows:[],clientRecord:void 0,originalIndex:void 0},r&&r.add(l)),o[l].subRows.push(c))}if(r?.size){const e=Array.from(r.values()).join(",")
10884
- throw new Error(`The items array contains orphans that point to the following parentIds: [${e}]. These parentIds do not exist in the items array.`)}if(SD(i)<Object.keys(o).length)throw new Error("The items array contains nodes with a circular parent/child relationship.")
10885
- return i}function SD(e){return e.reduce(((e,t)=>e+1+(t.subRows&&SD(t.subRows))),0)}class $D{constructor(e,t,n){if(this.isDataFlat=!1,"string"==typeof t&&"string"==typeof n)try{this._hierarchicalData=CD(e,{id:t,parentId:n}),this.isDataFlat=!1,this._parentIdConfigurationValid=!0}catch{this.isDataFlat=!0,this._hierarchicalData=e.map(((e,t)=>({clientRecord:{...e},originalIndex:t}))),this._parentIdConfigurationValid=!1}else this.isDataFlat=!0,this._hierarchicalData=e.map(((e,t)=>({clientRecord:{...e},originalIndex:t}))),this._parentIdConfigurationValid=!0}get hierarchicalData(){return this._hierarchicalData}get parentIdConfigurationValid(){return this._parentIdConfigurationValid}getAllRecords(e=!1){const t=[]
10886
- return this.getAllNodes(this._hierarchicalData,t),this.isDataFlat||!e?t.map((e=>e.clientRecord)):t.sort(((e,t)=>e.originalIndex-t.originalIndex)).map((e=>e.clientRecord))}getAllNodes(e,t){for(const n of e)t.push(n),n.subRows&&this.getAllNodes(n.subRows,t)}}class MD{constructor(e){this.tanStackTable=e,this.isInDefaultState=!0,this.collapsedRows=new Set,this.hierarchyOptions=new Map,this.isHierarchyEnabled=!1}isRowExpanded(e){return!!this.isRowExpandable(e)&&(0!==e.subRows.length&&(this.isInDefaultState||!this.collapsedRows.has(e.id)))}toggleRowExpansion(e){if(!this.isRowExpandable(e))return
10884
+ throw new Error(`The items array contains orphans that point to the following parentIds: [${e}]. These parentIds do not exist in the items array.`)}if($D(i)<Object.keys(o).length)throw new Error("The items array contains nodes with a circular parent/child relationship.")
10885
+ return i}function $D(e){return e.reduce(((e,t)=>e+1+(t.subRows&&$D(t.subRows))),0)}class MD{constructor(e,t,n){if(this.isDataFlat=!1,"string"==typeof t&&"string"==typeof n)try{this._hierarchicalData=SD(e,{id:t,parentId:n}),this.isDataFlat=!1,this._parentIdConfigurationValid=!0}catch{this.isDataFlat=!0,this._hierarchicalData=e.map(((e,t)=>({clientRecord:{...e},originalIndex:t}))),this._parentIdConfigurationValid=!1}else this.isDataFlat=!0,this._hierarchicalData=e.map(((e,t)=>({clientRecord:{...e},originalIndex:t}))),this._parentIdConfigurationValid=!0}get hierarchicalData(){return this._hierarchicalData}get parentIdConfigurationValid(){return this._parentIdConfigurationValid}getAllRecords(e=!1){const t=[]
10886
+ return this.getAllNodes(this._hierarchicalData,t),this.isDataFlat||!e?t.map((e=>e.clientRecord)):t.sort(((e,t)=>e.originalIndex-t.originalIndex)).map((e=>e.clientRecord))}getAllNodes(e,t){for(const n of e)t.push(n),n.subRows&&this.getAllNodes(n.subRows,t)}}class _D{constructor(e){this.tanStackTable=e,this.explicitExpansionStates=new Map,this.hierarchyOptions=new Map,this.isHierarchyEnabled=!1,this.parentRowsWithChildren=new Set}isRowExpanded(e){if(!this.isRowExpandable(e))return!1
10887
+ return this.explicitExpansionStates.get(e.id)??this.getDefaultExpansionState(e)}toggleRowExpansion(e){if(!this.isRowExpandable(e))return
10887
10888
  const t=this.isRowExpanded(e)
10888
- this.isInDefaultState=!1,t?this.collapsedRows.add(e.id):this.collapsedRows.delete(e.id),e.toggleExpanded()}collapseAll(){this.resetExpansionState(),this.isInDefaultState=!1
10889
+ this.explicitExpansionStates.set(e.id,!t),e.toggleExpanded()}collapseAll(){this.resetExpansionState()
10889
10890
  const e=this.tanStackTable.getRowModel().flatRows
10890
- for(const t of e)this.isRowExpandable(t)&&this.collapsedRows.add(t.id)
10891
- this.tanStackTable.toggleAllRowsExpanded(!1)}resetExpansionState(){this.collapsedRows.clear(),this.isInDefaultState=!0}resetHierarchyOptions(){this.hierarchyOptions.clear()}processDataUpdate(e){if(0===this.collapsedRows.size&&0===this.hierarchyOptions.size)return
10892
- const t=new Set,n=new Map
10893
- for(const i of e){const e=i.id
10894
- this.collapsedRows.has(e)&&t.add(e)
10895
- const o=this.hierarchyOptions.get(e)
10896
- !i.getIsGrouped()&&o&&n.set(e,o)}this.collapsedRows=t,this.hierarchyOptions=n}setHierarchyOptions(e){this.hierarchyOptions.clear()
10897
- for(const{recordId:t,options:n}of e)this.hierarchyOptions.set(t,n)}isRowExpandable(e){return e.subRows.length>0||this.canLoadDelayedChildren(e.id)}setHierarchyEnabled(e){this.isHierarchyEnabled=e}isLoadingChildren(e){return!!this.isHierarchyEnabled&&(this.hierarchyOptions.get(e)?.delayedHierarchyState===fR??!1)}canLoadDelayedChildren(e){if(!this.isHierarchyEnabled)return!1
10891
+ for(const t of e)this.isRowExpandable(t)&&this.explicitExpansionStates.set(t.id,!1)
10892
+ this.tanStackTable.toggleAllRowsExpanded(!1)}resetExpansionState(){this.explicitExpansionStates.clear()}resetHierarchyOptions(){this.hierarchyOptions.clear()}processDataUpdate(e){if(0===this.explicitExpansionStates.size&&0===this.hierarchyOptions.size)return
10893
+ const t=new Map,n=new Map,i=new Set
10894
+ for(const o of e){const e=o.id,r=o.getIsGrouped(),s=this.hierarchyOptions.get(e)
10895
+ if(!r&&s&&n.set(e,s),this.isRowExpandable(o)){const n=this.explicitExpansionStates.get(e)
10896
+ if(void 0!==n&&t.set(e,n),!r){0!==o.subRows.length?i.add(e):this.parentRowsWithChildren.has(e)&&t.set(e,!1)}}}this.explicitExpansionStates=t,this.hierarchyOptions=n,this.parentRowsWithChildren=i}setHierarchyOptions(e){const t=new Map
10897
+ for(const{recordId:n,options:i}of e){t.set(n,i)
10898
+ const e=this.hierarchyOptions.get(n)?.delayedHierarchyState,o=i.delayedHierarchyState
10899
+ e!==mR||o!==fR||this.parentRowsWithChildren.has(n)||this.explicitExpansionStates.delete(n)}this.hierarchyOptions=t}isRowExpandable(e){return e.subRows.length>0||this.canLoadDelayedChildren(e.id)}setHierarchyEnabled(e){this.isHierarchyEnabled=e}isLoadingChildren(e){return!!this.isHierarchyEnabled&&(this.hierarchyOptions.get(e)?.delayedHierarchyState===mR??!1)}canLoadDelayedChildren(e){if(!this.isHierarchyEnabled)return!1
10898
10900
  const t=this.hierarchyOptions.get(e)?.delayedHierarchyState
10899
- return t!==pR}}class _D extends zt{constructor(){super(),this.selectionMode=gR.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=vR,this.showCollapseAll=!1,this.visibleColumns=[],this.tableScrollableMinWidth=0,this.documentShiftKeyDown=!1,this.tableValidator=new IR,this.tableUpdateTracker=new vD(this),this.columnNotifiers=[],this.isInitialized=!1,this.ignoreSelectionChangeEvents=!1,this.onViewPortScroll=e=>{this.scrollX=e.target.scrollLeft},this.onKeyDown=e=>{e.key===pa&&(this.documentShiftKeyDown=!0)},this.onKeyUp=e=>{e.key===pa&&(this.documentShiftKeyDown=!1)},this.getRowCanExpand=e=>this.expansionManager.isRowExpandable(e),this.getIsRowExpanded=e=>this.expansionManager.isRowExpanded(e),this.handleRowSelectionChange=e=>{const t=e instanceof Function?e(this.table.getState().rowSelection):e
10901
+ return t!==pR}getDefaultExpansionState(e){return 0!==e.subRows.length}}class ED extends zt{constructor(){super(),this.selectionMode=vR.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=bR,this.showCollapseAll=!1,this.visibleColumns=[],this.tableScrollableMinWidth=0,this.documentShiftKeyDown=!1,this.tableValidator=new AR,this.tableUpdateTracker=new bD(this),this.columnNotifiers=[],this.isInitialized=!1,this.ignoreSelectionChangeEvents=!1,this.onViewPortScroll=e=>{this.scrollX=e.target.scrollLeft},this.onKeyDown=e=>{e.key===pa&&(this.documentShiftKeyDown=!0)},this.onKeyUp=e=>{e.key===pa&&(this.documentShiftKeyDown=!1)},this.getRowCanExpand=e=>this.expansionManager.isRowExpandable(e),this.getIsRowExpanded=e=>this.expansionManager.isRowExpanded(e),this.handleRowSelectionChange=e=>{const t=e instanceof Function?e(this.table.getState().rowSelection):e
10900
10902
  this.updateTableOptions({state:{rowSelection:t}})},this.handleExpandedChange=e=>{const t=e instanceof Function?e(this.table.getState().expanded):e
10901
10903
  this.updateTableOptions({state:{expanded:t}})},this.options={data:[],onStateChange:e=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:e=>ST((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},i=function(t,o,r){void 0===o&&(o=0)
10902
10904
  const s=[]
@@ -10919,19 +10921,19 @@ return{rows:a(n.rows),flatRows:o,rowsById:n.rowsById}}),{key:!1,debug:()=>{var t
10919
10921
  return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getGroupedRowModel:uR(),getExpandedRowModel:e=>ST((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:n?function(e){const t=[],n=e=>{var i
10920
10922
  t.push(e),null!=(i=e.subRows)&&i.length&&e.getIsExpanded()&&e.subRows.forEach(n)}
10921
10923
  return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}(t):t),{key:!1,debug:()=>{var t
10922
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getRowCanExpand:this.getRowCanExpand,getIsRowExpanded:this.getIsRowExpanded,getSubRows:e=>e.subRows,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:e=>!e.getIsGrouped(),enableMultiRowSelection:!1,enableSubRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=dR(this.options),this.virtualizer=new dD(this,this.table),this.layoutManager=new fD(this),this.layoutManagerNotifier=m.getNotifier(this.layoutManager),this.layoutManagerNotifier.subscribe(this,"isColumnBeingSized"),this.selectionManager=new kD(this.table,this.selectionMode),this.expansionManager=new MD(this.table)}get validity(){return this.tableValidator.getValidity()}get showRowOperationColumn(){return this.selectionMode===gR.multiple||this.showCollapseAll}async setData(e){await this.processPendingUpdates()
10924
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getRowCanExpand:this.getRowCanExpand,getIsRowExpanded:this.getIsRowExpanded,getSubRows:e=>e.subRows,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:e=>!e.getIsGrouped(),enableMultiRowSelection:!1,enableSubRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=dR(this.options),this.virtualizer=new hD(this,this.table),this.layoutManager=new mD(this),this.layoutManagerNotifier=m.getNotifier(this.layoutManager),this.layoutManagerNotifier.subscribe(this,"isColumnBeingSized"),this.selectionManager=new CD(this.table,this.selectionMode),this.expansionManager=new _D(this.table)}get validity(){return this.tableValidator.getValidity()}get showRowOperationColumn(){return this.selectionMode===vR.multiple||this.showCollapseAll}async setData(e){await this.processPendingUpdates()
10923
10925
  const t=this.calculateTanStackData(e)
10924
- this.updateTableOptions(t)}async getSelectedRecordIds(){return await this.processPendingUpdates(),this.selectionManager.getCurrentSelectedRecordIds()}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==gR.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}async setRecordHierarchyOptions(e){await this.processPendingUpdates()
10926
+ this.updateTableOptions(t)}async getSelectedRecordIds(){return await this.processPendingUpdates(),this.selectionManager.getCurrentSelectedRecordIds()}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==vR.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}async setRecordHierarchyOptions(e){await this.processPendingUpdates()
10925
10927
  const t=structuredClone(e),n=this.tableValidator.getOptionsWithPresentIds(t)
10926
- this.expansionManager.setHierarchyOptions(n),this.refreshRows()}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connect(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0}),document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp)}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnect(),this.viewport.removeEventListener("scroll",this.onViewPortScroll),document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("keyup",this.onKeyUp)}checkValidity(){return this.tableValidator.isValid()}handleChange(e,t){(e instanceof ER||e instanceof MR)&&"string"==typeof t?"validConfiguration"===t?this.tableValidator.validateColumnConfigurations(this.columns):this.tableUpdateTracker.trackColumnPropertyChanged(t):e instanceof fD&&"isColumnBeingSized"===t&&!this.layoutManager.isColumnBeingSized&&this.emitColumnConfigurationChangeEvent()}onRowSelectionToggle(e,t){t.stopImmediatePropagation()
10928
+ this.expansionManager.setHierarchyOptions(n),this.refreshRows()}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connect(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0}),document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp)}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnect(),this.viewport.removeEventListener("scroll",this.onViewPortScroll),document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("keyup",this.onKeyUp)}checkValidity(){return this.tableValidator.isValid()}handleChange(e,t){(e instanceof IR||e instanceof _R)&&"string"==typeof t?"validConfiguration"===t?this.tableValidator.validateColumnConfigurations(this.columns):this.tableUpdateTracker.trackColumnPropertyChanged(t):e instanceof mD&&"isColumnBeingSized"===t&&!this.layoutManager.isColumnBeingSized&&this.emitColumnConfigurationChangeEvent()}onRowSelectionToggle(e,t){t.stopImmediatePropagation()
10927
10929
  this.selectionManager.handleRowSelectionToggle(this.tableData[e],t.detail.newState,this.documentShiftKeyDown)&&this.emitSelectionChangeEvent()}onRowClick(e,t){return this.selectionManager.handleRowClick(this.tableData[e],t.shiftKey,t.ctrlKey||t.metaKey)&&this.emitSelectionChangeEvent(),!0}onAllRowsSelectionChange(e){e.stopPropagation(),this.ignoreSelectionChangeEvents||(this.table.toggleAllRowsSelected(this.selectionCheckbox.checked),this.emitSelectionChangeEvent())}onRowActionMenuBeforeToggle(e,t){t.stopImmediatePropagation(),this.handleActionMenuBeforeToggleEvent(e,t)}onRowActionMenuToggle(e){e.stopImmediatePropagation(),this.handleRowActionMenuToggleEvent(e)}handleCollapseAllRows(){this.expansionManager.collapseAll()}onRightDividerMouseDown(e,t){0===e.button&&this.layoutManager.beginColumnInteractiveSize(e.clientX,2*t)}onLeftDividerMouseDown(e,t){0===e.button&&this.layoutManager.beginColumnInteractiveSize(e.clientX,2*t-1)}handleGroupRowExpanded(e,t){this.toggleRowExpanded(e),t.stopPropagation()}handleRowExpanded(e){this.toggleRowExpanded(e)}toggleColumnSort(e,t){if(e.sortingDisabled)return
10928
10930
  const n=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.columnInternals.currentSortIndex-t.columnInternals.currentSortIndex)),i=n.indexOf(e),o=i>-1,r=e.columnInternals.currentSortDirection
10929
- let s=mR.ascending
10930
- o?r===mR.descending?(n.splice(i,1),s=mR.none,e.columnInternals.currentSortIndex=void 0):s=mR.descending:n.push(e),e.columnInternals.currentSortDirection=s
10931
+ let s=gR.ascending
10932
+ o?r===gR.descending?(n.splice(i,1),s=gR.none,e.columnInternals.currentSortIndex=void 0):s=gR.descending:n.push(e),e.columnInternals.currentSortDirection=s
10931
10933
  for(let i=0;i<n.length;i++){const o=n[i]
10932
- t?n[i].columnInternals.currentSortIndex=i:o===e?o.columnInternals.currentSortIndex=0:(o.columnInternals.currentSortIndex=void 0,o.columnInternals.currentSortDirection=mR.none)}this.emitColumnConfigurationChangeEvent()}update(){this.validate(),this.tableUpdateTracker.requiresTanStackUpdate&&this.updateTanStack(),this.tableUpdateTracker.updateActionMenuSlots&&this.updateActionMenuSlots(),this.tableUpdateTracker.updateColumnWidths&&(this.rowGridColumns=this.layoutManager.getGridTemplateColumns(),this.visibleColumns=this.columns.filter((e=>!e.columnHidden)))}get ariaMultiSelectable(){switch(this.selectionMode){case gR.multiple:return"true"
10933
- case gR.single:return"false"
10934
- default:return null}}getHeaderContainerElements(){return this.columnHeadersContainer.querySelectorAll(".header-container")}calculateTanStackData(e){this.dataHierarchyManager=new $D(e,this.idFieldName,this.parentIdFieldName)
10934
+ t?n[i].columnInternals.currentSortIndex=i:o===e?o.columnInternals.currentSortIndex=0:(o.columnInternals.currentSortIndex=void 0,o.columnInternals.currentSortDirection=gR.none)}this.emitColumnConfigurationChangeEvent()}update(){this.validate(),this.tableUpdateTracker.requiresTanStackUpdate&&this.updateTanStack(),this.tableUpdateTracker.updateActionMenuSlots&&this.updateActionMenuSlots(),this.tableUpdateTracker.updateColumnWidths&&(this.rowGridColumns=this.layoutManager.getGridTemplateColumns(),this.visibleColumns=this.columns.filter((e=>!e.columnHidden)))}get ariaMultiSelectable(){switch(this.selectionMode){case vR.multiple:return"true"
10935
+ case vR.single:return"false"
10936
+ default:return null}}getHeaderContainerElements(){return this.columnHeadersContainer.querySelectorAll(".header-container")}calculateTanStackData(e){this.dataHierarchyManager=new MD(e,this.idFieldName,this.parentIdFieldName)
10935
10937
  const t=this.dataHierarchyManager.hierarchicalData
10936
10938
  this.tableValidator.setParentIdConfigurationValidity(this.dataHierarchyManager.parentIdConfigurationValid)
10937
10939
  const n={data:t}
@@ -10939,37 +10941,37 @@ if(this.validateWithData(e),this.tableValidator.areRecordIdsValid()){const e=thi
10939
10941
  n.state={rowSelection:this.calculateTanStackSelectionState(e),expanded:!0}}return n}selectionModeChanged(e,t){this.$fastController.isConnected&&this.tableUpdateTracker.trackSelectionModeChanged()}idFieldNameChanged(e,t){this.$fastController.isConnected&&this.tableUpdateTracker.trackIdFieldNameChanged()}parentIdFieldNameChanged(e,t){this.$fastController.isConnected&&this.tableUpdateTracker.trackParentIdFieldNameChanged()}columnsChanged(e,t){this.$fastController.isConnected&&(this.observeColumns(),this.tableUpdateTracker.trackColumnInstancesChanged())}async handleActionMenuBeforeToggleEvent(e,t){this.selectionManager.handleActionMenuOpening(this.tableData[e])&&await this.emitSelectionChangeEvent(),this.openActionMenuRecordId=t.detail.recordIds[0]
10940
10942
  const n=await this.getActionMenuToggleEventDetail(t)
10941
10943
  this.$emit("action-menu-beforetoggle",n)}async handleRowActionMenuToggleEvent(e){const t=await this.getActionMenuToggleEventDetail(e)
10942
- this.$emit("action-menu-toggle",t),e.detail.newState||(this.openActionMenuRecordId=void 0)}async getActionMenuToggleEventDetail(e){const t=this.selectionMode===gR.multiple?await this.getSelectedRecordIds():[this.openActionMenuRecordId]
10944
+ this.$emit("action-menu-toggle",t),e.detail.newState||(this.openActionMenuRecordId=void 0)}async getActionMenuToggleEventDetail(e){const t=this.selectionMode===vR.multiple?await this.getSelectedRecordIds():[this.openActionMenuRecordId]
10943
10945
  return{...e.detail,recordIds:t}}removeColumnObservers(){this.columnNotifiers.forEach((e=>{e.unsubscribe(this)})),this.columnNotifiers=[]}initialize(){this.isInitialized||(this.isInitialized=!0,this.$fastController.onConnectedCallback(),this.tableUpdateTracker.trackAllStateChanged(),this.observeColumns())}async processPendingUpdates(){if(this.initialize(),await u.nextUpdate(),this.tableUpdateTracker.hasPendingUpdates)throw new Error("Expected pending updates to be resolved")}observeColumns(){this.removeColumnObservers()
10944
10946
  for(const e of this.columns){const t=m.getNotifier(e)
10945
10947
  t.subscribe(this),this.columnNotifiers.push(t)
10946
10948
  const n=m.getNotifier(e.columnInternals)
10947
- n.subscribe(this),this.columnNotifiers.push(n)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.sortingDisabled&&e.columnInternals.currentSortDirection!==mR.none&&"number"==typeof e.columnInternals.currentSortIndex))}getColumnsParticipatingInGrouping(){return this.columns.filter((e=>!e.columnInternals.groupingDisabled&&"number"==typeof e.columnInternals.groupIndex))}childItemsChanged(){this.updateColumnsFromChildItems()}async updateColumnsFromChildItems(){await QE(this.childItems),this.columns=this.childItems.filter((e=>e instanceof ER))}updateTanStack(){const e={state:{}}
10948
- if(this.tableUpdateTracker.updateColumnSort&&(e.state.sorting=this.calculateTanStackSortState()),this.tableUpdateTracker.updateColumnDefinition&&(e.columns=this.calculateTanStackColumns()),this.tableUpdateTracker.updateRowIds&&(e.getRowId=this.calculateTanStackRowIdFunction(),e.state.rowSelection={},this.selectionManager.handleSelectionReset(),this.expansionManager.resetHierarchyOptions()),this.tableUpdateTracker.updateRowParentIds&&this.expansionManager.setHierarchyEnabled(this.isHierarchyEnabled()),this.tableUpdateTracker.updateSelectionMode&&(e.enableMultiRowSelection=this.selectionMode===gR.multiple,e.enableSubRowSelection=this.selectionMode===gR.multiple,e.state.rowSelection={},this.selectionManager.handleSelectionModeChanged(this.selectionMode)),this.dataHierarchyManager&&this.tableUpdateTracker.requiresTanStackDataReset)if(this.parentIdFieldName||this.tableUpdateTracker.updateRowParentIds){const t=this.dataHierarchyManager.getAllRecords(!0),n=this.calculateTanStackData(t)
10949
+ n.subscribe(this),this.columnNotifiers.push(n)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.sortingDisabled&&e.columnInternals.currentSortDirection!==gR.none&&"number"==typeof e.columnInternals.currentSortIndex))}getColumnsParticipatingInGrouping(){return this.columns.filter((e=>!e.columnInternals.groupingDisabled&&"number"==typeof e.columnInternals.groupIndex))}childItemsChanged(){this.updateColumnsFromChildItems()}async updateColumnsFromChildItems(){await QE(this.childItems),this.columns=this.childItems.filter((e=>e instanceof IR))}updateTanStack(){const e={state:{}}
10950
+ if(this.tableUpdateTracker.updateColumnSort&&(e.state.sorting=this.calculateTanStackSortState()),this.tableUpdateTracker.updateColumnDefinition&&(e.columns=this.calculateTanStackColumns()),this.tableUpdateTracker.updateRowIds&&(e.getRowId=this.calculateTanStackRowIdFunction(),e.state.rowSelection={},this.selectionManager.handleSelectionReset(),this.expansionManager.resetHierarchyOptions()),this.tableUpdateTracker.updateRowParentIds&&this.expansionManager.setHierarchyEnabled(this.isHierarchyEnabled()),this.tableUpdateTracker.updateSelectionMode&&(e.enableMultiRowSelection=this.selectionMode===vR.multiple,e.enableSubRowSelection=this.selectionMode===vR.multiple,e.state.rowSelection={},this.selectionManager.handleSelectionModeChanged(this.selectionMode)),this.dataHierarchyManager&&this.tableUpdateTracker.requiresTanStackDataReset)if(this.parentIdFieldName||this.tableUpdateTracker.updateRowParentIds){const t=this.dataHierarchyManager.getAllRecords(!0),n=this.calculateTanStackData(t)
10949
10951
  n.state&&(e.state.rowSelection=n.state.rowSelection),e.data=n.data}else e.data=[...this.table.options.data]
10950
10952
  this.tableUpdateTracker.updateGroupRows&&(e.state.grouping=this.calculateTanStackGroupingState()),(this.tableUpdateTracker.updateRowIds||this.tableUpdateTracker.updateRowParentIds||this.tableUpdateTracker.updateGroupRows)&&(e.state.expanded=!0,this.expansionManager.resetExpansionState()),this.updateTableOptions(e)}updateActionMenuSlots(){const e=new Set
10951
10953
  for(const t of this.columns)t.actionMenuSlot&&e.add(t.actionMenuSlot)
10952
10954
  this.actionMenuSlots=Array.from(e)}validate(){this.tableValidator.validateIdFieldConfiguration(this.selectionMode,this.idFieldName,this.parentIdFieldName),this.tableValidator.validateColumnIds(this.columns.map((e=>e.columnId))),this.tableValidator.validateColumnSortIndices(this.getColumnsParticipatingInSorting().map((e=>e.columnInternals.currentSortIndex))),this.tableValidator.validateColumnGroupIndices(this.getColumnsParticipatingInGrouping().map((e=>e.columnInternals.groupIndex))),this.tableValidator.validateColumnConfigurations(this.columns),this.dataHierarchyManager&&this.validateWithData(this.dataHierarchyManager.getAllRecords())}validateWithData(e){this.tableValidator.validateRecordIds(e,this.idFieldName),this.canRenderRows=this.checkValidity()}emitColumnConfigurationChangeEvent(){const e={columns:this.columns.map((e=>({columnId:e.columnId,sortIndex:e.columnInternals.currentSortIndex??void 0,sortDirection:e.columnInternals.currentSortDirection,groupIndex:e.columnInternals.groupIndex,hidden:e.columnHidden,fractionalWidth:e.columnInternals.currentFractionalWidth,pixelWidth:e.columnInternals.currentPixelWidth})))}
10953
10955
  this.$emit("column-configuration-change",e)}async emitSelectionChangeEvent(){const e={selectedRecordIds:await this.getSelectedRecordIds()}
10954
- this.$emit("selection-change",e)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===bR,this.selectionCheckbox.indeterminate=this.selectionState===wR,this.ignoreSelectionChangeEvents=!1)}isHierarchyEnabled(){return"string"==typeof this.parentIdFieldName}refreshRows(){this.selectionState=this.getTableSelectionState()
10956
+ this.$emit("selection-change",e)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===wR,this.selectionCheckbox.indeterminate=this.selectionState===yR,this.ignoreSelectionChangeEvents=!1)}isHierarchyEnabled(){return"string"==typeof this.parentIdFieldName}refreshRows(){this.selectionState=this.getTableSelectionState()
10955
10957
  let e=!1
10956
10958
  const t=this.table.getRowModel().rows
10957
10959
  this.tableData=t.map((t=>{const n=t.getIsGrouped(),i=!n&&t.getParentRow(),o=!n&&this.getRowCanExpand(t),r=!n&&!o&&!i&&t.depth>0&&!this.parentIdFieldName,s={record:t.original.clientRecord,id:t.id,selectionState:this.getRowSelectionState(t),isGroupRow:n,isExpanded:t.getIsExpanded(),groupRowValue:n?t.getValue(t.groupingColumnId):void 0,nestingLevel:r?t.depth-1:t.depth,isParentRow:o,immediateChildCount:t.subRows.length,groupColumn:this.getGroupRowColumn(t),isLoadingChildren:this.expansionManager.isLoadingChildren(t.id)}
10958
- return e=e||o,s})),this.showCollapseAll=e||this.getColumnsParticipatingInGrouping().length>0,this.virtualizer.dataChanged()}getTableSelectionState(){return this.table.getIsAllRowsSelected()?bR:this.table.getIsSomeRowsSelected()?wR:vR}getRowSelectionState(e){return e.getIsGrouped()?this.getGroupedRowSelectionState(e):e.getIsSelected()?bR:vR}getGroupedRowSelectionState(e){const t=e.getLeafRows().filter((e=>!e.getIsGrouped()))??[]
10960
+ return e=e||o,s})),this.showCollapseAll=e||this.getColumnsParticipatingInGrouping().length>0,this.virtualizer.dataChanged()}getTableSelectionState(){return this.table.getIsAllRowsSelected()?wR:this.table.getIsSomeRowsSelected()?yR:bR}getRowSelectionState(e){return e.getIsGrouped()?this.getGroupedRowSelectionState(e):e.getIsSelected()?wR:bR}getGroupedRowSelectionState(e){const t=e.getLeafRows().filter((e=>!e.getIsGrouped()))??[]
10959
10961
  let n=!1,i=!1
10960
- for(const e of t)if(e.getIsSelected()?n=!0:i=!0,n&&i)return wR
10961
- return n?bR:vR}getGroupRowColumn(e){const t=e.groupingColumnId
10962
+ for(const e of t)if(e.getIsSelected()?n=!0:i=!0,n&&i)return yR
10963
+ return n?wR:bR}getGroupRowColumn(e){const t=e.groupingColumnId
10962
10964
  if(void 0!==t)return this.columns.find((e=>e.columnInternals.uniqueId===t))}updateTableOptions(e){if(this.options={...this.options,...e,state:{...this.options.state,...e.state}},this.table.setOptions(this.options),e.data&&this.tableValidator.areRecordIdsValid()){const e=this.table.getRowModel().flatRows
10963
10965
  this.expansionManager.processDataUpdate(e)}this.refreshRows()}toggleRowExpanded(e){const t=this.table.getRowModel().rows[e]
10964
10966
  this.expansionManager.toggleRowExpansion(t)}calculateTanStackSortState(){const e=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.columnInternals.currentSortIndex-t.columnInternals.currentSortIndex))
10965
- return this.firstSortedColumn=e.length?e[0]:void 0,e.map((e=>({id:e.columnInternals.uniqueId,desc:e.columnInternals.currentSortDirection===mR.descending})))}calculateTanStackGroupingState(){return this.getColumnsParticipatingInGrouping().sort(((e,t)=>e.columnInternals.groupIndex-t.columnInternals.groupIndex)).map((e=>e.columnInternals.uniqueId))}calculateTanStackRowIdFunction(){return null===this.idFieldName||void 0===this.idFieldName?void 0:e=>e.clientRecord[this.idFieldName]}calculateTanStackColumns(){return this.columns.map((e=>({id:e.columnInternals.uniqueId,accessorFn:t=>{const n=e.columnInternals.operandDataRecordFieldName
10966
- if("string"==typeof n)return t.clientRecord[n]},sortingFn:hD(e.columnInternals.sortOperation),sortUndefined:!1})))}calculateTanStackSelectionState(e){if(this.selectionMode===gR.none)return{}
10967
+ return this.firstSortedColumn=e.length?e[0]:void 0,e.map((e=>({id:e.columnInternals.uniqueId,desc:e.columnInternals.currentSortDirection===gR.descending})))}calculateTanStackGroupingState(){return this.getColumnsParticipatingInGrouping().sort(((e,t)=>e.columnInternals.groupIndex-t.columnInternals.groupIndex)).map((e=>e.columnInternals.uniqueId))}calculateTanStackRowIdFunction(){return null===this.idFieldName||void 0===this.idFieldName?void 0:e=>e.clientRecord[this.idFieldName]}calculateTanStackColumns(){return this.columns.map((e=>({id:e.columnInternals.uniqueId,accessorFn:t=>{const n=e.columnInternals.operandDataRecordFieldName
10968
+ if("string"==typeof n)return t.clientRecord[n]},sortingFn:uD(e.columnInternals.sortOperation),sortUndefined:!1})))}calculateTanStackSelectionState(e){if(this.selectionMode===vR.none)return{}
10967
10969
  const t={},n=this.tableValidator.getPresentRecordIds(e)
10968
- for(const e of n)if(t[e]=!0,this.selectionMode===gR.single)break
10969
- return t}}e([se({attribute:"id-field-name"})],_D.prototype,"idFieldName",void 0),e([se({attribute:"parent-id-field-name"})],_D.prototype,"parentIdFieldName",void 0),e([se({attribute:"selection-mode"})],_D.prototype,"selectionMode",void 0),e([g],_D.prototype,"tableData",void 0),e([g],_D.prototype,"columns",void 0),e([g],_D.prototype,"childItems",void 0),e([g],_D.prototype,"rowElements",void 0),e([g],_D.prototype,"actionMenuSlots",void 0),e([g],_D.prototype,"openActionMenuRecordId",void 0),e([g],_D.prototype,"canRenderRows",void 0),e([g],_D.prototype,"scrollX",void 0),e([g],_D.prototype,"rowGridColumns",void 0),e([g],_D.prototype,"selectionState",void 0),e([g],_D.prototype,"selectionCheckbox",void 0),e([g],_D.prototype,"showCollapseAll",void 0),e([g],_D.prototype,"firstSortedColumn",void 0),e([g],_D.prototype,"visibleColumns",void 0),e([g],_D.prototype,"tableScrollableMinWidth",void 0),e([g],_D.prototype,"documentShiftKeyDown",void 0)
10970
- const ED=_D.compose({baseName:"table",template:YR,styles:AR})
10971
- bi.getOrCreate().withPrefix("nimble").register(ED())
10972
- const ID=we`
10970
+ for(const e of n)if(t[e]=!0,this.selectionMode===vR.single)break
10971
+ return t}}e([se({attribute:"id-field-name"})],ED.prototype,"idFieldName",void 0),e([se({attribute:"parent-id-field-name"})],ED.prototype,"parentIdFieldName",void 0),e([se({attribute:"selection-mode"})],ED.prototype,"selectionMode",void 0),e([g],ED.prototype,"tableData",void 0),e([g],ED.prototype,"columns",void 0),e([g],ED.prototype,"childItems",void 0),e([g],ED.prototype,"rowElements",void 0),e([g],ED.prototype,"actionMenuSlots",void 0),e([g],ED.prototype,"openActionMenuRecordId",void 0),e([g],ED.prototype,"canRenderRows",void 0),e([g],ED.prototype,"scrollX",void 0),e([g],ED.prototype,"rowGridColumns",void 0),e([g],ED.prototype,"selectionState",void 0),e([g],ED.prototype,"selectionCheckbox",void 0),e([g],ED.prototype,"showCollapseAll",void 0),e([g],ED.prototype,"firstSortedColumn",void 0),e([g],ED.prototype,"visibleColumns",void 0),e([g],ED.prototype,"tableScrollableMinWidth",void 0),e([g],ED.prototype,"documentShiftKeyDown",void 0)
10972
+ const ID=ED.compose({baseName:"table",template:QR,styles:OR})
10973
+ bi.getOrCreate().withPrefix("nimble").register(ID())
10974
+ const AD=we`
10973
10975
  :host {
10974
10976
  display: contents;
10975
10977
  }
@@ -10979,14 +10981,14 @@ const ID=we`
10979
10981
  overflow: hidden;
10980
10982
  text-overflow: ellipsis;
10981
10983
  }
10982
- `,AD=Z`<span
10984
+ `,OD=Z`<span
10983
10985
  ${ig("hasOverflow")}
10984
10986
  class="header-content"
10985
10987
  title=${e=>e.hasOverflow&&e.headerTextContent?e.headerTextContent:null}
10986
10988
  >
10987
10989
  <slot ${Ne("contentSlot")}></slot>
10988
10990
  </span>`
10989
- function OD(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.fractionalWidth?this.columnInternals.fractionalWidth=this.fractionalWidth:this.columnInternals.fractionalWidth=1}minPixelWidthChanged(){"number"==typeof this.minPixelWidth?this.columnInternals.minPixelWidth=this.minPixelWidth:this.columnInternals.minPixelWidth=117}}return se({attribute:"fractional-width",converter:oe})(t.prototype,"fractionalWidth"),se({attribute:"min-pixel-width",converter:oe})(t.prototype,"minPixelWidth"),t}function TD(e){class t extends e{constructor(){super(...arguments),this.groupingDisabled=!1,this.groupIndex=null}groupingDisabledChanged(){this.columnInternals.groupingDisabled=this.groupingDisabled}groupIndexChanged(){"number"==typeof this.groupIndex?this.columnInternals.groupIndex=this.groupIndex:this.columnInternals.groupIndex=void 0}}return se({attribute:"grouping-disabled",mode:"boolean"})(t.prototype,"groupingDisabled"),se({attribute:"group-index",converter:oe})(t.prototype,"groupIndex"),t}const RD=we`
10991
+ function TD(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.fractionalWidth?this.columnInternals.fractionalWidth=this.fractionalWidth:this.columnInternals.fractionalWidth=1}minPixelWidthChanged(){"number"==typeof this.minPixelWidth?this.columnInternals.minPixelWidth=this.minPixelWidth:this.columnInternals.minPixelWidth=117}}return se({attribute:"fractional-width",converter:oe})(t.prototype,"fractionalWidth"),se({attribute:"min-pixel-width",converter:oe})(t.prototype,"minPixelWidth"),t}function RD(e){class t extends e{constructor(){super(...arguments),this.groupingDisabled=!1,this.groupIndex=null}groupingDisabledChanged(){this.columnInternals.groupingDisabled=this.groupingDisabled}groupIndexChanged(){"number"==typeof this.groupIndex?this.columnInternals.groupIndex=this.groupIndex:this.columnInternals.groupIndex=void 0}}return se({attribute:"grouping-disabled",mode:"boolean"})(t.prototype,"groupingDisabled"),se({attribute:"group-index",converter:oe})(t.prototype,"groupIndex"),t}const DD=we`
10990
10992
  :host {
10991
10993
  width: fit-content;
10992
10994
  max-width: 100%;
@@ -11007,7 +11009,7 @@ function OD(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
11007
11009
  overflow: hidden;
11008
11010
  text-overflow: ellipsis;
11009
11011
  }
11010
- `,DD=Z`
11012
+ `,ND=Z`
11011
11013
  <template
11012
11014
  @click="${(e,t)=>("string"==typeof e.cellRecord?.href&&t.event.stopPropagation(),!0)}"
11013
11015
  >
@@ -11023,7 +11025,7 @@ function OD(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
11023
11025
  target="${e=>e.columnConfig?.target}"
11024
11026
  type="${e=>e.columnConfig?.type}"
11025
11027
  download="${e=>e.columnConfig?.download}"
11026
- underline-hidden="${e=>e.columnConfig?.underlineHidden}"
11028
+ ?underline-hidden="${e=>e.columnConfig?.underlineHidden}"
11027
11029
  appearance="${e=>e.columnConfig?.appearance}"
11028
11030
  title=${e=>e.hasOverflow?e.text:null}
11029
11031
  >
@@ -11038,18 +11040,18 @@ function OD(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
11038
11040
  </span>`)}
11039
11041
  </template>
11040
11042
  `
11041
- class ND extends SR{constructor(){super(...arguments),this.hasOverflow=!1}get text(){return"string"==typeof this.cellRecord?.label?this.cellRecord.label:"string"==typeof this.cellRecord?.href?this.cellRecord.href:""}focusedRecycleCallback(){this.anchor?.blur()}}e([g],ND.prototype,"hasOverflow",void 0),e([v],ND.prototype,"text",null)
11042
- const PD=ND.compose({baseName:"table-column-anchor-cell-view",template:DD,styles:RD})
11043
- bi.getOrCreate().withPrefix("nimble").register(PD())
11044
- class LD extends kR{constructor(){super(...arguments),this.hasOverflow=!1,this.text=""}}e([g],LD.prototype,"hasOverflow",void 0),e([g],LD.prototype,"text",void 0)
11045
- const zD=Z`
11043
+ class PD extends $R{constructor(){super(...arguments),this.hasOverflow=!1}get text(){return"string"==typeof this.cellRecord?.label?this.cellRecord.label:"string"==typeof this.cellRecord?.href?this.cellRecord.href:""}focusedRecycleCallback(){this.anchor?.blur()}}e([g],PD.prototype,"hasOverflow",void 0),e([v],PD.prototype,"text",null)
11044
+ const LD=PD.compose({baseName:"table-column-anchor-cell-view",template:ND,styles:DD})
11045
+ bi.getOrCreate().withPrefix("nimble").register(LD())
11046
+ class zD extends CR{constructor(){super(...arguments),this.hasOverflow=!1,this.text=""}}e([g],zD.prototype,"hasOverflow",void 0),e([g],zD.prototype,"text",void 0)
11047
+ const FD=Z`
11046
11048
  <span
11047
11049
  ${ig("hasOverflow")}
11048
11050
  title="${e=>e.hasOverflow&&e.text?e.text:null}"
11049
11051
  >
11050
11052
  ${e=>e.text}
11051
11053
  </span>
11052
- `,FD=we`
11054
+ `,VD=we`
11053
11055
  span {
11054
11056
  font: ${Nc};
11055
11057
  color: ${Pc};
@@ -11058,19 +11060,19 @@ const zD=Z`
11058
11060
  text-overflow: ellipsis;
11059
11061
  }
11060
11062
  `
11061
- const VD=class extends LD{groupHeaderValueChanged(){this.text="string"==typeof this.groupHeaderValue?this.groupHeaderValue:""}}.compose({baseName:"table-column-text-group-header-view",template:zD,styles:FD})
11062
- bi.getOrCreate().withPrefix("nimble").register(VD())
11063
- const HD="nimble-table-column-text-group-header-view"
11064
- class BD extends(TD(OD(ER))){constructor(){super(...arguments),this.underlineHidden=!1}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:"nimble-table-column-anchor-cell-view",groupHeaderViewTag:HD,delegatedEvents:["click"],sortOperation:xR}}labelFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName],this.columnInternals.operandDataRecordFieldName=this.labelFieldName}hrefFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName]}appearanceChanged(){this.updateColumnConfig()}underlineHiddenChanged(){this.updateColumnConfig()}hreflangChanged(){this.updateColumnConfig()}pingChanged(){this.updateColumnConfig()}referrerpolicyChanged(){this.updateColumnConfig()}relChanged(){this.updateColumnConfig()}targetChanged(){this.updateColumnConfig()}typeChanged(){this.updateColumnConfig()}downloadChanged(){this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.columnConfig={appearance:this.appearance,underlineHidden:this.underlineHidden,hreflang:this.hreflang,ping:this.ping,referrerpolicy:this.referrerpolicy,rel:this.rel,target:this.target,type:this.type,download:this.download}}}e([se({attribute:"label-field-name"})],BD.prototype,"labelFieldName",void 0),e([se({attribute:"href-field-name"})],BD.prototype,"hrefFieldName",void 0),e([se],BD.prototype,"appearance",void 0),e([se({attribute:"underline-hidden",mode:"boolean"})],BD.prototype,"underlineHidden",void 0),e([se],BD.prototype,"hreflang",void 0),e([se],BD.prototype,"ping",void 0),e([se],BD.prototype,"referrerpolicy",void 0),e([se],BD.prototype,"rel",void 0),e([se],BD.prototype,"target",void 0),e([se],BD.prototype,"type",void 0),e([se],BD.prototype,"download",void 0)
11065
- const qD=BD.compose({baseName:"table-column-anchor",template:AD,styles:ID})
11066
- bi.getOrCreate().withPrefix("nimble").register(qD())
11067
- class jD extends(TD(OD(ER))){fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}}function UD(e,t){if("number"!=typeof t)return""
11068
- try{return e.format(t)}catch(e){return""}}e([se({attribute:"field-name"})],jD.prototype,"fieldName",void 0)
11069
- const WD=class extends LD{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.columnConfig?this.text=UD(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-date-text-group-header-view",template:zD,styles:FD})
11070
- bi.getOrCreate().withPrefix("nimble").register(WD())
11071
- const ZD="left",GD="right",KD=Z`
11063
+ const HD=class extends zD{groupHeaderValueChanged(){this.text="string"==typeof this.groupHeaderValue?this.groupHeaderValue:""}}.compose({baseName:"table-column-text-group-header-view",template:FD,styles:VD})
11064
+ bi.getOrCreate().withPrefix("nimble").register(HD())
11065
+ const BD="nimble-table-column-text-group-header-view"
11066
+ class qD extends(RD(TD(IR))){constructor(){super(...arguments),this.underlineHidden=!1}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:"nimble-table-column-anchor-cell-view",groupHeaderViewTag:BD,delegatedEvents:["click"],sortOperation:kR}}labelFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName],this.columnInternals.operandDataRecordFieldName=this.labelFieldName}hrefFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName]}appearanceChanged(){this.updateColumnConfig()}underlineHiddenChanged(){this.updateColumnConfig()}hreflangChanged(){this.updateColumnConfig()}pingChanged(){this.updateColumnConfig()}referrerpolicyChanged(){this.updateColumnConfig()}relChanged(){this.updateColumnConfig()}targetChanged(){this.updateColumnConfig()}typeChanged(){this.updateColumnConfig()}downloadChanged(){this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.columnConfig={appearance:this.appearance,underlineHidden:this.underlineHidden,hreflang:this.hreflang,ping:this.ping,referrerpolicy:this.referrerpolicy,rel:this.rel,target:this.target,type:this.type,download:this.download}}}e([se({attribute:"label-field-name"})],qD.prototype,"labelFieldName",void 0),e([se({attribute:"href-field-name"})],qD.prototype,"hrefFieldName",void 0),e([se],qD.prototype,"appearance",void 0),e([se({attribute:"underline-hidden",mode:"boolean"})],qD.prototype,"underlineHidden",void 0),e([se],qD.prototype,"hreflang",void 0),e([se],qD.prototype,"ping",void 0),e([se],qD.prototype,"referrerpolicy",void 0),e([se],qD.prototype,"rel",void 0),e([se],qD.prototype,"target",void 0),e([se],qD.prototype,"type",void 0),e([se],qD.prototype,"download",void 0)
11067
+ const jD=qD.compose({baseName:"table-column-anchor",template:OD,styles:AD})
11068
+ bi.getOrCreate().withPrefix("nimble").register(jD())
11069
+ class UD extends(RD(TD(IR))){fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}}function WD(e,t){if("number"!=typeof t)return""
11070
+ try{return e.format(t)}catch(e){return""}}e([se({attribute:"field-name"})],UD.prototype,"fieldName",void 0)
11071
+ const ZD=class extends zD{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.columnConfig?this.text=WD(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-date-text-group-header-view",template:FD,styles:VD})
11072
+ bi.getOrCreate().withPrefix("nimble").register(ZD())
11073
+ const GD="left",KD="right",JD=Z`
11072
11074
  <template
11073
- class="${e=>e.alignment===GD?"right-align":""}"
11075
+ class="${e=>e.alignment===KD?"right-align":""}"
11074
11076
  >
11075
11077
  <span
11076
11078
  ${ig("hasOverflow")}
@@ -11079,7 +11081,7 @@ const ZD="left",GD="right",KD=Z`
11079
11081
  ${e=>e.text}
11080
11082
  </span>
11081
11083
  </template>
11082
- `,JD=we`
11084
+ `,XD=we`
11083
11085
  :host(.right-align) {
11084
11086
  margin-left: auto;
11085
11087
  }
@@ -11092,22 +11094,22 @@ const ZD="left",GD="right",KD=Z`
11092
11094
  text-overflow: ellipsis;
11093
11095
  }
11094
11096
  `
11095
- class XD extends SR{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=ZD}}e([g],XD.prototype,"hasOverflow",void 0),e([g],XD.prototype,"text",void 0),e([g],XD.prototype,"alignment",void 0)
11096
- const YD=class extends XD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){this.columnConfig?this.text=UD(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}.compose({baseName:"table-column-date-text-cell-view",template:KD,styles:JD})
11097
- bi.getOrCreate().withPrefix("nimble").register(YD())
11098
- const QD=void 0
11099
- class eN extends GE{isValid(){return this.noneTracked()}getValidationFlags(){return this.getTrackedItems()}}class tN extends eN{constructor(e,t){super(t),this.columnInternals=e}getValidity(){return this.getValidationFlags()}setConditionValue(e,t){t?this.track(e):this.untrack(e),this.updateColumnInternalsFlag()}updateColumnInternalsFlag(){this.columnInternals.validConfiguration=this.isValid()}}const nN=["invalidCustomOptionsCombination"]
11100
- class iN extends tN{constructor(e){super(e,nN)}setCustomOptionsValidity(e){this.setConditionValue("invalidCustomOptionsCombination",!e)}}const oN={toView:e=>"boolean"==typeof e?e.toString():null,fromView:e=>"true"===e||!0===e||"false"!==e&&!1!==e&&void 0}
11101
- class rN extends jD{constructor(){super(...arguments),this.validator=new iN(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ca.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ca.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-date-text-cell-view",groupHeaderViewTag:"nimble-table-column-date-text-group-header-view",delegatedEvents:[],sortOperation:yR}}formatChanged(){this.updateColumnConfig()}customLocaleMatcherChanged(){this.updateColumnConfig()}customWeekdayChanged(){this.updateColumnConfig()}customEraChanged(){this.updateColumnConfig()}customYearChanged(){this.updateColumnConfig()}customMonthChanged(){this.updateColumnConfig()}customDayChanged(){this.updateColumnConfig()}customHourChanged(){this.updateColumnConfig()}customMinuteChanged(){this.updateColumnConfig()}customSecondChanged(){this.updateColumnConfig()}customTimeZoneNameChanged(){this.updateColumnConfig()}customFormatMatcherChanged(){this.updateColumnConfig()}customHour12Changed(){this.updateColumnConfig()}customTimeZoneChanged(){this.updateColumnConfig()}customCalendarChanged(){this.updateColumnConfig()}customDayPeriodChanged(){this.updateColumnConfig()}customNumberingSystemChanged(){this.updateColumnConfig()}customDateStyleChanged(){this.updateColumnConfig()}customTimeStyleChanged(){this.updateColumnConfig()}customHourCycleChanged(){this.updateColumnConfig()}updateColumnConfig(){const e=this.createFormatter()
11097
+ class YD extends $R{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=GD}}e([g],YD.prototype,"hasOverflow",void 0),e([g],YD.prototype,"text",void 0),e([g],YD.prototype,"alignment",void 0)
11098
+ const QD=class extends YD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){this.columnConfig?this.text=WD(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}.compose({baseName:"table-column-date-text-cell-view",template:JD,styles:XD})
11099
+ bi.getOrCreate().withPrefix("nimble").register(QD())
11100
+ const eN=void 0
11101
+ class tN extends GE{isValid(){return this.noneTracked()}getValidationFlags(){return this.getTrackedItems()}}class nN extends tN{constructor(e,t){super(t),this.columnInternals=e}getValidity(){return this.getValidationFlags()}setConditionValue(e,t){t?this.track(e):this.untrack(e),this.updateColumnInternalsFlag()}updateColumnInternalsFlag(){this.columnInternals.validConfiguration=this.isValid()}}const iN=["invalidCustomOptionsCombination"]
11102
+ class oN extends nN{constructor(e){super(e,iN)}setCustomOptionsValidity(e){this.setConditionValue("invalidCustomOptionsCombination",!e)}}const rN={toView:e=>"boolean"==typeof e?e.toString():null,fromView:e=>"true"===e||!0===e||"false"!==e&&!1!==e&&void 0}
11103
+ class sN extends UD{constructor(){super(...arguments),this.validator=new oN(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ca.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ca.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-date-text-cell-view",groupHeaderViewTag:"nimble-table-column-date-text-group-header-view",delegatedEvents:[],sortOperation:xR}}formatChanged(){this.updateColumnConfig()}customLocaleMatcherChanged(){this.updateColumnConfig()}customWeekdayChanged(){this.updateColumnConfig()}customEraChanged(){this.updateColumnConfig()}customYearChanged(){this.updateColumnConfig()}customMonthChanged(){this.updateColumnConfig()}customDayChanged(){this.updateColumnConfig()}customHourChanged(){this.updateColumnConfig()}customMinuteChanged(){this.updateColumnConfig()}customSecondChanged(){this.updateColumnConfig()}customTimeZoneNameChanged(){this.updateColumnConfig()}customFormatMatcherChanged(){this.updateColumnConfig()}customHour12Changed(){this.updateColumnConfig()}customTimeZoneChanged(){this.updateColumnConfig()}customCalendarChanged(){this.updateColumnConfig()}customDayPeriodChanged(){this.updateColumnConfig()}customNumberingSystemChanged(){this.updateColumnConfig()}customDateStyleChanged(){this.updateColumnConfig()}customTimeStyleChanged(){this.updateColumnConfig()}customHourCycleChanged(){this.updateColumnConfig()}updateColumnConfig(){const e=this.createFormatter()
11102
11104
  if(e){const t={formatter:e}
11103
11105
  this.columnInternals.columnConfig=t,this.validator.setCustomOptionsValidity(!0)}else this.columnInternals.columnConfig=void 0,this.validator.setCustomOptionsValidity(!1)}createFormatter(){let e
11104
- e=this.format===QD?{dateStyle:"medium",timeStyle:"medium"}:this.getCustomFormattingOptions()
11105
- try{return new Intl.DateTimeFormat(Ca.getValueFor(this),e)}catch(e){return}}getCustomFormattingOptions(){return{localeMatcher:this.customLocaleMatcher??void 0,weekday:this.customWeekday??void 0,era:this.customEra??void 0,year:this.customYear??void 0,month:this.customMonth??void 0,day:this.customDay??void 0,hour:this.customHour??void 0,minute:this.customMinute??void 0,second:this.customSecond??void 0,timeZoneName:this.customTimeZoneName??void 0,formatMatcher:this.customFormatMatcher??void 0,hour12:this.customHour12??void 0,timeZone:this.customTimeZone??void 0,calendar:this.customCalendar??void 0,dayPeriod:this.customDayPeriod??void 0,numberingSystem:this.customNumberingSystem??void 0,dateStyle:this.customDateStyle??void 0,timeStyle:this.customTimeStyle??void 0,hourCycle:this.customHourCycle??void 0}}}e([se],rN.prototype,"format",void 0),e([se({attribute:"custom-locale-matcher"})],rN.prototype,"customLocaleMatcher",void 0),e([se({attribute:"custom-weekday"})],rN.prototype,"customWeekday",void 0),e([se({attribute:"custom-era"})],rN.prototype,"customEra",void 0),e([se({attribute:"custom-year"})],rN.prototype,"customYear",void 0),e([se({attribute:"custom-month"})],rN.prototype,"customMonth",void 0),e([se({attribute:"custom-day"})],rN.prototype,"customDay",void 0),e([se({attribute:"custom-hour"})],rN.prototype,"customHour",void 0),e([se({attribute:"custom-minute"})],rN.prototype,"customMinute",void 0),e([se({attribute:"custom-second"})],rN.prototype,"customSecond",void 0),e([se({attribute:"custom-time-zone-name"})],rN.prototype,"customTimeZoneName",void 0),e([se({attribute:"custom-format-matcher"})],rN.prototype,"customFormatMatcher",void 0),e([se({attribute:"custom-hour12",converter:oN})],rN.prototype,"customHour12",void 0),e([se({attribute:"custom-time-zone"})],rN.prototype,"customTimeZone",void 0),e([se({attribute:"custom-calendar"})],rN.prototype,"customCalendar",void 0),e([se({attribute:"custom-day-period"})],rN.prototype,"customDayPeriod",void 0),e([se({attribute:"custom-numbering-system"})],rN.prototype,"customNumberingSystem",void 0),e([se({attribute:"custom-date-style"})],rN.prototype,"customDateStyle",void 0),e([se({attribute:"custom-time-style"})],rN.prototype,"customTimeStyle",void 0),e([se({attribute:"custom-hour-cycle"})],rN.prototype,"customHourCycle",void 0)
11106
- const sN=rN.compose({baseName:"table-column-date-text",template:AD,styles:ID})
11107
- bi.getOrCreate().withPrefix("nimble").register(sN())
11108
- const aN=class extends XD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:KD,styles:JD})
11106
+ e=this.format===eN?{dateStyle:"medium",timeStyle:"medium"}:this.getCustomFormattingOptions()
11107
+ try{return new Intl.DateTimeFormat(Ca.getValueFor(this),e)}catch(e){return}}getCustomFormattingOptions(){return{localeMatcher:this.customLocaleMatcher??void 0,weekday:this.customWeekday??void 0,era:this.customEra??void 0,year:this.customYear??void 0,month:this.customMonth??void 0,day:this.customDay??void 0,hour:this.customHour??void 0,minute:this.customMinute??void 0,second:this.customSecond??void 0,timeZoneName:this.customTimeZoneName??void 0,formatMatcher:this.customFormatMatcher??void 0,hour12:this.customHour12??void 0,timeZone:this.customTimeZone??void 0,calendar:this.customCalendar??void 0,dayPeriod:this.customDayPeriod??void 0,numberingSystem:this.customNumberingSystem??void 0,dateStyle:this.customDateStyle??void 0,timeStyle:this.customTimeStyle??void 0,hourCycle:this.customHourCycle??void 0}}}e([se],sN.prototype,"format",void 0),e([se({attribute:"custom-locale-matcher"})],sN.prototype,"customLocaleMatcher",void 0),e([se({attribute:"custom-weekday"})],sN.prototype,"customWeekday",void 0),e([se({attribute:"custom-era"})],sN.prototype,"customEra",void 0),e([se({attribute:"custom-year"})],sN.prototype,"customYear",void 0),e([se({attribute:"custom-month"})],sN.prototype,"customMonth",void 0),e([se({attribute:"custom-day"})],sN.prototype,"customDay",void 0),e([se({attribute:"custom-hour"})],sN.prototype,"customHour",void 0),e([se({attribute:"custom-minute"})],sN.prototype,"customMinute",void 0),e([se({attribute:"custom-second"})],sN.prototype,"customSecond",void 0),e([se({attribute:"custom-time-zone-name"})],sN.prototype,"customTimeZoneName",void 0),e([se({attribute:"custom-format-matcher"})],sN.prototype,"customFormatMatcher",void 0),e([se({attribute:"custom-hour12",converter:rN})],sN.prototype,"customHour12",void 0),e([se({attribute:"custom-time-zone"})],sN.prototype,"customTimeZone",void 0),e([se({attribute:"custom-calendar"})],sN.prototype,"customCalendar",void 0),e([se({attribute:"custom-day-period"})],sN.prototype,"customDayPeriod",void 0),e([se({attribute:"custom-numbering-system"})],sN.prototype,"customNumberingSystem",void 0),e([se({attribute:"custom-date-style"})],sN.prototype,"customDateStyle",void 0),e([se({attribute:"custom-time-style"})],sN.prototype,"customTimeStyle",void 0),e([se({attribute:"custom-hour-cycle"})],sN.prototype,"customHourCycle",void 0)
11108
+ const aN=sN.compose({baseName:"table-column-date-text",template:OD,styles:AD})
11109
11109
  bi.getOrCreate().withPrefix("nimble").register(aN())
11110
- class lN{constructor(e){this.lang=e,this.daysFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"day"}),this.hoursFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"hour"}),this.minutesFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"minute"}),this.secondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second"}),this.scientificSecondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second",notation:"scientific",maximumFractionDigits:3})}format(e){if("number"!=typeof e||e<0||!Number.isFinite(e))return""
11110
+ const lN=class extends YD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:JD,styles:XD})
11111
+ bi.getOrCreate().withPrefix("nimble").register(lN())
11112
+ class cN{constructor(e){this.lang=e,this.daysFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"day"}),this.hoursFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"hour"}),this.minutesFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"minute"}),this.secondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second"}),this.scientificSecondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second",notation:"scientific",maximumFractionDigits:3})}format(e){if("number"!=typeof e||e<0||!Number.isFinite(e))return""
11111
11113
  const t=[],n=1e3,i=6e4,o=36e5,r=864e5,s=e/r
11112
11114
  let a=e
11113
11115
  const l=Math.floor(s)
@@ -11120,50 +11122,50 @@ if(a-=d*i,d){const e=this.minutesFormatter.format(d)
11120
11122
  t.push(e)}const h=a/n,u=0===h?0:h%60
11121
11123
  if(e<1&&0!==h)return this.scientificSecondsFormatter.format(h)
11122
11124
  if(u>=5e-4||0===u&&0===t.length){const e=this.secondsFormatter.format(u)
11123
- t.push(e)}return t.join(", ")}}const cN=class extends LD{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.columnConfig?this.text=this.columnConfig.formatter.format(this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-duration-text-group-header-view",template:zD,styles:FD})
11124
- bi.getOrCreate().withPrefix("nimble").register(cN())
11125
- const dN=class extends jD{constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ca.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ca.unsubscribe(this.langSubscriber,this)}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-duration-text-cell-view",groupHeaderViewTag:"nimble-table-column-duration-text-group-header-view",delegatedEvents:[],sortOperation:yR}}updateColumnConfig(){const e=new lN(Ca.getValueFor(this))
11126
- if(e){const t={formatter:e}
11127
- this.columnInternals.columnConfig=t}else this.columnInternals.columnConfig=void 0}}.compose({baseName:"table-column-duration-text",template:AD,styles:ID})
11125
+ t.push(e)}return t.join(", ")}}const dN=class extends zD{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.columnConfig?this.text=this.columnConfig.formatter.format(this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-duration-text-group-header-view",template:FD,styles:VD})
11128
11126
  bi.getOrCreate().withPrefix("nimble").register(dN())
11129
- const hN=(e,t)=>{if("number"===t){const t=oe.fromView(e)
11127
+ const hN=class extends UD{constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ca.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ca.unsubscribe(this.langSubscriber,this)}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-duration-text-cell-view",groupHeaderViewTag:"nimble-table-column-duration-text-group-header-view",delegatedEvents:[],sortOperation:xR}}updateColumnConfig(){const e=new cN(Ca.getValueFor(this))
11128
+ if(e){const t={formatter:e}
11129
+ this.columnInternals.columnConfig=t}else this.columnInternals.columnConfig=void 0}}.compose({baseName:"table-column-duration-text",template:OD,styles:AD})
11130
+ bi.getOrCreate().withPrefix("nimble").register(hN())
11131
+ const uN=(e,t)=>{if("number"===t){const t=oe.fromView(e)
11130
11132
  return null===t?void 0:t}return"boolean"===t?!1!==e&&"false"!==e&&(!0===e||"true"===e||void 0):e?.toString()??void 0}
11131
- class uN extends ER{constructor(){super(...arguments),this.validator=this.createValidator(),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(e,t){e instanceof fv&&"string"==typeof t&&this.updateColumnConfig()}updateColumnConfig(){this.validator.validate(this.mappings,this.keyType),this.columnInternals.columnConfig=this.validator.isValid()?this.createColumnConfig(this.getMappingConfigs()):void 0}getMappingConfigs(){const e=new Map
11132
- return this.mappings.forEach((t=>{const n=hN(t.key,this.keyType)
11133
+ class pN extends IR{constructor(){super(...arguments),this.validator=this.createValidator(),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(e,t){e instanceof fv&&"string"==typeof t&&this.updateColumnConfig()}updateColumnConfig(){this.validator.validate(this.mappings,this.keyType),this.columnInternals.columnConfig=this.validator.isValid()?this.createColumnConfig(this.getMappingConfigs()):void 0}getMappingConfigs(){const e=new Map
11134
+ return this.mappings.forEach((t=>{const n=uN(t.key,this.keyType)
11133
11135
  if(void 0===n)throw Error("Key was invalid for type. Validation should have prevented this.")
11134
11136
  const i=this.createMappingConfig(t)
11135
11137
  e.set(n,i)})),e}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}mappingsChanged(){this.updateColumnConfig(),this.observeMappings()}keyTypeChanged(){this.updateColumnConfig()}removeMappingObservers(){this.mappingNotifiers.forEach((e=>{e.unsubscribe(this)})),this.mappingNotifiers=[]}observeMappings(){this.removeMappingObservers()
11136
11138
  for(const e of this.mappings){const t=m.getNotifier(e)
11137
- t.subscribe(this),this.mappingNotifiers.push(t)}}}e([g],uN.prototype,"mappings",void 0),e([se({attribute:"field-name"})],uN.prototype,"fieldName",void 0),e([se({attribute:"key-type"})],uN.prototype,"keyType",void 0)
11138
- const pN=we`
11139
- ${ID}
11139
+ t.subscribe(this),this.mappingNotifiers.push(t)}}}e([g],pN.prototype,"mappings",void 0),e([se({attribute:"field-name"})],pN.prototype,"fieldName",void 0),e([se({attribute:"key-type"})],pN.prototype,"keyType",void 0)
11140
+ const fN=we`
11141
+ ${AD}
11140
11142
 
11141
11143
  slot[name='mapping'] {
11142
11144
  display: none;
11143
11145
  }
11144
- `,fN=Z`${AD}<slot ${Ke("mappings")} name="mapping"></slot>`,mN=["invalidMappingKeyValueForType","duplicateMappingKey","missingKeyValue"]
11145
- class gN extends tN{constructor(e,t){super(e,t)}validate(e,t){this.untrackAll()
11146
+ `,mN=Z`${OD}<slot ${Ke("mappings")} name="mapping"></slot>`,gN=["invalidMappingKeyValueForType","duplicateMappingKey","missingKeyValue"]
11147
+ class vN extends nN{constructor(e,t){super(e,t)}validate(e,t){this.untrackAll()
11146
11148
  const n=e.map((e=>e.key))
11147
- this.validateKeyValuesForType(n,t),this.validateUniqueKeys(n,t),this.validateNoMissingKeys(e)}validateKeyValuesForType(e,t){const n=e.some((e=>void 0!==e&&void 0===hN(e,t)))
11148
- this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(e,t){const n=e.map((e=>hN(e,t))),i=new Set(n).size!==n.length
11149
+ this.validateKeyValuesForType(n,t),this.validateUniqueKeys(n,t),this.validateNoMissingKeys(e)}validateKeyValuesForType(e,t){const n=e.some((e=>void 0!==e&&void 0===uN(e,t)))
11150
+ this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(e,t){const n=e.map((e=>uN(e,t))),i=new Set(n).size!==n.length
11149
11151
  this.setConditionValue("duplicateMappingKey",i)}validateNoMissingKeys(e){const t=e.some((e=>void 0===e.key))
11150
- this.setConditionValue("missingKeyValue",t)}}const vN=[...mN,"unsupportedMappingType","missingTextValue"]
11151
- class bN extends gN{constructor(e){super(e,vN)}static isSupportedMappingElement(e){return e instanceof gv}validate(e,t){super.validate(e,t),this.validateMappingTypes(e),this.validateNoMissingText(e)}validateNoMissingText(e){const t=e.filter(bN.isSupportedMappingElement).some((e=>void 0===e.text))
11152
- this.setConditionValue("missingTextValue",t)}validateMappingTypes(e){const t=e.every(bN.isSupportedMappingElement)
11153
- this.setConditionValue("unsupportedMappingType",!t)}}class wN{constructor(e){this.text=e}}class yN extends wN{}const xN=class extends XD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){const e=this.cellRecord?.value
11152
+ this.setConditionValue("missingKeyValue",t)}}const bN=[...gN,"unsupportedMappingType","missingTextValue"]
11153
+ class wN extends vN{constructor(e){super(e,bN)}static isSupportedMappingElement(e){return e instanceof gv}validate(e,t){super.validate(e,t),this.validateMappingTypes(e),this.validateNoMissingText(e)}validateNoMissingText(e){const t=e.filter(wN.isSupportedMappingElement).some((e=>void 0===e.text))
11154
+ this.setConditionValue("missingTextValue",t)}validateMappingTypes(e){const t=e.every(wN.isSupportedMappingElement)
11155
+ this.setConditionValue("unsupportedMappingType",!t)}}class yN{constructor(e){this.text=e}}class xN extends yN{}const kN=class extends YD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){const e=this.cellRecord?.value
11154
11156
  if(null==e)return void(this.text="")
11155
11157
  const t=this.columnConfig?.mappingConfigs.get(e)
11156
- this.text=t instanceof yN&&t.text?t.text:""}}.compose({baseName:"table-column-enum-text-cell-view",template:KD,styles:JD})
11157
- bi.getOrCreate().withPrefix("nimble").register(xN())
11158
- const kN=class extends LD{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){const e=this.groupHeaderValue
11158
+ this.text=t instanceof xN&&t.text?t.text:""}}.compose({baseName:"table-column-enum-text-cell-view",template:JD,styles:XD})
11159
+ bi.getOrCreate().withPrefix("nimble").register(kN())
11160
+ const CN=class extends zD{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){const e=this.groupHeaderValue
11159
11161
  if(null==e)return void(this.text="")
11160
11162
  const t=this.columnConfig?.mappingConfigs.get(e)
11161
- this.text=t instanceof yN&&t.text?t.text:""}}.compose({baseName:"table-column-enum-text-group-header-view",template:zD,styles:FD})
11162
- bi.getOrCreate().withPrefix("nimble").register(kN())
11163
- class CN extends(TD(OD(uN))){createValidator(){return new bN(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-enum-text-cell-view",groupHeaderViewTag:"nimble-table-column-enum-text-group-header-view",delegatedEvents:[],sortOperation:yR}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof gv)return new yN(e.text)
11164
- throw new Error("Unsupported mapping")}}const SN=CN.compose({baseName:"table-column-enum-text",template:fN,styles:pN})
11165
- bi.getOrCreate().withPrefix("nimble").register(SN())
11166
- const $N=Z`<span
11163
+ this.text=t instanceof xN&&t.text?t.text:""}}.compose({baseName:"table-column-enum-text-group-header-view",template:FD,styles:VD})
11164
+ bi.getOrCreate().withPrefix("nimble").register(CN())
11165
+ class SN extends(RD(TD(pN))){createValidator(){return new wN(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-enum-text-cell-view",groupHeaderViewTag:"nimble-table-column-enum-text-group-header-view",delegatedEvents:[],sortOperation:xR}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof gv)return new xN(e.text)
11166
+ throw new Error("Unsupported mapping")}}const $N=SN.compose({baseName:"table-column-enum-text",template:mN,styles:fN})
11167
+ bi.getOrCreate().withPrefix("nimble").register($N())
11168
+ const MN=Z`<span
11167
11169
  ${ig("hasOverflow")}
11168
11170
  class="header-content"
11169
11171
  title=${e=>e.hasOverflow&&e.headerTextContent?e.headerTextContent:null}
@@ -11171,13 +11173,13 @@ const $N=Z`<span
11171
11173
  <slot ${Ne("contentSlot")}></slot>
11172
11174
  <slot ${Ke({property:"unitElements",filter:We()})} name="unit"></slot>
11173
11175
  </span>`
11174
- const MN=class extends LD{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter?.format(this.groupHeaderValue)??""}}.compose({baseName:"table-column-number-text-group-header-view",template:zD,styles:FD})
11175
- bi.getOrCreate().withPrefix("nimble").register(MN())
11176
- const _N=class extends XD{columnConfigChanged(){this.updateText(),this.alignment=this.columnConfig?.alignment??ZD}cellRecordChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:KD,styles:JD})
11176
+ const _N=class extends zD{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter?.format(this.groupHeaderValue)??""}}.compose({baseName:"table-column-number-text-group-header-view",template:FD,styles:VD})
11177
11177
  bi.getOrCreate().withPrefix("nimble").register(_N())
11178
- const EN={default:void 0,decimal:"decimal"},IN="left",AN="right"
11179
- class ON{format(e){if("number"!=typeof e)return""
11180
- try{return this.tryFormat(e)}catch{return""}}}class TN{constructor(e){this.locale=e.locale,this.intlNumberFormatOptions=e.intlNumberFormatOptions}}class RN extends TN{constructor(e,t){super(e),this.formatter=new Intl.NumberFormat(this.locale,{...t,...this.intlNumberFormatOptions})}static createFactory(e){return t=>new RN(t,e)}format(e){return this.formatter.format(e)}}class DN{constructor(e,t){this.scaleFactor=e,this.scaledUnitFormatFactory=t}isBase(){return 1===this.scaleFactor}}class NN{constructor(e){this.supportedScaledUnits=e
11178
+ const EN=class extends YD{columnConfigChanged(){this.updateText(),this.alignment=this.columnConfig?.alignment??GD}cellRecordChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:JD,styles:XD})
11179
+ bi.getOrCreate().withPrefix("nimble").register(EN())
11180
+ const IN={default:void 0,decimal:"decimal"},AN="left",ON="right"
11181
+ class TN{format(e){if("number"!=typeof e)return""
11182
+ try{return this.tryFormat(e)}catch{return""}}}class RN{constructor(e){this.locale=e.locale,this.intlNumberFormatOptions=e.intlNumberFormatOptions}}class DN extends RN{constructor(e,t){super(e),this.formatter=new Intl.NumberFormat(this.locale,{...t,...this.intlNumberFormatOptions})}static createFactory(e){return t=>new DN(t,e)}format(e){return this.formatter.format(e)}}class NN{constructor(e,t){this.scaleFactor=e,this.scaledUnitFormatFactory=t}isBase(){return 1===this.scaleFactor}}class PN{constructor(e){this.supportedScaledUnits=e
11181
11183
  const t=e.every(((e,t,n)=>0===t||n[t-1].scaleFactor<e.scaleFactor))
11182
11184
  if(!t)throw new Error("Supported scaled units must have unique and ordered scale factors")
11183
11185
  const n=e.find((e=>e.isBase()))
@@ -11186,8 +11188,8 @@ this.supportedScaledUnits=e,this.baseScaledUnit=n}scaleNumber(e){const t=Math.ab
11186
11188
  if(1===this.supportedScaledUnits.length||0===t||t===1/0||Number.isNaN(t))return{scaledValue:e,scaledUnit:this.baseScaledUnit}
11187
11189
  for(let n=this.supportedScaledUnits.length-1;n>=0;n-=1){const i=this.supportedScaledUnits[n]
11188
11190
  if(t/i.scaleFactor>=1)return{scaledValue:e/i.scaleFactor,scaledUnit:i}}const n=this.supportedScaledUnits[0]
11189
- return{scaledValue:e/n.scaleFactor,scaledUnit:n}}}const PN=new class extends NN{constructor(){super([new DN(1,RN.createFactory({}))])}}
11190
- class LN extends ON{constructor(e,{unitScale:t=PN}={unitScale:PN}){super(),this.defaultIntlNumberFormatOptions={maximumSignificantDigits:LN.maximumDigits,useGrouping:!0},this.defaultScaledUnitFormatters=new Map,this.leadingZeroIntlNumberFormatOptions={maximumFractionDigits:LN.maximumDigits-1,useGrouping:!0},this.leadingZeroScaledUnitFormatters=new Map,this.exponentialIntlNumberFormatOptions={maximumSignificantDigits:LN.maximumDigits,notation:"scientific"}
11191
+ return{scaledValue:e/n.scaleFactor,scaledUnit:n}}}const LN=new class extends PN{constructor(){super([new NN(1,DN.createFactory({}))])}}
11192
+ class zN extends TN{constructor(e,{unitScale:t=LN}={unitScale:LN}){super(),this.defaultIntlNumberFormatOptions={maximumSignificantDigits:zN.maximumDigits,useGrouping:!0},this.defaultScaledUnitFormatters=new Map,this.leadingZeroIntlNumberFormatOptions={maximumFractionDigits:zN.maximumDigits-1,useGrouping:!0},this.leadingZeroScaledUnitFormatters=new Map,this.exponentialIntlNumberFormatOptions={maximumSignificantDigits:zN.maximumDigits,notation:"scientific"}
11191
11193
  for(const n of t.supportedScaledUnits)this.defaultScaledUnitFormatters.set(n.scaleFactor,n.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:this.defaultIntlNumberFormatOptions})),this.leadingZeroScaledUnitFormatters.set(n.scaleFactor,n.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:this.leadingZeroIntlNumberFormatOptions}))
11192
11194
  this.exponentialScaledUnitFormatter=t.baseScaledUnit.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:this.exponentialIntlNumberFormatOptions}),this.unitScale=t}resolvedOptions(){return{unitScale:this.unitScale}}tryFormat(e){const t=0===e?0:e,{scaledValue:n,scaledUnit:i}=this.unitScale.scaleNumber(t)
11193
11195
  switch(this.resolveNumberStyle(n)){case"default":return this.defaultScaledUnitFormatters.get(i.scaleFactor).format(n)
@@ -11195,34 +11197,34 @@ case"leadingZero":return this.leadingZeroScaledUnitFormatters.get(i.scaleFactor)
11195
11197
  case"exponential":return this.exponentialScaledUnitFormatter.format(t)
11196
11198
  default:throw new Error("Unexpected number format style")}}resolveNumberStyle(e){if(0===e)return"default"
11197
11199
  const t=Math.abs(e)
11198
- return t>=LN.exponentialUpperBound||t<LN.exponentialLowerBound?"exponential":t<1?"leadingZero":"default"}}LN.maximumDigits=6,LN.exponentialLowerBound=995e-6,LN.exponentialUpperBound=999999.5
11199
- class zN extends ON{constructor(e,{minimumFractionDigits:t=0,maximumFractionDigits:n=Math.max(3,t),unitScale:i=PN}={minimumFractionDigits:0,maximumFractionDigits:3,unitScale:PN}){super(),this.scaledUnitFormatters=new Map
11200
+ return t>=zN.exponentialUpperBound||t<zN.exponentialLowerBound?"exponential":t<1?"leadingZero":"default"}}zN.maximumDigits=6,zN.exponentialLowerBound=995e-6,zN.exponentialUpperBound=999999.5
11201
+ class FN extends TN{constructor(e,{minimumFractionDigits:t=0,maximumFractionDigits:n=Math.max(3,t),unitScale:i=LN}={minimumFractionDigits:0,maximumFractionDigits:3,unitScale:LN}){super(),this.scaledUnitFormatters=new Map
11200
11202
  const o={maximumFractionDigits:n,minimumFractionDigits:t,useGrouping:!0}
11201
11203
  for(const t of i.supportedScaledUnits)this.scaledUnitFormatters.set(t.scaleFactor,t.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:o}))
11202
11204
  this.tenPowDecimalDigits=10**n,this.unitScale=i,this.minimumFractionDigits=t,this.maximumFractionDigits=n}resolvedOptions(){return{unitScale:this.unitScale,maximumFractionDigits:this.maximumFractionDigits,minimumFractionDigits:this.minimumFractionDigits}}tryFormat(e){const{scaledValue:t,scaledUnit:n}=this.unitScale.scaleNumber(e),i=this.willRoundToZero(t)?0:t
11203
- return this.scaledUnitFormatters.get(n.scaleFactor).format(i)}willRoundToZero(e){return 0===Math.round(e*this.tenPowDecimalDigits)}}class FN extends ON{constructor(e,t){super(),this._resolvedOptions=this.resolveOptions(t),this.resolvedUnitFormat=this.resolveUnitFormat(e,this._resolvedOptions)}resolvedOptions(){return{...this._resolvedOptions}}optionsMatch(e){const t=this.resolveOptions(e)
11205
+ return this.scaledUnitFormatters.get(n.scaleFactor).format(i)}willRoundToZero(e){return 0===Math.round(e*this.tenPowDecimalDigits)}}class VN extends TN{constructor(e,t){super(),this._resolvedOptions=this.resolveOptions(t),this.resolvedUnitFormat=this.resolveUnitFormat(e,this._resolvedOptions)}resolvedOptions(){return{...this._resolvedOptions}}optionsMatch(e){const t=this.resolveOptions(e)
11204
11206
  return this._resolvedOptions.decimalDigits===t.decimalDigits&&this._resolvedOptions.decimalMaximumDigits===t.decimalMaximumDigits&&this._resolvedOptions.numberTextFormat===t.numberTextFormat&&this._resolvedOptions.unitScale===t.unitScale}tryFormat(e){return this.resolvedUnitFormat.format(e)}resolveUnitFormat(e,t){const{numberTextFormat:n,decimalMaximumDigits:i,decimalDigits:o,unitScale:r}=t
11205
- return n===EN.default?new LN(e,{unitScale:r}):new zN(e,"number"==typeof o?{minimumFractionDigits:o,maximumFractionDigits:o,unitScale:r}:{minimumFractionDigits:0,maximumFractionDigits:i,unitScale:r})}resolveOptions(e){if(!e||e.numberTextFormat===EN.default)return{numberTextFormat:EN.default,decimalDigits:void 0,decimalMaximumDigits:void 0,unitScale:e?.unitScale??PN}
11207
+ return n===IN.default?new zN(e,{unitScale:r}):new FN(e,"number"==typeof o?{minimumFractionDigits:o,maximumFractionDigits:o,unitScale:r}:{minimumFractionDigits:0,maximumFractionDigits:i,unitScale:r})}resolveOptions(e){if(!e||e.numberTextFormat===IN.default)return{numberTextFormat:IN.default,decimalDigits:void 0,decimalMaximumDigits:void 0,unitScale:e?.unitScale??LN}
11206
11208
  const t="number"==typeof e.decimalDigits,n="number"==typeof e.decimalMaximumDigits
11207
11209
  if(t&&n)throw new Error("decimalDigits and decimalMaximumDigits are mutually exclusive. Do not specify both.")
11208
- return t||n?{numberTextFormat:EN.decimal,decimalDigits:e.decimalDigits,decimalMaximumDigits:e.decimalMaximumDigits,unitScale:e.unitScale??PN}:{numberTextFormat:EN.decimal,decimalDigits:FN.defaultDecimalDigits,decimalMaximumDigits:void 0,unitScale:e.unitScale??PN}}}FN.defaultDecimalDigits=2
11209
- const VN=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits","moreThanOneUnitSpecified"]
11210
- class HN extends tN{constructor(e){super(e,VN)}validateDecimalDigits(e,t){const n=!!(e===EN.decimal&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
11211
- this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(e,t){const n=!!(e===EN.decimal&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
11212
- this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(e,t,n){const i=!!(e===EN.decimal)&&("number"==typeof t&&"number"==typeof n)
11210
+ return t||n?{numberTextFormat:IN.decimal,decimalDigits:e.decimalDigits,decimalMaximumDigits:e.decimalMaximumDigits,unitScale:e.unitScale??LN}:{numberTextFormat:IN.decimal,decimalDigits:VN.defaultDecimalDigits,decimalMaximumDigits:void 0,unitScale:e.unitScale??LN}}}VN.defaultDecimalDigits=2
11211
+ const HN=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits","moreThanOneUnitSpecified"]
11212
+ class BN extends nN{constructor(e){super(e,HN)}validateDecimalDigits(e,t){const n=!!(e===IN.decimal&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
11213
+ this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(e,t){const n=!!(e===IN.decimal&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
11214
+ this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(e,t,n){const i=!!(e===IN.decimal)&&("number"==typeof t&&"number"==typeof n)
11213
11215
  this.setConditionValue("decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits",i)}validateAtMostOneUnit(e){const t=e.length>1
11214
- this.setConditionValue("moreThanOneUnitSpecified",t)}isInvalidDecimalDigitsValue(e){return e<0||e>20}}class BN extends zt{}e([g],BN.prototype,"resolvedUnitScale",void 0)
11215
- class qN extends jD{constructor(){super(...arguments),this.validator=new HN(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}},this.unitSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ca.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ca.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-number-text-cell-view",groupHeaderViewTag:"nimble-table-column-number-text-group-header-view",delegatedEvents:[],sortOperation:yR}}updateUnitNotifier(){if(this.unitNotifier&&(this.unitNotifier.unsubscribe(this.unitSubscriber),this.unitNotifier=void 0),this.unit){const e=m.getNotifier(this.unit)
11216
- e.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=e}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}unitElementsChanged(){this.updateUnit()}async updateUnit(){this.unit=void 0,this.unitElements&&(await QE(this.unitElements),this.unit=this.unitElements.find((e=>e instanceof BN))),this.updateUnitNotifier()}unitChanged(){this.updateColumnConfig()}updateColumnConfig(){if(this.validator.validateDecimalDigits(this.format,this.decimalDigits),this.validator.validateDecimalMaximumDigits(this.format,this.decimalMaximumDigits),this.validator.validateNoMutuallyExclusiveProperties(this.format,this.decimalDigits,this.decimalMaximumDigits),this.validator.validateAtMostOneUnit(this.unitElements??[]),this.validator.isValid()){const e={formatter:this.createFormatter(),alignment:this.determineCellContentAlignment()}
11216
+ this.setConditionValue("moreThanOneUnitSpecified",t)}isInvalidDecimalDigitsValue(e){return e<0||e>20}}class qN extends zt{}e([g],qN.prototype,"resolvedUnitScale",void 0)
11217
+ class jN extends UD{constructor(){super(...arguments),this.validator=new BN(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}},this.unitSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ca.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ca.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-number-text-cell-view",groupHeaderViewTag:"nimble-table-column-number-text-group-header-view",delegatedEvents:[],sortOperation:xR}}updateUnitNotifier(){if(this.unitNotifier&&(this.unitNotifier.unsubscribe(this.unitSubscriber),this.unitNotifier=void 0),this.unit){const e=m.getNotifier(this.unit)
11218
+ e.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=e}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}unitElementsChanged(){this.updateUnit()}async updateUnit(){this.unit=void 0,this.unitElements&&(await QE(this.unitElements),this.unit=this.unitElements.find((e=>e instanceof qN))),this.updateUnitNotifier()}unitChanged(){this.updateColumnConfig()}updateColumnConfig(){if(this.validator.validateDecimalDigits(this.format,this.decimalDigits),this.validator.validateDecimalMaximumDigits(this.format,this.decimalMaximumDigits),this.validator.validateNoMutuallyExclusiveProperties(this.format,this.decimalDigits,this.decimalMaximumDigits),this.validator.validateAtMostOneUnit(this.unitElements??[]),this.validator.isValid()){const e={formatter:this.createFormatter(),alignment:this.determineCellContentAlignment()}
11217
11219
  this.columnInternals.columnConfig=e}else this.columnInternals.columnConfig=void 0}createFormatter(){const e=this.unit?.resolvedUnitScale
11218
- return new FN(Ca.getValueFor(this),{numberTextFormat:this.format??void 0,decimalDigits:this.decimalDigits??void 0,decimalMaximumDigits:this.decimalMaximumDigits??void 0,unitScale:e})}determineCellContentAlignment(){return this.alignment===IN?ZD:this.alignment===AN?GD:this.format!==EN.decimal||"number"==typeof this.decimalMaximumDigits||this.unit?ZD:GD}}e([se],qN.prototype,"format",void 0),e([se],qN.prototype,"alignment",void 0),e([se({attribute:"decimal-digits",converter:oe})],qN.prototype,"decimalDigits",void 0),e([se({attribute:"decimal-maximum-digits",converter:oe})],qN.prototype,"decimalMaximumDigits",void 0),e([g],qN.prototype,"unitElements",void 0),e([g],qN.prototype,"unit",void 0)
11219
- const jN=qN.compose({baseName:"table-column-number-text",template:$N,styles:ID})
11220
- bi.getOrCreate().withPrefix("nimble").register(jN())
11221
- const UN=[...mN,"unsupportedMappingType","invalidIconName","missingTextValue"]
11222
- class WN extends gN{constructor(e){super(e,UN)}static isIconMappingElement(e){return e instanceof wv}static isSupportedMappingElement(e){return e instanceof wv||e instanceof xv}validate(e,t){super.validate(e,t),this.validateMappingTypes(e),this.validateIconNames(e),this.validateNoMissingText(e)}validateIconNames(e){const t=e.filter(WN.isIconMappingElement).some((e=>void 0===e.resolvedIcon))
11223
- this.setConditionValue("invalidIconName",t)}validateNoMissingText(e){const t=e.filter(WN.isSupportedMappingElement).some((e=>void 0===e.text))
11224
- this.setConditionValue("missingTextValue",t)}validateMappingTypes(e){const t=e.every(WN.isSupportedMappingElement)
11225
- this.setConditionValue("unsupportedMappingType",!t)}}const ZN=we`
11220
+ return new VN(Ca.getValueFor(this),{numberTextFormat:this.format??void 0,decimalDigits:this.decimalDigits??void 0,decimalMaximumDigits:this.decimalMaximumDigits??void 0,unitScale:e})}determineCellContentAlignment(){return this.alignment===AN?GD:this.alignment===ON?KD:this.format!==IN.decimal||"number"==typeof this.decimalMaximumDigits||this.unit?GD:KD}}e([se],jN.prototype,"format",void 0),e([se],jN.prototype,"alignment",void 0),e([se({attribute:"decimal-digits",converter:oe})],jN.prototype,"decimalDigits",void 0),e([se({attribute:"decimal-maximum-digits",converter:oe})],jN.prototype,"decimalMaximumDigits",void 0),e([g],jN.prototype,"unitElements",void 0),e([g],jN.prototype,"unit",void 0)
11221
+ const UN=jN.compose({baseName:"table-column-number-text",template:MN,styles:AD})
11222
+ bi.getOrCreate().withPrefix("nimble").register(UN())
11223
+ const WN=[...gN,"unsupportedMappingType","invalidIconName","missingTextValue"]
11224
+ class ZN extends vN{constructor(e){super(e,WN)}static isIconMappingElement(e){return e instanceof wv}static isSupportedMappingElement(e){return e instanceof wv||e instanceof xv}validate(e,t){super.validate(e,t),this.validateMappingTypes(e),this.validateIconNames(e),this.validateNoMissingText(e)}validateIconNames(e){const t=e.filter(ZN.isIconMappingElement).some((e=>void 0===e.resolvedIcon))
11225
+ this.setConditionValue("invalidIconName",t)}validateNoMissingText(e){const t=e.filter(ZN.isSupportedMappingElement).some((e=>void 0===e.text))
11226
+ this.setConditionValue("missingTextValue",t)}validateMappingTypes(e){const t=e.every(ZN.isSupportedMappingElement)
11227
+ this.setConditionValue("unsupportedMappingType",!t)}}const GN=we`
11226
11228
  ${Oo("inline-flex")}
11227
11229
 
11228
11230
  :host {
@@ -11242,7 +11244,7 @@ this.setConditionValue("unsupportedMappingType",!t)}}const ZN=we`
11242
11244
  overflow: hidden;
11243
11245
  text-overflow: ellipsis;
11244
11246
  }
11245
- `,GN=Z`
11247
+ `,KN=Z`
11246
11248
  ${Fe((e=>"icon"===e.visual),Z`
11247
11249
  ${e=>e.iconTemplate}
11248
11250
  <span
@@ -11261,7 +11263,7 @@ this.setConditionValue("unsupportedMappingType",!t)}}const ZN=we`
11261
11263
  >${e=>e.text}</span>
11262
11264
  `)}
11263
11265
  `
11264
- class KN extends wN{constructor(e,t,n){var i
11266
+ class JN extends yN{constructor(e,t,n){var i
11265
11267
  super(n),this.severity=t,this.iconTemplate=Z`
11266
11268
  <${i=e}
11267
11269
  title="${e=>e.text}"
@@ -11270,14 +11272,14 @@ super(n),this.severity=t,this.iconTemplate=Z`
11270
11272
  severity="${e=>e.severity}"
11271
11273
  class="no-shrink"
11272
11274
  >
11273
- </${i}>`}}class JN extends wN{constructor(e){super(e)}}class XN extends LD{columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig)return
11275
+ </${i}>`}}class XN extends yN{constructor(e){super(e)}}class YN extends zD{columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig)return
11274
11276
  const e=this.groupHeaderValue
11275
11277
  if(null==e)return
11276
11278
  const t=this.columnConfig.mappingConfigs.get(e)
11277
- t instanceof KN?(this.visual="icon",this.severity=t.severity,this.text=t.text??"",this.iconTemplate=t.iconTemplate):t instanceof JN&&(this.visual="spinner",this.text=t.text??"")}}e([g],XN.prototype,"severity",void 0),e([g],XN.prototype,"iconTemplate",void 0),e([g],XN.prototype,"visual",void 0)
11278
- const YN=XN.compose({baseName:"table-column-icon-group-header-view",template:GN,styles:ZN})
11279
- bi.getOrCreate().withPrefix("nimble").register(YN())
11280
- const QN=Z`
11279
+ t instanceof JN?(this.visual="icon",this.severity=t.severity,this.text=t.text??"",this.iconTemplate=t.iconTemplate):t instanceof XN&&(this.visual="spinner",this.text=t.text??"")}}e([g],YN.prototype,"severity",void 0),e([g],YN.prototype,"iconTemplate",void 0),e([g],YN.prototype,"visual",void 0)
11280
+ const QN=YN.compose({baseName:"table-column-icon-group-header-view",template:KN,styles:GN})
11281
+ bi.getOrCreate().withPrefix("nimble").register(QN())
11282
+ const eP=Z`
11281
11283
  ${Fe((e=>"icon"===e.visual),(e=>e.iconTemplate))}
11282
11284
  ${Fe((e=>"spinner"===e.visual),Z`
11283
11285
  <${uT}
@@ -11287,22 +11289,22 @@ const QN=Z`
11287
11289
  </${uT}>
11288
11290
  `)}
11289
11291
  `
11290
- class eP extends SR{columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig||!this.cellRecord)return
11292
+ class tP extends $R{columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig||!this.cellRecord)return
11291
11293
  const e=this.cellRecord.value
11292
11294
  if(null==e)return
11293
11295
  const t=this.columnConfig.mappingConfigs.get(e)
11294
- t instanceof KN?(this.visual="icon",this.severity=t.severity,this.text=t.text,this.iconTemplate=t.iconTemplate):t instanceof JN&&(this.visual="spinner",this.text=t.text)}}e([g],eP.prototype,"severity",void 0),e([g],eP.prototype,"text",void 0),e([g],eP.prototype,"iconTemplate",void 0),e([g],eP.prototype,"visual",void 0)
11295
- const tP=eP.compose({baseName:"table-column-icon-cell-view",template:QN})
11296
- bi.getOrCreate().withPrefix("nimble").register(tP())
11297
- class nP extends(TD(OD(uN))){createValidator(){return new WN(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-icon-cell-view",groupHeaderViewTag:"nimble-table-column-icon-group-header-view",delegatedEvents:[],sortOperation:yR}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof wv){if(!e.resolvedIcon)throw Error("Unresolved icon")
11298
- return new KN(e.resolvedIcon,e.severity,e.text)}if(e instanceof xv)return new JN(e.text)
11299
- throw new Error("Unsupported mapping")}}const iP=nP.compose({baseName:"table-column-icon",template:fN,styles:pN})
11300
- bi.getOrCreate().withPrefix("nimble").register(iP())
11301
- const oP=class extends XD{cellRecordChanged(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:KD,styles:JD})
11296
+ t instanceof JN?(this.visual="icon",this.severity=t.severity,this.text=t.text,this.iconTemplate=t.iconTemplate):t instanceof XN&&(this.visual="spinner",this.text=t.text)}}e([g],tP.prototype,"severity",void 0),e([g],tP.prototype,"text",void 0),e([g],tP.prototype,"iconTemplate",void 0),e([g],tP.prototype,"visual",void 0)
11297
+ const nP=tP.compose({baseName:"table-column-icon-cell-view",template:eP})
11298
+ bi.getOrCreate().withPrefix("nimble").register(nP())
11299
+ class iP extends(RD(TD(pN))){createValidator(){return new ZN(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-icon-cell-view",groupHeaderViewTag:"nimble-table-column-icon-group-header-view",delegatedEvents:[],sortOperation:xR}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof wv){if(!e.resolvedIcon)throw Error("Unresolved icon")
11300
+ return new JN(e.resolvedIcon,e.severity,e.text)}if(e instanceof xv)return new XN(e.text)
11301
+ throw new Error("Unsupported mapping")}}const oP=iP.compose({baseName:"table-column-icon",template:mN,styles:fN})
11302
11302
  bi.getOrCreate().withPrefix("nimble").register(oP())
11303
- const rP=class extends jD{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:HD,delegatedEvents:[],sortOperation:xR}}}.compose({baseName:"table-column-text",template:AD,styles:ID})
11303
+ const rP=class extends YD{cellRecordChanged(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:JD,styles:XD})
11304
11304
  bi.getOrCreate().withPrefix("nimble").register(rP())
11305
- const sP=we`
11305
+ const sP=class extends UD{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:BD,delegatedEvents:[],sortOperation:kR}}}.compose({baseName:"table-column-text",template:OD,styles:AD})
11306
+ bi.getOrCreate().withPrefix("nimble").register(sP())
11307
+ const aP=we`
11306
11308
  ${Oo("grid")}
11307
11309
 
11308
11310
  :host {
@@ -11330,7 +11332,7 @@ const sP=we`
11330
11332
  overflow: auto;
11331
11333
  }
11332
11334
  `
11333
- const aP=class extends oo{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:oo,template:(e,t)=>Z`
11335
+ const lP=class extends oo{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:oo,template:(e,t)=>Z`
11334
11336
  <template class="${e=>e.orientation}">
11335
11337
  ${et(0,t)}
11336
11338
  <div class="tablist" part="tablist" role="tablist">
@@ -11349,9 +11351,9 @@ const aP=class extends oo{constructor(){super(),this.activeindicator=!1}}.compos
11349
11351
  <slot name="tabpanel" ${Ke("tabpanels")}></slot>
11350
11352
  </div>
11351
11353
  </template>
11352
- `,styles:sP})
11353
- bi.getOrCreate().withPrefix("nimble").register(aP())
11354
- const lP=we`
11354
+ `,styles:aP})
11355
+ bi.getOrCreate().withPrefix("nimble").register(lP())
11356
+ const cP=we`
11355
11357
  ${Oo("flex")}
11356
11358
 
11357
11359
  :host {
@@ -11369,15 +11371,15 @@ const lP=we`
11369
11371
  rgba(${La}, 0.3);
11370
11372
  margin: ${il} ${ol};
11371
11373
  }
11372
- `,cP=Z`
11374
+ `,dP=Z`
11373
11375
  <template slot="end">
11374
11376
  <div class="separator"></div>
11375
11377
  <slot></slot>
11376
11378
  </template>
11377
11379
  `
11378
- const dP=class extends zt{}.compose({baseName:"tabs-toolbar",template:cP,styles:lP})
11379
- bi.getOrCreate().withPrefix("nimble").register(dP())
11380
- const hP="outline",uP="block",pP=we`
11380
+ const hP=class extends zt{}.compose({baseName:"tabs-toolbar",template:dP,styles:cP})
11381
+ bi.getOrCreate().withPrefix("nimble").register(hP())
11382
+ const uP="outline",pP="block",fP=we`
11381
11383
  ${Oo("inline-flex")}
11382
11384
  ${Qm}
11383
11385
 
@@ -11517,12 +11519,12 @@ const hP="outline",uP="block",pP=we`
11517
11519
  top: ${ol};
11518
11520
  right: var(--ni-private-scrollbar-width);
11519
11521
  }
11520
- `.withBehaviors(ih(hP,we`
11522
+ `.withBehaviors(ih(uP,we`
11521
11523
  .control {
11522
11524
  border-color: rgba(${La}, 0.3);
11523
11525
  background-color: transparent;
11524
11526
  }
11525
- `),ih(uP,we`
11527
+ `),ih(pP,we`
11526
11528
  .control {
11527
11529
  background-color: rgba(${La}, 0.1);
11528
11530
  }
@@ -11540,8 +11542,8 @@ const hP="outline",uP="block",pP=we`
11540
11542
  border-bottom-color: ${za};
11541
11543
  }
11542
11544
  `))
11543
- class fP extends lo{constructor(){super(...arguments),this.appearance=hP,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(e,t){super.valueChanged(e,t),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}e([se],fP.prototype,"appearance",void 0),e([se({attribute:"error-text"})],fP.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],fP.prototype,"errorVisible",void 0),e([g],fP.prototype,"scrollbarWidth",void 0)
11544
- const mP=fP.compose({baseName:"text-area",baseClass:lo,template:()=>Z`
11545
+ class mP extends lo{constructor(){super(...arguments),this.appearance=uP,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(e,t){super.valueChanged(e,t),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}e([se],mP.prototype,"appearance",void 0),e([se({attribute:"error-text"})],mP.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],mP.prototype,"errorVisible",void 0),e([g],mP.prototype,"scrollbarWidth",void 0)
11546
+ const gP=mP.compose({baseName:"text-area",baseClass:lo,template:()=>Z`
11545
11547
  <label
11546
11548
  part="label"
11547
11549
  for="control"
@@ -11598,9 +11600,9 @@ const mP=fP.compose({baseName:"text-area",baseClass:lo,template:()=>Z`
11598
11600
  ></${om}>
11599
11601
  ${Wm}
11600
11602
  </div>
11601
- `,styles:pP,shadowOptions:{delegatesFocus:!0}})
11602
- bi.getOrCreate().withPrefix("nimble").register(mP())
11603
- const gP="underline",vP="outline",bP="block",wP="frameless",yP=we`
11603
+ `,styles:fP,shadowOptions:{delegatesFocus:!0}})
11604
+ bi.getOrCreate().withPrefix("nimble").register(gP())
11605
+ const vP="underline",bP="outline",wP="block",yP="frameless",xP=we`
11604
11606
  ${Oo("inline-block")}
11605
11607
  ${Qm}
11606
11608
 
@@ -11772,12 +11774,12 @@ const gP="underline",vP="outline",bP="block",wP="frameless",yP=we`
11772
11774
  slot[name='actions']::slotted(*) {
11773
11775
  ${tl.cssCustomProperty}: 24px;
11774
11776
  }
11775
- `.withBehaviors(ih(gP,we`
11777
+ `.withBehaviors(ih(vP,we`
11776
11778
  .root {
11777
11779
  border-bottom-width: ${al};
11778
11780
  padding-bottom: 0;
11779
11781
  }
11780
- `),ih(bP,we`
11782
+ `),ih(wP,we`
11781
11783
  .root {
11782
11784
  background-color: rgba(${La}, 0.1);
11783
11785
  }
@@ -11805,12 +11807,12 @@ const gP="underline",vP="outline",bP="block",wP="frameless",yP=we`
11805
11807
  :host([disabled]) .root {
11806
11808
  background-color: rgba(${La}, 0.07);
11807
11809
  }
11808
- `),ih(vP,we`
11810
+ `),ih(bP,we`
11809
11811
  .root {
11810
11812
  border-width: ${al};
11811
11813
  padding: 0;
11812
11814
  }
11813
- `),ih(wP,we`
11815
+ `),ih(yP,we`
11814
11816
  .control {
11815
11817
  padding-left: ${al};
11816
11818
  padding-right: ${al};
@@ -11828,8 +11830,8 @@ const gP="underline",vP="outline",bP="block",wP="frameless",yP=we`
11828
11830
  filter: invert(100%);
11829
11831
  }
11830
11832
  `))
11831
- class xP extends zi{constructor(){super(...arguments),this.appearance=gP,this.errorVisible=!1,this.fullBleed=!1}}e([se],xP.prototype,"appearance",void 0),e([se({attribute:"error-text"})],xP.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],xP.prototype,"errorVisible",void 0),e([se({attribute:"full-bleed",mode:"boolean"})],xP.prototype,"fullBleed",void 0)
11832
- const kP=xP.compose({baseName:"text-field",baseClass:zi,template:(e,t)=>Z`
11833
+ class kP extends zi{constructor(){super(...arguments),this.appearance=vP,this.errorVisible=!1,this.fullBleed=!1}}e([se],kP.prototype,"appearance",void 0),e([se({attribute:"error-text"})],kP.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],kP.prototype,"errorVisible",void 0),e([se({attribute:"full-bleed",mode:"boolean"})],kP.prototype,"fullBleed",void 0)
11834
+ const CP=kP.compose({baseName:"text-field",baseClass:zi,template:(e,t)=>Z`
11833
11835
  <template
11834
11836
  class="
11835
11837
  ${e=>e.readOnly?"readonly":""}
@@ -11889,7 +11891,7 @@ const kP=xP.compose({baseName:"text-field",baseClass:zi,template:(e,t)=>Z`
11889
11891
  ${Qe(0,t)}
11890
11892
  </div>
11891
11893
  </template>
11892
- `,styles:yP,shadowOptions:{delegatesFocus:!0},end:Z`
11894
+ `,styles:xP,shadowOptions:{delegatesFocus:!0},end:Z`
11893
11895
  <${om}
11894
11896
  severity="error"
11895
11897
  class="error-icon"
@@ -11899,8 +11901,8 @@ const kP=xP.compose({baseName:"text-field",baseClass:zi,template:(e,t)=>Z`
11899
11901
  </span>
11900
11902
  ${Wm}
11901
11903
  `})
11902
- bi.getOrCreate().withPrefix("nimble").register(kP())
11903
- const CP=we`
11904
+ bi.getOrCreate().withPrefix("nimble").register(CP())
11905
+ const SP=we`
11904
11906
  ${Oo("inline-flex")}
11905
11907
 
11906
11908
  :host {
@@ -11985,7 +11987,7 @@ const CP=we`
11985
11987
  .status-icon {
11986
11988
  opacity: 0.6;
11987
11989
  }
11988
- `)),SP=Z`
11990
+ `)),$P=Z`
11989
11991
  ${Fe((e=>e.tooltipVisible),Z`
11990
11992
  <${_h}
11991
11993
  class="anchored-region"
@@ -12018,11 +12020,11 @@ const CP=we`
12018
12020
  </${_h}>
12019
12021
  `)}
12020
12022
  `
12021
- class $P extends _o{constructor(){super(...arguments),this.iconVisible=!1}}e([se],$P.prototype,"severity",void 0),e([se({attribute:"icon-visible",mode:"boolean"})],$P.prototype,"iconVisible",void 0)
12022
- const MP=$P.compose({baseName:"tooltip",baseClass:_o,template:SP,styles:CP})
12023
- bi.getOrCreate().withPrefix("nimble").register(MP())
12024
- const _P="group-selected",EP="all",IP="leaves-only",AP="none"
12025
- class OP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const TP=we`
12023
+ class MP extends _o{constructor(){super(...arguments),this.iconVisible=!1}}e([se],MP.prototype,"severity",void 0),e([se({attribute:"icon-visible",mode:"boolean"})],MP.prototype,"iconVisible",void 0)
12024
+ const _P=MP.compose({baseName:"tooltip",baseClass:_o,template:$P,styles:SP})
12025
+ bi.getOrCreate().withPrefix("nimble").register(_P())
12026
+ const EP="group-selected",IP="all",AP="leaves-only",OP="none"
12027
+ class TP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const RP=we`
12026
12028
  ${Oo("block")}
12027
12029
 
12028
12030
  :host {
@@ -12043,7 +12045,7 @@ class OP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
12043
12045
  }
12044
12046
 
12045
12047
  ${""}
12046
- :host([${_P}])::after {
12048
+ :host([${EP}])::after {
12047
12049
  background: ${Ba};
12048
12050
  border-radius: 0px;
12049
12051
  content: '';
@@ -12065,7 +12067,7 @@ class OP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
12065
12067
  background: ${Na};
12066
12068
  }
12067
12069
 
12068
- :host([${_P}]) .positioning-region:hover {
12070
+ :host([${EP}]) .positioning-region:hover {
12069
12071
  background: ${Da};
12070
12072
  }
12071
12073
 
@@ -12171,7 +12173,7 @@ class OP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
12171
12173
  display: block;
12172
12174
  }
12173
12175
  `.withBehaviors(new class{constructor(e,t){this.cache=new WeakMap,this.ltr=e,this.rtl=t}bind(e){this.attach(e)}unbind(e){const t=this.cache.get(e)
12174
- t&&Sa.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new OP(this.ltr,this.rtl,e),n=Sa.getValueFor(e)
12176
+ t&&Sa.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new TP(this.ltr,this.rtl,e),n=Sa.getValueFor(e)
12175
12177
  Sa.subscribe(t),t.attach(n),this.cache.set(e,t)}}(we`
12176
12178
  .expand-collapse-button {
12177
12179
  left: var(
@@ -12203,8 +12205,8 @@ Sa.subscribe(t),t.attach(n),this.cache.set(e,t)}}(we`
12203
12205
  transform: rotate(135deg);
12204
12206
  }
12205
12207
  `))
12206
- class RP extends Io{constructor(){super(...arguments),this.groupSelected=!1}}e([se({attribute:"group-selected",mode:"boolean"})],RP.prototype,"groupSelected",void 0)
12207
- const DP=RP.compose({baseName:"tree-item",baseClass:Io,template:(e,t)=>Z`
12208
+ class DP extends Io{constructor(){super(...arguments),this.groupSelected=!1}}e([se({attribute:"group-selected",mode:"boolean"})],DP.prototype,"groupSelected",void 0)
12209
+ const NP=DP.compose({baseName:"tree-item",baseClass:Io,template:(e,t)=>Z`
12208
12210
  <template
12209
12211
  role="treeitem"
12210
12212
  slot="${e=>e.isNestedItem()?"item":void 0}"
@@ -12244,9 +12246,9 @@ const DP=RP.compose({baseName:"tree-item",baseClass:Io,template:(e,t)=>Z`
12244
12246
  </div>
12245
12247
  `)}
12246
12248
  </template>
12247
- `,styles:TP,expandCollapseGlyph:Bh.data})
12248
- bi.getOrCreate().withPrefix("nimble").register(DP())
12249
- const NP=we`
12249
+ `,styles:RP,expandCollapseGlyph:Bh.data})
12250
+ bi.getOrCreate().withPrefix("nimble").register(NP())
12251
+ const PP=we`
12250
12252
  ${Oo("flex")}
12251
12253
 
12252
12254
  :host {
@@ -12258,7 +12260,7 @@ const NP=we`
12258
12260
  :host(${Do}) {
12259
12261
  outline: none;
12260
12262
  }
12261
- `,PP=Z`
12263
+ `,LP=Z`
12262
12264
  <template
12263
12265
  role="tree"
12264
12266
  ${Ne("treeView")}
@@ -12272,246 +12274,246 @@ const NP=we`
12272
12274
  <slot ${Ke("slottedTreeItems")}></slot>
12273
12275
  </template>
12274
12276
  `
12275
- class LP extends Ao{constructor(){super(...arguments),this.selectionMode=EP,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
12277
+ class zP extends Ao{constructor(){super(...arguments),this.selectionMode=IP,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
12276
12278
  if(!(e.target instanceof Element&&Eo(e.target)))return!0
12277
12279
  const t=e.target
12278
- return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case EP:return!0
12279
- case AP:return!1
12280
- case IP:return!this.itemHasChildren(e)
12281
- default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof RP&&(e.groupSelected=!1)
12280
+ return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case IP:return!0
12281
+ case OP:return!1
12282
+ case AP:return!this.itemHasChildren(e)
12283
+ default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof DP&&(e.groupSelected=!1)
12282
12284
  for(let e of this.selectedItems){for(;null!==e.parentElement&&e.parentElement!==this;)e=e.parentElement
12283
- e instanceof RP&&(e.groupSelected=!0)}}}e([se({attribute:"selection-mode"})],LP.prototype,"selectionMode",void 0),e([g],LP.prototype,"selectedItems",void 0)
12284
- const zP=LP.compose({baseName:"tree-view",baseClass:Ao,template:PP,styles:NP})
12285
- bi.getOrCreate().withPrefix("nimble").register(zP())
12286
- const FP=Z`<template slot="unit"></template>`
12287
- class VP{constructor(e,t,n){this.singular=e,this.plural=t,this.symbol=n}}class HP extends TN{constructor(e,{unitTranslations:t,scaledPrefixText:n}){if(super(e),!t.get("en"))throw new Error('English translations must exist with locale string "en"')
12288
- this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(t,this.locale),this.scaledPrefixText=n}static createFactory(e){return t=>new HP(t,e)}format(e){const t=this.formatter.format(e)
12285
+ e instanceof DP&&(e.groupSelected=!0)}}}e([se({attribute:"selection-mode"})],zP.prototype,"selectionMode",void 0),e([g],zP.prototype,"selectedItems",void 0)
12286
+ const FP=zP.compose({baseName:"tree-view",baseClass:Ao,template:LP,styles:PP})
12287
+ bi.getOrCreate().withPrefix("nimble").register(FP())
12288
+ const VP=Z`<template slot="unit"></template>`
12289
+ class HP{constructor(e,t,n){this.singular=e,this.plural=t,this.symbol=n}}class BP extends RN{constructor(e,{unitTranslations:t,scaledPrefixText:n}){if(super(e),!t.get("en"))throw new Error('English translations must exist with locale string "en"')
12290
+ this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(t,this.locale),this.scaledPrefixText=n}static createFactory(e){return t=>new BP(t,e)}format(e){const t=this.formatter.format(e)
12289
12291
  if(""!==this.scaledPrefixText)return`${t} ${this.scaledPrefixText}${this.unitTranslation.symbol}`
12290
12292
  return`${t} ${"one"===this.pluralRules.select(e)?this.unitTranslation.singular:this.unitTranslation.plural}`}getTranslationToUse(e,t){const n=new Intl.Locale(t??"en"),i=n.language,o=n.region
12291
- return(o?e.get(`${i}-${o}`):void 0)??e.get(i)??e.get("en")}}const BP=new Map([["en",new VP("byte","bytes","B")],["fr",new VP("octet","octets","o")],["de",new VP("Byte","Byte","B")],["ja",new VP("バイト","バイト","B")],["zh",new VP("字节","字节","B")]]),qP=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
12292
- const jP=new class extends NN{constructor(){super(qP.map((([e,t])=>new DN(e,HP.createFactory({unitTranslations:BP,scaledPrefixText:t})))))}},UP=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
12293
- const WP=new class extends NN{constructor(){super(UP.map((([e,t,n])=>new DN(e,RN.createFactory({style:"unit",unit:t,unitDisplay:n})))))}}
12294
- class ZP extends BN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=WP}binaryChanged(){this.resolvedUnitScale=this.binary?jP:WP}}e([se({mode:"boolean"})],ZP.prototype,"binary",void 0)
12295
- const GP=ZP.compose({baseName:"unit-byte",template:FP})
12296
- bi.getOrCreate().withPrefix("nimble").register(GP())
12297
- const KP=[[1e-15,"f"],[1e-12,"p"],[1e-9,"n"],[10**-6,"μ"],[.001,"m"],[.01,"c"],[.1,"d"],[1,""],[1e3,"k"],[10**6,"M"],[10**9,"G"],[10**12,"T"],[10**15,"P"],[10**18,"E"]],JP=new Map([["en",new VP("volt","volts","V")],["fr",new VP("volt","volts","V")],["de",new VP("Volt","Volt","V")],["ja",new VP("ボルト","ボルト","V")],["zh",new VP("伏特","伏特","V")]])
12298
- const XP=new class extends NN{constructor(){super(KP.map((([e,t])=>new DN(e,HP.createFactory({unitTranslations:JP,scaledPrefixText:t})))))}}
12299
- const YP=class extends BN{constructor(){super(),this.resolvedUnitScale=XP}}.compose({baseName:"unit-volt",template:FP})
12300
- bi.getOrCreate().withPrefix("nimble").register(YP())
12301
- var QP={value:()=>{}}
12302
- function eL(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e)
12303
- i[e]=[]}return new tL(i)}function tL(e){this._=e}function nL(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function iL(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=QP,e=e.slice(0,i).concat(e.slice(i+1))
12304
- break}return null!=n&&e.push({name:t,value:n}),e}tL.prototype=eL.prototype={constructor:tL,on:function(e,t){var n,i,o=this._,r=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
12293
+ return(o?e.get(`${i}-${o}`):void 0)??e.get(i)??e.get("en")}}const qP=new Map([["en",new HP("byte","bytes","B")],["fr",new HP("octet","octets","o")],["de",new HP("Byte","Byte","B")],["ja",new HP("バイト","バイト","B")],["zh",new HP("字节","字节","B")]]),jP=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
12294
+ const UP=new class extends PN{constructor(){super(jP.map((([e,t])=>new NN(e,BP.createFactory({unitTranslations:qP,scaledPrefixText:t})))))}},WP=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
12295
+ const ZP=new class extends PN{constructor(){super(WP.map((([e,t,n])=>new NN(e,DN.createFactory({style:"unit",unit:t,unitDisplay:n})))))}}
12296
+ class GP extends qN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=ZP}binaryChanged(){this.resolvedUnitScale=this.binary?UP:ZP}}e([se({mode:"boolean"})],GP.prototype,"binary",void 0)
12297
+ const KP=GP.compose({baseName:"unit-byte",template:VP})
12298
+ bi.getOrCreate().withPrefix("nimble").register(KP())
12299
+ const JP=[[1e-15,"f"],[1e-12,"p"],[1e-9,"n"],[10**-6,"μ"],[.001,"m"],[.01,"c"],[.1,"d"],[1,""],[1e3,"k"],[10**6,"M"],[10**9,"G"],[10**12,"T"],[10**15,"P"],[10**18,"E"]],XP=new Map([["en",new HP("volt","volts","V")],["fr",new HP("volt","volts","V")],["de",new HP("Volt","Volt","V")],["ja",new HP("ボルト","ボルト","V")],["zh",new HP("伏特","伏特","V")]])
12300
+ const YP=new class extends PN{constructor(){super(JP.map((([e,t])=>new NN(e,BP.createFactory({unitTranslations:XP,scaledPrefixText:t})))))}}
12301
+ const QP=class extends qN{constructor(){super(),this.resolvedUnitScale=YP}}.compose({baseName:"unit-volt",template:VP})
12302
+ bi.getOrCreate().withPrefix("nimble").register(QP())
12303
+ var eL={value:()=>{}}
12304
+ function tL(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e)
12305
+ i[e]=[]}return new nL(i)}function nL(e){this._=e}function iL(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function oL(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=eL,e=e.slice(0,i).concat(e.slice(i+1))
12306
+ break}return null!=n&&e.push({name:t,value:n}),e}nL.prototype=tL.prototype={constructor:nL,on:function(e,t){var n,i,o=this._,r=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
12305
12307
  if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!i.hasOwnProperty(e))throw new Error("unknown type: "+e)
12306
12308
  return{type:e,name:t}}))),s=-1,a=r.length
12307
12309
  if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
12308
- for(;++s<a;)if(n=(e=r[s]).type)o[n]=iL(o[n],e.name,t)
12309
- else if(null==t)for(n in o)o[n]=iL(o[n],e.name,null)
12310
- return this}for(;++s<a;)if((n=(e=r[s]).type)&&(n=nL(o[n],e.name)))return n},copy:function(){var e={},t=this._
12310
+ for(;++s<a;)if(n=(e=r[s]).type)o[n]=oL(o[n],e.name,t)
12311
+ else if(null==t)for(n in o)o[n]=oL(o[n],e.name,null)
12312
+ return this}for(;++s<a;)if((n=(e=r[s]).type)&&(n=iL(o[n],e.name)))return n},copy:function(){var e={},t=this._
12311
12313
  for(var n in t)e[n]=t[n].slice()
12312
- return new tL(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),r=0;r<n;++r)o[r]=arguments[r+2]
12314
+ return new nL(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),r=0;r<n;++r)o[r]=arguments[r+2]
12313
12315
  if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
12314
12316
  for(r=0,n=(i=this._[e]).length;r<n;++r)i[r].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
12315
12317
  for(var i=this._[e],o=0,r=i.length;o<r;++o)i[o].value.apply(t,n)}}
12316
- var oL="http://www.w3.org/1999/xhtml",rL={svg:"http://www.w3.org/2000/svg",xhtml:oL,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
12317
- function sL(e){var t=e+="",n=t.indexOf(":")
12318
- return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),rL.hasOwnProperty(t)?{space:rL[t],local:e}:e}function aL(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
12319
- return n===oL&&t.documentElement.namespaceURI===oL?t.createElement(e):t.createElementNS(n,e)}}function lL(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function cL(e){var t=sL(e)
12320
- return(t.local?lL:aL)(t)}function dL(){}function hL(e){return null==e?dL:function(){return this.querySelector(e)}}function uL(){return[]}function pL(e){return null==e?uL:function(){return this.querySelectorAll(e)}}function fL(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
12321
- var t}}function mL(e){return function(){return this.matches(e)}}function gL(e){return function(t){return t.matches(e)}}var vL=Array.prototype.find
12322
- function bL(){return this.firstElementChild}var wL=Array.prototype.filter
12323
- function yL(){return Array.from(this.children)}function xL(e){return new Array(e.length)}function kL(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function CL(e,t,n,i,o,r){for(var s,a=0,l=t.length,c=r.length;a<c;++a)(s=t[a])?(s.__data__=r[a],i[a]=s):n[a]=new kL(e,r[a])
12324
- for(;a<l;++a)(s=t[a])&&(o[a]=s)}function SL(e,t,n,i,o,r,s){var a,l,c,d=new Map,h=t.length,u=r.length,p=new Array(h)
12318
+ var rL="http://www.w3.org/1999/xhtml",sL={svg:"http://www.w3.org/2000/svg",xhtml:rL,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
12319
+ function aL(e){var t=e+="",n=t.indexOf(":")
12320
+ return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),sL.hasOwnProperty(t)?{space:sL[t],local:e}:e}function lL(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
12321
+ return n===rL&&t.documentElement.namespaceURI===rL?t.createElement(e):t.createElementNS(n,e)}}function cL(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function dL(e){var t=aL(e)
12322
+ return(t.local?cL:lL)(t)}function hL(){}function uL(e){return null==e?hL:function(){return this.querySelector(e)}}function pL(){return[]}function fL(e){return null==e?pL:function(){return this.querySelectorAll(e)}}function mL(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
12323
+ var t}}function gL(e){return function(){return this.matches(e)}}function vL(e){return function(t){return t.matches(e)}}var bL=Array.prototype.find
12324
+ function wL(){return this.firstElementChild}var yL=Array.prototype.filter
12325
+ function xL(){return Array.from(this.children)}function kL(e){return new Array(e.length)}function CL(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function SL(e,t,n,i,o,r){for(var s,a=0,l=t.length,c=r.length;a<c;++a)(s=t[a])?(s.__data__=r[a],i[a]=s):n[a]=new CL(e,r[a])
12326
+ for(;a<l;++a)(s=t[a])&&(o[a]=s)}function $L(e,t,n,i,o,r,s){var a,l,c,d=new Map,h=t.length,u=r.length,p=new Array(h)
12325
12327
  for(a=0;a<h;++a)(l=t[a])&&(p[a]=c=s.call(l,l.__data__,a,t)+"",d.has(c)?o[a]=l:d.set(c,l))
12326
- for(a=0;a<u;++a)c=s.call(e,r[a],a,r)+"",(l=d.get(c))?(i[a]=l,l.__data__=r[a],d.delete(c)):n[a]=new kL(e,r[a])
12327
- for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function $L(e){return e.__data__}function ML(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function _L(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function EL(e){return function(){this.removeAttribute(e)}}function IL(e){return function(){this.removeAttributeNS(e.space,e.local)}}function AL(e,t){return function(){this.setAttribute(e,t)}}function OL(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function TL(e,t){return function(){var n=t.apply(this,arguments)
12328
- null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function RL(e,t){return function(){var n=t.apply(this,arguments)
12329
- null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function DL(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function NL(e){return function(){this.style.removeProperty(e)}}function PL(e,t,n){return function(){this.style.setProperty(e,t,n)}}function LL(e,t,n){return function(){var i=t.apply(this,arguments)
12330
- null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function zL(e,t){return e.style.getPropertyValue(t)||DL(e).getComputedStyle(e,null).getPropertyValue(t)}function FL(e){return function(){delete this[e]}}function VL(e,t){return function(){this[e]=t}}function HL(e,t){return function(){var n=t.apply(this,arguments)
12331
- null==n?delete this[e]:this[e]=n}}function BL(e){return e.trim().split(/^|\s+/)}function qL(e){return e.classList||new jL(e)}function jL(e){this._node=e,this._names=BL(e.getAttribute("class")||"")}function UL(e,t){for(var n=qL(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function WL(e,t){for(var n=qL(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function ZL(e){return function(){UL(this,e)}}function GL(e){return function(){WL(this,e)}}function KL(e,t){return function(){(t.apply(this,arguments)?UL:WL)(this,e)}}function JL(){this.textContent=""}function XL(e){return function(){this.textContent=e}}function YL(e){return function(){var t=e.apply(this,arguments)
12332
- this.textContent=null==t?"":t}}function QL(){this.innerHTML=""}function ez(e){return function(){this.innerHTML=e}}function tz(e){return function(){var t=e.apply(this,arguments)
12333
- this.innerHTML=null==t?"":t}}function nz(){this.nextSibling&&this.parentNode.appendChild(this)}function iz(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function oz(){return null}function rz(){var e=this.parentNode
12334
- e&&e.removeChild(this)}function sz(){var e=this.cloneNode(!1),t=this.parentNode
12335
- return t?t.insertBefore(e,this.nextSibling):e}function az(){var e=this.cloneNode(!0),t=this.parentNode
12336
- return t?t.insertBefore(e,this.nextSibling):e}function lz(e){return function(){var t=this.__on
12337
- if(t){for(var n,i=0,o=-1,r=t.length;i<r;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function cz(e,t,n){return function(){var i,o=this.__on,r=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
12328
+ for(a=0;a<u;++a)c=s.call(e,r[a],a,r)+"",(l=d.get(c))?(i[a]=l,l.__data__=r[a],d.delete(c)):n[a]=new CL(e,r[a])
12329
+ for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function ML(e){return e.__data__}function _L(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function EL(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function IL(e){return function(){this.removeAttribute(e)}}function AL(e){return function(){this.removeAttributeNS(e.space,e.local)}}function OL(e,t){return function(){this.setAttribute(e,t)}}function TL(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function RL(e,t){return function(){var n=t.apply(this,arguments)
12330
+ null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function DL(e,t){return function(){var n=t.apply(this,arguments)
12331
+ null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function NL(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function PL(e){return function(){this.style.removeProperty(e)}}function LL(e,t,n){return function(){this.style.setProperty(e,t,n)}}function zL(e,t,n){return function(){var i=t.apply(this,arguments)
12332
+ null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function FL(e,t){return e.style.getPropertyValue(t)||NL(e).getComputedStyle(e,null).getPropertyValue(t)}function VL(e){return function(){delete this[e]}}function HL(e,t){return function(){this[e]=t}}function BL(e,t){return function(){var n=t.apply(this,arguments)
12333
+ null==n?delete this[e]:this[e]=n}}function qL(e){return e.trim().split(/^|\s+/)}function jL(e){return e.classList||new UL(e)}function UL(e){this._node=e,this._names=qL(e.getAttribute("class")||"")}function WL(e,t){for(var n=jL(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function ZL(e,t){for(var n=jL(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function GL(e){return function(){WL(this,e)}}function KL(e){return function(){ZL(this,e)}}function JL(e,t){return function(){(t.apply(this,arguments)?WL:ZL)(this,e)}}function XL(){this.textContent=""}function YL(e){return function(){this.textContent=e}}function QL(e){return function(){var t=e.apply(this,arguments)
12334
+ this.textContent=null==t?"":t}}function ez(){this.innerHTML=""}function tz(e){return function(){this.innerHTML=e}}function nz(e){return function(){var t=e.apply(this,arguments)
12335
+ this.innerHTML=null==t?"":t}}function iz(){this.nextSibling&&this.parentNode.appendChild(this)}function oz(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function rz(){return null}function sz(){var e=this.parentNode
12336
+ e&&e.removeChild(this)}function az(){var e=this.cloneNode(!1),t=this.parentNode
12337
+ return t?t.insertBefore(e,this.nextSibling):e}function lz(){var e=this.cloneNode(!0),t=this.parentNode
12338
+ return t?t.insertBefore(e,this.nextSibling):e}function cz(e){return function(){var t=this.__on
12339
+ if(t){for(var n,i=0,o=-1,r=t.length;i<r;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function dz(e,t,n){return function(){var i,o=this.__on,r=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
12338
12340
  if(o)for(var s=0,a=o.length;s<a;++s)if((i=o[s]).type===e.type&&i.name===e.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=r,i.options=n),void(i.value=t)
12339
- this.addEventListener(e.type,r,n),i={type:e.type,name:e.name,value:t,listener:r,options:n},o?o.push(i):this.__on=[i]}}function dz(e,t,n){var i=DL(e),o=i.CustomEvent
12340
- "function"==typeof o?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function hz(e,t){return function(){return dz(this,e,t)}}function uz(e,t){return function(){return dz(this,e,t.apply(this,arguments))}}kL.prototype={constructor:kL,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},jL.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e)
12341
+ this.addEventListener(e.type,r,n),i={type:e.type,name:e.name,value:t,listener:r,options:n},o?o.push(i):this.__on=[i]}}function hz(e,t,n){var i=NL(e),o=i.CustomEvent
12342
+ "function"==typeof o?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function uz(e,t){return function(){return hz(this,e,t)}}function pz(e,t){return function(){return hz(this,e,t.apply(this,arguments))}}CL.prototype={constructor:CL,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},UL.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e)
12341
12343
  t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
12342
- var pz=[null]
12343
- function fz(e,t){this._groups=e,this._parents=t}function mz(){return new fz([[document.documentElement]],pz)}function gz(e){return"string"==typeof e?new fz([[document.querySelector(e)]],[document.documentElement]):new fz([[e]],pz)}function vz(e,t){if(e=function(e){let t
12344
+ var fz=[null]
12345
+ function mz(e,t){this._groups=e,this._parents=t}function gz(){return new mz([[document.documentElement]],fz)}function vz(e){return"string"==typeof e?new mz([[document.querySelector(e)]],[document.documentElement]):new mz([[e]],fz)}function bz(e,t){if(e=function(e){let t
12344
12346
  for(;t=e.sourceEvent;)e=t
12345
12347
  return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t
12346
12348
  if(n.createSVGPoint){var i=n.createSVGPoint()
12347
12349
  return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect()
12348
- return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}fz.prototype=mz.prototype={constructor:fz,select:function(e){"function"!=typeof e&&(e=hL(e))
12350
+ return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}mz.prototype=gz.prototype={constructor:mz,select:function(e){"function"!=typeof e&&(e=uL(e))
12349
12351
  for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s,a=t[o],l=a.length,c=i[o]=new Array(l),d=0;d<l;++d)(r=a[d])&&(s=e.call(r,r.__data__,d,a))&&("__data__"in r&&(s.__data__=r.__data__),c[d]=s)
12350
- return new fz(i,this._parents)},selectAll:function(e){e="function"==typeof e?fL(e):pL(e)
12352
+ return new mz(i,this._parents)},selectAll:function(e){e="function"==typeof e?mL(e):fL(e)
12351
12353
  for(var t=this._groups,n=t.length,i=[],o=[],r=0;r<n;++r)for(var s,a=t[r],l=a.length,c=0;c<l;++c)(s=a[c])&&(i.push(e.call(s,s.__data__,c,a)),o.push(s))
12352
- return new fz(i,o)},selectChild:function(e){return this.select(null==e?bL:function(e){return function(){return vL.call(this.children,e)}}("function"==typeof e?e:gL(e)))},selectChildren:function(e){return this.selectAll(null==e?yL:function(e){return function(){return wL.call(this.children,e)}}("function"==typeof e?e:gL(e)))},filter:function(e){"function"!=typeof e&&(e=mL(e))
12354
+ return new mz(i,o)},selectChild:function(e){return this.select(null==e?wL:function(e){return function(){return bL.call(this.children,e)}}("function"==typeof e?e:vL(e)))},selectChildren:function(e){return this.selectAll(null==e?xL:function(e){return function(){return yL.call(this.children,e)}}("function"==typeof e?e:vL(e)))},filter:function(e){"function"!=typeof e&&(e=gL(e))
12353
12355
  for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s=t[o],a=s.length,l=i[o]=[],c=0;c<a;++c)(r=s[c])&&e.call(r,r.__data__,c,s)&&l.push(r)
12354
- return new fz(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,$L)
12355
- var n,i=t?SL:CL,o=this._parents,r=this._groups
12356
+ return new mz(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,ML)
12357
+ var n,i=t?$L:SL,o=this._parents,r=this._groups
12356
12358
  "function"!=typeof e&&(n=e,e=function(){return n})
12357
- for(var s=r.length,a=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var h=o[d],u=r[d],p=u.length,f=ML(e.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
12359
+ for(var s=r.length,a=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var h=o[d],u=r[d],p=u.length,f=_L(e.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
12358
12360
  i(h,u,g,v,c[d]=new Array(p),f,t)
12359
- for(var b,w,y=0,x=0;y<m;++y)if(b=g[y]){for(y>=x&&(x=y+1);!(w=v[x])&&++x<m;);b._next=w||null}}return(a=new fz(a,o))._enter=l,a._exit=c,a},enter:function(){return new fz(this._enter||this._groups.map(xL),this._parents)},exit:function(){return new fz(this._exit||this._groups.map(xL),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,r=this.exit()
12361
+ for(var b,w,y=0,x=0;y<m;++y)if(b=g[y]){for(y>=x&&(x=y+1);!(w=v[x])&&++x<m;);b._next=w||null}}return(a=new mz(a,o))._enter=l,a._exit=c,a},enter:function(){return new mz(this._enter||this._groups.map(kL),this._parents)},exit:function(){return new mz(this._exit||this._groups.map(kL),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,r=this.exit()
12360
12362
  return"function"==typeof e?(i=e(i))&&(i=i.selection()):i=i.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?r.remove():n(r),i&&o?i.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,o=n.length,r=i.length,s=Math.min(o,r),a=new Array(o),l=0;l<s;++l)for(var c,d=n[l],h=i[l],u=d.length,p=a[l]=new Array(u),f=0;f<u;++f)(c=d[f]||h[f])&&(p[f]=c)
12361
12363
  for(;l<o;++l)a[l]=n[l]
12362
- return new fz(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,o=e[t],r=o.length-1,s=o[r];--r>=0;)(i=o[r])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i)
12363
- return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=_L)
12364
+ return new mz(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,o=e[t],r=o.length-1,s=o[r];--r>=0;)(i=o[r])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i)
12365
+ return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=EL)
12364
12366
  for(var n=this._groups,i=n.length,o=new Array(i),r=0;r<i;++r){for(var s,a=n[r],l=a.length,c=o[r]=new Array(l),d=0;d<l;++d)(s=a[d])&&(c[d]=s)
12365
- c.sort(t)}return new fz(o,this._parents).order()},call:function(){var e=arguments[0]
12367
+ c.sort(t)}return new mz(o,this._parents).order()},call:function(){var e=arguments[0]
12366
12368
  return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,r=i.length;o<r;++o){var s=i[o]
12367
12369
  if(s)return s}return null},size:function(){let e=0
12368
12370
  for(const t of this)++e
12369
12371
  return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o,r=t[n],s=0,a=r.length;s<a;++s)(o=r[s])&&e.call(o,o.__data__,s,r)
12370
- return this},attr:function(e,t){var n=sL(e)
12372
+ return this},attr:function(e,t){var n=aL(e)
12371
12373
  if(arguments.length<2){var i=this.node()
12372
- return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?IL:EL:"function"==typeof t?n.local?RL:TL:n.local?OL:AL)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?NL:"function"==typeof t?LL:PL)(e,t,null==n?"":n)):zL(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?FL:"function"==typeof t?HL:VL)(e,t)):this.node()[e]},classed:function(e,t){var n=BL(e+"")
12373
- if(arguments.length<2){for(var i=qL(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
12374
- return!0}return this.each(("function"==typeof t?KL:t?ZL:GL)(n,t))},text:function(e){return arguments.length?this.each(null==e?JL:("function"==typeof e?YL:XL)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?QL:("function"==typeof e?tz:ez)(e)):this.node().innerHTML},raise:function(){return this.each(nz)},lower:function(){return this.each(iz)},append:function(e){var t="function"==typeof e?e:cL(e)
12375
- return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:cL(e),i=null==t?oz:"function"==typeof t?t:hL(t)
12376
- return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(rz)},clone:function(e){return this.select(e?az:sz)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,o,r=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
12374
+ return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?AL:IL:"function"==typeof t?n.local?DL:RL:n.local?TL:OL)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?PL:"function"==typeof t?zL:LL)(e,t,null==n?"":n)):FL(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?VL:"function"==typeof t?BL:HL)(e,t)):this.node()[e]},classed:function(e,t){var n=qL(e+"")
12375
+ if(arguments.length<2){for(var i=jL(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
12376
+ return!0}return this.each(("function"==typeof t?JL:t?GL:KL)(n,t))},text:function(e){return arguments.length?this.each(null==e?XL:("function"==typeof e?QL:YL)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?ez:("function"==typeof e?nz:tz)(e)):this.node().innerHTML},raise:function(){return this.each(iz)},lower:function(){return this.each(oz)},append:function(e){var t="function"==typeof e?e:dL(e)
12377
+ return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:dL(e),i=null==t?rz:"function"==typeof t?t:uL(t)
12378
+ return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(sz)},clone:function(e){return this.select(e?lz:az)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,o,r=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
12377
12379
  return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),s=r.length
12378
- if(!(arguments.length<2)){for(a=t?cz:lz,i=0;i<s;++i)this.each(a(r[i],t,n))
12380
+ if(!(arguments.length<2)){for(a=t?dz:cz,i=0;i<s;++i)this.each(a(r[i],t,n))
12379
12381
  return this}var a=this.node().__on
12380
- if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<s;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?uz:hz)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i,o=e[t],r=0,s=o.length;r<s;++r)(i=o[r])&&(yield i)}}
12381
- const bz={capture:!0,passive:!1}
12382
- function wz(e){e.preventDefault(),e.stopImmediatePropagation()}function yz(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function xz(e,t){var n=Object.create(e.prototype)
12382
+ if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<s;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?pz:uz)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i,o=e[t],r=0,s=o.length;r<s;++r)(i=o[r])&&(yield i)}}
12383
+ const wz={capture:!0,passive:!1}
12384
+ function yz(e){e.preventDefault(),e.stopImmediatePropagation()}function xz(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function kz(e,t){var n=Object.create(e.prototype)
12383
12385
  for(var i in t)n[i]=t[i]
12384
- return n}function kz(){}var Cz=.7,Sz=1/Cz,$z="\\s*([+-]?\\d+)\\s*",Mz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_z="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ez=/^#([0-9a-f]{3,8})$/,Iz=new RegExp(`^rgb\\(${$z},${$z},${$z}\\)$`),Az=new RegExp(`^rgb\\(${_z},${_z},${_z}\\)$`),Oz=new RegExp(`^rgba\\(${$z},${$z},${$z},${Mz}\\)$`),Tz=new RegExp(`^rgba\\(${_z},${_z},${_z},${Mz}\\)$`),Rz=new RegExp(`^hsl\\(${Mz},${_z},${_z}\\)$`),Dz=new RegExp(`^hsla\\(${Mz},${_z},${_z},${Mz}\\)$`),Nz={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074}
12385
- function Pz(){return this.rgb().formatHex()}function Lz(){return this.rgb().formatRgb()}function zz(e){var t,n
12386
- return e=(e+"").trim().toLowerCase(),(t=Ez.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Fz(t):3===n?new Bz(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Vz(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Vz(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Iz.exec(e))?new Bz(t[1],t[2],t[3],1):(t=Az.exec(e))?new Bz(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Oz.exec(e))?Vz(t[1],t[2],t[3],t[4]):(t=Tz.exec(e))?Vz(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Rz.exec(e))?Gz(t[1],t[2]/100,t[3]/100,1):(t=Dz.exec(e))?Gz(t[1],t[2]/100,t[3]/100,t[4]):Nz.hasOwnProperty(e)?Fz(Nz[e]):"transparent"===e?new Bz(NaN,NaN,NaN,0):null}function Fz(e){return new Bz(e>>16&255,e>>8&255,255&e,1)}function Vz(e,t,n,i){return i<=0&&(e=t=n=NaN),new Bz(e,t,n,i)}function Hz(e,t,n,i){return 1===arguments.length?((o=e)instanceof kz||(o=zz(o)),o?new Bz((o=o.rgb()).r,o.g,o.b,o.opacity):new Bz):new Bz(e,t,n,null==i?1:i)
12387
- var o}function Bz(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function qz(){return`#${Zz(this.r)}${Zz(this.g)}${Zz(this.b)}`}function jz(){const e=Uz(this.opacity)
12388
- return`${1===e?"rgb(":"rgba("}${Wz(this.r)}, ${Wz(this.g)}, ${Wz(this.b)}${1===e?")":`, ${e})`}`}function Uz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Wz(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zz(e){return((e=Wz(e))<16?"0":"")+e.toString(16)}function Gz(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Jz(e,t,n,i)}function Kz(e){if(e instanceof Jz)return new Jz(e.h,e.s,e.l,e.opacity)
12389
- if(e instanceof kz||(e=zz(e)),!e)return new Jz
12390
- if(e instanceof Jz)return e
12386
+ return n}function Cz(){}var Sz=.7,$z=1/Sz,Mz="\\s*([+-]?\\d+)\\s*",_z="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ez="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Iz=/^#([0-9a-f]{3,8})$/,Az=new RegExp(`^rgb\\(${Mz},${Mz},${Mz}\\)$`),Oz=new RegExp(`^rgb\\(${Ez},${Ez},${Ez}\\)$`),Tz=new RegExp(`^rgba\\(${Mz},${Mz},${Mz},${_z}\\)$`),Rz=new RegExp(`^rgba\\(${Ez},${Ez},${Ez},${_z}\\)$`),Dz=new RegExp(`^hsl\\(${_z},${Ez},${Ez}\\)$`),Nz=new RegExp(`^hsla\\(${_z},${Ez},${Ez},${_z}\\)$`),Pz={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074}
12387
+ function Lz(){return this.rgb().formatHex()}function zz(){return this.rgb().formatRgb()}function Fz(e){var t,n
12388
+ return e=(e+"").trim().toLowerCase(),(t=Iz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Vz(t):3===n?new qz(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Hz(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Hz(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Az.exec(e))?new qz(t[1],t[2],t[3],1):(t=Oz.exec(e))?new qz(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Tz.exec(e))?Hz(t[1],t[2],t[3],t[4]):(t=Rz.exec(e))?Hz(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Dz.exec(e))?Kz(t[1],t[2]/100,t[3]/100,1):(t=Nz.exec(e))?Kz(t[1],t[2]/100,t[3]/100,t[4]):Pz.hasOwnProperty(e)?Vz(Pz[e]):"transparent"===e?new qz(NaN,NaN,NaN,0):null}function Vz(e){return new qz(e>>16&255,e>>8&255,255&e,1)}function Hz(e,t,n,i){return i<=0&&(e=t=n=NaN),new qz(e,t,n,i)}function Bz(e,t,n,i){return 1===arguments.length?((o=e)instanceof Cz||(o=Fz(o)),o?new qz((o=o.rgb()).r,o.g,o.b,o.opacity):new qz):new qz(e,t,n,null==i?1:i)
12389
+ var o}function qz(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function jz(){return`#${Gz(this.r)}${Gz(this.g)}${Gz(this.b)}`}function Uz(){const e=Wz(this.opacity)
12390
+ return`${1===e?"rgb(":"rgba("}${Zz(this.r)}, ${Zz(this.g)}, ${Zz(this.b)}${1===e?")":`, ${e})`}`}function Wz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zz(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Gz(e){return((e=Zz(e))<16?"0":"")+e.toString(16)}function Kz(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Xz(e,t,n,i)}function Jz(e){if(e instanceof Xz)return new Xz(e.h,e.s,e.l,e.opacity)
12391
+ if(e instanceof Cz||(e=Fz(e)),!e)return new Xz
12392
+ if(e instanceof Xz)return e
12391
12393
  var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2
12392
- return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new Jz(s,a,l,e.opacity)}function Jz(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Xz(e){return(e=(e||0)%360)<0?e+360:e}function Yz(e){return Math.max(0,Math.min(1,e||0))}function Qz(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}yz(kz,zz,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Pz,formatHex:Pz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Kz(this).formatHsl()},formatRgb:Lz,toString:Lz}),yz(Bz,Hz,xz(kz,{brighter(e){return e=null==e?Sz:Math.pow(Sz,e),new Bz(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Cz:Math.pow(Cz,e),new Bz(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Bz(Wz(this.r),Wz(this.g),Wz(this.b),Uz(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:qz,formatHex:qz,formatHex8:function(){return`#${Zz(this.r)}${Zz(this.g)}${Zz(this.b)}${Zz(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:jz,toString:jz})),yz(Jz,(function(e,t,n,i){return 1===arguments.length?Kz(e):new Jz(e,t,n,null==i?1:i)}),xz(kz,{brighter(e){return e=null==e?Sz:Math.pow(Sz,e),new Jz(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Cz:Math.pow(Cz,e),new Jz(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i
12393
- return new Bz(Qz(e>=240?e-240:e+120,o,i),Qz(e,o,i),Qz(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Jz(Xz(this.h),Yz(this.s),Yz(this.l),Uz(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Uz(this.opacity)
12394
- return`${1===e?"hsl(":"hsla("}${Xz(this.h)}, ${100*Yz(this.s)}%, ${100*Yz(this.l)}%${1===e?")":`, ${e})`}`}}))
12395
- var eF=e=>()=>e
12396
- function tF(e){return 1==(e=+e)?nF:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):eF(isNaN(t)?n:t)}}function nF(e,t){var n=t-e
12397
- return n?function(e,t){return function(n){return e+n*t}}(e,n):eF(isNaN(e)?t:e)}var iF=function e(t){var n=tF(t)
12398
- function i(e,t){var i=n((e=Hz(e)).r,(t=Hz(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=nF(e.opacity,t.opacity)
12394
+ return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new Xz(s,a,l,e.opacity)}function Xz(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Yz(e){return(e=(e||0)%360)<0?e+360:e}function Qz(e){return Math.max(0,Math.min(1,e||0))}function eF(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}xz(Cz,Fz,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Lz,formatHex:Lz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Jz(this).formatHsl()},formatRgb:zz,toString:zz}),xz(qz,Bz,kz(Cz,{brighter(e){return e=null==e?$z:Math.pow($z,e),new qz(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Sz:Math.pow(Sz,e),new qz(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qz(Zz(this.r),Zz(this.g),Zz(this.b),Wz(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jz,formatHex:jz,formatHex8:function(){return`#${Gz(this.r)}${Gz(this.g)}${Gz(this.b)}${Gz(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Uz,toString:Uz})),xz(Xz,(function(e,t,n,i){return 1===arguments.length?Jz(e):new Xz(e,t,n,null==i?1:i)}),kz(Cz,{brighter(e){return e=null==e?$z:Math.pow($z,e),new Xz(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Sz:Math.pow(Sz,e),new Xz(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i
12395
+ return new qz(eF(e>=240?e-240:e+120,o,i),eF(e,o,i),eF(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Xz(Yz(this.h),Qz(this.s),Qz(this.l),Wz(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Wz(this.opacity)
12396
+ return`${1===e?"hsl(":"hsla("}${Yz(this.h)}, ${100*Qz(this.s)}%, ${100*Qz(this.l)}%${1===e?")":`, ${e})`}`}}))
12397
+ var tF=e=>()=>e
12398
+ function nF(e){return 1==(e=+e)?iF:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):tF(isNaN(t)?n:t)}}function iF(e,t){var n=t-e
12399
+ return n?function(e,t){return function(n){return e+n*t}}(e,n):tF(isNaN(e)?t:e)}var oF=function e(t){var n=nF(t)
12400
+ function i(e,t){var i=n((e=Bz(e)).r,(t=Bz(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=iF(e.opacity,t.opacity)
12399
12401
  return function(t){return e.r=i(t),e.g=o(t),e.b=r(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1)
12400
- function oF(e,t){t||(t=[])
12402
+ function rF(e,t){t||(t=[])
12401
12403
  var n,i=e?Math.min(t.length,e.length):0,o=t.slice()
12402
12404
  return function(r){for(n=0;n<i;++n)o[n]=e[n]*(1-r)+t[n]*r
12403
- return o}}function rF(e,t){var n,i=t?t.length:0,o=e?Math.min(i,e.length):0,r=new Array(o),s=new Array(i)
12404
- for(n=0;n<o;++n)r[n]=uF(e[n],t[n])
12405
+ return o}}function sF(e,t){var n,i=t?t.length:0,o=e?Math.min(i,e.length):0,r=new Array(o),s=new Array(i)
12406
+ for(n=0;n<o;++n)r[n]=pF(e[n],t[n])
12405
12407
  for(;n<i;++n)s[n]=t[n]
12406
12408
  return function(e){for(n=0;n<o;++n)s[n]=r[n](e)
12407
- return s}}function sF(e,t){var n=new Date
12408
- return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function aF(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function lF(e,t){var n,i={},o={}
12409
- for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=uF(e[n],t[n]):o[n]=t[n]
12409
+ return s}}function aF(e,t){var n=new Date
12410
+ return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function lF(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function cF(e,t){var n,i={},o={}
12411
+ for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=pF(e[n],t[n]):o[n]=t[n]
12410
12412
  return function(e){for(n in i)o[n]=i[n](e)
12411
- return o}}var cF=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dF=new RegExp(cF.source,"g")
12412
- function hF(e,t){var n,i,o,r=cF.lastIndex=dF.lastIndex=0,s=-1,a=[],l=[]
12413
- for(e+="",t+="";(n=cF.exec(e))&&(i=dF.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:aF(n,i)})),r=dF.lastIndex
12413
+ return o}}var dF=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hF=new RegExp(dF.source,"g")
12414
+ function uF(e,t){var n,i,o,r=dF.lastIndex=hF.lastIndex=0,s=-1,a=[],l=[]
12415
+ for(e+="",t+="";(n=dF.exec(e))&&(i=hF.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:lF(n,i)})),r=hF.lastIndex
12414
12416
  return r<t.length&&(o=t.slice(r),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,i=0;i<t;++i)a[(n=l[i]).i]=n.x(e)
12415
- return a.join("")})}function uF(e,t){var n,i,o=typeof t
12416
- return null==t||"boolean"===o?eF(t):("number"===o?aF:"string"===o?(n=zz(t))?(t=n,iF):hF:t instanceof zz?iF:t instanceof Date?sF:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?rF:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?lF:aF:oF))(e,t)}function pF(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var fF,mF=180/Math.PI,gF={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
12417
- function vF(e,t,n,i,o,r){var s,a,l
12418
- return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(t,e)*mF,skewX:Math.atan(l)*mF,scaleX:s,scaleY:a}}function bF(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(r,s){var a=[],l=[]
12417
+ return a.join("")})}function pF(e,t){var n,i,o=typeof t
12418
+ return null==t||"boolean"===o?tF(t):("number"===o?lF:"string"===o?(n=Fz(t))?(t=n,oF):uF:t instanceof Fz?oF:t instanceof Date?aF:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?sF:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?cF:lF:rF))(e,t)}function fF(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var mF,gF=180/Math.PI,vF={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
12419
+ function bF(e,t,n,i,o,r){var s,a,l
12420
+ return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(t,e)*gF,skewX:Math.atan(l)*gF,scaleX:s,scaleY:a}}function wF(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(r,s){var a=[],l=[]
12419
12421
  return r=e(r),s=e(s),function(e,i,o,r,s,a){if(e!==o||i!==r){var l=s.push("translate(",null,t,null,n)
12420
- a.push({i:l-4,x:aF(e,o)},{i:l-2,x:aF(i,r)})}else(o||r)&&s.push("translate("+o+t+r+n)}(r.translateX,r.translateY,s.translateX,s.translateY,a,l),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(o(n)+"rotate(",null,i)-2,x:aF(e,t)})):t&&n.push(o(n)+"rotate("+t+i)}(r.rotate,s.rotate,a,l),function(e,t,n,r){e!==t?r.push({i:n.push(o(n)+"skewX(",null,i)-2,x:aF(e,t)}):t&&n.push(o(n)+"skewX("+t+i)}(r.skewX,s.skewX,a,l),function(e,t,n,i,r,s){if(e!==n||t!==i){var a=r.push(o(r)+"scale(",null,",",null,")")
12421
- s.push({i:a-4,x:aF(e,n)},{i:a-2,x:aF(t,i)})}else 1===n&&1===i||r.push(o(r)+"scale("+n+","+i+")")}(r.scaleX,r.scaleY,s.scaleX,s.scaleY,a,l),r=s=null,function(e){for(var t,n=-1,i=l.length;++n<i;)a[(t=l[n]).i]=t.x(e)
12422
- return a.join("")}}}var wF=bF((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
12423
- return t.isIdentity?gF:vF(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),yF=bF((function(e){return null==e?gF:(fF||(fF=document.createElementNS("http://www.w3.org/2000/svg","g")),fF.setAttribute("transform",e),(e=fF.transform.baseVal.consolidate())?vF((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):gF)}),", ",")",")")
12424
- function xF(e){return((e=Math.exp(e))+1/e)/2}var kF,CF,SF=function e(t,n,i){function o(e,o){var r,s,a=e[0],l=e[1],c=e[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
12422
+ a.push({i:l-4,x:lF(e,o)},{i:l-2,x:lF(i,r)})}else(o||r)&&s.push("translate("+o+t+r+n)}(r.translateX,r.translateY,s.translateX,s.translateY,a,l),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(o(n)+"rotate(",null,i)-2,x:lF(e,t)})):t&&n.push(o(n)+"rotate("+t+i)}(r.rotate,s.rotate,a,l),function(e,t,n,r){e!==t?r.push({i:n.push(o(n)+"skewX(",null,i)-2,x:lF(e,t)}):t&&n.push(o(n)+"skewX("+t+i)}(r.skewX,s.skewX,a,l),function(e,t,n,i,r,s){if(e!==n||t!==i){var a=r.push(o(r)+"scale(",null,",",null,")")
12423
+ s.push({i:a-4,x:lF(e,n)},{i:a-2,x:lF(t,i)})}else 1===n&&1===i||r.push(o(r)+"scale("+n+","+i+")")}(r.scaleX,r.scaleY,s.scaleX,s.scaleY,a,l),r=s=null,function(e){for(var t,n=-1,i=l.length;++n<i;)a[(t=l[n]).i]=t.x(e)
12424
+ return a.join("")}}}var yF=wF((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
12425
+ return t.isIdentity?vF:bF(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),xF=wF((function(e){return null==e?vF:(mF||(mF=document.createElementNS("http://www.w3.org/2000/svg","g")),mF.setAttribute("transform",e),(e=mF.transform.baseVal.consolidate())?bF((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):vF)}),", ",")",")")
12426
+ function kF(e){return((e=Math.exp(e))+1/e)/2}var CF,SF,$F=function e(t,n,i){function o(e,o){var r,s,a=e[0],l=e[1],c=e[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
12425
12427
  if(m<1e-12)s=Math.log(u/c)/t,r=function(e){return[a+e*p,l+e*f,c*Math.exp(t*e*s)]}
12426
12428
  else{var g=Math.sqrt(m),v=(u*u-c*c+i*m)/(2*c*n*g),b=(u*u-c*c-i*m)/(2*u*n*g),w=Math.log(Math.sqrt(v*v+1)-v),y=Math.log(Math.sqrt(b*b+1)-b)
12427
- s=(y-w)/t,r=function(e){var i,o=e*s,r=xF(w),d=c/(n*g)*(r*(i=t*o+w,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
12428
- return[a+d*p,l+d*f,c*r/xF(t*o+w)]}}return r.duration=1e3*s*t/Math.SQRT2,r}return o.rho=function(t){var n=Math.max(.001,+t),i=n*n
12429
- return e(n,i,i*i)},o}(Math.SQRT2,2,4),$F=0,MF=0,_F=0,EF=1e3,IF=0,AF=0,OF=0,TF="object"==typeof performance&&performance.now?performance:Date,RF="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
12430
- function DF(){return AF||(RF(NF),AF=TF.now()+OF)}function NF(){AF=0}function PF(){this._call=this._time=this._next=null}function LF(e,t,n){var i=new PF
12431
- return i.restart(e,t,n),i}function zF(){AF=(IF=TF.now())+OF,$F=MF=0
12432
- try{!function(){DF(),++$F
12433
- for(var e,t=kF;t;)(e=AF-t._time)>=0&&t._call.call(void 0,e),t=t._next;--$F}()}finally{$F=0,function(){var e,t,n=kF,i=1/0
12434
- for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:kF=t)
12435
- CF=e,VF(i)}(),AF=0}}function FF(){var e=TF.now(),t=e-IF
12436
- t>EF&&(OF-=t,IF=e)}function VF(e){$F||(MF&&(MF=clearTimeout(MF)),e-AF>24?(e<1/0&&(MF=setTimeout(zF,e-TF.now()-OF)),_F&&(_F=clearInterval(_F))):(_F||(IF=TF.now(),_F=setInterval(FF,EF)),$F=1,RF(zF)))}function HF(e,t,n){var i=new PF
12437
- return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}PF.prototype=LF.prototype={constructor:PF,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
12438
- n=(null==n?DF():+n)+(null==t?0:+t),this._next||CF===this||(CF?CF._next=this:kF=this,CF=this),this._call=e,this._time=n,VF()},stop:function(){this._call&&(this._call=null,this._time=1/0,VF())}}
12439
- var BF=eL("start","end","cancel","interrupt"),qF=[],jF=0,UF=1,WF=2,ZF=3,GF=4,KF=5,JF=6
12440
- function XF(e,t,n,i,o,r){var s=e.__transition
12429
+ s=(y-w)/t,r=function(e){var i,o=e*s,r=kF(w),d=c/(n*g)*(r*(i=t*o+w,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
12430
+ return[a+d*p,l+d*f,c*r/kF(t*o+w)]}}return r.duration=1e3*s*t/Math.SQRT2,r}return o.rho=function(t){var n=Math.max(.001,+t),i=n*n
12431
+ return e(n,i,i*i)},o}(Math.SQRT2,2,4),MF=0,_F=0,EF=0,IF=1e3,AF=0,OF=0,TF=0,RF="object"==typeof performance&&performance.now?performance:Date,DF="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
12432
+ function NF(){return OF||(DF(PF),OF=RF.now()+TF)}function PF(){OF=0}function LF(){this._call=this._time=this._next=null}function zF(e,t,n){var i=new LF
12433
+ return i.restart(e,t,n),i}function FF(){OF=(AF=RF.now())+TF,MF=_F=0
12434
+ try{!function(){NF(),++MF
12435
+ for(var e,t=CF;t;)(e=OF-t._time)>=0&&t._call.call(void 0,e),t=t._next;--MF}()}finally{MF=0,function(){var e,t,n=CF,i=1/0
12436
+ for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:CF=t)
12437
+ SF=e,HF(i)}(),OF=0}}function VF(){var e=RF.now(),t=e-AF
12438
+ t>IF&&(TF-=t,AF=e)}function HF(e){MF||(_F&&(_F=clearTimeout(_F)),e-OF>24?(e<1/0&&(_F=setTimeout(FF,e-RF.now()-TF)),EF&&(EF=clearInterval(EF))):(EF||(AF=RF.now(),EF=setInterval(VF,IF)),MF=1,DF(FF)))}function BF(e,t,n){var i=new LF
12439
+ return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}LF.prototype=zF.prototype={constructor:LF,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
12440
+ n=(null==n?NF():+n)+(null==t?0:+t),this._next||SF===this||(SF?SF._next=this:CF=this,SF=this),this._call=e,this._time=n,HF()},stop:function(){this._call&&(this._call=null,this._time=1/0,HF())}}
12441
+ var qF=tL("start","end","cancel","interrupt"),jF=[],UF=0,WF=1,ZF=2,GF=3,KF=4,JF=5,XF=6
12442
+ function YF(e,t,n,i,o,r){var s=e.__transition
12441
12443
  if(s){if(n in s)return}else e.__transition={}
12442
12444
  !function(e,t,n){var i,o=e.__transition
12443
- function r(e){n.state=UF,n.timer.restart(s,n.delay,n.time),n.delay<=e&&s(e-n.delay)}function s(r){var c,d,h,u
12444
- if(n.state!==UF)return l()
12445
- for(c in o)if((u=o[c]).name===n.name){if(u.state===ZF)return HF(s)
12446
- u.state===GF?(u.state=JF,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=JF,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(HF((function(){n.state===ZF&&(n.state=GF,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=WF,n.on.call("start",e,e.__data__,n.index,n.group),n.state===WF){for(n.state=ZF,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=u)
12447
- i.length=d+1}}function a(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=KF,1),r=-1,s=i.length;++r<s;)i[r].call(e,o)
12448
- n.state===KF&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=JF,n.timer.stop(),delete o[t],o)return
12449
- delete e.__transition}o[t]=n,n.timer=LF(r,0,n.time)}(e,n,{name:t,index:i,group:o,on:BF,tween:qF,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:jF})}function YF(e,t){var n=eV(e,t)
12450
- if(n.state>jF)throw new Error("too late; already scheduled")
12451
- return n}function QF(e,t){var n=eV(e,t)
12452
- if(n.state>ZF)throw new Error("too late; already running")
12453
- return n}function eV(e,t){var n=e.__transition
12445
+ function r(e){n.state=WF,n.timer.restart(s,n.delay,n.time),n.delay<=e&&s(e-n.delay)}function s(r){var c,d,h,u
12446
+ if(n.state!==WF)return l()
12447
+ for(c in o)if((u=o[c]).name===n.name){if(u.state===GF)return BF(s)
12448
+ u.state===KF?(u.state=XF,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=XF,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(BF((function(){n.state===GF&&(n.state=KF,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=ZF,n.on.call("start",e,e.__data__,n.index,n.group),n.state===ZF){for(n.state=GF,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=u)
12449
+ i.length=d+1}}function a(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=JF,1),r=-1,s=i.length;++r<s;)i[r].call(e,o)
12450
+ n.state===JF&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=XF,n.timer.stop(),delete o[t],o)return
12451
+ delete e.__transition}o[t]=n,n.timer=zF(r,0,n.time)}(e,n,{name:t,index:i,group:o,on:qF,tween:jF,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:UF})}function QF(e,t){var n=tV(e,t)
12452
+ if(n.state>UF)throw new Error("too late; already scheduled")
12453
+ return n}function eV(e,t){var n=tV(e,t)
12454
+ if(n.state>GF)throw new Error("too late; already running")
12455
+ return n}function tV(e,t){var n=e.__transition
12454
12456
  if(!n||!(n=n[t]))throw new Error("transition not found")
12455
- return n}function tV(e,t){var n,i,o,r=e.__transition,s=!0
12456
- if(r){for(o in t=null==t?null:t+"",r)(n=r[o]).name===t?(i=n.state>WF&&n.state<KF,n.state=JF,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]):s=!1
12457
- s&&delete e.__transition}}function nV(e,t){var n,i
12458
- return function(){var o=QF(this,e),r=o.tween
12457
+ return n}function nV(e,t){var n,i,o,r=e.__transition,s=!0
12458
+ if(r){for(o in t=null==t?null:t+"",r)(n=r[o]).name===t?(i=n.state>ZF&&n.state<JF,n.state=XF,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]):s=!1
12459
+ s&&delete e.__transition}}function iV(e,t){var n,i
12460
+ return function(){var o=eV(this,e),r=o.tween
12459
12461
  if(r!==n)for(var s=0,a=(i=n=r).length;s<a;++s)if(i[s].name===t){(i=i.slice()).splice(s,1)
12460
- break}o.tween=i}}function iV(e,t,n){var i,o
12462
+ break}o.tween=i}}function oV(e,t,n){var i,o
12461
12463
  if("function"!=typeof n)throw new Error
12462
- return function(){var r=QF(this,e),s=r.tween
12464
+ return function(){var r=eV(this,e),s=r.tween
12463
12465
  if(s!==i){o=(i=s).slice()
12464
12466
  for(var a={name:t,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=a
12465
- break}l===c&&o.push(a)}r.tween=o}}function oV(e,t,n){var i=e._id
12466
- return e.each((function(){var e=QF(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return eV(e,i).value[t]}}function rV(e,t){var n
12467
- return("number"==typeof t?aF:t instanceof zz?iF:(n=zz(t))?(t=n,iF):hF)(e,t)}function sV(e){return function(){this.removeAttribute(e)}}function aV(e){return function(){this.removeAttributeNS(e.space,e.local)}}function lV(e,t,n){var i,o,r=n+""
12467
+ break}l===c&&o.push(a)}r.tween=o}}function rV(e,t,n){var i=e._id
12468
+ return e.each((function(){var e=eV(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return tV(e,i).value[t]}}function sV(e,t){var n
12469
+ return("number"==typeof t?lF:t instanceof Fz?oF:(n=Fz(t))?(t=n,oF):uF)(e,t)}function aV(e){return function(){this.removeAttribute(e)}}function lV(e){return function(){this.removeAttributeNS(e.space,e.local)}}function cV(e,t,n){var i,o,r=n+""
12468
12470
  return function(){var s=this.getAttribute(e)
12469
- return s===r?null:s===i?o:o=t(i=s,n)}}function cV(e,t,n){var i,o,r=n+""
12471
+ return s===r?null:s===i?o:o=t(i=s,n)}}function dV(e,t,n){var i,o,r=n+""
12470
12472
  return function(){var s=this.getAttributeNS(e.space,e.local)
12471
- return s===r?null:s===i?o:o=t(i=s,n)}}function dV(e,t,n){var i,o,r
12473
+ return s===r?null:s===i?o:o=t(i=s,n)}}function hV(e,t,n){var i,o,r
12472
12474
  return function(){var s,a,l=n(this)
12473
12475
  if(null!=l)return(s=this.getAttribute(e))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=t(i=s,l))
12474
- this.removeAttribute(e)}}function hV(e,t,n){var i,o,r
12476
+ this.removeAttribute(e)}}function uV(e,t,n){var i,o,r
12475
12477
  return function(){var s,a,l=n(this)
12476
12478
  if(null!=l)return(s=this.getAttributeNS(e.space,e.local))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=t(i=s,l))
12477
- this.removeAttributeNS(e.space,e.local)}}function uV(e,t){var n,i
12479
+ this.removeAttributeNS(e.space,e.local)}}function pV(e,t){var n,i
12478
12480
  function o(){var o=t.apply(this,arguments)
12479
- return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function pV(e,t){var n,i
12481
+ return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function fV(e,t){var n,i
12480
12482
  function o(){var o=t.apply(this,arguments)
12481
- return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function fV(e,t){return function(){YF(this,e).delay=+t.apply(this,arguments)}}function mV(e,t){return t=+t,function(){YF(this,e).delay=t}}function gV(e,t){return function(){QF(this,e).duration=+t.apply(this,arguments)}}function vV(e,t){return t=+t,function(){QF(this,e).duration=t}}var bV=mz.prototype.constructor
12482
- function wV(e){return function(){this.style.removeProperty(e)}}var yV=0
12483
- function xV(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function kV(){return++yV}var CV=mz.prototype
12484
- xV.prototype={constructor:xV,select:function(e){var t=this._name,n=this._id
12485
- "function"!=typeof e&&(e=hL(e))
12486
- for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a,l,c=i[s],d=c.length,h=r[s]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,XF(h[u],t,n,u,h,eV(a,n)))
12487
- return new xV(r,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
12488
- "function"!=typeof e&&(e=pL(e))
12489
- for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),f=eV(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&XF(u,t,n,m,p,f)
12490
- r.push(p),s.push(l)}return new xV(r,s,t,n)},selectChild:CV.selectChild,selectChildren:CV.selectChildren,filter:function(e){"function"!=typeof e&&(e=mL(e))
12483
+ return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function mV(e,t){return function(){QF(this,e).delay=+t.apply(this,arguments)}}function gV(e,t){return t=+t,function(){QF(this,e).delay=t}}function vV(e,t){return function(){eV(this,e).duration=+t.apply(this,arguments)}}function bV(e,t){return t=+t,function(){eV(this,e).duration=t}}var wV=gz.prototype.constructor
12484
+ function yV(e){return function(){this.style.removeProperty(e)}}var xV=0
12485
+ function kV(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function CV(){return++xV}var SV=gz.prototype
12486
+ kV.prototype={constructor:kV,select:function(e){var t=this._name,n=this._id
12487
+ "function"!=typeof e&&(e=uL(e))
12488
+ for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a,l,c=i[s],d=c.length,h=r[s]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,YF(h[u],t,n,u,h,tV(a,n)))
12489
+ return new kV(r,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
12490
+ "function"!=typeof e&&(e=fL(e))
12491
+ for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),f=tV(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&YF(u,t,n,m,p,f)
12492
+ r.push(p),s.push(l)}return new kV(r,s,t,n)},selectChild:SV.selectChild,selectChildren:SV.selectChildren,filter:function(e){"function"!=typeof e&&(e=gL(e))
12491
12493
  for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s=t[o],a=s.length,l=i[o]=[],c=0;c<a;++c)(r=s[c])&&e.call(r,r.__data__,c,s)&&l.push(r)
12492
- return new xV(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
12494
+ return new kV(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
12493
12495
  for(var t=this._groups,n=e._groups,i=t.length,o=n.length,r=Math.min(i,o),s=new Array(i),a=0;a<r;++a)for(var l,c=t[a],d=n[a],h=c.length,u=s[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
12494
12496
  for(;a<i;++a)s[a]=t[a]
12495
- return new xV(s,this._parents,this._name,this._id)},selection:function(){return new bV(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=kV(),i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)if(s=a[c]){var d=eV(s,t)
12496
- XF(s,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new xV(i,this._parents,e,n)},call:CV.call,nodes:CV.nodes,node:CV.node,size:CV.size,empty:CV.empty,each:CV.each,on:function(e,t){var n=this._id
12497
- return arguments.length<2?eV(this.node(),n).on.on(e):this.each(function(e,t,n){var i,o,r=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
12498
- return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?YF:QF
12497
+ return new kV(s,this._parents,this._name,this._id)},selection:function(){return new wV(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=CV(),i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)if(s=a[c]){var d=tV(s,t)
12498
+ YF(s,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new kV(i,this._parents,e,n)},call:SV.call,nodes:SV.nodes,node:SV.node,size:SV.size,empty:SV.empty,each:SV.each,on:function(e,t){var n=this._id
12499
+ return arguments.length<2?tV(this.node(),n).on.on(e):this.each(function(e,t,n){var i,o,r=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
12500
+ return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?QF:eV
12499
12501
  return function(){var s=r(this,e),a=s.on
12500
- a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}(n,e,t))},attr:function(e,t){var n=sL(e),i="transform"===n?yF:rV
12501
- return this.attrTween(e,"function"==typeof t?(n.local?hV:dV)(n,i,oV(this,"attr."+e,t)):null==t?(n.local?aV:sV)(n):(n.local?cV:lV)(n,i,t))},attrTween:function(e,t){var n="attr."+e
12502
+ a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}(n,e,t))},attr:function(e,t){var n=aL(e),i="transform"===n?xF:sV
12503
+ return this.attrTween(e,"function"==typeof t?(n.local?uV:hV)(n,i,rV(this,"attr."+e,t)):null==t?(n.local?lV:aV)(n):(n.local?dV:cV)(n,i,t))},attrTween:function(e,t){var n="attr."+e
12502
12504
  if(arguments.length<2)return(n=this.tween(n))&&n._value
12503
12505
  if(null==t)return this.tween(n,null)
12504
12506
  if("function"!=typeof t)throw new Error
12505
- var i=sL(e)
12506
- return this.tween(n,(i.local?uV:pV)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?wF:rV
12507
+ var i=aL(e)
12508
+ return this.tween(n,(i.local?pV:fV)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?yF:sV
12507
12509
  return null==t?this.styleTween(e,function(e,t){var n,i,o
12508
- return function(){var r=zL(this,e),s=(this.style.removeProperty(e),zL(this,e))
12509
- return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}(e,i)).on("end.style."+e,wV(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,r
12510
- return function(){var s=zL(this,e),a=n(this),l=a+""
12511
- return null==a&&(this.style.removeProperty(e),l=a=zL(this,e)),s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a))}}(e,i,oV(this,"style."+e,t))).each(function(e,t){var n,i,o,r,s="style."+t,a="end."+s
12512
- return function(){var l=QF(this,e),c=l.on,d=null==l.value[s]?r||(r=wV(t)):void 0
12510
+ return function(){var r=FL(this,e),s=(this.style.removeProperty(e),FL(this,e))
12511
+ return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}(e,i)).on("end.style."+e,yV(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,r
12512
+ return function(){var s=FL(this,e),a=n(this),l=a+""
12513
+ return null==a&&(this.style.removeProperty(e),l=a=FL(this,e)),s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a))}}(e,i,rV(this,"style."+e,t))).each(function(e,t){var n,i,o,r,s="style."+t,a="end."+s
12514
+ return function(){var l=eV(this,e),c=l.on,d=null==l.value[s]?r||(r=yV(t)):void 0
12513
12515
  c===n&&o===d||(i=(n=c).copy()).on(a,o=d),l.on=i}}(this._id,e)):this.styleTween(e,function(e,t,n){var i,o,r=n+""
12514
- return function(){var s=zL(this,e)
12516
+ return function(){var s=FL(this,e)
12515
12517
  return s===r?null:s===i?o:o=t(i=s,n)}}(e,i,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var i="style."+(e+="")
12516
12518
  if(arguments.length<2)return(i=this.tween(i))&&i._value
12517
12519
  if(null==t)return this.tween(i,null)
@@ -12519,7 +12521,7 @@ if("function"!=typeof t)throw new Error
12519
12521
  return this.tween(i,function(e,t,n){var i,o
12520
12522
  function r(){var r=t.apply(this,arguments)
12521
12523
  return r!==o&&(i=(o=r)&&function(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}(e,r,n)),i}return r._value=t,r}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
12522
- this.textContent=null==t?"":t}}(oV(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
12524
+ this.textContent=null==t?"":t}}(rV(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
12523
12525
  if(arguments.length<1)return(t=this.tween(t))&&t._value
12524
12526
  if(null==e)return this.tween(t,null)
12525
12527
  if("function"!=typeof e)throw new Error
@@ -12528,60 +12530,60 @@ function i(){var i=e.apply(this,arguments)
12528
12530
  return i!==n&&(t=(n=i)&&function(e){return function(t){this.textContent=e.call(this,t)}}(i)),t}return i._value=e,i}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
12529
12531
  for(var n in this.__transition)if(+n!==e)return
12530
12532
  t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id
12531
- if(e+="",arguments.length<2){for(var i,o=eV(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===e)return i.value
12532
- return null}return this.each((null==t?nV:iV)(n,e,t))},delay:function(e){var t=this._id
12533
- return arguments.length?this.each(("function"==typeof e?fV:mV)(t,e)):eV(this.node(),t).delay},duration:function(e){var t=this._id
12534
- return arguments.length?this.each(("function"==typeof e?gV:vV)(t,e)):eV(this.node(),t).duration},ease:function(e){var t=this._id
12533
+ if(e+="",arguments.length<2){for(var i,o=tV(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===e)return i.value
12534
+ return null}return this.each((null==t?iV:oV)(n,e,t))},delay:function(e){var t=this._id
12535
+ return arguments.length?this.each(("function"==typeof e?mV:gV)(t,e)):tV(this.node(),t).delay},duration:function(e){var t=this._id
12536
+ return arguments.length?this.each(("function"==typeof e?vV:bV)(t,e)):tV(this.node(),t).duration},ease:function(e){var t=this._id
12535
12537
  return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error
12536
- return function(){QF(this,e).ease=t}}(t,e)):eV(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
12538
+ return function(){eV(this,e).ease=t}}(t,e)):tV(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
12537
12539
  return this.each(function(e,t){return function(){var n=t.apply(this,arguments)
12538
12540
  if("function"!=typeof n)throw new Error
12539
- QF(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
12541
+ eV(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
12540
12542
  return new Promise((function(r,s){var a={value:s},l={value:function(){0==--o&&r()}}
12541
- n.each((function(){var n=QF(this,i),o=n.on
12542
- o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t})),0===o&&r()}))},[Symbol.iterator]:CV[Symbol.iterator]}
12543
- var SV={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
12544
- function $V(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
12545
- return n}mz.prototype.interrupt=function(e){return this.each((function(){tV(this,e)}))},mz.prototype.transition=function(e){var t,n
12546
- e instanceof xV?(t=e._id,e=e._name):(t=kV(),(n=SV).time=DF(),e=null==e?null:e+"")
12547
- for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)(s=a[c])&&XF(s,e,t,c,a,n||$V(s,t))
12548
- return new xV(i,this._parents,e,t)}
12549
- var MV=e=>()=>e
12550
- function _V(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function EV(e,t,n){this.k=e,this.x=t,this.y=n}EV.prototype={constructor:EV,scale:function(e){return 1===e?this:new EV(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new EV(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
12551
- var IV=new EV(1,0,0)
12552
- function AV(e){for(;!e.__zoom;)if(!(e=e.parentNode))return IV
12553
- return e.__zoom}function OV(e){e.stopImmediatePropagation()}function TV(e){e.preventDefault(),e.stopImmediatePropagation()}function RV(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function DV(){var e=this
12554
- return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function NV(){return this.__zoom||IV}function PV(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function LV(){return navigator.maxTouchPoints||"ontouchstart"in this}function zV(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1]
12555
- return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function FV(){var e,t,n,i=RV,o=DV,r=zV,s=PV,a=LV,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=SF,u=eL("start","zoom","end"),p=500,f=150,m=0,g=10
12556
- function v(e){e.property("__zoom",NV).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new EV(t,e.x,e.y)}function w(e,t,n){var i=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k
12557
- return i===e.x&&o===e.y?e:new EV(e.k,i,o)}function y(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,n,i){e.on("start.zoom",(function(){k(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){k(this,arguments).event(i).end()})).tween("zoom",(function(){var e=this,r=arguments,s=k(e,r).event(i),a=o.apply(e,r),l=null==n?y(a):"function"==typeof n?n.apply(e,r):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,r):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
12543
+ n.each((function(){var n=eV(this,i),o=n.on
12544
+ o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t})),0===o&&r()}))},[Symbol.iterator]:SV[Symbol.iterator]}
12545
+ var $V={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
12546
+ function MV(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
12547
+ return n}gz.prototype.interrupt=function(e){return this.each((function(){nV(this,e)}))},gz.prototype.transition=function(e){var t,n
12548
+ e instanceof kV?(t=e._id,e=e._name):(t=CV(),(n=$V).time=NF(),e=null==e?null:e+"")
12549
+ for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)(s=a[c])&&YF(s,e,t,c,a,n||MV(s,t))
12550
+ return new kV(i,this._parents,e,t)}
12551
+ var _V=e=>()=>e
12552
+ function EV(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function IV(e,t,n){this.k=e,this.x=t,this.y=n}IV.prototype={constructor:IV,scale:function(e){return 1===e?this:new IV(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new IV(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
12553
+ var AV=new IV(1,0,0)
12554
+ function OV(e){for(;!e.__zoom;)if(!(e=e.parentNode))return AV
12555
+ return e.__zoom}function TV(e){e.stopImmediatePropagation()}function RV(e){e.preventDefault(),e.stopImmediatePropagation()}function DV(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function NV(){var e=this
12556
+ return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function PV(){return this.__zoom||AV}function LV(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function zV(){return navigator.maxTouchPoints||"ontouchstart"in this}function FV(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1]
12557
+ return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function VV(){var e,t,n,i=DV,o=NV,r=FV,s=LV,a=zV,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=$F,u=tL("start","zoom","end"),p=500,f=150,m=0,g=10
12558
+ function v(e){e.property("__zoom",PV).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new IV(t,e.x,e.y)}function w(e,t,n){var i=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k
12559
+ return i===e.x&&o===e.y?e:new IV(e.k,i,o)}function y(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,n,i){e.on("start.zoom",(function(){k(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){k(this,arguments).event(i).end()})).tween("zoom",(function(){var e=this,r=arguments,s=k(e,r).event(i),a=o.apply(e,r),l=null==n?y(a):"function"==typeof n?n.apply(e,r):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,r):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
12558
12560
  return function(e){if(1===e)e=u
12559
12561
  else{var t=p(e),n=c/t[2]
12560
- e=new EV(n,l[0]-t[0]*n,l[1]-t[1]*n)}s.zoom(null,e)}}))}function k(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function S(e,...t){if(i.apply(this,arguments)){var n=k(this,t).event(e),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,s.apply(this,arguments)))),d=vz(e)
12562
+ e=new IV(n,l[0]-t[0]*n,l[1]-t[1]*n)}s.zoom(null,e)}}))}function k(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function S(e,...t){if(i.apply(this,arguments)){var n=k(this,t).event(e),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,s.apply(this,arguments)))),d=bz(e)
12561
12563
  if(n.wheel)n.mouse[0][0]===d[0]&&n.mouse[0][1]===d[1]||(n.mouse[1]=o.invert(n.mouse[0]=d)),clearTimeout(n.wheel)
12562
12564
  else{if(o.k===a)return
12563
- n.mouse=[d,o.invert(d)],tV(this),n.start()}TV(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",r(w(b(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function $(e,...t){if(!n&&i.apply(this,arguments)){var o=e.currentTarget,s=k(this,t,!0).event(e),a=gz(e.view).on("mousemove.zoom",(function(e){if(TV(e),!s.moved){var t=e.clientX-d,n=e.clientY-h
12564
- s.moved=t*t+n*n>m}s.event(e).zoom("mouse",r(w(s.that.__zoom,s.mouse[0]=vz(e,o),s.mouse[1]),s.extent,c))}),!0).on("mouseup.zoom",(function(e){a.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,i=gz(e).on("dragstart.drag",null)
12565
- t&&(i.on("click.drag",wz,bz),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,s.moved),TV(e),s.event(e).end()}),!0),l=vz(e,o),d=e.clientX,h=e.clientY
12566
- !function(e){var t=e.document.documentElement,n=gz(e).on("dragstart.drag",wz,bz)
12567
- "onselectstart"in t?n.on("selectstart.drag",wz,bz):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),OV(e),s.mouse=[l,this.__zoom.invert(l)],tV(this),s.start()}}function M(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,s=vz(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(s),l=n.k*(e.shiftKey?.5:2),h=r(w(b(n,l),s,a),o.apply(this,t),c)
12568
- TV(e),d>0?gz(this).transition().duration(d).call(x,h,s,e):gz(this).call(v.transform,h,s,e)}}function _(n,...o){if(i.apply(this,arguments)){var r,s,a,l,c=n.touches,d=c.length,h=k(this,o,n.changedTouches.length===d).event(n)
12569
- for(OV(n),s=0;s<d;++s)l=[l=vz(a=c[s],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,r=!0,h.taps=1+!!e)
12570
- e&&(e=clearTimeout(e)),r&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),tV(this),h.start())}}function E(e,...t){if(this.__zooming){var n,i,o,s,a=k(this,t).event(e),l=e.changedTouches,d=l.length
12571
- for(TV(e),n=0;n<d;++n)o=vz(i=l[n],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=o:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=o)
12565
+ n.mouse=[d,o.invert(d)],nV(this),n.start()}RV(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",r(w(b(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function $(e,...t){if(!n&&i.apply(this,arguments)){var o=e.currentTarget,s=k(this,t,!0).event(e),a=vz(e.view).on("mousemove.zoom",(function(e){if(RV(e),!s.moved){var t=e.clientX-d,n=e.clientY-h
12566
+ s.moved=t*t+n*n>m}s.event(e).zoom("mouse",r(w(s.that.__zoom,s.mouse[0]=bz(e,o),s.mouse[1]),s.extent,c))}),!0).on("mouseup.zoom",(function(e){a.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,i=vz(e).on("dragstart.drag",null)
12567
+ t&&(i.on("click.drag",yz,wz),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,s.moved),RV(e),s.event(e).end()}),!0),l=bz(e,o),d=e.clientX,h=e.clientY
12568
+ !function(e){var t=e.document.documentElement,n=vz(e).on("dragstart.drag",yz,wz)
12569
+ "onselectstart"in t?n.on("selectstart.drag",yz,wz):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),TV(e),s.mouse=[l,this.__zoom.invert(l)],nV(this),s.start()}}function M(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,s=bz(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(s),l=n.k*(e.shiftKey?.5:2),h=r(w(b(n,l),s,a),o.apply(this,t),c)
12570
+ RV(e),d>0?vz(this).transition().duration(d).call(x,h,s,e):vz(this).call(v.transform,h,s,e)}}function _(n,...o){if(i.apply(this,arguments)){var r,s,a,l,c=n.touches,d=c.length,h=k(this,o,n.changedTouches.length===d).event(n)
12571
+ for(TV(n),s=0;s<d;++s)l=[l=bz(a=c[s],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,r=!0,h.taps=1+!!e)
12572
+ e&&(e=clearTimeout(e)),r&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),nV(this),h.start())}}function E(e,...t){if(this.__zooming){var n,i,o,s,a=k(this,t).event(e),l=e.changedTouches,d=l.length
12573
+ for(RV(e),n=0;n<d;++n)o=bz(i=l[n],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=o:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=o)
12572
12574
  if(i=a.that.__zoom,a.touch1){var h=a.touch0[0],u=a.touch0[1],p=a.touch1[0],f=a.touch1[1],m=(m=p[0]-h[0])*m+(m=p[1]-h[1])*m,g=(g=f[0]-u[0])*g+(g=f[1]-u[1])*g
12573
12575
  i=b(i,Math.sqrt(m/g)),o=[(h[0]+p[0])/2,(h[1]+p[1])/2],s=[(u[0]+f[0])/2,(u[1]+f[1])/2]}else{if(!a.touch0)return
12574
12576
  o=a.touch0[0],s=a.touch0[1]}a.zoom("touch",r(w(i,o,s),a.extent,c))}}function I(e,...i){if(this.__zooming){var o,r,s=k(this,i).event(e),a=e.changedTouches,l=a.length
12575
- for(OV(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<l;++o)r=a[o],s.touch0&&s.touch0[2]===r.identifier?delete s.touch0:s.touch1&&s.touch1[2]===r.identifier&&delete s.touch1
12577
+ for(TV(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<l;++o)r=a[o],s.touch0&&s.touch0[2]===r.identifier?delete s.touch0:s.touch1&&s.touch1[2]===r.identifier&&delete s.touch1
12576
12578
  if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0])
12577
- else if(s.end(),2===s.taps&&(r=vz(r,this),Math.hypot(t[0]-r[0],t[1]-r[1])<g)){var c=gz(this).on("dblclick.zoom")
12579
+ else if(s.end(),2===s.taps&&(r=bz(r,this),Math.hypot(t[0]-r[0],t[1]-r[1])<g)){var c=vz(this).on("dblclick.zoom")
12578
12580
  c&&c.apply(this,arguments)}}}return v.transform=function(e,t,n,i){var o=e.selection?e.selection():e
12579
- o.property("__zoom",NV),e!==o?x(e,t,n,i):o.interrupt().each((function(){k(this,arguments).event(i).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,i){v.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,i)},v.scaleTo=function(e,t,n,i){v.transform(e,(function(){var e=o.apply(this,arguments),i=this.__zoom,s=null==n?y(e):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(s),l="function"==typeof t?t.apply(this,arguments):t
12581
+ o.property("__zoom",PV),e!==o?x(e,t,n,i):o.interrupt().each((function(){k(this,arguments).event(i).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,i){v.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,i)},v.scaleTo=function(e,t,n,i){v.transform(e,(function(){var e=o.apply(this,arguments),i=this.__zoom,s=null==n?y(e):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(s),l="function"==typeof t?t.apply(this,arguments):t
12580
12582
  return r(w(b(i,l),s,a),e,c)}),n,i)},v.translateBy=function(e,t,n,i){v.transform(e,(function(){return r(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,i)},v.translateTo=function(e,t,n,i,s){v.transform(e,(function(){var e=o.apply(this,arguments),s=this.__zoom,a=null==i?y(e):"function"==typeof i?i.apply(this,arguments):i
12581
- return r(IV.translate(a[0],a[1]).scale(s.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)}),i,s)},C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=gz(this.that).datum()
12582
- u.call(e,this.that,new _V(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:u}),t)}},v.wheelDelta=function(e){return arguments.length?(s="function"==typeof e?e:MV(+e),v):s},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:MV(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:MV(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:MV([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):o},v.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],v):[l[0],l[1]]},v.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(r=e,v):r},v.duration=function(e){return arguments.length?(d=+e,v):d},v.interpolate=function(e){return arguments.length?(h=e,v):h},v.on=function(){var e=u.on.apply(u,arguments)
12583
- return e===u?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v}AV.prototype=EV.prototype
12584
- const VV=Z`
12583
+ return r(AV.translate(a[0],a[1]).scale(s.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)}),i,s)},C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=vz(this.that).datum()
12584
+ u.call(e,this.that,new EV(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:u}),t)}},v.wheelDelta=function(e){return arguments.length?(s="function"==typeof e?e:_V(+e),v):s},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:_V(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:_V(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:_V([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):o},v.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],v):[l[0],l[1]]},v.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(r=e,v):r},v.duration=function(e){return arguments.length?(d=+e,v):d},v.interpolate=function(e){return arguments.length?(h=e,v):h},v.on=function(){var e=u.on.apply(u,arguments)
12585
+ return e===u?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v}OV.prototype=IV.prototype
12586
+ const HV=Z`
12585
12587
  <div class="wafer-map-container">
12586
12588
  <svg class="svg-root">
12587
12589
  <g ${Ne("zoomContainer")} transform=${e=>e.transform.toString()}>
@@ -12611,7 +12613,7 @@ const VV=Z`
12611
12613
  />
12612
12614
  </svg>
12613
12615
  </div>
12614
- `,HV=we`
12616
+ `,BV=we`
12615
12617
  :host {
12616
12618
  display: inline-block;
12617
12619
  width: 500px;
@@ -12695,68 +12697,68 @@ const VV=Z`
12695
12697
  outline-width: 0px;
12696
12698
  }
12697
12699
  `
12698
- function BV(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function qV(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function jV(e){let t,n,i
12700
+ function qV(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function jV(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function UV(e){let t,n,i
12699
12701
  function o(e,i,o=0,r=e.length){if(o<r){if(0!==t(i,i))return r
12700
12702
  do{const t=o+r>>>1
12701
- n(e[t],i)<0?o=t+1:r=t}while(o<r)}return o}return 2!==e.length?(t=BV,n=(t,n)=>BV(e(t),n),i=(t,n)=>e(t)-n):(t=e===BV||e===qV?e:UV,n=e,i=e),{left:o,center:function(e,t,n=0,r=e.length){const s=o(e,t,n,r-1)
12703
+ n(e[t],i)<0?o=t+1:r=t}while(o<r)}return o}return 2!==e.length?(t=qV,n=(t,n)=>qV(e(t),n),i=(t,n)=>e(t)-n):(t=e===qV||e===jV?e:WV,n=e,i=e),{left:o,center:function(e,t,n=0,r=e.length){const s=o(e,t,n,r-1)
12702
12704
  return s>n&&i(e[s-1],t)>-i(e[s],t)?s-1:s},right:function(e,i,o=0,r=e.length){if(o<r){if(0!==t(i,i))return r
12703
12705
  do{const t=o+r>>>1
12704
- n(e[t],i)<=0?o=t+1:r=t}while(o<r)}return o}}}function UV(){return 0}function WV(e){return null===e?NaN:+e}const ZV=jV(BV).right
12705
- jV(WV).center
12706
- var GV=ZV
12707
- class KV extends Map{constructor(e,t=XV){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(JV(this,e))}has(e){return super.has(JV(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
12706
+ n(e[t],i)<=0?o=t+1:r=t}while(o<r)}return o}}}function WV(){return 0}function ZV(e){return null===e?NaN:+e}const GV=UV(qV).right
12707
+ UV(ZV).center
12708
+ var KV=GV
12709
+ class JV extends Map{constructor(e,t=YV){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(XV(this,e))}has(e){return super.has(XV(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
12708
12710
  return e.has(i)?e.get(i):(e.set(i,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const i=t(n)
12709
12711
  e.has(i)&&(n=e.get(i),e.delete(i))
12710
- return n}(this,e))}}function JV({_intern:e,_key:t},n){const i=t(n)
12711
- return e.has(i)?e.get(i):n}function XV(e){return null!==e&&"object"==typeof e?e.valueOf():e}const YV=Math.sqrt(50),QV=Math.sqrt(10),eH=Math.sqrt(2)
12712
- function tH(e,t,n){const i=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(i)),r=i/Math.pow(10,o),s=r>=YV?10:r>=QV?5:r>=eH?2:1
12712
+ return n}(this,e))}}function XV({_intern:e,_key:t},n){const i=t(n)
12713
+ return e.has(i)?e.get(i):n}function YV(e){return null!==e&&"object"==typeof e?e.valueOf():e}const QV=Math.sqrt(50),eH=Math.sqrt(10),tH=Math.sqrt(2)
12714
+ function nH(e,t,n){const i=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(i)),r=i/Math.pow(10,o),s=r>=QV?10:r>=eH?5:r>=tH?2:1
12713
12715
  let a,l,c
12714
- return o<0?(c=Math.pow(10,-o)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?tH(e,t,2*n):[a,l,c]}function nH(e,t,n){return tH(e=+e,t=+t,n=+n)[2]}function iH(e,t,n=WV){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
12716
+ return o<0?(c=Math.pow(10,-o)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?nH(e,t,2*n):[a,l,c]}function iH(e,t,n){return nH(e=+e,t=+t,n=+n)[2]}function oH(e,t,n=ZV){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
12715
12717
  if(t>=1)return+n(e[i-1],i-1,e)
12716
12718
  var i,o=(i-1)*t,r=Math.floor(o),s=+n(e[r],r,e)
12717
- return s+(+n(e[r+1],r+1,e)-s)*(o-r)}}function oH(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
12719
+ return s+(+n(e[r+1],r+1,e)-s)*(o-r)}}function rH(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
12718
12720
  for(var i=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),r=new Array(o);++i<o;)r[i]=e+i*n
12719
- return r}function rH(e,t){switch(arguments.length){case 0:break
12721
+ return r}function sH(e,t){switch(arguments.length){case 0:break
12720
12722
  case 1:this.range(e)
12721
12723
  break
12722
- default:this.range(t).domain(e)}return this}const sH=Symbol("implicit")
12723
- function aH(){var e=new KV,t=[],n=[],i=sH
12724
+ default:this.range(t).domain(e)}return this}const aH=Symbol("implicit")
12725
+ function lH(){var e=new JV,t=[],n=[],i=aH
12724
12726
  function o(o){let r=e.get(o)
12725
- if(void 0===r){if(i!==sH)return i
12727
+ if(void 0===r){if(i!==aH)return i
12726
12728
  e.set(o,r=t.push(o)-1)}return n[r%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice()
12727
- t=[],e=new KV
12729
+ t=[],e=new JV
12728
12730
  for(const i of n)e.has(i)||e.set(i,t.push(i)-1)
12729
- return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return aH(t,n).unknown(i)},rH.apply(o,arguments),o}function lH(){var e,t,n=aH().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
12731
+ return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return lH(t,n).unknown(i)},sH.apply(o,arguments),o}function cH(){var e,t,n=lH().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
12730
12732
  function h(){var n=i().length,h=s<r,u=h?s:r,p=h?r:s
12731
12733
  e=(p-u)/Math.max(1,n-l+2*c),a&&(e=Math.floor(e)),u+=(p-u-e*(n-l))*d,t=e*(1-l),a&&(u=Math.round(u),t=Math.round(t))
12732
- var f=oH(n).map((function(t){return u+e*t}))
12733
- return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),h()):i()},n.range=function(e){return arguments.length?([r,s]=e,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(e){return[r,s]=e,r=+r,s=+s,a=!0,h()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,h()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},n.copy=function(){return lH(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},rH.apply(h(),arguments)}function cH(e){return+e}var dH=[0,1]
12734
- function hH(e){return e}function uH(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
12735
- var n}function pH(e,t,n){var i=e[0],o=e[1],r=t[0],s=t[1]
12736
- return o<i?(i=uH(o,i),r=n(s,r)):(i=uH(i,o),r=n(r,s)),function(e){return r(i(e))}}function fH(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),r=new Array(i),s=-1
12737
- for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=uH(e[s],e[s+1]),r[s]=n(t[s],t[s+1])
12738
- return function(t){var n=GV(e,t,1,i)-1
12739
- return r[n](o[n](t))}}function mH(){var e,t,n,i,o,r,s=dH,a=dH,l=uF,c=hH
12734
+ var f=rH(n).map((function(t){return u+e*t}))
12735
+ return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),h()):i()},n.range=function(e){return arguments.length?([r,s]=e,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(e){return[r,s]=e,r=+r,s=+s,a=!0,h()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,h()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},n.copy=function(){return cH(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},sH.apply(h(),arguments)}function dH(e){return+e}var hH=[0,1]
12736
+ function uH(e){return e}function pH(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
12737
+ var n}function fH(e,t,n){var i=e[0],o=e[1],r=t[0],s=t[1]
12738
+ return o<i?(i=pH(o,i),r=n(s,r)):(i=pH(i,o),r=n(r,s)),function(e){return r(i(e))}}function mH(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),r=new Array(i),s=-1
12739
+ for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=pH(e[s],e[s+1]),r[s]=n(t[s],t[s+1])
12740
+ return function(t){var n=KV(e,t,1,i)-1
12741
+ return r[n](o[n](t))}}function gH(){var e,t,n,i,o,r,s=hH,a=hH,l=pF,c=uH
12740
12742
  function d(){var e,t,n,l=Math.min(s.length,a.length)
12741
- return c!==hH&&(e=s[0],t=s[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),i=l>2?fH:pH,o=r=null,h}function h(t){return null==t||isNaN(t=+t)?n:(o||(o=i(s.map(e),a,l)))(e(c(t)))}return h.invert=function(n){return c(t((r||(r=i(a,s.map(e),aF)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,cH),d()):s.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=pF,d()},h.clamp=function(e){return arguments.length?(c=!!e||hH,d()):c!==hH},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,i){return e=n,t=i,d()}}function gH(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
12743
+ return c!==uH&&(e=s[0],t=s[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),i=l>2?mH:fH,o=r=null,h}function h(t){return null==t||isNaN(t=+t)?n:(o||(o=i(s.map(e),a,l)))(e(c(t)))}return h.invert=function(n){return c(t((r||(r=i(a,s.map(e),lF)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,dH),d()):s.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=fF,d()},h.clamp=function(e){return arguments.length?(c=!!e||uH,d()):c!==uH},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,i){return e=n,t=i,d()}}function vH(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
12742
12744
  var n,i=e.slice(0,n)
12743
- return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function vH(e){return(e=gH(Math.abs(e)))?e[1]:NaN}var bH,wH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
12744
- function yH(e){if(!(t=wH.exec(e)))throw new Error("invalid format: "+e)
12745
+ return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function bH(e){return(e=vH(Math.abs(e)))?e[1]:NaN}var wH,yH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
12746
+ function xH(e){if(!(t=yH.exec(e)))throw new Error("invalid format: "+e)
12745
12747
  var t
12746
- return new xH({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function xH(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function kH(e,t){var n=gH(e,t)
12748
+ return new kH({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function kH(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function CH(e,t){var n=vH(e,t)
12747
12749
  if(!n)return e+""
12748
12750
  var i=n[0],o=n[1]
12749
- return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}yH.prototype=xH.prototype,xH.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}
12750
- var CH={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>kH(100*e,t),r:kH,s:function(e,t){var n=gH(e,t)
12751
+ return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}xH.prototype=kH.prototype,kH.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}
12752
+ var SH={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>CH(100*e,t),r:CH,s:function(e,t){var n=vH(e,t)
12751
12753
  if(!n)return e+""
12752
- var i=n[0],o=n[1],r=o-(bH=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
12753
- return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+gH(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
12754
- function SH(e){return e}var $H,MH,_H,EH=Array.prototype.map,IH=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
12755
- function AH(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?SH:(t=EH.call(e.grouping,Number),n=e.thousands+"",function(e,i){for(var o=e.length,r=[],s=0,a=t[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(e.substring(o-=a,o+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length]
12756
- return r.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?SH:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(EH.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+""
12757
- function h(e){var t=(e=yH(e)).fill,n=e.align,h=e.sign,u=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,v=e.trim,b=e.type
12758
- "n"===b?(m=!0,b="g"):CH[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
12759
- var w="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===u?r:/[%p]/.test(b)?l:"",x=CH[b],k=/[defgprs%]/.test(b)
12754
+ var i=n[0],o=n[1],r=o-(wH=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
12755
+ return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+vH(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
12756
+ function $H(e){return e}var MH,_H,EH,IH=Array.prototype.map,AH=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
12757
+ function OH(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?$H:(t=IH.call(e.grouping,Number),n=e.thousands+"",function(e,i){for(var o=e.length,r=[],s=0,a=t[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(e.substring(o-=a,o+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length]
12758
+ return r.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?$H:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(IH.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+""
12759
+ function h(e){var t=(e=xH(e)).fill,n=e.align,h=e.sign,u=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,v=e.trim,b=e.type
12760
+ "n"===b?(m=!0,b="g"):SH[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
12761
+ var w="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===u?r:/[%p]/.test(b)?l:"",x=SH[b],k=/[defgprs%]/.test(b)
12760
12762
  function C(e){var o,r,l,u=w,C=y
12761
12763
  if("c"===b)C=x(e)+C,e=""
12762
12764
  else{var S=(e=+e)<0||1/e<0
@@ -12765,7 +12767,7 @@ break
12765
12767
  case"0":0===o&&(o=i),t=i
12766
12768
  break
12767
12769
  default:if(!+e[i])break e
12768
- o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?IH[8+bH/3]:"")+C+(S&&"("===h?")":""),k)for(o=-1,r=e.length;++o<r;)if(48>(l=e.charCodeAt(o))||l>57){C=(46===l?s+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o)
12770
+ o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?AH[8+wH/3]:"")+C+(S&&"("===h?")":""),k)for(o=-1,r=e.length;++o<r;)if(48>(l=e.charCodeAt(o))||l>57){C=(46===l?s+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o)
12769
12771
  break}}m&&!p&&(e=i(e,1/0))
12770
12772
  var $=u.length+e.length+C.length,M=$<f?new Array(f-$+1).join(t):""
12771
12773
  switch(m&&p&&(e=i(M+e,M.length?f-C.length:1/0),M=""),n){case"<":e=u+e+C+M
@@ -12774,19 +12776,19 @@ case"=":e=u+M+e+C
12774
12776
  break
12775
12777
  case"^":e=M.slice(0,$=M.length>>1)+u+e+C+M.slice($)
12776
12778
  break
12777
- default:e=M+u+e+C}return a(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var n=h(((e=yH(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(vH(t)/3))),o=Math.pow(10,-i),r=IH[8+i/3]
12778
- return function(e){return n(o*e)+r}}}}function OH(e,t,n,i){var o,r=function(e,t,n){n=+n
12779
- const i=(t=+t)<(e=+e),o=i?nH(t,e,n):nH(e,t,n)
12779
+ default:e=M+u+e+C}return a(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var n=h(((e=xH(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(bH(t)/3))),o=Math.pow(10,-i),r=AH[8+i/3]
12780
+ return function(e){return n(o*e)+r}}}}function TH(e,t,n,i){var o,r=function(e,t,n){n=+n
12781
+ const i=(t=+t)<(e=+e),o=i?iH(t,e,n):iH(e,t,n)
12780
12782
  return(i?-1:1)*(o<0?1/-o:o)}(e,t,n)
12781
- switch((i=yH(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t))
12782
- return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(vH(t)/3)))-vH(Math.abs(e)))}(r,s))||(i.precision=o),_H(i,s)
12783
- case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,vH(t)-vH(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
12783
+ switch((i=xH(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t))
12784
+ return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(bH(t)/3)))-bH(Math.abs(e)))}(r,s))||(i.precision=o),EH(i,s)
12785
+ case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,bH(t)-bH(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
12784
12786
  break
12785
- case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-vH(Math.abs(e)))}(r))||(i.precision=o-2*("%"===i.type))}return MH(i)}function TH(e){var t=e.domain
12787
+ case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-bH(Math.abs(e)))}(r))||(i.precision=o-2*("%"===i.type))}return _H(i)}function RH(e){var t=e.domain
12786
12788
  return e.ticks=function(e){var n=t()
12787
12789
  return function(e,t,n){if(!((n=+n)>0))return[]
12788
12790
  if((e=+e)==(t=+t))return[e]
12789
- const i=t<e,[o,r,s]=i?tH(t,e,n):tH(e,t,n)
12791
+ const i=t<e,[o,r,s]=i?nH(t,e,n):nH(e,t,n)
12790
12792
  if(!(r>=o))return[]
12791
12793
  const a=r-o+1,l=new Array(a)
12792
12794
  if(i)if(s<0)for(let e=0;e<a;++e)l[e]=(r-e)/-s
@@ -12794,23 +12796,23 @@ else for(let e=0;e<a;++e)l[e]=(r-e)*s
12794
12796
  else if(s<0)for(let e=0;e<a;++e)l[e]=(o+e)/-s
12795
12797
  else for(let e=0;e<a;++e)l[e]=(o+e)*s
12796
12798
  return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var i=t()
12797
- return OH(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
12799
+ return TH(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
12798
12800
  var i,o,r=t(),s=0,a=r.length-1,l=r[s],c=r[a],d=10
12799
- for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=nH(l,c,n))===i)return r[s]=l,r[a]=c,t(r)
12801
+ for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=iH(l,c,n))===i)return r[s]=l,r[a]=c,t(r)
12800
12802
  if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
12801
12803
  else{if(!(o<0))break
12802
- l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function RH(){var e=mH()(hH,hH)
12803
- return e.copy=function(){return t=e,RH().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())
12804
- var t},rH.apply(e,arguments),TH(e)}function DH(){var e,t=[],n=[],i=[]
12804
+ l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function DH(){var e=gH()(uH,uH)
12805
+ return e.copy=function(){return t=e,DH().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())
12806
+ var t},sH.apply(e,arguments),RH(e)}function NH(){var e,t=[],n=[],i=[]
12805
12807
  function o(){var e=0,o=Math.max(1,n.length)
12806
- for(i=new Array(o-1);++e<o;)i[e-1]=iH(t,e/o)
12807
- return r}function r(t){return null==t||isNaN(t=+t)?e:n[GV(i,t)]}return r.invertExtent=function(e){var o=n.indexOf(e)
12808
+ for(i=new Array(o-1);++e<o;)i[e-1]=oH(t,e/o)
12809
+ return r}function r(t){return null==t||isNaN(t=+t)?e:n[KV(i,t)]}return r.invertExtent=function(e){var o=n.indexOf(e)
12808
12810
  return o<0?[NaN,NaN]:[o>0?i[o-1]:t[0],o<i.length?i[o]:t[t.length-1]]},r.domain=function(e){if(!arguments.length)return t.slice()
12809
12811
  t=[]
12810
12812
  for(let n of e)null==n||isNaN(n=+n)||t.push(n)
12811
- return t.sort(BV),o()},r.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.quantiles=function(){return i.slice()},r.copy=function(){return DH().domain(t).range(n).unknown(e)},rH.apply(r,arguments)}$H=AH({thousands:",",grouping:[3],currency:["$",""]}),MH=$H.format,_H=$H.formatPrefix
12812
- const NH="bottom-left",PH="bottom-right",LH="top-left",zH="top",FH="show",VH="hide",HH="linear",BH="ordinal"
12813
- class qH{constructor(e){this.wafermap=e,this.defaultPadding=0,this.baseMarginPercentage=.04}get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get radius(){return this._radius}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get invertedHorizontalScale(){return this._invertedHorizontalScale}get invertedVerticalScale(){return this._invertedVerticalScale}updateContainerDimensions(){const e={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},t=Math.min(e.width,e.height),n={top:(e.height-t)/2,right:(e.width-t)/2,bottom:(e.height-t)/2,left:(e.width-t)/2},i={top:t*this.baseMarginPercentage,right:t*this.baseMarginPercentage,bottom:t*this.baseMarginPercentage,left:t*this.baseMarginPercentage}
12813
+ return t.sort(qV),o()},r.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.quantiles=function(){return i.slice()},r.copy=function(){return NH().domain(t).range(n).unknown(e)},sH.apply(r,arguments)}MH=OH({thousands:",",grouping:[3],currency:["$",""]}),_H=MH.format,EH=MH.formatPrefix
12814
+ const PH="bottom-left",LH="bottom-right",zH="top-left",FH="top",VH="show",HH="hide",BH="linear",qH="ordinal"
12815
+ class jH{constructor(e){this.wafermap=e,this.defaultPadding=0,this.baseMarginPercentage=.04}get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get radius(){return this._radius}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get invertedHorizontalScale(){return this._invertedHorizontalScale}get invertedVerticalScale(){return this._invertedVerticalScale}updateContainerDimensions(){const e={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},t=Math.min(e.width,e.height),n={top:(e.height-t)/2,right:(e.width-t)/2,bottom:(e.height-t)/2,left:(e.width-t)/2},i={top:t*this.baseMarginPercentage,right:t*this.baseMarginPercentage,bottom:t*this.baseMarginPercentage,left:t*this.baseMarginPercentage}
12814
12816
  this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(e,this._margin)
12815
12817
  const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
12816
12818
  this._radius=o/2,this.updateScales()}updateScales(){const e=Math.min(this._containerDimensions.width,this._containerDimensions.height),t=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(this.wafermap.dies),n=this.wafermap.originLocation
@@ -12818,19 +12820,19 @@ this._horizontalScale=this.createHorizontalScale(n,t,e),this._invertedHorizontal
12818
12820
  return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(e.origin.x=this.wafermap.gridMinX,e.origin.y=this.wafermap.gridMinY,e.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,e.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),e}calculateGridDimensionsFromDies(e){if(0===e.length||void 0===e[0])return{origin:{x:0,y:0},rows:0,cols:0}
12819
12821
  const t={x:e[0].x,y:e[0].y},n={x:e[0].x,y:e[0].y}
12820
12822
  for(const i of e)i.x<t.x&&(t.x=i.x),i.y<t.y&&(t.y=i.y),i.x>n.x&&(n.x=i.x),i.y>n.y&&(n.y=i.y)
12821
- return{origin:t,rows:n.y-t.y+1,cols:n.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,n){const i=lH().domain(oH(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
12822
- return e===NH||e===LH?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=DH().domain([0,n])
12823
- return e===NH||e===LH?i.range(oH(t.origin.x,t.origin.x+t.cols)):i.range(oH(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=lH().domain(oH(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
12824
- return e===NH||e===PH?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(e,t,n){const i=DH().domain([0,n])
12825
- return e===NH||e===PH?i.range(oH(t.origin.y,t.origin.y+t.rows).reverse()):i.range(oH(t.origin.y,t.origin.y+t.rows))}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}}class jH{constructor(e,t){this.wafermap=e,this.dataManager=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode),this._diesRenderInfo=this.wafermap.dies.map((e=>this.computeDieRenderInfo(e))).filter((e=>null!==e))}computeDieRenderInfo(e){const t=this.dataManager.margin,n=this.dataManager.horizontalScale(e.x),i=this.dataManager.verticalScale(e.y)
12826
- return void 0===n||void 0===i?null:{x:n+t.right,y:i+t.top,fillStyle:this.calculateFillStyle(e.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,e.tags),text:this.buildLabel(e.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?RH().domain(e.values.map((e=>+e))).range(e.colors):aH().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
12823
+ return{origin:t,rows:n.y-t.y+1,cols:n.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,n){const i=cH().domain(rH(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
12824
+ return e===PH||e===zH?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=NH().domain([0,n])
12825
+ return e===PH||e===zH?i.range(rH(t.origin.x,t.origin.x+t.cols)):i.range(rH(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=cH().domain(rH(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
12826
+ return e===PH||e===LH?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(e,t,n){const i=NH().domain([0,n])
12827
+ return e===PH||e===LH?i.range(rH(t.origin.y,t.origin.y+t.rows).reverse()):i.range(rH(t.origin.y,t.origin.y+t.rows))}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}}class UH{constructor(e,t){this.wafermap=e,this.dataManager=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode),this._diesRenderInfo=this.wafermap.dies.map((e=>this.computeDieRenderInfo(e))).filter((e=>null!==e))}computeDieRenderInfo(e){const t=this.dataManager.margin,n=this.dataManager.horizontalScale(e.x),i=this.dataManager.verticalScale(e.y)
12828
+ return void 0===n||void 0===i?null:{x:n+t.right,y:i+t.top,fillStyle:this.calculateFillStyle(e.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,e.tags),text:this.buildLabel(e.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?DH().domain(e.values.map((e=>+e))).range(e.colors):lH().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
12827
12829
  const o=`${e}${i}`
12828
12830
  return o.length>t?`${o.substring(0,t)}…`:o}calculateOpacity(e,t){if(!t||0===t.length)return 1
12829
12831
  const n=new Set(t)
12830
- return e?.some((e=>n.has(e)))?1:this.nonHighlightedOpacity}isColorScaleLinear(e){return e===HH}isColorScaleOrdinal(e){return e===BH}calculateFillStyle(e,t,n,i){let o=this.emptyDieColor
12832
+ return e?.some((e=>n.has(e)))?1:this.nonHighlightedOpacity}isColorScaleLinear(e){return e===BH}isColorScaleOrdinal(e){return e===qH}calculateFillStyle(e,t,n,i){let o=this.emptyDieColor
12831
12833
  if(this.dieHasData(e)&&(isNaN(+e)?o=this.nanDieColor:this.isColorScaleLinear(t)?o=this.d3ColorScale(+e):this.isColorScaleOrdinal(t)&&(o=this.d3ColorScale(e))),void 0===o)return this.emptyDieColor
12832
12834
  let r=Zo(o)
12833
- return null===r?this.emptyDieColor:(r=new Fo(r.r,r.g,r.b,this.calculateOpacity(i,n)),r.toStringWebRGBA())}}class UH{constructor(e){this.wafermap=e,this.computations=new qH(e),this.prerendering=new jH(e,this)}get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get data(){return this.dataMap}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((e=>[`${e.x}_${e.y}`,e])))}}class WH{constructor(e){this.wafermap=e,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?VH:FH,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
12835
+ return null===r?this.emptyDieColor:(r=new Fo(r.r,r.g,r.b,this.calculateOpacity(i,n)),r.toStringWebRGBA())}}class WH{constructor(e){this.wafermap=e,this.computations=new jH(e),this.prerendering=new UH(e,this)}get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get data(){return this.dataMap}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((e=>[`${e.x}_${e.y}`,e])))}}class ZH{constructor(e){this.wafermap=e,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?HH:VH,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
12834
12836
  if(void 0===e)return""
12835
12837
  const t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
12836
12838
  if(void 0===t)return""
@@ -12843,19 +12845,19 @@ if(e*t*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
12843
12845
  i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
12844
12846
  const o=i.measureText("M"),r=this.wafermap.transform.invert([0,0]),s=this.wafermap.transform.invert([this.wafermap.canvas.width,this.wafermap.canvas.height])
12845
12847
  r[0]-=e,r[1]-=t
12846
- for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+e/2,n.y+t/2+o.width/2,e-e/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(e,t,n){return e.x>=t[0]&&e.x<n[0]&&e.y>=t[1]&&e.y<n[1]}}class ZH{constructor(e){this.wafermap=e,this.zoomTransform=IV,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100}createZoomBehavior(){this.zoomBehavior=FV().scaleExtent([1.1,this.getZoomMax(this.wafermap.canvasWidth*this.wafermap.canvasHeight,this.wafermap.dataManager.containerDimensions.width*this.wafermap.dataManager.containerDimensions.height)]).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth+this.extentPadding,this.wafermap.canvasHeight+this.extentPadding]]).filter((e=>AV(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)})),this.zoomBehavior(gz(this.wafermap.canvas))}rescale(e){const t=e.transform
12847
- t.k===this.minScale?(this.zoomTransform=IV,this.zoomBehavior.transform(gz(this.wafermap.canvas),IV)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}getZoomMax(e,t){return Math.ceil(t/e*100)}}class GH{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
12848
+ for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+e/2,n.y+t/2+o.width/2,e-e/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(e,t,n){return e.x>=t[0]&&e.x<n[0]&&e.y>=t[1]&&e.y<n[1]}}class GH{constructor(e){this.wafermap=e,this.zoomTransform=AV,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100}createZoomBehavior(){this.zoomBehavior=VV().scaleExtent([1.1,this.getZoomMax(this.wafermap.canvasWidth*this.wafermap.canvasHeight,this.wafermap.dataManager.containerDimensions.width*this.wafermap.dataManager.containerDimensions.height)]).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth+this.extentPadding,this.wafermap.canvasHeight+this.extentPadding]]).filter((e=>OV(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)})),this.zoomBehavior(vz(this.wafermap.canvas))}rescale(e){const t=e.transform
12849
+ t.k===this.minScale?(this.zoomTransform=AV,this.zoomBehavior.transform(vz(this.wafermap.canvas),AV)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}getZoomMax(e,t){return Math.ceil(t/e*100)}}class KH{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
12848
12850
  if(!this.hoversOverDie(this.wafermap,t))return void(this.wafermap.hoverDie=void 0)
12849
12851
  const n=this.wafermap.transform.invert([t.x,t.y]),i=this.calculateDieCoordinates(this.wafermap,{x:n[0],y:n[1]})
12850
- this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e,t){const n=e.originLocation,i=n===NH||n===LH?Math.floor:Math.ceil,o=n===NH||n===PH?Math.floor:Math.ceil
12852
+ this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e,t){const n=e.originLocation,i=n===PH||n===zH?Math.floor:Math.ceil,o=n===PH||n===LH?Math.floor:Math.ceil
12851
12853
  return{x:i(e.dataManager.invertedHorizontalScale(t.x-e.dataManager.margin.left)),y:o(e.dataManager.invertedVerticalScale(t.y-e.dataManager.margin.top))}}hoversOverDie(e,t){const n=e.canvasContext.getImageData(t.x,t.y,1,1).data
12852
12854
  let i=0
12853
12855
  for(const e of n)i+=e
12854
- return i>0}}class KH{constructor(e){this.wafermap=e,this.onWheelMove=e=>{e.preventDefault()},this.onMouseMove=e=>{this.hoverHandler.mousemove(e)},this.onMouseOut=()=>{this.hoverHandler.mouseout()},this.zoomHandler=new ZH(e),this.hoverHandler=new GH(e)}attachEvents(){this.zoomHandler.createZoomBehavior(),this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.addEventListener("wheel",this.onWheelMove,{passive:!1})}detachEvents(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.removeEventListener("wheel",this.onWheelMove)}}const JH=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
12855
- class XH extends KE{constructor(e){super(JH),this.wafermap=e,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("highlightedTags")||this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresDrawnWaferUpdate(){return this.isTracked("transform")}get requiresRenderHoverUpdate(){return this.isTracked("hoverDie")}queueUpdate(){this.wafermap.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1}))))}}class YH{constructor(e){this.wafermap=e,this.invalidGridDimensions=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}}class QH extends zt{constructor(){super(...arguments),this.waferMapUpdateTracker=new XH(this),this.originLocation=NH,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=zH,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=HH,this.dataManager=new UH(this),this.renderer=new WH(this),this.renderQueued=!1,this.transform=IV,this.hoverTransform="",this.hoverOpacity=VH,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.eventCoordinator=new KH(this),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new YH(this)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}update(){this.waferMapUpdateTracker.requiresEventsUpdate?(this.eventCoordinator.detachEvents(),this.waferMapValidator.validateGridDimensions(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate?(this.dataManager.updateContainerDimensions(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresScalesUpdate?(this.dataManager.updateScales(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate?(this.dataManager.updateLabelsFontSize(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.dataManager.updateDiesRenderInfo(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.renderer.drawWafer(),this.eventCoordinator.attachEvents()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}createResizeObserver(){return new ResizeObserver((e=>{const t=e[0]
12856
+ return i>0}}class JH{constructor(e){this.wafermap=e,this.onWheelMove=e=>{e.preventDefault()},this.onMouseMove=e=>{this.hoverHandler.mousemove(e)},this.onMouseOut=()=>{this.hoverHandler.mouseout()},this.zoomHandler=new GH(e),this.hoverHandler=new KH(e)}attachEvents(){this.zoomHandler.createZoomBehavior(),this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.addEventListener("wheel",this.onWheelMove,{passive:!1})}detachEvents(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.removeEventListener("wheel",this.onWheelMove)}}const XH=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
12857
+ class YH extends KE{constructor(e){super(XH),this.wafermap=e,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("highlightedTags")||this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresDrawnWaferUpdate(){return this.isTracked("transform")}get requiresRenderHoverUpdate(){return this.isTracked("hoverDie")}queueUpdate(){this.wafermap.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1}))))}}class QH{constructor(e){this.wafermap=e,this.invalidGridDimensions=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}}class eB extends zt{constructor(){super(...arguments),this.waferMapUpdateTracker=new YH(this),this.originLocation=PH,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=FH,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=BH,this.dataManager=new WH(this),this.renderer=new ZH(this),this.renderQueued=!1,this.transform=AV,this.hoverTransform="",this.hoverOpacity=HH,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.eventCoordinator=new JH(this),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new QH(this)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}update(){this.waferMapUpdateTracker.requiresEventsUpdate?(this.eventCoordinator.detachEvents(),this.waferMapValidator.validateGridDimensions(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate?(this.dataManager.updateContainerDimensions(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresScalesUpdate?(this.dataManager.updateScales(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate?(this.dataManager.updateLabelsFontSize(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.dataManager.updateDiesRenderInfo(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.renderer.drawWafer(),this.eventCoordinator.attachEvents()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}createResizeObserver(){return new ResizeObserver((e=>{const t=e[0]
12856
12858
  if(void 0===t)return
12857
12859
  const{height:n,width:i}=t.contentRect
12858
- this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}}e([se({attribute:"origin-location"})],QH.prototype,"originLocation",void 0),e([se({attribute:"grid-min-x",converter:oe})],QH.prototype,"gridMinX",void 0),e([se({attribute:"grid-max-x",converter:oe})],QH.prototype,"gridMaxX",void 0),e([se({attribute:"grid-min-y",converter:oe})],QH.prototype,"gridMinY",void 0),e([se({attribute:"grid-max-y",converter:oe})],QH.prototype,"gridMaxY",void 0),e([se],QH.prototype,"orientation",void 0),e([se({attribute:"max-characters",converter:oe})],QH.prototype,"maxCharacters",void 0),e([se({attribute:"die-labels-hidden",mode:"boolean"})],QH.prototype,"dieLabelsHidden",void 0),e([se({attribute:"die-labels-suffix"})],QH.prototype,"dieLabelsSuffix",void 0),e([se({attribute:"color-scale-mode"})],QH.prototype,"colorScaleMode",void 0),e([g],QH.prototype,"canvasWidth",void 0),e([g],QH.prototype,"canvasHeight",void 0),e([g],QH.prototype,"transform",void 0),e([g],QH.prototype,"hoverTransform",void 0),e([g],QH.prototype,"hoverOpacity",void 0),e([g],QH.prototype,"hoverWidth",void 0),e([g],QH.prototype,"hoverHeight",void 0),e([g],QH.prototype,"hoverDie",void 0),e([g],QH.prototype,"highlightedTags",void 0),e([g],QH.prototype,"dies",void 0),e([g],QH.prototype,"colorScale",void 0)
12859
- const eB=QH.compose({baseName:"wafer-map",template:VV,styles:HV})
12860
- bi.getOrCreate().withPrefix("nimble").register(eB())}()
12860
+ this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}}e([se({attribute:"origin-location"})],eB.prototype,"originLocation",void 0),e([se({attribute:"grid-min-x",converter:oe})],eB.prototype,"gridMinX",void 0),e([se({attribute:"grid-max-x",converter:oe})],eB.prototype,"gridMaxX",void 0),e([se({attribute:"grid-min-y",converter:oe})],eB.prototype,"gridMinY",void 0),e([se({attribute:"grid-max-y",converter:oe})],eB.prototype,"gridMaxY",void 0),e([se],eB.prototype,"orientation",void 0),e([se({attribute:"max-characters",converter:oe})],eB.prototype,"maxCharacters",void 0),e([se({attribute:"die-labels-hidden",mode:"boolean"})],eB.prototype,"dieLabelsHidden",void 0),e([se({attribute:"die-labels-suffix"})],eB.prototype,"dieLabelsSuffix",void 0),e([se({attribute:"color-scale-mode"})],eB.prototype,"colorScaleMode",void 0),e([g],eB.prototype,"canvasWidth",void 0),e([g],eB.prototype,"canvasHeight",void 0),e([g],eB.prototype,"transform",void 0),e([g],eB.prototype,"hoverTransform",void 0),e([g],eB.prototype,"hoverOpacity",void 0),e([g],eB.prototype,"hoverWidth",void 0),e([g],eB.prototype,"hoverHeight",void 0),e([g],eB.prototype,"hoverDie",void 0),e([g],eB.prototype,"highlightedTags",void 0),e([g],eB.prototype,"dies",void 0),e([g],eB.prototype,"colorScale",void 0)
12861
+ const tB=eB.compose({baseName:"wafer-map",template:HV,styles:BV})
12862
+ bi.getOrCreate().withPrefix("nimble").register(tB())}()
12861
12863
  //# sourceMappingURL=all-components-bundle.min.js.map