@ni/nimble-components 18.12.4 → 18.12.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/all-components-bundle.js +84 -14
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +681 -646
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/spinner/styles.js +2 -0
  6. package/dist/esm/spinner/styles.js.map +1 -1
  7. package/dist/esm/table/components/cell/styles.js +3 -6
  8. package/dist/esm/table/components/cell/styles.js.map +1 -1
  9. package/dist/esm/table/components/header/index.d.ts +1 -0
  10. package/dist/esm/table/components/header/index.js +5 -1
  11. package/dist/esm/table/components/header/index.js.map +1 -1
  12. package/dist/esm/table/components/header/styles.js +4 -2
  13. package/dist/esm/table/components/header/styles.js.map +1 -1
  14. package/dist/esm/table/components/header/template.js +4 -0
  15. package/dist/esm/table/components/header/template.js.map +1 -1
  16. package/dist/esm/table/components/row/index.js +1 -1
  17. package/dist/esm/table/components/row/index.js.map +1 -1
  18. package/dist/esm/table/components/row/styles.js +5 -0
  19. package/dist/esm/table/components/row/styles.js.map +1 -1
  20. package/dist/esm/table/components/row/template.js +3 -0
  21. package/dist/esm/table/components/row/template.js.map +1 -1
  22. package/dist/esm/table/index.d.ts +7 -1
  23. package/dist/esm/table/index.js +19 -0
  24. package/dist/esm/table/index.js.map +1 -1
  25. package/dist/esm/table/styles.js +13 -1
  26. package/dist/esm/table/styles.js.map +1 -1
  27. package/dist/esm/table/template.js +15 -2
  28. package/dist/esm/table/template.js.map +1 -1
  29. package/dist/esm/table-column/base/types.d.ts +1 -1
  30. package/dist/esm/table-column/base/types.js +14 -1
  31. package/dist/esm/table-column/base/types.js.map +1 -1
  32. package/package.json +2 -2
@@ -3751,23 +3751,25 @@ class qf extends vp{constructor(){super(ju)}}fp("icon-tile-size",qf),no.tagFor(q
3751
3751
  class jf extends vp{constructor(){super(Uu)}}fp("icon-times",jf),no.tagFor(jf)
3752
3752
  class Uf extends vp{constructor(){super(Gu)}}fp("icon-trash",Uf),no.tagFor(Uf)
3753
3753
  class Gf extends vp{constructor(){super(Wu)}}fp("icon-triangle",Gf),no.tagFor(Gf)
3754
- class Wf extends vp{constructor(){super(Ku)}}fp("icon-triangle-two-lines-horizontal",Wf),no.tagFor(Wf)
3755
- class Xf extends vp{constructor(){super(Yu)}}fp("icon-true-false-rectangle",Xf),no.tagFor(Xf)
3756
- class Kf extends vp{constructor(){super(Qu)}}fp("icon-two-squares-in-brackets",Kf),no.tagFor(Kf)
3757
- class Yf extends vp{constructor(){super(Ju)}}fp("icon-two-triangles-between-lines",Yf),no.tagFor(Yf)
3758
- class Qf extends vp{constructor(){super(ep)}}fp("icon-unlink",Qf),no.tagFor(Qf)
3759
- class Jf extends vp{constructor(){super(tp)}}fp("icon-unlock",Jf),no.tagFor(Jf)
3760
- class em extends vp{constructor(){super(ip)}}fp("icon-upload",em),no.tagFor(em)
3761
- class tm extends vp{constructor(){super(op)}}fp("icon-user",tm),no.tagFor(tm)
3762
- class im extends vp{constructor(){super(np)}}fp("icon-watch",im),no.tagFor(im)
3763
- class om extends vp{constructor(){super(sp)}}fp("icon-waveform",om),no.tagFor(om)
3764
- class nm extends vp{constructor(){super(rp)}}fp("icon-webvi-custom",nm),no.tagFor(nm)
3765
- class sm extends vp{constructor(){super(ap)}}fp("icon-webvi-host",sm),no.tagFor(sm)
3766
- class rm extends vp{constructor(){super(lp)}}fp("icon-window-code",rm),no.tagFor(rm)
3767
- class am extends vp{constructor(){super(cp)}}fp("icon-window-text",am),no.tagFor(am)
3768
- class lm extends vp{constructor(){super(dp)}}fp("icon-wrench-hammer",lm),no.tagFor(lm)
3769
- class cm extends vp{constructor(){super(up)}}fp("icon-xmark-check",cm),no.tagFor(cm)
3770
- const dm=fe`
3754
+ class Wf extends vp{constructor(){super(Ku)}}fp("icon-triangle-two-lines-horizontal",Wf)
3755
+ const Xf=no.tagFor(Wf)
3756
+ class Kf extends vp{constructor(){super(Yu)}}fp("icon-true-false-rectangle",Kf),no.tagFor(Kf)
3757
+ class Yf extends vp{constructor(){super(Qu)}}fp("icon-two-squares-in-brackets",Yf)
3758
+ const Qf=no.tagFor(Yf)
3759
+ class Jf extends vp{constructor(){super(Ju)}}fp("icon-two-triangles-between-lines",Jf),no.tagFor(Jf)
3760
+ class em extends vp{constructor(){super(ep)}}fp("icon-unlink",em),no.tagFor(em)
3761
+ class tm extends vp{constructor(){super(tp)}}fp("icon-unlock",tm),no.tagFor(tm)
3762
+ class im extends vp{constructor(){super(ip)}}fp("icon-upload",im),no.tagFor(im)
3763
+ class om extends vp{constructor(){super(op)}}fp("icon-user",om),no.tagFor(om)
3764
+ class nm extends vp{constructor(){super(np)}}fp("icon-watch",nm),no.tagFor(nm)
3765
+ class sm extends vp{constructor(){super(sp)}}fp("icon-waveform",sm),no.tagFor(sm)
3766
+ class rm extends vp{constructor(){super(rp)}}fp("icon-webvi-custom",rm),no.tagFor(rm)
3767
+ class am extends vp{constructor(){super(ap)}}fp("icon-webvi-host",am),no.tagFor(am)
3768
+ class lm extends vp{constructor(){super(lp)}}fp("icon-window-code",lm),no.tagFor(lm)
3769
+ class cm extends vp{constructor(){super(cp)}}fp("icon-window-text",cm),no.tagFor(cm)
3770
+ class dm extends vp{constructor(){super(dp)}}fp("icon-wrench-hammer",dm),no.tagFor(dm)
3771
+ class hm extends vp{constructor(){super(up)}}fp("icon-xmark-check",hm),no.tagFor(hm)
3772
+ const um=fe`
3771
3773
  ${bn("flex")}
3772
3774
 
3773
3775
  :host {
@@ -3822,7 +3824,7 @@ const dm=fe`
3822
3824
  outline: none;
3823
3825
  }
3824
3826
  `
3825
- class hm extends yi{get value(){return super.value}set value(e){super.value=`${e}`,this.$fastController.isConnected&&this.setAttribute("value",this.value)}connectedCallback(){super.connectedCallback(),this.setAttribute("value",this.value)}}const um=hm.compose({baseName:"list-option",baseClass:yi,template:(e,t)=>G`
3827
+ class pm extends yi{get value(){return super.value}set value(e){super.value=`${e}`,this.$fastController.isConnected&&this.setAttribute("value",this.value)}connectedCallback(){super.connectedCallback(),this.setAttribute("value",this.value)}}const gm=pm.compose({baseName:"list-option",baseClass:yi,template:(e,t)=>G`
3826
3828
  <template
3827
3829
  aria-checked="${e=>e.ariaChecked}"
3828
3830
  aria-disabled="${e=>e.ariaDisabled}"
@@ -3838,9 +3840,9 @@ class hm extends yi{get value(){return super.value}set value(e){super.value=`${e
3838
3840
  </span>
3839
3841
  ${Be(0,t)}
3840
3842
  </template>
3841
- `,styles:dm})
3842
- no.getOrCreate().withPrefix("nimble").register(um()),no.tagFor(hm)
3843
- const pm=fe`
3843
+ `,styles:um})
3844
+ no.getOrCreate().withPrefix("nimble").register(gm()),no.tagFor(pm)
3845
+ const vm=fe`
3844
3846
  ${bn("grid")}
3845
3847
 
3846
3848
  :host {
@@ -3888,7 +3890,7 @@ const pm=fe`
3888
3890
  background: ${as(qn,.15)};
3889
3891
  }
3890
3892
  `))
3891
- class gm extends yo{}const vm=gm.compose({baseName:"menu",baseClass:yo,template:(e,t)=>G`
3893
+ class fm extends yo{}const mm=fm.compose({baseName:"menu",baseClass:yo,template:(e,t)=>G`
3892
3894
  <template
3893
3895
  slot="${e=>e.slot?e.slot:e.isNestedMenu()?"submenu":void 0}"
3894
3896
  role="menu"
@@ -3897,9 +3899,9 @@ class gm extends yo{}const vm=gm.compose({baseName:"menu",baseClass:yo,template:
3897
3899
  >
3898
3900
  <slot ${Te("items")}></slot>
3899
3901
  </template>
3900
- `,styles:pm})
3901
- no.getOrCreate().withPrefix("nimble").register(vm()),no.tagFor(gm)
3902
- const fm=fe`
3902
+ `,styles:vm})
3903
+ no.getOrCreate().withPrefix("nimble").register(mm()),no.tagFor(fm)
3904
+ const bm=fe`
3903
3905
  ${bn("inline-block")}
3904
3906
 
3905
3907
  :host {
@@ -3915,7 +3917,7 @@ const fm=fe`
3915
3917
  margin-top: ${ia};
3916
3918
  margin-bottom: ${ia};
3917
3919
  }
3918
- `,mm=G`
3920
+ `,wm=G`
3919
3921
  <template
3920
3922
  ?open="${e=>e.open}"
3921
3923
  @focusout="${(e,t)=>e.focusoutHandler(t.event)}"
@@ -3956,8 +3958,8 @@ const fm=fe`
3956
3958
  </${cd}>
3957
3959
  `)}
3958
3960
  </template>
3959
- `,bm="auto"
3960
- class wm extends _t{constructor(){super(...arguments),this.appearance=Pc,this.disabled=!1,this.contentHidden=!1,this.open=!1,this.position=bm,this.focusLastItemWhenOpened=!1,this.menuChangeHandler=()=>{this.setOpen(!1),this.toggleButton.focus()}}disconnectedCallback(){super.disconnectedCallback(),this.region&&this.region.removeEventListener(kr,this.menuChangeHandler)}toggleButtonChanged(e,t){this.region&&this.toggleButton&&(this.region.anchorElement=this.toggleButton)}regionChanged(e,t){e&&e.removeEventListener(kr,this.menuChangeHandler),this.region&&(this.toggleButton&&(this.region.anchorElement=this.toggleButton),this.region.addEventListener(kr,this.menuChangeHandler,{capture:!0}))}openChanged(e,t){if(this.toggleButton&&(this.toggleButton.checked=this.open),!this.open){const e={oldState:!0,newState:!1}
3961
+ `,xm="auto"
3962
+ class ym extends _t{constructor(){super(...arguments),this.appearance=Pc,this.disabled=!1,this.contentHidden=!1,this.open=!1,this.position=xm,this.focusLastItemWhenOpened=!1,this.menuChangeHandler=()=>{this.setOpen(!1),this.toggleButton.focus()}}disconnectedCallback(){super.disconnectedCallback(),this.region&&this.region.removeEventListener(kr,this.menuChangeHandler)}toggleButtonChanged(e,t){this.region&&this.toggleButton&&(this.region.anchorElement=this.toggleButton)}regionChanged(e,t){e&&e.removeEventListener(kr,this.menuChangeHandler),this.region&&(this.toggleButton&&(this.region.anchorElement=this.toggleButton),this.region.addEventListener(kr,this.menuChangeHandler,{capture:!0}))}openChanged(e,t){if(this.toggleButton&&(this.toggleButton.checked=this.open),!this.open){const e={oldState:!0,newState:!1}
3961
3963
  this.$emit("toggle",e)}}regionLoadedHandler(){this.focusLastItemWhenOpened?(this.focusLastMenuItem(),this.focusLastItemWhenOpened=!1):this.focusMenu()
3962
3964
  this.$emit("toggle",{oldState:!1,newState:!0})}focusoutHandler(e){if(!this.open)return!0
3963
3965
  const t=e.relatedTarget
@@ -3971,10 +3973,10 @@ for(;e;){if("menu"===e.getAttribute("role"))return e
3971
3973
  if(!this.isSlotElement(e))return
3972
3974
  {const t=e.assignedNodes()[0]
3973
3975
  e=t instanceof HTMLElement?t:void 0}}}isSlotElement(e){return"SLOT"===e?.nodeName}focusMenu(){this.getMenu()?.focus()}focusLastMenuItem(){const e=this.getMenu()?.querySelectorAll("[role=menuitem]")
3974
- if(e?.length){e[e.length-1].focus()}}}e([ne],wm.prototype,"appearance",void 0),e([ne({mode:"boolean"})],wm.prototype,"disabled",void 0),e([ne({attribute:"content-hidden",mode:"boolean"})],wm.prototype,"contentHidden",void 0),e([ne({mode:"boolean"})],wm.prototype,"open",void 0),e([ne({attribute:"position"})],wm.prototype,"position",void 0),e([f],wm.prototype,"toggleButton",void 0),e([f],wm.prototype,"region",void 0),e([f],wm.prototype,"slottedMenus",void 0)
3975
- const xm=wm.compose({baseName:"menu-button",template:mm,styles:fm,shadowOptions:{delegatesFocus:!0}})
3976
- no.getOrCreate().withPrefix("nimble").register(xm())
3977
- const ym=no.tagFor(wm),$m=fe`
3976
+ if(e?.length){e[e.length-1].focus()}}}e([ne],ym.prototype,"appearance",void 0),e([ne({mode:"boolean"})],ym.prototype,"disabled",void 0),e([ne({attribute:"content-hidden",mode:"boolean"})],ym.prototype,"contentHidden",void 0),e([ne({mode:"boolean"})],ym.prototype,"open",void 0),e([ne({attribute:"position"})],ym.prototype,"position",void 0),e([f],ym.prototype,"toggleButton",void 0),e([f],ym.prototype,"region",void 0),e([f],ym.prototype,"slottedMenus",void 0)
3977
+ const $m=ym.compose({baseName:"menu-button",template:wm,styles:bm,shadowOptions:{delegatesFocus:!0}})
3978
+ no.getOrCreate().withPrefix("nimble").register($m())
3979
+ const Cm=no.tagFor(ym),km=fe`
3978
3980
  ${bn("grid")}
3979
3981
 
3980
3982
  :host {
@@ -4053,7 +4055,7 @@ const ym=no.tagFor(wm),$m=fe`
4053
4055
  grid-column: 3;
4054
4056
  }
4055
4057
  `
4056
- class Cm extends xo{}const km=Cm.compose({baseName:"menu-item",baseClass:xo,template:(e,t)=>G`
4058
+ class Sm extends xo{}const _m=Sm.compose({baseName:"menu-item",baseClass:xo,template:(e,t)=>G`
4057
4059
  <template
4058
4060
  role="${e=>e.role}"
4059
4061
  aria-haspopup="${e=>e.hasSubmenu?"menu":void 0}"
@@ -4120,9 +4122,9 @@ class Cm extends xo{}const km=Cm.compose({baseName:"menu-item",baseClass:xo,temp
4120
4122
  </${e.tagFor(oi)}>
4121
4123
  `)}
4122
4124
  </template>
4123
- `,styles:$m,expandCollapseGlyph:Cd.data})
4124
- no.getOrCreate().withPrefix("nimble").register(km()),no.tagFor(Cm)
4125
- const Sm="underline",_m="outline",Im="block",Rm=fe`
4125
+ `,styles:km,expandCollapseGlyph:Cd.data})
4126
+ no.getOrCreate().withPrefix("nimble").register(_m()),no.tagFor(Sm)
4127
+ const Im="underline",Rm="outline",Mm="block",Am=fe`
4126
4128
  ${bn("inline-block")}
4127
4129
  ${Jp}
4128
4130
 
@@ -4270,12 +4272,12 @@ const Sm="underline",_m="outline",Im="block",Rm=fe`
4270
4272
  order: 1;
4271
4273
  padding-right: calc(${oa} / 4);
4272
4274
  }
4273
- `.withBehaviors(zc(Sm,fe`
4275
+ `.withBehaviors(zc(Im,fe`
4274
4276
  .root {
4275
4277
  border-bottom-width: ${na};
4276
4278
  padding-bottom: 0;
4277
4279
  }
4278
- `),zc(Im,fe`
4280
+ `),zc(Mm,fe`
4279
4281
  .root {
4280
4282
  background-color: rgba(${jr}, 0.1);
4281
4283
  }
@@ -4293,14 +4295,14 @@ const Sm="underline",_m="outline",Im="block",Rm=fe`
4293
4295
  :host([disabled]) .root {
4294
4296
  background-color: rgba(${jr}, 0.07);
4295
4297
  }
4296
- `),zc(_m,fe`
4298
+ `),zc(Rm,fe`
4297
4299
  .root {
4298
4300
  border-width: ${na};
4299
4301
  padding: 0;
4300
4302
  }
4301
4303
  `))
4302
- class Mm extends Mo{constructor(){super(...arguments),this.appearance=Sm,this.errorVisible=!1}connectedCallback(){super.connectedCallback(),this.control.setAttribute("role","spinbutton")}}e([ne],Mm.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Mm.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Mm.prototype,"errorVisible",void 0)
4303
- const Am=Mm.compose({baseName:"number-field",baseClass:Mo,template:(e,t)=>G`
4304
+ class Om extends Mo{constructor(){super(...arguments),this.appearance=Im,this.errorVisible=!1}connectedCallback(){super.connectedCallback(),this.control.setAttribute("role","spinbutton")}}e([ne],Om.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Om.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Om.prototype,"errorVisible",void 0)
4305
+ const Em=Om.compose({baseName:"number-field",baseClass:Mo,template:(e,t)=>G`
4304
4306
  <template class="${e=>e.readOnly?"readonly":""}">
4305
4307
  <label
4306
4308
  part="label"
@@ -4375,7 +4377,7 @@ const Am=Mm.compose({baseName:"number-field",baseClass:Mo,template:(e,t)=>G`
4375
4377
  ${Be(0,t)}
4376
4378
  </div>
4377
4379
  </template>
4378
- `,styles:Rm,shadowOptions:{delegatesFocus:!0},stepDownGlyph:G`
4380
+ `,styles:Am,shadowOptions:{delegatesFocus:!0},stepDownGlyph:G`
4379
4381
  <${md}
4380
4382
  class="step-up-down-button"
4381
4383
  appearance="ghost"
@@ -4407,8 +4409,8 @@ const Am=Mm.compose({baseName:"number-field",baseClass:Mo,template:(e,t)=>G`
4407
4409
  ></${bp}>
4408
4410
  ${Up}
4409
4411
  `})
4410
- no.getOrCreate().withPrefix("nimble").register(Am()),no.tagFor(Mm)
4411
- const Om=fe`
4412
+ no.getOrCreate().withPrefix("nimble").register(Em()),no.tagFor(Om)
4413
+ const Vm=fe`
4412
4414
  ${bn("inline-flex")}
4413
4415
 
4414
4416
  :host {
@@ -4495,7 +4497,7 @@ const Om=fe`
4495
4497
  fill: rgba(${jr}, 0.3);
4496
4498
  }
4497
4499
  `
4498
- class Em extends Vo{}const Vm=Em.compose({baseName:"radio",baseClass:Vo,template:(e,t)=>G`
4500
+ class Fm extends Vo{}const Hm=Fm.compose({baseName:"radio",baseClass:Vo,template:(e,t)=>G`
4499
4501
  <template
4500
4502
  role="radio"
4501
4503
  class="${e=>e.checked?"checked":""} ${e=>e.readOnly?"readonly":""}"
@@ -4518,9 +4520,9 @@ class Em extends Vo{}const Vm=Em.compose({baseName:"radio",baseClass:Vo,template
4518
4520
  <slot ${Te("defaultSlottedNodes")}></slot>
4519
4521
  </label>
4520
4522
  </template>
4521
- `,styles:Om,checkedIndicator:Kd.data})
4522
- no.getOrCreate().withPrefix("nimble").register(Vm()),no.tagFor(Em)
4523
- const Fm=fe`
4523
+ `,styles:Vm,checkedIndicator:Kd.data})
4524
+ no.getOrCreate().withPrefix("nimble").register(Hm()),no.tagFor(Fm)
4525
+ const Pm=fe`
4524
4526
  ${bn("inline-block")}
4525
4527
 
4526
4528
  .positioning-region {
@@ -4545,7 +4547,7 @@ const Fm=fe`
4545
4547
  color: ${Ll};
4546
4548
  }
4547
4549
  `
4548
- class Hm extends Ao{}const Pm=Hm.compose({baseName:"radio-group",baseClass:Ao,template:(e,t)=>G`
4550
+ class Tm extends Ao{}const Lm=Tm.compose({baseName:"radio-group",baseClass:Ao,template:(e,t)=>G`
4549
4551
  <template
4550
4552
  role="radiogroup"
4551
4553
  aria-disabled="${e=>e.disabled}"
@@ -4564,9 +4566,9 @@ class Hm extends Ao{}const Pm=Hm.compose({baseName:"radio-group",baseClass:Ao,te
4564
4566
  ></slot>
4565
4567
  </div>
4566
4568
  </template>
4567
- `,styles:Fm,shadowOptions:{delegatesFocus:!0}})
4568
- no.getOrCreate().withPrefix("nimble").register(Pm()),no.tagFor(Hm)
4569
- const Tm=fe`
4569
+ `,styles:Pm,shadowOptions:{delegatesFocus:!0}})
4570
+ no.getOrCreate().withPrefix("nimble").register(Lm()),no.tagFor(Tm)
4571
+ const Dm=fe`
4570
4572
  ${Qp}
4571
4573
  ${Jp}
4572
4574
 
@@ -4592,9 +4594,9 @@ const Tm=fe`
4592
4594
  padding-bottom: 0;
4593
4595
  }
4594
4596
  `))
4595
- class Lm extends To{constructor(){super(...arguments),this.appearance=Xp,this.errorVisible=!1}setPositioning(){this.$fastController.isConnected&&(super.setPositioning(),this.updateListboxMaxHeightCssVariable())}slottedOptionsChanged(e,t){const i=this.value
4596
- super.slottedOptionsChanged(e,t),i&&(this.value=i)}maxHeightChanged(){this.updateListboxMaxHeightCssVariable()}updateListboxMaxHeightCssVariable(){this.listbox&&this.listbox.style.setProperty("--ni-private-select-max-height",`${this.maxHeight}px`)}}e([ne],Lm.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Lm.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Lm.prototype,"errorVisible",void 0)
4597
- const Dm=Lm.compose({baseName:"select",baseClass:To,template:(e,t)=>G`
4597
+ class zm extends To{constructor(){super(...arguments),this.appearance=Xp,this.errorVisible=!1}setPositioning(){this.$fastController.isConnected&&(super.setPositioning(),this.updateListboxMaxHeightCssVariable())}slottedOptionsChanged(e,t){const i=this.value
4598
+ super.slottedOptionsChanged(e,t),i&&(this.value=i)}maxHeightChanged(){this.updateListboxMaxHeightCssVariable()}updateListboxMaxHeightCssVariable(){this.listbox&&this.listbox.style.setProperty("--ni-private-select-max-height",`${this.maxHeight}px`)}}e([ne],zm.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],zm.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],zm.prototype,"errorVisible",void 0)
4599
+ const Bm=zm.compose({baseName:"select",baseClass:To,template:(e,t)=>G`
4598
4600
  <template
4599
4601
  class="${e=>[e.collapsible&&"collapsible",e.collapsible&&e.open&&"open",e.disabled&&"disabled",e.collapsible&&e.position].filter(Boolean).join(" ")}"
4600
4602
  aria-activedescendant="${e=>e.ariaActiveDescendant}"
@@ -4647,20 +4649,21 @@ const Dm=Lm.compose({baseName:"select",baseClass:To,template:(e,t)=>G`
4647
4649
  ></slot>
4648
4650
  </div>
4649
4651
  </template>
4650
- `,styles:Tm,indicator:yd.data,end:G`
4652
+ `,styles:Dm,indicator:yd.data,end:G`
4651
4653
  <${bp}
4652
4654
  severity="error"
4653
4655
  class="error-icon"
4654
4656
  ></${bp}>
4655
4657
  ${Up}
4656
4658
  `})
4657
- no.getOrCreate().withPrefix("nimble").register(Dm()),no.tagFor(Lm)
4658
- const zm=fe`
4659
+ no.getOrCreate().withPrefix("nimble").register(Bm()),no.tagFor(zm)
4660
+ const Nm=fe`
4659
4661
  ${bn("inline-flex")}
4660
4662
 
4661
4663
  :host {
4662
4664
  height: ${aa};
4663
4665
  aspect-ratio: 1 / 1;
4666
+ --ni-private-spinner-animation-play-state: running;
4664
4667
  }
4665
4668
 
4666
4669
  div.container {
@@ -4678,6 +4681,7 @@ const zm=fe`
4678
4681
  margin: auto;
4679
4682
  animation-duration: 1600ms;
4680
4683
  animation-iteration-count: infinite;
4684
+ animation-play-state: var(--ni-private-spinner-animation-play-state);
4681
4685
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 0);
4682
4686
  }
4683
4687
 
@@ -4789,7 +4793,7 @@ const zm=fe`
4789
4793
  :host {
4790
4794
  --ni-private-spinner-bits-background-color: ${qn};
4791
4795
  }
4792
- `)),Bm=G`
4796
+ `)),Zm=G`
4793
4797
  <template role="progressbar">
4794
4798
  <div class="container">
4795
4799
  <div class="bit1"></div>
@@ -4797,9 +4801,9 @@ const zm=fe`
4797
4801
  </div>
4798
4802
  </template>
4799
4803
  `
4800
- class Nm extends _t{}const Zm=Nm.compose({baseName:"spinner",template:Bm,styles:zm})
4801
- no.getOrCreate().withPrefix("nimble").register(Zm()),no.tagFor(Nm)
4802
- const qm=fe`
4804
+ class qm extends _t{}const jm=qm.compose({baseName:"spinner",template:Zm,styles:Nm})
4805
+ no.getOrCreate().withPrefix("nimble").register(jm()),no.tagFor(qm)
4806
+ const Um=fe`
4803
4807
  ${bn("inline-flex")}
4804
4808
 
4805
4809
  :host {
@@ -4959,7 +4963,7 @@ const qm=fe`
4959
4963
  --ni-private-switch-indicator-border-color: ${qn};
4960
4964
  --ni-private-switch-indicator-border-disabled-color: ${as(qn,.3)};
4961
4965
  }
4962
- `)),jm=G`
4966
+ `)),Gm=G`
4963
4967
  <template
4964
4968
  role="switch"
4965
4969
  aria-checked="${e=>e.checked}"
@@ -4994,15 +4998,15 @@ const qm=fe`
4994
4998
  </div>
4995
4999
  </template>
4996
5000
  `
4997
- class Um extends Bo{}const Gm=Um.compose({baseClass:Bo,baseName:"switch",template:jm,styles:qm})
4998
- no.getOrCreate().withPrefix("nimble").register(Gm()),no.tagFor(Um)
4999
- class Wm extends Zo{}const Xm=Wm.compose({baseName:"tab",baseClass:Zo,template:(e,t)=>G`
5001
+ class Wm extends Bo{}const Xm=Wm.compose({baseClass:Bo,baseName:"switch",template:Gm,styles:Um})
5002
+ no.getOrCreate().withPrefix("nimble").register(Xm()),no.tagFor(Wm)
5003
+ class Km extends Zo{}const Ym=Km.compose({baseName:"tab",baseClass:Zo,template:(e,t)=>G`
5000
5004
  <template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">
5001
5005
  <slot></slot>
5002
5006
  </template>
5003
5007
  `,styles:Kc})
5004
- no.getOrCreate().withPrefix("nimble").register(Xm()),no.tagFor(Wm)
5005
- const Km=fe`
5008
+ no.getOrCreate().withPrefix("nimble").register(Ym()),no.tagFor(Km)
5009
+ const Qm=fe`
5006
5010
  ${bn("block")}
5007
5011
 
5008
5012
  :host {
@@ -5012,11 +5016,11 @@ const Km=fe`
5012
5016
  padding-top: ${oa};
5013
5017
  }
5014
5018
  `
5015
- class Ym extends No{}const Qm=Ym.compose({baseName:"tab-panel",baseClass:No,template:(e,t)=>G`
5019
+ class Jm extends No{}const eb=Jm.compose({baseName:"tab-panel",baseClass:No,template:(e,t)=>G`
5016
5020
  <template slot="tabpanel" role="tabpanel">
5017
5021
  <slot></slot>
5018
5022
  </template>
5019
- `,styles:Km})
5023
+ `,styles:Qm})
5020
5024
 
5021
5025
  ;/**
5022
5026
  * table-core
@@ -5028,10 +5032,10 @@ class Ym extends No{}const Qm=Ym.compose({baseName:"tab-panel",baseClass:No,temp
5028
5032
  *
5029
5033
  * @license MIT
5030
5034
  */
5031
- function Jm(e,t){return"function"==typeof e?e(t):e}function eb(e,t){return i=>{t.setState((t=>({...t,[e]:Jm(i,t[e])})))}}function tb(e){return e instanceof Function}function ib(e,t){const i=[],o=e=>{e.forEach((e=>{i.push(e)
5035
+ function tb(e,t){return"function"==typeof e?e(t):e}function ib(e,t){return i=>{t.setState((t=>({...t,[e]:tb(i,t[e])})))}}function ob(e){return e instanceof Function}function nb(e,t){const i=[],o=e=>{e.forEach((e=>{i.push(e)
5032
5036
  const n=t(e)
5033
5037
  null!=n&&n.length&&o(n)}))}
5034
- return o(e),i}function ob(e,t,i){let o,n=[]
5038
+ return o(e),i}function sb(e,t,i){let o,n=[]
5035
5039
  return()=>{let s
5036
5040
  i.key&&i.debug&&(s=Date.now())
5037
5041
  const r=e()
@@ -5039,36 +5043,36 @@ if(!(r.length!==n.length||r.some(((e,t)=>n[t]!==e))))return o
5039
5043
  let a
5040
5044
  if(n=r,i.key&&i.debug&&(a=Date.now()),o=t(...r),null==i||null==i.onChange||i.onChange(o),i.key&&i.debug&&null!=i&&i.debug()){const e=Math.round(100*(Date.now()-s))/100,t=Math.round(100*(Date.now()-a))/100,o=t/16,n=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e
5041
5045
  return e}
5042
- console.info(`%c⏱ ${n(t,5)} /${n(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==i?void 0:i.key)}return o}}function nb(e,t,i){var o
5046
+ console.info(`%c⏱ ${n(t,5)} /${n(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==i?void 0:i.key)}return o}}function rb(e,t,i){var o
5043
5047
  let n={id:null!=(o=i.id)?o:t.id,column:t,index:i.index,isPlaceholder:!!i.isPlaceholder,placeholderId:i.placeholderId,depth:i.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=i=>{i.subHeaders&&i.subHeaders.length&&i.subHeaders.map(t),e.push(i)}
5044
5048
  return t(n),e},getContext:()=>({table:e,header:n,column:t})}
5045
- return e._features.forEach((t=>{Object.assign(n,null==t.createHeader?void 0:t.createHeader(n,e))})),n}no.getOrCreate().withPrefix("nimble").register(Qm()),no.tagFor(Ym)
5046
- const sb={createTable:e=>({getHeaderGroups:ob((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,i,o,n)=>{var s,r
5049
+ return e._features.forEach((t=>{Object.assign(n,null==t.createHeader?void 0:t.createHeader(n,e))})),n}no.getOrCreate().withPrefix("nimble").register(eb()),no.tagFor(Jm)
5050
+ const ab={createTable:e=>({getHeaderGroups:sb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,i,o,n)=>{var s,r
5047
5051
  const a=null!=(s=null==o?void 0:o.map((e=>i.find((t=>t.id===e)))).filter(Boolean))?s:[],l=null!=(r=null==n?void 0:n.map((e=>i.find((t=>t.id===e)))).filter(Boolean))?r:[]
5048
- return rb(t,[...a,...i.filter((e=>!(null!=o&&o.includes(e.id)||null!=n&&n.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t
5049
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:ob((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,i,o,n)=>rb(t,i=i.filter((e=>!(null!=o&&o.includes(e.id)||null!=n&&n.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t
5050
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:ob((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,i,o)=>{var n
5051
- return rb(t,null!=(n=null==o?void 0:o.map((e=>i.find((t=>t.id===e)))).filter(Boolean))?n:[],e,"left")}),{key:!1,debug:()=>{var t
5052
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:ob((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,i,o)=>{var n
5053
- return rb(t,null!=(n=null==o?void 0:o.map((e=>i.find((t=>t.id===e)))).filter(Boolean))?n:[],e,"right")}),{key:!1,debug:()=>{var t
5054
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:ob((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5055
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:ob((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5056
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:ob((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5057
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:ob((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5058
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:ob((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5059
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:ob((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5060
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:ob((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5061
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:ob((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5062
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:ob((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t
5052
+ return lb(t,[...a,...i.filter((e=>!(null!=o&&o.includes(e.id)||null!=n&&n.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t
5053
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:sb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,i,o,n)=>lb(t,i=i.filter((e=>!(null!=o&&o.includes(e.id)||null!=n&&n.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t
5054
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:sb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,i,o)=>{var n
5055
+ return lb(t,null!=(n=null==o?void 0:o.map((e=>i.find((t=>t.id===e)))).filter(Boolean))?n:[],e,"left")}),{key:!1,debug:()=>{var t
5056
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:sb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,i,o)=>{var n
5057
+ return lb(t,null!=(n=null==o?void 0:o.map((e=>i.find((t=>t.id===e)))).filter(Boolean))?n:[],e,"right")}),{key:!1,debug:()=>{var t
5058
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:sb((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5059
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:sb((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5060
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:sb((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5061
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:sb((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5062
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:sb((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5063
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:sb((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5064
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:sb((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5065
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:sb((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5066
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:sb((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t
5063
5067
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5064
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:ob((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t
5068
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:sb((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t
5065
5069
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5066
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:ob((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t
5070
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:sb((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t
5067
5071
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5068
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:ob((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,i)=>{var o,n,s,r,a,l
5072
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:sb((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,i)=>{var o,n,s,r,a,l
5069
5073
  return[...null!=(o=null==(n=e[0])?void 0:n.headers)?o:[],...null!=(s=null==(r=t[0])?void 0:r.headers)?s:[],...null!=(a=null==(l=i[0])?void 0:l.headers)?a:[]].map((e=>e.getLeafHeaders())).flat()}),{key:!1,debug:()=>{var t
5070
5074
  return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})})}
5071
- function rb(e,t,i,o){var n,s
5075
+ function lb(e,t,i,o){var n,s
5072
5076
  let r=0
5073
5077
  const a=function(e,t){void 0===t&&(t=1),r=Math.max(r,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var i
5074
5078
  null!=(i=e.columns)&&i.length&&a(e.columns,t+1)}),0)}
@@ -5078,16 +5082,16 @@ const c=(e,t)=>{const n={depth:t,id:[o,`${t}`].filter(Boolean).join("_"),headers
5078
5082
  e.forEach((e=>{const r=[...s].reverse()[0]
5079
5083
  let a,l=!1
5080
5084
  if(e.column.depth===n.depth&&e.column.parent?a=e.column.parent:(a=e.column,l=!0),r&&(null==r?void 0:r.column)===a)r.subHeaders.push(e)
5081
- else{const n=nb(i,a,{id:[o,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${s.filter((e=>e.column===a)).length}`:void 0,depth:t,index:s.length})
5082
- n.subHeaders.push(e),s.push(n)}n.headers.push(e),e.headerGroup=n})),l.push(n),t>0&&c(s,t-1)},d=t.map(((e,t)=>nb(i,e,{depth:r,index:t})))
5085
+ else{const n=rb(i,a,{id:[o,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${s.filter((e=>e.column===a)).length}`:void 0,depth:t,index:s.length})
5086
+ n.subHeaders.push(e),s.push(n)}n.headers.push(e),e.headerGroup=n})),l.push(n),t>0&&c(s,t-1)},d=t.map(((e,t)=>rb(i,e,{depth:r,index:t})))
5083
5087
  c(d,r-1),l.reverse()
5084
5088
  const h=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,i=0,o=[0]
5085
5089
  e.subHeaders&&e.subHeaders.length?(o=[],h(e.subHeaders).forEach((e=>{let{colSpan:i,rowSpan:n}=e
5086
5090
  t+=i,o.push(n)}))):t=1
5087
5091
  return i+=Math.min(...o),e.colSpan=t,e.rowSpan=i,{colSpan:t,rowSpan:i}}))
5088
- return h(null!=(n=null==(s=l[0])?void 0:s.headers)?n:[]),l}const ab={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},lb={getDefaultColumnDef:()=>ab,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:eb("columnSizing",e),onColumnSizingInfoChange:eb("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var i,o,n
5092
+ return h(null!=(n=null==(s=l[0])?void 0:s.headers)?n:[]),l}const cb={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},db={getDefaultColumnDef:()=>cb,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:ib("columnSizing",e),onColumnSizingInfoChange:ib("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var i,o,n
5089
5093
  const s=t.getState().columnSizing[e.id]
5090
- return Math.min(Math.max(null!=(i=e.columnDef.minSize)?i:ab.minSize,null!=(o=null!=s?s:e.columnDef.size)?o:ab.size),null!=(n=e.columnDef.maxSize)?n:ab.maxSize)},getStart:i=>{const o=i?"left"===i?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),n=o.findIndex((t=>t.id===e.id))
5094
+ return Math.min(Math.max(null!=(i=e.columnDef.minSize)?i:cb.minSize,null!=(o=null!=s?s:e.columnDef.size)?o:cb.size),null!=(n=e.columnDef.maxSize)?n:cb.maxSize)},getStart:i=>{const o=i?"left"===i?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),n=o.findIndex((t=>t.id===e.id))
5091
5095
  if(n>0){const e=o[n-1]
5092
5096
  return e.getStart(i)+e.getSize()}return 0},resetSize:()=>{t.setColumnSizing((t=>{let{[e.id]:i,...o}=t
5093
5097
  return o}))},getCanResize:()=>{var i,o
@@ -5097,24 +5101,24 @@ e.subHeaders.length?e.subHeaders.forEach(i):t+=null!=(o=e.column.getSize())?o:0}
5097
5101
  return i(e),t},getStart:()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1]
5098
5102
  return t.getStart()+t.getSize()}return 0},getResizeHandler:()=>{const i=t.getColumn(e.column.id),o=null==i?void 0:i.getCanResize()
5099
5103
  return n=>{if(!i||!o)return
5100
- if(null==n.persist||n.persist(),db(n)&&n.touches&&n.touches.length>1)return
5101
- const s=e.getSize(),r=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[i.id,i.getSize()]],a=db(n)?Math.round(n.touches[0].clientX):n.clientX,l={},c=(e,i)=>{"number"==typeof i&&(t.setColumnSizingInfo((e=>{var t,o
5104
+ if(null==n.persist||n.persist(),ub(n)&&n.touches&&n.touches.length>1)return
5105
+ const s=e.getSize(),r=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[i.id,i.getSize()]],a=ub(n)?Math.round(n.touches[0].clientX):n.clientX,l={},c=(e,i)=>{"number"==typeof i&&(t.setColumnSizingInfo((e=>{var t,o
5102
5106
  const n=i-(null!=(t=null==e?void 0:e.startOffset)?t:0),s=Math.max(n/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999)
5103
5107
  return e.columnSizingStart.forEach((e=>{let[t,i]=e
5104
5108
  l[t]=Math.round(100*Math.max(i+i*s,0))/100})),{...e,deltaOffset:n,deltaPercentage:s}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...l}))))},d=e=>c("move",e),h=e=>{c("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},u={moveHandler:e=>d(e.clientX),upHandler:e=>{document.removeEventListener("mousemove",u.moveHandler),document.removeEventListener("mouseup",u.upHandler),h(e.clientX)}},p={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t
5105
- document.removeEventListener("touchmove",p.moveHandler),document.removeEventListener("touchend",p.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),h(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof cb)return cb
5109
+ document.removeEventListener("touchmove",p.moveHandler),document.removeEventListener("touchend",p.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),h(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof hb)return hb
5106
5110
  let e=!1
5107
5111
  try{const t={get passive(){return e=!0,!1}},i=()=>{}
5108
- window.addEventListener("test",i,t),window.removeEventListener("test",i)}catch(t){e=!1}return cb=e,cb}()&&{passive:!1}
5109
- db(n)?(document.addEventListener("touchmove",p.moveHandler,g),document.addEventListener("touchend",p.upHandler,g)):(document.addEventListener("mousemove",u.moveHandler,g),document.addEventListener("mouseup",u.upHandler,g)),t.setColumnSizingInfo((e=>({...e,startOffset:a,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:r,isResizingColumn:i.id})))}}}),createTable:e=>({setColumnSizing:t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var i
5112
+ window.addEventListener("test",i,t),window.removeEventListener("test",i)}catch(t){e=!1}return hb=e,hb}()&&{passive:!1}
5113
+ ub(n)?(document.addEventListener("touchmove",p.moveHandler,g),document.addEventListener("touchend",p.upHandler,g)):(document.addEventListener("mousemove",u.moveHandler,g),document.addEventListener("mouseup",u.upHandler,g)),t.setColumnSizingInfo((e=>({...e,startOffset:a,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:r,isResizingColumn:i.id})))}}}),createTable:e=>({setColumnSizing:t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var i
5110
5114
  e.setColumnSizing(t?{}:null!=(i=e.initialState.columnSizing)?i:{})},resetHeaderSizeInfo:t=>{var i
5111
5115
  e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(i=e.initialState.columnSizingInfo)?i:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},getTotalSize:()=>{var t,i
5112
5116
  return null!=(t=null==(i=e.getHeaderGroups()[0])?void 0:i.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},getLeftTotalSize:()=>{var t,i
5113
5117
  return null!=(t=null==(i=e.getLeftHeaderGroups()[0])?void 0:i.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},getCenterTotalSize:()=>{var t,i
5114
5118
  return null!=(t=null==(i=e.getCenterHeaderGroups()[0])?void 0:i.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},getRightTotalSize:()=>{var t,i
5115
5119
  return null!=(t=null==(i=e.getRightHeaderGroups()[0])?void 0:i.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}})}
5116
- let cb=null
5117
- function db(e){return"touchstart"===e.type}const hb={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:eb("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,i=!1
5120
+ let hb=null
5121
+ function ub(e){return"touchstart"===e.type}const pb={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:ib("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,i=!1
5118
5122
  return{_autoResetExpanded:()=>{var o,n
5119
5123
  if(t){if(null!=(o=null!=(n=e.options.autoResetAll)?n:e.options.autoResetExpanded)?o:!e.options.manualExpanding){if(i)return
5120
5124
  i=!0,e._queue((()=>{e.resetExpanded(),i=!1}))}}else e._queue((()=>{t=!0}))},setExpanded:t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),toggleAllRowsExpanded:t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},resetExpanded:t=>{var i,o
@@ -5131,57 +5135,57 @@ return i}return o}))},getIsExpanded:()=>{var i
5131
5135
  const o=t.getState().expanded
5132
5136
  return!!(null!=(i=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?i:!0===o||(null==o?void 0:o[e.id]))},getCanExpand:()=>{var i,o,n
5133
5137
  return null!=(i=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?i:(null==(o=t.options.enableExpanding)||o)&&!(null==(n=e.subRows)||!n.length)},getToggleExpandedHandler:()=>{const t=e.getCanExpand()
5134
- return()=>{t&&e.toggleExpanded()}}})},ub=(e,t,i)=>{var o
5138
+ return()=>{t&&e.toggleExpanded()}}})},gb=(e,t,i)=>{var o
5135
5139
  const n=i.toLowerCase()
5136
5140
  return Boolean(null==(o=e.getValue(t))?void 0:o.toLowerCase().includes(n))}
5137
- ub.autoRemove=e=>$b(e)
5138
- const pb=(e,t,i)=>{var o
5141
+ gb.autoRemove=e=>kb(e)
5142
+ const vb=(e,t,i)=>{var o
5139
5143
  return Boolean(null==(o=e.getValue(t))?void 0:o.includes(i))}
5140
- pb.autoRemove=e=>$b(e)
5141
- const gb=(e,t,i)=>{var o
5144
+ vb.autoRemove=e=>kb(e)
5145
+ const fb=(e,t,i)=>{var o
5142
5146
  return(null==(o=e.getValue(t))?void 0:o.toLowerCase())===i.toLowerCase()}
5143
- gb.autoRemove=e=>$b(e)
5144
- const vb=(e,t,i)=>{var o
5147
+ fb.autoRemove=e=>kb(e)
5148
+ const mb=(e,t,i)=>{var o
5145
5149
  return null==(o=e.getValue(t))?void 0:o.includes(i)}
5146
- vb.autoRemove=e=>$b(e)||!(null!=e&&e.length)
5147
- const fb=(e,t,i)=>!i.some((i=>{var o
5150
+ mb.autoRemove=e=>kb(e)||!(null!=e&&e.length)
5151
+ const bb=(e,t,i)=>!i.some((i=>{var o
5148
5152
  return!(null!=(o=e.getValue(t))&&o.includes(i))}))
5149
- fb.autoRemove=e=>$b(e)||!(null!=e&&e.length)
5150
- const mb=(e,t,i)=>i.some((i=>{var o
5153
+ bb.autoRemove=e=>kb(e)||!(null!=e&&e.length)
5154
+ const wb=(e,t,i)=>i.some((i=>{var o
5151
5155
  return null==(o=e.getValue(t))?void 0:o.includes(i)}))
5152
- mb.autoRemove=e=>$b(e)||!(null!=e&&e.length)
5153
- const bb=(e,t,i)=>e.getValue(t)===i
5154
- bb.autoRemove=e=>$b(e)
5155
- const wb=(e,t,i)=>e.getValue(t)==i
5156
- wb.autoRemove=e=>$b(e)
5157
- const xb=(e,t,i)=>{let[o,n]=i
5156
+ wb.autoRemove=e=>kb(e)||!(null!=e&&e.length)
5157
+ const xb=(e,t,i)=>e.getValue(t)===i
5158
+ xb.autoRemove=e=>kb(e)
5159
+ const yb=(e,t,i)=>e.getValue(t)==i
5160
+ yb.autoRemove=e=>kb(e)
5161
+ const $b=(e,t,i)=>{let[o,n]=i
5158
5162
  const s=e.getValue(t)
5159
5163
  return s>=o&&s<=n}
5160
- xb.resolveFilterValue=e=>{let[t,i]=e,o="number"!=typeof t?parseFloat(t):t,n="number"!=typeof i?parseFloat(i):i,s=null===t||Number.isNaN(o)?-1/0:o,r=null===i||Number.isNaN(n)?1/0:n
5164
+ $b.resolveFilterValue=e=>{let[t,i]=e,o="number"!=typeof t?parseFloat(t):t,n="number"!=typeof i?parseFloat(i):i,s=null===t||Number.isNaN(o)?-1/0:o,r=null===i||Number.isNaN(n)?1/0:n
5161
5165
  if(s>r){const e=s
5162
- s=r,r=e}return[s,r]},xb.autoRemove=e=>$b(e)||$b(e[0])&&$b(e[1])
5163
- const yb={includesString:ub,includesStringSensitive:pb,equalsString:gb,arrIncludes:vb,arrIncludesAll:fb,arrIncludesSome:mb,equals:bb,weakEquals:wb,inNumberRange:xb}
5164
- function $b(e){return null==e||""===e}const Cb={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:eb("columnFilters",e),onGlobalFilterChange:eb("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var i,o
5166
+ s=r,r=e}return[s,r]},$b.autoRemove=e=>kb(e)||kb(e[0])&&kb(e[1])
5167
+ const Cb={includesString:gb,includesStringSensitive:vb,equalsString:fb,arrIncludes:mb,arrIncludesAll:bb,arrIncludesSome:wb,equals:xb,weakEquals:yb,inNumberRange:$b}
5168
+ function kb(e){return null==e||""===e}const Sb={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:ib("columnFilters",e),onGlobalFilterChange:ib("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var i,o
5165
5169
  const n=null==(i=e.getCoreRowModel().flatRows[0])||null==(o=i._getAllCellsByColumnId()[t.id])?void 0:o.getValue()
5166
5170
  return"string"==typeof n||"number"==typeof n}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{const i=t.getCoreRowModel().flatRows[0],o=null==i?void 0:i.getValue(e.id)
5167
- return"string"==typeof o?yb.includesString:"number"==typeof o?yb.inNumberRange:"boolean"==typeof o||null!==o&&"object"==typeof o?yb.equals:Array.isArray(o)?yb.arrIncludes:yb.weakEquals},getFilterFn:()=>{var i,o
5168
- return tb(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(i=null==(o=t.options.filterFns)?void 0:o[e.columnDef.filterFn])?i:yb[e.columnDef.filterFn]},getCanFilter:()=>{var i,o,n
5171
+ return"string"==typeof o?Cb.includesString:"number"==typeof o?Cb.inNumberRange:"boolean"==typeof o||null!==o&&"object"==typeof o?Cb.equals:Array.isArray(o)?Cb.arrIncludes:Cb.weakEquals},getFilterFn:()=>{var i,o
5172
+ return ob(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(i=null==(o=t.options.filterFns)?void 0:o[e.columnDef.filterFn])?i:Cb[e.columnDef.filterFn]},getCanFilter:()=>{var i,o,n
5169
5173
  return(null==(i=e.columnDef.enableColumnFilter)||i)&&(null==(o=t.options.enableColumnFilters)||o)&&(null==(n=t.options.enableFilters)||n)&&!!e.accessorFn},getCanGlobalFilter:()=>{var i,o,n,s
5170
5174
  return(null==(i=e.columnDef.enableGlobalFilter)||i)&&(null==(o=t.options.enableGlobalFilter)||o)&&(null==(n=t.options.enableFilters)||n)&&(null==(s=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||s)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var i,o
5171
5175
  return null==(i=t.getState().columnFilters)||null==(o=i.find((t=>t.id===e.id)))?void 0:o.value},getFilterIndex:()=>{var i,o
5172
- return null!=(i=null==(o=t.getState().columnFilters)?void 0:o.findIndex((t=>t.id===e.id)))?i:-1},setFilterValue:i=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),n=null==t?void 0:t.find((t=>t.id===e.id)),s=Jm(i,n?n.value:void 0)
5176
+ return null!=(i=null==(o=t.getState().columnFilters)?void 0:o.findIndex((t=>t.id===e.id)))?i:-1},setFilterValue:i=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),n=null==t?void 0:t.find((t=>t.id===e.id)),s=tb(i,n?n.value:void 0)
5173
5177
  var r
5174
- if(kb(o,s,e))return null!=(r=null==t?void 0:t.filter((t=>t.id!==e.id)))?r:[]
5178
+ if(_b(o,s,e))return null!=(r=null==t?void 0:t.filter((t=>t.id!==e.id)))?r:[]
5175
5179
  const a={id:e.id,value:s}
5176
5180
  var l
5177
- return n?null!=(l=null==t?void 0:t.map((t=>t.id===e.id?a:t)))?l:[]:null!=t&&t.length?[...t,a]:[a]}))},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>yb.includesString,getGlobalFilterFn:()=>{var t,i
5181
+ return n?null!=(l=null==t?void 0:t.map((t=>t.id===e.id?a:t)))?l:[]:null!=t&&t.length?[...t,a]:[a]}))},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>Cb.includesString,getGlobalFilterFn:()=>{var t,i
5178
5182
  const{globalFilterFn:o}=e.options
5179
- return tb(o)?o:"auto"===o?e.getGlobalAutoFilterFn():null!=(t=null==(i=e.options.filterFns)?void 0:i[o])?t:yb[o]},setColumnFilters:t=>{const i=e.getAllLeafColumns()
5183
+ return ob(o)?o:"auto"===o?e.getGlobalAutoFilterFn():null!=(t=null==(i=e.options.filterFns)?void 0:i[o])?t:Cb[o]},setColumnFilters:t=>{const i=e.getAllLeafColumns()
5180
5184
  null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o
5181
- return null==(o=Jm(t,e))?void 0:o.filter((e=>{const t=i.find((t=>t.id===e.id))
5182
- if(t){if(kb(t.getFilterFn(),e.value,t))return!1}return!0}))}))},setGlobalFilter:t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var i,o
5185
+ return null==(o=tb(t,e))?void 0:o.filter((e=>{const t=i.find((t=>t.id===e.id))
5186
+ if(t){if(_b(t.getFilterFn(),e.value,t))return!1}return!0}))}))},setGlobalFilter:t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var i,o
5183
5187
  e.setColumnFilters(t?[]:null!=(i=null==(o=e.initialState)?void 0:o.columnFilters)?i:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})}
5184
- function kb(e,t,i){return!(!e||!e.autoRemove)&&e.autoRemove(t,i)||void 0===t||"string"==typeof t&&!t}const Sb={sum:(e,t,i)=>i.reduce(((t,i)=>{const o=i.getValue(e)
5188
+ function _b(e,t,i){return!(!e||!e.autoRemove)&&e.autoRemove(t,i)||void 0===t||"string"==typeof t&&!t}const Ib={sum:(e,t,i)=>i.reduce(((t,i)=>{const o=i.getValue(e)
5185
5189
  return t+("number"==typeof o?o:0)}),0),min:(e,t,i)=>{let o
5186
5190
  return i.forEach((t=>{const i=t.getValue(e)
5187
5191
  null!=i&&(o>i||void 0===o&&i>=i)&&(o=i)})),o},max:(e,t,i)=>{let o
@@ -5194,13 +5198,13 @@ null!=n&&(n=+n)>=n&&(++i,o+=n)})),i)return o/i},median:(e,t)=>{if(!t.length)retu
5194
5198
  let i=0,o=0
5195
5199
  return t.forEach((t=>{let n=t.getValue(e)
5196
5200
  "number"==typeof n&&(i=Math.min(i,n),o=Math.max(o,n))})),(i+o)/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length}
5197
- const _b={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:eb("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var i
5201
+ const Rb={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:ib("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var i
5198
5202
  return e.setRowSelection(t?{}:null!=(i=e.initialState.rowSelection)?i:{})},toggleAllRowsSelected:t=>{e.setRowSelection((i=>{t=void 0!==t?t:!e.getIsAllRowsSelected()
5199
5203
  const o={...i},n=e.getPreGroupedRowModel().flatRows
5200
5204
  return t?n.forEach((e=>{e.getCanSelect()&&(o[e.id]=!0)})):n.forEach((e=>{delete o[e.id]})),o}))},toggleAllPageRowsSelected:t=>e.setRowSelection((i=>{const o=void 0!==t?t:!e.getIsAllPageRowsSelected(),n={...i}
5201
- return e.getRowModel().rows.forEach((t=>{Ib(n,t.id,o,e)})),n})),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:ob((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,i)=>Object.keys(t).length?Rb(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t
5202
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:ob((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,i)=>Object.keys(t).length?Rb(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t
5203
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:ob((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,i)=>Object.keys(t).length?Rb(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t
5205
+ return e.getRowModel().rows.forEach((t=>{Mb(n,t.id,o,e)})),n})),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:sb((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,i)=>Object.keys(t).length?Ab(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t
5206
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:sb((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,i)=>Object.keys(t).length?Ab(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t
5207
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:sb((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,i)=>Object.keys(t).length?Ab(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t
5204
5208
  return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:i}=e.getState()
5205
5209
  let o=Boolean(t.length&&Object.keys(i).length)
5206
5210
  return o&&t.some((e=>e.getCanSelect()&&!i[e.id]))&&(o=!1),o},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows,{rowSelection:i}=e.getState()
@@ -5211,71 +5215,71 @@ return i>0&&i<e.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected
5211
5215
  return!e.getIsAllPageRowsSelected()&&t.some((e=>e.getIsSelected()||e.getIsSomeSelected()))},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:i=>{const o=e.getIsSelected()
5212
5216
  t.setRowSelection((n=>{if(o===(i=void 0!==i?i:!o))return n
5213
5217
  const s={...n}
5214
- return Ib(s,e.id,i,t),s}))},getIsSelected:()=>{const{rowSelection:i}=t.getState()
5215
- return Mb(e,i)},getIsSomeSelected:()=>{const{rowSelection:i}=t.getState()
5216
- return"some"===Ab(e,i)},getIsAllSubRowsSelected:()=>{const{rowSelection:i}=t.getState()
5217
- return"all"===Ab(e,i)},getCanSelect:()=>{var i
5218
+ return Mb(s,e.id,i,t),s}))},getIsSelected:()=>{const{rowSelection:i}=t.getState()
5219
+ return Ob(e,i)},getIsSomeSelected:()=>{const{rowSelection:i}=t.getState()
5220
+ return"some"===Eb(e,i)},getIsAllSubRowsSelected:()=>{const{rowSelection:i}=t.getState()
5221
+ return"all"===Eb(e,i)},getCanSelect:()=>{var i
5218
5222
  return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(i=t.options.enableRowSelection)||i},getCanSelectSubRows:()=>{var i
5219
5223
  return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(i=t.options.enableSubRowSelection)||i},getCanMultiSelect:()=>{var i
5220
5224
  return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(i=t.options.enableMultiRowSelection)||i},getToggleSelectedHandler:()=>{const t=e.getCanSelect()
5221
5225
  return i=>{var o
5222
- t&&e.toggleSelected(null==(o=i.target)?void 0:o.checked)}}})},Ib=(e,t,i,o)=>{var n
5226
+ t&&e.toggleSelected(null==(o=i.target)?void 0:o.checked)}}})},Mb=(e,t,i,o)=>{var n
5223
5227
  const s=o.getRow(t)
5224
- i?(s.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),s.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(n=s.subRows)&&n.length&&s.getCanSelectSubRows()&&s.subRows.forEach((t=>Ib(e,t.id,i,o)))}
5225
- function Rb(e,t){const i=e.getState().rowSelection,o=[],n={},s=function(e,t){return e.map((e=>{var t
5226
- const r=Mb(e,i)
5228
+ i?(s.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),s.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(n=s.subRows)&&n.length&&s.getCanSelectSubRows()&&s.subRows.forEach((t=>Mb(e,t.id,i,o)))}
5229
+ function Ab(e,t){const i=e.getState().rowSelection,o=[],n={},s=function(e,t){return e.map((e=>{var t
5230
+ const r=Ob(e,i)
5227
5231
  if(r&&(o.push(e),n[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:s(e.subRows)}),r)return e})).filter(Boolean)}
5228
- return{rows:s(t.rows),flatRows:o,rowsById:n}}function Mb(e,t){var i
5229
- return null!=(i=t[e.id])&&i}function Ab(e,t,i){if(e.subRows&&e.subRows.length){let i=!0,o=!1
5230
- return e.subRows.forEach((e=>{o&&!i||(Mb(e,t)?o=!0:i=!1)})),i?"all":!!o&&"some"}return!1}const Ob=/([0-9]+)/gm
5231
- function Eb(e,t){return e===t?0:e>t?1:-1}function Vb(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Fb(e,t){const i=e.split(Ob).filter(Boolean),o=t.split(Ob).filter(Boolean)
5232
+ return{rows:s(t.rows),flatRows:o,rowsById:n}}function Ob(e,t){var i
5233
+ return null!=(i=t[e.id])&&i}function Eb(e,t,i){if(e.subRows&&e.subRows.length){let i=!0,o=!1
5234
+ return e.subRows.forEach((e=>{o&&!i||(Ob(e,t)?o=!0:i=!1)})),i?"all":!!o&&"some"}return!1}const Vb=/([0-9]+)/gm
5235
+ function Fb(e,t){return e===t?0:e>t?1:-1}function Hb(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Pb(e,t){const i=e.split(Vb).filter(Boolean),o=t.split(Vb).filter(Boolean)
5232
5236
  for(;i.length&&o.length;){const e=i.shift(),t=o.shift(),n=parseInt(e,10),s=parseInt(t,10),r=[n,s].sort()
5233
5237
  if(isNaN(r[0])){if(e>t)return 1
5234
5238
  if(t>e)return-1}else{if(isNaN(r[1]))return isNaN(n)?-1:1
5235
5239
  if(n>s)return 1
5236
- if(s>n)return-1}}return i.length-o.length}const Hb={alphanumeric:(e,t,i)=>Fb(Vb(e.getValue(i)).toLowerCase(),Vb(t.getValue(i)).toLowerCase()),alphanumericCaseSensitive:(e,t,i)=>Fb(Vb(e.getValue(i)),Vb(t.getValue(i))),text:(e,t,i)=>Eb(Vb(e.getValue(i)).toLowerCase(),Vb(t.getValue(i)).toLowerCase()),textCaseSensitive:(e,t,i)=>Eb(Vb(e.getValue(i)),Vb(t.getValue(i))),datetime:(e,t,i)=>{const o=e.getValue(i),n=t.getValue(i)
5237
- return o>n?1:o<n?-1:0},basic:(e,t,i)=>Eb(e.getValue(i),t.getValue(i))},Pb=[sb,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:eb("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:i=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=i?i:!e.getIsVisible()})))},getIsVisible:()=>{var i,o
5240
+ if(s>n)return-1}}return i.length-o.length}const Tb={alphanumeric:(e,t,i)=>Pb(Hb(e.getValue(i)).toLowerCase(),Hb(t.getValue(i)).toLowerCase()),alphanumericCaseSensitive:(e,t,i)=>Pb(Hb(e.getValue(i)),Hb(t.getValue(i))),text:(e,t,i)=>Fb(Hb(e.getValue(i)).toLowerCase(),Hb(t.getValue(i)).toLowerCase()),textCaseSensitive:(e,t,i)=>Fb(Hb(e.getValue(i)),Hb(t.getValue(i))),datetime:(e,t,i)=>{const o=e.getValue(i),n=t.getValue(i)
5241
+ return o>n?1:o<n?-1:0},basic:(e,t,i)=>Fb(e.getValue(i),t.getValue(i))},Lb=[ab,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:ib("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:i=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=i?i:!e.getIsVisible()})))},getIsVisible:()=>{var i,o
5238
5242
  return null==(i=null==(o=t.getState().columnVisibility)?void 0:o[e.id])||i},getCanHide:()=>{var i,o
5239
- return(null==(i=e.columnDef.enableHiding)||i)&&(null==(o=t.options.enableHiding)||o)},getToggleVisibilityHandler:()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:ob((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e
5240
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:ob((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,i)=>[...e,...t,...i]),{key:!1,debug:()=>{var e
5241
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{const t=(t,i)=>ob((()=>[i(),i().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t
5243
+ return(null==(i=e.columnDef.enableHiding)||i)&&(null==(o=t.options.enableHiding)||o)},getToggleVisibilityHandler:()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:sb((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e
5244
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:sb((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,i)=>[...e,...t,...i]),{key:!1,debug:()=>{var e
5245
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{const t=(t,i)=>sb((()=>[i(),i().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t
5242
5246
  return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})
5243
5247
  return{getVisibleFlatColumns:t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),getVisibleLeafColumns:t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),setColumnVisibility:t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),resetColumnVisibility:t=>{var i
5244
5248
  e.setColumnVisibility(t?{}:null!=(i=e.initialState.columnVisibility)?i:{})},toggleAllColumnsVisible:t=>{var i
5245
5249
  t=null!=(i=t)?i:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,i)=>({...e,[i.id]:t||!(null!=i.getCanHide&&i.getCanHide())})),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),getToggleAllColumnsVisibilityHandler:()=>t=>{var i
5246
- e.toggleAllColumnsVisible(null==(i=t.target)?void 0:i.checked)}}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:eb("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var i
5247
- e.setColumnOrder(t?[]:null!=(i=e.initialState.columnOrder)?i:[])},_getOrderColumnsFn:ob((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,i)=>o=>{let n=[]
5250
+ e.toggleAllColumnsVisible(null==(i=t.target)?void 0:i.checked)}}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:ib("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var i
5251
+ e.setColumnOrder(t?[]:null!=(i=e.initialState.columnOrder)?i:[])},_getOrderColumnsFn:sb((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,i)=>o=>{let n=[]
5248
5252
  if(null!=e&&e.length){const t=[...e],i=[...o]
5249
5253
  for(;i.length&&t.length;){const e=t.shift(),o=i.findIndex((t=>t.id===e))
5250
5254
  o>-1&&n.push(i.splice(o,1)[0])}n=[...n,...i]}else n=o
5251
5255
  return function(e,t,i){if(null==t||!t.length||!i)return e
5252
5256
  const o=e.filter((e=>!t.includes(e.id)))
5253
- return"remove"===i?o:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...o]}(n,t,i)}),{key:!1})})},{getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:eb("columnPinning",e)}),createColumn:(e,t)=>({pin:i=>{const o=e.getLeafColumns().map((e=>e.id)).filter(Boolean)
5257
+ return"remove"===i?o:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...o]}(n,t,i)}),{key:!1})})},{getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:ib("columnPinning",e)}),createColumn:(e,t)=>({pin:i=>{const o=e.getLeafColumns().map((e=>e.id)).filter(Boolean)
5254
5258
  t.setColumnPinning((e=>{var t,n,s,r,a,l
5255
5259
  return"right"===i?{left:(null!=(s=null==e?void 0:e.left)?s:[]).filter((e=>!(null!=o&&o.includes(e)))),right:[...(null!=(r=null==e?void 0:e.right)?r:[]).filter((e=>!(null!=o&&o.includes(e)))),...o]}:"left"===i?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=o&&o.includes(e)))),...o],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter((e=>!(null!=o&&o.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=o&&o.includes(e)))),right:(null!=(n=null==e?void 0:e.right)?n:[]).filter((e=>!(null!=o&&o.includes(e))))}}))},getCanPin:()=>e.getLeafColumns().some((e=>{var i,o
5256
5260
  return(null==(i=e.columnDef.enablePinning)||i)&&(null==(o=t.options.enablePinning)||o)})),getIsPinned:()=>{const i=e.getLeafColumns().map((e=>e.id)),{left:o,right:n}=t.getState().columnPinning,s=i.some((e=>null==o?void 0:o.includes(e))),r=i.some((e=>null==n?void 0:n.includes(e)))
5257
5261
  return s?"left":!!r&&"right"},getPinnedIndex:()=>{var i,o,n
5258
5262
  const s=e.getIsPinned()
5259
- return s?null!=(i=null==(o=t.getState().columnPinning)||null==(n=o[s])?void 0:n.indexOf(e.id))?i:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:ob((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,i)=>{const o=[...null!=t?t:[],...null!=i?i:[]]
5263
+ return s?null!=(i=null==(o=t.getState().columnPinning)||null==(n=o[s])?void 0:n.indexOf(e.id))?i:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:sb((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,i)=>{const o=[...null!=t?t:[],...null!=i?i:[]]
5260
5264
  return e.filter((e=>!o.includes(e.column.id)))}),{key:"row.getCenterVisibleCells",debug:()=>{var e
5261
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:ob((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),{key:"row.getLeftVisibleCells",debug:()=>{var e
5262
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:ob((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),{key:"row.getRightVisibleCells",debug:()=>{var e
5265
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:sb((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),{key:"row.getLeftVisibleCells",debug:()=>{var e
5266
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:sb((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),{key:"row.getRightVisibleCells",debug:()=>{var e
5263
5267
  return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var i,o
5264
5268
  return e.setColumnPinning(t?{left:[],right:[]}:null!=(i=null==(o=e.initialState)?void 0:o.columnPinning)?i:{left:[],right:[]})},getIsSomeColumnsPinned:t=>{var i
5265
5269
  const o=e.getState().columnPinning
5266
5270
  var n,s
5267
- return t?Boolean(null==(i=o[t])?void 0:i.length):Boolean((null==(n=o.left)?void 0:n.length)||(null==(s=o.right)?void 0:s.length))},getLeftLeafColumns:ob((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
5268
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:ob((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
5269
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:ob((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,i)=>{const o=[...null!=t?t:[],...null!=i?i:[]]
5271
+ return t?Boolean(null==(i=o[t])?void 0:i.length):Boolean((null==(n=o.left)?void 0:n.length)||(null==(s=o.right)?void 0:s.length))},getLeftLeafColumns:sb((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
5272
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:sb((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
5273
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:sb((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,i)=>{const o=[...null!=t?t:[],...null!=i?i:[]]
5270
5274
  return e.filter((e=>!o.includes(e.id)))}),{key:!1,debug:()=>{var t
5271
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},Cb,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:eb("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const i=t.getFilteredRowModel().flatRows.slice(10)
5275
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},Sb,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:ib("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const i=t.getFilteredRowModel().flatRows.slice(10)
5272
5276
  let o=!1
5273
5277
  for(const t of i){const i=null==t?void 0:t.getValue(e.id)
5274
- if("[object Date]"===Object.prototype.toString.call(i))return Hb.datetime
5275
- if("string"==typeof i&&(o=!0,i.split(Ob).length>1))return Hb.alphanumeric}return o?Hb.text:Hb.basic},getAutoSortDir:()=>{const i=t.getFilteredRowModel().flatRows[0]
5278
+ if("[object Date]"===Object.prototype.toString.call(i))return Tb.datetime
5279
+ if("string"==typeof i&&(o=!0,i.split(Vb).length>1))return Tb.alphanumeric}return o?Tb.text:Tb.basic},getAutoSortDir:()=>{const i=t.getFilteredRowModel().flatRows[0]
5276
5280
  return"string"==typeof(null==i?void 0:i.getValue(e.id))?"asc":"desc"},getSortingFn:()=>{var i,o
5277
5281
  if(!e)throw new Error
5278
- return tb(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(i=null==(o=t.options.sortingFns)?void 0:o[e.columnDef.sortingFn])?i:Hb[e.columnDef.sortingFn]},toggleSorting:(i,o)=>{const n=e.getNextSortingOrder(),s=null!=i
5282
+ return ob(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(i=null==(o=t.options.sortingFns)?void 0:o[e.columnDef.sortingFn])?i:Tb[e.columnDef.sortingFn]},toggleSorting:(i,o)=>{const n=e.getNextSortingOrder(),s=null!=i
5279
5283
  t.setSorting((r=>{const a=null==r?void 0:r.find((t=>t.id===e.id)),l=null==r?void 0:r.findIndex((t=>t.id===e.id))
5280
5284
  let c,d=[],h=s?i:"desc"===n
5281
5285
  var u;(c=null!=r&&r.length&&e.getCanMultiSort()&&o?a?"toggle":"add":null!=r&&r.length&&l!==r.length-1?"replace":a?"toggle":"replace","toggle"===c&&(s||n||(c="remove")),"add"===c)?(d=[...r,{id:e.id,desc:h}],d.splice(0,d.length-(null!=(u=t.options.maxMultiSortColCount)?u:Number.MAX_SAFE_INTEGER))):d="toggle"===c?r.map((t=>t.id===e.id?{...t,desc:h}:t)):"remove"===c?r.filter((t=>t.id!==e.id)):[{id:e.id,desc:h}]
@@ -5290,86 +5294,86 @@ return!!o&&(o.desc?"desc":"asc")},getSortIndex:()=>{var i,o
5290
5294
  return null!=(i=null==(o=t.getState().sorting)?void 0:o.findIndex((t=>t.id===e.id)))?i:-1},clearSorting:()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},getToggleSortingHandler:()=>{const i=e.getCanSort()
5291
5295
  return o=>{i&&(null==o.persist||o.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(o))))}}}),createTable:e=>({setSorting:t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),resetSorting:t=>{var i,o
5292
5296
  e.setSorting(t?[]:null!=(i=null==(o=e.initialState)?void 0:o.sorting)?i:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,i
5293
- return null!=(t=null==(i=e.getValue())||null==i.toString?void 0:i.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:eb("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},getCanGroup:()=>{var i,o,n,s
5297
+ return null!=(t=null==(i=e.getValue())||null==i.toString?void 0:i.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:ib("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},getCanGroup:()=>{var i,o,n,s
5294
5298
  return null!=(i=null==(o=null!=(n=null==(s=e.columnDef.enableGrouping)||s)?n:t.options.enableGrouping)||o)?i:!!e.accessorFn},getIsGrouped:()=>{var i
5295
5299
  return null==(i=t.getState().grouping)?void 0:i.includes(e.id)},getGroupedIndex:()=>{var i
5296
5300
  return null==(i=t.getState().grouping)?void 0:i.indexOf(e.id)},getToggleGroupingHandler:()=>{const t=e.getCanGroup()
5297
5301
  return()=>{t&&e.toggleGrouping()}},getAutoAggregationFn:()=>{const i=t.getCoreRowModel().flatRows[0],o=null==i?void 0:i.getValue(e.id)
5298
- return"number"==typeof o?Sb.sum:"[object Date]"===Object.prototype.toString.call(o)?Sb.extent:void 0},getAggregationFn:()=>{var i,o
5302
+ return"number"==typeof o?Ib.sum:"[object Date]"===Object.prototype.toString.call(o)?Ib.extent:void 0},getAggregationFn:()=>{var i,o
5299
5303
  if(!e)throw new Error
5300
- return tb(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(i=null==(o=t.options.aggregationFns)?void 0:o[e.columnDef.aggregationFn])?i:Sb[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var i,o
5304
+ return ob(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(i=null==(o=t.options.aggregationFns)?void 0:o[e.columnDef.aggregationFn])?i:Ib[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var i,o
5301
5305
  e.setGrouping(t?[]:null!=(i=null==(o=e.initialState)?void 0:o.grouping)?i:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())}),createRow:e=>({getIsGrouped:()=>!!e.groupingColumnId,_groupingValuesCache:{}}),createCell:(e,t,i,o)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===i.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var t
5302
- return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=i.subRows)||!t.length)}})},hb,{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:eb("pagination",e)}),createTable:e=>{let t=!1,i=!1
5306
+ return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=i.subRows)||!t.length)}})},pb,{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:ib("pagination",e)}),createTable:e=>{let t=!1,i=!1
5303
5307
  return{_autoResetPageIndex:()=>{var o,n
5304
5308
  if(t){if(null!=(o=null!=(n=e.options.autoResetAll)?n:e.options.autoResetPageIndex)?o:!e.options.manualPagination){if(i)return
5305
- i=!0,e._queue((()=>{e.resetPageIndex(),i=!1}))}}else e._queue((()=>{t=!0}))},setPagination:t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>Jm(t,e))),resetPagination:t=>{var i
5306
- e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(i=e.initialState.pagination)?i:{pageIndex:0,pageSize:10})},setPageIndex:t=>{e.setPagination((i=>{let o=Jm(t,i.pageIndex)
5309
+ i=!0,e._queue((()=>{e.resetPageIndex(),i=!1}))}}else e._queue((()=>{t=!0}))},setPagination:t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>tb(t,e))),resetPagination:t=>{var i
5310
+ e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(i=e.initialState.pagination)?i:{pageIndex:0,pageSize:10})},setPageIndex:t=>{e.setPagination((i=>{let o=tb(t,i.pageIndex)
5307
5311
  const n=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1
5308
5312
  return o=Math.max(0,Math.min(o,n)),{...i,pageIndex:o}}))},resetPageIndex:t=>{var i,o,n
5309
5313
  e.setPageIndex(t?0:null!=(i=null==(o=e.initialState)||null==(n=o.pagination)?void 0:n.pageIndex)?i:0)},resetPageSize:t=>{var i,o,n
5310
- e.setPageSize(t?10:null!=(i=null==(o=e.initialState)||null==(n=o.pagination)?void 0:n.pageSize)?i:10)},setPageSize:t=>{e.setPagination((e=>{const i=Math.max(1,Jm(t,e.pageSize)),o=e.pageSize*e.pageIndex,n=Math.floor(o/i)
5314
+ e.setPageSize(t?10:null!=(i=null==(o=e.initialState)||null==(n=o.pagination)?void 0:n.pageSize)?i:10)},setPageSize:t=>{e.setPagination((e=>{const i=Math.max(1,tb(t,e.pageSize)),o=e.pageSize*e.pageIndex,n=Math.floor(o/i)
5311
5315
  return{...e,pageIndex:n,pageSize:i}}))},setPageCount:t=>e.setPagination((i=>{var o
5312
- let n=Jm(t,null!=(o=e.options.pageCount)?o:-1)
5313
- return"number"==typeof n&&(n=Math.max(-1,n)),{...i,pageCount:n}})),getPageOptions:ob((()=>[e.getPageCount()]),(e=>{let t=[]
5316
+ let n=tb(t,null!=(o=e.options.pageCount)?o:-1)
5317
+ return"number"==typeof n&&(n=Math.max(-1,n)),{...i,pageCount:n}})),getPageOptions:sb((()=>[e.getPageCount()]),(e=>{let t=[]
5314
5318
  return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:!1,debug:()=>{var t
5315
5319
  return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:t}=e.getState().pagination,i=e.getPageCount()
5316
5320
  return-1===i||0!==i&&t<i-1},previousPage:()=>e.setPageIndex((e=>e-1)),nextPage:()=>e.setPageIndex((e=>e+1)),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),getPageCount:()=>{var t
5317
- return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},_b,lb]
5318
- function Tb(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...")
5319
- let i={_features:Pb}
5321
+ return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},Rb,db]
5322
+ function Db(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...")
5323
+ let i={_features:Lb}
5320
5324
  const o=i._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(i))),{})
5321
5325
  let n={...null!=(t=e.initialState)?t:{}}
5322
5326
  i._features.forEach((e=>{var t
5323
5327
  n=null!=(t=null==e.getInitialState?void 0:e.getInitialState(n))?t:n}))
5324
5328
  const s=[]
5325
5329
  let r=!1
5326
- const a={_features:Pb,options:{...o,...e},initialState:n,_queue:e=>{s.push(e),r||(r=!0,Promise.resolve().then((()=>{for(;s.length;)s.shift()()
5327
- r=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{i.setState(i.initialState)},setOptions:e=>{const t=Jm(e,i.options)
5330
+ const a={_features:Lb,options:{...o,...e},initialState:n,_queue:e=>{s.push(e),r||(r=!0,Promise.resolve().then((()=>{for(;s.length;)s.shift()()
5331
+ r=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{i.setState(i.initialState)},setOptions:e=>{const t=tb(e,i.options)
5328
5332
  i.options=(e=>i.options.mergeOptions?i.options.mergeOptions(o,e):{...o,...e})(t)},getState:()=>i.options.state,setState:e=>{null==i.options.onStateChange||i.options.onStateChange(e)},_getRowId:(e,t,o)=>{var n
5329
5333
  return null!=(n=null==i.options.getRowId?void 0:i.options.getRowId(e,t,o))?n:`${o?[o.id,t].join("."):t}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:e=>{const t=i.getRowModel().rowsById[e]
5330
5334
  if(!t)throw new Error
5331
- return t},_getDefaultColumnDef:ob((()=>[i.options.defaultColumn]),(e=>{var t
5335
+ return t},_getDefaultColumnDef:sb((()=>[i.options.defaultColumn]),(e=>{var t
5332
5336
  return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef
5333
5337
  return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,i
5334
5338
  return null!=(t=null==(i=e.renderValue())||null==i.toString?void 0:i.toString())?t:null},...i._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),{debug:()=>{var e
5335
- return null!=(e=i.options.debugAll)?e:i.options.debugColumns},key:!1}),_getColumnDefs:()=>i.options.columns,getAllColumns:ob((()=>[i._getColumnDefs()]),(e=>{const t=function(e,o,n){return void 0===n&&(n=0),e.map((e=>{const s=function(e,t,i,o){var n,s
5339
+ return null!=(e=i.options.debugAll)?e:i.options.debugColumns},key:!1}),_getColumnDefs:()=>i.options.columns,getAllColumns:sb((()=>[i._getColumnDefs()]),(e=>{const t=function(e,o,n){return void 0===n&&(n=0),e.map((e=>{const s=function(e,t,i,o){var n,s
5336
5340
  const r={...e._getDefaultColumnDef(),...t},a=r.accessorKey
5337
5341
  let l,c=null!=(n=null!=(s=r.id)?s:a?a.replace(".","_"):void 0)?n:"string"==typeof r.header?r.header:void 0
5338
5342
  if(r.accessorFn?l=r.accessorFn:a&&(l=a.includes(".")?e=>{let t=e
5339
5343
  for(const e of a.split(".")){var i
5340
5344
  t=null==(i=t)?void 0:i[e]}return t}:e=>e[r.accessorKey]),!c)throw new Error
5341
- let d={id:`${String(c)}`,accessorFn:l,parent:o,depth:i,columnDef:r,columns:[],getFlatColumns:ob((()=>[!0]),(()=>{var e
5345
+ let d={id:`${String(c)}`,accessorFn:l,parent:o,depth:i,columnDef:r,columns:[],getFlatColumns:sb((()=>[!0]),(()=>{var e
5342
5346
  return[d,...null==(e=d.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"column.getFlatColumns",debug:()=>{var t
5343
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:ob((()=>[e._getOrderColumnsFn()]),(e=>{var t
5347
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:sb((()=>[e._getOrderColumnsFn()]),(e=>{var t
5344
5348
  if(null!=(t=d.columns)&&t.length){let t=d.columns.flatMap((e=>e.getLeafColumns()))
5345
5349
  return e(t)}return[d]}),{key:"column.getLeafColumns",debug:()=>{var t
5346
5350
  return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})}
5347
5351
  return d=e._features.reduce(((t,i)=>Object.assign(t,null==i.createColumn?void 0:i.createColumn(d,e))),d),d}(i,e,n,o),r=e
5348
5352
  return s.columns=r.columns?t(r.columns,s,n+1):[],s}))}
5349
5353
  return t(e)}),{key:!1,debug:()=>{var e
5350
- return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),getAllFlatColumns:ob((()=>[i.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e
5351
- return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),_getAllFlatColumnsById:ob((()=>[i.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e
5352
- return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),getAllLeafColumns:ob((()=>[i.getAllColumns(),i._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e
5354
+ return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),getAllFlatColumns:sb((()=>[i.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e
5355
+ return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),_getAllFlatColumnsById:sb((()=>[i.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e
5356
+ return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),getAllLeafColumns:sb((()=>[i.getAllColumns(),i._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e
5353
5357
  return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),getColumn:e=>i._getAllFlatColumnsById()[e]}
5354
- return Object.assign(i,a),i._features.forEach((e=>Object.assign(i,null==e.createTable?void 0:e.createTable(i)))),i}const Lb=(e,t,i,o,n,s)=>{let r={id:t,index:o,original:i,depth:n,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(r._valuesCache.hasOwnProperty(t))return r._valuesCache[t]
5358
+ return Object.assign(i,a),i._features.forEach((e=>Object.assign(i,null==e.createTable?void 0:e.createTable(i)))),i}const zb=(e,t,i,o,n,s)=>{let r={id:t,index:o,original:i,depth:n,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(r._valuesCache.hasOwnProperty(t))return r._valuesCache[t]
5355
5359
  const i=e.getColumn(t)
5356
5360
  return null!=i&&i.accessorFn?(r._valuesCache[t]=i.accessorFn(r.original,o),r._valuesCache[t]):void 0},getUniqueValues:t=>{if(r._uniqueValuesCache.hasOwnProperty(t))return r._uniqueValuesCache[t]
5357
5361
  const i=e.getColumn(t)
5358
5362
  return null!=i&&i.accessorFn?i.columnDef.getUniqueValues?(r._uniqueValuesCache[t]=i.columnDef.getUniqueValues(r.original,o),r._uniqueValuesCache[t]):(r._uniqueValuesCache[t]=[r.getValue(t)],r._uniqueValuesCache[t]):void 0},renderValue:t=>{var i
5359
- return null!=(i=r.getValue(t))?i:e.options.renderFallbackValue},subRows:null!=s?s:[],getLeafRows:()=>ib(r.subRows,(e=>e.subRows)),getAllCells:ob((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,i,o){const n={id:`${t.id}_${i.id}`,row:t,column:i,getValue:()=>t.getValue(o),renderValue:()=>{var t
5360
- return null!=(t=n.getValue())?t:e.options.renderFallbackValue},getContext:ob((()=>[e,i,t,n]),((e,t,i,o)=>({table:e,column:t,row:i,cell:o,getValue:o.getValue,renderValue:o.renderValue})),{key:!1,debug:()=>e.options.debugAll})}
5363
+ return null!=(i=r.getValue(t))?i:e.options.renderFallbackValue},subRows:null!=s?s:[],getLeafRows:()=>nb(r.subRows,(e=>e.subRows)),getAllCells:sb((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,i,o){const n={id:`${t.id}_${i.id}`,row:t,column:i,getValue:()=>t.getValue(o),renderValue:()=>{var t
5364
+ return null!=(t=n.getValue())?t:e.options.renderFallbackValue},getContext:sb((()=>[e,i,t,n]),((e,t,i,o)=>({table:e,column:t,row:i,cell:o,getValue:o.getValue,renderValue:o.renderValue})),{key:!1,debug:()=>e.options.debugAll})}
5361
5365
  return e._features.forEach((o=>{Object.assign(n,null==o.createCell?void 0:o.createCell(n,i,t,e))}),{}),n}(e,r,t,t.id)))),{key:!1,debug:()=>{var t
5362
- return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:ob((()=>[r.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t
5366
+ return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:sb((()=>[r.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t
5363
5367
  return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}
5364
5368
  for(let t=0;t<e._features.length;t++){const i=e._features[t]
5365
5369
  Object.assign(r,null==i||null==i.createRow?void 0:i.createRow(r,e))}return r}
5366
- function Db(){return e=>ob((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,i)=>{if(!i.rows.length||!t.length)return i
5370
+ function Bb(){return e=>sb((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,i)=>{if(!i.rows.length||!t.length)return i
5367
5371
  const o=t.filter((t=>e.getColumn(t))),n=[],s={},r=function(t,i,a){if(void 0===i&&(i=0),i>=o.length)return t.map((e=>(e.depth=i,n.push(e),s[e.id]=e,e.subRows&&(e.subRows=r(e.subRows,i+1)),e)))
5368
5372
  const l=o[i],c=function(e,t){const i=new Map
5369
5373
  return e.reduce(((e,i)=>{const o=`${i.getValue(t)}`,n=e.get(o)
5370
5374
  return n?n.push(i):e.set(o,[i]),e}),i)}(t,l),d=Array.from(c.entries()).map(((t,c)=>{let[d,h]=t,u=`${l}:${d}`
5371
5375
  u=a?`${a}>${u}`:u
5372
- const p=r(h,i+1,u),g=i?ib(h,(e=>e.subRows)):h,v=Lb(e,u,g[0].original,c,i)
5376
+ const p=r(h,i+1,u),g=i?nb(h,(e=>e.subRows)):h,v=zb(e,u,g[0].original,c,i)
5373
5377
  return Object.assign(v,{groupingColumnId:l,groupingValue:d,subRows:p,leafRows:g,getValue:t=>{if(o.includes(t)){if(v._valuesCache.hasOwnProperty(t))return v._valuesCache[t]
5374
5378
  var i
5375
5379
  if(h[0])v._valuesCache[t]=null!=(i=h[0].getValue(t))?i:void 0
@@ -5378,10 +5382,10 @@ const n=e.getColumn(t),s=null==n?void 0:n.getAggregationFn()
5378
5382
  return s?(v._groupingValuesCache[t]=s(t,g,h),v._groupingValuesCache[t]):void 0}}),p.forEach((e=>{n.push(e),s[e.id]=e})),v}))
5379
5383
  return d},a=r(i.rows,0,"")
5380
5384
  return a.forEach((e=>{n.push(e),s[e.id]=e})),{rows:a,flatRows:n,rowsById:s}}),{key:!1,debug:()=>{var t
5381
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}const zb={none:void 0,ascending:"ascending",descending:"descending"},Bb={none:void 0,single:"single",multiple:"multiple"},Nb="notSelected",Zb="selected",qb="partiallySelected",jb="basic",Ub="localeAwareCaseSensitive"
5382
- class Gb extends _t{}e([f],Gb.prototype,"groupHeaderValue",void 0),e([f],Gb.prototype,"columnConfig",void 0)
5383
- const Wb=e=>((e=>{let t
5384
- try{t=document.createElement(e)}catch(e){}if(!(t instanceof Gb))throw new Error(`Group header view tag name (${e}) must evaluate to an element extending TableGroupHeaderView`)})(e),G`
5385
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}const Nb={none:void 0,ascending:"ascending",descending:"descending"},Zb={none:void 0,single:"single",multiple:"multiple"},qb="notSelected",jb="selected",Ub="partiallySelected",Gb="basic",Wb="localeAwareCaseSensitive"
5386
+ class Xb extends _t{}e([f],Xb.prototype,"groupHeaderValue",void 0),e([f],Xb.prototype,"columnConfig",void 0)
5387
+ const Kb=e=>((e=>{let t
5388
+ try{t=document.createElement(e)}catch(e){}if(!(t instanceof Xb))throw new Error(`Group header view tag name (${e}) must evaluate to an element extending TableGroupHeaderView`)})(e),G`
5385
5389
  <${e}
5386
5390
  :groupHeaderValue="${e=>e.groupRowValue}"
5387
5391
  :columnConfig="${e=>e.groupColumn?.columnInternals.columnConfig}"
@@ -5389,9 +5393,9 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof Gb))throw new Error(
5389
5393
  >
5390
5394
  </${e}>
5391
5395
  `)
5392
- class Xb extends _t{focusedRecycleCallback(){}}e([f],Xb.prototype,"cellRecord",void 0),e([f],Xb.prototype,"columnConfig",void 0)
5393
- const Kb=e=>((e=>{let t
5394
- try{t=document.createElement(e)}catch(e){}if(!(t instanceof Xb))throw new Error(`Cell view tag name (${e}) must evaluate to an element extending TableCellView`)})(e),G`
5396
+ class Yb extends _t{focusedRecycleCallback(){}}e([f],Yb.prototype,"cellRecord",void 0),e([f],Yb.prototype,"columnConfig",void 0)
5397
+ const Qb=e=>((e=>{let t
5398
+ try{t=document.createElement(e)}catch(e){}if(!(t instanceof Yb))throw new Error(`Cell view tag name (${e}) must evaluate to an element extending TableCellView`)})(e),G`
5395
5399
  <${e}
5396
5400
  :cellRecord="${e=>e.cellState?.cellRecord}"
5397
5401
  :columnConfig="${e=>e.cellState?.columnConfig}"
@@ -5399,11 +5403,11 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof Xb))throw new Error(
5399
5403
  >
5400
5404
  </${e}>
5401
5405
  `)
5402
- class Yb{constructor(e){this.uniqueId=Or("table-column-slot"),this.sortOperation=jb,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=1,this.minPixelWidth=88,this.currentFractionalWidth=1,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=Kb(e.cellViewTag),this.groupHeaderViewTemplate=Wb(e.groupHeaderViewTag)}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}e([f],Yb.prototype,"columnConfig",void 0),e([f],Yb.prototype,"operandDataRecordFieldName",void 0),e([f],Yb.prototype,"sortOperation",void 0),e([f],Yb.prototype,"dataRecordFieldNames",void 0),e([f],Yb.prototype,"groupingDisabled",void 0),e([f],Yb.prototype,"groupIndex",void 0),e([f],Yb.prototype,"pixelWidth",void 0),e([f],Yb.prototype,"fractionalWidth",void 0),e([f],Yb.prototype,"minPixelWidth",void 0),e([f],Yb.prototype,"currentFractionalWidth",void 0),e([f],Yb.prototype,"currentPixelWidth",void 0)
5403
- class Qb extends _t{constructor(e){if(super(),this.columnHidden=!1,this.sortDirection=zb.none,!e)throw new Error("ColumnInternalsOptions must be provided to constructor")
5404
- this.columnInternals=new Yb(e)}}e([ne({attribute:"column-id"})],Qb.prototype,"columnId",void 0),e([ne({attribute:"action-menu-slot"})],Qb.prototype,"actionMenuSlot",void 0),e([ne({attribute:"action-menu-label"})],Qb.prototype,"actionMenuLabel",void 0),e([ne({attribute:"column-hidden",mode:"boolean"})],Qb.prototype,"columnHidden",void 0),e([ne({attribute:"sort-index",converter:ie})],Qb.prototype,"sortIndex",void 0),e([ne({attribute:"sort-direction"})],Qb.prototype,"sortDirection",void 0)
5405
- class Jb{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.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}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
5406
- return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateSelectionMode(e,t){return this.idFieldNameNotConfigured=e!==Bb.none&&"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
5406
+ class Jb{constructor(e){this.uniqueId=Or("table-column-slot"),this.sortOperation=Gb,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=1,this.minPixelWidth=117,this.currentFractionalWidth=1,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=Qb(e.cellViewTag),this.groupHeaderViewTemplate=Kb(e.groupHeaderViewTag)}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}e([f],Jb.prototype,"columnConfig",void 0),e([f],Jb.prototype,"operandDataRecordFieldName",void 0),e([f],Jb.prototype,"sortOperation",void 0),e([f],Jb.prototype,"dataRecordFieldNames",void 0),e([f],Jb.prototype,"groupingDisabled",void 0),e([f],Jb.prototype,"groupIndex",void 0),e([f],Jb.prototype,"pixelWidth",void 0),e([f],Jb.prototype,"fractionalWidth",void 0),e([f],Jb.prototype,"minPixelWidth",void 0),e([f],Jb.prototype,"currentFractionalWidth",void 0),e([f],Jb.prototype,"currentPixelWidth",void 0)
5407
+ class ew extends _t{constructor(e){if(super(),this.columnHidden=!1,this.sortDirection=Nb.none,!e)throw new Error("ColumnInternalsOptions must be provided to constructor")
5408
+ this.columnInternals=new Jb(e)}}e([ne({attribute:"column-id"})],ew.prototype,"columnId",void 0),e([ne({attribute:"action-menu-slot"})],ew.prototype,"actionMenuSlot",void 0),e([ne({attribute:"action-menu-label"})],ew.prototype,"actionMenuLabel",void 0),e([ne({attribute:"column-hidden",mode:"boolean"})],ew.prototype,"columnHidden",void 0),e([ne({attribute:"sort-index",converter:ie})],ew.prototype,"sortIndex",void 0),e([ne({attribute:"sort-direction"})],ew.prototype,"sortDirection",void 0)
5409
+ class tw{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.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}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
5410
+ return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateSelectionMode(e,t){return this.idFieldNameNotConfigured=e!==Zb.none&&"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
5407
5411
  for(const i of e){if(!Object.prototype.hasOwnProperty.call(i,t)){this.missingRecordId=!0
5408
5412
  continue}const e=i[t]
5409
5413
  "string"==typeof e?(this.recordIds.has(e)&&(this.duplicateRecordId=!0),this.recordIds.add(e)):this.invalidRecordId=!0}return!this.missingRecordId&&!this.invalidRecordId&&!this.duplicateRecordId}validateColumnIds(e){this.missingColumnId=!1,this.duplicateColumnId=!1
@@ -5411,7 +5415,7 @@ const t=e.some((e=>e))
5411
5415
  if(!t)return!0
5412
5416
  const i=new Set
5413
5417
  for(const t of e)t?(i.has(t)&&(this.duplicateColumnId=!0),i.add(t)):this.missingColumnId=!0
5414
- 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}getPresentRecordIds(e){return e.filter((e=>this.recordIds.has(e)))}validateIndicesAreUnique(e){return new Set(e).size===e.length}}const ew=fe`
5418
+ 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}getPresentRecordIds(e){return e.filter((e=>this.recordIds.has(e)))}validateIndicesAreUnique(e){return new Set(e).size===e.length}}const iw=fe`
5415
5419
  ${bn("flex")}
5416
5420
 
5417
5421
  :host {
@@ -5461,6 +5465,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5461
5465
  width: fit-content;
5462
5466
  min-width: 100%;
5463
5467
  left: var(--ni-private-table-scroll-x);
5468
+ align-items: center;
5464
5469
  }
5465
5470
 
5466
5471
  .column-header-container {
@@ -5469,6 +5474,17 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5469
5474
  grid-template-columns: var(--ni-private-table-row-grid-columns) auto;
5470
5475
  }
5471
5476
 
5477
+ .collapse-all-button {
5478
+ width: ${ta};
5479
+ height: ${ta};
5480
+ margin-left: calc(${ia} * 2);
5481
+ visibility: hidden;
5482
+ }
5483
+
5484
+ .collapse-all-button.visible {
5485
+ visibility: visible;
5486
+ }
5487
+
5472
5488
  .header-scrollbar-spacer {
5473
5489
  width: var(--ni-private-table-header-scrollbar-spacer-width);
5474
5490
  }
@@ -5504,7 +5520,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5504
5520
  background-color: ${as(qn,.1)};
5505
5521
  position: absolute;
5506
5522
  }
5507
- `)),tw=fe`
5523
+ `)),ow=fe`
5508
5524
  ${bn("flex")}
5509
5525
 
5510
5526
  :host {
@@ -5515,27 +5531,32 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5515
5531
  color: ${vc};
5516
5532
  ${Yr.cssCustomProperty}: ${vc};
5517
5533
  text-transform: uppercase;
5534
+ gap: calc(${oa} / 2);
5518
5535
  }
5519
5536
 
5520
- .sort-indicator {
5521
- padding: 0px calc(${oa} / 2);
5537
+ .sort-indicator,
5538
+ .grouped-indicator {
5539
+ flex: 0 0 auto;
5522
5540
  }
5523
- `,iw=G`
5541
+ `,nw=G`
5524
5542
  <template role="columnheader" aria-sort="${e=>e.ariaSort}">
5525
5543
  <slot></slot>
5526
5544
 
5527
- ${Ie((e=>e.sortDirection===zb.ascending),G`
5545
+ ${Ie((e=>e.sortDirection===Nb.ascending),G`
5528
5546
  <${Rg} class="sort-indicator" aria-hidden="true"></${Rg}>
5529
5547
  `)}
5530
- ${Ie((e=>e.sortDirection===zb.descending),G`
5548
+ ${Ie((e=>e.sortDirection===Nb.descending),G`
5531
5549
  <${fg} class="sort-indicator" aria-hidden="true"></${fg}>
5532
5550
  `)}
5551
+ ${Ie((e=>e.isGrouped),G`
5552
+ <${Qf} class="grouped-indicator"></${Qf}>
5553
+ `)}
5533
5554
  </template>
5534
5555
  `
5535
- class ow extends _t{constructor(){super(...arguments),this.sortDirection=zb.none,this.firstSortedColumn=!1}sortDirectionChanged(e,t){this.updateAriaSort()}firstSortedColumnChanged(e,t){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==zb.none?this.sortDirection===zb.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}e([ne({attribute:"sort-direction"})],ow.prototype,"sortDirection",void 0),e([ne({attribute:"first-sorted-column",mode:"boolean"})],ow.prototype,"firstSortedColumn",void 0)
5536
- const nw=ow.compose({baseName:"table-header",template:iw,styles:tw})
5537
- no.getOrCreate().withPrefix("nimble").register(nw())
5538
- const sw=no.tagFor(ow),rw=fe`
5556
+ class sw extends _t{constructor(){super(...arguments),this.sortDirection=Nb.none,this.firstSortedColumn=!1,this.isGrouped=!1}sortDirectionChanged(e,t){this.updateAriaSort()}firstSortedColumnChanged(e,t){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==Nb.none?this.sortDirection===Nb.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}e([ne({attribute:"sort-direction"})],sw.prototype,"sortDirection",void 0),e([ne({attribute:"first-sorted-column",mode:"boolean"})],sw.prototype,"firstSortedColumn",void 0),e([f],sw.prototype,"isGrouped",void 0)
5557
+ const rw=sw.compose({baseName:"table-header",template:nw,styles:ow})
5558
+ no.getOrCreate().withPrefix("nimble").register(rw())
5559
+ const aw=no.tagFor(sw),lw=fe`
5539
5560
  ${bn("flex")}
5540
5561
 
5541
5562
  :host {
@@ -5582,6 +5603,11 @@ const sw=no.tagFor(ow),rw=fe`
5582
5603
  padding-left: 0px;
5583
5604
  }
5584
5605
 
5606
+ .row-front-spacer {
5607
+ width: ${ea};
5608
+ flex: 0 0 auto;
5609
+ }
5610
+
5585
5611
  .cell-container {
5586
5612
  display: grid;
5587
5613
  width: 100%;
@@ -5617,18 +5643,15 @@ const sw=no.tagFor(ow),rw=fe`
5617
5643
  :host([selected]:hover)::before {
5618
5644
  background-color: ${as(qn,.2)};
5619
5645
  }
5620
- `)),aw=fe`
5646
+ `)),cw=fe`
5621
5647
  ${bn("grid")}
5622
5648
 
5623
5649
  :host {
5624
5650
  --ni-private-table-cell-nesting-level: 0;
5625
5651
  padding: 0px calc(${oa} / 2);
5626
5652
  padding-left: calc(
5627
- ${oa} / 2 +
5628
- (
5629
- var(--ni-private-table-cell-nesting-level) *
5630
- ${oa} * 2
5631
- )
5653
+ ${ia} * 2 + ${oa} * 2 *
5654
+ var(--ni-private-table-cell-nesting-level)
5632
5655
  );
5633
5656
  align-self: center;
5634
5657
  height: 100%;
@@ -5646,11 +5669,11 @@ const sw=no.tagFor(ow),rw=fe`
5646
5669
  .action-menu {
5647
5670
  display: var(--ni-private-table-cell-action-menu-display);
5648
5671
  }
5649
- `,lw=G`
5672
+ `,dw=G`
5650
5673
  <template role="cell" style="--ni-private-table-cell-nesting-level: ${e=>e.nestingLevel}">
5651
5674
  ${e=>e.cellViewTemplate}
5652
5675
  ${Ie((e=>e.hasActionMenu),G`
5653
- <${ym} ${_e("actionMenuButton")}
5676
+ <${Cm} ${_e("actionMenuButton")}
5654
5677
  content-hidden
5655
5678
  appearance="${Tc}"
5656
5679
  @beforetoggle="${(e,t)=>e.onActionMenuBeforeToggle(t.event)}"
@@ -5661,14 +5684,14 @@ const sw=no.tagFor(ow),rw=fe`
5661
5684
  <${Bf} slot="start"></${Bf}>
5662
5685
  ${e=>e.actionMenuLabel}
5663
5686
  <slot name="cellActionMenu" slot="menu"></slot>
5664
- </${ym}>
5687
+ </${Cm}>
5665
5688
  `)}
5666
5689
  </template>
5667
5690
  `
5668
- class cw extends _t{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([f],cw.prototype,"cellState",void 0),e([ne({attribute:"has-action-menu",mode:"boolean"})],cw.prototype,"hasActionMenu",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],cw.prototype,"menuOpen",void 0),e([ne({attribute:"action-menu-label"})],cw.prototype,"actionMenuLabel",void 0),e([f],cw.prototype,"cellViewTemplate",void 0),e([f],cw.prototype,"nestingLevel",void 0)
5669
- const dw=cw.compose({baseName:"table-cell",template:lw,styles:aw})
5670
- no.getOrCreate().withPrefix("nimble").register(dw())
5671
- const hw=no.tagFor(cw),uw=G`
5691
+ class hw extends _t{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([f],hw.prototype,"cellState",void 0),e([ne({attribute:"has-action-menu",mode:"boolean"})],hw.prototype,"hasActionMenu",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],hw.prototype,"menuOpen",void 0),e([ne({attribute:"action-menu-label"})],hw.prototype,"actionMenuLabel",void 0),e([f],hw.prototype,"cellViewTemplate",void 0),e([f],hw.prototype,"nestingLevel",void 0)
5692
+ const uw=hw.compose({baseName:"table-cell",template:dw,styles:cw})
5693
+ no.getOrCreate().withPrefix("nimble").register(uw())
5694
+ const pw=no.tagFor(hw),gw=G`
5672
5695
  <template role="row" aria-selected=${e=>e.ariaSelected}>
5673
5696
  ${Ie((e=>e.selectable&&!e.hideSelection),G`
5674
5697
  <span role="gridcell" class="checkbox-container">
@@ -5682,11 +5705,13 @@ const hw=no.tagFor(cw),uw=G`
5682
5705
  </${Bp}>
5683
5706
  </span>
5684
5707
  `)}
5708
+ ${""}
5709
+ <span class="row-front-spacer"></span>
5685
5710
 
5686
5711
  <span ${_e("cellContainer")} class="cell-container">
5687
5712
  ${Ve((e=>e.columnStates),G`
5688
5713
  ${Ie((e=>!e.column.columnHidden),G`
5689
- <${hw}
5714
+ <${pw}
5690
5715
  class="cell"
5691
5716
  :cellState="${e=>e.cellState}"
5692
5717
  :cellViewTemplate="${e=>e.column.columnInternals.cellViewTemplate}"
@@ -5703,24 +5728,24 @@ const hw=no.tagFor(cw),uw=G`
5703
5728
  slot="cellActionMenu"
5704
5729
  ></slot>
5705
5730
  `)}
5706
- </${hw}>
5731
+ </${pw}>
5707
5732
  `)}
5708
5733
  `)}
5709
5734
  </span>
5710
5735
  </template>
5711
5736
  `
5712
- class pw extends _t{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.hideSelection=!1,this.columns=[],this.nestingLevel=0,this.menuOpen=!1,this.ignoreSelectionChangeEvents=!1}get columnStates(){return this.columns.map(((e,t)=>{const i=e.columnInternals.dataRecordFieldNames
5737
+ class vw extends _t{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.hideSelection=!1,this.columns=[],this.nestingLevel=0,this.menuOpen=!1,this.ignoreSelectionChangeEvents=!1}get columnStates(){return this.columns.map(((e,t)=>{const i=e.columnInternals.dataRecordFieldNames
5713
5738
  let o
5714
5739
  if(this.hasValidFieldNames(i)&&this.dataRecord){const t=i.map((e=>this.dataRecord[e]))
5715
5740
  o={cellRecord:Object.fromEntries(e.columnInternals.cellRecordFieldNames.map(((e,i)=>[e,t[i]]))),columnConfig:e.columnInternals.columnConfig??{}}}else o={cellRecord:{},columnConfig:{}}
5716
- return{column:e,cellState:o,cellIndentLevel:0===t?this.nestingLevel:0}}))}get ariaSelected(){return this.selectable?this.selected?"true":"false":null}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
5741
+ return{column:e,cellState:o,cellIndentLevel:0===t&&this.nestingLevel>0?this.nestingLevel-1:0}}))}get ariaSelected(){return this.selectable?this.selected?"true":"false":null}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
5717
5742
  const t=e.target,i={oldState:!t.checked,newState:t.checked}
5718
- this.$emit("row-selection-toggle",i)}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 cw&&e.menuOpen))
5743
+ this.$emit("row-selection-toggle",i)}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 hw&&e.menuOpen))
5719
5744
  e?.actionMenuButton?.open&&e.actionMenuButton.toggleButton.control.click()}}emitActionMenuToggleEvent(e,t,i){const o={newState:t.newState,oldState:t.oldState,recordIds:[this.recordId],columnId:i.columnId}
5720
- this.$emit(e,o)}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([ne({attribute:"record-id"})],pw.prototype,"recordId",void 0),e([ne({mode:"boolean"})],pw.prototype,"selectable",void 0),e([ne({mode:"boolean"})],pw.prototype,"selected",void 0),e([ne({attribute:"hide-selection",mode:"boolean"})],pw.prototype,"hideSelection",void 0),e([f],pw.prototype,"dataRecord",void 0),e([f],pw.prototype,"columns",void 0),e([f],pw.prototype,"currentActionMenuColumn",void 0),e([f],pw.prototype,"nestingLevel",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],pw.prototype,"menuOpen",void 0),e([f],pw.prototype,"selectionCheckbox",void 0),e([m],pw.prototype,"columnStates",null),e([m],pw.prototype,"ariaSelected",null)
5721
- const gw=pw.compose({baseName:"table-row",template:uw,styles:rw})
5722
- no.getOrCreate().withPrefix("nimble").register(gw())
5723
- const vw=no.tagFor(pw),fw=fe`
5745
+ this.$emit(e,o)}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([ne({attribute:"record-id"})],vw.prototype,"recordId",void 0),e([ne({mode:"boolean"})],vw.prototype,"selectable",void 0),e([ne({mode:"boolean"})],vw.prototype,"selected",void 0),e([ne({attribute:"hide-selection",mode:"boolean"})],vw.prototype,"hideSelection",void 0),e([f],vw.prototype,"dataRecord",void 0),e([f],vw.prototype,"columns",void 0),e([f],vw.prototype,"currentActionMenuColumn",void 0),e([f],vw.prototype,"nestingLevel",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],vw.prototype,"menuOpen",void 0),e([f],vw.prototype,"selectionCheckbox",void 0),e([m],vw.prototype,"columnStates",null),e([m],vw.prototype,"ariaSelected",null)
5746
+ const fw=vw.compose({baseName:"table-row",template:gw,styles:lw})
5747
+ no.getOrCreate().withPrefix("nimble").register(fw())
5748
+ const mw=no.tagFor(vw),bw=fe`
5724
5749
  ${bn("flex")}
5725
5750
 
5726
5751
  :host {
@@ -5809,7 +5834,7 @@ const vw=no.tagFor(pw),fw=fe`
5809
5834
  :host(:hover)::before {
5810
5835
  background-color: ${as(qn,.1)};
5811
5836
  }
5812
- `)),mw=G`
5837
+ `)),ww=G`
5813
5838
  <template
5814
5839
  role="row"
5815
5840
  @click=${e=>e.onGroupExpandToggle()}
@@ -5844,12 +5869,12 @@ const vw=no.tagFor(pw),fw=fe`
5844
5869
  </div>
5845
5870
  </template>
5846
5871
  `
5847
- class bw extends _t{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.selectable=!1,this.selectionState=Nb,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
5872
+ class xw extends _t{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.selectable=!1,this.selectionState=qb,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
5848
5873
  const t=e.target,i={oldState:!t.checked,newState:t.checked}
5849
- this.$emit("group-selection-toggle",i)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===Zb,this.selectionCheckbox.indeterminate=this.selectionState===qb,this.ignoreSelectionChangeEvents=!1)}}e([f],bw.prototype,"groupRowValue",void 0),e([f],bw.prototype,"nestingLevel",void 0),e([f],bw.prototype,"leafItemCount",void 0),e([f],bw.prototype,"groupColumn",void 0),e([ne({mode:"boolean"})],bw.prototype,"expanded",void 0),e([ne({mode:"boolean"})],bw.prototype,"selectable",void 0),e([ne({attribute:"selection-state"})],bw.prototype,"selectionState",void 0),e([f],bw.prototype,"selectionCheckbox",void 0),e([f],bw.prototype,"animationClass",void 0)
5850
- const ww=bw.compose({baseName:"table-group-row",template:mw,styles:fw})
5851
- no.getOrCreate().withPrefix("nimble").register(ww())
5852
- const xw=no.tagFor(bw),yw=G`
5874
+ this.$emit("group-selection-toggle",i)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===jb,this.selectionCheckbox.indeterminate=this.selectionState===Ub,this.ignoreSelectionChangeEvents=!1)}}e([f],xw.prototype,"groupRowValue",void 0),e([f],xw.prototype,"nestingLevel",void 0),e([f],xw.prototype,"leafItemCount",void 0),e([f],xw.prototype,"groupColumn",void 0),e([ne({mode:"boolean"})],xw.prototype,"expanded",void 0),e([ne({mode:"boolean"})],xw.prototype,"selectable",void 0),e([ne({attribute:"selection-state"})],xw.prototype,"selectionState",void 0),e([f],xw.prototype,"selectionCheckbox",void 0),e([f],xw.prototype,"animationClass",void 0)
5875
+ const yw=xw.compose({baseName:"table-group-row",template:ww,styles:bw})
5876
+ no.getOrCreate().withPrefix("nimble").register(yw())
5877
+ const $w=no.tagFor(xw),Cw=G`
5853
5878
  <template
5854
5879
  role="grid"
5855
5880
  aria-multiselectable="${e=>e.ariaMultiSelectable}"
@@ -5860,11 +5885,11 @@ const xw=no.tagFor(bw),yw=G`
5860
5885
  --ni-private-table-header-scrollbar-spacer-width: ${e=>e.virtualizer.headerContainerMarginRight}px;
5861
5886
  --ni-private-table-scroll-height: ${e=>e.virtualizer.allRowsHeight}px;
5862
5887
  --ni-private-table-row-container-top: ${e=>e.virtualizer.rowContainerYOffset}px;
5863
- --ni-private-table-row-grid-columns: ${e=>e.rowGridColumns??""}
5888
+ --ni-private-table-row-grid-columns: ${e=>e.rowGridColumns??""};
5864
5889
  ">
5865
5890
  <div role="rowgroup" class="header-container">
5866
5891
  <div class="header-row" role="row">
5867
- ${Ie((e=>e.selectionMode===Bb.multiple),G`
5892
+ ${Ie((e=>e.selectionMode===Zb.multiple),G`
5868
5893
  <span role="columnheader" class="checkbox-container">
5869
5894
  <${Bp}
5870
5895
  ${_e("selectionCheckbox")}
@@ -5874,17 +5899,27 @@ const xw=no.tagFor(bw),yw=G`
5874
5899
  </${Bp}>
5875
5900
  </span>
5876
5901
  `)}
5877
-
5902
+ <span role="gridcell">
5903
+ <${md}
5904
+ class="collapse-all-button ${e=>""+(e.showCollapseAll?"visible":"")}"
5905
+ content-hidden
5906
+ appearance="${Tc}"
5907
+ @click="${e=>e.handleCollapseAllGroupRows()}"
5908
+ >
5909
+ <${Xf} slot="start"></${Xf}>
5910
+ </${md}>
5911
+ </span>
5878
5912
  <span class="column-header-container">
5879
5913
  ${Ve((e=>e.columns),G`
5880
5914
  ${Ie((e=>!e.columnHidden),G`
5881
- <${sw}
5915
+ <${aw}
5882
5916
  class="header"
5883
- sort-direction="${e=>"number"==typeof e.sortIndex?e.sortDirection:zb.none}"
5917
+ sort-direction="${e=>"number"==typeof e.sortIndex?e.sortDirection:Nb.none}"
5884
5918
  ?first-sorted-column="${(e,t)=>e===t.parent.firstSortedColumn}"
5919
+ :isGrouped=${e=>"number"==typeof e.columnInternals.groupIndex&&!e.columnInternals.groupingDisabled}
5885
5920
  >
5886
5921
  <slot name="${e=>e.slot}"></slot>
5887
- </${sw}>
5922
+ </${aw}>
5888
5923
  `)}
5889
5924
  `)}
5890
5925
  <div class="header-scrollbar-spacer"></div>
@@ -5893,32 +5928,32 @@ const xw=no.tagFor(bw),yw=G`
5893
5928
  </div>
5894
5929
  <div class="table-viewport" ${_e("viewport")}>
5895
5930
  <div class="table-scroll"></div>
5896
- <div class="table-row-container" ${De({property:"rowElements",filter:Fe(vw)})}
5931
+ <div class="table-row-container" ${De({property:"rowElements",filter:Fe(mw)})}
5897
5932
  role="rowgroup">
5898
5933
  ${Ie((e=>e.columns.length>0&&e.canRenderRows),G`
5899
5934
  ${Ve((e=>e.virtualizer.visibleItems),G`
5900
5935
  ${Ie(((e,t)=>t.parent.tableData[e.index]?.isGrouped),G`
5901
- <${xw}
5936
+ <${$w}
5902
5937
  class="group-row"
5903
5938
  :groupRowValue="${(e,t)=>t.parent.tableData[e.index]?.groupRowValue}"
5904
5939
  ?expanded="${(e,t)=>t.parent.tableData[e.index]?.isExpanded}"
5905
5940
  :nestingLevel="${(e,t)=>t.parent.tableData[e.index]?.nestingLevel}"
5906
5941
  :leafItemCount="${(e,t)=>t.parent.tableData[e.index]?.leafItemCount}"
5907
5942
  :groupColumn="${(e,t)=>t.parent.tableData[e.index]?.groupColumn}"
5908
- ?selectable="${(e,t)=>t.parent.selectionMode===Bb.multiple}"
5943
+ ?selectable="${(e,t)=>t.parent.selectionMode===Zb.multiple}"
5909
5944
  selection-state="${(e,t)=>t.parent.tableData[e.index]?.selectionState}"
5910
5945
  @group-selection-toggle="${async(e,t)=>t.parent.onRowSelectionToggle(e.index,t.event)}"
5911
5946
  @group-expand-toggle="${(e,t)=>t.parent.handleGroupRowExpanded(e.index,t.event)}"
5912
5947
  >
5913
- </${xw}>
5948
+ </${$w}>
5914
5949
  `)}
5915
5950
  ${Ie(((e,t)=>!t.parent.tableData[e.index]?.isGrouped),G`
5916
- <${vw}
5951
+ <${mw}
5917
5952
  class="row"
5918
5953
  record-id="${(e,t)=>t.parent.tableData[e.index]?.id}"
5919
- ?selectable="${(e,t)=>t.parent.selectionMode!==Bb.none}"
5920
- ?selected="${(e,t)=>t.parent.tableData[e.index]?.selectionState===Zb}"
5921
- ?hide-selection="${(e,t)=>t.parent.selectionMode!==Bb.multiple}"
5954
+ ?selectable="${(e,t)=>t.parent.selectionMode!==Zb.none}"
5955
+ ?selected="${(e,t)=>t.parent.tableData[e.index]?.selectionState===jb}"
5956
+ ?hide-selection="${(e,t)=>t.parent.selectionMode!==Zb.multiple}"
5922
5957
  :dataRecord="${(e,t)=>t.parent.tableData[e.index]?.record}"
5923
5958
  :columns="${(e,t)=>t.parent.columns}"
5924
5959
  :nestingLevel="${(e,t)=>t.parent.tableData[e.index]?.nestingLevel}"
@@ -5935,7 +5970,7 @@ const xw=no.tagFor(bw),yw=G`
5935
5970
  </slot>
5936
5971
  `)}
5937
5972
  `)}
5938
- </${vw}>
5973
+ </${mw}>
5939
5974
  `)}
5940
5975
  `)}
5941
5976
  `)}
@@ -5954,8 +5989,8 @@ const xw=no.tagFor(bw),yw=G`
5954
5989
  *
5955
5990
  * @license MIT
5956
5991
  */
5957
- function $w(){return $w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]
5958
- for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},$w.apply(this,arguments)}
5992
+ function kw(){return kw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]
5993
+ for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},kw.apply(this,arguments)}
5959
5994
  /**
5960
5995
  * virtual-core
5961
5996
  *
@@ -5965,42 +6000,42 @@ for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},
5965
6000
  * LICENSE.md file in the root directory of this source tree.
5966
6001
  *
5967
6002
  * @license MIT
5968
- */function Cw(e,t,i){var o,n,s=null!=(o=i.initialDeps)?o:[]
6003
+ */function Sw(e,t,i){var o,n,s=null!=(o=i.initialDeps)?o:[]
5969
6004
  return function(){var o
5970
6005
  i.key&&null!=i.debug&&i.debug()&&(o=Date.now())
5971
6006
  var r,a=e()
5972
6007
  if(!(a.length!==s.length||a.some((function(e,t){return s[t]!==e}))))return n
5973
6008
  if(s=a,i.key&&null!=i.debug&&i.debug()&&(r=Date.now()),n=t.apply(void 0,a),i.key&&null!=i.debug&&i.debug()){var l=Math.round(100*(Date.now()-o))/100,c=Math.round(100*(Date.now()-r))/100,d=c/16,h=function(e,t){for(e=String(e);e.length<t;)e=" "+e
5974
6009
  return e}
5975
- 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==i?void 0:i.key)}return null==i||null==i.onChange||i.onChange(n),n}}var kw,Sw=function(e){return e},_w=function(e){for(var t=Math.max(e.startIndex-e.overscan,0),i=Math.min(e.endIndex+e.overscan,e.count-1),o=[],n=t;n<=i;n++)o.push(n)
5976
- return o},Iw=function(e,t){var i=new ResizeObserver((function(e){var i=e[0]
6010
+ 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==i?void 0:i.key)}return null==i||null==i.onChange||i.onChange(n),n}}var _w,Iw=function(e){return e},Rw=function(e){for(var t=Math.max(e.startIndex-e.overscan,0),i=Math.min(e.endIndex+e.overscan,e.count-1),o=[],n=t;n<=i;n++)o.push(n)
6011
+ return o},Mw=function(e,t){var i=new ResizeObserver((function(e){var i=e[0]
5977
6012
  if(i){var o=i.contentRect,n=o.width,s=o.height
5978
6013
  t({width:Math.round(n),height:Math.round(s)})}else t({width:0,height:0})}))
5979
- if(e.scrollElement)return t(e.scrollElement.getBoundingClientRect()),i.observe(e.scrollElement),function(){i.unobserve(e.scrollElement)}},Rw={element:["scrollLeft","scrollTop"],window:["scrollX","scrollY"]},Mw=(kw="element",function(e,t){if(e.scrollElement){var i=Rw[kw][0],o=Rw[kw][1],n=e.scrollElement[i],s=e.scrollElement[o],r=function(){var n=e.scrollElement[e.options.horizontal?i:o]
6014
+ if(e.scrollElement)return t(e.scrollElement.getBoundingClientRect()),i.observe(e.scrollElement),function(){i.unobserve(e.scrollElement)}},Aw={element:["scrollLeft","scrollTop"],window:["scrollX","scrollY"]},Ow=(_w="element",function(e,t){if(e.scrollElement){var i=Aw[_w][0],o=Aw[_w][1],n=e.scrollElement[i],s=e.scrollElement[o],r=function(){var n=e.scrollElement[e.options.horizontal?i:o]
5980
6015
  t(n)}
5981
6016
  r()
5982
6017
  var a=function(t){var a=t.currentTarget,l=a[i],c=a[o];(e.options.horizontal?n-l:s-c)&&r(),n=l,s=c}
5983
- return e.scrollElement.addEventListener("scroll",a,{capture:!1,passive:!0}),function(){e.scrollElement.removeEventListener("scroll",a)}}}),Aw=function(e,t){return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},Ow=function(e,t,i){var o,n,s=t.adjustments,r=void 0===s?0:s,a=t.behavior,l=e+r
5984
- null==(o=i.scrollElement)||null==o.scrollTo||o.scrollTo(((n={})[i.options.horizontal?"left":"top"]=l,n.behavior=a,n))},Ew=function(e){var t,i=this
6018
+ return e.scrollElement.addEventListener("scroll",a,{capture:!1,passive:!0}),function(){e.scrollElement.removeEventListener("scroll",a)}}}),Ew=function(e,t){return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},Vw=function(e,t,i){var o,n,s=t.adjustments,r=void 0===s?0:s,a=t.behavior,l=e+r
6019
+ null==(o=i.scrollElement)||null==o.scrollTo||o.scrollTo(((n={})[i.options.horizontal?"left":"top"]=l,n.behavior=a,n))},Fw=function(e){var t,i=this
5985
6020
  this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache={},this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache={},this.getResizeObserver=(t=null,function(){return t||("undefined"!=typeof ResizeObserver?t=new ResizeObserver((function(e){e.forEach((function(e){i._measureElement(e.target,!1)}))})):null)}),this.range={startIndex:0,endIndex:0},this.setOptions=function(e){Object.entries(e).forEach((function(t){var i=t[0]
5986
- void 0===t[1]&&delete e[i]})),i.options=$w({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Sw,rangeExtractor:_w,onChange:function(){},measureElement:Aw,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[]},e)},this.notify=function(){null==i.options.onChange||i.options.onChange(i)},this.cleanup=function(){i.unsubs.filter(Boolean).forEach((function(e){return e()})),i.unsubs=[],i.scrollElement=null},this._didMount=function(){var e=i.getResizeObserver()
6021
+ void 0===t[1]&&delete e[i]})),i.options=kw({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Iw,rangeExtractor:Rw,onChange:function(){},measureElement:Ew,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[]},e)},this.notify=function(){null==i.options.onChange||i.options.onChange(i)},this.cleanup=function(){i.unsubs.filter(Boolean).forEach((function(e){return e()})),i.unsubs=[],i.scrollElement=null},this._didMount=function(){var e=i.getResizeObserver()
5987
6022
  return Object.values(i.measureElementCache).forEach((function(t){return null==e?void 0:e.observe(t)})),function(){null==e||e.disconnect(),i.cleanup()}},this._willUpdate=function(){var e=i.options.getScrollElement()
5988
- i.scrollElement!==e&&(i.cleanup(),i.scrollElement=e,i._scrollToOffset(i.scrollOffset,{adjustments:void 0,behavior:void 0}),i.unsubs.push(i.options.observeElementRect(i,(function(e){i.scrollRect=e,i.maybeNotify()}))),i.unsubs.push(i.options.observeElementOffset(i,(function(e){i.scrollAdjustments=0,i.scrollOffset!==e&&(null!==i.isScrollingTimeoutId&&(clearTimeout(i.isScrollingTimeoutId),i.isScrollingTimeoutId=null),i.isScrolling=!0,i.scrollDirection=i.scrollOffset<e?"forward":"backward",i.scrollOffset=e,i.maybeNotify(),i.isScrollingTimeoutId=setTimeout((function(){i.isScrollingTimeoutId=null,i.isScrolling=!1,i.scrollDirection=null,i.maybeNotify()}),i.options.scrollingDelay))}))))},this.getSize=function(){return i.scrollRect[i.options.horizontal?"width":"height"]},this.getMeasurements=Cw((function(){return[i.options.count,i.options.paddingStart,i.options.scrollMargin,i.options.getItemKey,i.itemSizeCache]}),(function(e,t,o,n,s){var r=i.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,i.pendingMeasuredCacheIndexes):0
6023
+ i.scrollElement!==e&&(i.cleanup(),i.scrollElement=e,i._scrollToOffset(i.scrollOffset,{adjustments:void 0,behavior:void 0}),i.unsubs.push(i.options.observeElementRect(i,(function(e){i.scrollRect=e,i.maybeNotify()}))),i.unsubs.push(i.options.observeElementOffset(i,(function(e){i.scrollAdjustments=0,i.scrollOffset!==e&&(null!==i.isScrollingTimeoutId&&(clearTimeout(i.isScrollingTimeoutId),i.isScrollingTimeoutId=null),i.isScrolling=!0,i.scrollDirection=i.scrollOffset<e?"forward":"backward",i.scrollOffset=e,i.maybeNotify(),i.isScrollingTimeoutId=setTimeout((function(){i.isScrollingTimeoutId=null,i.isScrolling=!1,i.scrollDirection=null,i.maybeNotify()}),i.options.scrollingDelay))}))))},this.getSize=function(){return i.scrollRect[i.options.horizontal?"width":"height"]},this.getMeasurements=Sw((function(){return[i.options.count,i.options.paddingStart,i.options.scrollMargin,i.options.getItemKey,i.itemSizeCache]}),(function(e,t,o,n,s){var r=i.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,i.pendingMeasuredCacheIndexes):0
5989
6024
  i.pendingMeasuredCacheIndexes=[]
5990
6025
  for(var a=i.measurementsCache.slice(0,r),l=r;l<e;l++){var c=n(l),d=s[c],h=a[l-1]?a[l-1].end:t+o,u="number"==typeof d?d:i.options.estimateSize(l),p=h+u
5991
- a[l]={index:l,start:h,size:u,end:p,key:c}}return i.measurementsCache=a,a}),{key:!1,debug:function(){return i.options.debug}}),this.calculateRange=Cw((function(){return[i.getMeasurements(),i.getSize(),i.scrollOffset]}),(function(e,t,o){return i.range=function(e){var t=e.measurements,i=e.outerSize,o=e.scrollOffset,n=t.length-1,s=function(e){return t[e].start},r=function(e,t,i,o){for(;e<=t;){var n=(e+t)/2|0,s=i(n)
6026
+ a[l]={index:l,start:h,size:u,end:p,key:c}}return i.measurementsCache=a,a}),{key:!1,debug:function(){return i.options.debug}}),this.calculateRange=Sw((function(){return[i.getMeasurements(),i.getSize(),i.scrollOffset]}),(function(e,t,o){return i.range=function(e){var t=e.measurements,i=e.outerSize,o=e.scrollOffset,n=t.length-1,s=function(e){return t[e].start},r=function(e,t,i,o){for(;e<=t;){var n=(e+t)/2|0,s=i(n)
5992
6027
  if(s<o)e=n+1
5993
6028
  else{if(!(s>o))return n
5994
6029
  t=n-1}}return e>0?e-1:0}(0,n,s,o),a=r
5995
6030
  for(;a<n&&t[a].end<o+i;)a++
5996
- return{startIndex:r,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:o})}),{key:!1,debug:function(){return i.options.debug}}),this.maybeNotify=Cw((function(){return[].concat(Object.values(i.calculateRange()),[i.isScrolling])}),(function(){i.notify()}),{key:!1,debug:function(){return i.options.debug},initialDeps:[].concat(Object.values(this.range),[this.isScrolling])}),this.getIndexes=Cw((function(){return[i.options.rangeExtractor,i.calculateRange(),i.options.overscan,i.options.count]}),(function(e,t,i,o){return e($w({},t,{overscan:i,count:o}))}),{key:!1,debug:function(){return i.options.debug}}),this.indexFromElement=function(e){var t=i.options.indexAttribute,o=e.getAttribute(t)
6031
+ return{startIndex:r,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:o})}),{key:!1,debug:function(){return i.options.debug}}),this.maybeNotify=Sw((function(){return[].concat(Object.values(i.calculateRange()),[i.isScrolling])}),(function(){i.notify()}),{key:!1,debug:function(){return i.options.debug},initialDeps:[].concat(Object.values(this.range),[this.isScrolling])}),this.getIndexes=Sw((function(){return[i.options.rangeExtractor,i.calculateRange(),i.options.overscan,i.options.count]}),(function(e,t,i,o){return e(kw({},t,{overscan:i,count:o}))}),{key:!1,debug:function(){return i.options.debug}}),this.indexFromElement=function(e){var t=i.options.indexAttribute,o=e.getAttribute(t)
5997
6032
  return o?parseInt(o,10):(console.warn("Missing attribute name '"+t+"={index}' on measured element."),-1)},this._measureElement=function(e,t){var o,n=i.indexFromElement(e),s=i.measurementsCache[n]
5998
6033
  if(s){var r=i.measureElementCache[s.key],a=i.getResizeObserver()
5999
6034
  if(!e.isConnected)return null==a||a.unobserve(e),void(e===r&&delete i.measureElementCache[s.key])
6000
6035
  if(r!==e)r&&(null==a||a.unobserve(r)),null==a||a.observe(e),i.measureElementCache[s.key]=e
6001
6036
  else if(!t&&!r.__virtualizerSkipFirstNotSync)return void(r.__virtualizerSkipFirstNotSync=!0)
6002
6037
  var l,c=i.options.measureElement(e,i),d=c-(null!=(o=i.itemSizeCache[s.key])?o:s.size)
6003
- if(0!==d)s.start<i.scrollOffset&&i._scrollToOffset(i.scrollOffset,{adjustments:i.scrollAdjustments+=d,behavior:void 0}),i.pendingMeasuredCacheIndexes.push(n),i.itemSizeCache=$w({},i.itemSizeCache,((l={})[s.key]=c,l)),i.notify()}},this.measureElement=function(e){e&&i._measureElement(e,!0)},this.getVirtualItems=Cw((function(){return[i.getIndexes(),i.getMeasurements()]}),(function(e,t){for(var i=[],o=0,n=e.length;o<n;o++){var s=t[e[o]]
6038
+ if(0!==d)s.start<i.scrollOffset&&i._scrollToOffset(i.scrollOffset,{adjustments:i.scrollAdjustments+=d,behavior:void 0}),i.pendingMeasuredCacheIndexes.push(n),i.itemSizeCache=kw({},i.itemSizeCache,((l={})[s.key]=c,l)),i.notify()}},this.measureElement=function(e){e&&i._measureElement(e,!0)},this.getVirtualItems=Sw((function(){return[i.getIndexes(),i.getMeasurements()]}),(function(e,t){for(var i=[],o=0,n=e.length;o<n;o++){var s=t[e[o]]
6004
6039
  i.push(s)}return i}),{key:!1,debug:function(){return i.options.debug}}),this.getOffsetForAlignment=function(e,t){var o=i.getSize()
6005
6040
  "auto"===t&&(t=e<=i.scrollOffset?"start":e>=i.scrollOffset+o?"end":"start"),"start"===t||("end"===t?e-=o:"center"===t&&(e-=o/2))
6006
6041
  var n=i.options.horizontal?"scrollWidth":"scrollHeight",s=(i.scrollElement?"document"in i.scrollElement?i.scrollElement.document.documentElement[n]:i.scrollElement[n]:0)-i.getSize()
@@ -6030,35 +6065,35 @@ i.options.scrollToFn(e,{behavior:n,adjustments:o},i)},this.measure=function(){i.
6030
6065
  * LICENSE.md file in the root directory of this source tree.
6031
6066
  *
6032
6067
  * @license MIT
6033
- */class Vw{constructor(e,t){this.visibleItems=[],this.allRowsHeight=0,this.headerContainerMarginRight=0,this.rowContainerYOffset=0,this.table=e,this.tanStackTable=t,this.viewportResizeObserver=new ResizeObserver((e=>{const t=e[0]?.borderBoxSize[0]
6068
+ */class Hw{constructor(e,t){this.visibleItems=[],this.allRowsHeight=0,this.headerContainerMarginRight=0,this.rowContainerYOffset=0,this.table=e,this.tanStackTable=t,this.viewportResizeObserver=new ResizeObserver((e=>{const t=e[0]?.borderBoxSize[0]
6034
6069
  if(t){const e=t.inlineSize
6035
6070
  this.headerContainerMarginRight=e-this.table.viewport.clientWidth}}))}connectedCallback(){this.viewportResizeObserver.observe(this.table.viewport),this.updateVirtualizer()}disconnectedCallback(){this.viewportResizeObserver.disconnect()}dataChanged(){this.table.$fastController.isConnected&&this.updateVirtualizer()}updateVirtualizer(){const e=this.createVirtualizerOptions()
6036
- this.virtualizer?this.virtualizer.setOptions(e):this.virtualizer=new Ew(e),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const e=parseFloat(ea.getValueFor(this.table))+2*parseFloat(na.getValueFor(this.table))
6037
- return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:t=>e,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:Ow,observeElementOffset:Mw,observeElementRect:Iw,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
6071
+ this.virtualizer?this.virtualizer.setOptions(e):this.virtualizer=new Fw(e),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const e=parseFloat(ea.getValueFor(this.table))+2*parseFloat(na.getValueFor(this.table))
6072
+ return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:t=>e,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:Vw,observeElementOffset:Ow,observeElementRect:Mw,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
6038
6073
  const e=this.virtualizer
6039
6074
  this.visibleItems=e.getVirtualItems(),this.allRowsHeight=e.getTotalSize()
6040
6075
  let t=0
6041
6076
  if(this.visibleItems.length>0){t=this.visibleItems[0].start}this.rowContainerYOffset=t}notifyFocusedCellRecycling(){let e=this.table.shadowRoot.activeElement
6042
- for(;null!==e&&!(e instanceof Xb)&&e.shadowRoot;)e=e.shadowRoot.activeElement
6043
- if(e instanceof Xb&&e.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){this.table.rowElements.find((e=>e.recordId===this.table.openActionMenuRecordId))?.closeOpenActionMenus()}}}function Fw(e){switch(e){case jb:return Hb.basic
6044
- case Ub:return Hw
6045
- default:return Hb.basic}}function Hw(e,t,i){const o=e.getValue(i),n=t.getValue(i)
6046
- return"string"==typeof o&&"string"==typeof n?o.localeCompare(n):o===n?0:void 0===o||null===o&&void 0!==n?-1:1}e([f],Vw.prototype,"visibleItems",void 0),e([f],Vw.prototype,"allRowsHeight",void 0),e([f],Vw.prototype,"headerContainerMarginRight",void 0),e([f],Vw.prototype,"rowContainerYOffset",void 0)
6047
- const Pw=(e,...t)=>{for(const i of t)if(e===i)return!0
6048
- return!1},Tw=(e,...t)=>{for(const i of t)if(e===i)return!0
6077
+ for(;null!==e&&!(e instanceof Yb)&&e.shadowRoot;)e=e.shadowRoot.activeElement
6078
+ if(e instanceof Yb&&e.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){this.table.rowElements.find((e=>e.recordId===this.table.openActionMenuRecordId))?.closeOpenActionMenus()}}}function Pw(e){switch(e){case Gb:return Tb.basic
6079
+ case Wb:return Tw
6080
+ default:return Tb.basic}}function Tw(e,t,i){const o=e.getValue(i),n=t.getValue(i)
6081
+ return"string"==typeof o&&"string"==typeof n?o.localeCompare(n):o===n?0:void 0===o||null===o&&void 0!==n?-1:1}e([f],Hw.prototype,"visibleItems",void 0),e([f],Hw.prototype,"allRowsHeight",void 0),e([f],Hw.prototype,"headerContainerMarginRight",void 0),e([f],Hw.prototype,"rowContainerYOffset",void 0)
6082
+ const Lw=(e,...t)=>{for(const i of t)if(e===i)return!0
6083
+ return!1},Dw=(e,...t)=>{for(const i of t)if(e===i)return!0
6049
6084
  return!1}
6050
- class Lw{constructor(e){this.requiredUpdates={rowIds:!1,groupRows:!1,columnIds:!1,columnSort:!1,columnWidths:!1,columnDefinition:!1,actionMenuSlots:!1,selectionMode:!1},this.updateQueued=!1,this.table=e}get updateRowIds(){return this.requiredUpdates.rowIds}get updateGroupRows(){return this.requiredUpdates.groupRows}get updateColumnIds(){return this.requiredUpdates.columnIds}get updateColumnSort(){return this.requiredUpdates.columnSort}get updateColumnWidths(){return this.requiredUpdates.columnWidths}get updateColumnDefinition(){return this.requiredUpdates.columnDefinition}get updateActionMenuSlots(){return this.requiredUpdates.actionMenuSlots}get updateSelectionMode(){return this.requiredUpdates.selectionMode}get requiresTanStackUpdate(){return this.requiredUpdates.rowIds||this.requiredUpdates.columnSort||this.requiredUpdates.columnDefinition||this.requiredUpdates.groupRows||this.requiredUpdates.selectionMode}get requiresTanStackDataReset(){return this.requiredUpdates.rowIds||this.requiredUpdates.columnDefinition}trackAllStateChanged(){this.setAllKeys(!0),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(e){Pw(e,"columnId")?this.requiredUpdates.columnIds=!0:Tw(e,"operandDataRecordFieldName","sortOperation")?this.requiredUpdates.columnDefinition=!0:Pw(e,"sortIndex","sortDirection")?this.requiredUpdates.columnSort=!0:Pw(e,"columnHidden")||Tw(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.requiredUpdates.columnWidths=!0:Pw(e,"actionMenuSlot")?this.requiredUpdates.actionMenuSlots=!0:Tw(e,"groupIndex","groupingDisabled")&&(this.requiredUpdates.groupRows=!0),this.queueUpdate()}trackColumnInstancesChanged(){this.requiredUpdates.columnIds=!0,this.requiredUpdates.columnDefinition=!0,this.requiredUpdates.columnSort=!0,this.requiredUpdates.columnWidths=!0,this.requiredUpdates.actionMenuSlots=!0,this.requiredUpdates.groupRows=!0,this.queueUpdate()}trackIdFieldNameChanged(){this.requiredUpdates.rowIds=!0,this.queueUpdate()}trackSelectionModeChanged(){this.requiredUpdates.selectionMode=!0,this.queueUpdate()}setAllKeys(e){Object.keys(this.requiredUpdates).forEach((t=>{this.requiredUpdates[t]=e}))}queueUpdate(){this.table.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.table.update(),this.setAllKeys(!1),this.updateQueued=!1}))))}}class Dw{static getGridTemplateColumns(e){return e?.filter((e=>!e.columnHidden)).map((e=>{const{minPixelWidth:t,currentPixelWidth:i,currentFractionalWidth:o}=e.columnInternals
6051
- if(i){return`${Math.max(t,i)}px`}return`minmax(${t}px, ${o}fr)`})).join(" ")}}class zw extends _t{constructor(){super(),this.selectionMode=Bb.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=Nb,this.tableValidator=new Jb,this.updateTracker=new Lw(this),this.columnNotifiers=[],this.isInitialized=!1,this.collapsedRows=new Set,this.ignoreSelectionChangeEvents=!1,this.onViewPortScroll=e=>{this.scrollX=e.target.scrollLeft},this.getIsRowExpanded=e=>{if(!e.getIsGrouped())return!1
6085
+ class zw{constructor(e){this.requiredUpdates={rowIds:!1,groupRows:!1,columnIds:!1,columnSort:!1,columnWidths:!1,columnDefinition:!1,actionMenuSlots:!1,selectionMode:!1},this.updateQueued=!1,this.table=e}get updateRowIds(){return this.requiredUpdates.rowIds}get updateGroupRows(){return this.requiredUpdates.groupRows}get updateColumnIds(){return this.requiredUpdates.columnIds}get updateColumnSort(){return this.requiredUpdates.columnSort}get updateColumnWidths(){return this.requiredUpdates.columnWidths}get updateColumnDefinition(){return this.requiredUpdates.columnDefinition}get updateActionMenuSlots(){return this.requiredUpdates.actionMenuSlots}get updateSelectionMode(){return this.requiredUpdates.selectionMode}get requiresTanStackUpdate(){return this.requiredUpdates.rowIds||this.requiredUpdates.columnSort||this.requiredUpdates.columnDefinition||this.requiredUpdates.groupRows||this.requiredUpdates.selectionMode}get requiresTanStackDataReset(){return this.requiredUpdates.rowIds||this.requiredUpdates.columnDefinition}trackAllStateChanged(){this.setAllKeys(!0),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(e){Lw(e,"columnId")?this.requiredUpdates.columnIds=!0:Dw(e,"operandDataRecordFieldName","sortOperation")?this.requiredUpdates.columnDefinition=!0:Lw(e,"sortIndex","sortDirection")?this.requiredUpdates.columnSort=!0:Lw(e,"columnHidden")||Dw(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.requiredUpdates.columnWidths=!0:Lw(e,"actionMenuSlot")?this.requiredUpdates.actionMenuSlots=!0:Dw(e,"groupIndex","groupingDisabled")&&(this.requiredUpdates.groupRows=!0),this.queueUpdate()}trackColumnInstancesChanged(){this.requiredUpdates.columnIds=!0,this.requiredUpdates.columnDefinition=!0,this.requiredUpdates.columnSort=!0,this.requiredUpdates.columnWidths=!0,this.requiredUpdates.actionMenuSlots=!0,this.requiredUpdates.groupRows=!0,this.queueUpdate()}trackIdFieldNameChanged(){this.requiredUpdates.rowIds=!0,this.queueUpdate()}trackSelectionModeChanged(){this.requiredUpdates.selectionMode=!0,this.queueUpdate()}setAllKeys(e){Object.keys(this.requiredUpdates).forEach((t=>{this.requiredUpdates[t]=e}))}queueUpdate(){this.table.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.table.update(),this.setAllKeys(!1),this.updateQueued=!1}))))}}class Bw{static getGridTemplateColumns(e){return e?.filter((e=>!e.columnHidden)).map((e=>{const{minPixelWidth:t,currentPixelWidth:i,currentFractionalWidth:o}=e.columnInternals
6086
+ if(i){return`${Math.max(t,i)}px`}return`minmax(${t}px, ${o}fr)`})).join(" ")}}class Nw extends _t{constructor(){super(),this.selectionMode=Zb.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=qb,this.showCollapseAll=!1,this.tableValidator=new tw,this.updateTracker=new zw(this),this.columnNotifiers=[],this.isInitialized=!1,this.collapsedRows=new Set,this.ignoreSelectionChangeEvents=!1,this.onViewPortScroll=e=>{this.scrollX=e.target.scrollLeft},this.getIsRowExpanded=e=>{if(!e.getIsGrouped())return!1
6052
6087
  const t=this.table.options.state.expanded
6053
6088
  return!0===t||(Object.keys(t??{}).includes(e.id)?t[e.id]:!this.collapsedRows.has(e.id))},this.handleRowSelectionChange=e=>{const t=e instanceof Function?e(this.table.getState().rowSelection):e
6054
6089
  this.updateTableOptions({state:{rowSelection:t}})},this.handleExpandedChange=e=>{const t=e instanceof Function?e(this.table.getState().expanded):e
6055
- this.updateTableOptions({state:{expanded:t}})},this.options={data:[],onStateChange:e=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:e=>ob((()=>[e.options.data]),(t=>{const i={rows:[],flatRows:[],rowsById:{}},o=function(t,n,s){void 0===n&&(n=0)
6090
+ this.updateTableOptions({state:{expanded:t}})},this.options={data:[],onStateChange:e=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:e=>sb((()=>[e.options.data]),(t=>{const i={rows:[],flatRows:[],rowsById:{}},o=function(t,n,s){void 0===n&&(n=0)
6056
6091
  const r=[]
6057
- for(let l=0;l<t.length;l++){const c=Lb(e,e._getRowId(t[l],l,s),t[l],l,n)
6092
+ for(let l=0;l<t.length;l++){const c=zb(e,e._getRowId(t[l],l,s),t[l],l,n)
6058
6093
  var a
6059
6094
  i.flatRows.push(c),i.rowsById[c.id]=c,r.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[l],l),null!=(a=c.originalSubRows)&&a.length&&(c.subRows=o(c.originalSubRows,n+1,c)))}return r}
6060
6095
  return i.rows=o(t),i}),{key:!1,debug:()=>{var t
6061
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>ob((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,i)=>{if(!i.rows.length||null==t||!t.length)return i
6096
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>sb((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,i)=>{if(!i.rows.length||null==t||!t.length)return i
6062
6097
  const o=e.getState().sorting,n=[],s=o.filter((t=>{var i
6063
6098
  return null==(i=e.getColumn(t.id))?void 0:i.getCanSort()})),r={}
6064
6099
  s.forEach((t=>{const i=e.getColumn(t.id)
@@ -6071,46 +6106,46 @@ if(i||o)return i&&o?0:i?a.sortUndefined:-a.sortUndefined}let c=a.sortingFn(e,t,n
6071
6106
  if(0!==c)return l&&(c*=-1),a.invertSorting&&(c*=-1),c}return e.index-t.index})),t.forEach((e=>{var t
6072
6107
  n.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))})),t}
6073
6108
  return{rows:a(i.rows),flatRows:n,rowsById:i.rowsById}}),{key:!1,debug:()=>{var t
6074
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getGroupedRowModel:Db(),getExpandedRowModel:e=>ob((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,i)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:i?function(e){const t=[],i=e=>{var o
6109
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getGroupedRowModel:Bb(),getExpandedRowModel:e=>sb((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,i)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:i?function(e){const t=[],i=e=>{var o
6075
6110
  t.push(e),null!=(o=e.subRows)&&o.length&&e.getIsExpanded()&&e.subRows.forEach(i)}
6076
6111
  return e.rows.forEach(i),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}(t):t),{key:!1,debug:()=>{var t
6077
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsRowExpanded:this.getIsRowExpanded,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:e=>!e.getIsGrouped(),enableMultiRowSelection:!1,enableSubRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=Tb(this.options),this.virtualizer=new Vw(this,this.table)}get validity(){return this.tableValidator.getValidity()}async setData(e){await this.processPendingUpdates()
6112
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsRowExpanded:this.getIsRowExpanded,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:e=>!e.getIsGrouped(),enableMultiRowSelection:!1,enableSubRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=Db(this.options),this.virtualizer=new Hw(this,this.table)}get validity(){return this.tableValidator.getValidity()}async setData(e){await this.processPendingUpdates()
6078
6113
  const t=e.map((e=>({...e}))),i={data:t}
6079
6114
  if(this.validateWithData(t),this.tableValidator.areRecordIdsValid()){const e=await this.getSelectedRecordIds()
6080
6115
  i.state={rowSelection:this.calculateTanStackSelectionState(e)}}this.updateTableOptions(i)}async getSelectedRecordIds(){await this.processPendingUpdates()
6081
6116
  const e=this.options.state.rowSelection
6082
6117
  if(!e)return[]
6083
6118
  const t=[]
6084
- return Object.entries(e).forEach((([e,i])=>{i&&t.push(e)})),t}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==Bb.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connectedCallback(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0})}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnectedCallback(),this.viewport.removeEventListener("scroll",this.onViewPortScroll)}checkValidity(){return this.tableValidator.isValid()}handleChange(e,t){(e instanceof Qb||e instanceof Yb)&&"string"==typeof t&&this.updateTracker.trackColumnPropertyChanged(t)}async onRowSelectionToggle(e,t){if(t.stopImmediatePropagation(),this.selectionMode===Bb.none)return
6119
+ return Object.entries(e).forEach((([e,i])=>{i&&t.push(e)})),t}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==Zb.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connectedCallback(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0})}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnectedCallback(),this.viewport.removeEventListener("scroll",this.onViewPortScroll)}checkValidity(){return this.tableValidator.isValid()}handleChange(e,t){(e instanceof ew||e instanceof Jb)&&"string"==typeof t&&this.updateTracker.trackColumnPropertyChanged(t)}async onRowSelectionToggle(e,t){if(t.stopImmediatePropagation(),this.selectionMode===Zb.none)return
6085
6120
  const i=this.tableData[e]
6086
- i?.isGrouped&&i?.selectionState===Zb?this.deselectAllLeafRows(e):this.table.getRowModel().rows[e]?.toggleSelected(t.detail.newState),await this.emitSelectionChangeEvent()}async onRowClick(e){return this.selectSingleRow(e)}async onAllRowsSelectionChange(e){e.stopPropagation(),this.ignoreSelectionChangeEvents||(this.table.toggleAllRowsSelected(this.selectionCheckbox.checked),await this.emitSelectionChangeEvent())}async onRowActionMenuBeforeToggle(e,t){t.stopImmediatePropagation()
6121
+ i?.isGrouped&&i?.selectionState===jb?this.deselectAllLeafRows(e):this.table.getRowModel().rows[e]?.toggleSelected(t.detail.newState),await this.emitSelectionChangeEvent()}async onRowClick(e){return this.selectSingleRow(e)}async onAllRowsSelectionChange(e){e.stopPropagation(),this.ignoreSelectionChangeEvents||(this.table.toggleAllRowsSelected(this.selectionCheckbox.checked),await this.emitSelectionChangeEvent())}async onRowActionMenuBeforeToggle(e,t){t.stopImmediatePropagation()
6087
6122
  let i=t.detail.recordIds
6088
- if(this.selectionMode!==Bb.none){const t=this.table.getRowModel().rows[e]
6123
+ if(this.selectionMode!==Zb.none){const t=this.table.getRowModel().rows[e]
6089
6124
  t&&!t.getIsSelected()?await this.selectSingleRow(e):i=await this.getSelectedRecordIds()}this.openActionMenuRecordId=t.detail.recordIds[0]
6090
6125
  const o={...t.detail,recordIds:i}
6091
6126
  this.$emit("action-menu-beforetoggle",o)}async onRowActionMenuToggle(e){e.stopImmediatePropagation()
6092
- const t=this.selectionMode===Bb.multiple?await this.getSelectedRecordIds():e.detail.recordIds,i={...e.detail,recordIds:t}
6093
- this.$emit("action-menu-toggle",i),e.detail.newState||(this.openActionMenuRecordId=void 0)}handleGroupRowExpanded(e,t){this.toggleGroupExpanded(e),t.stopPropagation()}update(){this.validate(),this.updateTracker.requiresTanStackUpdate&&this.updateTanStack(),this.updateTracker.updateActionMenuSlots&&this.updateActionMenuSlots(),this.updateTracker.updateColumnWidths&&this.updateRowGridColumns()}get ariaMultiSelectable(){switch(this.selectionMode){case Bb.multiple:return"true"
6094
- case Bb.single:return"false"
6127
+ const t=this.selectionMode===Zb.multiple?await this.getSelectedRecordIds():e.detail.recordIds,i={...e.detail,recordIds:t}
6128
+ this.$emit("action-menu-toggle",i),e.detail.newState||(this.openActionMenuRecordId=void 0)}handleCollapseAllGroupRows(){this.collapsedRows.clear(),this.table.getRowModel().flatRows.filter((e=>e.getIsGrouped())).forEach((e=>this.collapsedRows.add(e.id))),this.table.toggleAllRowsExpanded(!1)}handleGroupRowExpanded(e,t){this.toggleGroupExpanded(e),t.stopPropagation()}update(){this.validate(),this.updateTracker.requiresTanStackUpdate&&this.updateTanStack(),this.updateTracker.updateActionMenuSlots&&this.updateActionMenuSlots(),this.updateTracker.updateColumnWidths&&this.updateRowGridColumns(),this.updateTracker.updateGroupRows&&(this.showCollapseAll=this.getColumnsParticipatingInGrouping().length>0)}get ariaMultiSelectable(){switch(this.selectionMode){case Zb.multiple:return"true"
6129
+ case Zb.single:return"false"
6095
6130
  default:return null}}selectionModeChanged(e,t){this.$fastController.isConnected&&this.updateTracker.trackSelectionModeChanged()}idFieldNameChanged(e,t){this.$fastController.isConnected&&this.updateTracker.trackIdFieldNameChanged()}columnsChanged(e,t){this.$fastController.isConnected&&(this.observeColumns(),this.updateTracker.trackColumnInstancesChanged())}removeColumnObservers(){this.columnNotifiers.forEach((e=>{e.unsubscribe(this)})),this.columnNotifiers=[]}initialize(){this.isInitialized||(this.isInitialized=!0,this.$fastController.onConnectedCallback(),this.updateTracker.trackAllStateChanged(),this.observeColumns())}async processPendingUpdates(){if(this.initialize(),await u.nextUpdate(),this.updateTracker.hasPendingUpdates)throw new Error("Expected pending updates to be resolved")}observeColumns(){this.removeColumnObservers()
6096
6131
  for(const e of this.columns){const t=v.getNotifier(e)
6097
6132
  t.subscribe(this),this.columnNotifiers.push(t)
6098
- v.getNotifier(e.columnInternals).subscribe(this),this.columnNotifiers.push(t)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>e.sortDirection!==zb.none&&"number"==typeof e.sortIndex))}getColumnsParticipatingInGrouping(){return this.columns.filter((e=>!e.columnInternals.groupingDisabled&&"number"==typeof e.columnInternals.groupIndex))}childItemsChanged(){this.updateColumnsFromChildItems()}async updateColumnsFromChildItems(){const e=this.childItems.map((async e=>e.matches(":not(:defined)")?customElements.whenDefined(e.localName):Promise.resolve()))
6099
- await Promise.all(e),this.columns=this.childItems.filter((e=>e instanceof Qb))}updateTanStack(){const e={state:{}}
6100
- this.updateTracker.updateColumnSort&&(e.state.sorting=this.calculateTanStackSortState()),this.updateTracker.updateColumnDefinition&&(e.columns=this.calculateTanStackColumns()),this.updateTracker.updateRowIds&&(e.getRowId=this.calculateTanStackRowIdFunction(),e.state.rowSelection={}),this.updateTracker.updateSelectionMode&&(e.enableMultiRowSelection=this.selectionMode===Bb.multiple,e.enableSubRowSelection=this.selectionMode===Bb.multiple,e.state.rowSelection={}),this.updateTracker.requiresTanStackDataReset&&(e.data=[...this.table.options.data]),this.updateTracker.updateGroupRows&&(e.state.grouping=this.calculateTanStackGroupingState(),e.state.expanded=!0,this.collapsedRows.clear()),this.updateTableOptions(e)}updateActionMenuSlots(){const e=new Set
6133
+ v.getNotifier(e.columnInternals).subscribe(this),this.columnNotifiers.push(t)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>e.sortDirection!==Nb.none&&"number"==typeof e.sortIndex))}getColumnsParticipatingInGrouping(){return this.columns.filter((e=>!e.columnInternals.groupingDisabled&&"number"==typeof e.columnInternals.groupIndex))}childItemsChanged(){this.updateColumnsFromChildItems()}async updateColumnsFromChildItems(){const e=this.childItems.map((async e=>e.matches(":not(:defined)")?customElements.whenDefined(e.localName):Promise.resolve()))
6134
+ await Promise.all(e),this.columns=this.childItems.filter((e=>e instanceof ew))}updateTanStack(){const e={state:{}}
6135
+ this.updateTracker.updateColumnSort&&(e.state.sorting=this.calculateTanStackSortState()),this.updateTracker.updateColumnDefinition&&(e.columns=this.calculateTanStackColumns()),this.updateTracker.updateRowIds&&(e.getRowId=this.calculateTanStackRowIdFunction(),e.state.rowSelection={}),this.updateTracker.updateSelectionMode&&(e.enableMultiRowSelection=this.selectionMode===Zb.multiple,e.enableSubRowSelection=this.selectionMode===Zb.multiple,e.state.rowSelection={}),this.updateTracker.requiresTanStackDataReset&&(e.data=[...this.table.options.data]),this.updateTracker.updateGroupRows&&(e.state.grouping=this.calculateTanStackGroupingState(),e.state.expanded=!0,this.collapsedRows.clear()),this.updateTableOptions(e)}updateActionMenuSlots(){const e=new Set
6101
6136
  for(const t of this.columns)t.actionMenuSlot&&e.add(t.actionMenuSlot)
6102
- this.actionMenuSlots=Array.from(e)}updateRowGridColumns(){this.rowGridColumns=Dw.getGridTemplateColumns(this.columns)}validate(){this.tableValidator.validateSelectionMode(this.selectionMode,this.idFieldName),this.tableValidator.validateColumnIds(this.columns.map((e=>e.columnId))),this.tableValidator.validateColumnSortIndices(this.getColumnsParticipatingInSorting().map((e=>e.sortIndex))),this.tableValidator.validateColumnGroupIndices(this.getColumnsParticipatingInGrouping().map((e=>e.columnInternals.groupIndex))),this.validateWithData(this.table.options.data)}validateWithData(e){this.tableValidator.validateRecordIds(e,this.idFieldName),this.canRenderRows=this.checkValidity()}async emitSelectionChangeEvent(){const e={selectedRecordIds:await this.getSelectedRecordIds()}
6103
- this.$emit("selection-change",e)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===Zb,this.selectionCheckbox.indeterminate=this.selectionState===qb,this.ignoreSelectionChangeEvents=!1)}refreshRows(){this.selectionState=this.getTableSelectionState()
6137
+ this.actionMenuSlots=Array.from(e)}updateRowGridColumns(){this.rowGridColumns=Bw.getGridTemplateColumns(this.columns)}validate(){this.tableValidator.validateSelectionMode(this.selectionMode,this.idFieldName),this.tableValidator.validateColumnIds(this.columns.map((e=>e.columnId))),this.tableValidator.validateColumnSortIndices(this.getColumnsParticipatingInSorting().map((e=>e.sortIndex))),this.tableValidator.validateColumnGroupIndices(this.getColumnsParticipatingInGrouping().map((e=>e.columnInternals.groupIndex))),this.validateWithData(this.table.options.data)}validateWithData(e){this.tableValidator.validateRecordIds(e,this.idFieldName),this.canRenderRows=this.checkValidity()}async emitSelectionChangeEvent(){const e={selectedRecordIds:await this.getSelectedRecordIds()}
6138
+ this.$emit("selection-change",e)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===jb,this.selectionCheckbox.indeterminate=this.selectionState===Ub,this.ignoreSelectionChangeEvents=!1)}refreshRows(){this.selectionState=this.getTableSelectionState()
6104
6139
  const e=this.table.getRowModel().rows
6105
- this.tableData=e.map((e=>({record:e.original,id:e.id,selectionState:this.getRowSelectionState(e),isGrouped:e.getIsGrouped(),isExpanded:e.getIsExpanded(),groupRowValue:e.getIsGrouped()?e.getValue(e.groupingColumnId):void 0,nestingLevel:e.depth,leafItemCount:e.getLeafRows().filter((e=>0===e.getLeafRows().length)).length,groupColumn:this.getGroupRowColumn(e)}))),this.virtualizer.dataChanged()}getTableSelectionState(){return this.table.getIsAllRowsSelected()?Zb:this.table.getIsSomeRowsSelected()?qb:Nb}getRowSelectionState(e){return e.getIsGrouped()?this.getGroupedRowSelectionState(e):e.getIsSelected()?Zb:Nb}getGroupedRowSelectionState(e){const t=e.subRows??[]
6140
+ this.tableData=e.map((e=>({record:e.original,id:e.id,selectionState:this.getRowSelectionState(e),isGrouped:e.getIsGrouped(),isExpanded:e.getIsExpanded(),groupRowValue:e.getIsGrouped()?e.getValue(e.groupingColumnId):void 0,nestingLevel:e.depth,leafItemCount:e.getLeafRows().filter((e=>0===e.getLeafRows().length)).length,groupColumn:this.getGroupRowColumn(e)}))),this.virtualizer.dataChanged()}getTableSelectionState(){return this.table.getIsAllRowsSelected()?jb:this.table.getIsSomeRowsSelected()?Ub:qb}getRowSelectionState(e){return e.getIsGrouped()?this.getGroupedRowSelectionState(e):e.getIsSelected()?jb:qb}getGroupedRowSelectionState(e){const t=e.subRows??[]
6106
6141
  let i=!1,o=!1
6107
- for(const e of t){if(e.getIsGrouped()){switch(this.getGroupedRowSelectionState(e)){case Nb:o=!0
6142
+ for(const e of t){if(e.getIsGrouped()){switch(this.getGroupedRowSelectionState(e)){case qb:o=!0
6108
6143
  break
6109
- case Zb:i=!0
6144
+ case jb:i=!0
6110
6145
  break
6111
- default:return qb}}else e.getIsSelected()?i=!0:o=!0
6112
- if(i&&o)return qb}return i?Zb:Nb}getGroupRowColumn(e){const t=e.groupingColumnId
6113
- if(void 0!==t)return this.columns.find((e=>e.columnInternals.uniqueId===t))}updateTableOptions(e){this.options={...this.options,...e,state:{...this.options.state,...e.state}},this.table.setOptions(this.options),this.refreshRows()}async selectSingleRow(e){if(this.selectionMode===Bb.none)return
6146
+ default:return Ub}}else e.getIsSelected()?i=!0:o=!0
6147
+ if(i&&o)return Ub}return i?jb:qb}getGroupRowColumn(e){const t=e.groupingColumnId
6148
+ if(void 0!==t)return this.columns.find((e=>e.columnInternals.uniqueId===t))}updateTableOptions(e){this.options={...this.options,...e,state:{...this.options.state,...e.state}},this.table.setOptions(this.options),this.refreshRows()}async selectSingleRow(e){if(this.selectionMode===Zb.none)return
6114
6149
  const t=this.table.getRowModel().rows[e]
6115
6150
  if(!t)return
6116
6151
  const i=await this.getSelectedRecordIds()
@@ -6118,14 +6153,14 @@ const i=await this.getSelectedRecordIds()
6118
6153
  for(const e of t)delete i[e]
6119
6154
  this.updateTableOptions({state:{rowSelection:i}})}toggleGroupExpanded(e){const t=this.table.getRowModel().rows[e]
6120
6155
  t.getIsExpanded()?this.collapsedRows.add(t.id):this.collapsedRows.delete(t.id),t.toggleExpanded()}calculateTanStackSortState(){const e=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.sortIndex-t.sortIndex))
6121
- return this.firstSortedColumn=e.length?e[0]:void 0,e.map((e=>({id:e.columnInternals.uniqueId,desc:e.sortDirection===zb.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[this.idFieldName]}calculateTanStackColumns(){return this.columns.map((e=>({id:e.columnInternals.uniqueId,accessorFn:t=>{const i=e.columnInternals.operandDataRecordFieldName
6122
- if("string"==typeof i)return t[i]},sortingFn:Fw(e.columnInternals.sortOperation)})))}calculateTanStackSelectionState(e){if(this.selectionMode===Bb.none)return{}
6156
+ return this.firstSortedColumn=e.length?e[0]:void 0,e.map((e=>({id:e.columnInternals.uniqueId,desc:e.sortDirection===Nb.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[this.idFieldName]}calculateTanStackColumns(){return this.columns.map((e=>({id:e.columnInternals.uniqueId,accessorFn:t=>{const i=e.columnInternals.operandDataRecordFieldName
6157
+ if("string"==typeof i)return t[i]},sortingFn:Pw(e.columnInternals.sortOperation)})))}calculateTanStackSelectionState(e){if(this.selectionMode===Zb.none)return{}
6123
6158
  const t={},i=this.tableValidator.getPresentRecordIds(e)
6124
- for(const e of i)if(t[e]=!0,this.selectionMode===Bb.single)break
6125
- return t}}e([ne({attribute:"id-field-name"})],zw.prototype,"idFieldName",void 0),e([ne({attribute:"selection-mode"})],zw.prototype,"selectionMode",void 0),e([f],zw.prototype,"tableData",void 0),e([f],zw.prototype,"columns",void 0),e([f],zw.prototype,"childItems",void 0),e([f],zw.prototype,"rowElements",void 0),e([f],zw.prototype,"actionMenuSlots",void 0),e([f],zw.prototype,"openActionMenuRecordId",void 0),e([f],zw.prototype,"canRenderRows",void 0),e([f],zw.prototype,"scrollX",void 0),e([f],zw.prototype,"rowGridColumns",void 0),e([f],zw.prototype,"selectionState",void 0),e([f],zw.prototype,"selectionCheckbox",void 0),e([f],zw.prototype,"firstSortedColumn",void 0)
6126
- const Bw=zw.compose({baseName:"table",template:yw,styles:ew})
6127
- no.getOrCreate().withPrefix("nimble").register(Bw()),no.tagFor(zw)
6128
- const Nw=fe`
6159
+ for(const e of i)if(t[e]=!0,this.selectionMode===Zb.single)break
6160
+ return t}}e([ne({attribute:"id-field-name"})],Nw.prototype,"idFieldName",void 0),e([ne({attribute:"selection-mode"})],Nw.prototype,"selectionMode",void 0),e([f],Nw.prototype,"tableData",void 0),e([f],Nw.prototype,"columns",void 0),e([f],Nw.prototype,"childItems",void 0),e([f],Nw.prototype,"rowElements",void 0),e([f],Nw.prototype,"actionMenuSlots",void 0),e([f],Nw.prototype,"openActionMenuRecordId",void 0),e([f],Nw.prototype,"canRenderRows",void 0),e([f],Nw.prototype,"scrollX",void 0),e([f],Nw.prototype,"rowGridColumns",void 0),e([f],Nw.prototype,"selectionState",void 0),e([f],Nw.prototype,"selectionCheckbox",void 0),e([f],Nw.prototype,"showCollapseAll",void 0),e([f],Nw.prototype,"firstSortedColumn",void 0)
6161
+ const Zw=Nw.compose({baseName:"table",template:Cw,styles:iw})
6162
+ no.getOrCreate().withPrefix("nimble").register(Zw()),no.tagFor(Nw)
6163
+ const qw=fe`
6129
6164
  :host {
6130
6165
  display: contents;
6131
6166
  }
@@ -6135,14 +6170,14 @@ const Nw=fe`
6135
6170
  overflow: hidden;
6136
6171
  text-overflow: ellipsis;
6137
6172
  }
6138
- `,Zw=G`
6173
+ `,jw=G`
6139
6174
  <template slot="${e=>e.columnInternals.uniqueId}">
6140
6175
  <span class="header-content">
6141
6176
  <slot></slot>
6142
6177
  </span>
6143
6178
  </template>
6144
6179
  `
6145
- const qw=G`
6180
+ const Uw=G`
6146
6181
  <span
6147
6182
  ${_e("textSpan")}
6148
6183
  class="${e=>"string"==typeof e.groupHeaderValue?"":"placeholder"}"
@@ -6152,7 +6187,7 @@ const qw=G`
6152
6187
  >
6153
6188
  ${e=>e.content}
6154
6189
  </span>
6155
- `,jw=fe`
6190
+ `,Gw=fe`
6156
6191
  span {
6157
6192
  font: ${xl};
6158
6193
  color: ${yl};
@@ -6165,10 +6200,10 @@ const qw=G`
6165
6200
  color: ${Tl};
6166
6201
  }
6167
6202
  `
6168
- class Uw extends Gb{constructor(){super(...arguments),this.isValidContentAndHasOverflow=!1}get content(){return"string"==typeof this.groupHeaderValue?this.groupHeaderValue:this.columnConfig?.placeholder??""}updateTitleOverflow(){this.isValidContentAndHasOverflow=this.textSpan.offsetWidth<this.textSpan.scrollWidth}clearTitleOverflow(){this.isValidContentAndHasOverflow=!1}}e([f],Uw.prototype,"isValidContentAndHasOverflow",void 0),e([m],Uw.prototype,"content",null)
6169
- const Gw=Uw.compose({baseName:"table-column-text-group-header",template:qw,styles:jw})
6170
- no.getOrCreate().withPrefix("nimble").register(Gw())
6171
- const Ww=no.tagFor(Uw),Xw=fe`
6203
+ class Ww extends Xb{constructor(){super(...arguments),this.isValidContentAndHasOverflow=!1}get content(){return"string"==typeof this.groupHeaderValue?this.groupHeaderValue:this.columnConfig?.placeholder??""}updateTitleOverflow(){this.isValidContentAndHasOverflow=this.textSpan.offsetWidth<this.textSpan.scrollWidth}clearTitleOverflow(){this.isValidContentAndHasOverflow=!1}}e([f],Ww.prototype,"isValidContentAndHasOverflow",void 0),e([m],Ww.prototype,"content",null)
6204
+ const Xw=Ww.compose({baseName:"table-column-text-group-header",template:Uw,styles:Gw})
6205
+ no.getOrCreate().withPrefix("nimble").register(Xw())
6206
+ const Kw=no.tagFor(Ww),Yw=fe`
6172
6207
  span {
6173
6208
  font: ${xl};
6174
6209
  color: ${yl};
@@ -6180,7 +6215,7 @@ const Ww=no.tagFor(Uw),Xw=fe`
6180
6215
  .placeholder {
6181
6216
  color: ${Tl};
6182
6217
  }
6183
- `,Kw=G`
6218
+ `,Qw=G`
6184
6219
  <span
6185
6220
  ${_e("textSpan")}
6186
6221
  class="${e=>"string"==typeof e.cellRecord.value?"":"placeholder"}"
@@ -6191,14 +6226,14 @@ const Ww=no.tagFor(Uw),Xw=fe`
6191
6226
  ${e=>e.content}
6192
6227
  </span>
6193
6228
  `
6194
- class Yw extends Xb{constructor(){super(...arguments),this.isValidContentAndHasOverflow=!1}get content(){return"string"==typeof this.cellRecord.value?this.cellRecord.value:this.columnConfig.placeholder}}e([f],Yw.prototype,"isValidContentAndHasOverflow",void 0),e([m],Yw.prototype,"content",null)
6195
- const Qw=Yw.compose({baseName:"table-column-text-cell-view",template:Kw,styles:Xw})
6196
- no.getOrCreate().withPrefix("nimble").register(Qw())
6197
- const Jw=no.tagFor(Yw)
6198
- class ex extends(function(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 ne({attribute:"grouping-disabled",mode:"boolean"})(t.prototype,"groupingDisabled"),ne({attribute:"group-index",converter:ie})(t.prototype,"groupIndex"),t}(function(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=88}}return ne({attribute:"fractional-width",converter:ie})(t.prototype,"fractionalWidth"),ne({attribute:"min-pixel-width",converter:ie})(t.prototype,"minPixelWidth"),t}(Qb))){constructor(){super({cellRecordFieldNames:["value"],cellViewTag:Jw,groupHeaderViewTag:Ww}),this.columnInternals.sortOperation=Ub}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder??""}}}e([ne({attribute:"field-name"})],ex.prototype,"fieldName",void 0),e([ne],ex.prototype,"placeholder",void 0)
6199
- const tx=ex.compose({baseName:"table-column-text",template:Zw,styles:Nw})
6200
- no.getOrCreate().withPrefix("nimble").register(tx()),no.tagFor(ex)
6201
- const ix=fe`
6229
+ class Jw extends Yb{constructor(){super(...arguments),this.isValidContentAndHasOverflow=!1}get content(){return"string"==typeof this.cellRecord.value?this.cellRecord.value:this.columnConfig.placeholder}}e([f],Jw.prototype,"isValidContentAndHasOverflow",void 0),e([m],Jw.prototype,"content",null)
6230
+ const ex=Jw.compose({baseName:"table-column-text-cell-view",template:Qw,styles:Yw})
6231
+ no.getOrCreate().withPrefix("nimble").register(ex())
6232
+ const tx=no.tagFor(Jw)
6233
+ class ix extends(function(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 ne({attribute:"grouping-disabled",mode:"boolean"})(t.prototype,"groupingDisabled"),ne({attribute:"group-index",converter:ie})(t.prototype,"groupIndex"),t}(function(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 ne({attribute:"fractional-width",converter:ie})(t.prototype,"fractionalWidth"),ne({attribute:"min-pixel-width",converter:ie})(t.prototype,"minPixelWidth"),t}(ew))){constructor(){super({cellRecordFieldNames:["value"],cellViewTag:tx,groupHeaderViewTag:Kw}),this.columnInternals.sortOperation=Wb}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder??""}}}e([ne({attribute:"field-name"})],ix.prototype,"fieldName",void 0),e([ne],ix.prototype,"placeholder",void 0)
6234
+ const ox=ix.compose({baseName:"table-column-text",template:jw,styles:qw})
6235
+ no.getOrCreate().withPrefix("nimble").register(ox()),no.tagFor(ix)
6236
+ const nx=fe`
6202
6237
  ${bn("grid")}
6203
6238
 
6204
6239
  :host {
@@ -6222,7 +6257,7 @@ const ix=fe`
6222
6257
  overflow: auto;
6223
6258
  }
6224
6259
  `
6225
- class ox extends jo{constructor(){super(),this.activeindicator=!1}}const nx=ox.compose({baseName:"tabs",baseClass:jo,template:(e,t)=>G`
6260
+ class sx extends jo{constructor(){super(),this.activeindicator=!1}}const rx=sx.compose({baseName:"tabs",baseClass:jo,template:(e,t)=>G`
6226
6261
  <template class="${e=>e.orientation}">
6227
6262
  ${Ne(0,t)}
6228
6263
  <div class="tablist" part="tablist" role="tablist">
@@ -6241,9 +6276,9 @@ class ox extends jo{constructor(){super(),this.activeindicator=!1}}const nx=ox.c
6241
6276
  <slot name="tabpanel" part="tabpanel" ${Te("tabpanels")}></slot>
6242
6277
  </div>
6243
6278
  </template>
6244
- `,styles:ix})
6245
- no.getOrCreate().withPrefix("nimble").register(nx()),no.tagFor(ox)
6246
- const sx=fe`
6279
+ `,styles:nx})
6280
+ no.getOrCreate().withPrefix("nimble").register(rx()),no.tagFor(sx)
6281
+ const ax=fe`
6247
6282
  ${bn("flex")}
6248
6283
 
6249
6284
  :host {
@@ -6261,15 +6296,15 @@ const sx=fe`
6261
6296
  rgba(${jr}, 0.3);
6262
6297
  margin: calc(${oa} / 4) calc(${oa} / 2);
6263
6298
  }
6264
- `,rx=G`
6299
+ `,lx=G`
6265
6300
  <template slot="end">
6266
6301
  <div class="separator"></div>
6267
6302
  <slot></slot>
6268
6303
  </template>
6269
6304
  `
6270
- class ax extends _t{}const lx=ax.compose({baseName:"tabs-toolbar",template:rx,styles:sx})
6271
- no.getOrCreate().withPrefix("nimble").register(lx()),no.tagFor(ax)
6272
- const cx="outline",dx="block",hx=fe`
6305
+ class cx extends _t{}const dx=cx.compose({baseName:"tabs-toolbar",template:lx,styles:ax})
6306
+ no.getOrCreate().withPrefix("nimble").register(dx()),no.tagFor(cx)
6307
+ const hx="outline",ux="block",px=fe`
6273
6308
  ${bn("inline-flex")}
6274
6309
  ${Jp}
6275
6310
 
@@ -6409,12 +6444,12 @@ const cx="outline",dx="block",hx=fe`
6409
6444
  top: calc(${oa} / 2);
6410
6445
  right: var(--ni-private-scrollbar-width);
6411
6446
  }
6412
- `.withBehaviors(zc(cx,fe`
6447
+ `.withBehaviors(zc(hx,fe`
6413
6448
  .control {
6414
6449
  border-color: rgba(${jr}, 0.3);
6415
6450
  background-color: transparent;
6416
6451
  }
6417
- `),zc(dx,fe`
6452
+ `),zc(ux,fe`
6418
6453
  .control {
6419
6454
  background-color: rgba(${jr}, 0.1);
6420
6455
  }
@@ -6432,8 +6467,8 @@ const cx="outline",dx="block",hx=fe`
6432
6467
  border-bottom-color: ${Ur};
6433
6468
  }
6434
6469
  `))
6435
- class ux extends Xo{constructor(){super(...arguments),this.appearance=cx,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}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([ne],ux.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],ux.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],ux.prototype,"errorVisible",void 0),e([f],ux.prototype,"scrollbarWidth",void 0)
6436
- const px=ux.compose({baseName:"text-area",baseClass:Xo,template:()=>G`
6470
+ class gx extends Xo{constructor(){super(...arguments),this.appearance=hx,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}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([ne],gx.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],gx.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],gx.prototype,"errorVisible",void 0),e([f],gx.prototype,"scrollbarWidth",void 0)
6471
+ const vx=gx.compose({baseName:"text-area",baseClass:Xo,template:()=>G`
6437
6472
  <label
6438
6473
  part="label"
6439
6474
  for="control"
@@ -6490,9 +6525,9 @@ const px=ux.compose({baseName:"text-area",baseClass:Xo,template:()=>G`
6490
6525
  ></${bp}>
6491
6526
  ${Up}
6492
6527
  </div>
6493
- `,styles:hx,shadowOptions:{delegatesFocus:!0}})
6494
- no.getOrCreate().withPrefix("nimble").register(px()),no.tagFor(ux)
6495
- const gx="underline",vx="outline",fx="block",mx="frameless",bx=fe`
6528
+ `,styles:px,shadowOptions:{delegatesFocus:!0}})
6529
+ no.getOrCreate().withPrefix("nimble").register(vx()),no.tagFor(gx)
6530
+ const fx="underline",mx="outline",bx="block",wx="frameless",xx=fe`
6496
6531
  ${bn("inline-block")}
6497
6532
  ${Jp}
6498
6533
 
@@ -6664,12 +6699,12 @@ const gx="underline",vx="outline",fx="block",mx="frameless",bx=fe`
6664
6699
  slot[name='actions']::slotted(*) {
6665
6700
  ${ea.cssCustomProperty}: 24px;
6666
6701
  }
6667
- `.withBehaviors(zc(gx,fe`
6702
+ `.withBehaviors(zc(fx,fe`
6668
6703
  .root {
6669
6704
  border-bottom-width: ${na};
6670
6705
  padding-bottom: 0;
6671
6706
  }
6672
- `),zc(fx,fe`
6707
+ `),zc(bx,fe`
6673
6708
  .root {
6674
6709
  background-color: rgba(${jr}, 0.1);
6675
6710
  }
@@ -6697,12 +6732,12 @@ const gx="underline",vx="outline",fx="block",mx="frameless",bx=fe`
6697
6732
  :host([disabled]) .root {
6698
6733
  background-color: rgba(${jr}, 0.07);
6699
6734
  }
6700
- `),zc(vx,fe`
6735
+ `),zc(mx,fe`
6701
6736
  .root {
6702
6737
  border-width: ${na};
6703
6738
  padding: 0;
6704
6739
  }
6705
- `),zc(mx,fe`
6740
+ `),zc(wx,fe`
6706
6741
  .control {
6707
6742
  padding-left: ${na};
6708
6743
  padding-right: ${na};
@@ -6720,8 +6755,8 @@ const gx="underline",vx="outline",fx="block",mx="frameless",bx=fe`
6720
6755
  filter: invert(100%);
6721
6756
  }
6722
6757
  `))
6723
- class wx extends So{constructor(){super(...arguments),this.appearance=gx,this.errorVisible=!1,this.fullBleed=!1}}e([ne],wx.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],wx.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],wx.prototype,"errorVisible",void 0),e([ne({attribute:"full-bleed",mode:"boolean"})],wx.prototype,"fullBleed",void 0)
6724
- const xx=wx.compose({baseName:"text-field",baseClass:So,template:(e,t)=>G`
6758
+ class yx extends So{constructor(){super(...arguments),this.appearance=fx,this.errorVisible=!1,this.fullBleed=!1}}e([ne],yx.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],yx.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],yx.prototype,"errorVisible",void 0),e([ne({attribute:"full-bleed",mode:"boolean"})],yx.prototype,"fullBleed",void 0)
6759
+ const $x=yx.compose({baseName:"text-field",baseClass:So,template:(e,t)=>G`
6725
6760
  <template
6726
6761
  class="
6727
6762
  ${e=>e.readOnly?"readonly":""}
@@ -6781,7 +6816,7 @@ const xx=wx.compose({baseName:"text-field",baseClass:So,template:(e,t)=>G`
6781
6816
  ${Be(0,t)}
6782
6817
  </div>
6783
6818
  </template>
6784
- `,styles:bx,shadowOptions:{delegatesFocus:!0},end:G`
6819
+ `,styles:xx,shadowOptions:{delegatesFocus:!0},end:G`
6785
6820
  <${bp}
6786
6821
  severity="error"
6787
6822
  class="error-icon"
@@ -6791,8 +6826,8 @@ const xx=wx.compose({baseName:"text-field",baseClass:So,template:(e,t)=>G`
6791
6826
  </span>
6792
6827
  ${Up}
6793
6828
  `})
6794
- no.getOrCreate().withPrefix("nimble").register(xx()),no.tagFor(wx)
6795
- const yx=fe`
6829
+ no.getOrCreate().withPrefix("nimble").register($x()),no.tagFor(yx)
6830
+ const Cx=fe`
6796
6831
  .positioning-region {
6797
6832
  display: flex;
6798
6833
  padding: ${ia} ${oa};
@@ -6817,7 +6852,7 @@ const yx=fe`
6817
6852
  margin-left: auto;
6818
6853
  }
6819
6854
  `
6820
- class $x extends Yo{}const Cx=$x.compose({baseName:"toolbar",baseClass:Yo,template:(e,t)=>G`
6855
+ class kx extends Yo{}const Sx=kx.compose({baseName:"toolbar",baseClass:Yo,template:(e,t)=>G`
6821
6856
  <template
6822
6857
  aria-label="${e=>e.ariaLabel}"
6823
6858
  aria-labelledby="${e=>e.ariaLabelledby}"
@@ -6838,9 +6873,9 @@ class $x extends Yo{}const Cx=$x.compose({baseName:"toolbar",baseClass:Yo,templa
6838
6873
  ${Be(0,t)}
6839
6874
  </div>
6840
6875
  </template>
6841
- `,styles:yx,shadowOptions:{delegatesFocus:!0}})
6842
- no.getOrCreate().withPrefix("nimble").register(Cx()),no.tagFor($x)
6843
- const kx=fe`
6876
+ `,styles:Cx,shadowOptions:{delegatesFocus:!0}})
6877
+ no.getOrCreate().withPrefix("nimble").register(Sx()),no.tagFor(kx)
6878
+ const _x=fe`
6844
6879
  ${bn("inline-flex")}
6845
6880
 
6846
6881
  :host {
@@ -6925,7 +6960,7 @@ const kx=fe`
6925
6960
  .status-icon {
6926
6961
  opacity: 0.6;
6927
6962
  }
6928
- `)),Sx=G`
6963
+ `)),Ix=G`
6929
6964
  ${Ie((e=>e.tooltipVisible),G`
6930
6965
  <${cd}
6931
6966
  class="anchored-region"
@@ -6958,11 +6993,11 @@ const kx=fe`
6958
6993
  </${cd}>
6959
6994
  `)}
6960
6995
  `
6961
- class _x extends gn{constructor(){super(...arguments),this.iconVisible=!1}}e([ne],_x.prototype,"severity",void 0),e([ne({attribute:"icon-visible",mode:"boolean"})],_x.prototype,"iconVisible",void 0)
6962
- const Ix=_x.compose({baseName:"tooltip",baseClass:gn,template:Sx,styles:kx})
6963
- no.getOrCreate().withPrefix("nimble").register(Ix()),no.tagFor(_x)
6964
- const Rx="group-selected",Mx="all",Ax="leaves-only",Ox="none"
6965
- class Ex{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,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 Vx=fe`
6996
+ class Rx extends gn{constructor(){super(...arguments),this.iconVisible=!1}}e([ne],Rx.prototype,"severity",void 0),e([ne({attribute:"icon-visible",mode:"boolean"})],Rx.prototype,"iconVisible",void 0)
6997
+ const Mx=Rx.compose({baseName:"tooltip",baseClass:gn,template:Ix,styles:_x})
6998
+ no.getOrCreate().withPrefix("nimble").register(Mx()),no.tagFor(Rx)
6999
+ const Ax="group-selected",Ox="all",Ex="leaves-only",Vx="none"
7000
+ class Fx{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,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 Hx=fe`
6966
7001
  ${bn("block")}
6967
7002
 
6968
7003
  :host {
@@ -6978,7 +7013,7 @@ class Ex{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,this.attached=nu
6978
7013
  }
6979
7014
 
6980
7015
  ${""}
6981
- :host([${Rx}])::after {
7016
+ :host([${Ax}])::after {
6982
7017
  background: ${Kr};
6983
7018
  border-radius: 0px;
6984
7019
  content: '';
@@ -7000,7 +7035,7 @@ class Ex{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,this.attached=nu
7000
7035
  background: ${Zr};
7001
7036
  }
7002
7037
 
7003
- :host([${Rx}]) .positioning-region:hover {
7038
+ :host([${Ax}]) .positioning-region:hover {
7004
7039
  background: ${Nr};
7005
7040
  }
7006
7041
 
@@ -7111,7 +7146,7 @@ class Ex{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,this.attached=nu
7111
7146
  display: block;
7112
7147
  }
7113
7148
  `.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)
7114
- t&&Fr.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new Ex(this.ltr,this.rtl,e),i=Fr.getValueFor(e)
7149
+ t&&Fr.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new Fx(this.ltr,this.rtl,e),i=Fr.getValueFor(e)
7115
7150
  Fr.subscribe(t),t.attach(i),this.cache.set(e,t)}}(fe`
7116
7151
  .expand-collapse-button {
7117
7152
  left: var(
@@ -7143,8 +7178,8 @@ Fr.subscribe(t),t.attach(i),this.cache.set(e,t)}}(fe`
7143
7178
  transform: rotate(135deg);
7144
7179
  }
7145
7180
  `))
7146
- class Fx extends fn{constructor(){super(...arguments),this.groupSelected=!1}}e([ne({attribute:"group-selected",mode:"boolean"})],Fx.prototype,"groupSelected",void 0)
7147
- const Hx=Fx.compose({baseName:"tree-item",baseClass:fn,template:(e,t)=>G`
7181
+ class Px extends fn{constructor(){super(...arguments),this.groupSelected=!1}}e([ne({attribute:"group-selected",mode:"boolean"})],Px.prototype,"groupSelected",void 0)
7182
+ const Tx=Px.compose({baseName:"tree-item",baseClass:fn,template:(e,t)=>G`
7148
7183
  <template
7149
7184
  role="treeitem"
7150
7185
  slot="${e=>e.isNestedItem()?"item":void 0}"
@@ -7184,9 +7219,9 @@ const Hx=Fx.compose({baseName:"tree-item",baseClass:fn,template:(e,t)=>G`
7184
7219
  </div>
7185
7220
  `)}
7186
7221
  </template>
7187
- `,styles:Vx,expandCollapseGlyph:kd.data})
7188
- no.getOrCreate().withPrefix("nimble").register(Hx()),no.tagFor(Fx)
7189
- const Px=fe`
7222
+ `,styles:Hx,expandCollapseGlyph:kd.data})
7223
+ no.getOrCreate().withPrefix("nimble").register(Tx()),no.tagFor(Px)
7224
+ const Lx=fe`
7190
7225
  ${bn("flex")}
7191
7226
 
7192
7227
  :host {
@@ -7198,7 +7233,7 @@ const Px=fe`
7198
7233
  :host(${yn}) {
7199
7234
  outline: none;
7200
7235
  }
7201
- `,Tx=G`
7236
+ `,Dx=G`
7202
7237
  <template
7203
7238
  role="tree"
7204
7239
  ${_e("treeView")}
@@ -7212,273 +7247,273 @@ const Px=fe`
7212
7247
  <slot ${Te("slottedTreeItems")}></slot>
7213
7248
  </template>
7214
7249
  `
7215
- class Lx extends mn{constructor(){super(...arguments),this.selectionMode=Mx,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
7250
+ class zx extends mn{constructor(){super(...arguments),this.selectionMode=Ox,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
7216
7251
  if(!(e.target instanceof Element&&vn(e.target)))return!0
7217
7252
  const t=e.target
7218
- return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case Mx:return!0
7219
- case Ox:return!1
7220
- case Ax:return!this.itemHasChildren(e)
7221
- default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof Fx&&(e.groupSelected=!1)
7253
+ return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case Ox:return!0
7254
+ case Vx:return!1
7255
+ case Ex:return!this.itemHasChildren(e)
7256
+ default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof Px&&(e.groupSelected=!1)
7222
7257
  for(let e of this.selectedItems){for(;null!==e.parentElement&&e.parentElement!==this;)e=e.parentElement
7223
- e instanceof Fx&&(e.groupSelected=!0)}}}e([ne({attribute:"selection-mode"})],Lx.prototype,"selectionMode",void 0),e([f],Lx.prototype,"selectedItems",void 0)
7224
- const Dx=Lx.compose({baseName:"tree-view",baseClass:mn,template:Tx,styles:Px})
7225
- no.getOrCreate().withPrefix("nimble").register(Dx()),no.tagFor(Lx)
7226
- var zx={value:()=>{}}
7227
- function Bx(){for(var e,t=0,i=arguments.length,o={};t<i;++t){if(!(e=arguments[t]+"")||e in o||/[\s.]/.test(e))throw new Error("illegal type: "+e)
7228
- o[e]=[]}return new Nx(o)}function Nx(e){this._=e}function Zx(e,t){return e.trim().split(/^|\s+/).map((function(e){var i="",o=e.indexOf(".")
7258
+ e instanceof Px&&(e.groupSelected=!0)}}}e([ne({attribute:"selection-mode"})],zx.prototype,"selectionMode",void 0),e([f],zx.prototype,"selectedItems",void 0)
7259
+ const Bx=zx.compose({baseName:"tree-view",baseClass:mn,template:Dx,styles:Lx})
7260
+ no.getOrCreate().withPrefix("nimble").register(Bx()),no.tagFor(zx)
7261
+ var Nx={value:()=>{}}
7262
+ function Zx(){for(var e,t=0,i=arguments.length,o={};t<i;++t){if(!(e=arguments[t]+"")||e in o||/[\s.]/.test(e))throw new Error("illegal type: "+e)
7263
+ o[e]=[]}return new qx(o)}function qx(e){this._=e}function jx(e,t){return e.trim().split(/^|\s+/).map((function(e){var i="",o=e.indexOf(".")
7229
7264
  if(o>=0&&(i=e.slice(o+1),e=e.slice(0,o)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e)
7230
- return{type:e,name:i}}))}function qx(e,t){for(var i,o=0,n=e.length;o<n;++o)if((i=e[o]).name===t)return i.value}function jx(e,t,i){for(var o=0,n=e.length;o<n;++o)if(e[o].name===t){e[o]=zx,e=e.slice(0,o).concat(e.slice(o+1))
7231
- break}return null!=i&&e.push({name:t,value:i}),e}Nx.prototype=Bx.prototype={constructor:Nx,on:function(e,t){var i,o=this._,n=Zx(e+"",o),s=-1,r=n.length
7265
+ return{type:e,name:i}}))}function Ux(e,t){for(var i,o=0,n=e.length;o<n;++o)if((i=e[o]).name===t)return i.value}function Gx(e,t,i){for(var o=0,n=e.length;o<n;++o)if(e[o].name===t){e[o]=Nx,e=e.slice(0,o).concat(e.slice(o+1))
7266
+ break}return null!=i&&e.push({name:t,value:i}),e}qx.prototype=Zx.prototype={constructor:qx,on:function(e,t){var i,o=this._,n=jx(e+"",o),s=-1,r=n.length
7232
7267
  if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
7233
- for(;++s<r;)if(i=(e=n[s]).type)o[i]=jx(o[i],e.name,t)
7234
- else if(null==t)for(i in o)o[i]=jx(o[i],e.name,null)
7235
- return this}for(;++s<r;)if((i=(e=n[s]).type)&&(i=qx(o[i],e.name)))return i},copy:function(){var e={},t=this._
7268
+ for(;++s<r;)if(i=(e=n[s]).type)o[i]=Gx(o[i],e.name,t)
7269
+ else if(null==t)for(i in o)o[i]=Gx(o[i],e.name,null)
7270
+ return this}for(;++s<r;)if((i=(e=n[s]).type)&&(i=Ux(o[i],e.name)))return i},copy:function(){var e={},t=this._
7236
7271
  for(var i in t)e[i]=t[i].slice()
7237
- return new Nx(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var i,o,n=new Array(i),s=0;s<i;++s)n[s]=arguments[s+2]
7272
+ return new qx(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var i,o,n=new Array(i),s=0;s<i;++s)n[s]=arguments[s+2]
7238
7273
  if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
7239
7274
  for(s=0,i=(o=this._[e]).length;s<i;++s)o[s].value.apply(t,n)},apply:function(e,t,i){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
7240
7275
  for(var o=this._[e],n=0,s=o.length;n<s;++n)o[n].value.apply(t,i)}}
7241
- var Ux="http://www.w3.org/1999/xhtml",Gx={svg:"http://www.w3.org/2000/svg",xhtml:Ux,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
7242
- function Wx(e){var t=e+="",i=t.indexOf(":")
7243
- return i>=0&&"xmlns"!==(t=e.slice(0,i))&&(e=e.slice(i+1)),Gx.hasOwnProperty(t)?{space:Gx[t],local:e}:e}function Xx(e){return function(){var t=this.ownerDocument,i=this.namespaceURI
7244
- return i===Ux&&t.documentElement.namespaceURI===Ux?t.createElement(e):t.createElementNS(i,e)}}function Kx(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Yx(e){var t=Wx(e)
7245
- return(t.local?Kx:Xx)(t)}function Qx(){}function Jx(e){return null==e?Qx:function(){return this.querySelector(e)}}function ey(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function ty(){return[]}function iy(e){return null==e?ty:function(){return this.querySelectorAll(e)}}function oy(e){return function(){return this.matches(e)}}function ny(e){return function(t){return t.matches(e)}}var sy=Array.prototype.find
7246
- function ry(){return this.firstElementChild}var ay=Array.prototype.filter
7247
- function ly(){return Array.from(this.children)}function cy(e){return new Array(e.length)}function dy(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function hy(e){return function(){return e}}function uy(e,t,i,o,n,s){for(var r,a=0,l=t.length,c=s.length;a<c;++a)(r=t[a])?(r.__data__=s[a],o[a]=r):i[a]=new dy(e,s[a])
7248
- for(;a<l;++a)(r=t[a])&&(n[a]=r)}function py(e,t,i,o,n,s,r){var a,l,c,d=new Map,h=t.length,u=s.length,p=new Array(h)
7276
+ var Wx="http://www.w3.org/1999/xhtml",Xx={svg:"http://www.w3.org/2000/svg",xhtml:Wx,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
7277
+ function Kx(e){var t=e+="",i=t.indexOf(":")
7278
+ return i>=0&&"xmlns"!==(t=e.slice(0,i))&&(e=e.slice(i+1)),Xx.hasOwnProperty(t)?{space:Xx[t],local:e}:e}function Yx(e){return function(){var t=this.ownerDocument,i=this.namespaceURI
7279
+ return i===Wx&&t.documentElement.namespaceURI===Wx?t.createElement(e):t.createElementNS(i,e)}}function Qx(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Jx(e){var t=Kx(e)
7280
+ return(t.local?Qx:Yx)(t)}function ey(){}function ty(e){return null==e?ey:function(){return this.querySelector(e)}}function iy(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function oy(){return[]}function ny(e){return null==e?oy:function(){return this.querySelectorAll(e)}}function sy(e){return function(){return this.matches(e)}}function ry(e){return function(t){return t.matches(e)}}var ay=Array.prototype.find
7281
+ function ly(){return this.firstElementChild}var cy=Array.prototype.filter
7282
+ function dy(){return Array.from(this.children)}function hy(e){return new Array(e.length)}function uy(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function py(e){return function(){return e}}function gy(e,t,i,o,n,s){for(var r,a=0,l=t.length,c=s.length;a<c;++a)(r=t[a])?(r.__data__=s[a],o[a]=r):i[a]=new uy(e,s[a])
7283
+ for(;a<l;++a)(r=t[a])&&(n[a]=r)}function vy(e,t,i,o,n,s,r){var a,l,c,d=new Map,h=t.length,u=s.length,p=new Array(h)
7249
7284
  for(a=0;a<h;++a)(l=t[a])&&(p[a]=c=r.call(l,l.__data__,a,t)+"",d.has(c)?n[a]=l:d.set(c,l))
7250
- for(a=0;a<u;++a)c=r.call(e,s[a],a,s)+"",(l=d.get(c))?(o[a]=l,l.__data__=s[a],d.delete(c)):i[a]=new dy(e,s[a])
7251
- for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(n[a]=l)}function gy(e){return e.__data__}function vy(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function fy(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function my(e){return function(){this.removeAttribute(e)}}function by(e){return function(){this.removeAttributeNS(e.space,e.local)}}function wy(e,t){return function(){this.setAttribute(e,t)}}function xy(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function yy(e,t){return function(){var i=t.apply(this,arguments)
7252
- null==i?this.removeAttribute(e):this.setAttribute(e,i)}}function $y(e,t){return function(){var i=t.apply(this,arguments)
7253
- null==i?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,i)}}function Cy(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ky(e){return function(){this.style.removeProperty(e)}}function Sy(e,t,i){return function(){this.style.setProperty(e,t,i)}}function _y(e,t,i){return function(){var o=t.apply(this,arguments)
7254
- null==o?this.style.removeProperty(e):this.style.setProperty(e,o,i)}}function Iy(e,t){return e.style.getPropertyValue(t)||Cy(e).getComputedStyle(e,null).getPropertyValue(t)}function Ry(e){return function(){delete this[e]}}function My(e,t){return function(){this[e]=t}}function Ay(e,t){return function(){var i=t.apply(this,arguments)
7255
- null==i?delete this[e]:this[e]=i}}function Oy(e){return e.trim().split(/^|\s+/)}function Ey(e){return e.classList||new Vy(e)}function Vy(e){this._node=e,this._names=Oy(e.getAttribute("class")||"")}function Fy(e,t){for(var i=Ey(e),o=-1,n=t.length;++o<n;)i.add(t[o])}function Hy(e,t){for(var i=Ey(e),o=-1,n=t.length;++o<n;)i.remove(t[o])}function Py(e){return function(){Fy(this,e)}}function Ty(e){return function(){Hy(this,e)}}function Ly(e,t){return function(){(t.apply(this,arguments)?Fy:Hy)(this,e)}}function Dy(){this.textContent=""}function zy(e){return function(){this.textContent=e}}function By(e){return function(){var t=e.apply(this,arguments)
7256
- this.textContent=null==t?"":t}}function Ny(){this.innerHTML=""}function Zy(e){return function(){this.innerHTML=e}}function qy(e){return function(){var t=e.apply(this,arguments)
7257
- this.innerHTML=null==t?"":t}}function jy(){this.nextSibling&&this.parentNode.appendChild(this)}function Uy(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Gy(){return null}function Wy(){var e=this.parentNode
7258
- e&&e.removeChild(this)}function Xy(){var e=this.cloneNode(!1),t=this.parentNode
7259
- return t?t.insertBefore(e,this.nextSibling):e}function Ky(){var e=this.cloneNode(!0),t=this.parentNode
7260
- return t?t.insertBefore(e,this.nextSibling):e}function Yy(e){return e.trim().split(/^|\s+/).map((function(e){var t="",i=e.indexOf(".")
7261
- return i>=0&&(t=e.slice(i+1),e=e.slice(0,i)),{type:e,name:t}}))}function Qy(e){return function(){var t=this.__on
7262
- if(t){for(var i,o=0,n=-1,s=t.length;o<s;++o)i=t[o],e.type&&i.type!==e.type||i.name!==e.name?t[++n]=i:this.removeEventListener(i.type,i.listener,i.options);++n?t.length=n:delete this.__on}}}function Jy(e,t,i){return function(){var o,n=this.__on,s=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
7285
+ for(a=0;a<u;++a)c=r.call(e,s[a],a,s)+"",(l=d.get(c))?(o[a]=l,l.__data__=s[a],d.delete(c)):i[a]=new uy(e,s[a])
7286
+ for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(n[a]=l)}function fy(e){return e.__data__}function my(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function by(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function wy(e){return function(){this.removeAttribute(e)}}function xy(e){return function(){this.removeAttributeNS(e.space,e.local)}}function yy(e,t){return function(){this.setAttribute(e,t)}}function $y(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Cy(e,t){return function(){var i=t.apply(this,arguments)
7287
+ null==i?this.removeAttribute(e):this.setAttribute(e,i)}}function ky(e,t){return function(){var i=t.apply(this,arguments)
7288
+ null==i?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,i)}}function Sy(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function _y(e){return function(){this.style.removeProperty(e)}}function Iy(e,t,i){return function(){this.style.setProperty(e,t,i)}}function Ry(e,t,i){return function(){var o=t.apply(this,arguments)
7289
+ null==o?this.style.removeProperty(e):this.style.setProperty(e,o,i)}}function My(e,t){return e.style.getPropertyValue(t)||Sy(e).getComputedStyle(e,null).getPropertyValue(t)}function Ay(e){return function(){delete this[e]}}function Oy(e,t){return function(){this[e]=t}}function Ey(e,t){return function(){var i=t.apply(this,arguments)
7290
+ null==i?delete this[e]:this[e]=i}}function Vy(e){return e.trim().split(/^|\s+/)}function Fy(e){return e.classList||new Hy(e)}function Hy(e){this._node=e,this._names=Vy(e.getAttribute("class")||"")}function Py(e,t){for(var i=Fy(e),o=-1,n=t.length;++o<n;)i.add(t[o])}function Ty(e,t){for(var i=Fy(e),o=-1,n=t.length;++o<n;)i.remove(t[o])}function Ly(e){return function(){Py(this,e)}}function Dy(e){return function(){Ty(this,e)}}function zy(e,t){return function(){(t.apply(this,arguments)?Py:Ty)(this,e)}}function By(){this.textContent=""}function Ny(e){return function(){this.textContent=e}}function Zy(e){return function(){var t=e.apply(this,arguments)
7291
+ this.textContent=null==t?"":t}}function qy(){this.innerHTML=""}function jy(e){return function(){this.innerHTML=e}}function Uy(e){return function(){var t=e.apply(this,arguments)
7292
+ this.innerHTML=null==t?"":t}}function Gy(){this.nextSibling&&this.parentNode.appendChild(this)}function Wy(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Xy(){return null}function Ky(){var e=this.parentNode
7293
+ e&&e.removeChild(this)}function Yy(){var e=this.cloneNode(!1),t=this.parentNode
7294
+ return t?t.insertBefore(e,this.nextSibling):e}function Qy(){var e=this.cloneNode(!0),t=this.parentNode
7295
+ return t?t.insertBefore(e,this.nextSibling):e}function Jy(e){return e.trim().split(/^|\s+/).map((function(e){var t="",i=e.indexOf(".")
7296
+ return i>=0&&(t=e.slice(i+1),e=e.slice(0,i)),{type:e,name:t}}))}function e$(e){return function(){var t=this.__on
7297
+ if(t){for(var i,o=0,n=-1,s=t.length;o<s;++o)i=t[o],e.type&&i.type!==e.type||i.name!==e.name?t[++n]=i:this.removeEventListener(i.type,i.listener,i.options);++n?t.length=n:delete this.__on}}}function t$(e,t,i){return function(){var o,n=this.__on,s=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
7263
7298
  if(n)for(var r=0,a=n.length;r<a;++r)if((o=n[r]).type===e.type&&o.name===e.name)return this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=s,o.options=i),void(o.value=t)
7264
- this.addEventListener(e.type,s,i),o={type:e.type,name:e.name,value:t,listener:s,options:i},n?n.push(o):this.__on=[o]}}function e$(e,t,i){var o=Cy(e),n=o.CustomEvent
7265
- "function"==typeof n?n=new n(t,i):(n=o.document.createEvent("Event"),i?(n.initEvent(t,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function t$(e,t){return function(){return e$(this,e,t)}}function i$(e,t){return function(){return e$(this,e,t.apply(this,arguments))}}dy.prototype={constructor:dy,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)}},Vy.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)
7299
+ this.addEventListener(e.type,s,i),o={type:e.type,name:e.name,value:t,listener:s,options:i},n?n.push(o):this.__on=[o]}}function i$(e,t,i){var o=Sy(e),n=o.CustomEvent
7300
+ "function"==typeof n?n=new n(t,i):(n=o.document.createEvent("Event"),i?(n.initEvent(t,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function o$(e,t){return function(){return i$(this,e,t)}}function n$(e,t){return function(){return i$(this,e,t.apply(this,arguments))}}uy.prototype={constructor:uy,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)}},Hy.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)
7266
7301
  t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
7267
- var o$=[null]
7268
- function n$(e,t){this._groups=e,this._parents=t}function s$(){return new n$([[document.documentElement]],o$)}function r$(e){return"string"==typeof e?new n$([[document.querySelector(e)]],[document.documentElement]):new n$([[e]],o$)}function a$(e,t){if(e=function(e){let t
7302
+ var s$=[null]
7303
+ function r$(e,t){this._groups=e,this._parents=t}function a$(){return new r$([[document.documentElement]],s$)}function l$(e){return"string"==typeof e?new r$([[document.querySelector(e)]],[document.documentElement]):new r$([[e]],s$)}function c$(e,t){if(e=function(e){let t
7269
7304
  for(;t=e.sourceEvent;)e=t
7270
7305
  return e}(e),void 0===t&&(t=e.currentTarget),t){var i=t.ownerSVGElement||t
7271
7306
  if(i.createSVGPoint){var o=i.createSVGPoint()
7272
7307
  return o.x=e.clientX,o.y=e.clientY,[(o=o.matrixTransform(t.getScreenCTM().inverse())).x,o.y]}if(t.getBoundingClientRect){var n=t.getBoundingClientRect()
7273
- return[e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop]}}return[e.pageX,e.pageY]}n$.prototype=s$.prototype={constructor:n$,select:function(e){"function"!=typeof e&&(e=Jx(e))
7308
+ return[e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop]}}return[e.pageX,e.pageY]}r$.prototype=a$.prototype={constructor:r$,select:function(e){"function"!=typeof e&&(e=ty(e))
7274
7309
  for(var t=this._groups,i=t.length,o=new Array(i),n=0;n<i;++n)for(var s,r,a=t[n],l=a.length,c=o[n]=new Array(l),d=0;d<l;++d)(s=a[d])&&(r=e.call(s,s.__data__,d,a))&&("__data__"in s&&(r.__data__=s.__data__),c[d]=r)
7275
- return new n$(o,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return ey(e.apply(this,arguments))}}(e):iy(e)
7310
+ return new r$(o,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return iy(e.apply(this,arguments))}}(e):ny(e)
7276
7311
  for(var t=this._groups,i=t.length,o=[],n=[],s=0;s<i;++s)for(var r,a=t[s],l=a.length,c=0;c<l;++c)(r=a[c])&&(o.push(e.call(r,r.__data__,c,a)),n.push(r))
7277
- return new n$(o,n)},selectChild:function(e){return this.select(null==e?ry:function(e){return function(){return sy.call(this.children,e)}}("function"==typeof e?e:ny(e)))},selectChildren:function(e){return this.selectAll(null==e?ly:function(e){return function(){return ay.call(this.children,e)}}("function"==typeof e?e:ny(e)))},filter:function(e){"function"!=typeof e&&(e=oy(e))
7312
+ return new r$(o,n)},selectChild:function(e){return this.select(null==e?ly:function(e){return function(){return ay.call(this.children,e)}}("function"==typeof e?e:ry(e)))},selectChildren:function(e){return this.selectAll(null==e?dy:function(e){return function(){return cy.call(this.children,e)}}("function"==typeof e?e:ry(e)))},filter:function(e){"function"!=typeof e&&(e=sy(e))
7278
7313
  for(var t=this._groups,i=t.length,o=new Array(i),n=0;n<i;++n)for(var s,r=t[n],a=r.length,l=o[n]=[],c=0;c<a;++c)(s=r[c])&&e.call(s,s.__data__,c,r)&&l.push(s)
7279
- return new n$(o,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,gy)
7280
- var i=t?py:uy,o=this._parents,n=this._groups
7281
- "function"!=typeof e&&(e=hy(e))
7282
- for(var s=n.length,r=new Array(s),a=new Array(s),l=new Array(s),c=0;c<s;++c){var d=o[c],h=n[c],u=h.length,p=vy(e.call(d,d&&d.__data__,c,o)),g=p.length,v=a[c]=new Array(g),f=r[c]=new Array(g),m=l[c]=new Array(u)
7314
+ return new r$(o,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,fy)
7315
+ var i=t?vy:gy,o=this._parents,n=this._groups
7316
+ "function"!=typeof e&&(e=py(e))
7317
+ for(var s=n.length,r=new Array(s),a=new Array(s),l=new Array(s),c=0;c<s;++c){var d=o[c],h=n[c],u=h.length,p=my(e.call(d,d&&d.__data__,c,o)),g=p.length,v=a[c]=new Array(g),f=r[c]=new Array(g),m=l[c]=new Array(u)
7283
7318
  i(d,h,v,f,m,p,t)
7284
- for(var b,w,x=0,y=0;x<g;++x)if(b=v[x]){for(x>=y&&(y=x+1);!(w=f[y])&&++y<g;);b._next=w||null}}return(r=new n$(r,o))._enter=a,r._exit=l,r},enter:function(){return new n$(this._enter||this._groups.map(cy),this._parents)},exit:function(){return new n$(this._exit||this._groups.map(cy),this._parents)},join:function(e,t,i){var o=this.enter(),n=this,s=this.exit()
7319
+ for(var b,w,x=0,y=0;x<g;++x)if(b=v[x]){for(x>=y&&(y=x+1);!(w=f[y])&&++y<g;);b._next=w||null}}return(r=new r$(r,o))._enter=a,r._exit=l,r},enter:function(){return new r$(this._enter||this._groups.map(hy),this._parents)},exit:function(){return new r$(this._exit||this._groups.map(hy),this._parents)},join:function(e,t,i){var o=this.enter(),n=this,s=this.exit()
7285
7320
  return"function"==typeof e?(o=e(o))&&(o=o.selection()):o=o.append(e+""),null!=t&&(n=t(n))&&(n=n.selection()),null==i?s.remove():i(s),o&&n?o.merge(n).order():n},merge:function(e){for(var t=e.selection?e.selection():e,i=this._groups,o=t._groups,n=i.length,s=o.length,r=Math.min(n,s),a=new Array(n),l=0;l<r;++l)for(var c,d=i[l],h=o[l],u=d.length,p=a[l]=new Array(u),g=0;g<u;++g)(c=d[g]||h[g])&&(p[g]=c)
7286
7321
  for(;l<n;++l)a[l]=i[l]
7287
- return new n$(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,i=e.length;++t<i;)for(var o,n=e[t],s=n.length-1,r=n[s];--s>=0;)(o=n[s])&&(r&&4^o.compareDocumentPosition(r)&&r.parentNode.insertBefore(o,r),r=o)
7288
- return this},sort:function(e){function t(t,i){return t&&i?e(t.__data__,i.__data__):!t-!i}e||(e=fy)
7322
+ return new r$(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,i=e.length;++t<i;)for(var o,n=e[t],s=n.length-1,r=n[s];--s>=0;)(o=n[s])&&(r&&4^o.compareDocumentPosition(r)&&r.parentNode.insertBefore(o,r),r=o)
7323
+ return this},sort:function(e){function t(t,i){return t&&i?e(t.__data__,i.__data__):!t-!i}e||(e=by)
7289
7324
  for(var i=this._groups,o=i.length,n=new Array(o),s=0;s<o;++s){for(var r,a=i[s],l=a.length,c=n[s]=new Array(l),d=0;d<l;++d)(r=a[d])&&(c[d]=r)
7290
- c.sort(t)}return new n$(n,this._parents).order()},call:function(){var e=arguments[0]
7325
+ c.sort(t)}return new r$(n,this._parents).order()},call:function(){var e=arguments[0]
7291
7326
  return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var o=e[t],n=0,s=o.length;n<s;++n){var r=o[n]
7292
7327
  if(r)return r}return null},size:function(){let e=0
7293
7328
  for(const t of this)++e
7294
7329
  return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,i=0,o=t.length;i<o;++i)for(var n,s=t[i],r=0,a=s.length;r<a;++r)(n=s[r])&&e.call(n,n.__data__,r,s)
7295
- return this},attr:function(e,t){var i=Wx(e)
7330
+ return this},attr:function(e,t){var i=Kx(e)
7296
7331
  if(arguments.length<2){var o=this.node()
7297
- return i.local?o.getAttributeNS(i.space,i.local):o.getAttribute(i)}return this.each((null==t?i.local?by:my:"function"==typeof t?i.local?$y:yy:i.local?xy:wy)(i,t))},style:function(e,t,i){return arguments.length>1?this.each((null==t?ky:"function"==typeof t?_y:Sy)(e,t,null==i?"":i)):Iy(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Ry:"function"==typeof t?Ay:My)(e,t)):this.node()[e]},classed:function(e,t){var i=Oy(e+"")
7298
- if(arguments.length<2){for(var o=Ey(this.node()),n=-1,s=i.length;++n<s;)if(!o.contains(i[n]))return!1
7299
- return!0}return this.each(("function"==typeof t?Ly:t?Py:Ty)(i,t))},text:function(e){return arguments.length?this.each(null==e?Dy:("function"==typeof e?By:zy)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Ny:("function"==typeof e?qy:Zy)(e)):this.node().innerHTML},raise:function(){return this.each(jy)},lower:function(){return this.each(Uy)},append:function(e){var t="function"==typeof e?e:Yx(e)
7300
- return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var i="function"==typeof e?e:Yx(e),o=null==t?Gy:"function"==typeof t?t:Jx(t)
7301
- return this.select((function(){return this.insertBefore(i.apply(this,arguments),o.apply(this,arguments)||null)}))},remove:function(){return this.each(Wy)},clone:function(e){return this.select(e?Ky:Xy)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,i){var o,n,s=Yy(e+""),r=s.length
7302
- if(!(arguments.length<2)){for(a=t?Jy:Qy,o=0;o<r;++o)this.each(a(s[o],t,i))
7332
+ return i.local?o.getAttributeNS(i.space,i.local):o.getAttribute(i)}return this.each((null==t?i.local?xy:wy:"function"==typeof t?i.local?ky:Cy:i.local?$y:yy)(i,t))},style:function(e,t,i){return arguments.length>1?this.each((null==t?_y:"function"==typeof t?Ry:Iy)(e,t,null==i?"":i)):My(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Ay:"function"==typeof t?Ey:Oy)(e,t)):this.node()[e]},classed:function(e,t){var i=Vy(e+"")
7333
+ if(arguments.length<2){for(var o=Fy(this.node()),n=-1,s=i.length;++n<s;)if(!o.contains(i[n]))return!1
7334
+ return!0}return this.each(("function"==typeof t?zy:t?Ly:Dy)(i,t))},text:function(e){return arguments.length?this.each(null==e?By:("function"==typeof e?Zy:Ny)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?qy:("function"==typeof e?Uy:jy)(e)):this.node().innerHTML},raise:function(){return this.each(Gy)},lower:function(){return this.each(Wy)},append:function(e){var t="function"==typeof e?e:Jx(e)
7335
+ return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var i="function"==typeof e?e:Jx(e),o=null==t?Xy:"function"==typeof t?t:ty(t)
7336
+ return this.select((function(){return this.insertBefore(i.apply(this,arguments),o.apply(this,arguments)||null)}))},remove:function(){return this.each(Ky)},clone:function(e){return this.select(e?Qy:Yy)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,i){var o,n,s=Jy(e+""),r=s.length
7337
+ if(!(arguments.length<2)){for(a=t?t$:e$,o=0;o<r;++o)this.each(a(s[o],t,i))
7303
7338
  return this}var a=this.node().__on
7304
- if(a)for(var l,c=0,d=a.length;c<d;++c)for(o=0,l=a[c];o<r;++o)if((n=s[o]).type===l.type&&n.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?i$:t$)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var o,n=e[t],s=0,r=n.length;s<r;++s)(o=n[s])&&(yield o)}}
7305
- const l$={capture:!0,passive:!1}
7306
- function c$(e){e.preventDefault(),e.stopImmediatePropagation()}function d$(e){var t=e.document.documentElement,i=r$(e).on("dragstart.drag",c$,l$)
7307
- "onselectstart"in t?i.on("selectstart.drag",c$,l$):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function h$(e,t){var i=e.document.documentElement,o=r$(e).on("dragstart.drag",null)
7308
- t&&(o.on("click.drag",c$,l$),setTimeout((function(){o.on("click.drag",null)}),0)),"onselectstart"in i?o.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}function u$(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function p$(e,t){var i=Object.create(e.prototype)
7339
+ if(a)for(var l,c=0,d=a.length;c<d;++c)for(o=0,l=a[c];o<r;++o)if((n=s[o]).type===l.type&&n.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?n$:o$)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var o,n=e[t],s=0,r=n.length;s<r;++s)(o=n[s])&&(yield o)}}
7340
+ const d$={capture:!0,passive:!1}
7341
+ function h$(e){e.preventDefault(),e.stopImmediatePropagation()}function u$(e){var t=e.document.documentElement,i=l$(e).on("dragstart.drag",h$,d$)
7342
+ "onselectstart"in t?i.on("selectstart.drag",h$,d$):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function p$(e,t){var i=e.document.documentElement,o=l$(e).on("dragstart.drag",null)
7343
+ t&&(o.on("click.drag",h$,d$),setTimeout((function(){o.on("click.drag",null)}),0)),"onselectstart"in i?o.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}function g$(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function v$(e,t){var i=Object.create(e.prototype)
7309
7344
  for(var o in t)i[o]=t[o]
7310
- return i}function g$(){}var v$=.7,f$=1/v$,m$="\\s*([+-]?\\d+)\\s*",b$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",w$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",x$=/^#([0-9a-f]{3,8})$/,y$=new RegExp(`^rgb\\(${m$},${m$},${m$}\\)$`),$$=new RegExp(`^rgb\\(${w$},${w$},${w$}\\)$`),C$=new RegExp(`^rgba\\(${m$},${m$},${m$},${b$}\\)$`),k$=new RegExp(`^rgba\\(${w$},${w$},${w$},${b$}\\)$`),S$=new RegExp(`^hsl\\(${b$},${w$},${w$}\\)$`),_$=new RegExp(`^hsla\\(${b$},${w$},${w$},${b$}\\)$`),I$={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}
7311
- function R$(){return this.rgb().formatHex()}function M$(){return this.rgb().formatRgb()}function A$(e){var t,i
7312
- return e=(e+"").trim().toLowerCase(),(t=x$.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?O$(t):3===i?new H$(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?E$(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?E$(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=y$.exec(e))?new H$(t[1],t[2],t[3],1):(t=$$.exec(e))?new H$(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=C$.exec(e))?E$(t[1],t[2],t[3],t[4]):(t=k$.exec(e))?E$(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=S$.exec(e))?B$(t[1],t[2]/100,t[3]/100,1):(t=_$.exec(e))?B$(t[1],t[2]/100,t[3]/100,t[4]):I$.hasOwnProperty(e)?O$(I$[e]):"transparent"===e?new H$(NaN,NaN,NaN,0):null}function O$(e){return new H$(e>>16&255,e>>8&255,255&e,1)}function E$(e,t,i,o){return o<=0&&(e=t=i=NaN),new H$(e,t,i,o)}function V$(e){return e instanceof g$||(e=A$(e)),e?new H$((e=e.rgb()).r,e.g,e.b,e.opacity):new H$}function F$(e,t,i,o){return 1===arguments.length?V$(e):new H$(e,t,i,null==o?1:o)}function H$(e,t,i,o){this.r=+e,this.g=+t,this.b=+i,this.opacity=+o}function P$(){return`#${z$(this.r)}${z$(this.g)}${z$(this.b)}`}function T$(){const e=L$(this.opacity)
7313
- return`${1===e?"rgb(":"rgba("}${D$(this.r)}, ${D$(this.g)}, ${D$(this.b)}${1===e?")":`, ${e})`}`}function L$(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function D$(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function z$(e){return((e=D$(e))<16?"0":"")+e.toString(16)}function B$(e,t,i,o){return o<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new Z$(e,t,i,o)}function N$(e){if(e instanceof Z$)return new Z$(e.h,e.s,e.l,e.opacity)
7314
- if(e instanceof g$||(e=A$(e)),!e)return new Z$
7315
- if(e instanceof Z$)return e
7345
+ return i}function f$(){}var m$=.7,b$=1/m$,w$="\\s*([+-]?\\d+)\\s*",x$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",y$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$$=/^#([0-9a-f]{3,8})$/,C$=new RegExp(`^rgb\\(${w$},${w$},${w$}\\)$`),k$=new RegExp(`^rgb\\(${y$},${y$},${y$}\\)$`),S$=new RegExp(`^rgba\\(${w$},${w$},${w$},${x$}\\)$`),_$=new RegExp(`^rgba\\(${y$},${y$},${y$},${x$}\\)$`),I$=new RegExp(`^hsl\\(${x$},${y$},${y$}\\)$`),R$=new RegExp(`^hsla\\(${x$},${y$},${y$},${x$}\\)$`),M$={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}
7346
+ function A$(){return this.rgb().formatHex()}function O$(){return this.rgb().formatRgb()}function E$(e){var t,i
7347
+ return e=(e+"").trim().toLowerCase(),(t=$$.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?V$(t):3===i?new T$(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?F$(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?F$(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=C$.exec(e))?new T$(t[1],t[2],t[3],1):(t=k$.exec(e))?new T$(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=S$.exec(e))?F$(t[1],t[2],t[3],t[4]):(t=_$.exec(e))?F$(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=I$.exec(e))?Z$(t[1],t[2]/100,t[3]/100,1):(t=R$.exec(e))?Z$(t[1],t[2]/100,t[3]/100,t[4]):M$.hasOwnProperty(e)?V$(M$[e]):"transparent"===e?new T$(NaN,NaN,NaN,0):null}function V$(e){return new T$(e>>16&255,e>>8&255,255&e,1)}function F$(e,t,i,o){return o<=0&&(e=t=i=NaN),new T$(e,t,i,o)}function H$(e){return e instanceof f$||(e=E$(e)),e?new T$((e=e.rgb()).r,e.g,e.b,e.opacity):new T$}function P$(e,t,i,o){return 1===arguments.length?H$(e):new T$(e,t,i,null==o?1:o)}function T$(e,t,i,o){this.r=+e,this.g=+t,this.b=+i,this.opacity=+o}function L$(){return`#${N$(this.r)}${N$(this.g)}${N$(this.b)}`}function D$(){const e=z$(this.opacity)
7348
+ return`${1===e?"rgb(":"rgba("}${B$(this.r)}, ${B$(this.g)}, ${B$(this.b)}${1===e?")":`, ${e})`}`}function z$(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function B$(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function N$(e){return((e=B$(e))<16?"0":"")+e.toString(16)}function Z$(e,t,i,o){return o<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new j$(e,t,i,o)}function q$(e){if(e instanceof j$)return new j$(e.h,e.s,e.l,e.opacity)
7349
+ if(e instanceof f$||(e=E$(e)),!e)return new j$
7350
+ if(e instanceof j$)return e
7316
7351
  var t=(e=e.rgb()).r/255,i=e.g/255,o=e.b/255,n=Math.min(t,i,o),s=Math.max(t,i,o),r=NaN,a=s-n,l=(s+n)/2
7317
- return a?(r=t===s?(i-o)/a+6*(i<o):i===s?(o-t)/a+2:(t-i)/a+4,a/=l<.5?s+n:2-s-n,r*=60):a=l>0&&l<1?0:r,new Z$(r,a,l,e.opacity)}function Z$(e,t,i,o){this.h=+e,this.s=+t,this.l=+i,this.opacity=+o}function q$(e){return(e=(e||0)%360)<0?e+360:e}function j$(e){return Math.max(0,Math.min(1,e||0))}function U$(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}u$(g$,A$,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:R$,formatHex:R$,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return N$(this).formatHsl()},formatRgb:M$,toString:M$}),u$(H$,F$,p$(g$,{brighter(e){return e=null==e?f$:Math.pow(f$,e),new H$(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?v$:Math.pow(v$,e),new H$(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new H$(D$(this.r),D$(this.g),D$(this.b),L$(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:P$,formatHex:P$,formatHex8:function(){return`#${z$(this.r)}${z$(this.g)}${z$(this.b)}${z$(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:T$,toString:T$})),u$(Z$,(function(e,t,i,o){return 1===arguments.length?N$(e):new Z$(e,t,i,null==o?1:o)}),p$(g$,{brighter(e){return e=null==e?f$:Math.pow(f$,e),new Z$(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?v$:Math.pow(v$,e),new Z$(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,i=this.l,o=i+(i<.5?i:1-i)*t,n=2*i-o
7318
- return new H$(U$(e>=240?e-240:e+120,n,o),U$(e,n,o),U$(e<120?e+240:e-120,n,o),this.opacity)},clamp(){return new Z$(q$(this.h),j$(this.s),j$(this.l),L$(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=L$(this.opacity)
7319
- return`${1===e?"hsl(":"hsla("}${q$(this.h)}, ${100*j$(this.s)}%, ${100*j$(this.l)}%${1===e?")":`, ${e})`}`}}))
7320
- var G$=e=>()=>e
7321
- function W$(e){return 1==(e=+e)?X$:function(t,i){return i-t?function(e,t,i){return e=Math.pow(e,i),t=Math.pow(t,i)-e,i=1/i,function(o){return Math.pow(e+o*t,i)}}(t,i,e):G$(isNaN(t)?i:t)}}function X$(e,t){var i=t-e
7322
- return i?function(e,t){return function(i){return e+i*t}}(e,i):G$(isNaN(e)?t:e)}var K$=function e(t){var i=W$(t)
7323
- function o(e,t){var o=i((e=F$(e)).r,(t=F$(t)).r),n=i(e.g,t.g),s=i(e.b,t.b),r=X$(e.opacity,t.opacity)
7352
+ return a?(r=t===s?(i-o)/a+6*(i<o):i===s?(o-t)/a+2:(t-i)/a+4,a/=l<.5?s+n:2-s-n,r*=60):a=l>0&&l<1?0:r,new j$(r,a,l,e.opacity)}function j$(e,t,i,o){this.h=+e,this.s=+t,this.l=+i,this.opacity=+o}function U$(e){return(e=(e||0)%360)<0?e+360:e}function G$(e){return Math.max(0,Math.min(1,e||0))}function W$(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}g$(f$,E$,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:A$,formatHex:A$,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return q$(this).formatHsl()},formatRgb:O$,toString:O$}),g$(T$,P$,v$(f$,{brighter(e){return e=null==e?b$:Math.pow(b$,e),new T$(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?m$:Math.pow(m$,e),new T$(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new T$(B$(this.r),B$(this.g),B$(this.b),z$(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:L$,formatHex:L$,formatHex8:function(){return`#${N$(this.r)}${N$(this.g)}${N$(this.b)}${N$(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:D$,toString:D$})),g$(j$,(function(e,t,i,o){return 1===arguments.length?q$(e):new j$(e,t,i,null==o?1:o)}),v$(f$,{brighter(e){return e=null==e?b$:Math.pow(b$,e),new j$(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?m$:Math.pow(m$,e),new j$(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,i=this.l,o=i+(i<.5?i:1-i)*t,n=2*i-o
7353
+ return new T$(W$(e>=240?e-240:e+120,n,o),W$(e,n,o),W$(e<120?e+240:e-120,n,o),this.opacity)},clamp(){return new j$(U$(this.h),G$(this.s),G$(this.l),z$(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=z$(this.opacity)
7354
+ return`${1===e?"hsl(":"hsla("}${U$(this.h)}, ${100*G$(this.s)}%, ${100*G$(this.l)}%${1===e?")":`, ${e})`}`}}))
7355
+ var X$=e=>()=>e
7356
+ function K$(e){return 1==(e=+e)?Y$:function(t,i){return i-t?function(e,t,i){return e=Math.pow(e,i),t=Math.pow(t,i)-e,i=1/i,function(o){return Math.pow(e+o*t,i)}}(t,i,e):X$(isNaN(t)?i:t)}}function Y$(e,t){var i=t-e
7357
+ return i?function(e,t){return function(i){return e+i*t}}(e,i):X$(isNaN(e)?t:e)}var Q$=function e(t){var i=K$(t)
7358
+ function o(e,t){var o=i((e=P$(e)).r,(t=P$(t)).r),n=i(e.g,t.g),s=i(e.b,t.b),r=Y$(e.opacity,t.opacity)
7324
7359
  return function(t){return e.r=o(t),e.g=n(t),e.b=s(t),e.opacity=r(t),e+""}}return o.gamma=e,o}(1)
7325
- function Y$(e,t){t||(t=[])
7360
+ function J$(e,t){t||(t=[])
7326
7361
  var i,o=e?Math.min(t.length,e.length):0,n=t.slice()
7327
7362
  return function(s){for(i=0;i<o;++i)n[i]=e[i]*(1-s)+t[i]*s
7328
- return n}}function Q$(e,t){var i,o=t?t.length:0,n=e?Math.min(o,e.length):0,s=new Array(n),r=new Array(o)
7329
- for(i=0;i<n;++i)s[i]=sC(e[i],t[i])
7363
+ return n}}function eC(e,t){var i,o=t?t.length:0,n=e?Math.min(o,e.length):0,s=new Array(n),r=new Array(o)
7364
+ for(i=0;i<n;++i)s[i]=aC(e[i],t[i])
7330
7365
  for(;i<o;++i)r[i]=t[i]
7331
7366
  return function(e){for(i=0;i<n;++i)r[i]=s[i](e)
7332
- return r}}function J$(e,t){var i=new Date
7333
- return e=+e,t=+t,function(o){return i.setTime(e*(1-o)+t*o),i}}function eC(e,t){return e=+e,t=+t,function(i){return e*(1-i)+t*i}}function tC(e,t){var i,o={},n={}
7334
- for(i in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)i in e?o[i]=sC(e[i],t[i]):n[i]=t[i]
7367
+ return r}}function tC(e,t){var i=new Date
7368
+ return e=+e,t=+t,function(o){return i.setTime(e*(1-o)+t*o),i}}function iC(e,t){return e=+e,t=+t,function(i){return e*(1-i)+t*i}}function oC(e,t){var i,o={},n={}
7369
+ for(i in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)i in e?o[i]=aC(e[i],t[i]):n[i]=t[i]
7335
7370
  return function(e){for(i in o)n[i]=o[i](e)
7336
- return n}}var iC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oC=new RegExp(iC.source,"g")
7337
- function nC(e,t){var i,o,n,s=iC.lastIndex=oC.lastIndex=0,r=-1,a=[],l=[]
7338
- for(e+="",t+="";(i=iC.exec(e))&&(o=oC.exec(t));)(n=o.index)>s&&(n=t.slice(s,n),a[r]?a[r]+=n:a[++r]=n),(i=i[0])===(o=o[0])?a[r]?a[r]+=o:a[++r]=o:(a[++r]=null,l.push({i:r,x:eC(i,o)})),s=oC.lastIndex
7371
+ return n}}var nC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,sC=new RegExp(nC.source,"g")
7372
+ function rC(e,t){var i,o,n,s=nC.lastIndex=sC.lastIndex=0,r=-1,a=[],l=[]
7373
+ for(e+="",t+="";(i=nC.exec(e))&&(o=sC.exec(t));)(n=o.index)>s&&(n=t.slice(s,n),a[r]?a[r]+=n:a[++r]=n),(i=i[0])===(o=o[0])?a[r]?a[r]+=o:a[++r]=o:(a[++r]=null,l.push({i:r,x:iC(i,o)})),s=sC.lastIndex
7339
7374
  return s<t.length&&(n=t.slice(s),a[r]?a[r]+=n:a[++r]=n),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 i,o=0;o<t;++o)a[(i=l[o]).i]=i.x(e)
7340
- return a.join("")})}function sC(e,t){var i,o,n=typeof t
7341
- return null==t||"boolean"===n?G$(t):("number"===n?eC:"string"===n?(i=A$(t))?(t=i,K$):nC:t instanceof A$?K$:t instanceof Date?J$:(o=t,!ArrayBuffer.isView(o)||o instanceof DataView?Array.isArray(t)?Q$:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?tC:eC:Y$))(e,t)}function rC(e,t){return e=+e,t=+t,function(i){return Math.round(e*(1-i)+t*i)}}var aC,lC=180/Math.PI,cC={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
7342
- function dC(e,t,i,o,n,s){var r,a,l
7343
- return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(l=e*i+t*o)&&(i-=e*l,o-=t*l),(a=Math.sqrt(i*i+o*o))&&(i/=a,o/=a,l/=a),e*o<t*i&&(e=-e,t=-t,l=-l,r=-r),{translateX:n,translateY:s,rotate:Math.atan2(t,e)*lC,skewX:Math.atan(l)*lC,scaleX:r,scaleY:a}}function hC(e,t,i,o){function n(e){return e.length?e.pop()+" ":""}return function(s,r){var a=[],l=[]
7375
+ return a.join("")})}function aC(e,t){var i,o,n=typeof t
7376
+ return null==t||"boolean"===n?X$(t):("number"===n?iC:"string"===n?(i=E$(t))?(t=i,Q$):rC:t instanceof E$?Q$:t instanceof Date?tC:(o=t,!ArrayBuffer.isView(o)||o instanceof DataView?Array.isArray(t)?eC:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?oC:iC:J$))(e,t)}function lC(e,t){return e=+e,t=+t,function(i){return Math.round(e*(1-i)+t*i)}}var cC,dC=180/Math.PI,hC={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
7377
+ function uC(e,t,i,o,n,s){var r,a,l
7378
+ return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(l=e*i+t*o)&&(i-=e*l,o-=t*l),(a=Math.sqrt(i*i+o*o))&&(i/=a,o/=a,l/=a),e*o<t*i&&(e=-e,t=-t,l=-l,r=-r),{translateX:n,translateY:s,rotate:Math.atan2(t,e)*dC,skewX:Math.atan(l)*dC,scaleX:r,scaleY:a}}function pC(e,t,i,o){function n(e){return e.length?e.pop()+" ":""}return function(s,r){var a=[],l=[]
7344
7379
  return s=e(s),r=e(r),function(e,o,n,s,r,a){if(e!==n||o!==s){var l=r.push("translate(",null,t,null,i)
7345
- a.push({i:l-4,x:eC(e,n)},{i:l-2,x:eC(o,s)})}else(n||s)&&r.push("translate("+n+t+s+i)}(s.translateX,s.translateY,r.translateX,r.translateY,a,l),function(e,t,i,s){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),s.push({i:i.push(n(i)+"rotate(",null,o)-2,x:eC(e,t)})):t&&i.push(n(i)+"rotate("+t+o)}(s.rotate,r.rotate,a,l),function(e,t,i,s){e!==t?s.push({i:i.push(n(i)+"skewX(",null,o)-2,x:eC(e,t)}):t&&i.push(n(i)+"skewX("+t+o)}(s.skewX,r.skewX,a,l),function(e,t,i,o,s,r){if(e!==i||t!==o){var a=s.push(n(s)+"scale(",null,",",null,")")
7346
- r.push({i:a-4,x:eC(e,i)},{i:a-2,x:eC(t,o)})}else 1===i&&1===o||s.push(n(s)+"scale("+i+","+o+")")}(s.scaleX,s.scaleY,r.scaleX,r.scaleY,a,l),s=r=null,function(e){for(var t,i=-1,o=l.length;++i<o;)a[(t=l[i]).i]=t.x(e)
7347
- return a.join("")}}}var uC=hC((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
7348
- return t.isIdentity?cC:dC(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),pC=hC((function(e){return null==e?cC:(aC||(aC=document.createElementNS("http://www.w3.org/2000/svg","g")),aC.setAttribute("transform",e),(e=aC.transform.baseVal.consolidate())?dC((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):cC)}),", ",")",")")
7349
- function gC(e){return((e=Math.exp(e))+1/e)/2}var vC,fC,mC=function e(t,i,o){function n(e,n){var s,r,a=e[0],l=e[1],c=e[2],d=n[0],h=n[1],u=n[2],p=d-a,g=h-l,v=p*p+g*g
7380
+ a.push({i:l-4,x:iC(e,n)},{i:l-2,x:iC(o,s)})}else(n||s)&&r.push("translate("+n+t+s+i)}(s.translateX,s.translateY,r.translateX,r.translateY,a,l),function(e,t,i,s){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),s.push({i:i.push(n(i)+"rotate(",null,o)-2,x:iC(e,t)})):t&&i.push(n(i)+"rotate("+t+o)}(s.rotate,r.rotate,a,l),function(e,t,i,s){e!==t?s.push({i:i.push(n(i)+"skewX(",null,o)-2,x:iC(e,t)}):t&&i.push(n(i)+"skewX("+t+o)}(s.skewX,r.skewX,a,l),function(e,t,i,o,s,r){if(e!==i||t!==o){var a=s.push(n(s)+"scale(",null,",",null,")")
7381
+ r.push({i:a-4,x:iC(e,i)},{i:a-2,x:iC(t,o)})}else 1===i&&1===o||s.push(n(s)+"scale("+i+","+o+")")}(s.scaleX,s.scaleY,r.scaleX,r.scaleY,a,l),s=r=null,function(e){for(var t,i=-1,o=l.length;++i<o;)a[(t=l[i]).i]=t.x(e)
7382
+ return a.join("")}}}var gC=pC((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
7383
+ return t.isIdentity?hC:uC(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),vC=pC((function(e){return null==e?hC:(cC||(cC=document.createElementNS("http://www.w3.org/2000/svg","g")),cC.setAttribute("transform",e),(e=cC.transform.baseVal.consolidate())?uC((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):hC)}),", ",")",")")
7384
+ function fC(e){return((e=Math.exp(e))+1/e)/2}var mC,bC,wC=function e(t,i,o){function n(e,n){var s,r,a=e[0],l=e[1],c=e[2],d=n[0],h=n[1],u=n[2],p=d-a,g=h-l,v=p*p+g*g
7350
7385
  if(v<1e-12)r=Math.log(u/c)/t,s=function(e){return[a+e*p,l+e*g,c*Math.exp(t*e*r)]}
7351
7386
  else{var f=Math.sqrt(v),m=(u*u-c*c+o*v)/(2*c*i*f),b=(u*u-c*c-o*v)/(2*u*i*f),w=Math.log(Math.sqrt(m*m+1)-m),x=Math.log(Math.sqrt(b*b+1)-b)
7352
- r=(x-w)/t,s=function(e){var o,n=e*r,s=gC(w),d=c/(i*f)*(s*(o=t*n+w,((o=Math.exp(2*o))-1)/(o+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
7353
- return[a+d*p,l+d*g,c*s/gC(t*n+w)]}}return s.duration=1e3*r*t/Math.SQRT2,s}return n.rho=function(t){var i=Math.max(.001,+t),o=i*i
7354
- return e(i,o,o*o)},n}(Math.SQRT2,2,4),bC=0,wC=0,xC=0,yC=0,$C=0,CC=0,kC="object"==typeof performance&&performance.now?performance:Date,SC="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
7355
- function _C(){return $C||(SC(IC),$C=kC.now()+CC)}function IC(){$C=0}function RC(){this._call=this._time=this._next=null}function MC(e,t,i){var o=new RC
7356
- return o.restart(e,t,i),o}function AC(){$C=(yC=kC.now())+CC,bC=wC=0
7357
- try{!function(){_C(),++bC
7358
- for(var e,t=vC;t;)(e=$C-t._time)>=0&&t._call.call(void 0,e),t=t._next;--bC}()}finally{bC=0,function(){var e,t,i=vC,o=1/0
7359
- for(;i;)i._call?(o>i._time&&(o=i._time),e=i,i=i._next):(t=i._next,i._next=null,i=e?e._next=t:vC=t)
7360
- fC=e,EC(o)}(),$C=0}}function OC(){var e=kC.now(),t=e-yC
7361
- t>1e3&&(CC-=t,yC=e)}function EC(e){bC||(wC&&(wC=clearTimeout(wC)),e-$C>24?(e<1/0&&(wC=setTimeout(AC,e-kC.now()-CC)),xC&&(xC=clearInterval(xC))):(xC||(yC=kC.now(),xC=setInterval(OC,1e3)),bC=1,SC(AC)))}function VC(e,t,i){var o=new RC
7362
- return t=null==t?0:+t,o.restart((i=>{o.stop(),e(i+t)}),t,i),o}RC.prototype=MC.prototype={constructor:RC,restart:function(e,t,i){if("function"!=typeof e)throw new TypeError("callback is not a function")
7363
- i=(null==i?_C():+i)+(null==t?0:+t),this._next||fC===this||(fC?fC._next=this:vC=this,fC=this),this._call=e,this._time=i,EC()},stop:function(){this._call&&(this._call=null,this._time=1/0,EC())}}
7364
- var FC=Bx("start","end","cancel","interrupt"),HC=[]
7365
- function PC(e,t,i,o,n,s){var r=e.__transition
7387
+ r=(x-w)/t,s=function(e){var o,n=e*r,s=fC(w),d=c/(i*f)*(s*(o=t*n+w,((o=Math.exp(2*o))-1)/(o+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
7388
+ return[a+d*p,l+d*g,c*s/fC(t*n+w)]}}return s.duration=1e3*r*t/Math.SQRT2,s}return n.rho=function(t){var i=Math.max(.001,+t),o=i*i
7389
+ return e(i,o,o*o)},n}(Math.SQRT2,2,4),xC=0,yC=0,$C=0,CC=0,kC=0,SC=0,_C="object"==typeof performance&&performance.now?performance:Date,IC="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
7390
+ function RC(){return kC||(IC(MC),kC=_C.now()+SC)}function MC(){kC=0}function AC(){this._call=this._time=this._next=null}function OC(e,t,i){var o=new AC
7391
+ return o.restart(e,t,i),o}function EC(){kC=(CC=_C.now())+SC,xC=yC=0
7392
+ try{!function(){RC(),++xC
7393
+ for(var e,t=mC;t;)(e=kC-t._time)>=0&&t._call.call(void 0,e),t=t._next;--xC}()}finally{xC=0,function(){var e,t,i=mC,o=1/0
7394
+ for(;i;)i._call?(o>i._time&&(o=i._time),e=i,i=i._next):(t=i._next,i._next=null,i=e?e._next=t:mC=t)
7395
+ bC=e,FC(o)}(),kC=0}}function VC(){var e=_C.now(),t=e-CC
7396
+ t>1e3&&(SC-=t,CC=e)}function FC(e){xC||(yC&&(yC=clearTimeout(yC)),e-kC>24?(e<1/0&&(yC=setTimeout(EC,e-_C.now()-SC)),$C&&($C=clearInterval($C))):($C||(CC=_C.now(),$C=setInterval(VC,1e3)),xC=1,IC(EC)))}function HC(e,t,i){var o=new AC
7397
+ return t=null==t?0:+t,o.restart((i=>{o.stop(),e(i+t)}),t,i),o}AC.prototype=OC.prototype={constructor:AC,restart:function(e,t,i){if("function"!=typeof e)throw new TypeError("callback is not a function")
7398
+ i=(null==i?RC():+i)+(null==t?0:+t),this._next||bC===this||(bC?bC._next=this:mC=this,bC=this),this._call=e,this._time=i,FC()},stop:function(){this._call&&(this._call=null,this._time=1/0,FC())}}
7399
+ var PC=Zx("start","end","cancel","interrupt"),TC=[]
7400
+ function LC(e,t,i,o,n,s){var r=e.__transition
7366
7401
  if(r){if(i in r)return}else e.__transition={}
7367
7402
  !function(e,t,i){var o,n=e.__transition
7368
7403
  function s(e){i.state=1,i.timer.restart(r,i.delay,i.time),i.delay<=e&&r(e-i.delay)}function r(s){var c,d,h,u
7369
7404
  if(1!==i.state)return l()
7370
- for(c in n)if((u=n[c]).name===i.name){if(3===u.state)return VC(r)
7371
- 4===u.state?(u.state=6,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete n[c]):+c<t&&(u.state=6,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete n[c])}if(VC((function(){3===i.state&&(i.state=4,i.timer.restart(a,i.delay,i.time),a(s))})),i.state=2,i.on.call("start",e,e.__data__,i.index,i.group),2===i.state){for(i.state=3,o=new Array(h=i.tween.length),c=0,d=-1;c<h;++c)(u=i.tween[c].value.call(e,e.__data__,i.index,i.group))&&(o[++d]=u)
7405
+ for(c in n)if((u=n[c]).name===i.name){if(3===u.state)return HC(r)
7406
+ 4===u.state?(u.state=6,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete n[c]):+c<t&&(u.state=6,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete n[c])}if(HC((function(){3===i.state&&(i.state=4,i.timer.restart(a,i.delay,i.time),a(s))})),i.state=2,i.on.call("start",e,e.__data__,i.index,i.group),2===i.state){for(i.state=3,o=new Array(h=i.tween.length),c=0,d=-1;c<h;++c)(u=i.tween[c].value.call(e,e.__data__,i.index,i.group))&&(o[++d]=u)
7372
7407
  o.length=d+1}}function a(t){for(var n=t<i.duration?i.ease.call(null,t/i.duration):(i.timer.restart(l),i.state=5,1),s=-1,r=o.length;++s<r;)o[s].call(e,n)
7373
7408
  5===i.state&&(i.on.call("end",e,e.__data__,i.index,i.group),l())}function l(){for(var o in i.state=6,i.timer.stop(),delete n[t],n)return
7374
- delete e.__transition}n[t]=i,i.timer=MC(s,0,i.time)}(e,i,{name:t,index:o,group:n,on:FC,tween:HC,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function TC(e,t){var i=DC(e,t)
7409
+ delete e.__transition}n[t]=i,i.timer=OC(s,0,i.time)}(e,i,{name:t,index:o,group:n,on:PC,tween:TC,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function DC(e,t){var i=BC(e,t)
7375
7410
  if(i.state>0)throw new Error("too late; already scheduled")
7376
- return i}function LC(e,t){var i=DC(e,t)
7411
+ return i}function zC(e,t){var i=BC(e,t)
7377
7412
  if(i.state>3)throw new Error("too late; already running")
7378
- return i}function DC(e,t){var i=e.__transition
7413
+ return i}function BC(e,t){var i=e.__transition
7379
7414
  if(!i||!(i=i[t]))throw new Error("transition not found")
7380
- return i}function zC(e,t){var i,o,n,s=e.__transition,r=!0
7415
+ return i}function NC(e,t){var i,o,n,s=e.__transition,r=!0
7381
7416
  if(s){for(n in t=null==t?null:t+"",s)(i=s[n]).name===t?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete s[n]):r=!1
7382
- r&&delete e.__transition}}function BC(e,t){var i,o
7383
- return function(){var n=LC(this,e),s=n.tween
7417
+ r&&delete e.__transition}}function ZC(e,t){var i,o
7418
+ return function(){var n=zC(this,e),s=n.tween
7384
7419
  if(s!==i)for(var r=0,a=(o=i=s).length;r<a;++r)if(o[r].name===t){(o=o.slice()).splice(r,1)
7385
- break}n.tween=o}}function NC(e,t,i){var o,n
7420
+ break}n.tween=o}}function qC(e,t,i){var o,n
7386
7421
  if("function"!=typeof i)throw new Error
7387
- return function(){var s=LC(this,e),r=s.tween
7422
+ return function(){var s=zC(this,e),r=s.tween
7388
7423
  if(r!==o){n=(o=r).slice()
7389
7424
  for(var a={name:t,value:i},l=0,c=n.length;l<c;++l)if(n[l].name===t){n[l]=a
7390
- break}l===c&&n.push(a)}s.tween=n}}function ZC(e,t,i){var o=e._id
7391
- return e.each((function(){var e=LC(this,o);(e.value||(e.value={}))[t]=i.apply(this,arguments)})),function(e){return DC(e,o).value[t]}}function qC(e,t){var i
7392
- return("number"==typeof t?eC:t instanceof A$?K$:(i=A$(t))?(t=i,K$):nC)(e,t)}function jC(e){return function(){this.removeAttribute(e)}}function UC(e){return function(){this.removeAttributeNS(e.space,e.local)}}function GC(e,t,i){var o,n,s=i+""
7425
+ break}l===c&&n.push(a)}s.tween=n}}function jC(e,t,i){var o=e._id
7426
+ return e.each((function(){var e=zC(this,o);(e.value||(e.value={}))[t]=i.apply(this,arguments)})),function(e){return BC(e,o).value[t]}}function UC(e,t){var i
7427
+ return("number"==typeof t?iC:t instanceof E$?Q$:(i=E$(t))?(t=i,Q$):rC)(e,t)}function GC(e){return function(){this.removeAttribute(e)}}function WC(e){return function(){this.removeAttributeNS(e.space,e.local)}}function XC(e,t,i){var o,n,s=i+""
7393
7428
  return function(){var r=this.getAttribute(e)
7394
- return r===s?null:r===o?n:n=t(o=r,i)}}function WC(e,t,i){var o,n,s=i+""
7429
+ return r===s?null:r===o?n:n=t(o=r,i)}}function KC(e,t,i){var o,n,s=i+""
7395
7430
  return function(){var r=this.getAttributeNS(e.space,e.local)
7396
- return r===s?null:r===o?n:n=t(o=r,i)}}function XC(e,t,i){var o,n,s
7431
+ return r===s?null:r===o?n:n=t(o=r,i)}}function YC(e,t,i){var o,n,s
7397
7432
  return function(){var r,a,l=i(this)
7398
7433
  if(null!=l)return(r=this.getAttribute(e))===(a=l+"")?null:r===o&&a===n?s:(n=a,s=t(o=r,l))
7399
- this.removeAttribute(e)}}function KC(e,t,i){var o,n,s
7434
+ this.removeAttribute(e)}}function QC(e,t,i){var o,n,s
7400
7435
  return function(){var r,a,l=i(this)
7401
7436
  if(null!=l)return(r=this.getAttributeNS(e.space,e.local))===(a=l+"")?null:r===o&&a===n?s:(n=a,s=t(o=r,l))
7402
- this.removeAttributeNS(e.space,e.local)}}function YC(e,t){return function(i){this.setAttribute(e,t.call(this,i))}}function QC(e,t){return function(i){this.setAttributeNS(e.space,e.local,t.call(this,i))}}function JC(e,t){var i,o
7437
+ this.removeAttributeNS(e.space,e.local)}}function JC(e,t){return function(i){this.setAttribute(e,t.call(this,i))}}function ek(e,t){return function(i){this.setAttributeNS(e.space,e.local,t.call(this,i))}}function tk(e,t){var i,o
7403
7438
  function n(){var n=t.apply(this,arguments)
7404
- return n!==o&&(i=(o=n)&&QC(e,n)),i}return n._value=t,n}function ek(e,t){var i,o
7439
+ return n!==o&&(i=(o=n)&&ek(e,n)),i}return n._value=t,n}function ik(e,t){var i,o
7405
7440
  function n(){var n=t.apply(this,arguments)
7406
- return n!==o&&(i=(o=n)&&YC(e,n)),i}return n._value=t,n}function tk(e,t){return function(){TC(this,e).delay=+t.apply(this,arguments)}}function ik(e,t){return t=+t,function(){TC(this,e).delay=t}}function ok(e,t){return function(){LC(this,e).duration=+t.apply(this,arguments)}}function nk(e,t){return t=+t,function(){LC(this,e).duration=t}}function sk(e,t){if("function"!=typeof t)throw new Error
7407
- return function(){LC(this,e).ease=t}}function rk(e,t,i){var o,n,s=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
7408
- return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?TC:LC
7441
+ return n!==o&&(i=(o=n)&&JC(e,n)),i}return n._value=t,n}function ok(e,t){return function(){DC(this,e).delay=+t.apply(this,arguments)}}function nk(e,t){return t=+t,function(){DC(this,e).delay=t}}function sk(e,t){return function(){zC(this,e).duration=+t.apply(this,arguments)}}function rk(e,t){return t=+t,function(){zC(this,e).duration=t}}function ak(e,t){if("function"!=typeof t)throw new Error
7442
+ return function(){zC(this,e).ease=t}}function lk(e,t,i){var o,n,s=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
7443
+ return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?DC:zC
7409
7444
  return function(){var r=s(this,e),a=r.on
7410
- a!==o&&(n=(o=a).copy()).on(t,i),r.on=n}}var ak=s$.prototype.constructor
7411
- function lk(e){return function(){this.style.removeProperty(e)}}function ck(e,t,i){return function(o){this.style.setProperty(e,t.call(this,o),i)}}function dk(e,t,i){var o,n
7445
+ a!==o&&(n=(o=a).copy()).on(t,i),r.on=n}}var ck=a$.prototype.constructor
7446
+ function dk(e){return function(){this.style.removeProperty(e)}}function hk(e,t,i){return function(o){this.style.setProperty(e,t.call(this,o),i)}}function uk(e,t,i){var o,n
7412
7447
  function s(){var s=t.apply(this,arguments)
7413
- return s!==n&&(o=(n=s)&&ck(e,s,i)),o}return s._value=t,s}function hk(e){return function(t){this.textContent=e.call(this,t)}}function uk(e){var t,i
7448
+ return s!==n&&(o=(n=s)&&hk(e,s,i)),o}return s._value=t,s}function pk(e){return function(t){this.textContent=e.call(this,t)}}function gk(e){var t,i
7414
7449
  function o(){var o=e.apply(this,arguments)
7415
- return o!==i&&(t=(i=o)&&hk(o)),t}return o._value=e,o}var pk=0
7416
- function gk(e,t,i,o){this._groups=e,this._parents=t,this._name=i,this._id=o}function vk(){return++pk}var fk=s$.prototype
7417
- gk.prototype={constructor:gk,select:function(e){var t=this._name,i=this._id
7418
- "function"!=typeof e&&(e=Jx(e))
7419
- for(var o=this._groups,n=o.length,s=new Array(n),r=0;r<n;++r)for(var a,l,c=o[r],d=c.length,h=s[r]=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,PC(h[u],t,i,u,h,DC(a,i)))
7420
- return new gk(s,this._parents,t,i)},selectAll:function(e){var t=this._name,i=this._id
7421
- "function"!=typeof e&&(e=iy(e))
7422
- for(var o=this._groups,n=o.length,s=[],r=[],a=0;a<n;++a)for(var l,c=o[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),g=DC(l,i),v=0,f=p.length;v<f;++v)(u=p[v])&&PC(u,t,i,v,p,g)
7423
- s.push(p),r.push(l)}return new gk(s,r,t,i)},selectChild:fk.selectChild,selectChildren:fk.selectChildren,filter:function(e){"function"!=typeof e&&(e=oy(e))
7450
+ return o!==i&&(t=(i=o)&&pk(o)),t}return o._value=e,o}var vk=0
7451
+ function fk(e,t,i,o){this._groups=e,this._parents=t,this._name=i,this._id=o}function mk(){return++vk}var bk=a$.prototype
7452
+ fk.prototype={constructor:fk,select:function(e){var t=this._name,i=this._id
7453
+ "function"!=typeof e&&(e=ty(e))
7454
+ for(var o=this._groups,n=o.length,s=new Array(n),r=0;r<n;++r)for(var a,l,c=o[r],d=c.length,h=s[r]=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,LC(h[u],t,i,u,h,BC(a,i)))
7455
+ return new fk(s,this._parents,t,i)},selectAll:function(e){var t=this._name,i=this._id
7456
+ "function"!=typeof e&&(e=ny(e))
7457
+ for(var o=this._groups,n=o.length,s=[],r=[],a=0;a<n;++a)for(var l,c=o[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),g=BC(l,i),v=0,f=p.length;v<f;++v)(u=p[v])&&LC(u,t,i,v,p,g)
7458
+ s.push(p),r.push(l)}return new fk(s,r,t,i)},selectChild:bk.selectChild,selectChildren:bk.selectChildren,filter:function(e){"function"!=typeof e&&(e=sy(e))
7424
7459
  for(var t=this._groups,i=t.length,o=new Array(i),n=0;n<i;++n)for(var s,r=t[n],a=r.length,l=o[n]=[],c=0;c<a;++c)(s=r[c])&&e.call(s,s.__data__,c,r)&&l.push(s)
7425
- return new gk(o,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
7460
+ return new fk(o,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
7426
7461
  for(var t=this._groups,i=e._groups,o=t.length,n=i.length,s=Math.min(o,n),r=new Array(o),a=0;a<s;++a)for(var l,c=t[a],d=i[a],h=c.length,u=r[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
7427
7462
  for(;a<o;++a)r[a]=t[a]
7428
- return new gk(r,this._parents,this._name,this._id)},selection:function(){return new ak(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,i=vk(),o=this._groups,n=o.length,s=0;s<n;++s)for(var r,a=o[s],l=a.length,c=0;c<l;++c)if(r=a[c]){var d=DC(r,t)
7429
- PC(r,e,i,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new gk(o,this._parents,e,i)},call:fk.call,nodes:fk.nodes,node:fk.node,size:fk.size,empty:fk.empty,each:fk.each,on:function(e,t){var i=this._id
7430
- return arguments.length<2?DC(this.node(),i).on.on(e):this.each(rk(i,e,t))},attr:function(e,t){var i=Wx(e),o="transform"===i?pC:qC
7431
- return this.attrTween(e,"function"==typeof t?(i.local?KC:XC)(i,o,ZC(this,"attr."+e,t)):null==t?(i.local?UC:jC)(i):(i.local?WC:GC)(i,o,t))},attrTween:function(e,t){var i="attr."+e
7463
+ return new fk(r,this._parents,this._name,this._id)},selection:function(){return new ck(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,i=mk(),o=this._groups,n=o.length,s=0;s<n;++s)for(var r,a=o[s],l=a.length,c=0;c<l;++c)if(r=a[c]){var d=BC(r,t)
7464
+ LC(r,e,i,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new fk(o,this._parents,e,i)},call:bk.call,nodes:bk.nodes,node:bk.node,size:bk.size,empty:bk.empty,each:bk.each,on:function(e,t){var i=this._id
7465
+ return arguments.length<2?BC(this.node(),i).on.on(e):this.each(lk(i,e,t))},attr:function(e,t){var i=Kx(e),o="transform"===i?vC:UC
7466
+ return this.attrTween(e,"function"==typeof t?(i.local?QC:YC)(i,o,jC(this,"attr."+e,t)):null==t?(i.local?WC:GC)(i):(i.local?KC:XC)(i,o,t))},attrTween:function(e,t){var i="attr."+e
7432
7467
  if(arguments.length<2)return(i=this.tween(i))&&i._value
7433
7468
  if(null==t)return this.tween(i,null)
7434
7469
  if("function"!=typeof t)throw new Error
7435
- var o=Wx(e)
7436
- return this.tween(i,(o.local?JC:ek)(o,t))},style:function(e,t,i){var o="transform"==(e+="")?uC:qC
7470
+ var o=Kx(e)
7471
+ return this.tween(i,(o.local?tk:ik)(o,t))},style:function(e,t,i){var o="transform"==(e+="")?gC:UC
7437
7472
  return null==t?this.styleTween(e,function(e,t){var i,o,n
7438
- return function(){var s=Iy(this,e),r=(this.style.removeProperty(e),Iy(this,e))
7439
- return s===r?null:s===i&&r===o?n:n=t(i=s,o=r)}}(e,o)).on("end.style."+e,lk(e)):"function"==typeof t?this.styleTween(e,function(e,t,i){var o,n,s
7440
- return function(){var r=Iy(this,e),a=i(this),l=a+""
7441
- return null==a&&(this.style.removeProperty(e),l=a=Iy(this,e)),r===l?null:r===o&&l===n?s:(n=l,s=t(o=r,a))}}(e,o,ZC(this,"style."+e,t))).each(function(e,t){var i,o,n,s,r="style."+t,a="end."+r
7442
- return function(){var l=LC(this,e),c=l.on,d=null==l.value[r]?s||(s=lk(t)):void 0
7473
+ return function(){var s=My(this,e),r=(this.style.removeProperty(e),My(this,e))
7474
+ return s===r?null:s===i&&r===o?n:n=t(i=s,o=r)}}(e,o)).on("end.style."+e,dk(e)):"function"==typeof t?this.styleTween(e,function(e,t,i){var o,n,s
7475
+ return function(){var r=My(this,e),a=i(this),l=a+""
7476
+ return null==a&&(this.style.removeProperty(e),l=a=My(this,e)),r===l?null:r===o&&l===n?s:(n=l,s=t(o=r,a))}}(e,o,jC(this,"style."+e,t))).each(function(e,t){var i,o,n,s,r="style."+t,a="end."+r
7477
+ return function(){var l=zC(this,e),c=l.on,d=null==l.value[r]?s||(s=dk(t)):void 0
7443
7478
  c===i&&n===d||(o=(i=c).copy()).on(a,n=d),l.on=o}}(this._id,e)):this.styleTween(e,function(e,t,i){var o,n,s=i+""
7444
- return function(){var r=Iy(this,e)
7479
+ return function(){var r=My(this,e)
7445
7480
  return r===s?null:r===o?n:n=t(o=r,i)}}(e,o,t),i).on("end.style."+e,null)},styleTween:function(e,t,i){var o="style."+(e+="")
7446
7481
  if(arguments.length<2)return(o=this.tween(o))&&o._value
7447
7482
  if(null==t)return this.tween(o,null)
7448
7483
  if("function"!=typeof t)throw new Error
7449
- return this.tween(o,dk(e,t,null==i?"":i))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
7450
- this.textContent=null==t?"":t}}(ZC(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
7484
+ return this.tween(o,uk(e,t,null==i?"":i))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
7485
+ this.textContent=null==t?"":t}}(jC(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
7451
7486
  if(arguments.length<1)return(t=this.tween(t))&&t._value
7452
7487
  if(null==e)return this.tween(t,null)
7453
7488
  if("function"!=typeof e)throw new Error
7454
- return this.tween(t,uk(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
7489
+ return this.tween(t,gk(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
7455
7490
  for(var i in this.__transition)if(+i!==e)return
7456
7491
  t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var i=this._id
7457
- if(e+="",arguments.length<2){for(var o,n=DC(this.node(),i).tween,s=0,r=n.length;s<r;++s)if((o=n[s]).name===e)return o.value
7458
- return null}return this.each((null==t?BC:NC)(i,e,t))},delay:function(e){var t=this._id
7459
- return arguments.length?this.each(("function"==typeof e?tk:ik)(t,e)):DC(this.node(),t).delay},duration:function(e){var t=this._id
7460
- return arguments.length?this.each(("function"==typeof e?ok:nk)(t,e)):DC(this.node(),t).duration},ease:function(e){var t=this._id
7461
- return arguments.length?this.each(sk(t,e)):DC(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
7492
+ if(e+="",arguments.length<2){for(var o,n=BC(this.node(),i).tween,s=0,r=n.length;s<r;++s)if((o=n[s]).name===e)return o.value
7493
+ return null}return this.each((null==t?ZC:qC)(i,e,t))},delay:function(e){var t=this._id
7494
+ return arguments.length?this.each(("function"==typeof e?ok:nk)(t,e)):BC(this.node(),t).delay},duration:function(e){var t=this._id
7495
+ return arguments.length?this.each(("function"==typeof e?sk:rk)(t,e)):BC(this.node(),t).duration},ease:function(e){var t=this._id
7496
+ return arguments.length?this.each(ak(t,e)):BC(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
7462
7497
  return this.each(function(e,t){return function(){var i=t.apply(this,arguments)
7463
7498
  if("function"!=typeof i)throw new Error
7464
- LC(this,e).ease=i}}(this._id,e))},end:function(){var e,t,i=this,o=i._id,n=i.size()
7499
+ zC(this,e).ease=i}}(this._id,e))},end:function(){var e,t,i=this,o=i._id,n=i.size()
7465
7500
  return new Promise((function(s,r){var a={value:r},l={value:function(){0==--n&&s()}}
7466
- i.each((function(){var i=LC(this,o),n=i.on
7467
- n!==e&&((t=(e=n).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),i.on=t})),0===n&&s()}))},[Symbol.iterator]:fk[Symbol.iterator]}
7468
- var mk={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
7469
- function bk(e,t){for(var i;!(i=e.__transition)||!(i=i[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
7470
- return i}s$.prototype.interrupt=function(e){return this.each((function(){zC(this,e)}))},s$.prototype.transition=function(e){var t,i
7471
- e instanceof gk?(t=e._id,e=e._name):(t=vk(),(i=mk).time=_C(),e=null==e?null:e+"")
7472
- for(var o=this._groups,n=o.length,s=0;s<n;++s)for(var r,a=o[s],l=a.length,c=0;c<l;++c)(r=a[c])&&PC(r,e,t,c,a,i||bk(r,t))
7473
- return new gk(o,this._parents,e,t)}
7474
- var wk=e=>()=>e
7475
- function xk(e,{sourceEvent:t,target:i,transform:o,dispatch:n}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:n}})}function yk(e,t,i){this.k=e,this.x=t,this.y=i}yk.prototype={constructor:yk,scale:function(e){return 1===e?this:new yk(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new yk(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+")"}}
7476
- var $k=new yk(1,0,0)
7477
- function Ck(e){for(;!e.__zoom;)if(!(e=e.parentNode))return $k
7478
- return e.__zoom}function kk(e){e.stopImmediatePropagation()}function Sk(e){e.preventDefault(),e.stopImmediatePropagation()}function _k(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function Ik(){var e=this
7479
- 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 Rk(){return this.__zoom||$k}function Mk(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ak(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ok(e,t,i){var o=e.invertX(t[0][0])-i[0][0],n=e.invertX(t[1][0])-i[1][0],s=e.invertY(t[0][1])-i[0][1],r=e.invertY(t[1][1])-i[1][1]
7480
- return e.translate(n>o?(o+n)/2:Math.min(0,o)||Math.max(0,n),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}Ck.prototype=yk.prototype
7481
- const Ek=G`
7501
+ i.each((function(){var i=zC(this,o),n=i.on
7502
+ n!==e&&((t=(e=n).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),i.on=t})),0===n&&s()}))},[Symbol.iterator]:bk[Symbol.iterator]}
7503
+ var wk={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
7504
+ function xk(e,t){for(var i;!(i=e.__transition)||!(i=i[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
7505
+ return i}a$.prototype.interrupt=function(e){return this.each((function(){NC(this,e)}))},a$.prototype.transition=function(e){var t,i
7506
+ e instanceof fk?(t=e._id,e=e._name):(t=mk(),(i=wk).time=RC(),e=null==e?null:e+"")
7507
+ for(var o=this._groups,n=o.length,s=0;s<n;++s)for(var r,a=o[s],l=a.length,c=0;c<l;++c)(r=a[c])&&LC(r,e,t,c,a,i||xk(r,t))
7508
+ return new fk(o,this._parents,e,t)}
7509
+ var yk=e=>()=>e
7510
+ function $k(e,{sourceEvent:t,target:i,transform:o,dispatch:n}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:n}})}function Ck(e,t,i){this.k=e,this.x=t,this.y=i}Ck.prototype={constructor:Ck,scale:function(e){return 1===e?this:new Ck(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Ck(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+")"}}
7511
+ var kk=new Ck(1,0,0)
7512
+ function Sk(e){for(;!e.__zoom;)if(!(e=e.parentNode))return kk
7513
+ return e.__zoom}function _k(e){e.stopImmediatePropagation()}function Ik(e){e.preventDefault(),e.stopImmediatePropagation()}function Rk(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function Mk(){var e=this
7514
+ 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 Ak(){return this.__zoom||kk}function Ok(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ek(){return navigator.maxTouchPoints||"ontouchstart"in this}function Vk(e,t,i){var o=e.invertX(t[0][0])-i[0][0],n=e.invertX(t[1][0])-i[1][0],s=e.invertY(t[0][1])-i[0][1],r=e.invertY(t[1][1])-i[1][1]
7515
+ return e.translate(n>o?(o+n)/2:Math.min(0,o)||Math.max(0,n),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}Sk.prototype=Ck.prototype
7516
+ const Fk=G`
7482
7517
  <div class="wafer-map-container">
7483
7518
  <svg class="svg-root">
7484
7519
  <g ${_e("zoomContainer")} transform=${e=>e.transform.toString()}>
@@ -7508,7 +7543,7 @@ const Ek=G`
7508
7543
  />
7509
7544
  </svg>
7510
7545
  </div>
7511
- `,Vk=fe`
7546
+ `,Hk=fe`
7512
7547
  :host {
7513
7548
  display: inline-block;
7514
7549
  width: 500px;
@@ -7592,68 +7627,68 @@ const Ek=G`
7592
7627
  outline-width: 0px;
7593
7628
  }
7594
7629
  `
7595
- function Fk(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Hk(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Pk(e){let t,i,o
7630
+ function Pk(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Tk(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Lk(e){let t,i,o
7596
7631
  function n(e,o,n=0,s=e.length){if(n<s){if(0!==t(o,o))return s
7597
7632
  do{const t=n+s>>>1
7598
- i(e[t],o)<0?n=t+1:s=t}while(n<s)}return n}return 2!==e.length?(t=Fk,i=(t,i)=>Fk(e(t),i),o=(t,i)=>e(t)-i):(t=e===Fk||e===Hk?e:Tk,i=e,o=e),{left:n,center:function(e,t,i=0,s=e.length){const r=n(e,t,i,s-1)
7633
+ i(e[t],o)<0?n=t+1:s=t}while(n<s)}return n}return 2!==e.length?(t=Pk,i=(t,i)=>Pk(e(t),i),o=(t,i)=>e(t)-i):(t=e===Pk||e===Tk?e:Dk,i=e,o=e),{left:n,center:function(e,t,i=0,s=e.length){const r=n(e,t,i,s-1)
7599
7634
  return r>i&&o(e[r-1],t)>-o(e[r],t)?r-1:r},right:function(e,o,n=0,s=e.length){if(n<s){if(0!==t(o,o))return s
7600
7635
  do{const t=n+s>>>1
7601
- i(e[t],o)<=0?n=t+1:s=t}while(n<s)}return n}}}function Tk(){return 0}function Lk(e){return null===e?NaN:+e}const Dk=Pk(Fk).right
7602
- Pk(Lk).center
7603
- var zk=Dk
7604
- class Bk extends Map{constructor(e,t=Zk){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,i]of e)this.set(t,i)}get(e){return super.get(Nk(this,e))}has(e){return super.has(Nk(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},i){const o=t(i)
7636
+ i(e[t],o)<=0?n=t+1:s=t}while(n<s)}return n}}}function Dk(){return 0}function zk(e){return null===e?NaN:+e}const Bk=Lk(Pk).right
7637
+ Lk(zk).center
7638
+ var Nk=Bk
7639
+ class Zk extends Map{constructor(e,t=jk){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,i]of e)this.set(t,i)}get(e){return super.get(qk(this,e))}has(e){return super.has(qk(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},i){const o=t(i)
7605
7640
  return e.has(o)?e.get(o):(e.set(o,i),i)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},i){const o=t(i)
7606
7641
  e.has(o)&&(i=e.get(o),e.delete(o))
7607
- return i}(this,e))}}function Nk({_intern:e,_key:t},i){const o=t(i)
7608
- return e.has(o)?e.get(o):i}function Zk(e){return null!==e&&"object"==typeof e?e.valueOf():e}const qk=Math.sqrt(50),jk=Math.sqrt(10),Uk=Math.sqrt(2)
7609
- function Gk(e,t,i){const o=(t-e)/Math.max(0,i),n=Math.floor(Math.log10(o)),s=o/Math.pow(10,n),r=s>=qk?10:s>=jk?5:s>=Uk?2:1
7642
+ return i}(this,e))}}function qk({_intern:e,_key:t},i){const o=t(i)
7643
+ return e.has(o)?e.get(o):i}function jk(e){return null!==e&&"object"==typeof e?e.valueOf():e}const Uk=Math.sqrt(50),Gk=Math.sqrt(10),Wk=Math.sqrt(2)
7644
+ function Xk(e,t,i){const o=(t-e)/Math.max(0,i),n=Math.floor(Math.log10(o)),s=o/Math.pow(10,n),r=s>=Uk?10:s>=Gk?5:s>=Wk?2:1
7610
7645
  let a,l,c
7611
- return n<0?(c=Math.pow(10,-n)/r,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,n)*r,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=i&&i<2?Gk(e,t,2*i):[a,l,c]}function Wk(e,t,i){return Gk(e=+e,t=+t,i=+i)[2]}function Xk(e,t,i=Lk){if((o=e.length)&&!isNaN(t=+t)){if(t<=0||o<2)return+i(e[0],0,e)
7646
+ return n<0?(c=Math.pow(10,-n)/r,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,n)*r,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=i&&i<2?Xk(e,t,2*i):[a,l,c]}function Kk(e,t,i){return Xk(e=+e,t=+t,i=+i)[2]}function Yk(e,t,i=zk){if((o=e.length)&&!isNaN(t=+t)){if(t<=0||o<2)return+i(e[0],0,e)
7612
7647
  if(t>=1)return+i(e[o-1],o-1,e)
7613
7648
  var o,n=(o-1)*t,s=Math.floor(n),r=+i(e[s],s,e)
7614
- return r+(+i(e[s+1],s+1,e)-r)*(n-s)}}function Kk(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i
7649
+ return r+(+i(e[s+1],s+1,e)-r)*(n-s)}}function Qk(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i
7615
7650
  for(var o=-1,n=0|Math.max(0,Math.ceil((t-e)/i)),s=new Array(n);++o<n;)s[o]=e+o*i
7616
- return s}function Yk(e,t){switch(arguments.length){case 0:break
7651
+ return s}function Jk(e,t){switch(arguments.length){case 0:break
7617
7652
  case 1:this.range(e)
7618
7653
  break
7619
- default:this.range(t).domain(e)}return this}const Qk=Symbol("implicit")
7620
- function Jk(){var e=new Bk,t=[],i=[],o=Qk
7654
+ default:this.range(t).domain(e)}return this}const eS=Symbol("implicit")
7655
+ function tS(){var e=new Zk,t=[],i=[],o=eS
7621
7656
  function n(n){let s=e.get(n)
7622
- if(void 0===s){if(o!==Qk)return o
7657
+ if(void 0===s){if(o!==eS)return o
7623
7658
  e.set(n,s=t.push(n)-1)}return i[s%i.length]}return n.domain=function(i){if(!arguments.length)return t.slice()
7624
- t=[],e=new Bk
7659
+ t=[],e=new Zk
7625
7660
  for(const o of i)e.has(o)||e.set(o,t.push(o)-1)
7626
- return n},n.range=function(e){return arguments.length?(i=Array.from(e),n):i.slice()},n.unknown=function(e){return arguments.length?(o=e,n):o},n.copy=function(){return Jk(t,i).unknown(o)},Yk.apply(n,arguments),n}function eS(){var e,t,i=Jk().unknown(void 0),o=i.domain,n=i.range,s=0,r=1,a=!1,l=0,c=0,d=.5
7661
+ return n},n.range=function(e){return arguments.length?(i=Array.from(e),n):i.slice()},n.unknown=function(e){return arguments.length?(o=e,n):o},n.copy=function(){return tS(t,i).unknown(o)},Jk.apply(n,arguments),n}function iS(){var e,t,i=tS().unknown(void 0),o=i.domain,n=i.range,s=0,r=1,a=!1,l=0,c=0,d=.5
7627
7662
  function h(){var i=o().length,h=r<s,u=h?r:s,p=h?s:r
7628
7663
  e=(p-u)/Math.max(1,i-l+2*c),a&&(e=Math.floor(e)),u+=(p-u-e*(i-l))*d,t=e*(1-l),a&&(u=Math.round(u),t=Math.round(t))
7629
- var g=Kk(i).map((function(t){return u+e*t}))
7630
- return n(h?g.reverse():g)}return delete i.unknown,i.domain=function(e){return arguments.length?(o(e),h()):o()},i.range=function(e){return arguments.length?([s,r]=e,s=+s,r=+r,h()):[s,r]},i.rangeRound=function(e){return[s,r]=e,s=+s,r=+r,a=!0,h()},i.bandwidth=function(){return t},i.step=function(){return e},i.round=function(e){return arguments.length?(a=!!e,h()):a},i.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},i.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},i.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},i.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},i.copy=function(){return eS(o(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},Yk.apply(h(),arguments)}function tS(e){return+e}var iS=[0,1]
7631
- function oS(e){return e}function nS(e,t){return(t-=e=+e)?function(i){return(i-e)/t}:(i=isNaN(t)?NaN:.5,function(){return i})
7632
- var i}function sS(e,t,i){var o=e[0],n=e[1],s=t[0],r=t[1]
7633
- return n<o?(o=nS(n,o),s=i(r,s)):(o=nS(o,n),s=i(s,r)),function(e){return s(o(e))}}function rS(e,t,i){var o=Math.min(e.length,t.length)-1,n=new Array(o),s=new Array(o),r=-1
7634
- for(e[o]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<o;)n[r]=nS(e[r],e[r+1]),s[r]=i(t[r],t[r+1])
7635
- return function(t){var i=zk(e,t,1,o)-1
7636
- return s[i](n[i](t))}}function aS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function lS(){var e,t,i,o,n,s,r=iS,a=iS,l=sC,c=oS
7664
+ var g=Qk(i).map((function(t){return u+e*t}))
7665
+ return n(h?g.reverse():g)}return delete i.unknown,i.domain=function(e){return arguments.length?(o(e),h()):o()},i.range=function(e){return arguments.length?([s,r]=e,s=+s,r=+r,h()):[s,r]},i.rangeRound=function(e){return[s,r]=e,s=+s,r=+r,a=!0,h()},i.bandwidth=function(){return t},i.step=function(){return e},i.round=function(e){return arguments.length?(a=!!e,h()):a},i.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},i.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},i.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},i.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},i.copy=function(){return iS(o(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},Jk.apply(h(),arguments)}function oS(e){return+e}var nS=[0,1]
7666
+ function sS(e){return e}function rS(e,t){return(t-=e=+e)?function(i){return(i-e)/t}:(i=isNaN(t)?NaN:.5,function(){return i})
7667
+ var i}function aS(e,t,i){var o=e[0],n=e[1],s=t[0],r=t[1]
7668
+ return n<o?(o=rS(n,o),s=i(r,s)):(o=rS(o,n),s=i(s,r)),function(e){return s(o(e))}}function lS(e,t,i){var o=Math.min(e.length,t.length)-1,n=new Array(o),s=new Array(o),r=-1
7669
+ for(e[o]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<o;)n[r]=rS(e[r],e[r+1]),s[r]=i(t[r],t[r+1])
7670
+ return function(t){var i=Nk(e,t,1,o)-1
7671
+ return s[i](n[i](t))}}function cS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function dS(){var e,t,i,o,n,s,r=nS,a=nS,l=aC,c=sS
7637
7672
  function d(){var e,t,i,l=Math.min(r.length,a.length)
7638
- return c!==oS&&(e=r[0],t=r[l-1],e>t&&(i=e,e=t,t=i),c=function(i){return Math.max(e,Math.min(t,i))}),o=l>2?rS:sS,n=s=null,h}function h(t){return null==t||isNaN(t=+t)?i:(n||(n=o(r.map(e),a,l)))(e(c(t)))}return h.invert=function(i){return c(t((s||(s=o(a,r.map(e),eC)))(i)))},h.domain=function(e){return arguments.length?(r=Array.from(e,tS),d()):r.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=rC,d()},h.clamp=function(e){return arguments.length?(c=!!e||oS,d()):c!==oS},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(i=e,h):i},function(i,o){return e=i,t=o,d()}}function cS(){return lS()(oS,oS)}function dS(e,t){if((i=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
7673
+ return c!==sS&&(e=r[0],t=r[l-1],e>t&&(i=e,e=t,t=i),c=function(i){return Math.max(e,Math.min(t,i))}),o=l>2?lS:aS,n=s=null,h}function h(t){return null==t||isNaN(t=+t)?i:(n||(n=o(r.map(e),a,l)))(e(c(t)))}return h.invert=function(i){return c(t((s||(s=o(a,r.map(e),iC)))(i)))},h.domain=function(e){return arguments.length?(r=Array.from(e,oS),d()):r.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=lC,d()},h.clamp=function(e){return arguments.length?(c=!!e||sS,d()):c!==sS},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(i=e,h):i},function(i,o){return e=i,t=o,d()}}function hS(){return dS()(sS,sS)}function uS(e,t){if((i=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
7639
7674
  var i,o=e.slice(0,i)
7640
- return[o.length>1?o[0]+o.slice(2):o,+e.slice(i+1)]}function hS(e){return(e=dS(Math.abs(e)))?e[1]:NaN}var uS,pS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
7641
- function gS(e){if(!(t=pS.exec(e)))throw new Error("invalid format: "+e)
7675
+ return[o.length>1?o[0]+o.slice(2):o,+e.slice(i+1)]}function pS(e){return(e=uS(Math.abs(e)))?e[1]:NaN}var gS,vS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
7676
+ function fS(e){if(!(t=vS.exec(e)))throw new Error("invalid format: "+e)
7642
7677
  var t
7643
- return new vS({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 vS(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 fS(e,t){var i=dS(e,t)
7678
+ return new mS({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 mS(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 bS(e,t){var i=uS(e,t)
7644
7679
  if(!i)return e+""
7645
7680
  var o=i[0],n=i[1]
7646
- return n<0?"0."+new Array(-n).join("0")+o:o.length>n+1?o.slice(0,n+1)+"."+o.slice(n+1):o+new Array(n-o.length+2).join("0")}gS.prototype=vS.prototype,vS.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}
7647
- var mS={"%":(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)=>fS(100*e,t),r:fS,s:function(e,t){var i=dS(e,t)
7681
+ return n<0?"0."+new Array(-n).join("0")+o:o.length>n+1?o.slice(0,n+1)+"."+o.slice(n+1):o+new Array(n-o.length+2).join("0")}fS.prototype=mS.prototype,mS.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}
7682
+ var wS={"%":(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)=>bS(100*e,t),r:bS,s:function(e,t){var i=uS(e,t)
7648
7683
  if(!i)return e+""
7649
- var o=i[0],n=i[1],s=n-(uS=3*Math.max(-8,Math.min(8,Math.floor(n/3))))+1,r=o.length
7650
- return s===r?o:s>r?o+new Array(s-r+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+dS(e,Math.max(0,t+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
7651
- function bS(e){return e}var wS,xS,yS,$S=Array.prototype.map,CS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
7652
- function kS(e){var t,i,o=void 0===e.grouping||void 0===e.thousands?bS:(t=$S.call(e.grouping,Number),i=e.thousands+"",function(e,o){for(var n=e.length,s=[],r=0,a=t[0],l=0;n>0&&a>0&&(l+a+1>o&&(a=Math.max(1,o-l)),s.push(e.substring(n-=a,n+a)),!((l+=a+1)>o));)a=t[r=(r+1)%t.length]
7653
- return s.reverse().join(i)}),n=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?bS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}($S.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+""
7654
- function h(e){var t=(e=gS(e)).fill,i=e.align,h=e.sign,u=e.symbol,p=e.zero,g=e.width,v=e.comma,f=e.precision,m=e.trim,b=e.type
7655
- "n"===b?(v=!0,b="g"):mS[b]||(void 0===f&&(f=12),m=!0,b="g"),(p||"0"===t&&"="===i)&&(p=!0,t="0",i="=")
7656
- var w="$"===u?n:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===u?s:/[%p]/.test(b)?l:"",y=mS[b],$=/[defgprs%]/.test(b)
7684
+ var o=i[0],n=i[1],s=n-(gS=3*Math.max(-8,Math.min(8,Math.floor(n/3))))+1,r=o.length
7685
+ return s===r?o:s>r?o+new Array(s-r+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+uS(e,Math.max(0,t+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
7686
+ function xS(e){return e}var yS,$S,CS,kS=Array.prototype.map,SS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
7687
+ function _S(e){var t,i,o=void 0===e.grouping||void 0===e.thousands?xS:(t=kS.call(e.grouping,Number),i=e.thousands+"",function(e,o){for(var n=e.length,s=[],r=0,a=t[0],l=0;n>0&&a>0&&(l+a+1>o&&(a=Math.max(1,o-l)),s.push(e.substring(n-=a,n+a)),!((l+=a+1)>o));)a=t[r=(r+1)%t.length]
7688
+ return s.reverse().join(i)}),n=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?xS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(kS.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+""
7689
+ function h(e){var t=(e=fS(e)).fill,i=e.align,h=e.sign,u=e.symbol,p=e.zero,g=e.width,v=e.comma,f=e.precision,m=e.trim,b=e.type
7690
+ "n"===b?(v=!0,b="g"):wS[b]||(void 0===f&&(f=12),m=!0,b="g"),(p||"0"===t&&"="===i)&&(p=!0,t="0",i="=")
7691
+ var w="$"===u?n:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===u?s:/[%p]/.test(b)?l:"",y=wS[b],$=/[defgprs%]/.test(b)
7657
7692
  function C(e){var n,s,l,u=w,C=x
7658
7693
  if("c"===b)C=y(e)+C,e=""
7659
7694
  else{var k=(e=+e)<0||1/e<0
@@ -7662,7 +7697,7 @@ break
7662
7697
  case"0":0===n&&(n=o),t=o
7663
7698
  break
7664
7699
  default:if(!+e[o])break e
7665
- n>0&&(n=0)}return n>0?e.slice(0,n)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==h&&(k=!1),u=(k?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?CS[8+uS/3]:"")+C+(k&&"("===h?")":""),$)for(n=-1,s=e.length;++n<s;)if(48>(l=e.charCodeAt(n))||l>57){C=(46===l?r+e.slice(n+1):e.slice(n))+C,e=e.slice(0,n)
7700
+ n>0&&(n=0)}return n>0?e.slice(0,n)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==h&&(k=!1),u=(k?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?SS[8+gS/3]:"")+C+(k&&"("===h?")":""),$)for(n=-1,s=e.length;++n<s;)if(48>(l=e.charCodeAt(n))||l>57){C=(46===l?r+e.slice(n+1):e.slice(n))+C,e=e.slice(0,n)
7666
7701
  break}}v&&!p&&(e=o(e,1/0))
7667
7702
  var S=u.length+e.length+C.length,_=S<g?new Array(g-S+1).join(t):""
7668
7703
  switch(v&&p&&(e=o(_+e,_.length?g-C.length:1/0),_=""),i){case"<":e=u+e+C+_
@@ -7671,19 +7706,19 @@ case"=":e=u+_+e+C
7671
7706
  break
7672
7707
  case"^":e=_.slice(0,S=_.length>>1)+u+e+C+_.slice(S)
7673
7708
  break
7674
- default:e=_+u+e+C}return a(e)}return f=void 0===f?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var i=h(((e=gS(e)).type="f",e)),o=3*Math.max(-8,Math.min(8,Math.floor(hS(t)/3))),n=Math.pow(10,-o),s=CS[8+o/3]
7675
- return function(e){return i(n*e)+s}}}}function SS(e,t,i,o){var n,s=function(e,t,i){i=+i
7676
- const o=(t=+t)<(e=+e),n=o?Wk(t,e,i):Wk(e,t,i)
7709
+ default:e=_+u+e+C}return a(e)}return f=void 0===f?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var i=h(((e=fS(e)).type="f",e)),o=3*Math.max(-8,Math.min(8,Math.floor(pS(t)/3))),n=Math.pow(10,-o),s=SS[8+o/3]
7710
+ return function(e){return i(n*e)+s}}}}function IS(e,t,i,o){var n,s=function(e,t,i){i=+i
7711
+ const o=(t=+t)<(e=+e),n=o?Kk(t,e,i):Kk(e,t,i)
7677
7712
  return(o?-1:1)*(n<0?1/-n:n)}(e,t,i)
7678
- switch((o=gS(null==o?",f":o)).type){case"s":var r=Math.max(Math.abs(e),Math.abs(t))
7679
- return null!=o.precision||isNaN(n=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(hS(t)/3)))-hS(Math.abs(e)))}(s,r))||(o.precision=n),yS(o,r)
7680
- case"":case"e":case"g":case"p":case"r":null!=o.precision||isNaN(n=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,hS(t)-hS(e))+1}(s,Math.max(Math.abs(e),Math.abs(t))))||(o.precision=n-("e"===o.type))
7713
+ switch((o=fS(null==o?",f":o)).type){case"s":var r=Math.max(Math.abs(e),Math.abs(t))
7714
+ return null!=o.precision||isNaN(n=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(pS(t)/3)))-pS(Math.abs(e)))}(s,r))||(o.precision=n),CS(o,r)
7715
+ case"":case"e":case"g":case"p":case"r":null!=o.precision||isNaN(n=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,pS(t)-pS(e))+1}(s,Math.max(Math.abs(e),Math.abs(t))))||(o.precision=n-("e"===o.type))
7681
7716
  break
7682
- case"f":case"%":null!=o.precision||isNaN(n=function(e){return Math.max(0,-hS(Math.abs(e)))}(s))||(o.precision=n-2*("%"===o.type))}return xS(o)}function _S(e){var t=e.domain
7717
+ case"f":case"%":null!=o.precision||isNaN(n=function(e){return Math.max(0,-pS(Math.abs(e)))}(s))||(o.precision=n-2*("%"===o.type))}return $S(o)}function RS(e){var t=e.domain
7683
7718
  return e.ticks=function(e){var i=t()
7684
7719
  return function(e,t,i){if(!((i=+i)>0))return[]
7685
7720
  if((e=+e)==(t=+t))return[e]
7686
- const o=t<e,[n,s,r]=o?Gk(t,e,i):Gk(e,t,i)
7721
+ const o=t<e,[n,s,r]=o?Xk(t,e,i):Xk(e,t,i)
7687
7722
  if(!(s>=n))return[]
7688
7723
  const a=s-n+1,l=new Array(a)
7689
7724
  if(o)if(r<0)for(let e=0;e<a;++e)l[e]=(s-e)/-r
@@ -7691,85 +7726,85 @@ else for(let e=0;e<a;++e)l[e]=(s-e)*r
7691
7726
  else if(r<0)for(let e=0;e<a;++e)l[e]=(n+e)/-r
7692
7727
  else for(let e=0;e<a;++e)l[e]=(n+e)*r
7693
7728
  return l}(i[0],i[i.length-1],null==e?10:e)},e.tickFormat=function(e,i){var o=t()
7694
- return SS(o[0],o[o.length-1],null==e?10:e,i)},e.nice=function(i){null==i&&(i=10)
7729
+ return IS(o[0],o[o.length-1],null==e?10:e,i)},e.nice=function(i){null==i&&(i=10)
7695
7730
  var o,n,s=t(),r=0,a=s.length-1,l=s[r],c=s[a],d=10
7696
- for(c<l&&(n=l,l=c,c=n,n=r,r=a,a=n);d-- >0;){if((n=Wk(l,c,i))===o)return s[r]=l,s[a]=c,t(s)
7731
+ for(c<l&&(n=l,l=c,c=n,n=r,r=a,a=n);d-- >0;){if((n=Kk(l,c,i))===o)return s[r]=l,s[a]=c,t(s)
7697
7732
  if(n>0)l=Math.floor(l/n)*n,c=Math.ceil(c/n)*n
7698
7733
  else{if(!(n<0))break
7699
- l=Math.ceil(l*n)/n,c=Math.floor(c*n)/n}o=n}return e},e}function IS(){var e=cS()
7700
- return e.copy=function(){return aS(e,IS())},Yk.apply(e,arguments),_S(e)}function RS(){var e,t=[],i=[],o=[]
7734
+ l=Math.ceil(l*n)/n,c=Math.floor(c*n)/n}o=n}return e},e}function MS(){var e=hS()
7735
+ return e.copy=function(){return cS(e,MS())},Jk.apply(e,arguments),RS(e)}function AS(){var e,t=[],i=[],o=[]
7701
7736
  function n(){var e=0,n=Math.max(1,i.length)
7702
- for(o=new Array(n-1);++e<n;)o[e-1]=Xk(t,e/n)
7703
- return s}function s(t){return null==t||isNaN(t=+t)?e:i[zk(o,t)]}return s.invertExtent=function(e){var n=i.indexOf(e)
7737
+ for(o=new Array(n-1);++e<n;)o[e-1]=Yk(t,e/n)
7738
+ return s}function s(t){return null==t||isNaN(t=+t)?e:i[Nk(o,t)]}return s.invertExtent=function(e){var n=i.indexOf(e)
7704
7739
  return n<0?[NaN,NaN]:[n>0?o[n-1]:t[0],n<o.length?o[n]:t[t.length-1]]},s.domain=function(e){if(!arguments.length)return t.slice()
7705
7740
  t=[]
7706
7741
  for(let i of e)null==i||isNaN(i=+i)||t.push(i)
7707
- return t.sort(Fk),n()},s.range=function(e){return arguments.length?(i=Array.from(e),n()):i.slice()},s.unknown=function(t){return arguments.length?(e=t,s):e},s.quantiles=function(){return o.slice()},s.copy=function(){return RS().domain(t).range(i).unknown(e)},Yk.apply(s,arguments)}wS=kS({thousands:",",grouping:[3],currency:["$",""]}),xS=wS.format,yS=wS.formatPrefix
7708
- const MS="bottom-left",AS="bottom-right",OS="top-left",ES="top-right",VS="top",FS="show",HS="hide",PS="linear",TS="ordinal"
7709
- class LS{constructor(e){this.defaultPadding=0,this.baseMarginPercentage=.04
7742
+ return t.sort(Pk),n()},s.range=function(e){return arguments.length?(i=Array.from(e),n()):i.slice()},s.unknown=function(t){return arguments.length?(e=t,s):e},s.quantiles=function(){return o.slice()},s.copy=function(){return AS().domain(t).range(i).unknown(e)},Jk.apply(s,arguments)}yS=_S({thousands:",",grouping:[3],currency:["$",""]}),$S=yS.format,CS=yS.formatPrefix
7743
+ const OS="bottom-left",ES="bottom-right",VS="top-left",FS="top-right",HS="top",PS="show",TS="hide",LS="linear",DS="ordinal"
7744
+ class zS{constructor(e){this.defaultPadding=0,this.baseMarginPercentage=.04
7710
7745
  const t={width:e.canvasWidth,height:e.canvasHeight},i=this.calculateGridDimensions(e.dies),o=Math.min(t.width,t.height),n={top:(t.height-o)/2,right:(t.width-o)/2,bottom:(t.height-o)/2,left:(t.width-o)/2},s={top:o*this.baseMarginPercentage,right:o*this.baseMarginPercentage,bottom:o*this.baseMarginPercentage,left:o*this.baseMarginPercentage}
7711
7746
  this.margin=this.calculateMarginAddition(s,n),this.containerDimensions=this.calculateContainerDimensions(t,this.margin)
7712
7747
  const r=Math.min(this.containerDimensions.width,this.containerDimensions.height)
7713
7748
  this.horizontalScale=this.createHorizontalScale(e.quadrant,i,r),this.invertedHorizontalScale=this.createInvertedHorizontalScale(e.quadrant,i,r),this.verticalScale=this.createVerticalScale(e.quadrant,i,r),this.invertedVerticalScale=this.createInvertedVerticalScale(e.quadrant,i,r),this.dieDimensions={width:this.horizontalScale.bandwidth(),height:this.verticalScale.bandwidth()},this.radius=r/2}calculateGridDimensions(e){if(0===e.length||void 0===e[0])return{origin:{x:0,y:0},rows:0,cols:0}
7714
7749
  const t={x:e[0].x,y:e[0].y},i={x:e[0].x,y:e[0].y}
7715
7750
  for(const o of e)o.x<t.x&&(t.x=o.x),o.y<t.y&&(t.y=o.y),o.x>i.x&&(i.x=o.x),o.y>i.y&&(i.y=o.y)
7716
- return{origin:t,rows:i.y-t.y+1,cols:i.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,i){const o=eS().domain(Kk(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
7717
- return e===MS||e===OS?o.range([0,i]):o.range([i,0])}createInvertedHorizontalScale(e,t,i){const o=RS().domain([0,i])
7718
- return e===MS||e===OS?o.range(Kk(t.origin.x,t.origin.x+t.cols)):o.range(Kk(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,i){const o=eS().domain(Kk(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
7719
- return e===MS||e===AS?o.range([i,0]):o.range([0,i])}createInvertedVerticalScale(e,t,i){const o=RS().domain([0,i])
7720
- return e===MS||e===AS?o.range(Kk(t.origin.y,t.origin.y+t.rows).reverse()):o.range(Kk(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 DS{constructor(e,t,i,o,n){this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)",this.d3ColorScale=this.createD3ColorScale(e.colorScale,e.colorScaleMode),this.labelsFontSize=this.calculateLabelsFontSize(o,e.maxCharacters),this.diesRenderInfo=[]
7751
+ return{origin:t,rows:i.y-t.y+1,cols:i.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,i){const o=iS().domain(Qk(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
7752
+ return e===OS||e===VS?o.range([0,i]):o.range([i,0])}createInvertedHorizontalScale(e,t,i){const o=AS().domain([0,i])
7753
+ return e===OS||e===VS?o.range(Qk(t.origin.x,t.origin.x+t.cols)):o.range(Qk(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,i){const o=iS().domain(Qk(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
7754
+ return e===OS||e===ES?o.range([i,0]):o.range([0,i])}createInvertedVerticalScale(e,t,i){const o=AS().domain([0,i])
7755
+ return e===OS||e===ES?o.range(Qk(t.origin.y,t.origin.y+t.rows).reverse()):o.range(Qk(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 BS{constructor(e,t,i,o,n){this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)",this.d3ColorScale=this.createD3ColorScale(e.colorScale,e.colorScaleMode),this.labelsFontSize=this.calculateLabelsFontSize(o,e.maxCharacters),this.diesRenderInfo=[]
7721
7756
  for(const o of e.dies){const s=t(o.x)??0,r=i(o.y)??0
7722
- this.diesRenderInfo.push({x:s+n.right,y:r+n.top,fillStyle:this.calculateFillStyle(o.value,e.colorScaleMode,e.highlightedValues),text:this.buildLabel(o.value,e.maxCharacters,e.dieLabelsHidden,e.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)?IS().domain(e.values.map((e=>+e))).range(e.colors):Jk().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,i,o){if(i||!this.dieHasData(e))return""
7757
+ this.diesRenderInfo.push({x:s+n.right,y:r+n.top,fillStyle:this.calculateFillStyle(o.value,e.colorScaleMode,e.highlightedValues),text:this.buildLabel(o.value,e.maxCharacters,e.dieLabelsHidden,e.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)?MS().domain(e.values.map((e=>+e))).range(e.colors):tS().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,i,o){if(i||!this.dieHasData(e))return""
7723
7758
  const n=`${e}${o}`
7724
- return n.length>t?`${n.substring(0,t)}…`:n}calculateOpacity(e,t){return t.length>0&&!t.some((t=>t===e))?this.nonHighlightedOpacity:1}isColorScaleLinear(e){return e===PS}isColorScaleOrdinal(e){return e===TS}calculateFillStyle(e,t,i){let o=this.emptyDieColor
7759
+ return n.length>t?`${n.substring(0,t)}…`:n}calculateOpacity(e,t){return t.length>0&&!t.some((t=>t===e))?this.nonHighlightedOpacity:1}isColorScaleLinear(e){return e===LS}isColorScaleOrdinal(e){return e===DS}calculateFillStyle(e,t,i){let o=this.emptyDieColor
7725
7760
  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
7726
7761
  let n=Fn(o)
7727
- return null===n?this.emptyDieColor:(n=new _n(n.r,n.g,n.b,this.calculateOpacity(e,i)),n.toStringWebRGBA())}}class zS{constructor(e){this.computations=new LS(e),this.prerendering=new DS(e,this.horizontalScale,this.verticalScale,this.dieDimensions,this.margin),this.dataMap=new Map(e.dies.map((e=>[`${e.x}_${e.y}`,e])))}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}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}}class BS{constructor(e){this.wafermap=e,this.dies=e.dataManager.diesRenderInfo,this.dimensions=e.dataManager.dieDimensions,this.labelFontSize=e.dataManager.labelsFontSize}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?HS:FS,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x),t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y),i=this.wafermap.transform.apply([e+this.wafermap.dataManager.margin.left,t+this.wafermap.dataManager.margin.top])
7762
+ return null===n?this.emptyDieColor:(n=new _n(n.r,n.g,n.b,this.calculateOpacity(e,i)),n.toStringWebRGBA())}}class NS{constructor(e){this.computations=new zS(e),this.prerendering=new BS(e,this.horizontalScale,this.verticalScale,this.dieDimensions,this.margin),this.dataMap=new Map(e.dies.map((e=>[`${e.x}_${e.y}`,e])))}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}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}}class ZS{constructor(e){this.wafermap=e,this.dies=e.dataManager.diesRenderInfo,this.dimensions=e.dataManager.dieDimensions,this.labelFontSize=e.dataManager.labelsFontSize}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?TS:PS,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x),t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y),i=this.wafermap.transform.apply([e+this.wafermap.dataManager.margin.left,t+this.wafermap.dataManager.margin.top])
7728
7763
  return`translate(${i[0]}, ${i[1]})`}return""}renderDies(){let e
7729
7764
  this.dies.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0))
7730
7765
  for(const t of this.dies)e||(this.wafermap.canvasContext.fillStyle=t.fillStyle),e&&t.fillStyle!==e.fillStyle&&t.fillStyle&&(this.wafermap.canvasContext.fillStyle=t.fillStyle),this.wafermap.canvasContext.fillRect(t.x,t.y,this.dimensions.width,this.dimensions.height),e=t}renderText(){const e=this.dimensions.width*this.dimensions.height*(this.wafermap.transform.k||1),t=this.labelFontSize
7731
7766
  this.wafermap.canvasContext.font=`${t.toString()}px sans-serif`,this.wafermap.canvasContext.fillStyle="#ffffff",this.wafermap.canvasContext.textAlign="center",this.wafermap.canvasContext.lineCap="butt"
7732
7767
  const i=this.wafermap.canvasContext.measureText("M")
7733
- if(e>=50)for(const e of this.dies)this.wafermap.canvasContext.fillText(e.text,e.x+this.dimensions.width/2,e.y+this.dimensions.height/2+i.width/2,this.dimensions.width-this.dimensions.width/100*20)}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvasWidth*this.wafermap.transform.k,this.wafermap.canvasHeight*this.wafermap.transform.k)}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)}}class NS{constructor(e){this.wafermap=e,this.zoomTransform=$k,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100,this.zoomBehavior=this.createZoomBehavior(),this.zoomBehavior(r$(this.wafermap.canvas))}rescale(e){const t=e.transform
7734
- t.k===this.minScale?(this.zoomTransform=$k,this.zoomBehavior.transform(r$(this.wafermap.canvas),$k)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}createZoomBehavior(){const e=function(){var e,t,i,o=_k,n=Ik,s=Ok,r=Mk,a=Ak,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=mC,u=Bx("start","zoom","end"),p=500,g=0,v=10
7735
- function f(e){e.property("__zoom",Rk).on("wheel.zoom",C,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",R).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new yk(t,e.x,e.y)}function b(e,t,i){var o=t[0]-i[0]*e.k,n=t[1]-i[1]*e.k
7736
- return o===e.x&&n===e.y?e:new yk(e.k,o,n)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,i,o){e.on("start.zoom",(function(){y(this,arguments).event(o).start()})).on("interrupt.zoom end.zoom",(function(){y(this,arguments).event(o).end()})).tween("zoom",(function(){var e=this,s=arguments,r=y(e,s).event(o),a=n.apply(e,s),l=null==i?w(a):"function"==typeof i?i.apply(e,s):i,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,s):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
7768
+ if(e>=50)for(const e of this.dies)this.wafermap.canvasContext.fillText(e.text,e.x+this.dimensions.width/2,e.y+this.dimensions.height/2+i.width/2,this.dimensions.width-this.dimensions.width/100*20)}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvasWidth*this.wafermap.transform.k,this.wafermap.canvasHeight*this.wafermap.transform.k)}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)}}class qS{constructor(e){this.wafermap=e,this.zoomTransform=kk,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100,this.zoomBehavior=this.createZoomBehavior(),this.zoomBehavior(l$(this.wafermap.canvas))}rescale(e){const t=e.transform
7769
+ t.k===this.minScale?(this.zoomTransform=kk,this.zoomBehavior.transform(l$(this.wafermap.canvas),kk)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}createZoomBehavior(){const e=function(){var e,t,i,o=Rk,n=Mk,s=Vk,r=Ok,a=Ek,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=wC,u=Zx("start","zoom","end"),p=500,g=0,v=10
7770
+ function f(e){e.property("__zoom",Ak).on("wheel.zoom",C,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",R).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new Ck(t,e.x,e.y)}function b(e,t,i){var o=t[0]-i[0]*e.k,n=t[1]-i[1]*e.k
7771
+ return o===e.x&&n===e.y?e:new Ck(e.k,o,n)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,i,o){e.on("start.zoom",(function(){y(this,arguments).event(o).start()})).on("interrupt.zoom end.zoom",(function(){y(this,arguments).event(o).end()})).tween("zoom",(function(){var e=this,s=arguments,r=y(e,s).event(o),a=n.apply(e,s),l=null==i?w(a):"function"==typeof i?i.apply(e,s):i,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,s):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
7737
7772
  return function(e){if(1===e)e=u
7738
7773
  else{var t=p(e),i=c/t[2]
7739
- e=new yk(i,l[0]-t[0]*i,l[1]-t[1]*i)}r.zoom(null,e)}}))}function y(e,t,i){return!i&&e.__zooming||new $(e,t)}function $(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=n.apply(e,t),this.taps=0}function C(e,...t){if(o.apply(this,arguments)){var i=y(this,t).event(e),n=this.__zoom,a=Math.max(l[0],Math.min(l[1],n.k*Math.pow(2,r.apply(this,arguments)))),d=a$(e)
7774
+ e=new Ck(i,l[0]-t[0]*i,l[1]-t[1]*i)}r.zoom(null,e)}}))}function y(e,t,i){return!i&&e.__zooming||new $(e,t)}function $(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=n.apply(e,t),this.taps=0}function C(e,...t){if(o.apply(this,arguments)){var i=y(this,t).event(e),n=this.__zoom,a=Math.max(l[0],Math.min(l[1],n.k*Math.pow(2,r.apply(this,arguments)))),d=c$(e)
7740
7775
  if(i.wheel)i.mouse[0][0]===d[0]&&i.mouse[0][1]===d[1]||(i.mouse[1]=n.invert(i.mouse[0]=d)),clearTimeout(i.wheel)
7741
7776
  else{if(n.k===a)return
7742
- i.mouse=[d,n.invert(d)],zC(this),i.start()}Sk(e),i.wheel=setTimeout(h,150),i.zoom("mouse",s(b(m(n,a),i.mouse[0],i.mouse[1]),i.extent,c))}function h(){i.wheel=null,i.end()}}function k(e,...t){if(!i&&o.apply(this,arguments)){var n=e.currentTarget,r=y(this,t,!0).event(e),a=r$(e.view).on("mousemove.zoom",u,!0).on("mouseup.zoom",p,!0),l=a$(e,n),d=e.clientX,h=e.clientY
7743
- d$(e.view),kk(e),r.mouse=[l,this.__zoom.invert(l)],zC(this),r.start()}function u(e){if(Sk(e),!r.moved){var t=e.clientX-d,i=e.clientY-h
7744
- r.moved=t*t+i*i>g}r.event(e).zoom("mouse",s(b(r.that.__zoom,r.mouse[0]=a$(e,n),r.mouse[1]),r.extent,c))}function p(e){a.on("mousemove.zoom mouseup.zoom",null),h$(e.view,r.moved),Sk(e),r.event(e).end()}}function S(e,...t){if(o.apply(this,arguments)){var i=this.__zoom,r=a$(e.changedTouches?e.changedTouches[0]:e,this),a=i.invert(r),l=i.k*(e.shiftKey?.5:2),h=s(b(m(i,l),r,a),n.apply(this,t),c)
7745
- Sk(e),d>0?r$(this).transition().duration(d).call(x,h,r,e):r$(this).call(f.transform,h,r,e)}}function _(i,...n){if(o.apply(this,arguments)){var s,r,a,l,c=i.touches,d=c.length,h=y(this,n,i.changedTouches.length===d).event(i)
7746
- for(kk(i),r=0;r<d;++r)l=[l=a$(a=c[r],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,s=!0,h.taps=1+!!e)
7747
- e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),zC(this),h.start())}}function I(e,...t){if(this.__zooming){var i,o,n,r,a=y(this,t).event(e),l=e.changedTouches,d=l.length
7748
- for(Sk(e),i=0;i<d;++i)n=a$(o=l[i],this),a.touch0&&a.touch0[2]===o.identifier?a.touch0[0]=n:a.touch1&&a.touch1[2]===o.identifier&&(a.touch1[0]=n)
7777
+ i.mouse=[d,n.invert(d)],NC(this),i.start()}Ik(e),i.wheel=setTimeout(h,150),i.zoom("mouse",s(b(m(n,a),i.mouse[0],i.mouse[1]),i.extent,c))}function h(){i.wheel=null,i.end()}}function k(e,...t){if(!i&&o.apply(this,arguments)){var n=e.currentTarget,r=y(this,t,!0).event(e),a=l$(e.view).on("mousemove.zoom",u,!0).on("mouseup.zoom",p,!0),l=c$(e,n),d=e.clientX,h=e.clientY
7778
+ u$(e.view),_k(e),r.mouse=[l,this.__zoom.invert(l)],NC(this),r.start()}function u(e){if(Ik(e),!r.moved){var t=e.clientX-d,i=e.clientY-h
7779
+ r.moved=t*t+i*i>g}r.event(e).zoom("mouse",s(b(r.that.__zoom,r.mouse[0]=c$(e,n),r.mouse[1]),r.extent,c))}function p(e){a.on("mousemove.zoom mouseup.zoom",null),p$(e.view,r.moved),Ik(e),r.event(e).end()}}function S(e,...t){if(o.apply(this,arguments)){var i=this.__zoom,r=c$(e.changedTouches?e.changedTouches[0]:e,this),a=i.invert(r),l=i.k*(e.shiftKey?.5:2),h=s(b(m(i,l),r,a),n.apply(this,t),c)
7780
+ Ik(e),d>0?l$(this).transition().duration(d).call(x,h,r,e):l$(this).call(f.transform,h,r,e)}}function _(i,...n){if(o.apply(this,arguments)){var s,r,a,l,c=i.touches,d=c.length,h=y(this,n,i.changedTouches.length===d).event(i)
7781
+ for(_k(i),r=0;r<d;++r)l=[l=c$(a=c[r],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,s=!0,h.taps=1+!!e)
7782
+ e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),NC(this),h.start())}}function I(e,...t){if(this.__zooming){var i,o,n,r,a=y(this,t).event(e),l=e.changedTouches,d=l.length
7783
+ for(Ik(e),i=0;i<d;++i)n=c$(o=l[i],this),a.touch0&&a.touch0[2]===o.identifier?a.touch0[0]=n:a.touch1&&a.touch1[2]===o.identifier&&(a.touch1[0]=n)
7749
7784
  if(o=a.that.__zoom,a.touch1){var h=a.touch0[0],u=a.touch0[1],p=a.touch1[0],g=a.touch1[1],v=(v=p[0]-h[0])*v+(v=p[1]-h[1])*v,f=(f=g[0]-u[0])*f+(f=g[1]-u[1])*f
7750
7785
  o=m(o,Math.sqrt(v/f)),n=[(h[0]+p[0])/2,(h[1]+p[1])/2],r=[(u[0]+g[0])/2,(u[1]+g[1])/2]}else{if(!a.touch0)return
7751
7786
  n=a.touch0[0],r=a.touch0[1]}a.zoom("touch",s(b(o,n,r),a.extent,c))}}function R(e,...o){if(this.__zooming){var n,s,r=y(this,o).event(e),a=e.changedTouches,l=a.length
7752
- for(kk(e),i&&clearTimeout(i),i=setTimeout((function(){i=null}),p),n=0;n<l;++n)s=a[n],r.touch0&&r.touch0[2]===s.identifier?delete r.touch0:r.touch1&&r.touch1[2]===s.identifier&&delete r.touch1
7787
+ for(_k(e),i&&clearTimeout(i),i=setTimeout((function(){i=null}),p),n=0;n<l;++n)s=a[n],r.touch0&&r.touch0[2]===s.identifier?delete r.touch0:r.touch1&&r.touch1[2]===s.identifier&&delete r.touch1
7753
7788
  if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0])
7754
- else if(r.end(),2===r.taps&&(s=a$(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<v)){var c=r$(this).on("dblclick.zoom")
7789
+ else if(r.end(),2===r.taps&&(s=c$(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<v)){var c=l$(this).on("dblclick.zoom")
7755
7790
  c&&c.apply(this,arguments)}}}return f.transform=function(e,t,i,o){var n=e.selection?e.selection():e
7756
- n.property("__zoom",Rk),e!==n?x(e,t,i,o):n.interrupt().each((function(){y(this,arguments).event(o).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},f.scaleBy=function(e,t,i,o){f.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),i,o)},f.scaleTo=function(e,t,i,o){f.transform(e,(function(){var e=n.apply(this,arguments),o=this.__zoom,r=null==i?w(e):"function"==typeof i?i.apply(this,arguments):i,a=o.invert(r),l="function"==typeof t?t.apply(this,arguments):t
7791
+ n.property("__zoom",Ak),e!==n?x(e,t,i,o):n.interrupt().each((function(){y(this,arguments).event(o).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},f.scaleBy=function(e,t,i,o){f.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),i,o)},f.scaleTo=function(e,t,i,o){f.transform(e,(function(){var e=n.apply(this,arguments),o=this.__zoom,r=null==i?w(e):"function"==typeof i?i.apply(this,arguments):i,a=o.invert(r),l="function"==typeof t?t.apply(this,arguments):t
7757
7792
  return s(b(m(o,l),r,a),e,c)}),i,o)},f.translateBy=function(e,t,i,o){f.transform(e,(function(){return s(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof i?i.apply(this,arguments):i),n.apply(this,arguments),c)}),null,o)},f.translateTo=function(e,t,i,o,r){f.transform(e,(function(){var e=n.apply(this,arguments),r=this.__zoom,a=null==o?w(e):"function"==typeof o?o.apply(this,arguments):o
7758
- return s($k.translate(a[0],a[1]).scale(r.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof i?-i.apply(this,arguments):-i),e,c)}),o,r)},$.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=r$(this.that).datum()
7759
- u.call(e,this.that,new xk(e,{sourceEvent:this.sourceEvent,target:f,type:e,transform:this.that.__zoom,dispatch:u}),t)}},f.wheelDelta=function(e){return arguments.length?(r="function"==typeof e?e:wk(+e),f):r},f.filter=function(e){return arguments.length?(o="function"==typeof e?e:wk(!!e),f):o},f.touchable=function(e){return arguments.length?(a="function"==typeof e?e:wk(!!e),f):a},f.extent=function(e){return arguments.length?(n="function"==typeof e?e:wk([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),f):n},f.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],f):[l[0],l[1]]},f.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],f):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},f.constrain=function(e){return arguments.length?(s=e,f):s},f.duration=function(e){return arguments.length?(d=+e,f):d},f.interpolate=function(e){return arguments.length?(h=e,f):h},f.on=function(){var e=u.on.apply(u,arguments)
7760
- return e===u?f:e},f.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,f):Math.sqrt(g)},f.tapDistance=function(e){return arguments.length?(v=+e,f):v},f}().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=>Ck(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)}))
7761
- return e}getZoomMax(e,t){return Math.ceil(t/e*100)}}class ZS{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
7793
+ return s(kk.translate(a[0],a[1]).scale(r.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof i?-i.apply(this,arguments):-i),e,c)}),o,r)},$.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=l$(this.that).datum()
7794
+ u.call(e,this.that,new $k(e,{sourceEvent:this.sourceEvent,target:f,type:e,transform:this.that.__zoom,dispatch:u}),t)}},f.wheelDelta=function(e){return arguments.length?(r="function"==typeof e?e:yk(+e),f):r},f.filter=function(e){return arguments.length?(o="function"==typeof e?e:yk(!!e),f):o},f.touchable=function(e){return arguments.length?(a="function"==typeof e?e:yk(!!e),f):a},f.extent=function(e){return arguments.length?(n="function"==typeof e?e:yk([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),f):n},f.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],f):[l[0],l[1]]},f.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],f):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},f.constrain=function(e){return arguments.length?(s=e,f):s},f.duration=function(e){return arguments.length?(d=+e,f):d},f.interpolate=function(e){return arguments.length?(h=e,f):h},f.on=function(){var e=u.on.apply(u,arguments)
7795
+ return e===u?f:e},f.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,f):Math.sqrt(g)},f.tapDistance=function(e){return arguments.length?(v=+e,f):v},f}().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=>Sk(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)}))
7796
+ return e}getZoomMax(e,t){return Math.ceil(t/e*100)}}class jS{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
7762
7797
  if(!this.hoversOverDie(t))return void(this.wafermap.hoverDie=void 0)
7763
7798
  const i=this.wafermap.transform.invert([t.x,t.y]),o=this.calculateDieCoordinates({x:i[0],y:i[1]})
7764
- this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(o)}mouseout(e){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e){const t=this.wafermap.quadrant,i=t===MS||t===OS?Math.floor:Math.ceil,o=t===OS||t===ES?Math.floor:Math.ceil
7799
+ this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(o)}mouseout(e){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e){const t=this.wafermap.quadrant,i=t===OS||t===VS?Math.floor:Math.ceil,o=t===VS||t===FS?Math.floor:Math.ceil
7765
7800
  return{x:i(this.wafermap.dataManager.invertedHorizontalScale(e.x-this.wafermap.dataManager.margin.left)),y:o(this.wafermap.dataManager.invertedVerticalScale(e.y-this.wafermap.dataManager.margin.top))}}hoversOverDie(e){const t=this.wafermap.canvasContext.getImageData(e.x,e.y,1,1).data
7766
7801
  let i=0
7767
7802
  for(const e of t)i+=e
7768
- return i>0}}class qS{constructor(e){this.wafermap=e,this.onWheelMove=e=>{e.preventDefault()},this.onMouseMove=e=>{this.hoverHandler.mousemove(e)},this.onMouseOut=e=>{this.hoverHandler.mouseout(e)},this.zoomHandler=new NS(e),this.hoverHandler=new ZS(e),this.attachEvents()}detachEvents(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.removeEventListener("wheel",this.onWheelMove)}attachEvents(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.addEventListener("wheel",this.onWheelMove,{passive:!1})}}class jS extends _t{constructor(){super(...arguments),this.quadrant=OS,this.orientation=VS,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=PS,this.renderQueued=!1,this.transform=$k,this.hoverTransform="",this.hoverOpacity=HS,this.hoverWidth=0,this.hoverHeight=0,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]}}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver=this.createResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}render(){this.renderQueued=!1,this.initializeInternalModules(),this.renderer?.drawWafer()}queueRender(){this.$fastController.isConnected&&(this.renderQueued||(this.renderQueued=!0,u.queueUpdate((()=>this.render()))))}queueRenderHover(){this.$fastController.isConnected&&u.queueUpdate((()=>this.renderer?.renderHover()))}initializeInternalModules(){this.eventCoordinator?.detachEvents(),this.dataManager=new zS(this),this.renderer=new BS(this),this.eventCoordinator=new qS(this)}createResizeObserver(){const e=new ResizeObserver((e=>{const t=e[0]
7803
+ return i>0}}class US{constructor(e){this.wafermap=e,this.onWheelMove=e=>{e.preventDefault()},this.onMouseMove=e=>{this.hoverHandler.mousemove(e)},this.onMouseOut=e=>{this.hoverHandler.mouseout(e)},this.zoomHandler=new qS(e),this.hoverHandler=new jS(e),this.attachEvents()}detachEvents(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.removeEventListener("wheel",this.onWheelMove)}attachEvents(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.addEventListener("wheel",this.onWheelMove,{passive:!1})}}class GS extends _t{constructor(){super(...arguments),this.quadrant=VS,this.orientation=HS,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=LS,this.renderQueued=!1,this.transform=kk,this.hoverTransform="",this.hoverOpacity=TS,this.hoverWidth=0,this.hoverHeight=0,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]}}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver=this.createResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}render(){this.renderQueued=!1,this.initializeInternalModules(),this.renderer?.drawWafer()}queueRender(){this.$fastController.isConnected&&(this.renderQueued||(this.renderQueued=!0,u.queueUpdate((()=>this.render()))))}queueRenderHover(){this.$fastController.isConnected&&u.queueUpdate((()=>this.renderer?.renderHover()))}initializeInternalModules(){this.eventCoordinator?.detachEvents(),this.dataManager=new NS(this),this.renderer=new ZS(this),this.eventCoordinator=new US(this)}createResizeObserver(){const e=new ResizeObserver((e=>{const t=e[0]
7769
7804
  if(void 0===t)return
7770
7805
  const{height:i,width:o}=t.contentRect
7771
7806
  this.canvas.width=o,this.canvas.height=i,this.canvasWidth=o,this.canvasHeight=i}))
7772
- return e.observe(this),e}quadrantChanged(){this.queueRender()}orientationChanged(){this.queueRender()}maxCharactersChanged(){this.queueRender()}dieLabelsHiddenChanged(){this.queueRender()}dieLabelsSuffixChanged(){this.queueRender()}colorScaleModeChanged(){this.queueRender()}highlightedValuesChanged(){this.queueRender()}diesChanged(){this.queueRender()}colorScaleChanged(){this.queueRender()}transformChanged(){this.queueRender()}canvasWidthChanged(){this.queueRender()}canvasHeightChanged(){this.queueRender()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.queueRenderHover()}}e([ne],jS.prototype,"quadrant",void 0),e([ne],jS.prototype,"orientation",void 0),e([ne({attribute:"max-characters",converter:ie})],jS.prototype,"maxCharacters",void 0),e([ne({attribute:"die-labels-hidden",mode:"boolean"})],jS.prototype,"dieLabelsHidden",void 0),e([ne({attribute:"die-labels-suffix"})],jS.prototype,"dieLabelsSuffix",void 0),e([ne({attribute:"color-scale-mode"})],jS.prototype,"colorScaleMode",void 0),e([f],jS.prototype,"canvasWidth",void 0),e([f],jS.prototype,"canvasHeight",void 0),e([f],jS.prototype,"transform",void 0),e([f],jS.prototype,"hoverTransform",void 0),e([f],jS.prototype,"hoverOpacity",void 0),e([f],jS.prototype,"hoverWidth",void 0),e([f],jS.prototype,"hoverHeight",void 0),e([f],jS.prototype,"hoverDie",void 0),e([f],jS.prototype,"highlightedValues",void 0),e([f],jS.prototype,"dies",void 0),e([f],jS.prototype,"colorScale",void 0)
7773
- const US=jS.compose({baseName:"wafer-map",template:Ek,styles:Vk})
7774
- no.getOrCreate().withPrefix("nimble").register(US()),no.tagFor(jS)}()
7807
+ return e.observe(this),e}quadrantChanged(){this.queueRender()}orientationChanged(){this.queueRender()}maxCharactersChanged(){this.queueRender()}dieLabelsHiddenChanged(){this.queueRender()}dieLabelsSuffixChanged(){this.queueRender()}colorScaleModeChanged(){this.queueRender()}highlightedValuesChanged(){this.queueRender()}diesChanged(){this.queueRender()}colorScaleChanged(){this.queueRender()}transformChanged(){this.queueRender()}canvasWidthChanged(){this.queueRender()}canvasHeightChanged(){this.queueRender()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.queueRenderHover()}}e([ne],GS.prototype,"quadrant",void 0),e([ne],GS.prototype,"orientation",void 0),e([ne({attribute:"max-characters",converter:ie})],GS.prototype,"maxCharacters",void 0),e([ne({attribute:"die-labels-hidden",mode:"boolean"})],GS.prototype,"dieLabelsHidden",void 0),e([ne({attribute:"die-labels-suffix"})],GS.prototype,"dieLabelsSuffix",void 0),e([ne({attribute:"color-scale-mode"})],GS.prototype,"colorScaleMode",void 0),e([f],GS.prototype,"canvasWidth",void 0),e([f],GS.prototype,"canvasHeight",void 0),e([f],GS.prototype,"transform",void 0),e([f],GS.prototype,"hoverTransform",void 0),e([f],GS.prototype,"hoverOpacity",void 0),e([f],GS.prototype,"hoverWidth",void 0),e([f],GS.prototype,"hoverHeight",void 0),e([f],GS.prototype,"hoverDie",void 0),e([f],GS.prototype,"highlightedValues",void 0),e([f],GS.prototype,"dies",void 0),e([f],GS.prototype,"colorScale",void 0)
7808
+ const WS=GS.compose({baseName:"wafer-map",template:Fk,styles:Hk})
7809
+ no.getOrCreate().withPrefix("nimble").register(WS()),no.tagFor(GS)}()
7775
7810
  //# sourceMappingURL=all-components-bundle.min.js.map