@ni/nimble-components 20.1.14 → 20.1.15
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.
- package/dist/all-components-bundle.js +31 -6
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +381 -373
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/src/table-column/number-text/index.d.ts +6 -1
- package/dist/esm/src/table-column/number-text/types.d.ts +10 -0
- package/dist/esm/src/table-column/text-base/cell-view/index.d.ts +5 -0
- package/dist/esm/src/table-column/text-base/cell-view/types.d.ts +8 -0
- package/dist/esm/table-column/number-text/cell-view/index.js +2 -0
- package/dist/esm/table-column/number-text/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/number-text/index.d.ts +6 -1
- package/dist/esm/table-column/number-text/index.js +23 -2
- package/dist/esm/table-column/number-text/index.js.map +1 -1
- package/dist/esm/table-column/number-text/types.d.ts +10 -0
- package/dist/esm/table-column/number-text/types.js +9 -0
- package/dist/esm/table-column/number-text/types.js.map +1 -1
- package/dist/esm/table-column/text-base/cell-view/index.d.ts +5 -0
- package/dist/esm/table-column/text-base/cell-view/index.js +8 -0
- package/dist/esm/table-column/text-base/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/text-base/cell-view/styles.js +4 -0
- package/dist/esm/table-column/text-base/cell-view/styles.js.map +1 -1
- package/dist/esm/table-column/text-base/cell-view/template.js +12 -5
- package/dist/esm/table-column/text-base/cell-view/template.js.map +1 -1
- package/dist/esm/table-column/text-base/cell-view/types.d.ts +8 -0
- package/dist/esm/table-column/text-base/cell-view/types.js +8 -0
- package/dist/esm/table-column/text-base/cell-view/types.js.map +1 -0
- package/package.json +1 -1
|
@@ -9733,14 +9733,22 @@ class nD extends(BR(HR(VT))){fieldNameChanged(){this.columnInternals.dataRecordF
|
|
|
9733
9733
|
try{return e.format(t)}catch(e){return""}}e([se({attribute:"field-name"})],nD.prototype,"fieldName",void 0)
|
|
9734
9734
|
class oD extends GR{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.columnConfig?.formatter?this.text=iD(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}const rD=oD.compose({baseName:"table-column-date-text-group-header-view",template:KR,styles:JR})
|
|
9735
9735
|
mi.getOrCreate().withPrefix("nimble").register(rD())
|
|
9736
|
-
const sD=mi.tagFor(oD),aD=W`
|
|
9737
|
-
<
|
|
9738
|
-
${
|
|
9739
|
-
title=${e=>e.hasOverflow&&e.text?e.text:null}
|
|
9736
|
+
const sD=mi.tagFor(oD),aD="left",lD="right",cD=W`
|
|
9737
|
+
<template
|
|
9738
|
+
class="${e=>e.alignment===lD?"right-align":""}"
|
|
9740
9739
|
>
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
|
|
9740
|
+
<span
|
|
9741
|
+
${VR("hasOverflow")}
|
|
9742
|
+
title=${e=>e.hasOverflow&&e.text?e.text:null}
|
|
9743
|
+
>
|
|
9744
|
+
${e=>e.text}
|
|
9745
|
+
</span>
|
|
9746
|
+
</template>
|
|
9747
|
+
`,dD=we`
|
|
9748
|
+
:host(.right-align) {
|
|
9749
|
+
margin-left: auto;
|
|
9750
|
+
}
|
|
9751
|
+
|
|
9744
9752
|
span {
|
|
9745
9753
|
font: ${Jl};
|
|
9746
9754
|
color: ${Xl};
|
|
@@ -9749,60 +9757,60 @@ const sD=mi.tagFor(oD),aD=W`
|
|
|
9749
9757
|
text-overflow: ellipsis;
|
|
9750
9758
|
}
|
|
9751
9759
|
`
|
|
9752
|
-
class
|
|
9753
|
-
class
|
|
9754
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
9755
|
-
const
|
|
9756
|
-
class
|
|
9757
|
-
class
|
|
9758
|
-
class
|
|
9760
|
+
class hD extends NT{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=aD}}e([m],hD.prototype,"hasOverflow",void 0),e([m],hD.prototype,"text",void 0),e([m],hD.prototype,"alignment",void 0)
|
|
9761
|
+
class uD extends hD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){this.columnConfig?.formatter?this.text=iD(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}const pD=uD.compose({baseName:"table-column-date-text-cell-view",template:cD,styles:dD})
|
|
9762
|
+
mi.getOrCreate().withPrefix("nimble").register(pD())
|
|
9763
|
+
const fD=mi.tagFor(uD)
|
|
9764
|
+
class gD extends SR{isValid(){return this.noneTracked()}getValidationFlags(){return this.getTrackedItems()}}class mD extends gD{constructor(e,t){super(t),this.columnInternals=e}isValidColumn(){return this.isValid()}getValidity(){return this.getValidationFlags()}setConditionValue(e,t){t?this.track(e):this.untrack(e),this.updateColumnInternalsFlag()}updateColumnInternalsFlag(){this.columnInternals.validConfiguration=this.isValid()}}const vD=["invalidCustomOptionsCombination"]
|
|
9765
|
+
class bD extends mD{constructor(e){super(e,vD)}setCustomOptionsValidity(e){this.setConditionValue("invalidCustomOptionsCombination",!e)}}const wD={toView:e=>"boolean"==typeof e?e.toString():null,fromView:e=>"true"===e||!0===e||"false"!==e&&!1!==e&&void 0}
|
|
9766
|
+
class yD extends nD{constructor(){super(...arguments),this.validator=new bD(this.columnInternals)}connectedCallback(){super.connectedCallback(),this.updateColumnConfig()}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:fD,groupHeaderViewTag:sD,delegatedEvents:[],sortOperation:TT}}formatChanged(){this.updateColumnConfig()}customLocaleMatcherChanged(){this.updateColumnConfig()}customWeekdayChanged(){this.updateColumnConfig()}customEraChanged(){this.updateColumnConfig()}customYearChanged(){this.updateColumnConfig()}customMonthChanged(){this.updateColumnConfig()}customDayChanged(){this.updateColumnConfig()}customHourChanged(){this.updateColumnConfig()}customMinuteChanged(){this.updateColumnConfig()}customSecondChanged(){this.updateColumnConfig()}customTimeZoneNameChanged(){this.updateColumnConfig()}customFormatMatcherChanged(){this.updateColumnConfig()}customHour12Changed(){this.updateColumnConfig()}customTimeZoneChanged(){this.updateColumnConfig()}customCalendarChanged(){this.updateColumnConfig()}customDayPeriodChanged(){this.updateColumnConfig()}customNumberingSystemChanged(){this.updateColumnConfig()}customDateStyleChanged(){this.updateColumnConfig()}customTimeStyleChanged(){this.updateColumnConfig()}customHourCycleChanged(){this.updateColumnConfig()}updateColumnConfig(){const e={formatter:this.createFormatter()}
|
|
9759
9767
|
this.columnInternals.columnConfig=e,this.validator.setCustomOptionsValidity(void 0!==e.formatter)}createFormatter(){let e
|
|
9760
9768
|
e=this.format?this.getCustomFormattingOptions():{dateStyle:"medium",timeStyle:"medium"}
|
|
9761
|
-
try{return new Intl.DateTimeFormat(void 0,e)}catch(e){return}}getCustomFormattingOptions(){return{localeMatcher:this.customLocaleMatcher??void 0,weekday:this.customWeekday??void 0,era:this.customEra??void 0,year:this.customYear??void 0,month:this.customMonth??void 0,day:this.customDay??void 0,hour:this.customHour??void 0,minute:this.customMinute??void 0,second:this.customSecond??void 0,timeZoneName:this.customTimeZoneName??void 0,formatMatcher:this.customFormatMatcher??void 0,hour12:this.customHour12??void 0,timeZone:this.customTimeZone??void 0,calendar:this.customCalendar??void 0,dayPeriod:this.customDayPeriod??void 0,numberingSystem:this.customNumberingSystem??void 0,dateStyle:this.customDateStyle??void 0,timeStyle:this.customTimeStyle??void 0,hourCycle:this.customHourCycle??void 0}}}e([se],
|
|
9762
|
-
const
|
|
9763
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
9764
|
-
const
|
|
9769
|
+
try{return new Intl.DateTimeFormat(void 0,e)}catch(e){return}}getCustomFormattingOptions(){return{localeMatcher:this.customLocaleMatcher??void 0,weekday:this.customWeekday??void 0,era:this.customEra??void 0,year:this.customYear??void 0,month:this.customMonth??void 0,day:this.customDay??void 0,hour:this.customHour??void 0,minute:this.customMinute??void 0,second:this.customSecond??void 0,timeZoneName:this.customTimeZoneName??void 0,formatMatcher:this.customFormatMatcher??void 0,hour12:this.customHour12??void 0,timeZone:this.customTimeZone??void 0,calendar:this.customCalendar??void 0,dayPeriod:this.customDayPeriod??void 0,numberingSystem:this.customNumberingSystem??void 0,dateStyle:this.customDateStyle??void 0,timeStyle:this.customTimeStyle??void 0,hourCycle:this.customHourCycle??void 0}}}e([se],yD.prototype,"format",void 0),e([se({attribute:"custom-locale-matcher"})],yD.prototype,"customLocaleMatcher",void 0),e([se({attribute:"custom-weekday"})],yD.prototype,"customWeekday",void 0),e([se({attribute:"custom-era"})],yD.prototype,"customEra",void 0),e([se({attribute:"custom-year"})],yD.prototype,"customYear",void 0),e([se({attribute:"custom-month"})],yD.prototype,"customMonth",void 0),e([se({attribute:"custom-day"})],yD.prototype,"customDay",void 0),e([se({attribute:"custom-hour"})],yD.prototype,"customHour",void 0),e([se({attribute:"custom-minute"})],yD.prototype,"customMinute",void 0),e([se({attribute:"custom-second"})],yD.prototype,"customSecond",void 0),e([se({attribute:"custom-time-zone-name"})],yD.prototype,"customTimeZoneName",void 0),e([se({attribute:"custom-format-matcher"})],yD.prototype,"customFormatMatcher",void 0),e([se({attribute:"custom-hour12",converter:wD})],yD.prototype,"customHour12",void 0),e([se({attribute:"custom-time-zone"})],yD.prototype,"customTimeZone",void 0),e([se({attribute:"custom-calendar"})],yD.prototype,"customCalendar",void 0),e([se({attribute:"custom-day-period"})],yD.prototype,"customDayPeriod",void 0),e([se({attribute:"custom-numbering-system"})],yD.prototype,"customNumberingSystem",void 0),e([se({attribute:"custom-date-style"})],yD.prototype,"customDateStyle",void 0),e([se({attribute:"custom-time-style"})],yD.prototype,"customTimeStyle",void 0),e([se({attribute:"custom-hour-cycle"})],yD.prototype,"customHourCycle",void 0)
|
|
9770
|
+
const xD=yD.compose({baseName:"table-column-date-text",template:LR,styles:zR})
|
|
9771
|
+
mi.getOrCreate().withPrefix("nimble").register(xD()),mi.tagFor(yD)
|
|
9772
|
+
const kD=(e,t)=>{if("number"===t){const t=oe.fromView(e)
|
|
9765
9773
|
return null===t?void 0:t}return"boolean"===t?!1!==e&&"false"!==e&&(!0===e||"true"===e||void 0):e?.toString()??void 0}
|
|
9766
|
-
class
|
|
9767
|
-
return this.mappings.forEach((t=>{const n=
|
|
9774
|
+
class CD extends VT{constructor(){super(...arguments),this.validator=this.createValidator(),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(e,t){e instanceof Eb&&"string"==typeof t&&this.updateColumnConfig()}updateColumnConfig(){this.validator.validate(this.mappings,this.keyType),this.columnInternals.columnConfig=this.validator.isValid()?this.createColumnConfig(this.getMappingConfigs()):void 0}getMappingConfigs(){const e=new Map
|
|
9775
|
+
return this.mappings.forEach((t=>{const n=kD(t.key,this.keyType)
|
|
9768
9776
|
if(void 0===n)throw Error("Key was invalid for type. Validation should have prevented this.")
|
|
9769
9777
|
const i=this.createMappingConfig(t)
|
|
9770
9778
|
e.set(n,i)})),e}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}mappingsChanged(){this.updateColumnConfig(),this.observeMappings()}keyTypeChanged(){this.updateColumnConfig()}removeMappingObservers(){this.mappingNotifiers.forEach((e=>{e.unsubscribe(this)})),this.mappingNotifiers=[]}observeMappings(){this.removeMappingObservers()
|
|
9771
9779
|
for(const e of this.mappings){const t=g.getNotifier(e)
|
|
9772
|
-
t.subscribe(this),this.mappingNotifiers.push(t)}}}e([m],
|
|
9773
|
-
const
|
|
9780
|
+
t.subscribe(this),this.mappingNotifiers.push(t)}}}e([m],CD.prototype,"mappings",void 0),e([se({attribute:"field-name"})],CD.prototype,"fieldName",void 0),e([se({attribute:"key-type"})],CD.prototype,"keyType",void 0)
|
|
9781
|
+
const SD=we`
|
|
9774
9782
|
${zR}
|
|
9775
9783
|
|
|
9776
9784
|
slot[name='mapping'] {
|
|
9777
9785
|
display: none;
|
|
9778
9786
|
}
|
|
9779
|
-
|
|
9780
|
-
class
|
|
9787
|
+
`,$D=W`${LR}<slot ${Ge("mappings")} name="mapping"></slot>`,_D=["invalidMappingKeyValueForType","unsupportedMappingType","duplicateMappingKey","missingKeyValue","missingTextValue"]
|
|
9788
|
+
class MD extends mD{constructor(e,t,n){super(e,t),this.supportedMappingElements=n}validate(e,t){this.untrackAll()
|
|
9781
9789
|
const n=e.map((e=>e.key))
|
|
9782
|
-
this.validateKeyValuesForType(n,t),this.validateMappingTypes(e),this.validateUniqueKeys(n,t),this.validateNoMissingKeys(e),this.validateNoMissingText(e)}validateKeyValuesForType(e,t){const n=e.some((e=>void 0!==e&&void 0===
|
|
9790
|
+
this.validateKeyValuesForType(n,t),this.validateMappingTypes(e),this.validateUniqueKeys(n,t),this.validateNoMissingKeys(e),this.validateNoMissingText(e)}validateKeyValuesForType(e,t){const n=e.some((e=>void 0!==e&&void 0===kD(e,t)))
|
|
9783
9791
|
this.setConditionValue("invalidMappingKeyValueForType",n)}validateMappingTypes(e){const t=e.every((e=>this.supportedMappingElements.some((t=>e instanceof t))))
|
|
9784
|
-
this.setConditionValue("unsupportedMappingType",!t)}validateUniqueKeys(e,t){const n=e.map((e=>
|
|
9792
|
+
this.setConditionValue("unsupportedMappingType",!t)}validateUniqueKeys(e,t){const n=e.map((e=>kD(e,t))),i=new Set(n).size!==n.length
|
|
9785
9793
|
this.setConditionValue("duplicateMappingKey",i)}validateNoMissingKeys(e){const t=e.some((e=>void 0===e.key))
|
|
9786
9794
|
this.setConditionValue("missingKeyValue",t)}validateNoMissingText(e){const t=e.some((e=>void 0===e.text))
|
|
9787
|
-
this.setConditionValue("missingTextValue",t)}}const
|
|
9788
|
-
class
|
|
9795
|
+
this.setConditionValue("missingTextValue",t)}}const AD=[..._D]
|
|
9796
|
+
class ID extends MD{constructor(e){super(e,AD,[Tb])}}class ED{constructor(e){this.text=e}}class OD extends ED{}class TD extends hD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){const e=this.cellRecord?.value
|
|
9789
9797
|
if(null==e)return void(this.text="")
|
|
9790
9798
|
const t=this.columnConfig?.mappingConfigs.get(e)
|
|
9791
|
-
this.text=t instanceof
|
|
9792
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
9793
|
-
const
|
|
9794
|
-
class
|
|
9799
|
+
this.text=t instanceof OD&&t.text?t.text:""}}const RD=TD.compose({baseName:"table-column-enum-text-cell-view",template:cD,styles:dD})
|
|
9800
|
+
mi.getOrCreate().withPrefix("nimble").register(RD())
|
|
9801
|
+
const DD=mi.tagFor(TD)
|
|
9802
|
+
class FD extends GR{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){const e=this.groupHeaderValue
|
|
9795
9803
|
if(null==e)return void(this.text="")
|
|
9796
9804
|
const t=this.columnConfig?.mappingConfigs.get(e)
|
|
9797
|
-
this.text=t instanceof
|
|
9798
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
9799
|
-
const
|
|
9800
|
-
class
|
|
9801
|
-
throw new Error("Unsupported mapping")}}const
|
|
9802
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
9803
|
-
const
|
|
9804
|
-
class
|
|
9805
|
-
this.setConditionValue("invalidIconName",t)}}const
|
|
9805
|
+
this.text=t instanceof OD&&t.text?t.text:""}}const ND=FD.compose({baseName:"table-column-enum-text-group-header-view",template:KR,styles:JR})
|
|
9806
|
+
mi.getOrCreate().withPrefix("nimble").register(ND())
|
|
9807
|
+
const zD=mi.tagFor(FD)
|
|
9808
|
+
class PD extends(BR(HR(CD))){createValidator(){return new ID(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:DD,groupHeaderViewTag:zD,delegatedEvents:[],sortOperation:TT}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof Tb)return new OD(e.text)
|
|
9809
|
+
throw new Error("Unsupported mapping")}}const VD=PD.compose({baseName:"table-column-enum-text",template:$D,styles:SD})
|
|
9810
|
+
mi.getOrCreate().withPrefix("nimble").register(VD()),mi.tagFor(PD)
|
|
9811
|
+
const LD=[..._D,"invalidIconName"]
|
|
9812
|
+
class HD extends MD{constructor(e){super(e,LD,[Fb,zb])}validate(e,t){super.validate(e,t),this.validateIconNames(e)}validateIconNames(e){const t=e.filter((e=>e instanceof Fb)).some((e=>void 0===e.resolvedIcon))
|
|
9813
|
+
this.setConditionValue("invalidIconName",t)}}const BD=we`
|
|
9806
9814
|
${Io("inline-flex")}
|
|
9807
9815
|
|
|
9808
9816
|
:host {
|
|
@@ -9822,7 +9830,7 @@ this.setConditionValue("invalidIconName",t)}}const LD=we`
|
|
|
9822
9830
|
overflow: hidden;
|
|
9823
9831
|
text-overflow: ellipsis;
|
|
9824
9832
|
}
|
|
9825
|
-
`,
|
|
9833
|
+
`,qD=W`
|
|
9826
9834
|
${Pe((e=>"icon"===e.visual),W`
|
|
9827
9835
|
${e=>e.iconTemplate}
|
|
9828
9836
|
<span
|
|
@@ -9841,7 +9849,7 @@ this.setConditionValue("invalidIconName",t)}}const LD=we`
|
|
|
9841
9849
|
>${e=>e.text}</span>
|
|
9842
9850
|
`)}
|
|
9843
9851
|
`
|
|
9844
|
-
class
|
|
9852
|
+
class ZD extends ED{constructor(e,t,n){var i
|
|
9845
9853
|
super(n),this.severity=t,this.iconTemplate=W`
|
|
9846
9854
|
<${i=e}
|
|
9847
9855
|
title="${e=>e.text}"
|
|
@@ -9849,14 +9857,14 @@ super(n),this.severity=t,this.iconTemplate=W`
|
|
|
9849
9857
|
severity="${e=>e.severity}"
|
|
9850
9858
|
class="no-shrink"
|
|
9851
9859
|
>
|
|
9852
|
-
</${i}>`}}class
|
|
9860
|
+
</${i}>`}}class jD extends ED{constructor(e){super(e)}}class UD extends GR{columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig)return
|
|
9853
9861
|
const e=this.groupHeaderValue
|
|
9854
9862
|
if(null==e)return
|
|
9855
9863
|
const t=this.columnConfig.mappingConfigs.get(e)
|
|
9856
|
-
t instanceof
|
|
9857
|
-
const
|
|
9858
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
9859
|
-
const
|
|
9864
|
+
t instanceof ZD?(this.visual="icon",this.severity=t.severity,this.text=t.text??"",this.iconTemplate=t.iconTemplate):t instanceof jD&&(this.visual="spinner",this.text=t.text??"")}}e([m],UD.prototype,"severity",void 0),e([m],UD.prototype,"iconTemplate",void 0),e([m],UD.prototype,"visual",void 0)
|
|
9865
|
+
const WD=UD.compose({baseName:"table-column-icon-group-header-view",template:qD,styles:BD})
|
|
9866
|
+
mi.getOrCreate().withPrefix("nimble").register(WD())
|
|
9867
|
+
const GD=mi.tagFor(UD),KD=W`
|
|
9860
9868
|
${Pe((e=>"icon"===e.visual),(e=>e.iconTemplate))}
|
|
9861
9869
|
${Pe((e=>"spinner"===e.visual),W`
|
|
9862
9870
|
<${CO}
|
|
@@ -9866,24 +9874,24 @@ const UD=mi.tagFor(ZD),WD=W`
|
|
|
9866
9874
|
</${CO}>
|
|
9867
9875
|
`)}
|
|
9868
9876
|
`
|
|
9869
|
-
class
|
|
9877
|
+
class JD extends NT{columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig||!this.cellRecord)return
|
|
9870
9878
|
const e=this.cellRecord.value
|
|
9871
9879
|
if(null==e)return
|
|
9872
9880
|
const t=this.columnConfig.mappingConfigs.get(e)
|
|
9873
|
-
t instanceof
|
|
9874
|
-
const
|
|
9875
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
9876
|
-
const
|
|
9877
|
-
class
|
|
9878
|
-
return new
|
|
9879
|
-
throw new Error("Unsupported mapping")}}const
|
|
9880
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
9881
|
-
class
|
|
9882
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
9883
|
-
const
|
|
9884
|
-
class
|
|
9885
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
9886
|
-
const
|
|
9881
|
+
t instanceof ZD?(this.visual="icon",this.severity=t.severity,this.text=t.text,this.iconTemplate=t.iconTemplate):t instanceof jD&&(this.visual="spinner",this.text=t.text)}}e([m],JD.prototype,"severity",void 0),e([m],JD.prototype,"text",void 0),e([m],JD.prototype,"iconTemplate",void 0),e([m],JD.prototype,"visual",void 0)
|
|
9882
|
+
const XD=JD.compose({baseName:"table-column-icon-cell-view",template:KD})
|
|
9883
|
+
mi.getOrCreate().withPrefix("nimble").register(XD())
|
|
9884
|
+
const YD=mi.tagFor(JD)
|
|
9885
|
+
class QD extends(BR(HR(CD))){createValidator(){return new HD(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:YD,groupHeaderViewTag:GD,delegatedEvents:[],sortOperation:TT}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof Fb){if(!e.resolvedIcon)throw Error("Unresolved icon")
|
|
9886
|
+
return new ZD(e.resolvedIcon,e.severity,e.text)}if(e instanceof zb)return new jD(e.text)
|
|
9887
|
+
throw new Error("Unsupported mapping")}}const eF=QD.compose({baseName:"table-column-icon",template:$D,styles:SD})
|
|
9888
|
+
mi.getOrCreate().withPrefix("nimble").register(eF()),mi.tagFor(QD)
|
|
9889
|
+
class tF extends hD{cellRecordChanged(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}const nF=tF.compose({baseName:"table-column-text-cell-view",template:cD,styles:dD})
|
|
9890
|
+
mi.getOrCreate().withPrefix("nimble").register(nF())
|
|
9891
|
+
const iF=mi.tagFor(tF)
|
|
9892
|
+
class oF extends nD{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:iF,groupHeaderViewTag:QR,delegatedEvents:[],sortOperation:RT}}}const rF=oF.compose({baseName:"table-column-text",template:LR,styles:zR})
|
|
9893
|
+
mi.getOrCreate().withPrefix("nimble").register(rF()),mi.tagFor(oF)
|
|
9894
|
+
const sF=we`
|
|
9887
9895
|
${Io("grid")}
|
|
9888
9896
|
|
|
9889
9897
|
:host {
|
|
@@ -9911,7 +9919,7 @@ const oF=we`
|
|
|
9911
9919
|
overflow: auto;
|
|
9912
9920
|
}
|
|
9913
9921
|
`
|
|
9914
|
-
class
|
|
9922
|
+
class aF extends no{constructor(){super(),this.activeindicator=!1}}const lF=aF.compose({baseName:"tabs",baseClass:no,template:(e,t)=>W`
|
|
9915
9923
|
<template class="${e=>e.orientation}">
|
|
9916
9924
|
${Qe(0,t)}
|
|
9917
9925
|
<div class="tablist" part="tablist" role="tablist">
|
|
@@ -9930,9 +9938,9 @@ class rF extends no{constructor(){super(),this.activeindicator=!1}}const sF=rF.c
|
|
|
9930
9938
|
<slot name="tabpanel" ${Ge("tabpanels")}></slot>
|
|
9931
9939
|
</div>
|
|
9932
9940
|
</template>
|
|
9933
|
-
`,styles:
|
|
9934
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
9935
|
-
const
|
|
9941
|
+
`,styles:sF})
|
|
9942
|
+
mi.getOrCreate().withPrefix("nimble").register(lF()),mi.tagFor(aF)
|
|
9943
|
+
const cF=we`
|
|
9936
9944
|
${Io("flex")}
|
|
9937
9945
|
|
|
9938
9946
|
:host {
|
|
@@ -9950,15 +9958,15 @@ const aF=we`
|
|
|
9950
9958
|
rgba(${pa}, 0.3);
|
|
9951
9959
|
margin: calc(${Ra} / 4) calc(${Ra} / 2);
|
|
9952
9960
|
}
|
|
9953
|
-
`,
|
|
9961
|
+
`,dF=W`
|
|
9954
9962
|
<template slot="end">
|
|
9955
9963
|
<div class="separator"></div>
|
|
9956
9964
|
<slot></slot>
|
|
9957
9965
|
</template>
|
|
9958
9966
|
`
|
|
9959
|
-
class
|
|
9960
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
9961
|
-
const
|
|
9967
|
+
class hF extends zt{}const uF=hF.compose({baseName:"tabs-toolbar",template:dF,styles:cF})
|
|
9968
|
+
mi.getOrCreate().withPrefix("nimble").register(uF()),mi.tagFor(hF)
|
|
9969
|
+
const pF="outline",fF="block",gF=we`
|
|
9962
9970
|
${Io("inline-flex")}
|
|
9963
9971
|
${qf}
|
|
9964
9972
|
|
|
@@ -10098,12 +10106,12 @@ const hF="outline",uF="block",pF=we`
|
|
|
10098
10106
|
top: calc(${Ra} / 2);
|
|
10099
10107
|
right: var(--ni-private-scrollbar-width);
|
|
10100
10108
|
}
|
|
10101
|
-
`.withBehaviors(vd(
|
|
10109
|
+
`.withBehaviors(vd(pF,we`
|
|
10102
10110
|
.control {
|
|
10103
10111
|
border-color: rgba(${pa}, 0.3);
|
|
10104
10112
|
background-color: transparent;
|
|
10105
10113
|
}
|
|
10106
|
-
`),vd(
|
|
10114
|
+
`),vd(fF,we`
|
|
10107
10115
|
.control {
|
|
10108
10116
|
background-color: rgba(${pa}, 0.1);
|
|
10109
10117
|
}
|
|
@@ -10121,8 +10129,8 @@ const hF="outline",uF="block",pF=we`
|
|
|
10121
10129
|
border-bottom-color: ${fa};
|
|
10122
10130
|
}
|
|
10123
10131
|
`))
|
|
10124
|
-
class
|
|
10125
|
-
const
|
|
10132
|
+
class mF extends so{constructor(){super(...arguments),this.appearance=pF,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(e,t){super.valueChanged(e,t),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}e([se],mF.prototype,"appearance",void 0),e([se({attribute:"error-text"})],mF.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],mF.prototype,"errorVisible",void 0),e([m],mF.prototype,"scrollbarWidth",void 0)
|
|
10133
|
+
const vF=mF.compose({baseName:"text-area",baseClass:so,template:()=>W`
|
|
10126
10134
|
<label
|
|
10127
10135
|
part="label"
|
|
10128
10136
|
for="control"
|
|
@@ -10179,9 +10187,9 @@ const gF=fF.compose({baseName:"text-area",baseClass:so,template:()=>W`
|
|
|
10179
10187
|
></${ef}>
|
|
10180
10188
|
${Ff}
|
|
10181
10189
|
</div>
|
|
10182
|
-
`,styles:
|
|
10183
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
10184
|
-
const
|
|
10190
|
+
`,styles:gF,shadowOptions:{delegatesFocus:!0}})
|
|
10191
|
+
mi.getOrCreate().withPrefix("nimble").register(vF()),mi.tagFor(mF)
|
|
10192
|
+
const bF="underline",wF="outline",yF="block",xF="frameless",kF=we`
|
|
10185
10193
|
${Io("inline-block")}
|
|
10186
10194
|
${qf}
|
|
10187
10195
|
|
|
@@ -10353,12 +10361,12 @@ const mF="underline",vF="outline",bF="block",wF="frameless",yF=we`
|
|
|
10353
10361
|
slot[name='actions']::slotted(*) {
|
|
10354
10362
|
${Ea.cssCustomProperty}: 24px;
|
|
10355
10363
|
}
|
|
10356
|
-
`.withBehaviors(vd(
|
|
10364
|
+
`.withBehaviors(vd(bF,we`
|
|
10357
10365
|
.root {
|
|
10358
10366
|
border-bottom-width: ${Da};
|
|
10359
10367
|
padding-bottom: 0;
|
|
10360
10368
|
}
|
|
10361
|
-
`),vd(
|
|
10369
|
+
`),vd(yF,we`
|
|
10362
10370
|
.root {
|
|
10363
10371
|
background-color: rgba(${pa}, 0.1);
|
|
10364
10372
|
}
|
|
@@ -10386,12 +10394,12 @@ const mF="underline",vF="outline",bF="block",wF="frameless",yF=we`
|
|
|
10386
10394
|
:host([disabled]) .root {
|
|
10387
10395
|
background-color: rgba(${pa}, 0.07);
|
|
10388
10396
|
}
|
|
10389
|
-
`),vd(
|
|
10397
|
+
`),vd(wF,we`
|
|
10390
10398
|
.root {
|
|
10391
10399
|
border-width: ${Da};
|
|
10392
10400
|
padding: 0;
|
|
10393
10401
|
}
|
|
10394
|
-
`),vd(
|
|
10402
|
+
`),vd(xF,we`
|
|
10395
10403
|
.control {
|
|
10396
10404
|
padding-left: ${Da};
|
|
10397
10405
|
padding-right: ${Da};
|
|
@@ -10409,8 +10417,8 @@ const mF="underline",vF="outline",bF="block",wF="frameless",yF=we`
|
|
|
10409
10417
|
filter: invert(100%);
|
|
10410
10418
|
}
|
|
10411
10419
|
`))
|
|
10412
|
-
class
|
|
10413
|
-
const
|
|
10420
|
+
class CF extends Ni{constructor(){super(...arguments),this.appearance=bF,this.errorVisible=!1,this.fullBleed=!1}}e([se],CF.prototype,"appearance",void 0),e([se({attribute:"error-text"})],CF.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],CF.prototype,"errorVisible",void 0),e([se({attribute:"full-bleed",mode:"boolean"})],CF.prototype,"fullBleed",void 0)
|
|
10421
|
+
const SF=CF.compose({baseName:"text-field",baseClass:Ni,template:(e,t)=>W`
|
|
10414
10422
|
<template
|
|
10415
10423
|
class="
|
|
10416
10424
|
${e=>e.readOnly?"readonly":""}
|
|
@@ -10470,7 +10478,7 @@ const kF=xF.compose({baseName:"text-field",baseClass:Ni,template:(e,t)=>W`
|
|
|
10470
10478
|
${Ye(0,t)}
|
|
10471
10479
|
</div>
|
|
10472
10480
|
</template>
|
|
10473
|
-
`,styles:
|
|
10481
|
+
`,styles:kF,shadowOptions:{delegatesFocus:!0},end:W`
|
|
10474
10482
|
<${ef}
|
|
10475
10483
|
severity="error"
|
|
10476
10484
|
class="error-icon"
|
|
@@ -10480,8 +10488,8 @@ const kF=xF.compose({baseName:"text-field",baseClass:Ni,template:(e,t)=>W`
|
|
|
10480
10488
|
</span>
|
|
10481
10489
|
${Ff}
|
|
10482
10490
|
`})
|
|
10483
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
10484
|
-
const
|
|
10491
|
+
mi.getOrCreate().withPrefix("nimble").register(SF()),mi.tagFor(CF)
|
|
10492
|
+
const $F=we`
|
|
10485
10493
|
${Io("inline-flex")}
|
|
10486
10494
|
|
|
10487
10495
|
:host {
|
|
@@ -10566,7 +10574,7 @@ const CF=we`
|
|
|
10566
10574
|
.status-icon {
|
|
10567
10575
|
opacity: 0.6;
|
|
10568
10576
|
}
|
|
10569
|
-
`)),
|
|
10577
|
+
`)),_F=W`
|
|
10570
10578
|
${Pe((e=>e.tooltipVisible),W`
|
|
10571
10579
|
<${Ld}
|
|
10572
10580
|
class="anchored-region"
|
|
@@ -10599,11 +10607,11 @@ const CF=we`
|
|
|
10599
10607
|
</${Ld}>
|
|
10600
10608
|
`)}
|
|
10601
10609
|
`
|
|
10602
|
-
class
|
|
10603
|
-
const
|
|
10604
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
10605
|
-
const
|
|
10606
|
-
class
|
|
10610
|
+
class MF extends $o{constructor(){super(...arguments),this.iconVisible=!1}}e([se],MF.prototype,"severity",void 0),e([se({attribute:"icon-visible",mode:"boolean"})],MF.prototype,"iconVisible",void 0)
|
|
10611
|
+
const AF=MF.compose({baseName:"tooltip",baseClass:$o,template:_F,styles:$F})
|
|
10612
|
+
mi.getOrCreate().withPrefix("nimble").register(AF()),mi.tagFor(MF)
|
|
10613
|
+
const IF="group-selected",EF="all",OF="leaves-only",TF="none"
|
|
10614
|
+
class RF{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const DF=we`
|
|
10607
10615
|
${Io("block")}
|
|
10608
10616
|
|
|
10609
10617
|
:host {
|
|
@@ -10619,7 +10627,7 @@ class OF{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
|
|
|
10619
10627
|
}
|
|
10620
10628
|
|
|
10621
10629
|
${""}
|
|
10622
|
-
:host([${
|
|
10630
|
+
:host([${IF}])::after {
|
|
10623
10631
|
background: ${ba};
|
|
10624
10632
|
border-radius: 0px;
|
|
10625
10633
|
content: '';
|
|
@@ -10641,7 +10649,7 @@ class OF{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
|
|
|
10641
10649
|
background: ${ha};
|
|
10642
10650
|
}
|
|
10643
10651
|
|
|
10644
|
-
:host([${
|
|
10652
|
+
:host([${IF}]) .positioning-region:hover {
|
|
10645
10653
|
background: ${da};
|
|
10646
10654
|
}
|
|
10647
10655
|
|
|
@@ -10749,7 +10757,7 @@ class OF{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
|
|
|
10749
10757
|
display: block;
|
|
10750
10758
|
}
|
|
10751
10759
|
`.withBehaviors(new class{constructor(e,t){this.cache=new WeakMap,this.ltr=e,this.rtl=t}bind(e){this.attach(e)}unbind(e){const t=this.cache.get(e)
|
|
10752
|
-
t&&ea.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new
|
|
10760
|
+
t&&ea.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new RF(this.ltr,this.rtl,e),n=ea.getValueFor(e)
|
|
10753
10761
|
ea.subscribe(t),t.attach(n),this.cache.set(e,t)}}(we`
|
|
10754
10762
|
.expand-collapse-button {
|
|
10755
10763
|
left: var(
|
|
@@ -10781,8 +10789,8 @@ ea.subscribe(t),t.attach(n),this.cache.set(e,t)}}(we`
|
|
|
10781
10789
|
transform: rotate(135deg);
|
|
10782
10790
|
}
|
|
10783
10791
|
`))
|
|
10784
|
-
class
|
|
10785
|
-
const
|
|
10792
|
+
class FF extends Mo{constructor(){super(...arguments),this.groupSelected=!1}}e([se({attribute:"group-selected",mode:"boolean"})],FF.prototype,"groupSelected",void 0)
|
|
10793
|
+
const NF=FF.compose({baseName:"tree-item",baseClass:Mo,template:(e,t)=>W`
|
|
10786
10794
|
<template
|
|
10787
10795
|
role="treeitem"
|
|
10788
10796
|
slot="${e=>e.isNestedItem()?"item":void 0}"
|
|
@@ -10822,9 +10830,9 @@ const DF=RF.compose({baseName:"tree-item",baseClass:Mo,template:(e,t)=>W`
|
|
|
10822
10830
|
</div>
|
|
10823
10831
|
`)}
|
|
10824
10832
|
</template>
|
|
10825
|
-
`,styles:
|
|
10826
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
10827
|
-
const
|
|
10833
|
+
`,styles:DF,expandCollapseGlyph:th.data})
|
|
10834
|
+
mi.getOrCreate().withPrefix("nimble").register(NF()),mi.tagFor(FF)
|
|
10835
|
+
const zF=we`
|
|
10828
10836
|
${Io("flex")}
|
|
10829
10837
|
|
|
10830
10838
|
:host {
|
|
@@ -10836,7 +10844,7 @@ const FF=we`
|
|
|
10836
10844
|
:host(${To}) {
|
|
10837
10845
|
outline: none;
|
|
10838
10846
|
}
|
|
10839
|
-
`,
|
|
10847
|
+
`,PF=W`
|
|
10840
10848
|
<template
|
|
10841
10849
|
role="tree"
|
|
10842
10850
|
${De("treeView")}
|
|
@@ -10850,231 +10858,231 @@ const FF=we`
|
|
|
10850
10858
|
<slot ${Ge("slottedTreeItems")}></slot>
|
|
10851
10859
|
</template>
|
|
10852
10860
|
`
|
|
10853
|
-
class
|
|
10861
|
+
class VF extends Ao{constructor(){super(...arguments),this.selectionMode=EF,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
|
|
10854
10862
|
if(!(e.target instanceof Element&&_o(e.target)))return!0
|
|
10855
10863
|
const t=e.target
|
|
10856
|
-
return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case
|
|
10857
|
-
case
|
|
10858
|
-
case
|
|
10859
|
-
default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof
|
|
10864
|
+
return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case EF:return!0
|
|
10865
|
+
case TF:return!1
|
|
10866
|
+
case OF:return!this.itemHasChildren(e)
|
|
10867
|
+
default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof FF&&(e.groupSelected=!1)
|
|
10860
10868
|
for(let e of this.selectedItems){for(;null!==e.parentElement&&e.parentElement!==this;)e=e.parentElement
|
|
10861
|
-
e instanceof
|
|
10862
|
-
const
|
|
10863
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
10864
|
-
var
|
|
10865
|
-
function
|
|
10866
|
-
i[e]=[]}return new
|
|
10867
|
-
break}return null!=n&&e.push({name:t,value:n}),e}
|
|
10869
|
+
e instanceof FF&&(e.groupSelected=!0)}}}e([se({attribute:"selection-mode"})],VF.prototype,"selectionMode",void 0),e([m],VF.prototype,"selectedItems",void 0)
|
|
10870
|
+
const LF=VF.compose({baseName:"tree-view",baseClass:Ao,template:PF,styles:zF})
|
|
10871
|
+
mi.getOrCreate().withPrefix("nimble").register(LF()),mi.tagFor(VF)
|
|
10872
|
+
var HF={value:()=>{}}
|
|
10873
|
+
function BF(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e)
|
|
10874
|
+
i[e]=[]}return new qF(i)}function qF(e){this._=e}function ZF(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function jF(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=HF,e=e.slice(0,i).concat(e.slice(i+1))
|
|
10875
|
+
break}return null!=n&&e.push({name:t,value:n}),e}qF.prototype=BF.prototype={constructor:qF,on:function(e,t){var n,i,o=this._,r=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
|
|
10868
10876
|
if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!i.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
10869
10877
|
return{type:e,name:t}}))),s=-1,a=r.length
|
|
10870
10878
|
if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
|
|
10871
|
-
for(;++s<a;)if(n=(e=r[s]).type)o[n]=
|
|
10872
|
-
else if(null==t)for(n in o)o[n]=
|
|
10873
|
-
return this}for(;++s<a;)if((n=(e=r[s]).type)&&(n=
|
|
10879
|
+
for(;++s<a;)if(n=(e=r[s]).type)o[n]=jF(o[n],e.name,t)
|
|
10880
|
+
else if(null==t)for(n in o)o[n]=jF(o[n],e.name,null)
|
|
10881
|
+
return this}for(;++s<a;)if((n=(e=r[s]).type)&&(n=ZF(o[n],e.name)))return n},copy:function(){var e={},t=this._
|
|
10874
10882
|
for(var n in t)e[n]=t[n].slice()
|
|
10875
|
-
return new
|
|
10883
|
+
return new qF(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),r=0;r<n;++r)o[r]=arguments[r+2]
|
|
10876
10884
|
if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
10877
10885
|
for(r=0,n=(i=this._[e]).length;r<n;++r)i[r].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
10878
10886
|
for(var i=this._[e],o=0,r=i.length;o<r;++o)i[o].value.apply(t,n)}}
|
|
10879
|
-
var
|
|
10880
|
-
function
|
|
10881
|
-
return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),
|
|
10882
|
-
return n===
|
|
10883
|
-
return(t.local?
|
|
10884
|
-
var t}}function
|
|
10885
|
-
function
|
|
10886
|
-
function
|
|
10887
|
-
for(;a<l;++a)(s=t[a])&&(o[a]=s)}function
|
|
10887
|
+
var UF="http://www.w3.org/1999/xhtml",WF={svg:"http://www.w3.org/2000/svg",xhtml:UF,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
|
|
10888
|
+
function GF(e){var t=e+="",n=t.indexOf(":")
|
|
10889
|
+
return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),WF.hasOwnProperty(t)?{space:WF[t],local:e}:e}function KF(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
|
|
10890
|
+
return n===UF&&t.documentElement.namespaceURI===UF?t.createElement(e):t.createElementNS(n,e)}}function JF(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function XF(e){var t=GF(e)
|
|
10891
|
+
return(t.local?JF:KF)(t)}function YF(){}function QF(e){return null==e?YF:function(){return this.querySelector(e)}}function eN(){return[]}function tN(e){return null==e?eN:function(){return this.querySelectorAll(e)}}function nN(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
|
|
10892
|
+
var t}}function iN(e){return function(){return this.matches(e)}}function oN(e){return function(t){return t.matches(e)}}var rN=Array.prototype.find
|
|
10893
|
+
function sN(){return this.firstElementChild}var aN=Array.prototype.filter
|
|
10894
|
+
function lN(){return Array.from(this.children)}function cN(e){return new Array(e.length)}function dN(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function hN(e,t,n,i,o,r){for(var s,a=0,l=t.length,c=r.length;a<c;++a)(s=t[a])?(s.__data__=r[a],i[a]=s):n[a]=new dN(e,r[a])
|
|
10895
|
+
for(;a<l;++a)(s=t[a])&&(o[a]=s)}function uN(e,t,n,i,o,r,s){var a,l,c,d=new Map,h=t.length,u=r.length,p=new Array(h)
|
|
10888
10896
|
for(a=0;a<h;++a)(l=t[a])&&(p[a]=c=s.call(l,l.__data__,a,t)+"",d.has(c)?o[a]=l:d.set(c,l))
|
|
10889
|
-
for(a=0;a<u;++a)c=s.call(e,r[a],a,r)+"",(l=d.get(c))?(i[a]=l,l.__data__=r[a],d.delete(c)):n[a]=new
|
|
10890
|
-
for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function
|
|
10891
|
-
null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function
|
|
10892
|
-
null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function
|
|
10893
|
-
null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function
|
|
10894
|
-
null==n?delete this[e]:this[e]=n}}function
|
|
10895
|
-
this.textContent=null==t?"":t}}function
|
|
10896
|
-
this.innerHTML=null==t?"":t}}function
|
|
10897
|
-
e&&e.removeChild(this)}function
|
|
10898
|
-
return t?t.insertBefore(e,this.nextSibling):e}function
|
|
10899
|
-
return t?t.insertBefore(e,this.nextSibling):e}function
|
|
10900
|
-
if(t){for(var n,i=0,o=-1,r=t.length;i<r;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function
|
|
10897
|
+
for(a=0;a<u;++a)c=s.call(e,r[a],a,r)+"",(l=d.get(c))?(i[a]=l,l.__data__=r[a],d.delete(c)):n[a]=new dN(e,r[a])
|
|
10898
|
+
for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function pN(e){return e.__data__}function fN(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function gN(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function mN(e){return function(){this.removeAttribute(e)}}function vN(e){return function(){this.removeAttributeNS(e.space,e.local)}}function bN(e,t){return function(){this.setAttribute(e,t)}}function wN(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function yN(e,t){return function(){var n=t.apply(this,arguments)
|
|
10899
|
+
null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function xN(e,t){return function(){var n=t.apply(this,arguments)
|
|
10900
|
+
null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function kN(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function CN(e){return function(){this.style.removeProperty(e)}}function SN(e,t,n){return function(){this.style.setProperty(e,t,n)}}function $N(e,t,n){return function(){var i=t.apply(this,arguments)
|
|
10901
|
+
null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function _N(e,t){return e.style.getPropertyValue(t)||kN(e).getComputedStyle(e,null).getPropertyValue(t)}function MN(e){return function(){delete this[e]}}function AN(e,t){return function(){this[e]=t}}function IN(e,t){return function(){var n=t.apply(this,arguments)
|
|
10902
|
+
null==n?delete this[e]:this[e]=n}}function EN(e){return e.trim().split(/^|\s+/)}function ON(e){return e.classList||new TN(e)}function TN(e){this._node=e,this._names=EN(e.getAttribute("class")||"")}function RN(e,t){for(var n=ON(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function DN(e,t){for(var n=ON(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function FN(e){return function(){RN(this,e)}}function NN(e){return function(){DN(this,e)}}function zN(e,t){return function(){(t.apply(this,arguments)?RN:DN)(this,e)}}function PN(){this.textContent=""}function VN(e){return function(){this.textContent=e}}function LN(e){return function(){var t=e.apply(this,arguments)
|
|
10903
|
+
this.textContent=null==t?"":t}}function HN(){this.innerHTML=""}function BN(e){return function(){this.innerHTML=e}}function qN(e){return function(){var t=e.apply(this,arguments)
|
|
10904
|
+
this.innerHTML=null==t?"":t}}function ZN(){this.nextSibling&&this.parentNode.appendChild(this)}function jN(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function UN(){return null}function WN(){var e=this.parentNode
|
|
10905
|
+
e&&e.removeChild(this)}function GN(){var e=this.cloneNode(!1),t=this.parentNode
|
|
10906
|
+
return t?t.insertBefore(e,this.nextSibling):e}function KN(){var e=this.cloneNode(!0),t=this.parentNode
|
|
10907
|
+
return t?t.insertBefore(e,this.nextSibling):e}function JN(e){return function(){var t=this.__on
|
|
10908
|
+
if(t){for(var n,i=0,o=-1,r=t.length;i<r;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function XN(e,t,n){return function(){var i,o=this.__on,r=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
|
|
10901
10909
|
if(o)for(var s=0,a=o.length;s<a;++s)if((i=o[s]).type===e.type&&i.name===e.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=r,i.options=n),void(i.value=t)
|
|
10902
|
-
this.addEventListener(e.type,r,n),i={type:e.type,name:e.name,value:t,listener:r,options:n},o?o.push(i):this.__on=[i]}}function
|
|
10903
|
-
"function"==typeof o?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function
|
|
10910
|
+
this.addEventListener(e.type,r,n),i={type:e.type,name:e.name,value:t,listener:r,options:n},o?o.push(i):this.__on=[i]}}function YN(e,t,n){var i=kN(e),o=i.CustomEvent
|
|
10911
|
+
"function"==typeof o?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function QN(e,t){return function(){return YN(this,e,t)}}function ez(e,t){return function(){return YN(this,e,t.apply(this,arguments))}}dN.prototype={constructor:dN,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},TN.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e)
|
|
10904
10912
|
t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
|
|
10905
|
-
var
|
|
10906
|
-
function
|
|
10913
|
+
var tz=[null]
|
|
10914
|
+
function nz(e,t){this._groups=e,this._parents=t}function iz(){return new nz([[document.documentElement]],tz)}function oz(e){return"string"==typeof e?new nz([[document.querySelector(e)]],[document.documentElement]):new nz([[e]],tz)}function rz(e,t){if(e=function(e){let t
|
|
10907
10915
|
for(;t=e.sourceEvent;)e=t
|
|
10908
10916
|
return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t
|
|
10909
10917
|
if(n.createSVGPoint){var i=n.createSVGPoint()
|
|
10910
10918
|
return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect()
|
|
10911
|
-
return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}
|
|
10919
|
+
return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}nz.prototype=iz.prototype={constructor:nz,select:function(e){"function"!=typeof e&&(e=QF(e))
|
|
10912
10920
|
for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s,a=t[o],l=a.length,c=i[o]=new Array(l),d=0;d<l;++d)(r=a[d])&&(s=e.call(r,r.__data__,d,a))&&("__data__"in r&&(s.__data__=r.__data__),c[d]=s)
|
|
10913
|
-
return new
|
|
10921
|
+
return new nz(i,this._parents)},selectAll:function(e){e="function"==typeof e?nN(e):tN(e)
|
|
10914
10922
|
for(var t=this._groups,n=t.length,i=[],o=[],r=0;r<n;++r)for(var s,a=t[r],l=a.length,c=0;c<l;++c)(s=a[c])&&(i.push(e.call(s,s.__data__,c,a)),o.push(s))
|
|
10915
|
-
return new
|
|
10923
|
+
return new nz(i,o)},selectChild:function(e){return this.select(null==e?sN:function(e){return function(){return rN.call(this.children,e)}}("function"==typeof e?e:oN(e)))},selectChildren:function(e){return this.selectAll(null==e?lN:function(e){return function(){return aN.call(this.children,e)}}("function"==typeof e?e:oN(e)))},filter:function(e){"function"!=typeof e&&(e=iN(e))
|
|
10916
10924
|
for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s=t[o],a=s.length,l=i[o]=[],c=0;c<a;++c)(r=s[c])&&e.call(r,r.__data__,c,s)&&l.push(r)
|
|
10917
|
-
return new
|
|
10918
|
-
var n,i=t?
|
|
10925
|
+
return new nz(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,pN)
|
|
10926
|
+
var n,i=t?uN:hN,o=this._parents,r=this._groups
|
|
10919
10927
|
"function"!=typeof e&&(n=e,e=function(){return n})
|
|
10920
|
-
for(var s=r.length,a=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var h=o[d],u=r[d],p=u.length,f=
|
|
10928
|
+
for(var s=r.length,a=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var h=o[d],u=r[d],p=u.length,f=fN(e.call(h,h&&h.__data__,d,o)),g=f.length,m=l[d]=new Array(g),v=a[d]=new Array(g)
|
|
10921
10929
|
i(h,u,m,v,c[d]=new Array(p),f,t)
|
|
10922
|
-
for(var b,w,y=0,x=0;y<g;++y)if(b=m[y]){for(y>=x&&(x=y+1);!(w=v[x])&&++x<g;);b._next=w||null}}return(a=new
|
|
10930
|
+
for(var b,w,y=0,x=0;y<g;++y)if(b=m[y]){for(y>=x&&(x=y+1);!(w=v[x])&&++x<g;);b._next=w||null}}return(a=new nz(a,o))._enter=l,a._exit=c,a},enter:function(){return new nz(this._enter||this._groups.map(cN),this._parents)},exit:function(){return new nz(this._exit||this._groups.map(cN),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,r=this.exit()
|
|
10923
10931
|
return"function"==typeof e?(i=e(i))&&(i=i.selection()):i=i.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?r.remove():n(r),i&&o?i.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,o=n.length,r=i.length,s=Math.min(o,r),a=new Array(o),l=0;l<s;++l)for(var c,d=n[l],h=i[l],u=d.length,p=a[l]=new Array(u),f=0;f<u;++f)(c=d[f]||h[f])&&(p[f]=c)
|
|
10924
10932
|
for(;l<o;++l)a[l]=n[l]
|
|
10925
|
-
return new
|
|
10926
|
-
return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=
|
|
10933
|
+
return new nz(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,o=e[t],r=o.length-1,s=o[r];--r>=0;)(i=o[r])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i)
|
|
10934
|
+
return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=gN)
|
|
10927
10935
|
for(var n=this._groups,i=n.length,o=new Array(i),r=0;r<i;++r){for(var s,a=n[r],l=a.length,c=o[r]=new Array(l),d=0;d<l;++d)(s=a[d])&&(c[d]=s)
|
|
10928
|
-
c.sort(t)}return new
|
|
10936
|
+
c.sort(t)}return new nz(o,this._parents).order()},call:function(){var e=arguments[0]
|
|
10929
10937
|
return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,r=i.length;o<r;++o){var s=i[o]
|
|
10930
10938
|
if(s)return s}return null},size:function(){let e=0
|
|
10931
10939
|
for(const t of this)++e
|
|
10932
10940
|
return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o,r=t[n],s=0,a=r.length;s<a;++s)(o=r[s])&&e.call(o,o.__data__,s,r)
|
|
10933
|
-
return this},attr:function(e,t){var n=
|
|
10941
|
+
return this},attr:function(e,t){var n=GF(e)
|
|
10934
10942
|
if(arguments.length<2){var i=this.node()
|
|
10935
|
-
return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?
|
|
10936
|
-
if(arguments.length<2){for(var i=
|
|
10937
|
-
return!0}return this.each(("function"==typeof t?
|
|
10938
|
-
return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:
|
|
10939
|
-
return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(
|
|
10943
|
+
return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?vN:mN:"function"==typeof t?n.local?xN:yN:n.local?wN:bN)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?CN:"function"==typeof t?$N:SN)(e,t,null==n?"":n)):_N(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?MN:"function"==typeof t?IN:AN)(e,t)):this.node()[e]},classed:function(e,t){var n=EN(e+"")
|
|
10944
|
+
if(arguments.length<2){for(var i=ON(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
|
|
10945
|
+
return!0}return this.each(("function"==typeof t?zN:t?FN:NN)(n,t))},text:function(e){return arguments.length?this.each(null==e?PN:("function"==typeof e?LN:VN)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?HN:("function"==typeof e?qN:BN)(e)):this.node().innerHTML},raise:function(){return this.each(ZN)},lower:function(){return this.each(jN)},append:function(e){var t="function"==typeof e?e:XF(e)
|
|
10946
|
+
return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:XF(e),i=null==t?UN:"function"==typeof t?t:QF(t)
|
|
10947
|
+
return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(WN)},clone:function(e){return this.select(e?KN:GN)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,o,r=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
|
|
10940
10948
|
return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),s=r.length
|
|
10941
|
-
if(!(arguments.length<2)){for(a=t?
|
|
10949
|
+
if(!(arguments.length<2)){for(a=t?XN:JN,i=0;i<s;++i)this.each(a(r[i],t,n))
|
|
10942
10950
|
return this}var a=this.node().__on
|
|
10943
|
-
if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<s;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?
|
|
10944
|
-
const
|
|
10945
|
-
function
|
|
10951
|
+
if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<s;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?ez:QN)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i,o=e[t],r=0,s=o.length;r<s;++r)(i=o[r])&&(yield i)}}
|
|
10952
|
+
const sz={capture:!0,passive:!1}
|
|
10953
|
+
function az(e){e.preventDefault(),e.stopImmediatePropagation()}function lz(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function cz(e,t){var n=Object.create(e.prototype)
|
|
10946
10954
|
for(var i in t)n[i]=t[i]
|
|
10947
|
-
return n}function
|
|
10948
|
-
function
|
|
10949
|
-
return e=(e+"").trim().toLowerCase(),(t=
|
|
10950
|
-
var o}function
|
|
10951
|
-
return`${1===e?"rgb(":"rgba("}${
|
|
10952
|
-
if(e instanceof
|
|
10953
|
-
if(e instanceof
|
|
10955
|
+
return n}function dz(){}var hz=.7,uz=1/hz,pz="\\s*([+-]?\\d+)\\s*",fz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",gz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mz=/^#([0-9a-f]{3,8})$/,vz=new RegExp(`^rgb\\(${pz},${pz},${pz}\\)$`),bz=new RegExp(`^rgb\\(${gz},${gz},${gz}\\)$`),wz=new RegExp(`^rgba\\(${pz},${pz},${pz},${fz}\\)$`),yz=new RegExp(`^rgba\\(${gz},${gz},${gz},${fz}\\)$`),xz=new RegExp(`^hsl\\(${fz},${gz},${gz}\\)$`),kz=new RegExp(`^hsla\\(${fz},${gz},${gz},${fz}\\)$`),Cz={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}
|
|
10956
|
+
function Sz(){return this.rgb().formatHex()}function $z(){return this.rgb().formatRgb()}function _z(e){var t,n
|
|
10957
|
+
return e=(e+"").trim().toLowerCase(),(t=mz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Mz(t):3===n?new Ez(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Az(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Az(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=vz.exec(e))?new Ez(t[1],t[2],t[3],1):(t=bz.exec(e))?new Ez(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=wz.exec(e))?Az(t[1],t[2],t[3],t[4]):(t=yz.exec(e))?Az(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=xz.exec(e))?Nz(t[1],t[2]/100,t[3]/100,1):(t=kz.exec(e))?Nz(t[1],t[2]/100,t[3]/100,t[4]):Cz.hasOwnProperty(e)?Mz(Cz[e]):"transparent"===e?new Ez(NaN,NaN,NaN,0):null}function Mz(e){return new Ez(e>>16&255,e>>8&255,255&e,1)}function Az(e,t,n,i){return i<=0&&(e=t=n=NaN),new Ez(e,t,n,i)}function Iz(e,t,n,i){return 1===arguments.length?((o=e)instanceof dz||(o=_z(o)),o?new Ez((o=o.rgb()).r,o.g,o.b,o.opacity):new Ez):new Ez(e,t,n,null==i?1:i)
|
|
10958
|
+
var o}function Ez(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function Oz(){return`#${Fz(this.r)}${Fz(this.g)}${Fz(this.b)}`}function Tz(){const e=Rz(this.opacity)
|
|
10959
|
+
return`${1===e?"rgb(":"rgba("}${Dz(this.r)}, ${Dz(this.g)}, ${Dz(this.b)}${1===e?")":`, ${e})`}`}function Rz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Dz(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fz(e){return((e=Dz(e))<16?"0":"")+e.toString(16)}function Nz(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Pz(e,t,n,i)}function zz(e){if(e instanceof Pz)return new Pz(e.h,e.s,e.l,e.opacity)
|
|
10960
|
+
if(e instanceof dz||(e=_z(e)),!e)return new Pz
|
|
10961
|
+
if(e instanceof Pz)return e
|
|
10954
10962
|
var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2
|
|
10955
|
-
return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new
|
|
10956
|
-
return new
|
|
10957
|
-
return`${1===e?"hsl(":"hsla("}${
|
|
10958
|
-
var
|
|
10959
|
-
function
|
|
10960
|
-
return n?function(e,t){return function(n){return e+n*t}}(e,n):
|
|
10961
|
-
function i(e,t){var i=n((e=
|
|
10963
|
+
return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new Pz(s,a,l,e.opacity)}function Pz(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Vz(e){return(e=(e||0)%360)<0?e+360:e}function Lz(e){return Math.max(0,Math.min(1,e||0))}function Hz(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}lz(dz,_z,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Sz,formatHex:Sz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return zz(this).formatHsl()},formatRgb:$z,toString:$z}),lz(Ez,Iz,cz(dz,{brighter(e){return e=null==e?uz:Math.pow(uz,e),new Ez(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?hz:Math.pow(hz,e),new Ez(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ez(Dz(this.r),Dz(this.g),Dz(this.b),Rz(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:Oz,formatHex:Oz,formatHex8:function(){return`#${Fz(this.r)}${Fz(this.g)}${Fz(this.b)}${Fz(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Tz,toString:Tz})),lz(Pz,(function(e,t,n,i){return 1===arguments.length?zz(e):new Pz(e,t,n,null==i?1:i)}),cz(dz,{brighter(e){return e=null==e?uz:Math.pow(uz,e),new Pz(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?hz:Math.pow(hz,e),new Pz(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i
|
|
10964
|
+
return new Ez(Hz(e>=240?e-240:e+120,o,i),Hz(e,o,i),Hz(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Pz(Vz(this.h),Lz(this.s),Lz(this.l),Rz(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Rz(this.opacity)
|
|
10965
|
+
return`${1===e?"hsl(":"hsla("}${Vz(this.h)}, ${100*Lz(this.s)}%, ${100*Lz(this.l)}%${1===e?")":`, ${e})`}`}}))
|
|
10966
|
+
var Bz=e=>()=>e
|
|
10967
|
+
function qz(e){return 1==(e=+e)?Zz:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):Bz(isNaN(t)?n:t)}}function Zz(e,t){var n=t-e
|
|
10968
|
+
return n?function(e,t){return function(n){return e+n*t}}(e,n):Bz(isNaN(e)?t:e)}var jz=function e(t){var n=qz(t)
|
|
10969
|
+
function i(e,t){var i=n((e=Iz(e)).r,(t=Iz(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=Zz(e.opacity,t.opacity)
|
|
10962
10970
|
return function(t){return e.r=i(t),e.g=o(t),e.b=r(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1)
|
|
10963
|
-
function
|
|
10971
|
+
function Uz(e,t){t||(t=[])
|
|
10964
10972
|
var n,i=e?Math.min(t.length,e.length):0,o=t.slice()
|
|
10965
10973
|
return function(r){for(n=0;n<i;++n)o[n]=e[n]*(1-r)+t[n]*r
|
|
10966
|
-
return o}}function
|
|
10967
|
-
for(n=0;n<o;++n)r[n]=
|
|
10974
|
+
return o}}function Wz(e,t){var n,i=t?t.length:0,o=e?Math.min(i,e.length):0,r=new Array(o),s=new Array(i)
|
|
10975
|
+
for(n=0;n<o;++n)r[n]=eP(e[n],t[n])
|
|
10968
10976
|
for(;n<i;++n)s[n]=t[n]
|
|
10969
10977
|
return function(e){for(n=0;n<o;++n)s[n]=r[n](e)
|
|
10970
|
-
return s}}function
|
|
10971
|
-
return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function
|
|
10972
|
-
for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=
|
|
10978
|
+
return s}}function Gz(e,t){var n=new Date
|
|
10979
|
+
return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function Kz(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Jz(e,t){var n,i={},o={}
|
|
10980
|
+
for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=eP(e[n],t[n]):o[n]=t[n]
|
|
10973
10981
|
return function(e){for(n in i)o[n]=i[n](e)
|
|
10974
|
-
return o}}var
|
|
10975
|
-
function
|
|
10976
|
-
for(e+="",t+="";(n=
|
|
10982
|
+
return o}}var Xz=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yz=new RegExp(Xz.source,"g")
|
|
10983
|
+
function Qz(e,t){var n,i,o,r=Xz.lastIndex=Yz.lastIndex=0,s=-1,a=[],l=[]
|
|
10984
|
+
for(e+="",t+="";(n=Xz.exec(e))&&(i=Yz.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:Kz(n,i)})),r=Yz.lastIndex
|
|
10977
10985
|
return r<t.length&&(o=t.slice(r),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,i=0;i<t;++i)a[(n=l[i]).i]=n.x(e)
|
|
10978
|
-
return a.join("")})}function
|
|
10979
|
-
return null==t||"boolean"===o?
|
|
10980
|
-
function
|
|
10981
|
-
return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(t,e)*
|
|
10986
|
+
return a.join("")})}function eP(e,t){var n,i,o=typeof t
|
|
10987
|
+
return null==t||"boolean"===o?Bz(t):("number"===o?Kz:"string"===o?(n=_z(t))?(t=n,jz):Qz:t instanceof _z?jz:t instanceof Date?Gz:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?Wz:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Jz:Kz:Uz))(e,t)}function tP(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var nP,iP=180/Math.PI,oP={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
|
|
10988
|
+
function rP(e,t,n,i,o,r){var s,a,l
|
|
10989
|
+
return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(t,e)*iP,skewX:Math.atan(l)*iP,scaleX:s,scaleY:a}}function sP(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(r,s){var a=[],l=[]
|
|
10982
10990
|
return r=e(r),s=e(s),function(e,i,o,r,s,a){if(e!==o||i!==r){var l=s.push("translate(",null,t,null,n)
|
|
10983
|
-
a.push({i:l-4,x:
|
|
10984
|
-
s.push({i:a-4,x:
|
|
10985
|
-
return a.join("")}}}var
|
|
10986
|
-
return t.isIdentity?
|
|
10987
|
-
function
|
|
10991
|
+
a.push({i:l-4,x:Kz(e,o)},{i:l-2,x:Kz(i,r)})}else(o||r)&&s.push("translate("+o+t+r+n)}(r.translateX,r.translateY,s.translateX,s.translateY,a,l),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(o(n)+"rotate(",null,i)-2,x:Kz(e,t)})):t&&n.push(o(n)+"rotate("+t+i)}(r.rotate,s.rotate,a,l),function(e,t,n,r){e!==t?r.push({i:n.push(o(n)+"skewX(",null,i)-2,x:Kz(e,t)}):t&&n.push(o(n)+"skewX("+t+i)}(r.skewX,s.skewX,a,l),function(e,t,n,i,r,s){if(e!==n||t!==i){var a=r.push(o(r)+"scale(",null,",",null,")")
|
|
10992
|
+
s.push({i:a-4,x:Kz(e,n)},{i:a-2,x:Kz(t,i)})}else 1===n&&1===i||r.push(o(r)+"scale("+n+","+i+")")}(r.scaleX,r.scaleY,s.scaleX,s.scaleY,a,l),r=s=null,function(e){for(var t,n=-1,i=l.length;++n<i;)a[(t=l[n]).i]=t.x(e)
|
|
10993
|
+
return a.join("")}}}var aP=sP((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
|
|
10994
|
+
return t.isIdentity?oP:rP(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),lP=sP((function(e){return null==e?oP:(nP||(nP=document.createElementNS("http://www.w3.org/2000/svg","g")),nP.setAttribute("transform",e),(e=nP.transform.baseVal.consolidate())?rP((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):oP)}),", ",")",")")
|
|
10995
|
+
function cP(e){return((e=Math.exp(e))+1/e)/2}var dP,hP,uP=function e(t,n,i){function o(e,o){var r,s,a=e[0],l=e[1],c=e[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,g=p*p+f*f
|
|
10988
10996
|
if(g<1e-12)s=Math.log(u/c)/t,r=function(e){return[a+e*p,l+e*f,c*Math.exp(t*e*s)]}
|
|
10989
10997
|
else{var m=Math.sqrt(g),v=(u*u-c*c+i*g)/(2*c*n*m),b=(u*u-c*c-i*g)/(2*u*n*m),w=Math.log(Math.sqrt(v*v+1)-v),y=Math.log(Math.sqrt(b*b+1)-b)
|
|
10990
|
-
s=(y-w)/t,r=function(e){var i,o=e*s,r=
|
|
10991
|
-
return[a+d*p,l+d*f,c*r/
|
|
10992
|
-
return e(n,i,i*i)},o}(Math.SQRT2,2,4),
|
|
10993
|
-
function
|
|
10994
|
-
return i.restart(e,t,n),i}function
|
|
10995
|
-
try{!function(){
|
|
10996
|
-
for(var e,t=
|
|
10997
|
-
for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:
|
|
10998
|
-
|
|
10999
|
-
t>
|
|
11000
|
-
return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}
|
|
11001
|
-
n=(null==n?
|
|
11002
|
-
var
|
|
11003
|
-
function
|
|
10998
|
+
s=(y-w)/t,r=function(e){var i,o=e*s,r=cP(w),d=c/(n*m)*(r*(i=t*o+w,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
|
|
10999
|
+
return[a+d*p,l+d*f,c*r/cP(t*o+w)]}}return r.duration=1e3*s*t/Math.SQRT2,r}return o.rho=function(t){var n=Math.max(.001,+t),i=n*n
|
|
11000
|
+
return e(n,i,i*i)},o}(Math.SQRT2,2,4),pP=0,fP=0,gP=0,mP=1e3,vP=0,bP=0,wP=0,yP="object"==typeof performance&&performance.now?performance:Date,xP="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
|
|
11001
|
+
function kP(){return bP||(xP(CP),bP=yP.now()+wP)}function CP(){bP=0}function SP(){this._call=this._time=this._next=null}function $P(e,t,n){var i=new SP
|
|
11002
|
+
return i.restart(e,t,n),i}function _P(){bP=(vP=yP.now())+wP,pP=fP=0
|
|
11003
|
+
try{!function(){kP(),++pP
|
|
11004
|
+
for(var e,t=dP;t;)(e=bP-t._time)>=0&&t._call.call(void 0,e),t=t._next;--pP}()}finally{pP=0,function(){var e,t,n=dP,i=1/0
|
|
11005
|
+
for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:dP=t)
|
|
11006
|
+
hP=e,AP(i)}(),bP=0}}function MP(){var e=yP.now(),t=e-vP
|
|
11007
|
+
t>mP&&(wP-=t,vP=e)}function AP(e){pP||(fP&&(fP=clearTimeout(fP)),e-bP>24?(e<1/0&&(fP=setTimeout(_P,e-yP.now()-wP)),gP&&(gP=clearInterval(gP))):(gP||(vP=yP.now(),gP=setInterval(MP,mP)),pP=1,xP(_P)))}function IP(e,t,n){var i=new SP
|
|
11008
|
+
return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}SP.prototype=$P.prototype={constructor:SP,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
|
|
11009
|
+
n=(null==n?kP():+n)+(null==t?0:+t),this._next||hP===this||(hP?hP._next=this:dP=this,hP=this),this._call=e,this._time=n,AP()},stop:function(){this._call&&(this._call=null,this._time=1/0,AP())}}
|
|
11010
|
+
var EP=BF("start","end","cancel","interrupt"),OP=[],TP=0,RP=1,DP=2,FP=3,NP=4,zP=5,PP=6
|
|
11011
|
+
function VP(e,t,n,i,o,r){var s=e.__transition
|
|
11004
11012
|
if(s){if(n in s)return}else e.__transition={}
|
|
11005
11013
|
!function(e,t,n){var i,o=e.__transition
|
|
11006
|
-
function r(e){n.state=
|
|
11007
|
-
if(n.state!==
|
|
11008
|
-
for(c in o)if((u=o[c]).name===n.name){if(u.state===
|
|
11009
|
-
u.state===
|
|
11010
|
-
i.length=d+1}}function a(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=
|
|
11011
|
-
n.state===
|
|
11012
|
-
delete e.__transition}o[t]=n,n.timer
|
|
11013
|
-
if(n.state>
|
|
11014
|
-
return n}function
|
|
11015
|
-
if(n.state>
|
|
11016
|
-
return n}function
|
|
11014
|
+
function r(e){n.state=RP,n.timer.restart(s,n.delay,n.time),n.delay<=e&&s(e-n.delay)}function s(r){var c,d,h,u
|
|
11015
|
+
if(n.state!==RP)return l()
|
|
11016
|
+
for(c in o)if((u=o[c]).name===n.name){if(u.state===FP)return IP(s)
|
|
11017
|
+
u.state===NP?(u.state=PP,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=PP,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(IP((function(){n.state===FP&&(n.state=NP,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=DP,n.on.call("start",e,e.__data__,n.index,n.group),n.state===DP){for(n.state=FP,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=u)
|
|
11018
|
+
i.length=d+1}}function a(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=zP,1),r=-1,s=i.length;++r<s;)i[r].call(e,o)
|
|
11019
|
+
n.state===zP&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=PP,n.timer.stop(),delete o[t],o)return
|
|
11020
|
+
delete e.__transition}o[t]=n,n.timer=$P(r,0,n.time)}(e,n,{name:t,index:i,group:o,on:EP,tween:OP,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:TP})}function LP(e,t){var n=BP(e,t)
|
|
11021
|
+
if(n.state>TP)throw new Error("too late; already scheduled")
|
|
11022
|
+
return n}function HP(e,t){var n=BP(e,t)
|
|
11023
|
+
if(n.state>FP)throw new Error("too late; already running")
|
|
11024
|
+
return n}function BP(e,t){var n=e.__transition
|
|
11017
11025
|
if(!n||!(n=n[t]))throw new Error("transition not found")
|
|
11018
|
-
return n}function
|
|
11019
|
-
if(r){for(o in t=null==t?null:t+"",r)(n=r[o]).name===t?(i=n.state>
|
|
11020
|
-
s&&delete e.__transition}}function
|
|
11021
|
-
return function(){var o=
|
|
11026
|
+
return n}function qP(e,t){var n,i,o,r=e.__transition,s=!0
|
|
11027
|
+
if(r){for(o in t=null==t?null:t+"",r)(n=r[o]).name===t?(i=n.state>DP&&n.state<zP,n.state=PP,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]):s=!1
|
|
11028
|
+
s&&delete e.__transition}}function ZP(e,t){var n,i
|
|
11029
|
+
return function(){var o=HP(this,e),r=o.tween
|
|
11022
11030
|
if(r!==n)for(var s=0,a=(i=n=r).length;s<a;++s)if(i[s].name===t){(i=i.slice()).splice(s,1)
|
|
11023
|
-
break}o.tween=i}}function
|
|
11031
|
+
break}o.tween=i}}function jP(e,t,n){var i,o
|
|
11024
11032
|
if("function"!=typeof n)throw new Error
|
|
11025
|
-
return function(){var r=
|
|
11033
|
+
return function(){var r=HP(this,e),s=r.tween
|
|
11026
11034
|
if(s!==i){o=(i=s).slice()
|
|
11027
11035
|
for(var a={name:t,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=a
|
|
11028
|
-
break}l===c&&o.push(a)}r.tween=o}}function
|
|
11029
|
-
return e.each((function(){var e=
|
|
11030
|
-
return("number"==typeof t?
|
|
11036
|
+
break}l===c&&o.push(a)}r.tween=o}}function UP(e,t,n){var i=e._id
|
|
11037
|
+
return e.each((function(){var e=HP(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return BP(e,i).value[t]}}function WP(e,t){var n
|
|
11038
|
+
return("number"==typeof t?Kz:t instanceof _z?jz:(n=_z(t))?(t=n,jz):Qz)(e,t)}function GP(e){return function(){this.removeAttribute(e)}}function KP(e){return function(){this.removeAttributeNS(e.space,e.local)}}function JP(e,t,n){var i,o,r=n+""
|
|
11031
11039
|
return function(){var s=this.getAttribute(e)
|
|
11032
|
-
return s===r?null:s===i?o:o=t(i=s,n)}}function
|
|
11040
|
+
return s===r?null:s===i?o:o=t(i=s,n)}}function XP(e,t,n){var i,o,r=n+""
|
|
11033
11041
|
return function(){var s=this.getAttributeNS(e.space,e.local)
|
|
11034
|
-
return s===r?null:s===i?o:o=t(i=s,n)}}function
|
|
11042
|
+
return s===r?null:s===i?o:o=t(i=s,n)}}function YP(e,t,n){var i,o,r
|
|
11035
11043
|
return function(){var s,a,l=n(this)
|
|
11036
11044
|
if(null!=l)return(s=this.getAttribute(e))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=t(i=s,l))
|
|
11037
|
-
this.removeAttribute(e)}}function
|
|
11045
|
+
this.removeAttribute(e)}}function QP(e,t,n){var i,o,r
|
|
11038
11046
|
return function(){var s,a,l=n(this)
|
|
11039
11047
|
if(null!=l)return(s=this.getAttributeNS(e.space,e.local))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=t(i=s,l))
|
|
11040
|
-
this.removeAttributeNS(e.space,e.local)}}function
|
|
11048
|
+
this.removeAttributeNS(e.space,e.local)}}function eV(e,t){var n,i
|
|
11041
11049
|
function o(){var o=t.apply(this,arguments)
|
|
11042
|
-
return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function
|
|
11050
|
+
return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function tV(e,t){var n,i
|
|
11043
11051
|
function o(){var o=t.apply(this,arguments)
|
|
11044
|
-
return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function
|
|
11045
|
-
function
|
|
11046
|
-
function
|
|
11047
|
-
|
|
11048
|
-
"function"!=typeof e&&(e=XF(e))
|
|
11049
|
-
for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a,l,c=i[s],d=c.length,h=r[s]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,zP(h[u],t,n,u,h,LP(a,n)))
|
|
11050
|
-
return new aV(r,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
|
|
11052
|
+
return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function nV(e,t){return function(){LP(this,e).delay=+t.apply(this,arguments)}}function iV(e,t){return t=+t,function(){LP(this,e).delay=t}}function oV(e,t){return function(){HP(this,e).duration=+t.apply(this,arguments)}}function rV(e,t){return t=+t,function(){HP(this,e).duration=t}}var sV=iz.prototype.constructor
|
|
11053
|
+
function aV(e){return function(){this.style.removeProperty(e)}}var lV=0
|
|
11054
|
+
function cV(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function dV(){return++lV}var hV=iz.prototype
|
|
11055
|
+
cV.prototype={constructor:cV,select:function(e){var t=this._name,n=this._id
|
|
11051
11056
|
"function"!=typeof e&&(e=QF(e))
|
|
11052
|
-
for(var i=this._groups,o=i.length,r=
|
|
11053
|
-
|
|
11057
|
+
for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a,l,c=i[s],d=c.length,h=r[s]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,VP(h[u],t,n,u,h,BP(a,n)))
|
|
11058
|
+
return new cV(r,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
|
|
11059
|
+
"function"!=typeof e&&(e=tN(e))
|
|
11060
|
+
for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),f=BP(l,n),g=0,m=p.length;g<m;++g)(u=p[g])&&VP(u,t,n,g,p,f)
|
|
11061
|
+
r.push(p),s.push(l)}return new cV(r,s,t,n)},selectChild:hV.selectChild,selectChildren:hV.selectChildren,filter:function(e){"function"!=typeof e&&(e=iN(e))
|
|
11054
11062
|
for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s=t[o],a=s.length,l=i[o]=[],c=0;c<a;++c)(r=s[c])&&e.call(r,r.__data__,c,s)&&l.push(r)
|
|
11055
|
-
return new
|
|
11063
|
+
return new cV(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
|
|
11056
11064
|
for(var t=this._groups,n=e._groups,i=t.length,o=n.length,r=Math.min(i,o),s=new Array(i),a=0;a<r;++a)for(var l,c=t[a],d=n[a],h=c.length,u=s[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
|
|
11057
11065
|
for(;a<i;++a)s[a]=t[a]
|
|
11058
|
-
return new
|
|
11059
|
-
|
|
11060
|
-
return arguments.length<2?
|
|
11061
|
-
return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?
|
|
11066
|
+
return new cV(s,this._parents,this._name,this._id)},selection:function(){return new sV(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=dV(),i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)if(s=a[c]){var d=BP(s,t)
|
|
11067
|
+
VP(s,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new cV(i,this._parents,e,n)},call:hV.call,nodes:hV.nodes,node:hV.node,size:hV.size,empty:hV.empty,each:hV.each,on:function(e,t){var n=this._id
|
|
11068
|
+
return arguments.length<2?BP(this.node(),n).on.on(e):this.each(function(e,t,n){var i,o,r=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
|
|
11069
|
+
return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?LP:HP
|
|
11062
11070
|
return function(){var s=r(this,e),a=s.on
|
|
11063
|
-
a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}(n,e,t))},attr:function(e,t){var n=
|
|
11064
|
-
return this.attrTween(e,"function"==typeof t?(n.local?
|
|
11071
|
+
a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}(n,e,t))},attr:function(e,t){var n=GF(e),i="transform"===n?lP:WP
|
|
11072
|
+
return this.attrTween(e,"function"==typeof t?(n.local?QP:YP)(n,i,UP(this,"attr."+e,t)):null==t?(n.local?KP:GP)(n):(n.local?XP:JP)(n,i,t))},attrTween:function(e,t){var n="attr."+e
|
|
11065
11073
|
if(arguments.length<2)return(n=this.tween(n))&&n._value
|
|
11066
11074
|
if(null==t)return this.tween(n,null)
|
|
11067
11075
|
if("function"!=typeof t)throw new Error
|
|
11068
|
-
var i=
|
|
11069
|
-
return this.tween(n,(i.local?
|
|
11076
|
+
var i=GF(e)
|
|
11077
|
+
return this.tween(n,(i.local?eV:tV)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?aP:WP
|
|
11070
11078
|
return null==t?this.styleTween(e,function(e,t){var n,i,o
|
|
11071
|
-
return function(){var r=
|
|
11072
|
-
return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}(e,i)).on("end.style."+e,
|
|
11073
|
-
return function(){var s=
|
|
11074
|
-
return null==a&&(this.style.removeProperty(e),l=a=
|
|
11075
|
-
return function(){var l=
|
|
11079
|
+
return function(){var r=_N(this,e),s=(this.style.removeProperty(e),_N(this,e))
|
|
11080
|
+
return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}(e,i)).on("end.style."+e,aV(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,r
|
|
11081
|
+
return function(){var s=_N(this,e),a=n(this),l=a+""
|
|
11082
|
+
return null==a&&(this.style.removeProperty(e),l=a=_N(this,e)),s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a))}}(e,i,UP(this,"style."+e,t))).each(function(e,t){var n,i,o,r,s="style."+t,a="end."+s
|
|
11083
|
+
return function(){var l=HP(this,e),c=l.on,d=null==l.value[s]?r||(r=aV(t)):void 0
|
|
11076
11084
|
c===n&&o===d||(i=(n=c).copy()).on(a,o=d),l.on=i}}(this._id,e)):this.styleTween(e,function(e,t,n){var i,o,r=n+""
|
|
11077
|
-
return function(){var s=
|
|
11085
|
+
return function(){var s=_N(this,e)
|
|
11078
11086
|
return s===r?null:s===i?o:o=t(i=s,n)}}(e,i,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var i="style."+(e+="")
|
|
11079
11087
|
if(arguments.length<2)return(i=this.tween(i))&&i._value
|
|
11080
11088
|
if(null==t)return this.tween(i,null)
|
|
@@ -11082,7 +11090,7 @@ if("function"!=typeof t)throw new Error
|
|
|
11082
11090
|
return this.tween(i,function(e,t,n){var i,o
|
|
11083
11091
|
function r(){var r=t.apply(this,arguments)
|
|
11084
11092
|
return r!==o&&(i=(o=r)&&function(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}(e,r,n)),i}return r._value=t,r}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
|
|
11085
|
-
this.textContent=null==t?"":t}}(
|
|
11093
|
+
this.textContent=null==t?"":t}}(UP(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
|
|
11086
11094
|
if(arguments.length<1)return(t=this.tween(t))&&t._value
|
|
11087
11095
|
if(null==e)return this.tween(t,null)
|
|
11088
11096
|
if("function"!=typeof e)throw new Error
|
|
@@ -11091,60 +11099,60 @@ function i(){var i=e.apply(this,arguments)
|
|
|
11091
11099
|
return i!==n&&(t=(n=i)&&function(e){return function(t){this.textContent=e.call(this,t)}}(i)),t}return i._value=e,i}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
|
|
11092
11100
|
for(var n in this.__transition)if(+n!==e)return
|
|
11093
11101
|
t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id
|
|
11094
|
-
if(e+="",arguments.length<2){for(var i,o=
|
|
11095
|
-
return null}return this.each((null==t?
|
|
11096
|
-
return arguments.length?this.each(("function"==typeof e?
|
|
11097
|
-
return arguments.length?this.each(("function"==typeof e?
|
|
11102
|
+
if(e+="",arguments.length<2){for(var i,o=BP(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===e)return i.value
|
|
11103
|
+
return null}return this.each((null==t?ZP:jP)(n,e,t))},delay:function(e){var t=this._id
|
|
11104
|
+
return arguments.length?this.each(("function"==typeof e?nV:iV)(t,e)):BP(this.node(),t).delay},duration:function(e){var t=this._id
|
|
11105
|
+
return arguments.length?this.each(("function"==typeof e?oV:rV)(t,e)):BP(this.node(),t).duration},ease:function(e){var t=this._id
|
|
11098
11106
|
return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error
|
|
11099
|
-
return function(){
|
|
11107
|
+
return function(){HP(this,e).ease=t}}(t,e)):BP(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
|
|
11100
11108
|
return this.each(function(e,t){return function(){var n=t.apply(this,arguments)
|
|
11101
11109
|
if("function"!=typeof n)throw new Error
|
|
11102
|
-
|
|
11110
|
+
HP(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
|
|
11103
11111
|
return new Promise((function(r,s){var a={value:s},l={value:function(){0==--o&&r()}}
|
|
11104
|
-
n.each((function(){var n=
|
|
11105
|
-
o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t})),0===o&&r()}))},[Symbol.iterator]:
|
|
11106
|
-
var
|
|
11107
|
-
function
|
|
11108
|
-
return n}
|
|
11109
|
-
e instanceof
|
|
11110
|
-
for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)(s=a[c])&&
|
|
11111
|
-
return new
|
|
11112
|
-
var
|
|
11113
|
-
function
|
|
11114
|
-
var
|
|
11115
|
-
function
|
|
11116
|
-
return e.__zoom}function
|
|
11117
|
-
return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function
|
|
11118
|
-
return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function
|
|
11119
|
-
function v(e){e.property("__zoom",
|
|
11120
|
-
return i===e.x&&o===e.y?e:new
|
|
11112
|
+
n.each((function(){var n=HP(this,i),o=n.on
|
|
11113
|
+
o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t})),0===o&&r()}))},[Symbol.iterator]:hV[Symbol.iterator]}
|
|
11114
|
+
var uV={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
|
|
11115
|
+
function pV(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
|
|
11116
|
+
return n}iz.prototype.interrupt=function(e){return this.each((function(){qP(this,e)}))},iz.prototype.transition=function(e){var t,n
|
|
11117
|
+
e instanceof cV?(t=e._id,e=e._name):(t=dV(),(n=uV).time=kP(),e=null==e?null:e+"")
|
|
11118
|
+
for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)(s=a[c])&&VP(s,e,t,c,a,n||pV(s,t))
|
|
11119
|
+
return new cV(i,this._parents,e,t)}
|
|
11120
|
+
var fV=e=>()=>e
|
|
11121
|
+
function gV(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function mV(e,t,n){this.k=e,this.x=t,this.y=n}mV.prototype={constructor:mV,scale:function(e){return 1===e?this:new mV(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new mV(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
|
|
11122
|
+
var vV=new mV(1,0,0)
|
|
11123
|
+
function bV(e){for(;!e.__zoom;)if(!(e=e.parentNode))return vV
|
|
11124
|
+
return e.__zoom}function wV(e){e.stopImmediatePropagation()}function yV(e){e.preventDefault(),e.stopImmediatePropagation()}function xV(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function kV(){var e=this
|
|
11125
|
+
return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function CV(){return this.__zoom||vV}function SV(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function $V(){return navigator.maxTouchPoints||"ontouchstart"in this}function _V(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1]
|
|
11126
|
+
return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function MV(){var e,t,n,i=xV,o=kV,r=_V,s=SV,a=$V,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=uP,u=BF("start","zoom","end"),p=500,f=150,g=0,m=10
|
|
11127
|
+
function v(e){e.property("__zoom",CV).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",_).filter(a).on("touchstart.zoom",M).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new mV(t,e.x,e.y)}function w(e,t,n){var i=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k
|
|
11128
|
+
return i===e.x&&o===e.y?e:new mV(e.k,i,o)}function y(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,n,i){e.on("start.zoom",(function(){k(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){k(this,arguments).event(i).end()})).tween("zoom",(function(){var e=this,r=arguments,s=k(e,r).event(i),a=o.apply(e,r),l=null==n?y(a):"function"==typeof n?n.apply(e,r):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,r):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
|
|
11121
11129
|
return function(e){if(1===e)e=u
|
|
11122
11130
|
else{var t=p(e),n=c/t[2]
|
|
11123
|
-
e=new
|
|
11131
|
+
e=new mV(n,l[0]-t[0]*n,l[1]-t[1]*n)}s.zoom(null,e)}}))}function k(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function S(e,...t){if(i.apply(this,arguments)){var n=k(this,t).event(e),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,s.apply(this,arguments)))),d=rz(e)
|
|
11124
11132
|
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)
|
|
11125
11133
|
else{if(o.k===a)return
|
|
11126
|
-
n.mouse=[d,o.invert(d)],
|
|
11127
|
-
s.moved=t*t+n*n>g}s.event(e).zoom("mouse",r(w(s.that.__zoom,s.mouse[0]=
|
|
11128
|
-
t&&(i.on("click.drag",
|
|
11129
|
-
!function(e){var t=e.document.documentElement,n=
|
|
11130
|
-
"onselectstart"in t?n.on("selectstart.drag",
|
|
11131
|
-
|
|
11132
|
-
for(
|
|
11133
|
-
e&&(e=clearTimeout(e)),r&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),
|
|
11134
|
-
for(
|
|
11134
|
+
n.mouse=[d,o.invert(d)],qP(this),n.start()}yV(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",r(w(b(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function $(e,...t){if(!n&&i.apply(this,arguments)){var o=e.currentTarget,s=k(this,t,!0).event(e),a=oz(e.view).on("mousemove.zoom",(function(e){if(yV(e),!s.moved){var t=e.clientX-d,n=e.clientY-h
|
|
11135
|
+
s.moved=t*t+n*n>g}s.event(e).zoom("mouse",r(w(s.that.__zoom,s.mouse[0]=rz(e,o),s.mouse[1]),s.extent,c))}),!0).on("mouseup.zoom",(function(e){a.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,i=oz(e).on("dragstart.drag",null)
|
|
11136
|
+
t&&(i.on("click.drag",az,sz),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,s.moved),yV(e),s.event(e).end()}),!0),l=rz(e,o),d=e.clientX,h=e.clientY
|
|
11137
|
+
!function(e){var t=e.document.documentElement,n=oz(e).on("dragstart.drag",az,sz)
|
|
11138
|
+
"onselectstart"in t?n.on("selectstart.drag",az,sz):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),wV(e),s.mouse=[l,this.__zoom.invert(l)],qP(this),s.start()}}function _(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,s=rz(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(s),l=n.k*(e.shiftKey?.5:2),h=r(w(b(n,l),s,a),o.apply(this,t),c)
|
|
11139
|
+
yV(e),d>0?oz(this).transition().duration(d).call(x,h,s,e):oz(this).call(v.transform,h,s,e)}}function M(n,...o){if(i.apply(this,arguments)){var r,s,a,l,c=n.touches,d=c.length,h=k(this,o,n.changedTouches.length===d).event(n)
|
|
11140
|
+
for(wV(n),s=0;s<d;++s)l=[l=rz(a=c[s],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,r=!0,h.taps=1+!!e)
|
|
11141
|
+
e&&(e=clearTimeout(e)),r&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),qP(this),h.start())}}function A(e,...t){if(this.__zooming){var n,i,o,s,a=k(this,t).event(e),l=e.changedTouches,d=l.length
|
|
11142
|
+
for(yV(e),n=0;n<d;++n)o=rz(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)
|
|
11135
11143
|
if(i=a.that.__zoom,a.touch1){var h=a.touch0[0],u=a.touch0[1],p=a.touch1[0],f=a.touch1[1],g=(g=p[0]-h[0])*g+(g=p[1]-h[1])*g,m=(m=f[0]-u[0])*m+(m=f[1]-u[1])*m
|
|
11136
11144
|
i=b(i,Math.sqrt(g/m)),o=[(h[0]+p[0])/2,(h[1]+p[1])/2],s=[(u[0]+f[0])/2,(u[1]+f[1])/2]}else{if(!a.touch0)return
|
|
11137
11145
|
o=a.touch0[0],s=a.touch0[1]}a.zoom("touch",r(w(i,o,s),a.extent,c))}}function I(e,...i){if(this.__zooming){var o,r,s=k(this,i).event(e),a=e.changedTouches,l=a.length
|
|
11138
|
-
for(
|
|
11146
|
+
for(wV(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<l;++o)r=a[o],s.touch0&&s.touch0[2]===r.identifier?delete s.touch0:s.touch1&&s.touch1[2]===r.identifier&&delete s.touch1
|
|
11139
11147
|
if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0])
|
|
11140
|
-
else if(s.end(),2===s.taps&&(r=
|
|
11148
|
+
else if(s.end(),2===s.taps&&(r=rz(r,this),Math.hypot(t[0]-r[0],t[1]-r[1])<m)){var c=oz(this).on("dblclick.zoom")
|
|
11141
11149
|
c&&c.apply(this,arguments)}}}return v.transform=function(e,t,n,i){var o=e.selection?e.selection():e
|
|
11142
|
-
o.property("__zoom",
|
|
11150
|
+
o.property("__zoom",CV),e!==o?x(e,t,n,i):o.interrupt().each((function(){k(this,arguments).event(i).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,i){v.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,i)},v.scaleTo=function(e,t,n,i){v.transform(e,(function(){var e=o.apply(this,arguments),i=this.__zoom,s=null==n?y(e):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(s),l="function"==typeof t?t.apply(this,arguments):t
|
|
11143
11151
|
return r(w(b(i,l),s,a),e,c)}),n,i)},v.translateBy=function(e,t,n,i){v.transform(e,(function(){return r(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,i)},v.translateTo=function(e,t,n,i,s){v.transform(e,(function(){var e=o.apply(this,arguments),s=this.__zoom,a=null==i?y(e):"function"==typeof i?i.apply(this,arguments):i
|
|
11144
|
-
return r(
|
|
11145
|
-
u.call(e,this.that,new
|
|
11146
|
-
return e===u?v:e},v.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,v):Math.sqrt(g)},v.tapDistance=function(e){return arguments.length?(m=+e,v):m},v}
|
|
11147
|
-
const
|
|
11152
|
+
return r(vV.translate(a[0],a[1]).scale(s.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)}),i,s)},C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=oz(this.that).datum()
|
|
11153
|
+
u.call(e,this.that,new gV(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:u}),t)}},v.wheelDelta=function(e){return arguments.length?(s="function"==typeof e?e:fV(+e),v):s},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:fV(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:fV(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:fV([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):o},v.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],v):[l[0],l[1]]},v.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(r=e,v):r},v.duration=function(e){return arguments.length?(d=+e,v):d},v.interpolate=function(e){return arguments.length?(h=e,v):h},v.on=function(){var e=u.on.apply(u,arguments)
|
|
11154
|
+
return e===u?v:e},v.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,v):Math.sqrt(g)},v.tapDistance=function(e){return arguments.length?(m=+e,v):m},v}bV.prototype=mV.prototype
|
|
11155
|
+
const AV=W`
|
|
11148
11156
|
<div class="wafer-map-container">
|
|
11149
11157
|
<svg class="svg-root">
|
|
11150
11158
|
<g ${De("zoomContainer")} transform=${e=>e.transform.toString()}>
|
|
@@ -11174,7 +11182,7 @@ const _V=W`
|
|
|
11174
11182
|
/>
|
|
11175
11183
|
</svg>
|
|
11176
11184
|
</div>
|
|
11177
|
-
`,
|
|
11185
|
+
`,IV=we`
|
|
11178
11186
|
:host {
|
|
11179
11187
|
display: inline-block;
|
|
11180
11188
|
width: 500px;
|
|
@@ -11258,68 +11266,68 @@ const _V=W`
|
|
|
11258
11266
|
outline-width: 0px;
|
|
11259
11267
|
}
|
|
11260
11268
|
`
|
|
11261
|
-
function
|
|
11269
|
+
function EV(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function OV(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function TV(e){let t,n,i
|
|
11262
11270
|
function o(e,i,o=0,r=e.length){if(o<r){if(0!==t(i,i))return r
|
|
11263
11271
|
do{const t=o+r>>>1
|
|
11264
|
-
n(e[t],i)<0?o=t+1:r=t}while(o<r)}return o}return 2!==e.length?(t=
|
|
11272
|
+
n(e[t],i)<0?o=t+1:r=t}while(o<r)}return o}return 2!==e.length?(t=EV,n=(t,n)=>EV(e(t),n),i=(t,n)=>e(t)-n):(t=e===EV||e===OV?e:RV,n=e,i=e),{left:o,center:function(e,t,n=0,r=e.length){const s=o(e,t,n,r-1)
|
|
11265
11273
|
return s>n&&i(e[s-1],t)>-i(e[s],t)?s-1:s},right:function(e,i,o=0,r=e.length){if(o<r){if(0!==t(i,i))return r
|
|
11266
11274
|
do{const t=o+r>>>1
|
|
11267
|
-
n(e[t],i)<=0?o=t+1:r=t}while(o<r)}return o}}}function
|
|
11268
|
-
|
|
11269
|
-
var
|
|
11270
|
-
class
|
|
11275
|
+
n(e[t],i)<=0?o=t+1:r=t}while(o<r)}return o}}}function RV(){return 0}function DV(e){return null===e?NaN:+e}const FV=TV(EV).right
|
|
11276
|
+
TV(DV).center
|
|
11277
|
+
var NV=FV
|
|
11278
|
+
class zV extends Map{constructor(e,t=VV){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(PV(this,e))}has(e){return super.has(PV(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
|
|
11271
11279
|
return e.has(i)?e.get(i):(e.set(i,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const i=t(n)
|
|
11272
11280
|
e.has(i)&&(n=e.get(i),e.delete(i))
|
|
11273
|
-
return n}(this,e))}}function
|
|
11274
|
-
return e.has(i)?e.get(i):n}function
|
|
11275
|
-
function
|
|
11281
|
+
return n}(this,e))}}function PV({_intern:e,_key:t},n){const i=t(n)
|
|
11282
|
+
return e.has(i)?e.get(i):n}function VV(e){return null!==e&&"object"==typeof e?e.valueOf():e}const LV=Math.sqrt(50),HV=Math.sqrt(10),BV=Math.sqrt(2)
|
|
11283
|
+
function qV(e,t,n){const i=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(i)),r=i/Math.pow(10,o),s=r>=LV?10:r>=HV?5:r>=BV?2:1
|
|
11276
11284
|
let a,l,c
|
|
11277
|
-
return o<0?(c=Math.pow(10,-o)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?
|
|
11285
|
+
return o<0?(c=Math.pow(10,-o)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?qV(e,t,2*n):[a,l,c]}function ZV(e,t,n){return qV(e=+e,t=+t,n=+n)[2]}function jV(e,t,n=DV){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
|
|
11278
11286
|
if(t>=1)return+n(e[i-1],i-1,e)
|
|
11279
11287
|
var i,o=(i-1)*t,r=Math.floor(o),s=+n(e[r],r,e)
|
|
11280
|
-
return s+(+n(e[r+1],r+1,e)-s)*(o-r)}}function
|
|
11288
|
+
return s+(+n(e[r+1],r+1,e)-s)*(o-r)}}function UV(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
|
|
11281
11289
|
for(var i=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),r=new Array(o);++i<o;)r[i]=e+i*n
|
|
11282
|
-
return r}function
|
|
11290
|
+
return r}function WV(e,t){switch(arguments.length){case 0:break
|
|
11283
11291
|
case 1:this.range(e)
|
|
11284
11292
|
break
|
|
11285
|
-
default:this.range(t).domain(e)}return this}const
|
|
11286
|
-
function
|
|
11293
|
+
default:this.range(t).domain(e)}return this}const GV=Symbol("implicit")
|
|
11294
|
+
function KV(){var e=new zV,t=[],n=[],i=GV
|
|
11287
11295
|
function o(o){let r=e.get(o)
|
|
11288
|
-
if(void 0===r){if(i!==
|
|
11296
|
+
if(void 0===r){if(i!==GV)return i
|
|
11289
11297
|
e.set(o,r=t.push(o)-1)}return n[r%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice()
|
|
11290
|
-
t=[],e=new
|
|
11298
|
+
t=[],e=new zV
|
|
11291
11299
|
for(const i of n)e.has(i)||e.set(i,t.push(i)-1)
|
|
11292
|
-
return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return
|
|
11300
|
+
return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return KV(t,n).unknown(i)},WV.apply(o,arguments),o}function JV(){var e,t,n=KV().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
|
|
11293
11301
|
function h(){var n=i().length,h=s<r,u=h?s:r,p=h?r:s
|
|
11294
11302
|
e=(p-u)/Math.max(1,n-l+2*c),a&&(e=Math.floor(e)),u+=(p-u-e*(n-l))*d,t=e*(1-l),a&&(u=Math.round(u),t=Math.round(t))
|
|
11295
|
-
var f=
|
|
11296
|
-
return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),h()):i()},n.range=function(e){return arguments.length?([r,s]=e,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(e){return[r,s]=e,r=+r,s=+s,a=!0,h()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,h()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},n.copy=function(){return
|
|
11297
|
-
function
|
|
11298
|
-
var n}function
|
|
11299
|
-
return o<i?(i=
|
|
11300
|
-
for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=
|
|
11301
|
-
return function(t){var n=
|
|
11302
|
-
return r[n](o[n](t))}}function
|
|
11303
|
+
var f=UV(n).map((function(t){return u+e*t}))
|
|
11304
|
+
return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),h()):i()},n.range=function(e){return arguments.length?([r,s]=e,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(e){return[r,s]=e,r=+r,s=+s,a=!0,h()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,h()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},n.copy=function(){return JV(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},WV.apply(h(),arguments)}function XV(e){return+e}var YV=[0,1]
|
|
11305
|
+
function QV(e){return e}function eL(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
|
|
11306
|
+
var n}function tL(e,t,n){var i=e[0],o=e[1],r=t[0],s=t[1]
|
|
11307
|
+
return o<i?(i=eL(o,i),r=n(s,r)):(i=eL(i,o),r=n(r,s)),function(e){return r(i(e))}}function nL(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),r=new Array(i),s=-1
|
|
11308
|
+
for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=eL(e[s],e[s+1]),r[s]=n(t[s],t[s+1])
|
|
11309
|
+
return function(t){var n=NV(e,t,1,i)-1
|
|
11310
|
+
return r[n](o[n](t))}}function iL(){var e,t,n,i,o,r,s=YV,a=YV,l=eP,c=QV
|
|
11303
11311
|
function d(){var e,t,n,l=Math.min(s.length,a.length)
|
|
11304
|
-
return c!==
|
|
11312
|
+
return c!==QV&&(e=s[0],t=s[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),i=l>2?nL:tL,o=r=null,h}function h(t){return null==t||isNaN(t=+t)?n:(o||(o=i(s.map(e),a,l)))(e(c(t)))}return h.invert=function(n){return c(t((r||(r=i(a,s.map(e),Kz)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,XV),d()):s.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=tP,d()},h.clamp=function(e){return arguments.length?(c=!!e||QV,d()):c!==QV},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,i){return e=n,t=i,d()}}function oL(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
|
|
11305
11313
|
var n,i=e.slice(0,n)
|
|
11306
|
-
return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function
|
|
11307
|
-
function
|
|
11314
|
+
return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function rL(e){return(e=oL(Math.abs(e)))?e[1]:NaN}var sL,aL=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
|
|
11315
|
+
function lL(e){if(!(t=aL.exec(e)))throw new Error("invalid format: "+e)
|
|
11308
11316
|
var t
|
|
11309
|
-
return new
|
|
11317
|
+
return new cL({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function cL(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function dL(e,t){var n=oL(e,t)
|
|
11310
11318
|
if(!n)return e+""
|
|
11311
11319
|
var i=n[0],o=n[1]
|
|
11312
|
-
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")}
|
|
11313
|
-
var
|
|
11320
|
+
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")}lL.prototype=cL.prototype,cL.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}
|
|
11321
|
+
var hL={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>dL(100*e,t),r:dL,s:function(e,t){var n=oL(e,t)
|
|
11314
11322
|
if(!n)return e+""
|
|
11315
|
-
var i=n[0],o=n[1],r=o-(
|
|
11316
|
-
return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+
|
|
11317
|
-
function
|
|
11318
|
-
function
|
|
11319
|
-
return r.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?
|
|
11320
|
-
function h(e){var t=(e=
|
|
11321
|
-
"n"===b?(g=!0,b="g"):
|
|
11322
|
-
var w="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===u?r:/[%p]/.test(b)?l:"",x=
|
|
11323
|
+
var i=n[0],o=n[1],r=o-(sL=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
|
|
11324
|
+
return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+oL(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
|
|
11325
|
+
function uL(e){return e}var pL,fL,gL,mL=Array.prototype.map,vL=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
|
|
11326
|
+
function bL(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?uL:(t=mL.call(e.grouping,Number),n=e.thousands+"",function(e,i){for(var o=e.length,r=[],s=0,a=t[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(e.substring(o-=a,o+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length]
|
|
11327
|
+
return r.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?uL:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(mL.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+""
|
|
11328
|
+
function h(e){var t=(e=lL(e)).fill,n=e.align,h=e.sign,u=e.symbol,p=e.zero,f=e.width,g=e.comma,m=e.precision,v=e.trim,b=e.type
|
|
11329
|
+
"n"===b?(g=!0,b="g"):hL[b]||(void 0===m&&(m=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
|
|
11330
|
+
var w="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===u?r:/[%p]/.test(b)?l:"",x=hL[b],k=/[defgprs%]/.test(b)
|
|
11323
11331
|
function C(e){var o,r,l,u=w,C=y
|
|
11324
11332
|
if("c"===b)C=x(e)+C,e=""
|
|
11325
11333
|
else{var S=(e=+e)<0||1/e<0
|
|
@@ -11328,7 +11336,7 @@ break
|
|
|
11328
11336
|
case"0":0===o&&(o=i),t=i
|
|
11329
11337
|
break
|
|
11330
11338
|
default:if(!+e[i])break e
|
|
11331
|
-
o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?
|
|
11339
|
+
o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?vL[8+sL/3]:"")+C+(S&&"("===h?")":""),k)for(o=-1,r=e.length;++o<r;)if(48>(l=e.charCodeAt(o))||l>57){C=(46===l?s+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o)
|
|
11332
11340
|
break}}g&&!p&&(e=i(e,1/0))
|
|
11333
11341
|
var $=u.length+e.length+C.length,_=$<f?new Array(f-$+1).join(t):""
|
|
11334
11342
|
switch(g&&p&&(e=i(_+e,_.length?f-C.length:1/0),_=""),n){case"<":e=u+e+C+_
|
|
@@ -11337,19 +11345,19 @@ case"=":e=u+_+e+C
|
|
|
11337
11345
|
break
|
|
11338
11346
|
case"^":e=_.slice(0,$=_.length>>1)+u+e+C+_.slice($)
|
|
11339
11347
|
break
|
|
11340
|
-
default:e=_+u+e+C}return a(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var n=h(((e=
|
|
11341
|
-
return function(e){return n(o*e)+r}}}}function
|
|
11342
|
-
const i=(t=+t)<(e=+e),o=i?
|
|
11348
|
+
default:e=_+u+e+C}return a(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var n=h(((e=lL(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(rL(t)/3))),o=Math.pow(10,-i),r=vL[8+i/3]
|
|
11349
|
+
return function(e){return n(o*e)+r}}}}function wL(e,t,n,i){var o,r=function(e,t,n){n=+n
|
|
11350
|
+
const i=(t=+t)<(e=+e),o=i?ZV(t,e,n):ZV(e,t,n)
|
|
11343
11351
|
return(i?-1:1)*(o<0?1/-o:o)}(e,t,n)
|
|
11344
|
-
switch((i=
|
|
11345
|
-
return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(
|
|
11346
|
-
case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,
|
|
11352
|
+
switch((i=lL(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t))
|
|
11353
|
+
return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(rL(t)/3)))-rL(Math.abs(e)))}(r,s))||(i.precision=o),gL(i,s)
|
|
11354
|
+
case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,rL(t)-rL(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
|
|
11347
11355
|
break
|
|
11348
|
-
case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-
|
|
11356
|
+
case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-rL(Math.abs(e)))}(r))||(i.precision=o-2*("%"===i.type))}return fL(i)}function yL(e){var t=e.domain
|
|
11349
11357
|
return e.ticks=function(e){var n=t()
|
|
11350
11358
|
return function(e,t,n){if(!((n=+n)>0))return[]
|
|
11351
11359
|
if((e=+e)==(t=+t))return[e]
|
|
11352
|
-
const i=t<e,[o,r,s]=i?
|
|
11360
|
+
const i=t<e,[o,r,s]=i?qV(t,e,n):qV(e,t,n)
|
|
11353
11361
|
if(!(r>=o))return[]
|
|
11354
11362
|
const a=r-o+1,l=new Array(a)
|
|
11355
11363
|
if(i)if(s<0)for(let e=0;e<a;++e)l[e]=(r-e)/-s
|
|
@@ -11357,42 +11365,42 @@ else for(let e=0;e<a;++e)l[e]=(r-e)*s
|
|
|
11357
11365
|
else if(s<0)for(let e=0;e<a;++e)l[e]=(o+e)/-s
|
|
11358
11366
|
else for(let e=0;e<a;++e)l[e]=(o+e)*s
|
|
11359
11367
|
return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var i=t()
|
|
11360
|
-
return
|
|
11368
|
+
return wL(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
|
|
11361
11369
|
var i,o,r=t(),s=0,a=r.length-1,l=r[s],c=r[a],d=10
|
|
11362
|
-
for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=
|
|
11370
|
+
for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=ZV(l,c,n))===i)return r[s]=l,r[a]=c,t(r)
|
|
11363
11371
|
if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
|
|
11364
11372
|
else{if(!(o<0))break
|
|
11365
|
-
l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function
|
|
11366
|
-
return e.copy=function(){return function(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}(e,
|
|
11373
|
+
l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function xL(){var e=iL()(QV,QV)
|
|
11374
|
+
return e.copy=function(){return function(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}(e,xL())},WV.apply(e,arguments),yL(e)}function kL(){var e,t=[],n=[],i=[]
|
|
11367
11375
|
function o(){var e=0,o=Math.max(1,n.length)
|
|
11368
|
-
for(i=new Array(o-1);++e<o;)i[e-1]=
|
|
11369
|
-
return r}function r(t){return null==t||isNaN(t=+t)?e:n[
|
|
11376
|
+
for(i=new Array(o-1);++e<o;)i[e-1]=jV(t,e/o)
|
|
11377
|
+
return r}function r(t){return null==t||isNaN(t=+t)?e:n[NV(i,t)]}return r.invertExtent=function(e){var o=n.indexOf(e)
|
|
11370
11378
|
return o<0?[NaN,NaN]:[o>0?i[o-1]:t[0],o<i.length?i[o]:t[t.length-1]]},r.domain=function(e){if(!arguments.length)return t.slice()
|
|
11371
11379
|
t=[]
|
|
11372
11380
|
for(let n of e)null==n||isNaN(n=+n)||t.push(n)
|
|
11373
|
-
return t.sort(
|
|
11374
|
-
const
|
|
11375
|
-
class
|
|
11381
|
+
return t.sort(EV),o()},r.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.quantiles=function(){return i.slice()},r.copy=function(){return kL().domain(t).range(n).unknown(e)},WV.apply(r,arguments)}pL=bL({thousands:",",grouping:[3],currency:["$",""]}),fL=pL.format,gL=pL.formatPrefix
|
|
11382
|
+
const CL="bottom-left",SL="bottom-right",$L="top-left",_L="top-right",ML="top",AL="show",IL="hide",EL="linear",OL="ordinal"
|
|
11383
|
+
class TL{constructor(e){this.wafermap=e,this.defaultPadding=0,this.baseMarginPercentage=.04}get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get radius(){return this._radius}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get invertedHorizontalScale(){return this._invertedHorizontalScale}get invertedVerticalScale(){return this._invertedVerticalScale}updateContainerDimensions(){const e={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},t=Math.min(e.width,e.height),n={top:(e.height-t)/2,right:(e.width-t)/2,bottom:(e.height-t)/2,left:(e.width-t)/2},i={top:t*this.baseMarginPercentage,right:t*this.baseMarginPercentage,bottom:t*this.baseMarginPercentage,left:t*this.baseMarginPercentage}
|
|
11376
11384
|
this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(e,this._margin)
|
|
11377
11385
|
const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
|
|
11378
11386
|
this._radius=o/2,this.updateScales()}updateScales(){const e=Math.min(this._containerDimensions.width,this._containerDimensions.height),t=this.calculateGridDimensions(this.wafermap.dies),n=this.wafermap.quadrant
|
|
11379
11387
|
this._horizontalScale=this.createHorizontalScale(n,t,e),this._invertedHorizontalScale=this.createInvertedHorizontalScale(n,t,e),this._verticalScale=this.createVerticalScale(n,t,e),this._invertedVerticalScale=this.createInvertedVerticalScale(n,t,e),this._dieDimensions={width:this.horizontalScale.bandwidth(),height:this.verticalScale.bandwidth()}}calculateGridDimensions(e){if(0===e.length||void 0===e[0])return{origin:{x:0,y:0},rows:0,cols:0}
|
|
11380
11388
|
const t={x:e[0].x,y:e[0].y},n={x:e[0].x,y:e[0].y}
|
|
11381
11389
|
for(const i of e)i.x<t.x&&(t.x=i.x),i.y<t.y&&(t.y=i.y),i.x>n.x&&(n.x=i.x),i.y>n.y&&(n.y=i.y)
|
|
11382
|
-
return{origin:t,rows:n.y-t.y+1,cols:n.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,n){const i=
|
|
11383
|
-
return e===
|
|
11384
|
-
return e===
|
|
11385
|
-
return e===
|
|
11386
|
-
return e===
|
|
11390
|
+
return{origin:t,rows:n.y-t.y+1,cols:n.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,n){const i=JV().domain(UV(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
|
|
11391
|
+
return e===CL||e===$L?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=kL().domain([0,n])
|
|
11392
|
+
return e===CL||e===$L?i.range(UV(t.origin.x,t.origin.x+t.cols)):i.range(UV(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=JV().domain(UV(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
|
|
11393
|
+
return e===CL||e===SL?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(e,t,n){const i=kL().domain([0,n])
|
|
11394
|
+
return e===CL||e===SL?i.range(UV(t.origin.y,t.origin.y+t.rows).reverse()):i.range(UV(t.origin.y,t.origin.y+t.rows))}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}}class RL{constructor(e,t){this.wafermap=e,this.dataManager=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode)
|
|
11387
11395
|
const e=this.dataManager.margin,t=this.dataManager.horizontalScale,n=this.dataManager.verticalScale,i=this.wafermap.colorScaleMode,o=this.wafermap.highlightedValues,r=this.wafermap.maxCharacters,s=this.wafermap.dieLabelsHidden,a=this.wafermap.dieLabelsSuffix
|
|
11388
11396
|
this._diesRenderInfo=[]
|
|
11389
11397
|
for(const l of this.wafermap.dies){const c=t(l.x)??0,d=n(l.y)??0
|
|
11390
|
-
this._diesRenderInfo.push({x:c+e.right,y:d+e.top,fillStyle:this.calculateFillStyle(l.value,i,o),text:this.buildLabel(l.value,r,s,a)})}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?
|
|
11398
|
+
this._diesRenderInfo.push({x:c+e.right,y:d+e.top,fillStyle:this.calculateFillStyle(l.value,i,o),text:this.buildLabel(l.value,r,s,a)})}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?xL().domain(e.values.map((e=>+e))).range(e.colors):KV().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
|
|
11391
11399
|
const o=`${e}${i}`
|
|
11392
|
-
return o.length>t?`${o.substring(0,t)}…`:o}calculateOpacity(e,t){return t.length>0&&!t.some((t=>t===e))?this.nonHighlightedOpacity:1}isColorScaleLinear(e){return e===
|
|
11400
|
+
return o.length>t?`${o.substring(0,t)}…`:o}calculateOpacity(e,t){return t.length>0&&!t.some((t=>t===e))?this.nonHighlightedOpacity:1}isColorScaleLinear(e){return e===EL}isColorScaleOrdinal(e){return e===OL}calculateFillStyle(e,t,n){let i=this.emptyDieColor
|
|
11393
11401
|
if(this.dieHasData(e)&&(isNaN(+e)?i=this.nanDieColor:this.isColorScaleLinear(t)?i=this.d3ColorScale(+e):this.isColorScaleOrdinal(t)&&(i=this.d3ColorScale(e))),void 0===i)return this.emptyDieColor
|
|
11394
11402
|
let o=jo(i)
|
|
11395
|
-
return null===o?this.emptyDieColor:(o=new zo(o.r,o.g,o.b,this.calculateOpacity(e,n)),o.toStringWebRGBA())}}class
|
|
11403
|
+
return null===o?this.emptyDieColor:(o=new zo(o.r,o.g,o.b,this.calculateOpacity(e,n)),o.toStringWebRGBA())}}class DL{constructor(e){this.wafermap=e,this.computations=new TL(e),this.prerendering=new RL(e,this)}get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get data(){return this.dataMap}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((e=>[`${e.x}_${e.y}`,e])))}}class FL{constructor(e){this.wafermap=e,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?IL:AL,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x),t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y),n=this.wafermap.transform.apply([e+this.wafermap.dataManager.margin.left,t+this.wafermap.dataManager.margin.top])
|
|
11396
11404
|
return`translate(${n[0]}, ${n[1]})`}return""}renderDies(){const e=this.wafermap.canvasContext,t=this.wafermap.dataManager.dieDimensions.width,n=this.wafermap.dataManager.dieDimensions.height,i=this.wafermap.transform.invert([0,0]),o=this.wafermap.transform.invert([this.wafermap.canvas.width,this.wafermap.canvas.height])
|
|
11397
11405
|
i[0]-=t,i[1]-=n
|
|
11398
11406
|
for(const r of this.dies)this.isDieVisible(r,i,o)&&(e.fillStyle=r.fillStyle,e.fillRect(r.x,r.y,t,n))}renderText(){if(this.wafermap.dieLabelsHidden)return
|
|
@@ -11401,19 +11409,19 @@ if(e*t*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
|
|
|
11401
11409
|
i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
|
|
11402
11410
|
const o=i.measureText("M"),r=this.wafermap.transform.invert([0,0]),s=this.wafermap.transform.invert([this.wafermap.canvas.width,this.wafermap.canvas.height])
|
|
11403
11411
|
r[0]-=e,r[1]-=t
|
|
11404
|
-
for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+e/2,n.y+t/2+o.width/2,e-e/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(e,t,n){return e.x>=t[0]&&e.x<n[0]&&e.y>=t[1]&&e.y<n[1]}}class
|
|
11405
|
-
t.k===this.minScale?(this.zoomTransform=
|
|
11412
|
+
for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+e/2,n.y+t/2+o.width/2,e-e/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(e,t,n){return e.x>=t[0]&&e.x<n[0]&&e.y>=t[1]&&e.y<n[1]}}class NL{constructor(e){this.wafermap=e,this.zoomTransform=vV,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100}createZoomBehavior(){this.zoomBehavior=MV().scaleExtent([1.1,this.getZoomMax(this.wafermap.canvasWidth*this.wafermap.canvasHeight,this.wafermap.dataManager.containerDimensions.width*this.wafermap.dataManager.containerDimensions.height)]).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth+this.extentPadding,this.wafermap.canvasHeight+this.extentPadding]]).filter((e=>bV(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)})),this.zoomBehavior(oz(this.wafermap.canvas))}rescale(e){const t=e.transform
|
|
11413
|
+
t.k===this.minScale?(this.zoomTransform=vV,this.zoomBehavior.transform(oz(this.wafermap.canvas),vV)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}getZoomMax(e,t){return Math.ceil(t/e*100)}}class zL{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
|
|
11406
11414
|
if(!this.hoversOverDie(this.wafermap,t))return void(this.wafermap.hoverDie=void 0)
|
|
11407
11415
|
const n=this.wafermap.transform.invert([t.x,t.y]),i=this.calculateDieCoordinates(this.wafermap,{x:n[0],y:n[1]})
|
|
11408
|
-
this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e,t){const n=e.quadrant,i=n===
|
|
11416
|
+
this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e,t){const n=e.quadrant,i=n===CL||n===$L?Math.floor:Math.ceil,o=n===$L||n===_L?Math.floor:Math.ceil
|
|
11409
11417
|
return{x:i(e.dataManager.invertedHorizontalScale(t.x-e.dataManager.margin.left)),y:o(e.dataManager.invertedVerticalScale(t.y-e.dataManager.margin.top))}}hoversOverDie(e,t){const n=e.canvasContext.getImageData(t.x,t.y,1,1).data
|
|
11410
11418
|
let i=0
|
|
11411
11419
|
for(const e of n)i+=e
|
|
11412
|
-
return i>0}}class
|
|
11413
|
-
class
|
|
11420
|
+
return i>0}}class PL{constructor(e){this.wafermap=e,this.onWheelMove=e=>{e.preventDefault()},this.onMouseMove=e=>{this.hoverHandler.mousemove(e)},this.onMouseOut=()=>{this.hoverHandler.mouseout()},this.zoomHandler=new NL(e),this.hoverHandler=new zL(e)}attachEvents(){this.zoomHandler.createZoomBehavior(),this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.addEventListener("wheel",this.onWheelMove,{passive:!1})}detachEvents(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.removeEventListener("wheel",this.onWheelMove)}}const VL=["canvasWidth","canvasHeight","quadrant","dies","maxCharacters","colorScale","colorScaleMode","highlightedValues","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
|
|
11421
|
+
class LL extends $R{constructor(e){super(VL),this.wafermap=e,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("quadrant")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("highlightedValues")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("quadrant")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("highlightedValues")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresDrawnWaferUpdate(){return this.isTracked("transform")}get requiresRenderHoverUpdate(){return this.isTracked("hoverDie")}queueUpdate(){this.wafermap.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1}))))}}class HL extends zt{constructor(){super(...arguments),this.waferMapUpdateTracker=new LL(this),this.quadrant=$L,this.orientation=ML,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=EL,this.dataManager=new DL(this),this.renderer=new FL(this),this.renderQueued=!1,this.transform=vV,this.hoverTransform="",this.hoverOpacity=IL,this.hoverWidth=0,this.hoverHeight=0,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]},this.eventCoordinator=new PL(this),this.resizeObserver=this.createResizeObserver()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}update(){this.waferMapUpdateTracker.requiresEventsUpdate?(this.eventCoordinator.detachEvents(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate?(this.dataManager.updateContainerDimensions(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresScalesUpdate?(this.dataManager.updateScales(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate?(this.dataManager.updateLabelsFontSize(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.dataManager.updateDiesRenderInfo(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.renderer.drawWafer(),this.eventCoordinator.attachEvents()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}createResizeObserver(){return new ResizeObserver((e=>{const t=e[0]
|
|
11414
11422
|
if(void 0===t)return
|
|
11415
11423
|
const{height:n,width:i}=t.contentRect
|
|
11416
|
-
this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}quadrantChanged(){this.waferMapUpdateTracker.track("quadrant"),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()}highlightedValuesChanged(){this.waferMapUpdateTracker.track("highlightedValues"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}}e([se],
|
|
11417
|
-
const
|
|
11418
|
-
mi.getOrCreate().withPrefix("nimble").register(
|
|
11424
|
+
this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}quadrantChanged(){this.waferMapUpdateTracker.track("quadrant"),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()}highlightedValuesChanged(){this.waferMapUpdateTracker.track("highlightedValues"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}}e([se],HL.prototype,"quadrant",void 0),e([se],HL.prototype,"orientation",void 0),e([se({attribute:"max-characters",converter:oe})],HL.prototype,"maxCharacters",void 0),e([se({attribute:"die-labels-hidden",mode:"boolean"})],HL.prototype,"dieLabelsHidden",void 0),e([se({attribute:"die-labels-suffix"})],HL.prototype,"dieLabelsSuffix",void 0),e([se({attribute:"color-scale-mode"})],HL.prototype,"colorScaleMode",void 0),e([m],HL.prototype,"canvasWidth",void 0),e([m],HL.prototype,"canvasHeight",void 0),e([m],HL.prototype,"transform",void 0),e([m],HL.prototype,"hoverTransform",void 0),e([m],HL.prototype,"hoverOpacity",void 0),e([m],HL.prototype,"hoverWidth",void 0),e([m],HL.prototype,"hoverHeight",void 0),e([m],HL.prototype,"hoverDie",void 0),e([m],HL.prototype,"highlightedValues",void 0),e([m],HL.prototype,"dies",void 0),e([m],HL.prototype,"colorScale",void 0)
|
|
11425
|
+
const BL=HL.compose({baseName:"wafer-map",template:AV,styles:IV})
|
|
11426
|
+
mi.getOrCreate().withPrefix("nimble").register(BL()),mi.tagFor(HL)}()
|
|
11419
11427
|
//# sourceMappingURL=all-components-bundle.min.js.map
|