@ni/nimble-components 25.1.0 → 26.0.0

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 (43) hide show
  1. package/dist/all-components-bundle.js +175 -289
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +447 -460
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/all-components.d.ts +0 -1
  6. package/dist/esm/all-components.js +0 -1
  7. package/dist/esm/all-components.js.map +1 -1
  8. package/dist/esm/mapping/text/index.d.ts +1 -1
  9. package/dist/esm/mapping/text/index.js +1 -1
  10. package/dist/esm/mapping/text/index.js.map +1 -1
  11. package/dist/esm/rich-text/editor/template.js +1 -1
  12. package/dist/esm/rich-text/editor/template.js.map +1 -1
  13. package/dist/esm/src/all-components.d.ts +0 -1
  14. package/dist/esm/src/mapping/text/index.d.ts +1 -1
  15. package/dist/esm/src/table-column/enum-base/index.d.ts +1 -1
  16. package/dist/esm/src/table-column/enum-base/models/table-column-enum-base-validator.d.ts +1 -1
  17. package/dist/esm/table/components/cell/template.js +2 -2
  18. package/dist/esm/table/components/cell/template.js.map +1 -1
  19. package/dist/esm/table/template.js +2 -2
  20. package/dist/esm/table/template.js.map +1 -1
  21. package/dist/esm/table-column/enum-base/index.d.ts +1 -1
  22. package/dist/esm/table-column/enum-base/index.js +1 -1
  23. package/dist/esm/table-column/enum-base/index.js.map +1 -1
  24. package/dist/esm/table-column/enum-base/models/table-column-enum-base-validator.d.ts +1 -1
  25. package/dist/esm/table-column/enum-base/models/table-column-enum-base-validator.js +1 -1
  26. package/dist/esm/table-column/enum-base/models/table-column-enum-base-validator.js.map +1 -1
  27. package/package.json +1 -1
  28. package/dist/esm/src/table-column/enum-text/cell-view/index.d.ts +0 -14
  29. package/dist/esm/src/table-column/enum-text/group-header-view/index.d.ts +0 -15
  30. package/dist/esm/src/table-column/enum-text/index.d.ts +0 -40
  31. package/dist/esm/src/table-column/enum-text/models/table-column-enum-text-validator.d.ts +0 -15
  32. package/dist/esm/table-column/enum-text/cell-view/index.d.ts +0 -14
  33. package/dist/esm/table-column/enum-text/cell-view/index.js +0 -29
  34. package/dist/esm/table-column/enum-text/cell-view/index.js.map +0 -1
  35. package/dist/esm/table-column/enum-text/group-header-view/index.d.ts +0 -15
  36. package/dist/esm/table-column/enum-text/group-header-view/index.js +0 -26
  37. package/dist/esm/table-column/enum-text/group-header-view/index.js.map +0 -1
  38. package/dist/esm/table-column/enum-text/index.d.ts +0 -40
  39. package/dist/esm/table-column/enum-text/index.js +0 -50
  40. package/dist/esm/table-column/enum-text/index.js.map +0 -1
  41. package/dist/esm/table-column/enum-text/models/table-column-enum-text-validator.d.ts +0 -15
  42. package/dist/esm/table-column/enum-text/models/table-column-enum-text-validator.js +0 -34
  43. package/dist/esm/table-column/enum-text/models/table-column-enum-text-validator.js.map +0 -1
@@ -7272,7 +7272,7 @@ const P$="nimble-rich-text-mention-listbox",L$=Z`
7272
7272
  ${Pt("mentionListbox")}
7273
7273
  @mention-selected=${(t,e)=>t.onMentionSelect(e.event)}
7274
7274
  >
7275
- ${Zt((t=>Array.from(t.activeMappingConfigs?.values()??[])),Z`
7275
+ ${Zt((t=>Array.from(t.activeMappingConfigs?t.activeMappingConfigs.values():[])),Z`
7276
7276
  <${Mv} value="${t=>t.mentionHref}">${t=>t.displayName}</${Mv}>
7277
7277
  `,{recycle:!1})}
7278
7278
  </${P$}>
@@ -10395,10 +10395,10 @@ const lR="nimble-table-header",cR=xt`
10395
10395
  @toggle="${(t,e)=>t.onActionMenuToggle(e.event)}"
10396
10396
  @click="${(t,e)=>e.event.stopPropagation()}"
10397
10397
  class="action-menu"
10398
- title="${t=>t.actionMenuLabel??cv.getValueFor(t)}"
10398
+ title="${t=>t.actionMenuLabel?t.actionMenuLabel:cv.getValueFor(t)}"
10399
10399
  >
10400
10400
  <${Fg} slot="start"></${Fg}>
10401
- ${t=>t.actionMenuLabel??cv.getValueFor(t)}
10401
+ ${t=>t.actionMenuLabel?t.actionMenuLabel:cv.getValueFor(t)}
10402
10402
  <slot name="cellActionMenu" slot="menu"></slot>
10403
10403
  </${qv}>
10404
10404
  `)}
@@ -10645,7 +10645,7 @@ const SR="nimble-table-group-row",$R=Z`
10645
10645
  --ni-private-table-header-container-margin-right: ${t=>t.virtualizer.headerContainerMarginRight}px;
10646
10646
  --ni-private-table-scroll-height: ${t=>t.virtualizer.scrollHeight}px;
10647
10647
  --ni-private-table-row-container-top: ${t=>t.virtualizer.rowContainerYOffset}px;
10648
- --ni-private-table-row-grid-columns: ${t=>t.rowGridColumns??""};
10648
+ --ni-private-table-row-grid-columns: ${t=>t.rowGridColumns?t.rowGridColumns:""};
10649
10649
  --ni-private-table-cursor-override: ${t=>t.layoutManager.isColumnBeingSized?"col-resize":"default"};
10650
10650
  --ni-private-table-scrollable-min-width: ${t=>t.tableScrollableMinWidth}px;
10651
10651
  --ni-private-glass-overlay-pointer-events: ${t=>t.layoutManager.isColumnBeingSized?"none":"default"};
@@ -10663,7 +10663,7 @@ const SR="nimble-table-group-row",$R=Z`
10663
10663
  <span class="checkbox-container">
10664
10664
  <${Gm}
10665
10665
  ${Pt("selectionCheckbox")}
10666
- class="${t=>`selection-checkbox ${t.selectionMode??""}`}"
10666
+ class="${t=>`selection-checkbox ${t.selectionMode?t.selectionMode:""}`}"
10667
10667
  @change="${(t,e)=>t.onAllRowsSelectionChange(e.event)}"
10668
10668
  title="${t=>pv.getValueFor(t)}"
10669
10669
  aria-label="${t=>pv.getValueFor(t)}"
@@ -11194,42 +11194,7 @@ wi.getOrCreate().withPrefix("nimble").register(NF())
11194
11194
  class PF extends(yF(bF)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),_a.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),_a.unsubscribe(this.langSubscriber,this)}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-duration-text-cell-view",groupHeaderViewTag:"nimble-table-column-duration-text-group-header-view",delegatedEvents:[],sortOperation:jO,validator:new QR([])}}updateColumnConfig(){const t={formatter:new FF(_a.getValueFor(this)),placeholder:this.placeholder}
11195
11195
  this.columnInternals.columnConfig=t}}const LF=PF.compose({baseName:"table-column-duration-text",template:iF,styles:nF})
11196
11196
  wi.getOrCreate().withPrefix("nimble").register(LF())
11197
- const zF=(t,e)=>{if("number"===e){const e=rt.fromView(t)
11198
- return null===e?void 0:e}return"boolean"===e?!1!==t&&"false"!==t&&(!0===t||"true"===t||void 0):t?.toString()??void 0}
11199
- class VF extends eR{constructor(){super(...arguments),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(t,e){t instanceof _v&&"string"==typeof e&&this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.validator.validate(this.mappings,this.keyType),this.columnInternals.columnConfig=this.checkValidity()?this.createColumnConfig(this.getMappingConfigs()):void 0}getMappingConfigs(){const t=new Map
11200
- return this.mappings.forEach((e=>{const n=zF(e.key,this.keyType)
11201
- if(void 0===n)throw Error("Key was invalid for type. Validation should have prevented this.")
11202
- const i=this.createMappingConfig(e)
11203
- t.set(n,i)})),t}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}mappingsChanged(){this.updateColumnConfig(),this.observeMappings()}keyTypeChanged(){this.updateColumnConfig()}removeMappingObservers(){this.mappingNotifiers.forEach((t=>{t.unsubscribe(this)})),this.mappingNotifiers=[]}observeMappings(){this.removeMappingObservers()
11204
- for(const t of this.mappings){const e=m.getNotifier(t)
11205
- e.subscribe(this),this.mappingNotifiers.push(e)}}}t([g],VF.prototype,"mappings",void 0),t([lt({attribute:"field-name"})],VF.prototype,"fieldName",void 0),t([lt({attribute:"key-type"})],VF.prototype,"keyType",void 0)
11206
- const HF=xt`
11207
- ${nF}
11208
-
11209
- slot[name='mapping'] {
11210
- display: none;
11211
- }
11212
- `,BF=Z`${iF}<slot ${Xt("mappings")} name="mapping"></slot>`,qF=["invalidMappingKeyValueForType","duplicateMappingKey","missingKeyValue"]
11213
- class UF extends QR{constructor(t){super(t)}validate(t,e){this.untrackAll()
11214
- const n=t.map((t=>t.key))
11215
- this.validateKeyValuesForType(n,e),this.validateUniqueKeys(n,e),this.validateNoMissingKeys(t)}validateKeyValuesForType(t,e){const n=t.some((t=>void 0!==t&&void 0===zF(t,e)))
11216
- this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(t,e){const n=t.map((t=>zF(t,e))),i=new Set(n).size!==n.length
11217
- this.setConditionValue("duplicateMappingKey",i)}validateNoMissingKeys(t){const e=t.some((t=>void 0===t.key))
11218
- this.setConditionValue("missingKeyValue",e)}}const jF=[...qF,"unsupportedMappingType","missingTextValue"]
11219
- class WF extends UF{constructor(){super(jF)}static isSupportedMappingElement(t){return t instanceof Iv}validate(t,e){super.validate(t,e),this.validateMappingTypes(t),this.validateNoMissingText(t)}validateNoMissingText(t){const e=t.filter(WF.isSupportedMappingElement).some((t=>void 0===t.text))
11220
- this.setConditionValue("missingTextValue",e)}validateMappingTypes(t){const e=t.every(WF.isSupportedMappingElement)
11221
- this.setConditionValue("unsupportedMappingType",!e)}}class ZF{constructor(t){this.text=t}}class GF extends ZF{}const KF=class extends MF{updateText(){const t=this.cellRecord?.value
11222
- if(null==t)return void(this.text="")
11223
- const e=this.columnConfig?.mappingConfigs.get(t)
11224
- this.text=e instanceof GF&&e.text?e.text:""}}.compose({baseName:"table-column-enum-text-cell-view",template:SF,styles:$F})
11225
- wi.getOrCreate().withPrefix("nimble").register(KF())
11226
- const JF=class extends hF{updateText(){const t=this.columnConfig?.mappingConfigs.get(this.groupHeaderValue)
11227
- this.text=t instanceof GF&&t.text?t.text:""}}.compose({baseName:"table-column-enum-text-group-header-view",template:uF,styles:pF})
11228
- wi.getOrCreate().withPrefix("nimble").register(JF())
11229
- class XF extends(sF(oF(VF))){getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-enum-text-cell-view",groupHeaderViewTag:"nimble-table-column-enum-text-group-header-view",delegatedEvents:[],sortOperation:jO,validator:new WF}}createColumnConfig(t){return{mappingConfigs:t}}createMappingConfig(t){if(t instanceof Iv)return new GF(t.text)
11230
- throw new Error("Unsupported mapping")}}const YF=XF.compose({baseName:"table-column-enum-text",template:BF,styles:HF})
11231
- wi.getOrCreate().withPrefix("nimble").register(YF())
11232
- const QF=Z`<span
11197
+ const zF=Z`<span
11233
11198
  ${dg("hasOverflow")}
11234
11199
  class="header-content"
11235
11200
  title=${t=>t.hasOverflow&&t.headerTextContent?t.headerTextContent:null}
@@ -11237,13 +11202,13 @@ const QF=Z`<span
11237
11202
  <slot ${Pt("contentSlot")}></slot>
11238
11203
  <slot ${Xt({property:"unitElements",filter:Gt()})} name="unit"></slot>
11239
11204
  </span>`
11240
- const tN=class extends hF{updateText(){this.text=this.columnConfig?.formatter?.format(this.groupHeaderValue)??""}}.compose({baseName:"table-column-number-text-group-header-view",template:uF,styles:pF})
11241
- wi.getOrCreate().withPrefix("nimble").register(tN())
11242
- const eN=class extends MF{columnConfigChanged(){super.columnConfigChanged(),this.alignment=this.columnConfig?.alignment??CF}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:SF,styles:$F})
11243
- wi.getOrCreate().withPrefix("nimble").register(eN())
11244
- const nN={default:void 0,decimal:"decimal"},iN="left",oN="right"
11245
- class sN{format(t){if("number"!=typeof t)return""
11246
- try{return this.tryFormat(t)}catch{return""}}}class rN{constructor(t){this.locale=t.locale,this.intlNumberFormatOptions=t.intlNumberFormatOptions}}class aN extends rN{constructor(t,e){super(t),this.formatter=new Intl.NumberFormat(this.locale,{...e,...this.intlNumberFormatOptions})}static createFactory(t){return e=>new aN(e,t)}format(t){return this.formatter.format(t)}}class lN{constructor(t,e){this.scaleFactor=t,this.scaledUnitFormatFactory=e}isBase(){return 1===this.scaleFactor}}class cN{constructor(t){this.supportedScaledUnits=t
11205
+ const VF=class extends hF{updateText(){this.text=this.columnConfig?.formatter?.format(this.groupHeaderValue)??""}}.compose({baseName:"table-column-number-text-group-header-view",template:uF,styles:pF})
11206
+ wi.getOrCreate().withPrefix("nimble").register(VF())
11207
+ const HF=class extends MF{columnConfigChanged(){super.columnConfigChanged(),this.alignment=this.columnConfig?.alignment??CF}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:SF,styles:$F})
11208
+ wi.getOrCreate().withPrefix("nimble").register(HF())
11209
+ const BF={default:void 0,decimal:"decimal"},qF="left",UF="right"
11210
+ class jF{format(t){if("number"!=typeof t)return""
11211
+ try{return this.tryFormat(t)}catch{return""}}}class WF{constructor(t){this.locale=t.locale,this.intlNumberFormatOptions=t.intlNumberFormatOptions}}class ZF extends WF{constructor(t,e){super(t),this.formatter=new Intl.NumberFormat(this.locale,{...e,...this.intlNumberFormatOptions})}static createFactory(t){return e=>new ZF(e,t)}format(t){return this.formatter.format(t)}}class GF{constructor(t,e){this.scaleFactor=t,this.scaledUnitFormatFactory=e}isBase(){return 1===this.scaleFactor}}class KF{constructor(t){this.supportedScaledUnits=t
11247
11212
  const e=t.every(((t,e,n)=>0===e||n[e-1].scaleFactor<t.scaleFactor))
11248
11213
  if(!e)throw new Error("Supported scaled units must have unique and ordered scale factors")
11249
11214
  const n=t.find((t=>t.isBase()))
@@ -11252,39 +11217,60 @@ this.supportedScaledUnits=t,this.baseScaledUnit=n}scaleNumber(t){const e=Math.ab
11252
11217
  if(1===this.supportedScaledUnits.length||0===e||e===1/0||Number.isNaN(e))return{scaledValue:t,scaledUnit:this.baseScaledUnit}
11253
11218
  for(let n=this.supportedScaledUnits.length-1;n>=0;n-=1){const i=this.supportedScaledUnits[n]
11254
11219
  if(e/i.scaleFactor>=1)return{scaledValue:t/i.scaleFactor,scaledUnit:i}}const n=this.supportedScaledUnits[0]
11255
- return{scaledValue:t/n.scaleFactor,scaledUnit:n}}}const dN=new class extends cN{constructor(){super([new lN(1,aN.createFactory({}))])}},hN="negative"
11256
- class uN extends sN{constructor(t,{unitScale:e=dN}={unitScale:dN}){super(),this.defaultIntlNumberFormatOptions={maximumSignificantDigits:uN.maximumDigits,maximumFractionDigits:uN.maximumDigits-1,roundingPriority:"lessPrecision",signDisplay:hN},this.defaultScaledUnitFormatters=new Map,this.exponentialIntlNumberFormatOptions={maximumSignificantDigits:uN.maximumDigits,notation:"scientific",signDisplay:hN}
11220
+ return{scaledValue:t/n.scaleFactor,scaledUnit:n}}}const JF=new class extends KF{constructor(){super([new GF(1,ZF.createFactory({}))])}},XF="negative"
11221
+ class YF extends jF{constructor(t,{unitScale:e=JF}={unitScale:JF}){super(),this.defaultIntlNumberFormatOptions={maximumSignificantDigits:YF.maximumDigits,maximumFractionDigits:YF.maximumDigits-1,roundingPriority:"lessPrecision",signDisplay:XF},this.defaultScaledUnitFormatters=new Map,this.exponentialIntlNumberFormatOptions={maximumSignificantDigits:YF.maximumDigits,notation:"scientific",signDisplay:XF}
11257
11222
  for(const n of e.supportedScaledUnits)this.defaultScaledUnitFormatters.set(n.scaleFactor,n.scaledUnitFormatFactory({locale:t,intlNumberFormatOptions:this.defaultIntlNumberFormatOptions}))
11258
11223
  this.exponentialScaledUnitFormatter=e.baseScaledUnit.scaledUnitFormatFactory({locale:t,intlNumberFormatOptions:this.exponentialIntlNumberFormatOptions}),this.unitScale=e}resolvedOptions(){return{unitScale:this.unitScale}}tryFormat(t){const{scaledValue:e,scaledUnit:n}=this.unitScale.scaleNumber(t),i=Math.abs(e)
11259
- return 0!==i&&(i>=uN.exponentialUpperBound||i<uN.exponentialLowerBound)?this.exponentialScaledUnitFormatter.format(t):this.defaultScaledUnitFormatters.get(n.scaleFactor).format(e)}}uN.maximumDigits=6,uN.exponentialLowerBound=995e-6,uN.exponentialUpperBound=999999.5
11260
- class pN extends sN{constructor(t,{minimumFractionDigits:e=0,maximumFractionDigits:n=Math.max(3,e),unitScale:i=dN}={minimumFractionDigits:0,maximumFractionDigits:3,unitScale:dN}){super(),this.scaledUnitFormatters=new Map
11224
+ return 0!==i&&(i>=YF.exponentialUpperBound||i<YF.exponentialLowerBound)?this.exponentialScaledUnitFormatter.format(t):this.defaultScaledUnitFormatters.get(n.scaleFactor).format(e)}}YF.maximumDigits=6,YF.exponentialLowerBound=995e-6,YF.exponentialUpperBound=999999.5
11225
+ class QF extends jF{constructor(t,{minimumFractionDigits:e=0,maximumFractionDigits:n=Math.max(3,e),unitScale:i=JF}={minimumFractionDigits:0,maximumFractionDigits:3,unitScale:JF}){super(),this.scaledUnitFormatters=new Map
11261
11226
  const o={maximumFractionDigits:n,minimumFractionDigits:e,signDisplay:"negative"}
11262
11227
  for(const e of i.supportedScaledUnits)this.scaledUnitFormatters.set(e.scaleFactor,e.scaledUnitFormatFactory({locale:t,intlNumberFormatOptions:o}))
11263
11228
  this.unitScale=i,this.minimumFractionDigits=e,this.maximumFractionDigits=n}resolvedOptions(){return{unitScale:this.unitScale,maximumFractionDigits:this.maximumFractionDigits,minimumFractionDigits:this.minimumFractionDigits}}tryFormat(t){const{scaledValue:e,scaledUnit:n}=this.unitScale.scaleNumber(t)
11264
- return this.scaledUnitFormatters.get(n.scaleFactor).format(e)}}class fN extends sN{constructor(t,e){super(),this._resolvedOptions=this.resolveOptions(e),this.resolvedUnitFormat=this.resolveUnitFormat(t,this._resolvedOptions)}resolvedOptions(){return{...this._resolvedOptions}}optionsMatch(t){const e=this.resolveOptions(t)
11229
+ return this.scaledUnitFormatters.get(n.scaleFactor).format(e)}}class tN extends jF{constructor(t,e){super(),this._resolvedOptions=this.resolveOptions(e),this.resolvedUnitFormat=this.resolveUnitFormat(t,this._resolvedOptions)}resolvedOptions(){return{...this._resolvedOptions}}optionsMatch(t){const e=this.resolveOptions(t)
11265
11230
  return this._resolvedOptions.decimalDigits===e.decimalDigits&&this._resolvedOptions.decimalMaximumDigits===e.decimalMaximumDigits&&this._resolvedOptions.numberTextFormat===e.numberTextFormat&&this._resolvedOptions.unitScale===e.unitScale}tryFormat(t){return this.resolvedUnitFormat.format(t)}resolveUnitFormat(t,e){const{numberTextFormat:n,decimalMaximumDigits:i,decimalDigits:o,unitScale:s}=e
11266
- return n===nN.default?new uN(t,{unitScale:s}):new pN(t,"number"==typeof o?{minimumFractionDigits:o,maximumFractionDigits:o,unitScale:s}:{minimumFractionDigits:0,maximumFractionDigits:i,unitScale:s})}resolveOptions(t){if(!t||t.numberTextFormat===nN.default)return{numberTextFormat:nN.default,decimalDigits:void 0,decimalMaximumDigits:void 0,unitScale:t?.unitScale??dN}
11231
+ return n===BF.default?new YF(t,{unitScale:s}):new QF(t,"number"==typeof o?{minimumFractionDigits:o,maximumFractionDigits:o,unitScale:s}:{minimumFractionDigits:0,maximumFractionDigits:i,unitScale:s})}resolveOptions(t){if(!t||t.numberTextFormat===BF.default)return{numberTextFormat:BF.default,decimalDigits:void 0,decimalMaximumDigits:void 0,unitScale:t?.unitScale??JF}
11267
11232
  const e="number"==typeof t.decimalDigits,n="number"==typeof t.decimalMaximumDigits
11268
11233
  if(e&&n)throw new Error("decimalDigits and decimalMaximumDigits are mutually exclusive. Do not specify both.")
11269
- return e||n?{numberTextFormat:nN.decimal,decimalDigits:t.decimalDigits,decimalMaximumDigits:t.decimalMaximumDigits,unitScale:t.unitScale??dN}:{numberTextFormat:nN.decimal,decimalDigits:fN.defaultDecimalDigits,decimalMaximumDigits:void 0,unitScale:t.unitScale??dN}}}fN.defaultDecimalDigits=2
11270
- const mN=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits","moreThanOneUnitSpecified"]
11271
- class gN extends QR{constructor(){super(mN)}validateDecimalDigits(t,e){const n=!!(t===nN.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
11272
- this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(t,e){const n=!!(t===nN.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
11273
- this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(t,e,n){const i=!!(t===nN.decimal)&&("number"==typeof e&&"number"==typeof n)
11234
+ return e||n?{numberTextFormat:BF.decimal,decimalDigits:t.decimalDigits,decimalMaximumDigits:t.decimalMaximumDigits,unitScale:t.unitScale??JF}:{numberTextFormat:BF.decimal,decimalDigits:tN.defaultDecimalDigits,decimalMaximumDigits:void 0,unitScale:t.unitScale??JF}}}tN.defaultDecimalDigits=2
11235
+ const eN=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits","moreThanOneUnitSpecified"]
11236
+ class nN extends QR{constructor(){super(eN)}validateDecimalDigits(t,e){const n=!!(t===BF.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
11237
+ this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(t,e){const n=!!(t===BF.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
11238
+ this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(t,e,n){const i=!!(t===BF.decimal)&&("number"==typeof e&&"number"==typeof n)
11274
11239
  this.setConditionValue("decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits",i)}validateAtMostOneUnit(t){const e=t.length>1
11275
- this.setConditionValue("moreThanOneUnitSpecified",e)}isInvalidDecimalDigitsValue(t){return t<0||t>20}}class vN extends Ve{}t([g],vN.prototype,"resolvedUnitScale",void 0)
11276
- class bN extends(yF(bF)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}},this.unitSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),_a.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),_a.unsubscribe(this.langSubscriber,this)}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-number-text-cell-view",groupHeaderViewTag:"nimble-table-column-number-text-group-header-view",delegatedEvents:[],sortOperation:jO,validator:new gN}}updateUnitNotifier(){if(this.unitNotifier&&(this.unitNotifier.unsubscribe(this.unitSubscriber),this.unitNotifier=void 0),this.unit){const t=m.getNotifier(this.unit)
11277
- t.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=t}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}unitElementsChanged(){this.updateUnit()}async updateUnit(){this.unit=void 0,this.unitElements&&(await fI(this.unitElements),this.unit=this.unitElements.find((t=>t instanceof vN))),this.updateUnitNotifier()}unitChanged(){this.updateColumnConfig()}updateColumnConfig(){const t=this.columnInternals.validator
11240
+ this.setConditionValue("moreThanOneUnitSpecified",e)}isInvalidDecimalDigitsValue(t){return t<0||t>20}}class iN extends Ve{}t([g],iN.prototype,"resolvedUnitScale",void 0)
11241
+ class oN extends(yF(bF)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}},this.unitSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),_a.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),_a.unsubscribe(this.langSubscriber,this)}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-number-text-cell-view",groupHeaderViewTag:"nimble-table-column-number-text-group-header-view",delegatedEvents:[],sortOperation:jO,validator:new nN}}updateUnitNotifier(){if(this.unitNotifier&&(this.unitNotifier.unsubscribe(this.unitSubscriber),this.unitNotifier=void 0),this.unit){const t=m.getNotifier(this.unit)
11242
+ t.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=t}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}unitElementsChanged(){this.updateUnit()}async updateUnit(){this.unit=void 0,this.unitElements&&(await fI(this.unitElements),this.unit=this.unitElements.find((t=>t instanceof iN))),this.updateUnitNotifier()}unitChanged(){this.updateColumnConfig()}updateColumnConfig(){const t=this.columnInternals.validator
11278
11243
  if(t.validateDecimalDigits(this.format,this.decimalDigits),t.validateDecimalMaximumDigits(this.format,this.decimalMaximumDigits),t.validateNoMutuallyExclusiveProperties(this.format,this.decimalDigits,this.decimalMaximumDigits),t.validateAtMostOneUnit(this.unitElements??[]),t.isValid()){const t={formatter:this.createFormatter(),alignment:this.determineCellContentAlignment(),placeholder:this.placeholder}
11279
11244
  this.columnInternals.columnConfig=t}else this.columnInternals.columnConfig=void 0}createFormatter(){const t=this.unit?.resolvedUnitScale
11280
- return new fN(_a.getValueFor(this),{numberTextFormat:this.format??void 0,decimalDigits:this.decimalDigits??void 0,decimalMaximumDigits:this.decimalMaximumDigits??void 0,unitScale:t})}determineCellContentAlignment(){return this.alignment===iN?CF:this.alignment===oN?kF:this.format!==nN.decimal||"number"==typeof this.decimalMaximumDigits||this.unit?CF:kF}}t([lt],bN.prototype,"format",void 0),t([lt],bN.prototype,"alignment",void 0),t([lt({attribute:"decimal-digits",converter:rt})],bN.prototype,"decimalDigits",void 0),t([lt({attribute:"decimal-maximum-digits",converter:rt})],bN.prototype,"decimalMaximumDigits",void 0),t([g],bN.prototype,"unitElements",void 0),t([g],bN.prototype,"unit",void 0)
11281
- const yN=bN.compose({baseName:"table-column-number-text",template:QF,styles:nF})
11282
- wi.getOrCreate().withPrefix("nimble").register(yN())
11283
- const wN=[...qF,"unsupportedMappingType","invalidIconName","missingTextValue"]
11284
- class xN extends UF{constructor(){super(wN)}static isIconMappingElement(t){return t instanceof Tv}static isSupportedMappingElement(t){return t instanceof Tv||t instanceof Rv||t instanceof Iv}static hasUnresolvedIcon(t){return"string"==typeof t.icon&&void 0===t.resolvedIcon}validate(t,e){super.validate(t,e),this.validateMappingTypes(t),this.validateIconNames(t),this.validateNoMissingText(t)}validateIconNames(t){const e=t.filter(xN.isIconMappingElement).some(xN.hasUnresolvedIcon)
11285
- this.setConditionValue("invalidIconName",e)}validateNoMissingText(t){const e=t.filter(xN.isSupportedMappingElement).some((t=>void 0===t.text))
11286
- this.setConditionValue("missingTextValue",e)}validateMappingTypes(t){const e=t.every(xN.isSupportedMappingElement)
11287
- this.setConditionValue("unsupportedMappingType",!e)}}const CN=xt`
11245
+ return new tN(_a.getValueFor(this),{numberTextFormat:this.format??void 0,decimalDigits:this.decimalDigits??void 0,decimalMaximumDigits:this.decimalMaximumDigits??void 0,unitScale:t})}determineCellContentAlignment(){return this.alignment===qF?CF:this.alignment===UF?kF:this.format!==BF.decimal||"number"==typeof this.decimalMaximumDigits||this.unit?CF:kF}}t([lt],oN.prototype,"format",void 0),t([lt],oN.prototype,"alignment",void 0),t([lt({attribute:"decimal-digits",converter:rt})],oN.prototype,"decimalDigits",void 0),t([lt({attribute:"decimal-maximum-digits",converter:rt})],oN.prototype,"decimalMaximumDigits",void 0),t([g],oN.prototype,"unitElements",void 0),t([g],oN.prototype,"unit",void 0)
11246
+ const sN=oN.compose({baseName:"table-column-number-text",template:zF,styles:nF})
11247
+ wi.getOrCreate().withPrefix("nimble").register(sN())
11248
+ const rN=(t,e)=>{if("number"===e){const e=rt.fromView(t)
11249
+ return null===e?void 0:e}return"boolean"===e?!1!==t&&"false"!==t&&(!0===t||"true"===t||void 0):t?.toString()??void 0}
11250
+ class aN extends eR{constructor(){super(...arguments),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(t,e){t instanceof _v&&"string"==typeof e&&this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.validator.validate(this.mappings,this.keyType),this.columnInternals.columnConfig=this.checkValidity()?this.createColumnConfig(this.getMappingConfigs()):void 0}getMappingConfigs(){const t=new Map
11251
+ return this.mappings.forEach((e=>{const n=rN(e.key,this.keyType)
11252
+ if(void 0===n)throw Error("Key was invalid for type. Validation should have prevented this.")
11253
+ const i=this.createMappingConfig(e)
11254
+ t.set(n,i)})),t}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}mappingsChanged(){this.updateColumnConfig(),this.observeMappings()}keyTypeChanged(){this.updateColumnConfig()}removeMappingObservers(){this.mappingNotifiers.forEach((t=>{t.unsubscribe(this)})),this.mappingNotifiers=[]}observeMappings(){this.removeMappingObservers()
11255
+ for(const t of this.mappings){const e=m.getNotifier(t)
11256
+ e.subscribe(this),this.mappingNotifiers.push(e)}}}t([g],aN.prototype,"mappings",void 0),t([lt({attribute:"field-name"})],aN.prototype,"fieldName",void 0),t([lt({attribute:"key-type"})],aN.prototype,"keyType",void 0)
11257
+ const lN=xt`
11258
+ ${nF}
11259
+
11260
+ slot[name='mapping'] {
11261
+ display: none;
11262
+ }
11263
+ `,cN=Z`${iF}<slot ${Xt("mappings")} name="mapping"></slot>`
11264
+ class dN extends QR{constructor(t){super(t)}validate(t,e){this.untrackAll()
11265
+ const n=t.map((t=>t.key))
11266
+ this.validateKeyValuesForType(n,e),this.validateUniqueKeys(n,e),this.validateNoMissingKeys(t)}validateKeyValuesForType(t,e){const n=t.some((t=>void 0!==t&&void 0===rN(t,e)))
11267
+ this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(t,e){const n=t.map((t=>rN(t,e))),i=new Set(n).size!==n.length
11268
+ this.setConditionValue("duplicateMappingKey",i)}validateNoMissingKeys(t){const e=t.some((t=>void 0===t.key))
11269
+ this.setConditionValue("missingKeyValue",e)}}const hN=["invalidMappingKeyValueForType","duplicateMappingKey","missingKeyValue","unsupportedMappingType","invalidIconName","missingTextValue"]
11270
+ class uN extends dN{constructor(){super(hN)}static isIconMappingElement(t){return t instanceof Tv}static isSupportedMappingElement(t){return t instanceof Tv||t instanceof Rv||t instanceof Iv}static hasUnresolvedIcon(t){return"string"==typeof t.icon&&void 0===t.resolvedIcon}validate(t,e){super.validate(t,e),this.validateMappingTypes(t),this.validateIconNames(t),this.validateNoMissingText(t)}validateIconNames(t){const e=t.filter(uN.isIconMappingElement).some(uN.hasUnresolvedIcon)
11271
+ this.setConditionValue("invalidIconName",e)}validateNoMissingText(t){const e=t.filter(uN.isSupportedMappingElement).some((t=>void 0===t.text))
11272
+ this.setConditionValue("missingTextValue",e)}validateMappingTypes(t){const e=t.every(uN.isSupportedMappingElement)
11273
+ this.setConditionValue("unsupportedMappingType",!e)}}const pN=xt`
11288
11274
  ${Oo("inline-flex")}
11289
11275
 
11290
11276
  :host {
@@ -11306,7 +11292,7 @@ this.setConditionValue("unsupportedMappingType",!e)}}const CN=xt`
11306
11292
  overflow: hidden;
11307
11293
  text-overflow: ellipsis;
11308
11294
  }
11309
- `,kN=Z`
11295
+ `,fN=Z`
11310
11296
  ${Ht((t=>t.visualizationTemplate),Z`
11311
11297
  <span class="reserve-icon-size">
11312
11298
  ${t=>t.visualizationTemplate}
@@ -11317,9 +11303,10 @@ this.setConditionValue("unsupportedMappingType",!e)}}const CN=xt`
11317
11303
  title="${t=>t.hasOverflow&&t.text?t.text:null}"
11318
11304
  class="text"
11319
11305
  >${t=>t.text}</span>
11320
- `,SN={default:void 0,error:"error",warning:"warning",success:"success",information:"information"},$N=Z` `
11321
- class MN extends ZF{constructor(t,e,n,i){var o
11322
- super(n),this.severity=e,this.textHidden=i,this.iconTemplate=void 0===(o=t)?$N:Z`
11306
+ `,mN={default:void 0,error:"error",warning:"warning",success:"success",information:"information"}
11307
+ class gN{constructor(t){this.text=t}}const vN=Z` `
11308
+ class bN extends gN{constructor(t,e,n,i){var o
11309
+ super(n),this.severity=e,this.textHidden=i,this.iconTemplate=void 0===(o=t)?vN:Z`
11323
11310
  <${o}
11324
11311
  title="${t=>t.textHidden?t.text:""}"
11325
11312
  role="img"
@@ -11328,7 +11315,7 @@ super(n),this.severity=e,this.textHidden=i,this.iconTemplate=void 0===(o=t)?$N:Z
11328
11315
  severity="${t=>t.severity}"
11329
11316
  >
11330
11317
  </${o}>
11331
- `}}const _N=Z`
11318
+ `}}const yN=Z`
11332
11319
  <${IT}
11333
11320
  title="${t=>t.textHidden?t.text:""}"
11334
11321
  aria-label="${t=>t.text}"
@@ -11336,12 +11323,12 @@ super(n),this.severity=e,this.textHidden=i,this.iconTemplate=void 0===(o=t)?$N:Z
11336
11323
  >
11337
11324
  </${IT}>
11338
11325
  `
11339
- class EN extends ZF{constructor(t,e){super(t),this.textHidden=e,this.spinnerTemplate=_N}}class IN extends hF{constructor(){super(...arguments),this.textHidden=!1}updateText(){if(this.resetState(),!this.columnConfig)return
11326
+ class wN extends gN{constructor(t,e){super(t),this.textHidden=e,this.spinnerTemplate=yN}}class xN extends gN{}class CN extends hF{constructor(){super(...arguments),this.textHidden=!1}updateText(){if(this.resetState(),!this.columnConfig)return
11340
11327
  const t=this.groupHeaderValue,e=this.columnConfig.mappingConfigs.get(t)
11341
- e instanceof MN?(this.severity=e.severity,this.text=e.text??"",this.visualizationTemplate=e.iconTemplate):e instanceof EN?(this.text=e.text??"",this.visualizationTemplate=e.spinnerTemplate):e instanceof GF&&(this.text=e.text??"")}resetState(){this.text="",this.visualizationTemplate=void 0,this.severity=SN.default}}t([g],IN.prototype,"severity",void 0),t([g],IN.prototype,"visualizationTemplate",void 0)
11342
- const DN=IN.compose({baseName:"table-column-icon-group-header-view",template:kN,styles:CN})
11343
- wi.getOrCreate().withPrefix("nimble").register(DN())
11344
- const AN=xt`
11328
+ e instanceof bN?(this.severity=e.severity,this.text=e.text??"",this.visualizationTemplate=e.iconTemplate):e instanceof wN?(this.text=e.text??"",this.visualizationTemplate=e.spinnerTemplate):e instanceof xN&&(this.text=e.text??"")}resetState(){this.text="",this.visualizationTemplate=void 0,this.severity=mN.default}}t([g],CN.prototype,"severity",void 0),t([g],CN.prototype,"visualizationTemplate",void 0)
11329
+ const kN=CN.compose({baseName:"table-column-icon-group-header-view",template:fN,styles:pN})
11330
+ wi.getOrCreate().withPrefix("nimble").register(kN())
11331
+ const SN=xt`
11345
11332
  ${Oo("inline-flex")}
11346
11333
 
11347
11334
  :host {
@@ -11363,7 +11350,7 @@ const AN=xt`
11363
11350
  overflow: hidden;
11364
11351
  text-overflow: ellipsis;
11365
11352
  }
11366
- `,TN=Z`
11353
+ `,$N=Z`
11367
11354
  ${Ht((t=>t.visualizationTemplate),Z`
11368
11355
  <span class="reserve-icon-size">
11369
11356
  ${t=>t.visualizationTemplate}
@@ -11379,23 +11366,23 @@ const AN=xt`
11379
11366
  </span>
11380
11367
  `)}
11381
11368
  `
11382
- class ON extends XO{constructor(){super(...arguments),this.textHidden=!1,this.hasOverflow=!1}columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.resetState(),!this.columnConfig||!this.cellRecord)return
11369
+ class MN extends XO{constructor(){super(...arguments),this.textHidden=!1,this.hasOverflow=!1}columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.resetState(),!this.columnConfig||!this.cellRecord)return
11383
11370
  const t=this.cellRecord.value
11384
11371
  if(null==t)return
11385
11372
  const e=this.columnConfig.mappingConfigs.get(t)
11386
- e instanceof MN?(this.severity=e.severity,this.text=e.text,this.visualizationTemplate=e.iconTemplate,this.textHidden=e.textHidden):e instanceof EN?(this.text=e.text,this.visualizationTemplate=e.spinnerTemplate,this.textHidden=e.textHidden):e instanceof GF&&(this.text=e.text,this.textHidden=!1)}resetState(){this.text=void 0,this.textHidden=!1,this.visualizationTemplate=void 0,this.severity=SN.default}}t([g],ON.prototype,"severity",void 0),t([g],ON.prototype,"text",void 0),t([g],ON.prototype,"visualizationTemplate",void 0),t([g],ON.prototype,"textHidden",void 0),t([g],ON.prototype,"hasOverflow",void 0)
11387
- const RN=ON.compose({baseName:"table-column-icon-cell-view",template:TN,styles:AN})
11388
- wi.getOrCreate().withPrefix("nimble").register(RN())
11389
- class FN extends(sF(oF(VF))){getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-icon-cell-view",groupHeaderViewTag:"nimble-table-column-icon-group-header-view",delegatedEvents:[],sortOperation:jO,validator:new xN}}createColumnConfig(t){return{mappingConfigs:t}}createMappingConfig(t){if(t instanceof Tv)return new MN(t.resolvedIcon,t.severity,t.text,t.textHidden)
11390
- if(t instanceof Rv)return new EN(t.text,t.textHidden)
11391
- if(t instanceof Iv)return new GF(t.text)
11392
- throw new Error("Unsupported mapping")}}const NN=FN.compose({baseName:"table-column-icon",template:BF,styles:HF})
11393
- wi.getOrCreate().withPrefix("nimble").register(NN())
11394
- const PN=class extends MF{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:SF,styles:$F})
11395
- wi.getOrCreate().withPrefix("nimble").register(PN())
11396
- class LN extends(yF(bF)){placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder}}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:mF,delegatedEvents:[],sortOperation:WO,validator:new QR([])}}}const zN=LN.compose({baseName:"table-column-text",template:iF,styles:nF})
11397
- wi.getOrCreate().withPrefix("nimble").register(zN())
11398
- const VN=xt`
11373
+ e instanceof bN?(this.severity=e.severity,this.text=e.text,this.visualizationTemplate=e.iconTemplate,this.textHidden=e.textHidden):e instanceof wN?(this.text=e.text,this.visualizationTemplate=e.spinnerTemplate,this.textHidden=e.textHidden):e instanceof xN&&(this.text=e.text,this.textHidden=!1)}resetState(){this.text=void 0,this.textHidden=!1,this.visualizationTemplate=void 0,this.severity=mN.default}}t([g],MN.prototype,"severity",void 0),t([g],MN.prototype,"text",void 0),t([g],MN.prototype,"visualizationTemplate",void 0),t([g],MN.prototype,"textHidden",void 0),t([g],MN.prototype,"hasOverflow",void 0)
11374
+ const _N=MN.compose({baseName:"table-column-icon-cell-view",template:$N,styles:SN})
11375
+ wi.getOrCreate().withPrefix("nimble").register(_N())
11376
+ class EN extends(sF(oF(aN))){getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-icon-cell-view",groupHeaderViewTag:"nimble-table-column-icon-group-header-view",delegatedEvents:[],sortOperation:jO,validator:new uN}}createColumnConfig(t){return{mappingConfigs:t}}createMappingConfig(t){if(t instanceof Tv)return new bN(t.resolvedIcon,t.severity,t.text,t.textHidden)
11377
+ if(t instanceof Rv)return new wN(t.text,t.textHidden)
11378
+ if(t instanceof Iv)return new xN(t.text)
11379
+ throw new Error("Unsupported mapping")}}const IN=EN.compose({baseName:"table-column-icon",template:cN,styles:lN})
11380
+ wi.getOrCreate().withPrefix("nimble").register(IN())
11381
+ const DN=class extends MF{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:SF,styles:$F})
11382
+ wi.getOrCreate().withPrefix("nimble").register(DN())
11383
+ class AN extends(yF(bF)){placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder}}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:mF,delegatedEvents:[],sortOperation:WO,validator:new QR([])}}}const TN=AN.compose({baseName:"table-column-text",template:iF,styles:nF})
11384
+ wi.getOrCreate().withPrefix("nimble").register(TN())
11385
+ const ON=xt`
11399
11386
  ${Oo("grid")}
11400
11387
 
11401
11388
  :host {
@@ -11423,7 +11410,7 @@ const VN=xt`
11423
11410
  overflow: auto;
11424
11411
  }
11425
11412
  `
11426
- const HN=class extends ro{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:ro,template:(t,e)=>Z`
11413
+ const RN=class extends ro{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:ro,template:(t,e)=>Z`
11427
11414
  <template class="${t=>t.orientation}">
11428
11415
  ${ne(0,e)}
11429
11416
  <div class="tablist" part="tablist" role="tablist">
@@ -11442,9 +11429,9 @@ const HN=class extends ro{constructor(){super(),this.activeindicator=!1}}.compos
11442
11429
  <slot name="tabpanel" ${Xt("tabpanels")}></slot>
11443
11430
  </div>
11444
11431
  </template>
11445
- `,styles:VN})
11446
- wi.getOrCreate().withPrefix("nimble").register(HN())
11447
- const BN=xt`
11432
+ `,styles:ON})
11433
+ wi.getOrCreate().withPrefix("nimble").register(RN())
11434
+ const FN=xt`
11448
11435
  ${Oo("flex")}
11449
11436
 
11450
11437
  :host {
@@ -11462,15 +11449,15 @@ const BN=xt`
11462
11449
  rgba(${Ha}, 0.3);
11463
11450
  margin: ${sl} ${rl};
11464
11451
  }
11465
- `,qN=Z`
11452
+ `,NN=Z`
11466
11453
  <template slot="end">
11467
11454
  <div class="separator"></div>
11468
11455
  <slot></slot>
11469
11456
  </template>
11470
11457
  `
11471
- const UN=class extends Ve{}.compose({baseName:"tabs-toolbar",template:qN,styles:BN})
11472
- wi.getOrCreate().withPrefix("nimble").register(UN())
11473
- const jN="outline",WN="block",ZN=xt`
11458
+ const PN=class extends Ve{}.compose({baseName:"tabs-toolbar",template:NN,styles:FN})
11459
+ wi.getOrCreate().withPrefix("nimble").register(PN())
11460
+ const LN="outline",zN="block",VN=xt`
11474
11461
  ${Oo("inline-flex")}
11475
11462
  ${rg}
11476
11463
 
@@ -11610,12 +11597,12 @@ const jN="outline",WN="block",ZN=xt`
11610
11597
  top: ${rl};
11611
11598
  right: var(--ni-private-scrollbar-width);
11612
11599
  }
11613
- `.withBehaviors(sh(jN,xt`
11600
+ `.withBehaviors(sh(LN,xt`
11614
11601
  .control {
11615
11602
  border-color: rgba(${Ha}, 0.3);
11616
11603
  background-color: transparent;
11617
11604
  }
11618
- `),sh(WN,xt`
11605
+ `),sh(zN,xt`
11619
11606
  .control {
11620
11607
  background-color: rgba(${Ha}, 0.1);
11621
11608
  }
@@ -11633,8 +11620,8 @@ const jN="outline",WN="block",ZN=xt`
11633
11620
  border-bottom-color: ${Ba};
11634
11621
  }
11635
11622
  `))
11636
- class GN extends ho{constructor(){super(...arguments),this.appearance=jN,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(t,e){super.valueChanged(t,e),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}}t([lt],GN.prototype,"appearance",void 0),t([lt({attribute:"error-text"})],GN.prototype,"errorText",void 0),t([lt({attribute:"error-visible",mode:"boolean"})],GN.prototype,"errorVisible",void 0),t([g],GN.prototype,"scrollbarWidth",void 0)
11637
- const KN=GN.compose({baseName:"text-area",baseClass:ho,template:()=>Z`
11623
+ class HN extends ho{constructor(){super(...arguments),this.appearance=LN,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(t,e){super.valueChanged(t,e),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}}t([lt],HN.prototype,"appearance",void 0),t([lt({attribute:"error-text"})],HN.prototype,"errorText",void 0),t([lt({attribute:"error-visible",mode:"boolean"})],HN.prototype,"errorVisible",void 0),t([g],HN.prototype,"scrollbarWidth",void 0)
11624
+ const BN=HN.compose({baseName:"text-area",baseClass:ho,template:()=>Z`
11638
11625
  <label
11639
11626
  part="label"
11640
11627
  for="control"
@@ -11691,9 +11678,9 @@ const KN=GN.compose({baseName:"text-area",baseClass:ho,template:()=>Z`
11691
11678
  ></${hm}>
11692
11679
  ${Qm}
11693
11680
  </div>
11694
- `,styles:ZN,shadowOptions:{delegatesFocus:!0}})
11695
- wi.getOrCreate().withPrefix("nimble").register(KN())
11696
- const JN="underline",XN="outline",YN="block",QN="frameless",tP=xt`
11681
+ `,styles:VN,shadowOptions:{delegatesFocus:!0}})
11682
+ wi.getOrCreate().withPrefix("nimble").register(BN())
11683
+ const qN="underline",UN="outline",jN="block",WN="frameless",ZN=xt`
11697
11684
  ${Oo("inline-block")}
11698
11685
  ${rg}
11699
11686
 
@@ -11865,12 +11852,12 @@ const JN="underline",XN="outline",YN="block",QN="frameless",tP=xt`
11865
11852
  slot[name='actions']::slotted(*) {
11866
11853
  ${il.cssCustomProperty}: 24px;
11867
11854
  }
11868
- `.withBehaviors(sh(JN,xt`
11855
+ `.withBehaviors(sh(qN,xt`
11869
11856
  .root {
11870
11857
  border-bottom-width: ${cl};
11871
11858
  padding-bottom: 0;
11872
11859
  }
11873
- `),sh(YN,xt`
11860
+ `),sh(jN,xt`
11874
11861
  .root {
11875
11862
  background-color: rgba(${Ha}, 0.1);
11876
11863
  }
@@ -11898,12 +11885,12 @@ const JN="underline",XN="outline",YN="block",QN="frameless",tP=xt`
11898
11885
  :host([disabled]) .root {
11899
11886
  background-color: rgba(${Ha}, 0.07);
11900
11887
  }
11901
- `),sh(XN,xt`
11888
+ `),sh(UN,xt`
11902
11889
  .root {
11903
11890
  border-width: ${cl};
11904
11891
  padding: 0;
11905
11892
  }
11906
- `),sh(QN,xt`
11893
+ `),sh(WN,xt`
11907
11894
  .control {
11908
11895
  padding-left: ${cl};
11909
11896
  padding-right: ${cl};
@@ -11921,8 +11908,8 @@ const JN="underline",XN="outline",YN="block",QN="frameless",tP=xt`
11921
11908
  filter: invert(100%);
11922
11909
  }
11923
11910
  `))
11924
- class eP extends Vi{constructor(){super(...arguments),this.appearance=JN,this.errorVisible=!1,this.fullBleed=!1}}t([lt],eP.prototype,"appearance",void 0),t([lt({attribute:"error-text"})],eP.prototype,"errorText",void 0),t([lt({attribute:"error-visible",mode:"boolean"})],eP.prototype,"errorVisible",void 0),t([lt({attribute:"full-bleed",mode:"boolean"})],eP.prototype,"fullBleed",void 0)
11925
- const nP=eP.compose({baseName:"text-field",baseClass:Vi,template:(t,e)=>Z`
11911
+ class GN extends Vi{constructor(){super(...arguments),this.appearance=qN,this.errorVisible=!1,this.fullBleed=!1}}t([lt],GN.prototype,"appearance",void 0),t([lt({attribute:"error-text"})],GN.prototype,"errorText",void 0),t([lt({attribute:"error-visible",mode:"boolean"})],GN.prototype,"errorVisible",void 0),t([lt({attribute:"full-bleed",mode:"boolean"})],GN.prototype,"fullBleed",void 0)
11912
+ const KN=GN.compose({baseName:"text-field",baseClass:Vi,template:(t,e)=>Z`
11926
11913
  <template
11927
11914
  class="
11928
11915
  ${t=>t.readOnly?"readonly":""}
@@ -11982,7 +11969,7 @@ const nP=eP.compose({baseName:"text-field",baseClass:Vi,template:(t,e)=>Z`
11982
11969
  ${ee(0,e)}
11983
11970
  </div>
11984
11971
  </template>
11985
- `,styles:tP,shadowOptions:{delegatesFocus:!0},end:Z`
11972
+ `,styles:ZN,shadowOptions:{delegatesFocus:!0},end:Z`
11986
11973
  <${hm}
11987
11974
  severity="error"
11988
11975
  class="error-icon"
@@ -11992,8 +11979,8 @@ const nP=eP.compose({baseName:"text-field",baseClass:Vi,template:(t,e)=>Z`
11992
11979
  </span>
11993
11980
  ${Qm}
11994
11981
  `})
11995
- wi.getOrCreate().withPrefix("nimble").register(nP())
11996
- const iP=xt`
11982
+ wi.getOrCreate().withPrefix("nimble").register(KN())
11983
+ const JN=xt`
11997
11984
  ${Oo("inline-flex")}
11998
11985
 
11999
11986
  :host {
@@ -12078,7 +12065,7 @@ const iP=xt`
12078
12065
  .status-icon {
12079
12066
  opacity: 0.6;
12080
12067
  }
12081
- `)),oP=Z`
12068
+ `)),XN=Z`
12082
12069
  ${Ht((t=>t.tooltipVisible),Z`
12083
12070
  <${Eh}
12084
12071
  class="anchored-region"
@@ -12111,11 +12098,11 @@ const iP=xt`
12111
12098
  </${Eh}>
12112
12099
  `)}
12113
12100
  `
12114
- class sP extends Io{constructor(){super(...arguments),this.iconVisible=!1}}t([lt],sP.prototype,"severity",void 0),t([lt({attribute:"icon-visible",mode:"boolean"})],sP.prototype,"iconVisible",void 0)
12115
- const rP=sP.compose({baseName:"tooltip",baseClass:Io,template:oP,styles:iP})
12116
- wi.getOrCreate().withPrefix("nimble").register(rP())
12117
- const aP="group-selected",lP="all",cP="leaves-only",dP="none"
12118
- class hP{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const uP=xt`
12101
+ class YN extends Io{constructor(){super(...arguments),this.iconVisible=!1}}t([lt],YN.prototype,"severity",void 0),t([lt({attribute:"icon-visible",mode:"boolean"})],YN.prototype,"iconVisible",void 0)
12102
+ const QN=YN.compose({baseName:"tooltip",baseClass:Io,template:XN,styles:JN})
12103
+ wi.getOrCreate().withPrefix("nimble").register(QN())
12104
+ const tP="group-selected",eP="all",nP="leaves-only",iP="none"
12105
+ class oP{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const sP=xt`
12119
12106
  ${Oo("block")}
12120
12107
 
12121
12108
  :host {
@@ -12136,7 +12123,7 @@ class hP{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
12136
12123
  }
12137
12124
 
12138
12125
  ${""}
12139
- :host([${aP}])::after {
12126
+ :host([${tP}])::after {
12140
12127
  background: ${Wa};
12141
12128
  border-radius: 0px;
12142
12129
  content: '';
@@ -12158,7 +12145,7 @@ class hP{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
12158
12145
  background: ${za};
12159
12146
  }
12160
12147
 
12161
- :host([${aP}]) .positioning-region:hover {
12148
+ :host([${tP}]) .positioning-region:hover {
12162
12149
  background: ${La};
12163
12150
  }
12164
12151
 
@@ -12264,7 +12251,7 @@ class hP{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
12264
12251
  display: block;
12265
12252
  }
12266
12253
  `.withBehaviors(new class{constructor(t,e){this.cache=new WeakMap,this.ltr=t,this.rtl=e}bind(t){this.attach(t)}unbind(t){const e=this.cache.get(t)
12267
- e&&Ea.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new hP(this.ltr,this.rtl,t),n=Ea.getValueFor(t)
12254
+ e&&Ea.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new oP(this.ltr,this.rtl,t),n=Ea.getValueFor(t)
12268
12255
  Ea.subscribe(e),e.attach(n),this.cache.set(t,e)}}(xt`
12269
12256
  .expand-collapse-button {
12270
12257
  left: var(
@@ -12296,8 +12283,8 @@ Ea.subscribe(e),e.attach(n),this.cache.set(t,e)}}(xt`
12296
12283
  transform: rotate(135deg);
12297
12284
  }
12298
12285
  `))
12299
- class pP extends Ao{constructor(){super(...arguments),this.groupSelected=!1}}t([lt({attribute:"group-selected",mode:"boolean"})],pP.prototype,"groupSelected",void 0)
12300
- const fP=pP.compose({baseName:"tree-item",baseClass:Ao,template:(t,e)=>Z`
12286
+ class rP extends Ao{constructor(){super(...arguments),this.groupSelected=!1}}t([lt({attribute:"group-selected",mode:"boolean"})],rP.prototype,"groupSelected",void 0)
12287
+ const aP=rP.compose({baseName:"tree-item",baseClass:Ao,template:(t,e)=>Z`
12301
12288
  <template
12302
12289
  role="treeitem"
12303
12290
  slot="${t=>t.isNestedItem()?"item":void 0}"
@@ -12337,9 +12324,9 @@ const fP=pP.compose({baseName:"tree-item",baseClass:Ao,template:(t,e)=>Z`
12337
12324
  </div>
12338
12325
  `)}
12339
12326
  </template>
12340
- `,styles:uP,expandCollapseGlyph:qh.data})
12341
- wi.getOrCreate().withPrefix("nimble").register(fP())
12342
- const mP=xt`
12327
+ `,styles:sP,expandCollapseGlyph:qh.data})
12328
+ wi.getOrCreate().withPrefix("nimble").register(aP())
12329
+ const lP=xt`
12343
12330
  ${Oo("flex")}
12344
12331
 
12345
12332
  :host {
@@ -12351,7 +12338,7 @@ const mP=xt`
12351
12338
  :host(${No}) {
12352
12339
  outline: none;
12353
12340
  }
12354
- `,gP=Z`
12341
+ `,cP=Z`
12355
12342
  <template
12356
12343
  role="tree"
12357
12344
  ${Pt("treeView")}
@@ -12365,246 +12352,246 @@ const mP=xt`
12365
12352
  <slot ${Xt("slottedTreeItems")}></slot>
12366
12353
  </template>
12367
12354
  `
12368
- class vP extends To{constructor(){super(...arguments),this.selectionMode=lP,this.selectedItems=[]}handleClick(t){if(t.defaultPrevented)return!1
12355
+ class dP extends To{constructor(){super(...arguments),this.selectionMode=eP,this.selectedItems=[]}handleClick(t){if(t.defaultPrevented)return!1
12369
12356
  if(!(t.target instanceof Element&&Do(t.target)))return!0
12370
12357
  const e=t.target
12371
- return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case lP:return!0
12372
- case dP:return!1
12373
- case cP:return!this.itemHasChildren(t)
12374
- default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const t of Array.from(this.children))t instanceof pP&&(t.groupSelected=!1)
12358
+ return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case eP:return!0
12359
+ case iP:return!1
12360
+ case nP:return!this.itemHasChildren(t)
12361
+ default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const t of Array.from(this.children))t instanceof rP&&(t.groupSelected=!1)
12375
12362
  for(let t of this.selectedItems){for(;null!==t.parentElement&&t.parentElement!==this;)t=t.parentElement
12376
- t instanceof pP&&(t.groupSelected=!0)}}}t([lt({attribute:"selection-mode"})],vP.prototype,"selectionMode",void 0),t([g],vP.prototype,"selectedItems",void 0)
12377
- const bP=vP.compose({baseName:"tree-view",baseClass:To,template:gP,styles:mP})
12378
- wi.getOrCreate().withPrefix("nimble").register(bP())
12379
- const yP=Z`<template slot="unit"></template>`
12380
- class wP{constructor(t,e,n){this.singular=t,this.plural=e,this.symbol=n}}class xP extends rN{constructor(t,{unitTranslations:e,scaledPrefixText:n}){if(super(t),!e.get("en"))throw new Error('English translations must exist with locale string "en"')
12381
- this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(e,this.locale),this.scaledPrefixText=n}static createFactory(t){return e=>new xP(e,t)}format(t){const e=this.formatter.format(t)
12363
+ t instanceof rP&&(t.groupSelected=!0)}}}t([lt({attribute:"selection-mode"})],dP.prototype,"selectionMode",void 0),t([g],dP.prototype,"selectedItems",void 0)
12364
+ const hP=dP.compose({baseName:"tree-view",baseClass:To,template:cP,styles:lP})
12365
+ wi.getOrCreate().withPrefix("nimble").register(hP())
12366
+ const uP=Z`<template slot="unit"></template>`
12367
+ class pP{constructor(t,e,n){this.singular=t,this.plural=e,this.symbol=n}}class fP extends WF{constructor(t,{unitTranslations:e,scaledPrefixText:n}){if(super(t),!e.get("en"))throw new Error('English translations must exist with locale string "en"')
12368
+ this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(e,this.locale),this.scaledPrefixText=n}static createFactory(t){return e=>new fP(e,t)}format(t){const e=this.formatter.format(t)
12382
12369
  if(""!==this.scaledPrefixText)return`${e} ${this.scaledPrefixText}${this.unitTranslation.symbol}`
12383
12370
  return`${e} ${"one"===this.pluralRules.select(t)?this.unitTranslation.singular:this.unitTranslation.plural}`}getTranslationToUse(t,e){const n=new Intl.Locale(e??"en"),i=n.language,o=n.region
12384
- return(o?t.get(`${i}-${o}`):void 0)??t.get(i)??t.get("en")}}const CP=new Map([["en",new wP("byte","bytes","B")],["fr",new wP("octet","octets","o")],["de",new wP("Byte","Byte","B")],["ja",new wP("バイト","バイト","B")],["zh",new wP("字节","字节","B")]]),kP=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
12385
- const SP=new class extends cN{constructor(){super(kP.map((([t,e])=>new lN(t,xP.createFactory({unitTranslations:CP,scaledPrefixText:e})))))}},$P=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
12386
- const MP=new class extends cN{constructor(){super($P.map((([t,e,n])=>new lN(t,aN.createFactory({style:"unit",unit:e,unitDisplay:n})))))}}
12387
- class _P extends vN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=MP}binaryChanged(){this.resolvedUnitScale=this.binary?SP:MP}}t([lt({mode:"boolean"})],_P.prototype,"binary",void 0)
12388
- const EP=_P.compose({baseName:"unit-byte",template:yP})
12389
- wi.getOrCreate().withPrefix("nimble").register(EP())
12390
- const IP=[[1e-15,"f"],[1e-12,"p"],[1e-9,"n"],[10**-6,"μ"],[.001,"m"],[.01,"c"],[.1,"d"],[1,""],[1e3,"k"],[10**6,"M"],[10**9,"G"],[10**12,"T"],[10**15,"P"],[10**18,"E"]],DP=new Map([["en",new wP("volt","volts","V")],["fr",new wP("volt","volts","V")],["de",new wP("Volt","Volt","V")],["ja",new wP("ボルト","ボルト","V")],["zh",new wP("伏特","伏特","V")]])
12391
- const AP=new class extends cN{constructor(){super(IP.map((([t,e])=>new lN(t,xP.createFactory({unitTranslations:DP,scaledPrefixText:e})))))}}
12392
- const TP=class extends vN{constructor(){super(),this.resolvedUnitScale=AP}}.compose({baseName:"unit-volt",template:yP})
12393
- wi.getOrCreate().withPrefix("nimble").register(TP())
12394
- var OP={value:()=>{}}
12395
- function RP(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t)
12396
- i[t]=[]}return new FP(i)}function FP(t){this._=t}function NP(t,e){for(var n,i=0,o=t.length;i<o;++i)if((n=t[i]).name===e)return n.value}function PP(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=OP,t=t.slice(0,i).concat(t.slice(i+1))
12397
- break}return null!=n&&t.push({name:e,value:n}),t}FP.prototype=RP.prototype={constructor:FP,on:function(t,e){var n,i,o=this._,s=(i=o,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
12371
+ return(o?t.get(`${i}-${o}`):void 0)??t.get(i)??t.get("en")}}const mP=new Map([["en",new pP("byte","bytes","B")],["fr",new pP("octet","octets","o")],["de",new pP("Byte","Byte","B")],["ja",new pP("バイト","バイト","B")],["zh",new pP("字节","字节","B")]]),gP=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
12372
+ const vP=new class extends KF{constructor(){super(gP.map((([t,e])=>new GF(t,fP.createFactory({unitTranslations:mP,scaledPrefixText:e})))))}},bP=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
12373
+ const yP=new class extends KF{constructor(){super(bP.map((([t,e,n])=>new GF(t,ZF.createFactory({style:"unit",unit:e,unitDisplay:n})))))}}
12374
+ class wP extends iN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=yP}binaryChanged(){this.resolvedUnitScale=this.binary?vP:yP}}t([lt({mode:"boolean"})],wP.prototype,"binary",void 0)
12375
+ const xP=wP.compose({baseName:"unit-byte",template:uP})
12376
+ wi.getOrCreate().withPrefix("nimble").register(xP())
12377
+ const CP=[[1e-15,"f"],[1e-12,"p"],[1e-9,"n"],[10**-6,"μ"],[.001,"m"],[.01,"c"],[.1,"d"],[1,""],[1e3,"k"],[10**6,"M"],[10**9,"G"],[10**12,"T"],[10**15,"P"],[10**18,"E"]],kP=new Map([["en",new pP("volt","volts","V")],["fr",new pP("volt","volts","V")],["de",new pP("Volt","Volt","V")],["ja",new pP("ボルト","ボルト","V")],["zh",new pP("伏特","伏特","V")]])
12378
+ const SP=new class extends KF{constructor(){super(CP.map((([t,e])=>new GF(t,fP.createFactory({unitTranslations:kP,scaledPrefixText:e})))))}}
12379
+ const $P=class extends iN{constructor(){super(),this.resolvedUnitScale=SP}}.compose({baseName:"unit-volt",template:uP})
12380
+ wi.getOrCreate().withPrefix("nimble").register($P())
12381
+ var MP={value:()=>{}}
12382
+ function _P(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t)
12383
+ i[t]=[]}return new EP(i)}function EP(t){this._=t}function IP(t,e){for(var n,i=0,o=t.length;i<o;++i)if((n=t[i]).name===e)return n.value}function DP(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=MP,t=t.slice(0,i).concat(t.slice(i+1))
12384
+ break}return null!=n&&t.push({name:e,value:n}),t}EP.prototype=_P.prototype={constructor:EP,on:function(t,e){var n,i,o=this._,s=(i=o,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
12398
12385
  if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t)
12399
12386
  return{type:t,name:e}}))),r=-1,a=s.length
12400
12387
  if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e)
12401
- for(;++r<a;)if(n=(t=s[r]).type)o[n]=PP(o[n],t.name,e)
12402
- else if(null==e)for(n in o)o[n]=PP(o[n],t.name,null)
12403
- return this}for(;++r<a;)if((n=(t=s[r]).type)&&(n=NP(o[n],t.name)))return n},copy:function(){var t={},e=this._
12388
+ for(;++r<a;)if(n=(t=s[r]).type)o[n]=DP(o[n],t.name,e)
12389
+ else if(null==e)for(n in o)o[n]=DP(o[n],t.name,null)
12390
+ return this}for(;++r<a;)if((n=(t=s[r]).type)&&(n=IP(o[n],t.name)))return n},copy:function(){var t={},e=this._
12404
12391
  for(var n in e)t[n]=e[n].slice()
12405
- return new FP(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),s=0;s<n;++s)o[s]=arguments[s+2]
12392
+ return new EP(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),s=0;s<n;++s)o[s]=arguments[s+2]
12406
12393
  if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t)
12407
12394
  for(s=0,n=(i=this._[t]).length;s<n;++s)i[s].value.apply(e,o)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t)
12408
12395
  for(var i=this._[t],o=0,s=i.length;o<s;++o)i[o].value.apply(e,n)}}
12409
- var LP="http://www.w3.org/1999/xhtml",zP={svg:"http://www.w3.org/2000/svg",xhtml:LP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
12410
- function VP(t){var e=t+="",n=e.indexOf(":")
12411
- return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),zP.hasOwnProperty(e)?{space:zP[e],local:t}:t}function HP(t){return function(){var e=this.ownerDocument,n=this.namespaceURI
12412
- return n===LP&&e.documentElement.namespaceURI===LP?e.createElement(t):e.createElementNS(n,t)}}function BP(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function qP(t){var e=VP(t)
12413
- return(e.local?BP:HP)(e)}function UP(){}function jP(t){return null==t?UP:function(){return this.querySelector(t)}}function WP(){return[]}function ZP(t){return null==t?WP:function(){return this.querySelectorAll(t)}}function GP(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e)
12414
- var e}}function KP(t){return function(){return this.matches(t)}}function JP(t){return function(e){return e.matches(t)}}var XP=Array.prototype.find
12415
- function YP(){return this.firstElementChild}var QP=Array.prototype.filter
12416
- function tL(){return Array.from(this.children)}function eL(t){return new Array(t.length)}function nL(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function iL(t,e,n,i,o,s){for(var r,a=0,l=e.length,c=s.length;a<c;++a)(r=e[a])?(r.__data__=s[a],i[a]=r):n[a]=new nL(t,s[a])
12417
- for(;a<l;++a)(r=e[a])&&(o[a]=r)}function oL(t,e,n,i,o,s,r){var a,l,c,d=new Map,h=e.length,u=s.length,p=new Array(h)
12396
+ var AP="http://www.w3.org/1999/xhtml",TP={svg:"http://www.w3.org/2000/svg",xhtml:AP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
12397
+ function OP(t){var e=t+="",n=e.indexOf(":")
12398
+ return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),TP.hasOwnProperty(e)?{space:TP[e],local:t}:t}function RP(t){return function(){var e=this.ownerDocument,n=this.namespaceURI
12399
+ return n===AP&&e.documentElement.namespaceURI===AP?e.createElement(t):e.createElementNS(n,t)}}function FP(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function NP(t){var e=OP(t)
12400
+ return(e.local?FP:RP)(e)}function PP(){}function LP(t){return null==t?PP:function(){return this.querySelector(t)}}function zP(){return[]}function VP(t){return null==t?zP:function(){return this.querySelectorAll(t)}}function HP(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e)
12401
+ var e}}function BP(t){return function(){return this.matches(t)}}function qP(t){return function(e){return e.matches(t)}}var UP=Array.prototype.find
12402
+ function jP(){return this.firstElementChild}var WP=Array.prototype.filter
12403
+ function ZP(){return Array.from(this.children)}function GP(t){return new Array(t.length)}function KP(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function JP(t,e,n,i,o,s){for(var r,a=0,l=e.length,c=s.length;a<c;++a)(r=e[a])?(r.__data__=s[a],i[a]=r):n[a]=new KP(t,s[a])
12404
+ for(;a<l;++a)(r=e[a])&&(o[a]=r)}function XP(t,e,n,i,o,s,r){var a,l,c,d=new Map,h=e.length,u=s.length,p=new Array(h)
12418
12405
  for(a=0;a<h;++a)(l=e[a])&&(p[a]=c=r.call(l,l.__data__,a,e)+"",d.has(c)?o[a]=l:d.set(c,l))
12419
- for(a=0;a<u;++a)c=r.call(t,s[a],a,s)+"",(l=d.get(c))?(i[a]=l,l.__data__=s[a],d.delete(c)):n[a]=new nL(t,s[a])
12420
- for(a=0;a<h;++a)(l=e[a])&&d.get(p[a])===l&&(o[a]=l)}function sL(t){return t.__data__}function rL(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function aL(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function lL(t){return function(){this.removeAttribute(t)}}function cL(t){return function(){this.removeAttributeNS(t.space,t.local)}}function dL(t,e){return function(){this.setAttribute(t,e)}}function hL(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function uL(t,e){return function(){var n=e.apply(this,arguments)
12421
- null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function pL(t,e){return function(){var n=e.apply(this,arguments)
12422
- null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function fL(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function mL(t){return function(){this.style.removeProperty(t)}}function gL(t,e,n){return function(){this.style.setProperty(t,e,n)}}function vL(t,e,n){return function(){var i=e.apply(this,arguments)
12423
- null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function bL(t,e){return t.style.getPropertyValue(e)||fL(t).getComputedStyle(t,null).getPropertyValue(e)}function yL(t){return function(){delete this[t]}}function wL(t,e){return function(){this[t]=e}}function xL(t,e){return function(){var n=e.apply(this,arguments)
12424
- null==n?delete this[t]:this[t]=n}}function CL(t){return t.trim().split(/^|\s+/)}function kL(t){return t.classList||new SL(t)}function SL(t){this._node=t,this._names=CL(t.getAttribute("class")||"")}function $L(t,e){for(var n=kL(t),i=-1,o=e.length;++i<o;)n.add(e[i])}function ML(t,e){for(var n=kL(t),i=-1,o=e.length;++i<o;)n.remove(e[i])}function _L(t){return function(){$L(this,t)}}function EL(t){return function(){ML(this,t)}}function IL(t,e){return function(){(e.apply(this,arguments)?$L:ML)(this,t)}}function DL(){this.textContent=""}function AL(t){return function(){this.textContent=t}}function TL(t){return function(){var e=t.apply(this,arguments)
12425
- this.textContent=null==e?"":e}}function OL(){this.innerHTML=""}function RL(t){return function(){this.innerHTML=t}}function FL(t){return function(){var e=t.apply(this,arguments)
12426
- this.innerHTML=null==e?"":e}}function NL(){this.nextSibling&&this.parentNode.appendChild(this)}function PL(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function LL(){return null}function zL(){var t=this.parentNode
12427
- t&&t.removeChild(this)}function VL(){var t=this.cloneNode(!1),e=this.parentNode
12428
- return e?e.insertBefore(t,this.nextSibling):t}function HL(){var t=this.cloneNode(!0),e=this.parentNode
12429
- return e?e.insertBefore(t,this.nextSibling):t}function BL(t){return function(){var e=this.__on
12430
- if(e){for(var n,i=0,o=-1,s=e.length;i<s;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?e.length=o:delete this.__on}}}function qL(t,e,n){return function(){var i,o=this.__on,s=function(t){return function(e){t.call(this,e,this.__data__)}}(e)
12406
+ for(a=0;a<u;++a)c=r.call(t,s[a],a,s)+"",(l=d.get(c))?(i[a]=l,l.__data__=s[a],d.delete(c)):n[a]=new KP(t,s[a])
12407
+ for(a=0;a<h;++a)(l=e[a])&&d.get(p[a])===l&&(o[a]=l)}function YP(t){return t.__data__}function QP(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function tL(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function eL(t){return function(){this.removeAttribute(t)}}function nL(t){return function(){this.removeAttributeNS(t.space,t.local)}}function iL(t,e){return function(){this.setAttribute(t,e)}}function oL(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function sL(t,e){return function(){var n=e.apply(this,arguments)
12408
+ null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function rL(t,e){return function(){var n=e.apply(this,arguments)
12409
+ null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function aL(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function lL(t){return function(){this.style.removeProperty(t)}}function cL(t,e,n){return function(){this.style.setProperty(t,e,n)}}function dL(t,e,n){return function(){var i=e.apply(this,arguments)
12410
+ null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function hL(t,e){return t.style.getPropertyValue(e)||aL(t).getComputedStyle(t,null).getPropertyValue(e)}function uL(t){return function(){delete this[t]}}function pL(t,e){return function(){this[t]=e}}function fL(t,e){return function(){var n=e.apply(this,arguments)
12411
+ null==n?delete this[t]:this[t]=n}}function mL(t){return t.trim().split(/^|\s+/)}function gL(t){return t.classList||new vL(t)}function vL(t){this._node=t,this._names=mL(t.getAttribute("class")||"")}function bL(t,e){for(var n=gL(t),i=-1,o=e.length;++i<o;)n.add(e[i])}function yL(t,e){for(var n=gL(t),i=-1,o=e.length;++i<o;)n.remove(e[i])}function wL(t){return function(){bL(this,t)}}function xL(t){return function(){yL(this,t)}}function CL(t,e){return function(){(e.apply(this,arguments)?bL:yL)(this,t)}}function kL(){this.textContent=""}function SL(t){return function(){this.textContent=t}}function $L(t){return function(){var e=t.apply(this,arguments)
12412
+ this.textContent=null==e?"":e}}function ML(){this.innerHTML=""}function _L(t){return function(){this.innerHTML=t}}function EL(t){return function(){var e=t.apply(this,arguments)
12413
+ this.innerHTML=null==e?"":e}}function IL(){this.nextSibling&&this.parentNode.appendChild(this)}function DL(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function AL(){return null}function TL(){var t=this.parentNode
12414
+ t&&t.removeChild(this)}function OL(){var t=this.cloneNode(!1),e=this.parentNode
12415
+ return e?e.insertBefore(t,this.nextSibling):t}function RL(){var t=this.cloneNode(!0),e=this.parentNode
12416
+ return e?e.insertBefore(t,this.nextSibling):t}function FL(t){return function(){var e=this.__on
12417
+ if(e){for(var n,i=0,o=-1,s=e.length;i<s;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?e.length=o:delete this.__on}}}function NL(t,e,n){return function(){var i,o=this.__on,s=function(t){return function(e){t.call(this,e,this.__data__)}}(e)
12431
12418
  if(o)for(var r=0,a=o.length;r<a;++r)if((i=o[r]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),void(i.value=e)
12432
- this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},o?o.push(i):this.__on=[i]}}function UL(t,e,n){var i=fL(t),o=i.CustomEvent
12433
- "function"==typeof o?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function jL(t,e){return function(){return UL(this,t,e)}}function WL(t,e){return function(){return UL(this,t,e.apply(this,arguments))}}nL.prototype={constructor:nL,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},SL.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t)
12419
+ this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},o?o.push(i):this.__on=[i]}}function PL(t,e,n){var i=aL(t),o=i.CustomEvent
12420
+ "function"==typeof o?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function LL(t,e){return function(){return PL(this,t,e)}}function zL(t,e){return function(){return PL(this,t,e.apply(this,arguments))}}KP.prototype={constructor:KP,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},vL.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t)
12434
12421
  e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}}
12435
- var ZL=[null]
12436
- function GL(t,e){this._groups=t,this._parents=e}function KL(){return new GL([[document.documentElement]],ZL)}function JL(t){return"string"==typeof t?new GL([[document.querySelector(t)]],[document.documentElement]):new GL([[t]],ZL)}function XL(t,e){if(t=function(t){let e
12422
+ var VL=[null]
12423
+ function HL(t,e){this._groups=t,this._parents=e}function BL(){return new HL([[document.documentElement]],VL)}function qL(t){return"string"==typeof t?new HL([[document.querySelector(t)]],[document.documentElement]):new HL([[t]],VL)}function UL(t,e){if(t=function(t){let e
12437
12424
  for(;e=t.sourceEvent;)t=e
12438
12425
  return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e
12439
12426
  if(n.createSVGPoint){var i=n.createSVGPoint()
12440
12427
  return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect()
12441
- return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}GL.prototype=KL.prototype={constructor:GL,select:function(t){"function"!=typeof t&&(t=jP(t))
12428
+ return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}HL.prototype=BL.prototype={constructor:HL,select:function(t){"function"!=typeof t&&(t=LP(t))
12442
12429
  for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var s,r,a=e[o],l=a.length,c=i[o]=new Array(l),d=0;d<l;++d)(s=a[d])&&(r=t.call(s,s.__data__,d,a))&&("__data__"in s&&(r.__data__=s.__data__),c[d]=r)
12443
- return new GL(i,this._parents)},selectAll:function(t){t="function"==typeof t?GP(t):ZP(t)
12430
+ return new HL(i,this._parents)},selectAll:function(t){t="function"==typeof t?HP(t):VP(t)
12444
12431
  for(var e=this._groups,n=e.length,i=[],o=[],s=0;s<n;++s)for(var r,a=e[s],l=a.length,c=0;c<l;++c)(r=a[c])&&(i.push(t.call(r,r.__data__,c,a)),o.push(r))
12445
- return new GL(i,o)},selectChild:function(t){return this.select(null==t?YP:function(t){return function(){return XP.call(this.children,t)}}("function"==typeof t?t:JP(t)))},selectChildren:function(t){return this.selectAll(null==t?tL:function(t){return function(){return QP.call(this.children,t)}}("function"==typeof t?t:JP(t)))},filter:function(t){"function"!=typeof t&&(t=KP(t))
12432
+ return new HL(i,o)},selectChild:function(t){return this.select(null==t?jP:function(t){return function(){return UP.call(this.children,t)}}("function"==typeof t?t:qP(t)))},selectChildren:function(t){return this.selectAll(null==t?ZP:function(t){return function(){return WP.call(this.children,t)}}("function"==typeof t?t:qP(t)))},filter:function(t){"function"!=typeof t&&(t=BP(t))
12446
12433
  for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var s,r=e[o],a=r.length,l=i[o]=[],c=0;c<a;++c)(s=r[c])&&t.call(s,s.__data__,c,r)&&l.push(s)
12447
- return new GL(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,sL)
12448
- var n,i=e?oL:iL,o=this._parents,s=this._groups
12434
+ return new HL(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,YP)
12435
+ var n,i=e?XP:JP,o=this._parents,s=this._groups
12449
12436
  "function"!=typeof t&&(n=t,t=function(){return n})
12450
- for(var r=s.length,a=new Array(r),l=new Array(r),c=new Array(r),d=0;d<r;++d){var h=o[d],u=s[d],p=u.length,f=rL(t.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
12437
+ for(var r=s.length,a=new Array(r),l=new Array(r),c=new Array(r),d=0;d<r;++d){var h=o[d],u=s[d],p=u.length,f=QP(t.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
12451
12438
  i(h,u,g,v,c[d]=new Array(p),f,e)
12452
- for(var b,y,w=0,x=0;w<m;++w)if(b=g[w]){for(w>=x&&(x=w+1);!(y=v[x])&&++x<m;);b._next=y||null}}return(a=new GL(a,o))._enter=l,a._exit=c,a},enter:function(){return new GL(this._enter||this._groups.map(eL),this._parents)},exit:function(){return new GL(this._exit||this._groups.map(eL),this._parents)},join:function(t,e,n){var i=this.enter(),o=this,s=this.exit()
12439
+ for(var b,y,w=0,x=0;w<m;++w)if(b=g[w]){for(w>=x&&(x=w+1);!(y=v[x])&&++x<m;);b._next=y||null}}return(a=new HL(a,o))._enter=l,a._exit=c,a},enter:function(){return new HL(this._enter||this._groups.map(GP),this._parents)},exit:function(){return new HL(this._exit||this._groups.map(GP),this._parents)},join:function(t,e,n){var i=this.enter(),o=this,s=this.exit()
12453
12440
  return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(o=e(o))&&(o=o.selection()),null==n?s.remove():n(s),i&&o?i.merge(o).order():o},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,o=n.length,s=i.length,r=Math.min(o,s),a=new Array(o),l=0;l<r;++l)for(var c,d=n[l],h=i[l],u=d.length,p=a[l]=new Array(u),f=0;f<u;++f)(c=d[f]||h[f])&&(p[f]=c)
12454
12441
  for(;l<o;++l)a[l]=n[l]
12455
- return new GL(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,o=t[e],s=o.length-1,r=o[s];--s>=0;)(i=o[s])&&(r&&4^i.compareDocumentPosition(r)&&r.parentNode.insertBefore(i,r),r=i)
12456
- return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=aL)
12442
+ return new HL(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,o=t[e],s=o.length-1,r=o[s];--s>=0;)(i=o[s])&&(r&&4^i.compareDocumentPosition(r)&&r.parentNode.insertBefore(i,r),r=i)
12443
+ return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=tL)
12457
12444
  for(var n=this._groups,i=n.length,o=new Array(i),s=0;s<i;++s){for(var r,a=n[s],l=a.length,c=o[s]=new Array(l),d=0;d<l;++d)(r=a[d])&&(c[d]=r)
12458
- c.sort(e)}return new GL(o,this._parents).order()},call:function(){var t=arguments[0]
12445
+ c.sort(e)}return new HL(o,this._parents).order()},call:function(){var t=arguments[0]
12459
12446
  return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],o=0,s=i.length;o<s;++o){var r=i[o]
12460
12447
  if(r)return r}return null},size:function(){let t=0
12461
12448
  for(const e of this)++t
12462
12449
  return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var o,s=e[n],r=0,a=s.length;r<a;++r)(o=s[r])&&t.call(o,o.__data__,r,s)
12463
- return this},attr:function(t,e){var n=VP(t)
12450
+ return this},attr:function(t,e){var n=OP(t)
12464
12451
  if(arguments.length<2){var i=this.node()
12465
- return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?cL:lL:"function"==typeof e?n.local?pL:uL:n.local?hL:dL)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?mL:"function"==typeof e?vL:gL)(t,e,null==n?"":n)):bL(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?yL:"function"==typeof e?xL:wL)(t,e)):this.node()[t]},classed:function(t,e){var n=CL(t+"")
12466
- if(arguments.length<2){for(var i=kL(this.node()),o=-1,s=n.length;++o<s;)if(!i.contains(n[o]))return!1
12467
- return!0}return this.each(("function"==typeof e?IL:e?_L:EL)(n,e))},text:function(t){return arguments.length?this.each(null==t?DL:("function"==typeof t?TL:AL)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?OL:("function"==typeof t?FL:RL)(t)):this.node().innerHTML},raise:function(){return this.each(NL)},lower:function(){return this.each(PL)},append:function(t){var e="function"==typeof t?t:qP(t)
12468
- return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:qP(t),i=null==e?LL:"function"==typeof e?e:jP(e)
12469
- return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(zL)},clone:function(t){return this.select(t?HL:VL)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,o,s=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
12452
+ return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?nL:eL:"function"==typeof e?n.local?rL:sL:n.local?oL:iL)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?lL:"function"==typeof e?dL:cL)(t,e,null==n?"":n)):hL(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?uL:"function"==typeof e?fL:pL)(t,e)):this.node()[t]},classed:function(t,e){var n=mL(t+"")
12453
+ if(arguments.length<2){for(var i=gL(this.node()),o=-1,s=n.length;++o<s;)if(!i.contains(n[o]))return!1
12454
+ return!0}return this.each(("function"==typeof e?CL:e?wL:xL)(n,e))},text:function(t){return arguments.length?this.each(null==t?kL:("function"==typeof t?$L:SL)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?ML:("function"==typeof t?EL:_L)(t)):this.node().innerHTML},raise:function(){return this.each(IL)},lower:function(){return this.each(DL)},append:function(t){var e="function"==typeof t?t:NP(t)
12455
+ return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:NP(t),i=null==e?AL:"function"==typeof e?e:LP(e)
12456
+ return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(TL)},clone:function(t){return this.select(t?RL:OL)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,o,s=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
12470
12457
  return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),r=s.length
12471
- if(!(arguments.length<2)){for(a=e?qL:BL,i=0;i<r;++i)this.each(a(s[i],e,n))
12458
+ if(!(arguments.length<2)){for(a=e?NL:FL,i=0;i<r;++i)this.each(a(s[i],e,n))
12472
12459
  return this}var a=this.node().__on
12473
- if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<r;++i)if((o=s[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?WL:jL)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,o=t[e],s=0,r=o.length;s<r;++s)(i=o[s])&&(yield i)}}
12474
- const YL={capture:!0,passive:!1}
12475
- function QL(t){t.preventDefault(),t.stopImmediatePropagation()}function tz(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ez(t,e){var n=Object.create(t.prototype)
12460
+ if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<r;++i)if((o=s[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?zL:LL)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,o=t[e],s=0,r=o.length;s<r;++s)(i=o[s])&&(yield i)}}
12461
+ const jL={capture:!0,passive:!1}
12462
+ function WL(t){t.preventDefault(),t.stopImmediatePropagation()}function ZL(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function GL(t,e){var n=Object.create(t.prototype)
12476
12463
  for(var i in e)n[i]=e[i]
12477
- return n}function nz(){}var iz=.7,oz=1/iz,sz="\\s*([+-]?\\d+)\\s*",rz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",az="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lz=/^#([0-9a-f]{3,8})$/,cz=new RegExp(`^rgb\\(${sz},${sz},${sz}\\)$`),dz=new RegExp(`^rgb\\(${az},${az},${az}\\)$`),hz=new RegExp(`^rgba\\(${sz},${sz},${sz},${rz}\\)$`),uz=new RegExp(`^rgba\\(${az},${az},${az},${rz}\\)$`),pz=new RegExp(`^hsl\\(${rz},${az},${az}\\)$`),fz=new RegExp(`^hsla\\(${rz},${az},${az},${rz}\\)$`),mz={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}
12478
- function gz(){return this.rgb().formatHex()}function vz(){return this.rgb().formatRgb()}function bz(t){var e,n
12479
- return t=(t+"").trim().toLowerCase(),(e=lz.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?yz(e):3===n?new Cz(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?wz(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?wz(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=cz.exec(t))?new Cz(e[1],e[2],e[3],1):(e=dz.exec(t))?new Cz(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=hz.exec(t))?wz(e[1],e[2],e[3],e[4]):(e=uz.exec(t))?wz(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=pz.exec(t))?Ez(e[1],e[2]/100,e[3]/100,1):(e=fz.exec(t))?Ez(e[1],e[2]/100,e[3]/100,e[4]):mz.hasOwnProperty(t)?yz(mz[t]):"transparent"===t?new Cz(NaN,NaN,NaN,0):null}function yz(t){return new Cz(t>>16&255,t>>8&255,255&t,1)}function wz(t,e,n,i){return i<=0&&(t=e=n=NaN),new Cz(t,e,n,i)}function xz(t,e,n,i){return 1===arguments.length?((o=t)instanceof nz||(o=bz(o)),o?new Cz((o=o.rgb()).r,o.g,o.b,o.opacity):new Cz):new Cz(t,e,n,null==i?1:i)
12480
- var o}function Cz(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function kz(){return`#${_z(this.r)}${_z(this.g)}${_z(this.b)}`}function Sz(){const t=$z(this.opacity)
12481
- return`${1===t?"rgb(":"rgba("}${Mz(this.r)}, ${Mz(this.g)}, ${Mz(this.b)}${1===t?")":`, ${t})`}`}function $z(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Mz(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function _z(t){return((t=Mz(t))<16?"0":"")+t.toString(16)}function Ez(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Dz(t,e,n,i)}function Iz(t){if(t instanceof Dz)return new Dz(t.h,t.s,t.l,t.opacity)
12482
- if(t instanceof nz||(t=bz(t)),!t)return new Dz
12483
- if(t instanceof Dz)return t
12464
+ return n}function KL(){}var JL=.7,XL=1/JL,YL="\\s*([+-]?\\d+)\\s*",QL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ez=/^#([0-9a-f]{3,8})$/,nz=new RegExp(`^rgb\\(${YL},${YL},${YL}\\)$`),iz=new RegExp(`^rgb\\(${tz},${tz},${tz}\\)$`),oz=new RegExp(`^rgba\\(${YL},${YL},${YL},${QL}\\)$`),sz=new RegExp(`^rgba\\(${tz},${tz},${tz},${QL}\\)$`),rz=new RegExp(`^hsl\\(${QL},${tz},${tz}\\)$`),az=new RegExp(`^hsla\\(${QL},${tz},${tz},${QL}\\)$`),lz={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}
12465
+ function cz(){return this.rgb().formatHex()}function dz(){return this.rgb().formatRgb()}function hz(t){var e,n
12466
+ return t=(t+"").trim().toLowerCase(),(e=ez.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?uz(e):3===n?new mz(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?pz(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?pz(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=nz.exec(t))?new mz(e[1],e[2],e[3],1):(e=iz.exec(t))?new mz(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=oz.exec(t))?pz(e[1],e[2],e[3],e[4]):(e=sz.exec(t))?pz(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=rz.exec(t))?xz(e[1],e[2]/100,e[3]/100,1):(e=az.exec(t))?xz(e[1],e[2]/100,e[3]/100,e[4]):lz.hasOwnProperty(t)?uz(lz[t]):"transparent"===t?new mz(NaN,NaN,NaN,0):null}function uz(t){return new mz(t>>16&255,t>>8&255,255&t,1)}function pz(t,e,n,i){return i<=0&&(t=e=n=NaN),new mz(t,e,n,i)}function fz(t,e,n,i){return 1===arguments.length?((o=t)instanceof KL||(o=hz(o)),o?new mz((o=o.rgb()).r,o.g,o.b,o.opacity):new mz):new mz(t,e,n,null==i?1:i)
12467
+ var o}function mz(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function gz(){return`#${wz(this.r)}${wz(this.g)}${wz(this.b)}`}function vz(){const t=bz(this.opacity)
12468
+ return`${1===t?"rgb(":"rgba("}${yz(this.r)}, ${yz(this.g)}, ${yz(this.b)}${1===t?")":`, ${t})`}`}function bz(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function yz(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function wz(t){return((t=yz(t))<16?"0":"")+t.toString(16)}function xz(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new kz(t,e,n,i)}function Cz(t){if(t instanceof kz)return new kz(t.h,t.s,t.l,t.opacity)
12469
+ if(t instanceof KL||(t=hz(t)),!t)return new kz
12470
+ if(t instanceof kz)return t
12484
12471
  var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,o=Math.min(e,n,i),s=Math.max(e,n,i),r=NaN,a=s-o,l=(s+o)/2
12485
- return a?(r=e===s?(n-i)/a+6*(n<i):n===s?(i-e)/a+2:(e-n)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new Dz(r,a,l,t.opacity)}function Dz(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Az(t){return(t=(t||0)%360)<0?t+360:t}function Tz(t){return Math.max(0,Math.min(1,t||0))}function Oz(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}tz(nz,bz,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:gz,formatHex:gz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Iz(this).formatHsl()},formatRgb:vz,toString:vz}),tz(Cz,xz,ez(nz,{brighter(t){return t=null==t?oz:Math.pow(oz,t),new Cz(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?iz:Math.pow(iz,t),new Cz(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Cz(Mz(this.r),Mz(this.g),Mz(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:kz,formatHex:kz,formatHex8:function(){return`#${_z(this.r)}${_z(this.g)}${_z(this.b)}${_z(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Sz,toString:Sz})),tz(Dz,(function(t,e,n,i){return 1===arguments.length?Iz(t):new Dz(t,e,n,null==i?1:i)}),ez(nz,{brighter(t){return t=null==t?oz:Math.pow(oz,t),new Dz(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?iz:Math.pow(iz,t),new Dz(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,o=2*n-i
12486
- return new Cz(Oz(t>=240?t-240:t+120,o,i),Oz(t,o,i),Oz(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new Dz(Az(this.h),Tz(this.s),Tz(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 t=$z(this.opacity)
12487
- return`${1===t?"hsl(":"hsla("}${Az(this.h)}, ${100*Tz(this.s)}%, ${100*Tz(this.l)}%${1===t?")":`, ${t})`}`}}))
12488
- var Rz=t=>()=>t
12489
- function Fz(t){return 1==(t=+t)?Nz:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Rz(isNaN(e)?n:e)}}function Nz(t,e){var n=e-t
12490
- return n?function(t,e){return function(n){return t+n*e}}(t,n):Rz(isNaN(t)?e:t)}var Pz=function t(e){var n=Fz(e)
12491
- function i(t,e){var i=n((t=xz(t)).r,(e=xz(e)).r),o=n(t.g,e.g),s=n(t.b,e.b),r=Nz(t.opacity,e.opacity)
12472
+ return a?(r=e===s?(n-i)/a+6*(n<i):n===s?(i-e)/a+2:(e-n)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new kz(r,a,l,t.opacity)}function kz(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Sz(t){return(t=(t||0)%360)<0?t+360:t}function $z(t){return Math.max(0,Math.min(1,t||0))}function Mz(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}ZL(KL,hz,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:cz,formatHex:cz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Cz(this).formatHsl()},formatRgb:dz,toString:dz}),ZL(mz,fz,GL(KL,{brighter(t){return t=null==t?XL:Math.pow(XL,t),new mz(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?JL:Math.pow(JL,t),new mz(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new mz(yz(this.r),yz(this.g),yz(this.b),bz(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:gz,formatHex:gz,formatHex8:function(){return`#${wz(this.r)}${wz(this.g)}${wz(this.b)}${wz(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:vz,toString:vz})),ZL(kz,(function(t,e,n,i){return 1===arguments.length?Cz(t):new kz(t,e,n,null==i?1:i)}),GL(KL,{brighter(t){return t=null==t?XL:Math.pow(XL,t),new kz(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?JL:Math.pow(JL,t),new kz(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,o=2*n-i
12473
+ return new mz(Mz(t>=240?t-240:t+120,o,i),Mz(t,o,i),Mz(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new kz(Sz(this.h),$z(this.s),$z(this.l),bz(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 t=bz(this.opacity)
12474
+ return`${1===t?"hsl(":"hsla("}${Sz(this.h)}, ${100*$z(this.s)}%, ${100*$z(this.l)}%${1===t?")":`, ${t})`}`}}))
12475
+ var _z=t=>()=>t
12476
+ function Ez(t){return 1==(t=+t)?Iz:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):_z(isNaN(e)?n:e)}}function Iz(t,e){var n=e-t
12477
+ return n?function(t,e){return function(n){return t+n*e}}(t,n):_z(isNaN(t)?e:t)}var Dz=function t(e){var n=Ez(e)
12478
+ function i(t,e){var i=n((t=fz(t)).r,(e=fz(e)).r),o=n(t.g,e.g),s=n(t.b,e.b),r=Iz(t.opacity,e.opacity)
12492
12479
  return function(e){return t.r=i(e),t.g=o(e),t.b=s(e),t.opacity=r(e),t+""}}return i.gamma=t,i}(1)
12493
- function Lz(t,e){e||(e=[])
12480
+ function Az(t,e){e||(e=[])
12494
12481
  var n,i=t?Math.min(e.length,t.length):0,o=e.slice()
12495
12482
  return function(s){for(n=0;n<i;++n)o[n]=t[n]*(1-s)+e[n]*s
12496
- return o}}function zz(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,s=new Array(o),r=new Array(i)
12497
- for(n=0;n<o;++n)s[n]=Wz(t[n],e[n])
12483
+ return o}}function Tz(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,s=new Array(o),r=new Array(i)
12484
+ for(n=0;n<o;++n)s[n]=zz(t[n],e[n])
12498
12485
  for(;n<i;++n)r[n]=e[n]
12499
12486
  return function(t){for(n=0;n<o;++n)r[n]=s[n](t)
12500
- return r}}function Vz(t,e){var n=new Date
12501
- return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Hz(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Bz(t,e){var n,i={},o={}
12502
- for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Wz(t[n],e[n]):o[n]=e[n]
12487
+ return r}}function Oz(t,e){var n=new Date
12488
+ return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Rz(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Fz(t,e){var n,i={},o={}
12489
+ for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=zz(t[n],e[n]):o[n]=e[n]
12503
12490
  return function(t){for(n in i)o[n]=i[n](t)
12504
- return o}}var qz=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Uz=new RegExp(qz.source,"g")
12505
- function jz(t,e){var n,i,o,s=qz.lastIndex=Uz.lastIndex=0,r=-1,a=[],l=[]
12506
- for(t+="",e+="";(n=qz.exec(t))&&(i=Uz.exec(e));)(o=i.index)>s&&(o=e.slice(s,o),a[r]?a[r]+=o:a[++r]=o),(n=n[0])===(i=i[0])?a[r]?a[r]+=i:a[++r]=i:(a[++r]=null,l.push({i:r,x:Hz(n,i)})),s=Uz.lastIndex
12491
+ return o}}var Nz=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Pz=new RegExp(Nz.source,"g")
12492
+ function Lz(t,e){var n,i,o,s=Nz.lastIndex=Pz.lastIndex=0,r=-1,a=[],l=[]
12493
+ for(t+="",e+="";(n=Nz.exec(t))&&(i=Pz.exec(e));)(o=i.index)>s&&(o=e.slice(s,o),a[r]?a[r]+=o:a[++r]=o),(n=n[0])===(i=i[0])?a[r]?a[r]+=i:a[++r]=i:(a[++r]=null,l.push({i:r,x:Rz(n,i)})),s=Pz.lastIndex
12507
12494
  return s<e.length&&(o=e.slice(s),a[r]?a[r]+=o:a[++r]=o),a.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)a[(n=l[i]).i]=n.x(t)
12508
- return a.join("")})}function Wz(t,e){var n,i,o=typeof e
12509
- return null==e||"boolean"===o?Rz(e):("number"===o?Hz:"string"===o?(n=bz(e))?(e=n,Pz):jz:e instanceof bz?Pz:e instanceof Date?Vz:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?zz:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Bz:Hz:Lz))(t,e)}function Zz(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Gz,Kz=180/Math.PI,Jz={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
12510
- function Xz(t,e,n,i,o,s){var r,a,l
12511
- return(r=Math.sqrt(t*t+e*e))&&(t/=r,e/=r),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,r=-r),{translateX:o,translateY:s,rotate:Math.atan2(e,t)*Kz,skewX:Math.atan(l)*Kz,scaleX:r,scaleY:a}}function Yz(t,e,n,i){function o(t){return t.length?t.pop()+" ":""}return function(s,r){var a=[],l=[]
12495
+ return a.join("")})}function zz(t,e){var n,i,o=typeof e
12496
+ return null==e||"boolean"===o?_z(e):("number"===o?Rz:"string"===o?(n=hz(e))?(e=n,Dz):Lz:e instanceof hz?Dz:e instanceof Date?Oz:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?Tz:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Fz:Rz:Az))(t,e)}function Vz(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Hz,Bz=180/Math.PI,qz={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
12497
+ function Uz(t,e,n,i,o,s){var r,a,l
12498
+ return(r=Math.sqrt(t*t+e*e))&&(t/=r,e/=r),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,r=-r),{translateX:o,translateY:s,rotate:Math.atan2(e,t)*Bz,skewX:Math.atan(l)*Bz,scaleX:r,scaleY:a}}function jz(t,e,n,i){function o(t){return t.length?t.pop()+" ":""}return function(s,r){var a=[],l=[]
12512
12499
  return s=t(s),r=t(r),function(t,i,o,s,r,a){if(t!==o||i!==s){var l=r.push("translate(",null,e,null,n)
12513
- a.push({i:l-4,x:Hz(t,o)},{i:l-2,x:Hz(i,s)})}else(o||s)&&r.push("translate("+o+e+s+n)}(s.translateX,s.translateY,r.translateX,r.translateY,a,l),function(t,e,n,s){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),s.push({i:n.push(o(n)+"rotate(",null,i)-2,x:Hz(t,e)})):e&&n.push(o(n)+"rotate("+e+i)}(s.rotate,r.rotate,a,l),function(t,e,n,s){t!==e?s.push({i:n.push(o(n)+"skewX(",null,i)-2,x:Hz(t,e)}):e&&n.push(o(n)+"skewX("+e+i)}(s.skewX,r.skewX,a,l),function(t,e,n,i,s,r){if(t!==n||e!==i){var a=s.push(o(s)+"scale(",null,",",null,")")
12514
- r.push({i:a-4,x:Hz(t,n)},{i:a-2,x:Hz(e,i)})}else 1===n&&1===i||s.push(o(s)+"scale("+n+","+i+")")}(s.scaleX,s.scaleY,r.scaleX,r.scaleY,a,l),s=r=null,function(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t)
12515
- return a.join("")}}}var Qz=Yz((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"")
12516
- return e.isIdentity?Jz:Xz(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),tV=Yz((function(t){return null==t?Jz:(Gz||(Gz=document.createElementNS("http://www.w3.org/2000/svg","g")),Gz.setAttribute("transform",t),(t=Gz.transform.baseVal.consolidate())?Xz((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Jz)}),", ",")",")")
12517
- function eV(t){return((t=Math.exp(t))+1/t)/2}var nV,iV,oV=function t(e,n,i){function o(t,o){var s,r,a=t[0],l=t[1],c=t[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
12500
+ a.push({i:l-4,x:Rz(t,o)},{i:l-2,x:Rz(i,s)})}else(o||s)&&r.push("translate("+o+e+s+n)}(s.translateX,s.translateY,r.translateX,r.translateY,a,l),function(t,e,n,s){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),s.push({i:n.push(o(n)+"rotate(",null,i)-2,x:Rz(t,e)})):e&&n.push(o(n)+"rotate("+e+i)}(s.rotate,r.rotate,a,l),function(t,e,n,s){t!==e?s.push({i:n.push(o(n)+"skewX(",null,i)-2,x:Rz(t,e)}):e&&n.push(o(n)+"skewX("+e+i)}(s.skewX,r.skewX,a,l),function(t,e,n,i,s,r){if(t!==n||e!==i){var a=s.push(o(s)+"scale(",null,",",null,")")
12501
+ r.push({i:a-4,x:Rz(t,n)},{i:a-2,x:Rz(e,i)})}else 1===n&&1===i||s.push(o(s)+"scale("+n+","+i+")")}(s.scaleX,s.scaleY,r.scaleX,r.scaleY,a,l),s=r=null,function(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t)
12502
+ return a.join("")}}}var Wz=jz((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"")
12503
+ return e.isIdentity?qz:Uz(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Zz=jz((function(t){return null==t?qz:(Hz||(Hz=document.createElementNS("http://www.w3.org/2000/svg","g")),Hz.setAttribute("transform",t),(t=Hz.transform.baseVal.consolidate())?Uz((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):qz)}),", ",")",")")
12504
+ function Gz(t){return((t=Math.exp(t))+1/t)/2}var Kz,Jz,Xz=function t(e,n,i){function o(t,o){var s,r,a=t[0],l=t[1],c=t[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
12518
12505
  if(m<1e-12)r=Math.log(u/c)/e,s=function(t){return[a+t*p,l+t*f,c*Math.exp(e*t*r)]}
12519
12506
  else{var g=Math.sqrt(m),v=(u*u-c*c+i*m)/(2*c*n*g),b=(u*u-c*c-i*m)/(2*u*n*g),y=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(b*b+1)-b)
12520
- r=(w-y)/e,s=function(t){var i,o=t*r,s=eV(y),d=c/(n*g)*(s*(i=e*o+y,((i=Math.exp(2*i))-1)/(i+1))-function(t){return((t=Math.exp(t))-1/t)/2}(y))
12521
- return[a+d*p,l+d*f,c*s/eV(e*o+y)]}}return s.duration=1e3*r*e/Math.SQRT2,s}return o.rho=function(e){var n=Math.max(.001,+e),i=n*n
12522
- return t(n,i,i*i)},o}(Math.SQRT2,2,4),sV=0,rV=0,aV=0,lV=1e3,cV=0,dV=0,hV=0,uV="object"==typeof performance&&performance.now?performance:Date,pV="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)}
12523
- function fV(){return dV||(pV(mV),dV=uV.now()+hV)}function mV(){dV=0}function gV(){this._call=this._time=this._next=null}function vV(t,e,n){var i=new gV
12524
- return i.restart(t,e,n),i}function bV(){dV=(cV=uV.now())+hV,sV=rV=0
12525
- try{!function(){fV(),++sV
12526
- for(var t,e=nV;e;)(t=dV-e._time)>=0&&e._call.call(void 0,t),e=e._next;--sV}()}finally{sV=0,function(){var t,e,n=nV,i=1/0
12527
- for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:nV=e)
12528
- iV=t,wV(i)}(),dV=0}}function yV(){var t=uV.now(),e=t-cV
12529
- e>lV&&(hV-=e,cV=t)}function wV(t){sV||(rV&&(rV=clearTimeout(rV)),t-dV>24?(t<1/0&&(rV=setTimeout(bV,t-uV.now()-hV)),aV&&(aV=clearInterval(aV))):(aV||(cV=uV.now(),aV=setInterval(yV,lV)),sV=1,pV(bV)))}function xV(t,e,n){var i=new gV
12530
- return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}gV.prototype=vV.prototype={constructor:gV,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function")
12531
- n=(null==n?fV():+n)+(null==e?0:+e),this._next||iV===this||(iV?iV._next=this:nV=this,iV=this),this._call=t,this._time=n,wV()},stop:function(){this._call&&(this._call=null,this._time=1/0,wV())}}
12532
- var CV=RP("start","end","cancel","interrupt"),kV=[],SV=0,$V=1,MV=2,_V=3,EV=4,IV=5,DV=6
12533
- function AV(t,e,n,i,o,s){var r=t.__transition
12507
+ r=(w-y)/e,s=function(t){var i,o=t*r,s=Gz(y),d=c/(n*g)*(s*(i=e*o+y,((i=Math.exp(2*i))-1)/(i+1))-function(t){return((t=Math.exp(t))-1/t)/2}(y))
12508
+ return[a+d*p,l+d*f,c*s/Gz(e*o+y)]}}return s.duration=1e3*r*e/Math.SQRT2,s}return o.rho=function(e){var n=Math.max(.001,+e),i=n*n
12509
+ return t(n,i,i*i)},o}(Math.SQRT2,2,4),Yz=0,Qz=0,tV=0,eV=1e3,nV=0,iV=0,oV=0,sV="object"==typeof performance&&performance.now?performance:Date,rV="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)}
12510
+ function aV(){return iV||(rV(lV),iV=sV.now()+oV)}function lV(){iV=0}function cV(){this._call=this._time=this._next=null}function dV(t,e,n){var i=new cV
12511
+ return i.restart(t,e,n),i}function hV(){iV=(nV=sV.now())+oV,Yz=Qz=0
12512
+ try{!function(){aV(),++Yz
12513
+ for(var t,e=Kz;e;)(t=iV-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Yz}()}finally{Yz=0,function(){var t,e,n=Kz,i=1/0
12514
+ for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Kz=e)
12515
+ Jz=t,pV(i)}(),iV=0}}function uV(){var t=sV.now(),e=t-nV
12516
+ e>eV&&(oV-=e,nV=t)}function pV(t){Yz||(Qz&&(Qz=clearTimeout(Qz)),t-iV>24?(t<1/0&&(Qz=setTimeout(hV,t-sV.now()-oV)),tV&&(tV=clearInterval(tV))):(tV||(nV=sV.now(),tV=setInterval(uV,eV)),Yz=1,rV(hV)))}function fV(t,e,n){var i=new cV
12517
+ return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}cV.prototype=dV.prototype={constructor:cV,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function")
12518
+ n=(null==n?aV():+n)+(null==e?0:+e),this._next||Jz===this||(Jz?Jz._next=this:Kz=this,Jz=this),this._call=t,this._time=n,pV()},stop:function(){this._call&&(this._call=null,this._time=1/0,pV())}}
12519
+ var mV=_P("start","end","cancel","interrupt"),gV=[],vV=0,bV=1,yV=2,wV=3,xV=4,CV=5,kV=6
12520
+ function SV(t,e,n,i,o,s){var r=t.__transition
12534
12521
  if(r){if(n in r)return}else t.__transition={}
12535
12522
  !function(t,e,n){var i,o=t.__transition
12536
- function s(t){n.state=$V,n.timer.restart(r,n.delay,n.time),n.delay<=t&&r(t-n.delay)}function r(s){var c,d,h,u
12537
- if(n.state!==$V)return l()
12538
- for(c in o)if((u=o[c]).name===n.name){if(u.state===_V)return xV(r)
12539
- u.state===EV?(u.state=DV,u.timer.stop(),u.on.call("interrupt",t,t.__data__,u.index,u.group),delete o[c]):+c<e&&(u.state=DV,u.timer.stop(),u.on.call("cancel",t,t.__data__,u.index,u.group),delete o[c])}if(xV((function(){n.state===_V&&(n.state=EV,n.timer.restart(a,n.delay,n.time),a(s))})),n.state=MV,n.on.call("start",t,t.__data__,n.index,n.group),n.state===MV){for(n.state=_V,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++d]=u)
12540
- i.length=d+1}}function a(e){for(var o=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=IV,1),s=-1,r=i.length;++s<r;)i[s].call(t,o)
12541
- n.state===IV&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var i in n.state=DV,n.timer.stop(),delete o[e],o)return
12542
- delete t.__transition}o[e]=n,n.timer=vV(s,0,n.time)}(t,n,{name:e,index:i,group:o,on:CV,tween:kV,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:SV})}function TV(t,e){var n=RV(t,e)
12543
- if(n.state>SV)throw new Error("too late; already scheduled")
12544
- return n}function OV(t,e){var n=RV(t,e)
12545
- if(n.state>_V)throw new Error("too late; already running")
12546
- return n}function RV(t,e){var n=t.__transition
12523
+ function s(t){n.state=bV,n.timer.restart(r,n.delay,n.time),n.delay<=t&&r(t-n.delay)}function r(s){var c,d,h,u
12524
+ if(n.state!==bV)return l()
12525
+ for(c in o)if((u=o[c]).name===n.name){if(u.state===wV)return fV(r)
12526
+ u.state===xV?(u.state=kV,u.timer.stop(),u.on.call("interrupt",t,t.__data__,u.index,u.group),delete o[c]):+c<e&&(u.state=kV,u.timer.stop(),u.on.call("cancel",t,t.__data__,u.index,u.group),delete o[c])}if(fV((function(){n.state===wV&&(n.state=xV,n.timer.restart(a,n.delay,n.time),a(s))})),n.state=yV,n.on.call("start",t,t.__data__,n.index,n.group),n.state===yV){for(n.state=wV,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++d]=u)
12527
+ i.length=d+1}}function a(e){for(var o=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=CV,1),s=-1,r=i.length;++s<r;)i[s].call(t,o)
12528
+ n.state===CV&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var i in n.state=kV,n.timer.stop(),delete o[e],o)return
12529
+ delete t.__transition}o[e]=n,n.timer=dV(s,0,n.time)}(t,n,{name:e,index:i,group:o,on:mV,tween:gV,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:vV})}function $V(t,e){var n=_V(t,e)
12530
+ if(n.state>vV)throw new Error("too late; already scheduled")
12531
+ return n}function MV(t,e){var n=_V(t,e)
12532
+ if(n.state>wV)throw new Error("too late; already running")
12533
+ return n}function _V(t,e){var n=t.__transition
12547
12534
  if(!n||!(n=n[e]))throw new Error("transition not found")
12548
- return n}function FV(t,e){var n,i,o,s=t.__transition,r=!0
12549
- if(s){for(o in e=null==e?null:e+"",s)(n=s[o]).name===e?(i=n.state>MV&&n.state<IV,n.state=DV,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete s[o]):r=!1
12550
- r&&delete t.__transition}}function NV(t,e){var n,i
12551
- return function(){var o=OV(this,t),s=o.tween
12535
+ return n}function EV(t,e){var n,i,o,s=t.__transition,r=!0
12536
+ if(s){for(o in e=null==e?null:e+"",s)(n=s[o]).name===e?(i=n.state>yV&&n.state<CV,n.state=kV,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete s[o]):r=!1
12537
+ r&&delete t.__transition}}function IV(t,e){var n,i
12538
+ return function(){var o=MV(this,t),s=o.tween
12552
12539
  if(s!==n)for(var r=0,a=(i=n=s).length;r<a;++r)if(i[r].name===e){(i=i.slice()).splice(r,1)
12553
- break}o.tween=i}}function PV(t,e,n){var i,o
12540
+ break}o.tween=i}}function DV(t,e,n){var i,o
12554
12541
  if("function"!=typeof n)throw new Error
12555
- return function(){var s=OV(this,t),r=s.tween
12542
+ return function(){var s=MV(this,t),r=s.tween
12556
12543
  if(r!==i){o=(i=r).slice()
12557
12544
  for(var a={name:e,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===e){o[l]=a
12558
- break}l===c&&o.push(a)}s.tween=o}}function LV(t,e,n){var i=t._id
12559
- return t.each((function(){var t=OV(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return RV(t,i).value[e]}}function zV(t,e){var n
12560
- return("number"==typeof e?Hz:e instanceof bz?Pz:(n=bz(e))?(e=n,Pz):jz)(t,e)}function VV(t){return function(){this.removeAttribute(t)}}function HV(t){return function(){this.removeAttributeNS(t.space,t.local)}}function BV(t,e,n){var i,o,s=n+""
12545
+ break}l===c&&o.push(a)}s.tween=o}}function AV(t,e,n){var i=t._id
12546
+ return t.each((function(){var t=MV(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return _V(t,i).value[e]}}function TV(t,e){var n
12547
+ return("number"==typeof e?Rz:e instanceof hz?Dz:(n=hz(e))?(e=n,Dz):Lz)(t,e)}function OV(t){return function(){this.removeAttribute(t)}}function RV(t){return function(){this.removeAttributeNS(t.space,t.local)}}function FV(t,e,n){var i,o,s=n+""
12561
12548
  return function(){var r=this.getAttribute(t)
12562
- return r===s?null:r===i?o:o=e(i=r,n)}}function qV(t,e,n){var i,o,s=n+""
12549
+ return r===s?null:r===i?o:o=e(i=r,n)}}function NV(t,e,n){var i,o,s=n+""
12563
12550
  return function(){var r=this.getAttributeNS(t.space,t.local)
12564
- return r===s?null:r===i?o:o=e(i=r,n)}}function UV(t,e,n){var i,o,s
12551
+ return r===s?null:r===i?o:o=e(i=r,n)}}function PV(t,e,n){var i,o,s
12565
12552
  return function(){var r,a,l=n(this)
12566
12553
  if(null!=l)return(r=this.getAttribute(t))===(a=l+"")?null:r===i&&a===o?s:(o=a,s=e(i=r,l))
12567
- this.removeAttribute(t)}}function jV(t,e,n){var i,o,s
12554
+ this.removeAttribute(t)}}function LV(t,e,n){var i,o,s
12568
12555
  return function(){var r,a,l=n(this)
12569
12556
  if(null!=l)return(r=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:r===i&&a===o?s:(o=a,s=e(i=r,l))
12570
- this.removeAttributeNS(t.space,t.local)}}function WV(t,e){var n,i
12557
+ this.removeAttributeNS(t.space,t.local)}}function zV(t,e){var n,i
12571
12558
  function o(){var o=e.apply(this,arguments)
12572
- return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,o)),n}return o._value=e,o}function ZV(t,e){var n,i
12559
+ return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,o)),n}return o._value=e,o}function VV(t,e){var n,i
12573
12560
  function o(){var o=e.apply(this,arguments)
12574
- return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,o)),n}return o._value=e,o}function GV(t,e){return function(){TV(this,t).delay=+e.apply(this,arguments)}}function KV(t,e){return e=+e,function(){TV(this,t).delay=e}}function JV(t,e){return function(){OV(this,t).duration=+e.apply(this,arguments)}}function XV(t,e){return e=+e,function(){OV(this,t).duration=e}}var YV=KL.prototype.constructor
12575
- function QV(t){return function(){this.style.removeProperty(t)}}var tH=0
12576
- function eH(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function nH(){return++tH}var iH=KL.prototype
12577
- eH.prototype={constructor:eH,select:function(t){var e=this._name,n=this._id
12578
- "function"!=typeof t&&(t=jP(t))
12579
- for(var i=this._groups,o=i.length,s=new Array(o),r=0;r<o;++r)for(var a,l,c=i[r],d=c.length,h=s[r]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=t.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,AV(h[u],e,n,u,h,RV(a,n)))
12580
- return new eH(s,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id
12581
- "function"!=typeof t&&(t=ZP(t))
12582
- for(var i=this._groups,o=i.length,s=[],r=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=t.call(l,l.__data__,h,c),f=RV(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&AV(u,e,n,m,p,f)
12583
- s.push(p),r.push(l)}return new eH(s,r,e,n)},selectChild:iH.selectChild,selectChildren:iH.selectChildren,filter:function(t){"function"!=typeof t&&(t=KP(t))
12561
+ return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,o)),n}return o._value=e,o}function HV(t,e){return function(){$V(this,t).delay=+e.apply(this,arguments)}}function BV(t,e){return e=+e,function(){$V(this,t).delay=e}}function qV(t,e){return function(){MV(this,t).duration=+e.apply(this,arguments)}}function UV(t,e){return e=+e,function(){MV(this,t).duration=e}}var jV=BL.prototype.constructor
12562
+ function WV(t){return function(){this.style.removeProperty(t)}}var ZV=0
12563
+ function GV(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function KV(){return++ZV}var JV=BL.prototype
12564
+ GV.prototype={constructor:GV,select:function(t){var e=this._name,n=this._id
12565
+ "function"!=typeof t&&(t=LP(t))
12566
+ for(var i=this._groups,o=i.length,s=new Array(o),r=0;r<o;++r)for(var a,l,c=i[r],d=c.length,h=s[r]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=t.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,SV(h[u],e,n,u,h,_V(a,n)))
12567
+ return new GV(s,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id
12568
+ "function"!=typeof t&&(t=VP(t))
12569
+ for(var i=this._groups,o=i.length,s=[],r=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=t.call(l,l.__data__,h,c),f=_V(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&SV(u,e,n,m,p,f)
12570
+ s.push(p),r.push(l)}return new GV(s,r,e,n)},selectChild:JV.selectChild,selectChildren:JV.selectChildren,filter:function(t){"function"!=typeof t&&(t=BP(t))
12584
12571
  for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var s,r=e[o],a=r.length,l=i[o]=[],c=0;c<a;++c)(s=r[c])&&t.call(s,s.__data__,c,r)&&l.push(s)
12585
- return new eH(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error
12572
+ return new GV(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error
12586
12573
  for(var e=this._groups,n=t._groups,i=e.length,o=n.length,s=Math.min(i,o),r=new Array(i),a=0;a<s;++a)for(var l,c=e[a],d=n[a],h=c.length,u=r[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
12587
12574
  for(;a<i;++a)r[a]=e[a]
12588
- return new eH(r,this._parents,this._name,this._id)},selection:function(){return new YV(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=nH(),i=this._groups,o=i.length,s=0;s<o;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)if(r=a[c]){var d=RV(r,e)
12589
- AV(r,t,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new eH(i,this._parents,t,n)},call:iH.call,nodes:iH.nodes,node:iH.node,size:iH.size,empty:iH.empty,each:iH.each,on:function(t,e){var n=this._id
12590
- return arguments.length<2?RV(this.node(),n).on.on(t):this.each(function(t,e,n){var i,o,s=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".")
12591
- return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?TV:OV
12575
+ return new GV(r,this._parents,this._name,this._id)},selection:function(){return new jV(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=KV(),i=this._groups,o=i.length,s=0;s<o;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)if(r=a[c]){var d=_V(r,e)
12576
+ SV(r,t,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new GV(i,this._parents,t,n)},call:JV.call,nodes:JV.nodes,node:JV.node,size:JV.size,empty:JV.empty,each:JV.each,on:function(t,e){var n=this._id
12577
+ return arguments.length<2?_V(this.node(),n).on.on(t):this.each(function(t,e,n){var i,o,s=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".")
12578
+ return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?$V:MV
12592
12579
  return function(){var r=s(this,t),a=r.on
12593
- a!==i&&(o=(i=a).copy()).on(e,n),r.on=o}}(n,t,e))},attr:function(t,e){var n=VP(t),i="transform"===n?tV:zV
12594
- return this.attrTween(t,"function"==typeof e?(n.local?jV:UV)(n,i,LV(this,"attr."+t,e)):null==e?(n.local?HV:VV)(n):(n.local?qV:BV)(n,i,e))},attrTween:function(t,e){var n="attr."+t
12580
+ a!==i&&(o=(i=a).copy()).on(e,n),r.on=o}}(n,t,e))},attr:function(t,e){var n=OP(t),i="transform"===n?Zz:TV
12581
+ return this.attrTween(t,"function"==typeof e?(n.local?LV:PV)(n,i,AV(this,"attr."+t,e)):null==e?(n.local?RV:OV)(n):(n.local?NV:FV)(n,i,e))},attrTween:function(t,e){var n="attr."+t
12595
12582
  if(arguments.length<2)return(n=this.tween(n))&&n._value
12596
12583
  if(null==e)return this.tween(n,null)
12597
12584
  if("function"!=typeof e)throw new Error
12598
- var i=VP(t)
12599
- return this.tween(n,(i.local?WV:ZV)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Qz:zV
12585
+ var i=OP(t)
12586
+ return this.tween(n,(i.local?zV:VV)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Wz:TV
12600
12587
  return null==e?this.styleTween(t,function(t,e){var n,i,o
12601
- return function(){var s=bL(this,t),r=(this.style.removeProperty(t),bL(this,t))
12602
- return s===r?null:s===n&&r===i?o:o=e(n=s,i=r)}}(t,i)).on("end.style."+t,QV(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,o,s
12603
- return function(){var r=bL(this,t),a=n(this),l=a+""
12604
- return null==a&&(this.style.removeProperty(t),l=a=bL(this,t)),r===l?null:r===i&&l===o?s:(o=l,s=e(i=r,a))}}(t,i,LV(this,"style."+t,e))).each(function(t,e){var n,i,o,s,r="style."+e,a="end."+r
12605
- return function(){var l=OV(this,t),c=l.on,d=null==l.value[r]?s||(s=QV(e)):void 0
12588
+ return function(){var s=hL(this,t),r=(this.style.removeProperty(t),hL(this,t))
12589
+ return s===r?null:s===n&&r===i?o:o=e(n=s,i=r)}}(t,i)).on("end.style."+t,WV(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,o,s
12590
+ return function(){var r=hL(this,t),a=n(this),l=a+""
12591
+ return null==a&&(this.style.removeProperty(t),l=a=hL(this,t)),r===l?null:r===i&&l===o?s:(o=l,s=e(i=r,a))}}(t,i,AV(this,"style."+t,e))).each(function(t,e){var n,i,o,s,r="style."+e,a="end."+r
12592
+ return function(){var l=MV(this,t),c=l.on,d=null==l.value[r]?s||(s=WV(e)):void 0
12606
12593
  c===n&&o===d||(i=(n=c).copy()).on(a,o=d),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,o,s=n+""
12607
- return function(){var r=bL(this,t)
12594
+ return function(){var r=hL(this,t)
12608
12595
  return r===s?null:r===i?o:o=e(i=r,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="")
12609
12596
  if(arguments.length<2)return(i=this.tween(i))&&i._value
12610
12597
  if(null==e)return this.tween(i,null)
@@ -12612,7 +12599,7 @@ if("function"!=typeof e)throw new Error
12612
12599
  return this.tween(i,function(t,e,n){var i,o
12613
12600
  function s(){var s=e.apply(this,arguments)
12614
12601
  return s!==o&&(i=(o=s)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,s,n)),i}return s._value=e,s}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this)
12615
- this.textContent=null==e?"":e}}(LV(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text"
12602
+ this.textContent=null==e?"":e}}(AV(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text"
12616
12603
  if(arguments.length<1)return(e=this.tween(e))&&e._value
12617
12604
  if(null==t)return this.tween(e,null)
12618
12605
  if("function"!=typeof t)throw new Error
@@ -12621,59 +12608,59 @@ function i(){var i=t.apply(this,arguments)
12621
12608
  return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode
12622
12609
  for(var n in this.__transition)if(+n!==t)return
12623
12610
  e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id
12624
- if(t+="",arguments.length<2){for(var i,o=RV(this.node(),n).tween,s=0,r=o.length;s<r;++s)if((i=o[s]).name===t)return i.value
12625
- return null}return this.each((null==e?NV:PV)(n,t,e))},delay:function(t){var e=this._id
12626
- return arguments.length?this.each(("function"==typeof t?GV:KV)(e,t)):RV(this.node(),e).delay},duration:function(t){var e=this._id
12627
- return arguments.length?this.each(("function"==typeof t?JV:XV)(e,t)):RV(this.node(),e).duration},ease:function(t){var e=this._id
12611
+ if(t+="",arguments.length<2){for(var i,o=_V(this.node(),n).tween,s=0,r=o.length;s<r;++s)if((i=o[s]).name===t)return i.value
12612
+ return null}return this.each((null==e?IV:DV)(n,t,e))},delay:function(t){var e=this._id
12613
+ return arguments.length?this.each(("function"==typeof t?HV:BV)(e,t)):_V(this.node(),e).delay},duration:function(t){var e=this._id
12614
+ return arguments.length?this.each(("function"==typeof t?qV:UV)(e,t)):_V(this.node(),e).duration},ease:function(t){var e=this._id
12628
12615
  return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error
12629
- return function(){OV(this,t).ease=e}}(e,t)):RV(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error
12616
+ return function(){MV(this,t).ease=e}}(e,t)):_V(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error
12630
12617
  return this.each(function(t,e){return function(){var n=e.apply(this,arguments)
12631
12618
  if("function"!=typeof n)throw new Error
12632
- OV(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,o=n.size()
12619
+ MV(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,o=n.size()
12633
12620
  return new Promise((function(s,r){var a={value:r},l={value:function(){0==--o&&s()}}
12634
- n.each((function(){var n=OV(this,i),o=n.on
12635
- o!==t&&((e=(t=o).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e})),0===o&&s()}))},[Symbol.iterator]:iH[Symbol.iterator]}
12636
- var oH={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}}
12637
- function sH(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`)
12638
- return n}KL.prototype.interrupt=function(t){return this.each((function(){FV(this,t)}))},KL.prototype.transition=function(t){var e,n
12639
- t instanceof eH?(e=t._id,t=t._name):(e=nH(),(n=oH).time=fV(),t=null==t?null:t+"")
12640
- for(var i=this._groups,o=i.length,s=0;s<o;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)(r=a[c])&&AV(r,t,e,c,a,n||sH(r,e))
12641
- return new eH(i,this._parents,t,e)}
12642
- var rH=t=>()=>t
12643
- function aH(t,{sourceEvent:e,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function lH(t,e,n){this.k=t,this.x=e,this.y=n}lH.prototype={constructor:lH,scale:function(t){return 1===t?this:new lH(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new lH(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
12644
- var cH=new lH(1,0,0)
12645
- function dH(t){t.stopImmediatePropagation()}function hH(t){t.preventDefault(),t.stopImmediatePropagation()}function uH(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function pH(){var t=this
12646
- return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function fH(){return this.__zoom||cH}function mH(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function gH(){return navigator.maxTouchPoints||"ontouchstart"in this}function vH(t,e,n){var i=t.invertX(e[0][0])-n[0][0],o=t.invertX(e[1][0])-n[1][0],s=t.invertY(e[0][1])-n[0][1],r=t.invertY(e[1][1])-n[1][1]
12647
- return t.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}function bH(){var t,e,n,i=uH,o=pH,s=vH,r=mH,a=gH,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=oV,u=RP("start","zoom","end"),p=500,f=150,m=0,g=10
12648
- function v(t){t.property("__zoom",fH).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new lH(e,t.x,t.y)}function y(t,e,n){var i=e[0]-n[0]*t.k,o=e[1]-n[1]*t.k
12649
- return i===t.x&&o===t.y?t:new lH(t.k,i,o)}function w(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,e,n,i){t.on("start.zoom",(function(){C(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){C(this,arguments).event(i).end()})).tween("zoom",(function(){var t=this,s=arguments,r=C(t,s).event(i),a=o.apply(t,s),l=null==n?w(a):"function"==typeof n?n.apply(t,s):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=t.__zoom,u="function"==typeof e?e.apply(t,s):e,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
12621
+ n.each((function(){var n=MV(this,i),o=n.on
12622
+ o!==t&&((e=(t=o).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e})),0===o&&s()}))},[Symbol.iterator]:JV[Symbol.iterator]}
12623
+ var XV={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}}
12624
+ function YV(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`)
12625
+ return n}BL.prototype.interrupt=function(t){return this.each((function(){EV(this,t)}))},BL.prototype.transition=function(t){var e,n
12626
+ t instanceof GV?(e=t._id,t=t._name):(e=KV(),(n=XV).time=aV(),t=null==t?null:t+"")
12627
+ for(var i=this._groups,o=i.length,s=0;s<o;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)(r=a[c])&&SV(r,t,e,c,a,n||YV(r,e))
12628
+ return new GV(i,this._parents,t,e)}
12629
+ var QV=t=>()=>t
12630
+ function tH(t,{sourceEvent:e,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function eH(t,e,n){this.k=t,this.x=e,this.y=n}eH.prototype={constructor:eH,scale:function(t){return 1===t?this:new eH(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new eH(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
12631
+ var nH=new eH(1,0,0)
12632
+ function iH(t){t.stopImmediatePropagation()}function oH(t){t.preventDefault(),t.stopImmediatePropagation()}function sH(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function rH(){var t=this
12633
+ return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function aH(){return this.__zoom||nH}function lH(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function cH(){return navigator.maxTouchPoints||"ontouchstart"in this}function dH(t,e,n){var i=t.invertX(e[0][0])-n[0][0],o=t.invertX(e[1][0])-n[1][0],s=t.invertY(e[0][1])-n[0][1],r=t.invertY(e[1][1])-n[1][1]
12634
+ return t.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}function hH(){var t,e,n,i=sH,o=rH,s=dH,r=lH,a=cH,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Xz,u=_P("start","zoom","end"),p=500,f=150,m=0,g=10
12635
+ function v(t){t.property("__zoom",aH).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new eH(e,t.x,t.y)}function y(t,e,n){var i=e[0]-n[0]*t.k,o=e[1]-n[1]*t.k
12636
+ return i===t.x&&o===t.y?t:new eH(t.k,i,o)}function w(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,e,n,i){t.on("start.zoom",(function(){C(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){C(this,arguments).event(i).end()})).tween("zoom",(function(){var t=this,s=arguments,r=C(t,s).event(i),a=o.apply(t,s),l=null==n?w(a):"function"==typeof n?n.apply(t,s):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=t.__zoom,u="function"==typeof e?e.apply(t,s):e,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
12650
12637
  return function(t){if(1===t)t=u
12651
12638
  else{var e=p(t),n=c/e[2]
12652
- t=new lH(n,l[0]-e[0]*n,l[1]-e[1]*n)}r.zoom(null,t)}}))}function C(t,e,n){return!n&&t.__zooming||new k(t,e)}function k(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=o.apply(t,e),this.taps=0}function S(t,...e){if(i.apply(this,arguments)){var n=C(this,e).event(t),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,r.apply(this,arguments)))),d=XL(t)
12639
+ t=new eH(n,l[0]-e[0]*n,l[1]-e[1]*n)}r.zoom(null,t)}}))}function C(t,e,n){return!n&&t.__zooming||new k(t,e)}function k(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=o.apply(t,e),this.taps=0}function S(t,...e){if(i.apply(this,arguments)){var n=C(this,e).event(t),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,r.apply(this,arguments)))),d=UL(t)
12653
12640
  if(n.wheel)n.mouse[0][0]===d[0]&&n.mouse[0][1]===d[1]||(n.mouse[1]=o.invert(n.mouse[0]=d)),clearTimeout(n.wheel)
12654
12641
  else{if(o.k===a)return
12655
- n.mouse=[d,o.invert(d)],FV(this),n.start()}hH(t),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",s(y(b(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function $(t,...e){if(!n&&i.apply(this,arguments)){var o=t.currentTarget,r=C(this,e,!0).event(t),a=JL(t.view).on("mousemove.zoom",(function(t){if(hH(t),!r.moved){var e=t.clientX-d,n=t.clientY-h
12656
- r.moved=e*e+n*n>m}r.event(t).zoom("mouse",s(y(r.that.__zoom,r.mouse[0]=XL(t,o),r.mouse[1]),r.extent,c))}),!0).on("mouseup.zoom",(function(t){a.on("mousemove.zoom mouseup.zoom",null),function(t,e){var n=t.document.documentElement,i=JL(t).on("dragstart.drag",null)
12657
- e&&(i.on("click.drag",QL,YL),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(t.view,r.moved),hH(t),r.event(t).end()}),!0),l=XL(t,o),d=t.clientX,h=t.clientY
12658
- !function(t){var e=t.document.documentElement,n=JL(t).on("dragstart.drag",QL,YL)
12659
- "onselectstart"in e?n.on("selectstart.drag",QL,YL):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}(t.view),dH(t),r.mouse=[l,this.__zoom.invert(l)],FV(this),r.start()}}function M(t,...e){if(i.apply(this,arguments)){var n=this.__zoom,r=XL(t.changedTouches?t.changedTouches[0]:t,this),a=n.invert(r),l=n.k*(t.shiftKey?.5:2),h=s(y(b(n,l),r,a),o.apply(this,e),c)
12660
- hH(t),d>0?JL(this).transition().duration(d).call(x,h,r,t):JL(this).call(v.transform,h,r,t)}}function _(n,...o){if(i.apply(this,arguments)){var s,r,a,l,c=n.touches,d=c.length,h=C(this,o,n.changedTouches.length===d).event(n)
12661
- for(dH(n),r=0;r<d;++r)l=[l=XL(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+!!t)
12662
- t&&(t=clearTimeout(t)),s&&(h.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),p)),FV(this),h.start())}}function E(t,...e){if(this.__zooming){var n,i,o,r,a=C(this,e).event(t),l=t.changedTouches,d=l.length
12663
- for(hH(t),n=0;n<d;++n)o=XL(i=l[n],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=o:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=o)
12642
+ n.mouse=[d,o.invert(d)],EV(this),n.start()}oH(t),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",s(y(b(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function $(t,...e){if(!n&&i.apply(this,arguments)){var o=t.currentTarget,r=C(this,e,!0).event(t),a=qL(t.view).on("mousemove.zoom",(function(t){if(oH(t),!r.moved){var e=t.clientX-d,n=t.clientY-h
12643
+ r.moved=e*e+n*n>m}r.event(t).zoom("mouse",s(y(r.that.__zoom,r.mouse[0]=UL(t,o),r.mouse[1]),r.extent,c))}),!0).on("mouseup.zoom",(function(t){a.on("mousemove.zoom mouseup.zoom",null),function(t,e){var n=t.document.documentElement,i=qL(t).on("dragstart.drag",null)
12644
+ e&&(i.on("click.drag",WL,jL),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(t.view,r.moved),oH(t),r.event(t).end()}),!0),l=UL(t,o),d=t.clientX,h=t.clientY
12645
+ !function(t){var e=t.document.documentElement,n=qL(t).on("dragstart.drag",WL,jL)
12646
+ "onselectstart"in e?n.on("selectstart.drag",WL,jL):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}(t.view),iH(t),r.mouse=[l,this.__zoom.invert(l)],EV(this),r.start()}}function M(t,...e){if(i.apply(this,arguments)){var n=this.__zoom,r=UL(t.changedTouches?t.changedTouches[0]:t,this),a=n.invert(r),l=n.k*(t.shiftKey?.5:2),h=s(y(b(n,l),r,a),o.apply(this,e),c)
12647
+ oH(t),d>0?qL(this).transition().duration(d).call(x,h,r,t):qL(this).call(v.transform,h,r,t)}}function _(n,...o){if(i.apply(this,arguments)){var s,r,a,l,c=n.touches,d=c.length,h=C(this,o,n.changedTouches.length===d).event(n)
12648
+ for(iH(n),r=0;r<d;++r)l=[l=UL(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+!!t)
12649
+ t&&(t=clearTimeout(t)),s&&(h.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),p)),EV(this),h.start())}}function E(t,...e){if(this.__zooming){var n,i,o,r,a=C(this,e).event(t),l=t.changedTouches,d=l.length
12650
+ for(oH(t),n=0;n<d;++n)o=UL(i=l[n],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=o:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=o)
12664
12651
  if(i=a.that.__zoom,a.touch1){var h=a.touch0[0],u=a.touch0[1],p=a.touch1[0],f=a.touch1[1],m=(m=p[0]-h[0])*m+(m=p[1]-h[1])*m,g=(g=f[0]-u[0])*g+(g=f[1]-u[1])*g
12665
12652
  i=b(i,Math.sqrt(m/g)),o=[(h[0]+p[0])/2,(h[1]+p[1])/2],r=[(u[0]+f[0])/2,(u[1]+f[1])/2]}else{if(!a.touch0)return
12666
12653
  o=a.touch0[0],r=a.touch0[1]}a.zoom("touch",s(y(i,o,r),a.extent,c))}}function I(t,...i){if(this.__zooming){var o,s,r=C(this,i).event(t),a=t.changedTouches,l=a.length
12667
- for(dH(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<l;++o)s=a[o],r.touch0&&r.touch0[2]===s.identifier?delete r.touch0:r.touch1&&r.touch1[2]===s.identifier&&delete r.touch1
12654
+ for(iH(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<l;++o)s=a[o],r.touch0&&r.touch0[2]===s.identifier?delete r.touch0:r.touch1&&r.touch1[2]===s.identifier&&delete r.touch1
12668
12655
  if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0])
12669
- else if(r.end(),2===r.taps&&(s=XL(s,this),Math.hypot(e[0]-s[0],e[1]-s[1])<g)){var c=JL(this).on("dblclick.zoom")
12656
+ else if(r.end(),2===r.taps&&(s=UL(s,this),Math.hypot(e[0]-s[0],e[1]-s[1])<g)){var c=qL(this).on("dblclick.zoom")
12670
12657
  c&&c.apply(this,arguments)}}}return v.transform=function(t,e,n,i){var o=t.selection?t.selection():t
12671
- o.property("__zoom",fH),t!==o?x(t,e,n,i):o.interrupt().each((function(){C(this,arguments).event(i).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},v.scaleBy=function(t,e,n,i){v.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)}),n,i)},v.scaleTo=function(t,e,n,i){v.transform(t,(function(){var t=o.apply(this,arguments),i=this.__zoom,r=null==n?w(t):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(r),l="function"==typeof e?e.apply(this,arguments):e
12658
+ o.property("__zoom",aH),t!==o?x(t,e,n,i):o.interrupt().each((function(){C(this,arguments).event(i).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},v.scaleBy=function(t,e,n,i){v.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)}),n,i)},v.scaleTo=function(t,e,n,i){v.transform(t,(function(){var t=o.apply(this,arguments),i=this.__zoom,r=null==n?w(t):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(r),l="function"==typeof e?e.apply(this,arguments):e
12672
12659
  return s(y(b(i,l),r,a),t,c)}),n,i)},v.translateBy=function(t,e,n,i){v.transform(t,(function(){return s(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,i)},v.translateTo=function(t,e,n,i,r){v.transform(t,(function(){var t=o.apply(this,arguments),r=this.__zoom,a=null==i?w(t):"function"==typeof i?i.apply(this,arguments):i
12673
- return s(cH.translate(a[0],a[1]).scale(r.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)}),i,r)},k.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=JL(this.that).datum()
12674
- u.call(t,this.that,new aH(t,{sourceEvent:this.sourceEvent,target:v,type:t,transform:this.that.__zoom,dispatch:u}),e)}},v.wheelDelta=function(t){return arguments.length?(r="function"==typeof t?t:rH(+t),v):r},v.filter=function(t){return arguments.length?(i="function"==typeof t?t:rH(!!t),v):i},v.touchable=function(t){return arguments.length?(a="function"==typeof t?t:rH(!!t),v):a},v.extent=function(t){return arguments.length?(o="function"==typeof t?t:rH([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),v):o},v.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],v):[l[0],l[1]]},v.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(t){return arguments.length?(s=t,v):s},v.duration=function(t){return arguments.length?(d=+t,v):d},v.interpolate=function(t){return arguments.length?(h=t,v):h},v.on=function(){var t=u.on.apply(u,arguments)
12675
- return t===u?v:t},v.clickDistance=function(t){return arguments.length?(m=(t=+t)*t,v):Math.sqrt(m)},v.tapDistance=function(t){return arguments.length?(g=+t,v):g},v}lH.prototype
12676
- const yH=Z`
12660
+ return s(nH.translate(a[0],a[1]).scale(r.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)}),i,r)},k.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=qL(this.that).datum()
12661
+ u.call(t,this.that,new tH(t,{sourceEvent:this.sourceEvent,target:v,type:t,transform:this.that.__zoom,dispatch:u}),e)}},v.wheelDelta=function(t){return arguments.length?(r="function"==typeof t?t:QV(+t),v):r},v.filter=function(t){return arguments.length?(i="function"==typeof t?t:QV(!!t),v):i},v.touchable=function(t){return arguments.length?(a="function"==typeof t?t:QV(!!t),v):a},v.extent=function(t){return arguments.length?(o="function"==typeof t?t:QV([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),v):o},v.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],v):[l[0],l[1]]},v.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(t){return arguments.length?(s=t,v):s},v.duration=function(t){return arguments.length?(d=+t,v):d},v.interpolate=function(t){return arguments.length?(h=t,v):h},v.on=function(){var t=u.on.apply(u,arguments)
12662
+ return t===u?v:t},v.clickDistance=function(t){return arguments.length?(m=(t=+t)*t,v):Math.sqrt(m)},v.tapDistance=function(t){return arguments.length?(g=+t,v):g},v}eH.prototype
12663
+ const uH=Z`
12677
12664
  <div class="wafer-map-container">
12678
12665
  <svg class="svg-root">
12679
12666
  <g ${Pt("zoomContainer")} transform=${t=>t.transform.toString()}>
@@ -12703,7 +12690,7 @@ const yH=Z`
12703
12690
  />
12704
12691
  </svg>
12705
12692
  </div>
12706
- `,wH=xt`
12693
+ `,pH=xt`
12707
12694
  :host {
12708
12695
  display: inline-block;
12709
12696
  width: 500px;
@@ -12787,76 +12774,76 @@ const yH=Z`
12787
12774
  outline-width: 0px;
12788
12775
  }
12789
12776
  `
12790
- function xH(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function CH(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function kH(t){let e,n,i
12777
+ function fH(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function mH(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function gH(t){let e,n,i
12791
12778
  function o(t,i,o=0,s=t.length){if(o<s){if(0!==e(i,i))return s
12792
12779
  do{const e=o+s>>>1
12793
- n(t[e],i)<0?o=e+1:s=e}while(o<s)}return o}return 2!==t.length?(e=xH,n=(e,n)=>xH(t(e),n),i=(e,n)=>t(e)-n):(e=t===xH||t===CH?t:SH,n=t,i=t),{left:o,center:function(t,e,n=0,s=t.length){const r=o(t,e,n,s-1)
12780
+ n(t[e],i)<0?o=e+1:s=e}while(o<s)}return o}return 2!==t.length?(e=fH,n=(e,n)=>fH(t(e),n),i=(e,n)=>t(e)-n):(e=t===fH||t===mH?t:vH,n=t,i=t),{left:o,center:function(t,e,n=0,s=t.length){const r=o(t,e,n,s-1)
12794
12781
  return r>n&&i(t[r-1],e)>-i(t[r],e)?r-1:r},right:function(t,i,o=0,s=t.length){if(o<s){if(0!==e(i,i))return s
12795
12782
  do{const e=o+s>>>1
12796
- n(t[e],i)<=0?o=e+1:s=e}while(o<s)}return o}}}function SH(){return 0}function $H(t){return null===t?NaN:+t}const MH=kH(xH).right
12797
- kH($H).center
12798
- class _H extends Map{constructor(t,e=IH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(EH(this,t))}has(t){return super.has(EH(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const i=e(n)
12783
+ n(t[e],i)<=0?o=e+1:s=e}while(o<s)}return o}}}function vH(){return 0}function bH(t){return null===t?NaN:+t}const yH=gH(fH).right
12784
+ gH(bH).center
12785
+ class wH extends Map{constructor(t,e=CH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(xH(this,t))}has(t){return super.has(xH(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const i=e(n)
12799
12786
  return t.has(i)?t.get(i):(t.set(i,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const i=e(n)
12800
12787
  t.has(i)&&(n=t.get(i),t.delete(i))
12801
- return n}(this,t))}}function EH({_intern:t,_key:e},n){const i=e(n)
12802
- return t.has(i)?t.get(i):n}function IH(t){return null!==t&&"object"==typeof t?t.valueOf():t}const DH=Math.sqrt(50),AH=Math.sqrt(10),TH=Math.sqrt(2)
12803
- function OH(t,e,n){const i=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(i)),s=i/Math.pow(10,o),r=s>=DH?10:s>=AH?5:s>=TH?2:1
12788
+ return n}(this,t))}}function xH({_intern:t,_key:e},n){const i=e(n)
12789
+ return t.has(i)?t.get(i):n}function CH(t){return null!==t&&"object"==typeof t?t.valueOf():t}const kH=Math.sqrt(50),SH=Math.sqrt(10),$H=Math.sqrt(2)
12790
+ function MH(t,e,n){const i=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(i)),s=i/Math.pow(10,o),r=s>=kH?10:s>=SH?5:s>=$H?2:1
12804
12791
  let a,l,c
12805
- return o<0?(c=Math.pow(10,-o)/r,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,o)*r,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?OH(t,e,2*n):[a,l,c]}function RH(t,e,n){if(!((n=+n)>0))return[]
12792
+ return o<0?(c=Math.pow(10,-o)/r,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,o)*r,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?MH(t,e,2*n):[a,l,c]}function _H(t,e,n){if(!((n=+n)>0))return[]
12806
12793
  if((t=+t)===(e=+e))return[t]
12807
- const i=e<t,[o,s,r]=i?OH(e,t,n):OH(t,e,n)
12794
+ const i=e<t,[o,s,r]=i?MH(e,t,n):MH(t,e,n)
12808
12795
  if(!(s>=o))return[]
12809
12796
  const a=s-o+1,l=new Array(a)
12810
12797
  if(i)if(r<0)for(let t=0;t<a;++t)l[t]=(s-t)/-r
12811
12798
  else for(let t=0;t<a;++t)l[t]=(s-t)*r
12812
12799
  else if(r<0)for(let t=0;t<a;++t)l[t]=(o+t)/-r
12813
12800
  else for(let t=0;t<a;++t)l[t]=(o+t)*r
12814
- return l}function FH(t,e,n){return OH(t=+t,e=+e,n=+n)[2]}function NH(t,e,n=$H){if((i=t.length)&&!isNaN(e=+e)){if(e<=0||i<2)return+n(t[0],0,t)
12801
+ return l}function EH(t,e,n){return MH(t=+t,e=+e,n=+n)[2]}function IH(t,e,n=bH){if((i=t.length)&&!isNaN(e=+e)){if(e<=0||i<2)return+n(t[0],0,t)
12815
12802
  if(e>=1)return+n(t[i-1],i-1,t)
12816
12803
  var i,o=(i-1)*e,s=Math.floor(o),r=+n(t[s],s,t)
12817
- return r+(+n(t[s+1],s+1,t)-r)*(o-s)}}function PH(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n
12804
+ return r+(+n(t[s+1],s+1,t)-r)*(o-s)}}function DH(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n
12818
12805
  for(var i=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),s=new Array(o);++i<o;)s[i]=t+i*n
12819
- return s}function LH(t,e){switch(arguments.length){case 0:break
12806
+ return s}function AH(t,e){switch(arguments.length){case 0:break
12820
12807
  case 1:this.range(t)
12821
12808
  break
12822
- default:this.range(e).domain(t)}return this}const zH=Symbol("implicit")
12823
- function VH(){var t=new _H,e=[],n=[],i=zH
12809
+ default:this.range(e).domain(t)}return this}const TH=Symbol("implicit")
12810
+ function OH(){var t=new wH,e=[],n=[],i=TH
12824
12811
  function o(o){let s=t.get(o)
12825
- if(void 0===s){if(i!==zH)return i
12812
+ if(void 0===s){if(i!==TH)return i
12826
12813
  t.set(o,s=e.push(o)-1)}return n[s%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice()
12827
- e=[],t=new _H
12814
+ e=[],t=new wH
12828
12815
  for(const i of n)t.has(i)||t.set(i,e.push(i)-1)
12829
- return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return VH(e,n).unknown(i)},LH.apply(o,arguments),o}function HH(){var t,e,n=VH().unknown(void 0),i=n.domain,o=n.range,s=0,r=1,a=!1,l=0,c=0,d=.5
12816
+ return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return OH(e,n).unknown(i)},AH.apply(o,arguments),o}function RH(){var t,e,n=OH().unknown(void 0),i=n.domain,o=n.range,s=0,r=1,a=!1,l=0,c=0,d=.5
12830
12817
  function h(){var n=i().length,h=r<s,u=h?r:s,p=h?s:r
12831
12818
  t=(p-u)/Math.max(1,n-l+2*c),a&&(t=Math.floor(t)),u+=(p-u-t*(n-l))*d,e=t*(1-l),a&&(u=Math.round(u),e=Math.round(e))
12832
- var f=PH(n).map((function(e){return u+t*e}))
12833
- return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),h()):i()},n.range=function(t){return arguments.length?([s,r]=t,s=+s,r=+r,h()):[s,r]},n.rangeRound=function(t){return[s,r]=t,s=+s,r=+r,a=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,h()):a},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),h()):d},n.copy=function(){return HH(i(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},LH.apply(h(),arguments)}function BH(t){return+t}var qH=[0,1]
12834
- function UH(t){return t}function jH(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n})
12835
- var n}function WH(t,e,n){var i=t[0],o=t[1],s=e[0],r=e[1]
12836
- return o<i?(i=jH(o,i),s=n(r,s)):(i=jH(i,o),s=n(s,r)),function(t){return s(i(t))}}function ZH(t,e,n){var i=Math.min(t.length,e.length)-1,o=new Array(i),s=new Array(i),r=-1
12837
- for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++r<i;)o[r]=jH(t[r],t[r+1]),s[r]=n(e[r],e[r+1])
12838
- return function(e){var n=MH(t,e,1,i)-1
12839
- return s[n](o[n](e))}}function GH(){var t,e,n,i,o,s,r=qH,a=qH,l=Wz,c=UH
12819
+ var f=DH(n).map((function(e){return u+t*e}))
12820
+ return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),h()):i()},n.range=function(t){return arguments.length?([s,r]=t,s=+s,r=+r,h()):[s,r]},n.rangeRound=function(t){return[s,r]=t,s=+s,r=+r,a=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,h()):a},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),h()):d},n.copy=function(){return RH(i(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},AH.apply(h(),arguments)}function FH(t){return+t}var NH=[0,1]
12821
+ function PH(t){return t}function LH(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n})
12822
+ var n}function zH(t,e,n){var i=t[0],o=t[1],s=e[0],r=e[1]
12823
+ return o<i?(i=LH(o,i),s=n(r,s)):(i=LH(i,o),s=n(s,r)),function(t){return s(i(t))}}function VH(t,e,n){var i=Math.min(t.length,e.length)-1,o=new Array(i),s=new Array(i),r=-1
12824
+ for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++r<i;)o[r]=LH(t[r],t[r+1]),s[r]=n(e[r],e[r+1])
12825
+ return function(e){var n=yH(t,e,1,i)-1
12826
+ return s[n](o[n](e))}}function HH(){var t,e,n,i,o,s,r=NH,a=NH,l=zz,c=PH
12840
12827
  function d(){var t,e,n,l=Math.min(r.length,a.length)
12841
- return c!==UH&&(t=r[0],e=r[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),i=l>2?ZH:WH,o=s=null,h}function h(e){return null==e||isNaN(e=+e)?n:(o||(o=i(r.map(t),a,l)))(t(c(e)))}return h.invert=function(n){return c(e((s||(s=i(a,r.map(t),Hz)))(n)))},h.domain=function(t){return arguments.length?(r=Array.from(t,BH),d()):r.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),d()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),l=Zz,d()},h.clamp=function(t){return arguments.length?(c=!!t||UH,d()):c!==UH},h.interpolate=function(t){return arguments.length?(l=t,d()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,d()}}function KH(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null
12828
+ return c!==PH&&(t=r[0],e=r[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),i=l>2?VH:zH,o=s=null,h}function h(e){return null==e||isNaN(e=+e)?n:(o||(o=i(r.map(t),a,l)))(t(c(e)))}return h.invert=function(n){return c(e((s||(s=i(a,r.map(t),Rz)))(n)))},h.domain=function(t){return arguments.length?(r=Array.from(t,FH),d()):r.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),d()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),l=Vz,d()},h.clamp=function(t){return arguments.length?(c=!!t||PH,d()):c!==PH},h.interpolate=function(t){return arguments.length?(l=t,d()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,d()}}function BH(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null
12842
12829
  var n,i=t.slice(0,n)
12843
- return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function JH(t){return(t=KH(Math.abs(t)))?t[1]:NaN}var XH,YH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
12844
- function QH(t){if(!(e=YH.exec(t)))throw new Error("invalid format: "+t)
12830
+ return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function qH(t){return(t=BH(Math.abs(t)))?t[1]:NaN}var UH,jH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
12831
+ function WH(t){if(!(e=jH.exec(t)))throw new Error("invalid format: "+t)
12845
12832
  var e
12846
- return new tB({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function tB(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function eB(t,e){var n=KH(t,e)
12833
+ return new ZH({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function ZH(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function GH(t,e){var n=BH(t,e)
12847
12834
  if(!n)return t+""
12848
12835
  var i=n[0],o=n[1]
12849
- return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}QH.prototype=tB.prototype,tB.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}
12850
- var nB={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>eB(100*t,e),r:eB,s:function(t,e){var n=KH(t,e)
12836
+ return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}WH.prototype=ZH.prototype,ZH.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}
12837
+ var KH={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>GH(100*t,e),r:GH,s:function(t,e){var n=BH(t,e)
12851
12838
  if(!n)return t+""
12852
- var i=n[0],o=n[1],s=o-(XH=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,r=i.length
12853
- return s===r?i:s>r?i+new Array(s-r+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+KH(t,Math.max(0,e+s-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)}
12854
- function iB(t){return t}var oB,sB,rB,aB=Array.prototype.map,lB=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
12855
- function cB(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?iB:(e=aB.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var o=t.length,s=[],r=0,a=e[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),s.push(t.substring(o-=a,o+a)),!((l+=a+1)>i));)a=e[r=(r+1)%e.length]
12856
- return s.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?iB:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(aB.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",d=void 0===t.nan?"NaN":t.nan+""
12857
- function h(t){var e=(t=QH(t)).fill,n=t.align,h=t.sign,u=t.symbol,p=t.zero,f=t.width,m=t.comma,g=t.precision,v=t.trim,b=t.type
12858
- "n"===b?(m=!0,b="g"):nB[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=")
12859
- var y="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?s:/[%p]/.test(b)?l:"",x=nB[b],C=/[defgprs%]/.test(b)
12839
+ var i=n[0],o=n[1],s=o-(UH=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,r=i.length
12840
+ return s===r?i:s>r?i+new Array(s-r+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+BH(t,Math.max(0,e+s-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)}
12841
+ function JH(t){return t}var XH,YH,QH,tB=Array.prototype.map,eB=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
12842
+ function nB(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?JH:(e=tB.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var o=t.length,s=[],r=0,a=e[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),s.push(t.substring(o-=a,o+a)),!((l+=a+1)>i));)a=e[r=(r+1)%e.length]
12843
+ return s.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?JH:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(tB.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",d=void 0===t.nan?"NaN":t.nan+""
12844
+ function h(t){var e=(t=WH(t)).fill,n=t.align,h=t.sign,u=t.symbol,p=t.zero,f=t.width,m=t.comma,g=t.precision,v=t.trim,b=t.type
12845
+ "n"===b?(m=!0,b="g"):KH[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=")
12846
+ var y="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?s:/[%p]/.test(b)?l:"",x=KH[b],C=/[defgprs%]/.test(b)
12860
12847
  function k(t){var o,s,l,u=y,k=w
12861
12848
  if("c"===b)k=x(t)+k,t=""
12862
12849
  else{var S=(t=+t)<0||1/t<0
@@ -12865,7 +12852,7 @@ break
12865
12852
  case"0":0===o&&(o=i),e=i
12866
12853
  break
12867
12854
  default:if(!+t[i])break t
12868
- o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?lB[8+XH/3]:"")+k+(S&&"("===h?")":""),C)for(o=-1,s=t.length;++o<s;)if(48>(l=t.charCodeAt(o))||l>57){k=(46===l?r+t.slice(o+1):t.slice(o))+k,t=t.slice(0,o)
12855
+ o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?eB[8+UH/3]:"")+k+(S&&"("===h?")":""),C)for(o=-1,s=t.length;++o<s;)if(48>(l=t.charCodeAt(o))||l>57){k=(46===l?r+t.slice(o+1):t.slice(o))+k,t=t.slice(0,o)
12869
12856
  break}}m&&!p&&(t=i(t,1/0))
12870
12857
  var $=u.length+t.length+k.length,M=$<f?new Array(f-$+1).join(e):""
12871
12858
  switch(m&&p&&(t=i(M+t,M.length?f-k.length:1/0),M=""),n){case"<":t=u+t+k+M
@@ -12874,46 +12861,46 @@ case"=":t=u+M+t+k
12874
12861
  break
12875
12862
  case"^":t=M.slice(0,$=M.length>>1)+u+t+k+M.slice($)
12876
12863
  break
12877
- default:t=M+u+t+k}return a(t)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=QH(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(JH(e)/3))),o=Math.pow(10,-i),s=lB[8+i/3]
12878
- return function(t){return n(o*t)+s}}}}function dB(t,e,n,i){var o,s=function(t,e,n){n=+n
12879
- const i=(e=+e)<(t=+t),o=i?FH(e,t,n):FH(t,e,n)
12864
+ default:t=M+u+t+k}return a(t)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=WH(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(qH(e)/3))),o=Math.pow(10,-i),s=eB[8+i/3]
12865
+ return function(t){return n(o*t)+s}}}}function iB(t,e,n,i){var o,s=function(t,e,n){n=+n
12866
+ const i=(e=+e)<(t=+t),o=i?EH(e,t,n):EH(t,e,n)
12880
12867
  return(i?-1:1)*(o<0?1/-o:o)}(t,e,n)
12881
- switch((i=QH(null==i?",f":i)).type){case"s":var r=Math.max(Math.abs(t),Math.abs(e))
12882
- return null!=i.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(JH(e)/3)))-JH(Math.abs(t)))}(s,r))||(i.precision=o),rB(i,r)
12883
- case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,JH(e)-JH(t))+1}(s,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=o-("e"===i.type))
12868
+ switch((i=WH(null==i?",f":i)).type){case"s":var r=Math.max(Math.abs(t),Math.abs(e))
12869
+ return null!=i.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(qH(e)/3)))-qH(Math.abs(t)))}(s,r))||(i.precision=o),QH(i,r)
12870
+ case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,qH(e)-qH(t))+1}(s,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=o-("e"===i.type))
12884
12871
  break
12885
- case"f":case"%":null!=i.precision||isNaN(o=function(t){return Math.max(0,-JH(Math.abs(t)))}(s))||(i.precision=o-2*("%"===i.type))}return sB(i)}function hB(){var t=GH()(UH,UH)
12886
- return t.copy=function(){return e=t,hB().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())
12887
- var e},LH.apply(t,arguments),function(t){var e=t.domain
12872
+ case"f":case"%":null!=i.precision||isNaN(o=function(t){return Math.max(0,-qH(Math.abs(t)))}(s))||(i.precision=o-2*("%"===i.type))}return YH(i)}function oB(){var t=HH()(PH,PH)
12873
+ return t.copy=function(){return e=t,oB().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())
12874
+ var e},AH.apply(t,arguments),function(t){var e=t.domain
12888
12875
  return t.ticks=function(t){var n=e()
12889
- return RH(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e()
12890
- return dB(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10)
12876
+ return _H(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e()
12877
+ return iB(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10)
12891
12878
  var i,o,s=e(),r=0,a=s.length-1,l=s[r],c=s[a],d=10
12892
- for(c<l&&(o=l,l=c,c=o,o=r,r=a,a=o);d-- >0;){if((o=FH(l,c,n))===i)return s[r]=l,s[a]=c,e(s)
12879
+ for(c<l&&(o=l,l=c,c=o,o=r,r=a,a=o);d-- >0;){if((o=EH(l,c,n))===i)return s[r]=l,s[a]=c,e(s)
12893
12880
  if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
12894
12881
  else{if(!(o<0))break
12895
- l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return t},t}(t)}function uB(){var t,e=[],n=[],i=[]
12882
+ l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return t},t}(t)}function sB(){var t,e=[],n=[],i=[]
12896
12883
  function o(){var t=0,o=Math.max(1,n.length)
12897
- for(i=new Array(o-1);++t<o;)i[t-1]=NH(e,t/o)
12898
- return s}function s(e){return null==e||isNaN(e=+e)?t:n[MH(i,e)]}return s.invertExtent=function(t){var o=n.indexOf(t)
12884
+ for(i=new Array(o-1);++t<o;)i[t-1]=IH(e,t/o)
12885
+ return s}function s(e){return null==e||isNaN(e=+e)?t:n[yH(i,e)]}return s.invertExtent=function(t){var o=n.indexOf(t)
12899
12886
  return o<0?[NaN,NaN]:[o>0?i[o-1]:e[0],o<i.length?i[o]:e[e.length-1]]},s.domain=function(t){if(!arguments.length)return e.slice()
12900
12887
  e=[]
12901
12888
  for(let n of t)null==n||isNaN(n=+n)||e.push(n)
12902
- return e.sort(xH),o()},s.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},s.unknown=function(e){return arguments.length?(t=e,s):t},s.quantiles=function(){return i.slice()},s.copy=function(){return uB().domain(e).range(n).unknown(t)},LH.apply(s,arguments)}oB=cB({thousands:",",grouping:[3],currency:["$",""]}),sB=oB.format,rB=oB.formatPrefix
12903
- const pB="bottom-left",fB="bottom-right",mB="top-left",gB="top",vB="show",bB="hide",yB="linear",wB="ordinal"
12904
- class xB{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}constructor(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}update(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
12889
+ return e.sort(fH),o()},s.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},s.unknown=function(e){return arguments.length?(t=e,s):t},s.quantiles=function(){return i.slice()},s.copy=function(){return sB().domain(e).range(n).unknown(t)},AH.apply(s,arguments)}XH=nB({thousands:",",grouping:[3],currency:["$",""]}),YH=XH.format,QH=XH.formatPrefix
12890
+ const rB="bottom-left",aB="bottom-right",lB="top-left",cB="top",dB="show",hB="hide",uB="linear",pB="ordinal"
12891
+ class fB{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}constructor(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}update(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
12905
12892
  this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(t,this._margin)
12906
12893
  const o=Math.min(this._containerDimensions.width,this._containerDimensions.height),s=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(),r=this.wafermap.originLocation
12907
12894
  this._horizontalScale=this.createHorizontalScale(r,s,o),this._verticalScale=this.createVerticalScale(r,s,o),this._dieDimensions={width:Math.abs(this._horizontalScale(0)-this._horizontalScale(1)),height:Math.abs(this._verticalScale(0)-this._verticalScale(1))}}gridDimensionsValidAndDefined(){return!this.wafermap.validity.invalidGridDimensions&&"number"==typeof this.wafermap.gridMinX&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX}calculateGridDimensionsFromBoundingBox(){const t={origin:{x:0,y:0},rows:0,cols:0}
12908
12895
  return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(t.origin.x=this.wafermap.gridMinX,t.origin.y=this.wafermap.gridMinY,t.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,t.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),t}calculateGridDimensionsFromDies(){if(void 0===this.wafermap.diesTable)return{origin:{x:0,y:0},rows:0,cols:0}
12909
12896
  const t=this.wafermap.diesTable.getChild("colIndex").toArray(),e=this.wafermap.diesTable.getChild("rowIndex").toArray(),n={x:t[0],y:e[0]},i={x:t[0],y:e[0]}
12910
12897
  for(let o=0;o<t.length;o++)t[o]<n.x&&(n.x=t[o]),t[o]>i.x&&(i.x=t[o]),e[o]<n.y&&(n.y=e[o]),e[o]>i.y&&(i.y=e[o])
12911
- return{origin:n,rows:i.y-n.y+1,cols:i.x-n.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=hB()
12912
- return t===pB||t===mB?i.domain([e.origin.x,e.origin.x+e.cols]).range([0,n]):i.domain([e.origin.x-1,e.origin.x+e.cols-1]).range([n,0])}createVerticalScale(t,e,n){const i=hB()
12913
- return t===pB||t===fB?i.domain([e.origin.y-1,e.origin.y+e.rows-1]).range([n,0]):i.domain([e.origin.y,e.origin.y+e.rows]).range([0,n])}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}}class CB{get labelsFontSize(){return this._labelsFontSize}get colorScale(){return this._colorScale}constructor(t){this.wafermap=t,this.fontSizeFactor=.8,this.colorScaleResolution=10}update(){this._labelsFontSize=this.calculateLabelsFontSize(this.wafermap.experimentalDataManager.dieDimensions,this.wafermap.maxCharacters),this._colorScale=this.calculateColorScale()}calculateColorScale(){if(this.wafermap.colorScaleMode===yB){const t=this.wafermap.colorScale.values.map((t=>+t)),e=hB().domain(t).range(this.wafermap.colorScale.colors)
12898
+ return{origin:n,rows:i.y-n.y+1,cols:i.x-n.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=oB()
12899
+ return t===rB||t===lB?i.domain([e.origin.x,e.origin.x+e.cols]).range([0,n]):i.domain([e.origin.x-1,e.origin.x+e.cols-1]).range([n,0])}createVerticalScale(t,e,n){const i=oB()
12900
+ return t===rB||t===aB?i.domain([e.origin.y-1,e.origin.y+e.rows-1]).range([n,0]):i.domain([e.origin.y,e.origin.y+e.rows]).range([0,n])}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}}class mB{get labelsFontSize(){return this._labelsFontSize}get colorScale(){return this._colorScale}constructor(t){this.wafermap=t,this.fontSizeFactor=.8,this.colorScaleResolution=10}update(){this._labelsFontSize=this.calculateLabelsFontSize(this.wafermap.experimentalDataManager.dieDimensions,this.wafermap.maxCharacters),this._colorScale=this.calculateColorScale()}calculateColorScale(){if(this.wafermap.colorScaleMode===uB){const t=this.wafermap.colorScale.values.map((t=>+t)),e=oB().domain(t).range(this.wafermap.colorScale.colors)
12914
12901
  let n=t[0],i=t[0]
12915
12902
  t.forEach((t=>{t<n&&(n=t),t>i&&(i=t)}))
12916
- return RH(n,i,t.length*this.colorScaleResolution).map((t=>({color:e(t),value:t})))}return this.wafermap.colorScale.colors.map(((t,e)=>({color:t,value:+this.wafermap.colorScale.values[e]}))).sort(((t,e)=>t.value-e.value))}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}}class kB{get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get verticalScale(){return this.computations.verticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get colorScale(){return this.prerendering.colorScale}constructor(t){this.wafermap=t,this.computations=new xB(t),this.prerendering=new CB(t)}updateComputations(){this.computations.update(),this.prerendering.update()}updatePrerendering(){this.prerendering.update()}}class SB{constructor(t){this.wafermap=t,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((t,e)=>t.fillStyle>e.fillStyle?1:e.fillStyle>t.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?bB:vB,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
12903
+ return _H(n,i,t.length*this.colorScaleResolution).map((t=>({color:e(t),value:t})))}return this.wafermap.colorScale.colors.map(((t,e)=>({color:t,value:+this.wafermap.colorScale.values[e]}))).sort(((t,e)=>t.value-e.value))}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}}class gB{get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get verticalScale(){return this.computations.verticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get colorScale(){return this.prerendering.colorScale}constructor(t){this.wafermap=t,this.computations=new fB(t),this.prerendering=new mB(t)}updateComputations(){this.computations.update(),this.prerendering.update()}updatePrerendering(){this.prerendering.update()}}class vB{constructor(t){this.wafermap=t,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((t,e)=>t.fillStyle>e.fillStyle?1:e.fillStyle>t.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?hB:dB,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
12917
12904
  if(void 0===t)return""
12918
12905
  const e=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
12919
12906
  if(void 0===e)return""
@@ -12926,58 +12913,58 @@ if(t*e*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
12926
12913
  i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
12927
12914
  const o=i.measureText("M"),s=this.wafermap.transform.invert([0,0]),r=this.wafermap.transform.invert([this.wafermap.canvas.width,this.wafermap.canvas.height])
12928
12915
  s[0]-=t,s[1]-=e
12929
- for(const n of this.dies)this.isDieVisible(n,s,r)&&i.fillText(n.text,n.x+t/2,n.y+e/2+o.width/2,t-t/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(t,e,n){return t.x>=e[0]&&t.x<n[0]&&t.y>=e[1]&&t.y<n[1]}}const $B=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
12930
- class MB extends dI{constructor(t){super($B),this.wafermap=t,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("highlightedTags")||this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresDrawnWaferUpdate(){return this.isTracked("transform")}get requiresRenderHoverUpdate(){return this.isTracked("hoverDie")}queueUpdate(){this.wafermap.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1}))))}}var _B,EB,IB,DB,AB,TB,OB,RB,FB
12931
- !function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(_B||(_B={})),function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(EB||(EB={})),function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(IB||(IB={})),function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(DB||(DB={})),function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(AB||(AB={})),function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth",t[t.DurationSecond=-27]="DurationSecond",t[t.DurationMillisecond=-28]="DurationMillisecond",t[t.DurationMicrosecond=-29]="DurationMicrosecond",t[t.DurationNanosecond=-30]="DurationNanosecond"}(TB||(TB={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(OB||(OB={}))
12932
- class NB{static isNull(t){return(null==t?void 0:t.typeId)===TB.Null}static isInt(t){return(null==t?void 0:t.typeId)===TB.Int}static isFloat(t){return(null==t?void 0:t.typeId)===TB.Float}static isBinary(t){return(null==t?void 0:t.typeId)===TB.Binary}static isLargeBinary(t){return(null==t?void 0:t.typeId)===TB.LargeBinary}static isUtf8(t){return(null==t?void 0:t.typeId)===TB.Utf8}static isLargeUtf8(t){return(null==t?void 0:t.typeId)===TB.LargeUtf8}static isBool(t){return(null==t?void 0:t.typeId)===TB.Bool}static isDecimal(t){return(null==t?void 0:t.typeId)===TB.Decimal}static isDate(t){return(null==t?void 0:t.typeId)===TB.Date}static isTime(t){return(null==t?void 0:t.typeId)===TB.Time}static isTimestamp(t){return(null==t?void 0:t.typeId)===TB.Timestamp}static isInterval(t){return(null==t?void 0:t.typeId)===TB.Interval}static isDuration(t){return(null==t?void 0:t.typeId)===TB.Duration}static isList(t){return(null==t?void 0:t.typeId)===TB.List}static isStruct(t){return(null==t?void 0:t.typeId)===TB.Struct}static isUnion(t){return(null==t?void 0:t.typeId)===TB.Union}static isFixedSizeBinary(t){return(null==t?void 0:t.typeId)===TB.FixedSizeBinary}static isFixedSizeList(t){return(null==t?void 0:t.typeId)===TB.FixedSizeList}static isMap(t){return(null==t?void 0:t.typeId)===TB.Map}static isDictionary(t){return(null==t?void 0:t.typeId)===TB.Dictionary}static isDenseUnion(t){return NB.isUnion(t)&&t.mode===_B.Dense}static isSparseUnion(t){return NB.isUnion(t)&&t.mode===_B.Sparse}constructor(t){this.typeId=t}}RB=Symbol.toStringTag,NB[RB]=((FB=NB.prototype).children=null,FB.ArrayType=Array,FB.OffsetArrayType=Int32Array,FB[Symbol.toStringTag]="DataType")
12933
- class PB extends NB{constructor(){super(TB.Null)}toString(){return"Null"}}PB[Symbol.toStringTag]=(t=>t[Symbol.toStringTag]="Null")(PB.prototype)
12934
- class LB extends NB{constructor(t,e){super(TB.Int),this.isSigned=t,this.bitWidth=e}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array
12916
+ for(const n of this.dies)this.isDieVisible(n,s,r)&&i.fillText(n.text,n.x+t/2,n.y+e/2+o.width/2,t-t/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(t,e,n){return t.x>=e[0]&&t.x<n[0]&&t.y>=e[1]&&t.y<n[1]}}const bB=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
12917
+ class yB extends dI{constructor(t){super(bB),this.wafermap=t,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("highlightedTags")||this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresDrawnWaferUpdate(){return this.isTracked("transform")}get requiresRenderHoverUpdate(){return this.isTracked("hoverDie")}queueUpdate(){this.wafermap.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1}))))}}var wB,xB,CB,kB,SB,$B,MB,_B,EB
12918
+ !function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(wB||(wB={})),function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(xB||(xB={})),function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(CB||(CB={})),function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(kB||(kB={})),function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(SB||(SB={})),function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth",t[t.DurationSecond=-27]="DurationSecond",t[t.DurationMillisecond=-28]="DurationMillisecond",t[t.DurationMicrosecond=-29]="DurationMicrosecond",t[t.DurationNanosecond=-30]="DurationNanosecond"}($B||($B={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(MB||(MB={}))
12919
+ class IB{static isNull(t){return(null==t?void 0:t.typeId)===$B.Null}static isInt(t){return(null==t?void 0:t.typeId)===$B.Int}static isFloat(t){return(null==t?void 0:t.typeId)===$B.Float}static isBinary(t){return(null==t?void 0:t.typeId)===$B.Binary}static isLargeBinary(t){return(null==t?void 0:t.typeId)===$B.LargeBinary}static isUtf8(t){return(null==t?void 0:t.typeId)===$B.Utf8}static isLargeUtf8(t){return(null==t?void 0:t.typeId)===$B.LargeUtf8}static isBool(t){return(null==t?void 0:t.typeId)===$B.Bool}static isDecimal(t){return(null==t?void 0:t.typeId)===$B.Decimal}static isDate(t){return(null==t?void 0:t.typeId)===$B.Date}static isTime(t){return(null==t?void 0:t.typeId)===$B.Time}static isTimestamp(t){return(null==t?void 0:t.typeId)===$B.Timestamp}static isInterval(t){return(null==t?void 0:t.typeId)===$B.Interval}static isDuration(t){return(null==t?void 0:t.typeId)===$B.Duration}static isList(t){return(null==t?void 0:t.typeId)===$B.List}static isStruct(t){return(null==t?void 0:t.typeId)===$B.Struct}static isUnion(t){return(null==t?void 0:t.typeId)===$B.Union}static isFixedSizeBinary(t){return(null==t?void 0:t.typeId)===$B.FixedSizeBinary}static isFixedSizeList(t){return(null==t?void 0:t.typeId)===$B.FixedSizeList}static isMap(t){return(null==t?void 0:t.typeId)===$B.Map}static isDictionary(t){return(null==t?void 0:t.typeId)===$B.Dictionary}static isDenseUnion(t){return IB.isUnion(t)&&t.mode===wB.Dense}static isSparseUnion(t){return IB.isUnion(t)&&t.mode===wB.Sparse}constructor(t){this.typeId=t}}_B=Symbol.toStringTag,IB[_B]=((EB=IB.prototype).children=null,EB.ArrayType=Array,EB.OffsetArrayType=Int32Array,EB[Symbol.toStringTag]="DataType")
12920
+ class DB extends IB{constructor(){super($B.Null)}toString(){return"Null"}}DB[Symbol.toStringTag]=(t=>t[Symbol.toStringTag]="Null")(DB.prototype)
12921
+ class AB extends IB{constructor(t,e){super($B.Int),this.isSigned=t,this.bitWidth=e}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array
12935
12922
  case 16:return this.isSigned?Int16Array:Uint16Array
12936
12923
  case 32:return this.isSigned?Int32Array:Uint32Array
12937
- case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}LB[Symbol.toStringTag]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(LB.prototype)
12938
- class zB extends NB{constructor(t){super(TB.Float),this.precision=t}get ArrayType(){switch(this.precision){case EB.HALF:return Uint16Array
12939
- case EB.SINGLE:return Float32Array
12940
- case EB.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}zB[Symbol.toStringTag]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(zB.prototype)
12941
- class VB extends NB{constructor(){super(TB.Binary)}toString(){return"Binary"}}VB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(VB.prototype)
12942
- class HB extends NB{constructor(){super(TB.LargeBinary)}toString(){return"LargeBinary"}}HB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(HB.prototype)
12943
- class BB extends NB{constructor(){super(TB.Utf8)}toString(){return"Utf8"}}BB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(BB.prototype)
12944
- class qB extends NB{constructor(){super(TB.LargeUtf8)}toString(){return"LargeUtf8"}}qB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(qB.prototype)
12945
- class UB extends NB{constructor(){super(TB.Bool)}toString(){return"Bool"}}UB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(UB.prototype)
12946
- class jB extends NB{constructor(t,e,n=128){super(TB.Decimal),this.scale=t,this.precision=e,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}jB[Symbol.toStringTag]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(jB.prototype)
12947
- class WB extends NB{constructor(t){super(TB.Date),this.unit=t}toString(){return`Date${32*(this.unit+1)}<${IB[this.unit]}>`}}WB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"))(WB.prototype)
12948
- class ZB extends NB{constructor(t,e){super(TB.Time),this.unit=t,this.bitWidth=e}toString(){return`Time${this.bitWidth}<${DB[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array
12949
- case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}ZB[Symbol.toStringTag]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(ZB.prototype)
12950
- class GB extends NB{constructor(t,e){super(TB.Timestamp),this.unit=t,this.timezone=e}toString(){return`Timestamp<${DB[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}GB[Symbol.toStringTag]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"))(GB.prototype)
12951
- class KB extends NB{constructor(t){super(TB.Interval),this.unit=t}toString(){return`Interval<${AB[this.unit]}>`}}KB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(KB.prototype)
12952
- class JB extends NB{constructor(t){super(TB.Duration),this.unit=t}toString(){return`Duration<${DB[this.unit]}>`}}JB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(JB.prototype)
12953
- class XB extends NB{constructor(t){super(TB.List),this.children=[t]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}XB[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(XB.prototype)
12954
- class YB extends NB{constructor(t){super(TB.Struct),this.children=t}toString(){return`Struct<{${this.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}YB[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(YB.prototype)
12955
- class QB extends NB{constructor(t,e,n){super(TB.Union),this.mode=t,this.children=n,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce(((t,e,n)=>(t[e]=n)&&t||t),Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((t=>`${t.type}`)).join(" | ")}>`}}QB[Symbol.toStringTag]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(QB.prototype)
12956
- class tq extends NB{constructor(t){super(TB.FixedSizeBinary),this.byteWidth=t}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}tq[Symbol.toStringTag]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(tq.prototype)
12957
- class eq extends NB{constructor(t,e){super(TB.FixedSizeList),this.listSize=t,this.children=[e]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}eq[Symbol.toStringTag]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(eq.prototype)
12958
- class nq extends NB{constructor(t,e=!1){var n,i,o
12959
- if(super(TB.Map),this.children=[t],this.keysSorted=e,t&&(t.name="entries",null===(n=null==t?void 0:t.type)||void 0===n?void 0:n.children)){const e=null===(i=null==t?void 0:t.type)||void 0===i?void 0:i.children[0]
12924
+ case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}AB[Symbol.toStringTag]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(AB.prototype)
12925
+ class TB extends IB{constructor(t){super($B.Float),this.precision=t}get ArrayType(){switch(this.precision){case xB.HALF:return Uint16Array
12926
+ case xB.SINGLE:return Float32Array
12927
+ case xB.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}TB[Symbol.toStringTag]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(TB.prototype)
12928
+ class OB extends IB{constructor(){super($B.Binary)}toString(){return"Binary"}}OB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(OB.prototype)
12929
+ class RB extends IB{constructor(){super($B.LargeBinary)}toString(){return"LargeBinary"}}RB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(RB.prototype)
12930
+ class FB extends IB{constructor(){super($B.Utf8)}toString(){return"Utf8"}}FB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(FB.prototype)
12931
+ class NB extends IB{constructor(){super($B.LargeUtf8)}toString(){return"LargeUtf8"}}NB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(NB.prototype)
12932
+ class PB extends IB{constructor(){super($B.Bool)}toString(){return"Bool"}}PB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(PB.prototype)
12933
+ class LB extends IB{constructor(t,e,n=128){super($B.Decimal),this.scale=t,this.precision=e,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}LB[Symbol.toStringTag]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(LB.prototype)
12934
+ class zB extends IB{constructor(t){super($B.Date),this.unit=t}toString(){return`Date${32*(this.unit+1)}<${CB[this.unit]}>`}}zB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"))(zB.prototype)
12935
+ class VB extends IB{constructor(t,e){super($B.Time),this.unit=t,this.bitWidth=e}toString(){return`Time${this.bitWidth}<${kB[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array
12936
+ case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}VB[Symbol.toStringTag]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(VB.prototype)
12937
+ class HB extends IB{constructor(t,e){super($B.Timestamp),this.unit=t,this.timezone=e}toString(){return`Timestamp<${kB[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}HB[Symbol.toStringTag]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"))(HB.prototype)
12938
+ class BB extends IB{constructor(t){super($B.Interval),this.unit=t}toString(){return`Interval<${SB[this.unit]}>`}}BB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(BB.prototype)
12939
+ class qB extends IB{constructor(t){super($B.Duration),this.unit=t}toString(){return`Duration<${kB[this.unit]}>`}}qB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(qB.prototype)
12940
+ class UB extends IB{constructor(t){super($B.List),this.children=[t]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}UB[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(UB.prototype)
12941
+ class jB extends IB{constructor(t){super($B.Struct),this.children=t}toString(){return`Struct<{${this.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}jB[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(jB.prototype)
12942
+ class WB extends IB{constructor(t,e,n){super($B.Union),this.mode=t,this.children=n,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce(((t,e,n)=>(t[e]=n)&&t||t),Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((t=>`${t.type}`)).join(" | ")}>`}}WB[Symbol.toStringTag]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(WB.prototype)
12943
+ class ZB extends IB{constructor(t){super($B.FixedSizeBinary),this.byteWidth=t}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}ZB[Symbol.toStringTag]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(ZB.prototype)
12944
+ class GB extends IB{constructor(t,e){super($B.FixedSizeList),this.listSize=t,this.children=[e]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}GB[Symbol.toStringTag]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(GB.prototype)
12945
+ class KB extends IB{constructor(t,e=!1){var n,i,o
12946
+ if(super($B.Map),this.children=[t],this.keysSorted=e,t&&(t.name="entries",null===(n=null==t?void 0:t.type)||void 0===n?void 0:n.children)){const e=null===(i=null==t?void 0:t.type)||void 0===i?void 0:i.children[0]
12960
12947
  e&&(e.name="key")
12961
12948
  const n=null===(o=null==t?void 0:t.type)||void 0===o?void 0:o.children[1]
12962
- n&&(n.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}nq[Symbol.toStringTag]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(nq.prototype)
12963
- const iq=(oq=-1,()=>++oq)
12964
- var oq
12965
- class sq extends NB{constructor(t,e,n,i){super(TB.Dictionary),this.indices=e,this.dictionary=t,this.isOrdered=i||!1,this.id=null==n?iq():function(t){if("bigint"==typeof t&&(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER))throw new TypeError(`${t} is not safe to convert to a number.`)
12966
- return Number(t)}(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}sq[Symbol.toStringTag]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(sq.prototype)
12967
- class rq{constructor(t){this.wafermap=t,this.invalidGridDimensions=!1,this.invalidDiesTableSchema=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions,invalidDiesTableSchema:this.invalidDiesTableSchema}}isValid(){return Object.values(this.getValidity()).every((t=>!1===t))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}validateDiesTableSchema(){if(this.invalidDiesTableSchema=!1,void 0===this.wafermap.diesTable)this.invalidDiesTableSchema=!1
12949
+ n&&(n.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}KB[Symbol.toStringTag]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(KB.prototype)
12950
+ const JB=(XB=-1,()=>++XB)
12951
+ var XB
12952
+ class YB extends IB{constructor(t,e,n,i){super($B.Dictionary),this.indices=e,this.dictionary=t,this.isOrdered=i||!1,this.id=null==n?JB():function(t){if("bigint"==typeof t&&(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER))throw new TypeError(`${t} is not safe to convert to a number.`)
12953
+ return Number(t)}(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}YB[Symbol.toStringTag]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(YB.prototype)
12954
+ class QB{constructor(t){this.wafermap=t,this.invalidGridDimensions=!1,this.invalidDiesTableSchema=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions,invalidDiesTableSchema:this.invalidDiesTableSchema}}isValid(){return Object.values(this.getValidity()).every((t=>!1===t))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}validateDiesTableSchema(){if(this.invalidDiesTableSchema=!1,void 0===this.wafermap.diesTable)this.invalidDiesTableSchema=!1
12968
12955
  else{const t=this.wafermap.diesTable.schema.fields,e=t.find((t=>"colIndex"===t.name)),n=t.find((t=>"rowIndex"===t.name)),i=t.find((t=>"value"===t.name))
12969
- e&&n&&i&&NB.isInt(e.type)&&32===e.type.bitWidth&&NB.isInt(n.type)&&32===n.type.bitWidth&&NB.isFloat(i.type)&&i.type.precision===EB.DOUBLE||(this.invalidDiesTableSchema=!0)}return!this.invalidDiesTableSchema}}class aq{constructor(t){this.wafermap=t}drawWafer(){this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.experimentalDataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.experimentalDataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?bB:vB,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.experimentalDataManager.horizontalScale(this.wafermap.hoverDie.x)
12956
+ e&&n&&i&&IB.isInt(e.type)&&32===e.type.bitWidth&&IB.isInt(n.type)&&32===n.type.bitWidth&&IB.isFloat(i.type)&&i.type.precision===xB.DOUBLE||(this.invalidDiesTableSchema=!0)}return!this.invalidDiesTableSchema}}class tq{constructor(t){this.wafermap=t}drawWafer(){this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.experimentalDataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.experimentalDataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?hB:dB,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.experimentalDataManager.horizontalScale(this.wafermap.hoverDie.x)
12970
12957
  if(void 0===t)return""
12971
12958
  const e=this.wafermap.experimentalDataManager.verticalScale(this.wafermap.hoverDie.y)
12972
12959
  if(void 0===e)return""
12973
12960
  const n=this.wafermap.transform.apply([t+this.wafermap.experimentalDataManager.margin.left,e+this.wafermap.experimentalDataManager.margin.top])
12974
- return`translate(${n[0]}, ${n[1]})`}return""}}class lq{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(!this.wafermap.isExperimentalUpdate())return
12961
+ return`translate(${n[0]}, ${n[1]})`}return""}}class eq{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(!this.wafermap.isExperimentalUpdate())return
12975
12962
  const e=this.wafermap.transform.invert([t.offsetX,t.offsetY]),n=this.calculateDieCoordinates({x:e[0],y:e[1]})
12976
12963
  if(void 0===n)return void(this.wafermap.hoverDie=void 0)
12977
12964
  const i=this.wafermap.diesTable.getChild("colIndex").toArray(),o=this.wafermap.diesTable.getChild("rowIndex").toArray()
12978
12965
  for(let t=0;t<i.length;t++)if(i[t]===n.x&&o[t]===n.y)return void(this.wafermap.hoverDie={index:t,x:n.x,y:n.y})
12979
- this.wafermap.hoverDie=void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===pB||e===mB?Math.floor:Math.ceil,i=e===pB||e===fB?Math.ceil:Math.floor
12980
- return{x:n(this.wafermap.experimentalDataManager.horizontalScale.invert(t.x-this.wafermap.experimentalDataManager.margin.left)),y:i(this.wafermap.experimentalDataManager.verticalScale.invert(t.y-this.wafermap.experimentalDataManager.margin.top))}}}}class cq{constructor(t){this.wafermap=t,this.scaleExtent=[1,100],this.minExtentPoint=[0,0],this.onWheelMove=t=>{t.preventDefault()}}connect(){this.createZoomBehavior(),this.wafermap.addEventListener("wheel",this.onWheelMove,{passive:!1})}disconnect(){bH().on("zoom",null)(JL(this.wafermap)),this.wafermap.removeEventListener("wheel",this.onWheelMove)}createZoomBehavior(){bH().scaleExtent(this.scaleExtent).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth,this.wafermap.canvasHeight]]).on("zoom",(t=>{this.wafermap.transform=t.transform}))(JL(this.wafermap))}}class dq extends Ve{constructor(){super(...arguments),this.waferMapUpdateTracker=new MB(this.asRequiredFieldsWaferMap),this.originLocation=pB,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=gB,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=yB,this.experimentalDataManager=new kB(this.asRequiredFieldsWaferMap),this.dataManager=new class{get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get data(){return this.dataMap}constructor(t){this.wafermap=t,this.computations=new class{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get radius(){return this._radius}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get invertedHorizontalScale(){return this._invertedHorizontalScale}get invertedVerticalScale(){return this._invertedVerticalScale}constructor(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}updateContainerDimensions(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
12966
+ this.wafermap.hoverDie=void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===rB||e===lB?Math.floor:Math.ceil,i=e===rB||e===aB?Math.ceil:Math.floor
12967
+ return{x:n(this.wafermap.experimentalDataManager.horizontalScale.invert(t.x-this.wafermap.experimentalDataManager.margin.left)),y:i(this.wafermap.experimentalDataManager.verticalScale.invert(t.y-this.wafermap.experimentalDataManager.margin.top))}}}}class nq{constructor(t){this.wafermap=t,this.scaleExtent=[1,100],this.minExtentPoint=[0,0],this.onWheelMove=t=>{t.preventDefault()}}connect(){this.createZoomBehavior(),this.wafermap.addEventListener("wheel",this.onWheelMove,{passive:!1})}disconnect(){hH().on("zoom",null)(qL(this.wafermap)),this.wafermap.removeEventListener("wheel",this.onWheelMove)}createZoomBehavior(){hH().scaleExtent(this.scaleExtent).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth,this.wafermap.canvasHeight]]).on("zoom",(t=>{this.wafermap.transform=t.transform}))(qL(this.wafermap))}}class iq extends Ve{constructor(){super(...arguments),this.waferMapUpdateTracker=new yB(this.asRequiredFieldsWaferMap),this.originLocation=rB,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=cB,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=uB,this.experimentalDataManager=new gB(this.asRequiredFieldsWaferMap),this.dataManager=new class{get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get data(){return this.dataMap}constructor(t){this.wafermap=t,this.computations=new class{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get radius(){return this._radius}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get invertedHorizontalScale(){return this._invertedHorizontalScale}get invertedVerticalScale(){return this._invertedVerticalScale}constructor(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}updateContainerDimensions(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
12981
12968
  this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(t,this._margin)
12982
12969
  const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
12983
12970
  this._radius=o/2,this.updateScales()}updateScales(){const t=Math.min(this._containerDimensions.width,this._containerDimensions.height),e=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(this.wafermap.dies),n=this.wafermap.originLocation
@@ -12985,30 +12972,30 @@ this._horizontalScale=this.createHorizontalScale(n,e,t),this._invertedHorizontal
12985
12972
  return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(t.origin.x=this.wafermap.gridMinX,t.origin.y=this.wafermap.gridMinY,t.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,t.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),t}calculateGridDimensionsFromDies(t){if(0===t.length||void 0===t[0])return{origin:{x:0,y:0},rows:0,cols:0}
12986
12973
  const e={x:t[0].x,y:t[0].y},n={x:t[0].x,y:t[0].y}
12987
12974
  for(const i of t)i.x<e.x&&(e.x=i.x),i.y<e.y&&(e.y=i.y),i.x>n.x&&(n.x=i.x),i.y>n.y&&(n.y=i.y)
12988
- return{origin:e,rows:n.y-e.y+1,cols:n.x-e.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=HH().domain(PH(e.origin.x,e.origin.x+e.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
12989
- return t===pB||t===mB?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(t,e,n){const i=uB().domain([0,n])
12990
- return t===pB||t===mB?i.range(PH(e.origin.x,e.origin.x+e.cols)):i.range(PH(e.origin.x,e.origin.x+e.cols).reverse())}createVerticalScale(t,e,n){const i=HH().domain(PH(e.origin.y,e.origin.y+e.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
12991
- return t===pB||t===fB?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(t,e,n){const i=uB().domain([0,n])
12992
- return t===pB||t===fB?i.range(PH(e.origin.y,e.origin.y+e.rows).reverse()):i.range(PH(e.origin.y,e.origin.y+e.rows))}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}}(t),this.prerendering=new class{get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}constructor(t){this.wafermap=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.wafermap.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode),this._diesRenderInfo=this.wafermap.dies.map((t=>this.computeDieRenderInfo(t))).filter((t=>null!==t))}computeDieRenderInfo(t){const e=this.wafermap.dataManager.margin,n=this.wafermap.dataManager.horizontalScale(t.x),i=this.wafermap.dataManager.verticalScale(t.y)
12993
- return void 0===n||void 0===i?null:{x:n+e.right,y:i+e.top,fillStyle:this.calculateFillStyle(t.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,t.tags),text:this.buildLabel(t.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}createD3ColorScale(t,e){return this.isColorScaleLinear(e)?hB().domain(t.values.map((t=>+t))).range(t.colors):VH().domain(t.values).range(t.colors)}dieHasData(t){return null!=t&&""!==t}buildLabel(t,e,n,i){if(n||!this.dieHasData(t))return""
12975
+ return{origin:e,rows:n.y-e.y+1,cols:n.x-e.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=RH().domain(DH(e.origin.x,e.origin.x+e.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
12976
+ return t===rB||t===lB?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(t,e,n){const i=sB().domain([0,n])
12977
+ return t===rB||t===lB?i.range(DH(e.origin.x,e.origin.x+e.cols)):i.range(DH(e.origin.x,e.origin.x+e.cols).reverse())}createVerticalScale(t,e,n){const i=RH().domain(DH(e.origin.y,e.origin.y+e.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
12978
+ return t===rB||t===aB?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(t,e,n){const i=sB().domain([0,n])
12979
+ return t===rB||t===aB?i.range(DH(e.origin.y,e.origin.y+e.rows).reverse()):i.range(DH(e.origin.y,e.origin.y+e.rows))}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}}(t),this.prerendering=new class{get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}constructor(t){this.wafermap=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.wafermap.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode),this._diesRenderInfo=this.wafermap.dies.map((t=>this.computeDieRenderInfo(t))).filter((t=>null!==t))}computeDieRenderInfo(t){const e=this.wafermap.dataManager.margin,n=this.wafermap.dataManager.horizontalScale(t.x),i=this.wafermap.dataManager.verticalScale(t.y)
12980
+ return void 0===n||void 0===i?null:{x:n+e.right,y:i+e.top,fillStyle:this.calculateFillStyle(t.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,t.tags),text:this.buildLabel(t.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}createD3ColorScale(t,e){return this.isColorScaleLinear(e)?oB().domain(t.values.map((t=>+t))).range(t.colors):OH().domain(t.values).range(t.colors)}dieHasData(t){return null!=t&&""!==t}buildLabel(t,e,n,i){if(n||!this.dieHasData(t))return""
12994
12981
  const o=`${t}${i}`
12995
12982
  return o.length>=e?`${o.substring(0,e)}…`:o}calculateOpacity(t,e){if(!e||0===e.length)return 1
12996
12983
  const n=new Set(e)
12997
- return t?.some((t=>n.has(t)))?1:this.nonHighlightedOpacity}isColorScaleLinear(t){return t===yB}isColorScaleOrdinal(t){return t===wB}calculateFillStyle(t,e,n,i){let o=this.emptyDieColor
12984
+ return t?.some((t=>n.has(t)))?1:this.nonHighlightedOpacity}isColorScaleLinear(t){return t===uB}isColorScaleOrdinal(t){return t===pB}calculateFillStyle(t,e,n,i){let o=this.emptyDieColor
12998
12985
  if(this.dieHasData(t)&&(isNaN(+t)?o=this.nanDieColor:this.isColorScaleLinear(e)?o=this.d3ColorScale(+t):this.isColorScaleOrdinal(e)&&(o=this.d3ColorScale(t))),void 0===o)return this.emptyDieColor
12999
12986
  let s=Ko(o)
13000
- return null===s?this.emptyDieColor:(s=new Ho(s.r,s.g,s.b,this.calculateOpacity(i,n)),s.toStringWebRGBA())}}(t)}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(t){return this.dataMap.get(`${t.x}_${t.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((t=>[`${t.x}_${t.y}`,t])))}}(this.asRequiredFieldsWaferMap),this.workerRenderer=new aq(this.asRequiredFieldsWaferMap),this.renderer=new SB(this.asRequiredFieldsWaferMap),this.renderQueued=!1,this.transform=cH,this.hoverTransform="",this.hoverOpacity=bB,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.hoverHandler=new class{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(this.wafermap.isExperimentalUpdate())return
12987
+ return null===s?this.emptyDieColor:(s=new Ho(s.r,s.g,s.b,this.calculateOpacity(i,n)),s.toStringWebRGBA())}}(t)}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(t){return this.dataMap.get(`${t.x}_${t.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((t=>[`${t.x}_${t.y}`,t])))}}(this.asRequiredFieldsWaferMap),this.workerRenderer=new tq(this.asRequiredFieldsWaferMap),this.renderer=new vB(this.asRequiredFieldsWaferMap),this.renderQueued=!1,this.transform=nH,this.hoverTransform="",this.hoverOpacity=hB,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.hoverHandler=new class{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(this.wafermap.isExperimentalUpdate())return
13001
12988
  const e={x:t.offsetX,y:t.offsetY}
13002
12989
  if(!this.hoversOverDie(e))return void(this.wafermap.hoverDie=void 0)
13003
12990
  const n=this.wafermap.transform.invert([e.x,e.y]),i=this.calculateDieCoordinates({x:n[0],y:n[1]})
13004
- this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(!this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===pB||e===mB?Math.floor:Math.ceil,i=e===pB||e===fB?Math.floor:Math.ceil
12991
+ this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(!this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===rB||e===lB?Math.floor:Math.ceil,i=e===rB||e===aB?Math.floor:Math.ceil
13005
12992
  return{x:n(this.wafermap.dataManager.invertedHorizontalScale(t.x-this.wafermap.dataManager.margin.left)),y:i(this.wafermap.dataManager.invertedVerticalScale(t.y-this.wafermap.dataManager.margin.top))}}}hoversOverDie(t){const e=this.wafermap.canvasContext.getImageData(t.x,t.y,1,1).data
13006
12993
  let n=0
13007
12994
  for(const t of e)n+=t
13008
- return n>0}}(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new lq(this.asRequiredFieldsWaferMap),this.zoomHandler=new cq(this.asRequiredFieldsWaferMap),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new rq(this.asRequiredFieldsWaferMap)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.hoverHandler.connect(),this.experimentalHoverHandler.connect(),this.zoomHandler.connect(),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.hoverHandler.disconnect(),this.experimentalHoverHandler.disconnect(),this.zoomHandler.disconnect(),this.resizeObserver.unobserve(this)}experimentalUpdate(){this.validity.invalidDiesTableSchema||(this.waferMapUpdateTracker.requiresEventsUpdate?(this.zoomHandler.disconnect(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate||this.waferMapUpdateTracker.requiresScalesUpdate?(this.experimentalDataManager.updateComputations(),this.workerRenderer.drawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate||this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.experimentalDataManager.updatePrerendering(),this.workerRenderer.drawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.workerRenderer.drawWafer(),this.zoomHandler.connect()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.workerRenderer.renderHover())}update(){this.validate(),this.isExperimentalUpdate()?this.experimentalUpdate():this.waferMapUpdateTracker.requiresEventsUpdate?(this.zoomHandler.disconnect(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate?(this.dataManager.updateContainerDimensions(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresScalesUpdate?(this.dataManager.updateScales(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate?(this.dataManager.updateLabelsFontSize(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.dataManager.updateDiesRenderInfo(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.renderer.drawWafer(),this.zoomHandler.connect()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}isExperimentalUpdate(){return void 0!==this.diesTable}validate(){this.waferMapValidator.validateGridDimensions(),this.waferMapValidator.validateDiesTableSchema()}createResizeObserver(){return new ResizeObserver((t=>{const e=t[0]
12995
+ return n>0}}(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new eq(this.asRequiredFieldsWaferMap),this.zoomHandler=new nq(this.asRequiredFieldsWaferMap),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new QB(this.asRequiredFieldsWaferMap)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.hoverHandler.connect(),this.experimentalHoverHandler.connect(),this.zoomHandler.connect(),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.hoverHandler.disconnect(),this.experimentalHoverHandler.disconnect(),this.zoomHandler.disconnect(),this.resizeObserver.unobserve(this)}experimentalUpdate(){this.validity.invalidDiesTableSchema||(this.waferMapUpdateTracker.requiresEventsUpdate?(this.zoomHandler.disconnect(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate||this.waferMapUpdateTracker.requiresScalesUpdate?(this.experimentalDataManager.updateComputations(),this.workerRenderer.drawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate||this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.experimentalDataManager.updatePrerendering(),this.workerRenderer.drawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.workerRenderer.drawWafer(),this.zoomHandler.connect()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.workerRenderer.renderHover())}update(){this.validate(),this.isExperimentalUpdate()?this.experimentalUpdate():this.waferMapUpdateTracker.requiresEventsUpdate?(this.zoomHandler.disconnect(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate?(this.dataManager.updateContainerDimensions(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresScalesUpdate?(this.dataManager.updateScales(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate?(this.dataManager.updateLabelsFontSize(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.dataManager.updateDiesRenderInfo(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.renderer.drawWafer(),this.zoomHandler.connect()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}isExperimentalUpdate(){return void 0!==this.diesTable}validate(){this.waferMapValidator.validateGridDimensions(),this.waferMapValidator.validateDiesTableSchema()}createResizeObserver(){return new ResizeObserver((t=>{const e=t[0]
13009
12996
  if(void 0===e)return
13010
12997
  const{height:n,width:i}=e.contentRect
13011
- this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}diesTableChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}get asRequiredFieldsWaferMap(){return this}}t([lt({attribute:"origin-location"})],dq.prototype,"originLocation",void 0),t([lt({attribute:"grid-min-x",converter:rt})],dq.prototype,"gridMinX",void 0),t([lt({attribute:"grid-max-x",converter:rt})],dq.prototype,"gridMaxX",void 0),t([lt({attribute:"grid-min-y",converter:rt})],dq.prototype,"gridMinY",void 0),t([lt({attribute:"grid-max-y",converter:rt})],dq.prototype,"gridMaxY",void 0),t([lt],dq.prototype,"orientation",void 0),t([lt({attribute:"max-characters",converter:rt})],dq.prototype,"maxCharacters",void 0),t([lt({attribute:"die-labels-hidden",mode:"boolean"})],dq.prototype,"dieLabelsHidden",void 0),t([lt({attribute:"die-labels-suffix"})],dq.prototype,"dieLabelsSuffix",void 0),t([lt({attribute:"color-scale-mode"})],dq.prototype,"colorScaleMode",void 0),t([g],dq.prototype,"renderer",void 0),t([g],dq.prototype,"canvasWidth",void 0),t([g],dq.prototype,"canvasHeight",void 0),t([g],dq.prototype,"transform",void 0),t([g],dq.prototype,"hoverTransform",void 0),t([g],dq.prototype,"hoverOpacity",void 0),t([g],dq.prototype,"hoverWidth",void 0),t([g],dq.prototype,"hoverHeight",void 0),t([g],dq.prototype,"hoverDie",void 0),t([g],dq.prototype,"highlightedTags",void 0),t([g],dq.prototype,"dies",void 0),t([g],dq.prototype,"diesTable",void 0),t([g],dq.prototype,"colorScale",void 0)
13012
- const hq=dq.compose({baseName:"wafer-map",template:yH,styles:wH})
13013
- wi.getOrCreate().withPrefix("nimble").register(hq())}()
12998
+ this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}diesTableChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}get asRequiredFieldsWaferMap(){return this}}t([lt({attribute:"origin-location"})],iq.prototype,"originLocation",void 0),t([lt({attribute:"grid-min-x",converter:rt})],iq.prototype,"gridMinX",void 0),t([lt({attribute:"grid-max-x",converter:rt})],iq.prototype,"gridMaxX",void 0),t([lt({attribute:"grid-min-y",converter:rt})],iq.prototype,"gridMinY",void 0),t([lt({attribute:"grid-max-y",converter:rt})],iq.prototype,"gridMaxY",void 0),t([lt],iq.prototype,"orientation",void 0),t([lt({attribute:"max-characters",converter:rt})],iq.prototype,"maxCharacters",void 0),t([lt({attribute:"die-labels-hidden",mode:"boolean"})],iq.prototype,"dieLabelsHidden",void 0),t([lt({attribute:"die-labels-suffix"})],iq.prototype,"dieLabelsSuffix",void 0),t([lt({attribute:"color-scale-mode"})],iq.prototype,"colorScaleMode",void 0),t([g],iq.prototype,"renderer",void 0),t([g],iq.prototype,"canvasWidth",void 0),t([g],iq.prototype,"canvasHeight",void 0),t([g],iq.prototype,"transform",void 0),t([g],iq.prototype,"hoverTransform",void 0),t([g],iq.prototype,"hoverOpacity",void 0),t([g],iq.prototype,"hoverWidth",void 0),t([g],iq.prototype,"hoverHeight",void 0),t([g],iq.prototype,"hoverDie",void 0),t([g],iq.prototype,"highlightedTags",void 0),t([g],iq.prototype,"dies",void 0),t([g],iq.prototype,"diesTable",void 0),t([g],iq.prototype,"colorScale",void 0)
12999
+ const oq=iq.compose({baseName:"wafer-map",template:uH,styles:pH})
13000
+ wi.getOrCreate().withPrefix("nimble").register(oq())}()
13014
13001
  //# sourceMappingURL=all-components-bundle.min.js.map